Index: HQ_HB030_YC1028_keyboard_only_24G_otp.dat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/HQ_HB030_YC1028_keyboard_only_24G_otp.dat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/HQ_HB030_YC1028_keyboard_only_24G_otp.dat	(working copy)
@@ -0,0 +1,7086 @@
+60
+01
+aa
+55
+82
+16
+c2
+84
+00
+17
+c0
+00
+00
+21
+c0
+01
+80
+a2
+c0
+41
+00
+3e
+c0
+45
+00
+31
+c0
+45
+80
+3b
+c0
+4f
+80
+4e
+c0
+52
+00
+50
+c0
+56
+80
+5a
+c0
+61
+03
+53
+c0
+62
+bd
+33
+c0
+63
+03
+67
+c0
+63
+83
+69
+c0
+64
+03
+73
+c0
+66
+04
+b0
+c0
+67
+84
+07
+c0
+68
+84
+08
+c0
+69
+04
+08
+c0
+6a
+04
+10
+c0
+6b
+84
+4c
+c0
+6d
+83
+43
+c0
+6e
+04
+09
+20
+20
+13
+7c
+c1
+7f
+80
+00
+c0
+41
+04
+0c
+c0
+6f
+83
+8c
+c0
+70
+03
+9b
+c0
+74
+03
+a5
+c0
+74
+83
+ba
+c0
+75
+03
+e9
+c0
+75
+83
+f4
+c0
+76
+04
+01
+20
+20
+13
+7c
+20
+40
+3c
+fe
+24
+34
+08
+02
+6f
+e0
+cb
+f5
+20
+3a
+08
+02
+6f
+e0
+c9
+24
+c0
+7f
+88
+02
+1f
+e2
+0e
+00
+6f
+e2
+09
+8a
+af
+ec
+00
+00
+20
+40
+82
+fb
+20
+20
+08
+02
+6f
+e0
+80
+4c
+79
+3f
+fe
+05
+79
+3f
+fe
+02
+67
+e0
+80
+4c
+20
+20
+0b
+40
+6f
+e0
+c1
+eb
+c0
+4a
+00
+35
+c0
+4f
+80
+38
+20
+20
+12
+1b
+70
+8a
+39
+10
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+39
+b0
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+75
+03
+70
+8a
+85
+00
+20
+20
+12
+52
+18
+00
+2a
+08
+18
+00
+2a
+00
+78
+50
+fc
+00
+78
+50
+7c
+00
+78
+2f
+7c
+00
+70
+89
+00
+05
+20
+00
+00
+02
+70
+89
+00
+00
+20
+40
+11
+5d
+70
+8a
+16
+00
+70
+8a
+0a
+80
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+70
+8a
+0b
+00
+20
+20
+12
+9c
+70
+00
+7f
+00
+20
+20
+13
+b7
+20
+40
+14
+17
+6f
+e1
+c1
+74
+20
+7a
+00
+00
+6f
+e0
+cd
+4e
+24
+7a
+00
+00
+6f
+e0
+cd
+4f
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+20
+20
+14
+91
+20
+40
+6d
+29
+20
+40
+00
+61
+20
+40
+00
+7e
+20
+40
+00
+9c
+20
+75
+80
+00
+20
+40
+3c
+54
+20
+20
+3c
+50
+20
+75
+80
+00
+20
+40
+31
+46
+20
+40
+25
+f1
+20
+40
+22
+96
+20
+40
+3c
+ac
+20
+40
+00
+6f
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+40
+04
+82
+6f
+e4
+4b
+bd
+c2
+9e
+83
+02
+c2
+89
+c5
+50
+c2
+89
+45
+11
+20
+60
+00
+00
+58
+00
+4d
+77
+67
+e1
+46
+67
+20
+40
+04
+66
+70
+4c
+98
+00
+58
+00
+01
+95
+67
+e1
+48
+eb
+58
+00
+01
+2c
+e7
+e1
+00
+05
+58
+00
+01
+4b
+e7
+e1
+00
+05
+20
+60
+00
+00
+6f
+f0
+81
+21
+58
+00
+00
+00
+67
+f0
+80
+4d
+20
+20
+5b
+9a
+68
+48
+c9
+19
+20
+40
+3e
+71
+68
+48
+c9
+1a
+20
+40
+3e
+71
+68
+48
+c9
+24
+60
+48
+c9
+26
+20
+40
+3e
+71
+58
+00
+4c
+1a
+67
+e1
+4c
+42
+58
+00
+4c
+22
+67
+e1
+4c
+44
+58
+00
+4c
+36
+67
+e1
+4c
+46
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+be
+71
+1a
+40
+a4
+01
+c2
+00
+00
+8e
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+a3
+1a
+40
+a4
+01
+c2
+00
+00
+96
+20
+20
+3d
+48
+58
+5d
+48
+00
+67
+e2
+48
+c0
+6f
+e0
+c4
+a9
+c4
+00
+00
+00
+20
+40
+46
+ed
+20
+60
+00
+00
+20
+40
+00
+a6
+20
+40
+01
+31
+20
+40
+02
+b9
+20
+20
+08
+13
+20
+40
+00
+8b
+20
+40
+01
+2b
+58
+00
+00
+00
+67
+e1
+4c
+95
+d8
+c0
+4c
+48
+d8
+a0
+4c
+5c
+df
+20
+00
+14
+20
+40
+7c
+a1
+58
+00
+4c
+48
+67
+e1
+4c
+8f
+58
+00
+4c
+84
+67
+e1
+4c
+91
+20
+40
+01
+29
+20
+40
+01
+23
+20
+40
+01
+27
+6f
+e1
+4c
+95
+1f
+e0
+fe
+01
+67
+e1
+4c
+95
+c2
+84
+81
+18
+68
+48
+cc
+0f
+20
+40
+5f
+7d
+24
+20
+80
+b5
+20
+40
+00
+df
+20
+40
+00
+f9
+20
+40
+01
+29
+6f
+e1
+4c
+46
+1f
+e2
+24
+00
+70
+4c
+94
+00
+e8
+40
+80
+12
+6f
+e1
+4c
+44
+1f
+e2
+22
+00
+1a
+22
+26
+00
+df
+20
+00
+14
+ef
+e0
+80
+11
+98
+46
+7c
+00
+20
+22
+80
+d3
+1a
+20
+a2
+01
+c2
+00
+00
+c7
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+0a
+20
+21
+00
+c2
+20
+60
+00
+00
+6f
+e1
+4c
+8f
+1f
+e2
+0a
+00
+1a
+22
+7e
+00
+9a
+66
+7e
+00
+98
+a0
+8a
+00
+6f
+e1
+4c
+91
+1f
+e2
+26
+00
+6f
+e0
+cc
+94
+9a
+60
+a6
+00
+ef
+e0
+80
+13
+e7
+e0
+80
+05
+20
+20
+00
+cc
+20
+00
+00
+14
+70
+4c
+97
+00
+20
+40
+01
+2b
+70
+4c
+94
+00
+20
+40
+01
+25
+20
+40
+00
+ec
+20
+40
+01
+23
+20
+40
+00
+ec
+1f
+e6
+7c
+09
+20
+21
+00
+e3
+20
+40
+01
+25
+20
+40
+00
+ec
+20
+20
+01
+27
+70
+4c
+93
+00
+20
+00
+00
+96
+20
+40
+01
+0c
+6f
+e1
+4c
+91
+1f
+e2
+0a
+00
+6f
+e0
+cc
+94
+98
+a0
+8a
+00
+6f
+e0
+cc
+93
+e7
+e0
+80
+05
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+20
+60
+00
+00
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+70
+4c
+94
+00
+70
+4c
+93
+00
+e8
+40
+80
+12
+28
+4f
+fe
+07
+20
+20
+81
+06
+20
+40
+5f
+8d
+20
+40
+01
+0c
+e8
+40
+80
+12
+20
+40
+5f
+89
+e8
+40
+80
+12
+20
+40
+5f
+a3
+1a
+40
+a4
+01
+6f
+e1
+4c
+8f
+20
+40
+00
+f0
+1f
+e6
+7c
+13
+20
+21
+00
+fc
+20
+60
+00
+00
+6f
+e1
+4c
+42
+1f
+e2
+26
+00
+df
+20
+00
+08
+e8
+40
+80
+13
+20
+40
+5f
+7d
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+79
+20
+fe
+07
+67
+e0
+cc
+93
+1a
+60
+a6
+01
+c2
+00
+01
+0f
+20
+60
+00
+00
+68
+48
+cc
+10
+20
+40
+5f
+8d
+20
+00
+00
+14
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+00
+17
+70
+6f
+e0
+cc
+97
+1f
+e0
+fe
+01
+67
+e0
+cc
+97
+c2
+83
+5c
+7b
+20
+20
+00
+a6
+68
+48
+cc
+0f
+20
+20
+5f
+89
+68
+48
+cc
+0f
+20
+20
+5f
+8d
+68
+48
+cc
+0f
+20
+20
+5f
+74
+68
+48
+cc
+0e
+20
+20
+5f
+89
+68
+48
+cc
+0e
+20
+20
+5f
+8d
+70
+4c
+98
+00
+6f
+e1
+4c
+99
+67
+e1
+4c
+9b
+20
+60
+00
+00
+da
+20
+4c
+48
+da
+40
+4c
+5c
+df
+20
+00
+14
+20
+40
+7d
+33
+24
+22
+81
+2d
+20
+40
+01
+6b
+20
+5a
+01
+2d
+20
+40
+01
+77
+6f
+e0
+cb
+ac
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+00
+80
+00
+c1
+01
+00
+00
+c1
+02
+00
+00
+70
+4c
+94
+00
+da
+20
+4c
+48
+da
+40
+4c
+70
+e8
+40
+80
+11
+ef
+e0
+80
+12
+98
+42
+fe
+00
+20
+3a
+01
+63
+67
+e0
+cc
+93
+60
+48
+cc
+a3
+e0
+40
+80
+12
+70
+4c
+a1
+01
+70
+4c
+a4
+00
+6f
+e0
+cc
+93
+c3
+00
+01
+58
+6f
+e0
+cc
+94
+1f
+ef
+fe
+08
+68
+48
+cc
+a4
+98
+40
+fe
+00
+d8
+c0
+4c
+ae
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+67
+e0
+cc
+a2
+20
+40
+01
+a5
+20
+40
+01
+f5
+20
+40
+02
+83
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+67
+e0
+cc
+93
+6f
+e0
+cc
+a3
+1f
+e3
+7e
+00
+67
+e0
+cc
+a3
+6f
+e0
+cc
+a4
+1f
+e0
+fe
+01
+67
+e0
+cc
+a4
+1f
+e6
+7c
+07
+20
+21
+01
+4b
+1a
+20
+a2
+01
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+20
+21
+01
+42
+20
+60
+00
+00
+6f
+e4
+4c
+48
+24
+7a
+00
+00
+6f
+e4
+4c
+50
+24
+7a
+00
+00
+6f
+e2
+4c
+58
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+03
+00
+00
+70
+4d
+70
+00
+20
+60
+00
+00
+70
+4b
+ac
+00
+70
+4c
+9e
+00
+da
+20
+4c
+48
+df
+20
+00
+14
+70
+4c
+9d
+00
+ef
+e0
+80
+11
+20
+3a
+01
+a0
+68
+48
+cc
+9d
+18
+40
+84
+01
+60
+48
+cc
+9d
+1f
+e2
+04
+00
+1f
+e0
+ff
+ff
+98
+41
+7e
+00
+24
+22
+81
+7e
+6f
+e0
+cc
+9d
+68
+48
+cc
+9e
+98
+40
+84
+00
+60
+48
+cc
+9e
+1f
+e6
+7c
+01
+20
+21
+01
+a0
+18
+46
+7c
+02
+20
+21
+01
+a0
+70
+4c
+94
+00
+70
+4c
+9f
+00
+e8
+40
+80
+11
+da
+40
+4c
+48
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+24
+21
+01
+a0
+ef
+e0
+80
+12
+98
+41
+7c
+00
+20
+22
+81
+a3
+6f
+e0
+cc
+9f
+1f
+e0
+fe
+01
+67
+e0
+cc
+9f
+1f
+e6
+7c
+01
+20
+21
+01
+a3
+70
+4b
+ac
+01
+20
+60
+00
+00
+1a
+20
+a2
+01
+c2
+00
+01
+7b
+20
+60
+00
+00
+1a
+40
+a4
+01
+20
+20
+01
+91
+6f
+e0
+cc
+a3
+24
+5a
+02
+0a
+6f
+e0
+cd
+4e
+24
+5a
+01
+bb
+6f
+e0
+cd
+5d
+68
+48
+cd
+4e
+98
+42
+fe
+00
+20
+22
+81
+b8
+6f
+e0
+cc
+a2
+c0
+14
+81
+c6
+1f
+e6
+7c
+45
+24
+61
+00
+00
+d8
+40
+00
+3a
+98
+46
+7e
+00
+24
+61
+00
+00
+d8
+c0
+4d
+5f
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+20
+20
+01
+e5
+6f
+e0
+cc
+a2
+c0
+26
+01
+c8
+20
+60
+00
+00
+6f
+e0
+cc
+a2
+c0
+29
+01
+ca
+c0
+28
+81
+ce
+c0
+28
+01
+d2
+c0
+27
+81
+d6
+c0
+70
+01
+da
+c0
+16
+01
+e2
+c0
+0b
+01
+e7
+c0
+03
+81
+ed
+c0
+02
+01
+f1
+20
+60
+00
+00
+6f
+e0
+cd
+5e
+20
+20
+01
+e5
+6f
+e0
+cd
+6b
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4b
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4e
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4a
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4d
+20
+20
+01
+e5
+6f
+e0
+cd
+6d
+20
+7a
+00
+00
+6f
+e0
+cf
+a9
+c0
+00
+01
+e0
+58
+00
+00
+fd
+20
+20
+01
+e5
+58
+00
+00
+aa
+20
+20
+01
+e5
+6f
+e0
+cd
+6e
+20
+7a
+00
+00
+58
+00
+00
+ab
+67
+e0
+cc
+a2
+20
+60
+00
+00
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+01
+70
+4c
+16
+06
+58
+00
+00
+00
+20
+20
+01
+e5
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+00
+20
+20
+01
+ea
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+02
+20
+20
+01
+ea
+6f
+e0
+cc
+a2
+c0
+23
+02
+0c
+c0
+25
+82
+12
+c0
+27
+02
+18
+c0
+25
+02
+1a
+c0
+26
+82
+1c
+c0
+52
+82
+1e
+c0
+53
+02
+25
+c0
+53
+82
+27
+c0
+54
+02
+29
+c0
+54
+82
+2b
+c0
+55
+02
+36
+c0
+56
+82
+3d
+c0
+55
+82
+44
+c0
+56
+02
+4f
+c0
+7d
+82
+58
+20
+60
+00
+00
+6f
+e0
+cc
+a3
+c4
+00
+00
+00
+70
+4d
+73
+0a
+20
+60
+00
+00
+70
+4d
+73
+00
+20
+60
+00
+00
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+0a
+70
+4d
+72
+20
+20
+20
+02
+5d
+70
+4d
+72
+52
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+51
+20
+20
+02
+13
+70
+4d
+72
+50
+20
+20
+02
+13
+70
+4d
+72
+4f
+20
+20
+02
+13
+70
+4d
+72
+04
+70
+4d
+71
+01
+6f
+e0
+cf
+a9
+c0
+00
+02
+5d
+c0
+00
+82
+5d
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+06
+20
+20
+02
+1f
+70
+4d
+72
+19
+20
+20
+02
+1f
+70
+4d
+72
+1b
+20
+20
+02
+1f
+6f
+e0
+cf
+a9
+c0
+00
+02
+30
+c0
+01
+82
+33
+58
+00
+00
+fc
+20
+20
+01
+e5
+70
+4d
+71
+08
+70
+4d
+72
+0f
+20
+20
+02
+5d
+70
+4d
+71
+09
+70
+4d
+72
+14
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+3a
+58
+00
+00
+fd
+20
+20
+01
+e5
+70
+4d
+71
+09
+70
+4d
+72
+12
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+01
+82
+41
+58
+00
+00
+fa
+20
+20
+01
+e5
+70
+4d
+71
+08
+70
+4d
+72
+2c
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+4b
+c0
+00
+82
+4d
+70
+4d
+71
+01
+70
+4d
+72
+2c
+20
+40
+02
+06
+20
+20
+02
+5d
+70
+4d
+71
+08
+20
+20
+02
+48
+70
+4d
+71
+02
+20
+20
+02
+48
+6f
+e0
+cf
+a9
+c0
+00
+02
+55
+c0
+00
+82
+55
+70
+4d
+71
+01
+70
+4d
+72
+52
+20
+20
+02
+5d
+70
+4d
+71
+08
+70
+4d
+72
+2b
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c1
+80
+00
+00
+70
+4d
+71
+08
+70
+4d
+72
+07
+20
+20
+02
+5d
+70
+4c
+a2
+00
+6f
+e0
+cc
+a3
+c3
+00
+02
+64
+6f
+e0
+cd
+70
+c0
+01
+82
+70
+70
+4d
+70
+01
+20
+60
+00
+00
+70
+4d
+70
+04
+20
+60
+00
+00
+70
+4d
+70
+06
+20
+60
+00
+00
+67
+e0
+cc
+02
+60
+48
+cc
+04
+20
+40
+7d
+92
+70
+4c
+01
+00
+20
+20
+04
+ef
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+70
+4d
+70
+02
+20
+60
+00
+00
+70
+4d
+70
+03
+6f
+e0
+cd
+71
+68
+48
+cd
+72
+20
+20
+02
+68
+70
+4c
+01
+00
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+6f
+e0
+cd
+73
+20
+3a
+02
+66
+70
+4d
+70
+05
+20
+60
+00
+00
+20
+20
+02
+6a
+70
+4d
+70
+00
+df
+e0
+00
+00
+d8
+40
+00
+00
+20
+20
+02
+68
+6f
+e0
+cc
+a2
+d8
+40
+00
+e0
+98
+46
+7c
+00
+24
+21
+02
+95
+1f
+e6
+7c
+e7
+24
+21
+02
+b2
+1f
+e1
+7e
+07
+1f
+e2
+0e
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+91
+6f
+e0
+cc
+a5
+f9
+3f
+fe
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+6f
+e0
+cc
+a5
+f9
+20
+7e
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+70
+4c
+ad
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+a6
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+98
+46
+7c
+00
+24
+22
+82
+a4
+ef
+e0
+80
+06
+18
+c0
+8d
+fe
+e7
+e0
+80
+06
+20
+7a
+00
+00
+18
+c0
+8c
+01
+e0
+40
+80
+06
+c2
+00
+02
+9b
+20
+60
+00
+00
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+20
+3a
+02
+af
+98
+46
+7c
+00
+20
+62
+80
+00
+c2
+00
+02
+a9
+20
+60
+00
+00
+18
+c0
+8d
+ff
+e0
+40
+80
+06
+20
+60
+00
+00
+70
+4d
+74
+01
+6f
+e0
+cc
+a3
+2f
+ec
+00
+00
+20
+40
+82
+b7
+20
+20
+02
+95
+70
+4d
+74
+02
+20
+60
+00
+00
+20
+40
+02
+cd
+70
+4d
+4e
+00
+70
+4d
+4f
+00
+70
+4d
+50
+00
+70
+4f
+eb
+00
+6f
+e0
+cc
+a5
+24
+5a
+02
+f7
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+7f
+20
+42
+82
+f9
+1f
+e6
+7c
+de
+20
+42
+82
+fb
+c2
+00
+02
+c2
+6f
+e0
+cd
+51
+20
+3a
+02
+dd
+6f
+e0
+c9
+3f
+c0
+00
+02
+e2
+20
+60
+00
+00
+6f
+e0
+cd
+51
+24
+7a
+00
+00
+68
+48
+c9
+24
+18
+46
+7c
+ff
+20
+62
+80
+00
+20
+40
+5f
+7d
+24
+20
+82
+d9
+df
+20
+00
+08
+d8
+a0
+4c
+a5
+20
+40
+7c
+68
+70
+4c
+a7
+de
+20
+60
+00
+00
+6f
+e0
+cc
+a7
+c1
+ef
+00
+00
+70
+4c
+a7
+00
+20
+60
+00
+00
+6f
+e0
+cd
+50
+20
+7a
+00
+00
+6f
+e0
+c9
+3f
+c0
+00
+02
+ed
+20
+60
+00
+00
+6f
+e1
+4c
+a7
+68
+49
+4d
+54
+98
+46
+7c
+00
+20
+22
+82
+e9
+18
+50
+84
+00
+98
+46
+7c
+00
+24
+62
+80
+00
+70
+4f
+eb
+01
+20
+60
+00
+00
+70
+4f
+eb
+00
+20
+40
+02
+fb
+70
+4d
+58
+00
+20
+40
+02
+fd
+70
+4c
+a1
+00
+6f
+e1
+48
+8b
+24
+7a
+00
+00
+58
+00
+00
+00
+67
+e1
+4a
+c4
+20
+40
+04
+94
+20
+40
+04
+96
+20
+20
+47
+41
+70
+4d
+4f
+01
+20
+60
+00
+00
+70
+4d
+4e
+01
+20
+60
+00
+00
+70
+4d
+50
+01
+20
+60
+00
+00
+6f
+e1
+4f
+c2
+d8
+40
+05
+28
+98
+46
+7c
+00
+24
+61
+00
+00
+20
+20
+13
+7a
+6f
+e0
+c9
+3f
+c0
+00
+03
+05
+20
+60
+00
+00
+db
+00
+00
+50
+58
+00
+04
+00
+9b
+06
+fc
+00
+20
+40
+7d
+31
+18
+07
+fe
+00
+67
+e1
+09
+5c
+df
+e0
+1f
+cc
+d8
+40
+00
+04
+dd
+60
+00
+04
+20
+20
+03
+0f
+60
+48
+89
+64
+da
+20
+4f
+aa
+da
+60
+00
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+22
+1a
+60
+a6
+01
+6f
+e1
+09
+5c
+9a
+66
+7c
+00
+24
+21
+03
+42
+1a
+42
+7e
+00
+9b
+06
+7e
+00
+20
+20
+03
+12
+1a
+66
+7c
+00
+20
+22
+83
+32
+1a
+42
+7e
+00
+9b
+00
+fe
+00
+9d
+66
+7e
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+34
+1a
+42
+7e
+00
+20
+20
+03
+26
+65
+60
+cf
+c2
+20
+60
+00
+00
+58
+00
+1f
+d0
+9a
+46
+7e
+00
+67
+e1
+4f
+c2
+1a
+42
+7e
+00
+9d
+60
+fe
+00
+68
+48
+89
+64
+da
+20
+4f
+aa
+20
+40
+5d
+c7
+6f
+e0
+c9
+3f
+c0
+00
+03
+3f
+20
+60
+00
+00
+6f
+e3
+4f
+aa
+67
+e2
+49
+9a
+20
+20
+44
+fe
+20
+20
+13
+7a
+6f
+e4
+4b
+bd
+c2
+9e
+83
+46
+20
+20
+45
+0e
+6f
+e0
+c9
+3f
+c0
+00
+03
+49
+20
+60
+00
+00
+68
+49
+4f
+c2
+58
+00
+1f
+d0
+98
+46
+04
+00
+da
+20
+49
+9a
+df
+20
+00
+04
+20
+40
+5d
+82
+68
+49
+4f
+c2
+18
+40
+84
+04
+60
+49
+4f
+c2
+20
+60
+00
+00
+20
+40
+04
+76
+6f
+e4
+4b
+bd
+c3
+0a
+03
+61
+20
+40
+5f
+f1
+20
+40
+60
+18
+68
+49
+44
+9b
+6f
+e1
+44
+a7
+1f
+e6
+fc
+02
+20
+40
+7d
+2e
+98
+46
+7c
+00
+20
+21
+03
+54
+20
+40
+3d
+d4
+6f
+e0
+c4
+a9
+c2
+80
+be
+39
+6f
+e0
+cd
+51
+20
+5a
+02
+dd
+6f
+e0
+cd
+50
+24
+7a
+00
+00
+6f
+e0
+c9
+3f
+c0
+00
+47
+26
+70
+49
+26
+ff
+20
+20
+3d
+35
+20
+40
+7f
+1a
+20
+40
+04
+82
+20
+40
+3d
+43
+6f
+e4
+4b
+bd
+c4
+0a
+00
+00
+6f
+e0
+c9
+05
+c1
+81
+00
+00
+6f
+e0
+c9
+04
+d8
+40
+00
+c0
+20
+20
+5f
+b3
+20
+40
+7f
+1a
+20
+40
+3e
+a3
+68
+48
+c9
+19
+20
+40
+5f
+56
+68
+48
+c9
+1a
+20
+40
+5f
+56
+68
+48
+c9
+24
+20
+40
+5f
+5a
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+8d
+1a
+40
+a4
+01
+c2
+00
+03
+7e
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+df
+56
+1a
+40
+a4
+01
+c2
+00
+03
+86
+20
+60
+00
+00
+70
+48
+93
+00
+6f
+e0
+c8
+87
+c0
+81
+03
+96
+70
+4b
+f8
+00
+6f
+e1
+4b
+f6
+1f
+e0
+fe
+01
+67
+e1
+4b
+f6
+6f
+e0
+cb
+f6
+c0
+00
+22
+d8
+20
+60
+00
+00
+6f
+e0
+cb
+f8
+1f
+e0
+fe
+01
+67
+e0
+cb
+f8
+c0
+7f
+a3
+03
+20
+20
+22
+d8
+6f
+e0
+c8
+87
+c1
+7f
+80
+00
+c0
+01
+03
+9f
+20
+20
+22
+fe
+6f
+e0
+c8
+62
+20
+3a
+23
+0e
+6f
+e2
+48
+13
+20
+7a
+00
+00
+67
+e2
+48
+99
+20
+20
+23
+0e
+6f
+e1
+48
+91
+1f
+e1
+7e
+e0
+20
+3a
+03
+ac
+6f
+e1
+48
+91
+1f
+e0
+fe
+01
+67
+e1
+48
+91
+20
+60
+00
+00
+20
+40
+25
+86
+20
+40
+26
+45
+24
+2c
+25
+8d
+24
+37
+a5
+8d
+20
+40
+03
+b2
+20
+20
+25
+72
+20
+40
+26
+5c
+6f
+e0
+c7
+ac
+2f
+e1
+f0
+08
+24
+60
+80
+00
+6f
+e0
+c7
+ad
+c0
+7f
+84
+3e
+67
+e0
+cd
+59
+20
+60
+00
+00
+20
+40
+26
+1b
+24
+34
+03
+bf
+20
+40
+03
+ce
+20
+40
+26
+d5
+20
+20
+26
+12
+6f
+e4
+4c
+48
+24
+3a
+26
+12
+6f
+e4
+4c
+50
+24
+3a
+26
+12
+6f
+e2
+4c
+58
+24
+3a
+26
+12
+6f
+e0
+c8
+c5
+c1
+00
+80
+00
+20
+40
+26
+89
+20
+40
+26
+a4
+24
+74
+00
+00
+6f
+e0
+cb
+f3
+24
+5a
+3d
+40
+6f
+e2
+48
+63
+20
+20
+26
+a1
+70
+48
+ae
+00
+69
+61
+01
+5f
+34
+73
+02
+00
+20
+40
+26
+45
+6f
+e0
+c8
+33
+c0
+00
+a6
+3b
+24
+2c
+03
+d9
+24
+37
+83
+d9
+20
+40
+03
+b2
+70
+4b
+f3
+00
+20
+20
+26
+3b
+6f
+e0
+c8
+af
+24
+7a
+00
+00
+6f
+e1
+48
+ab
+1f
+e0
+fe
+01
+67
+e1
+48
+ab
+6f
+e0
+c8
+ab
+c0
+7f
+a6
+63
+2f
+ef
+fe
+06
+20
+40
+83
+e4
+20
+40
+26
+68
+20
+20
+03
+cf
+20
+40
+00
+a6
+6f
+e0
+cc
+49
+1f
+e6
+7c
+09
+20
+22
+c5
+d9
+20
+60
+00
+00
+6f
+e0
+c8
+ae
+1f
+e0
+fe
+01
+67
+e0
+c8
+ae
+1f
+e1
+7e
+03
+20
+3a
+03
+ef
+20
+60
+00
+00
+6f
+e2
+48
+43
+68
+4a
+48
+95
+98
+46
+7c
+00
+20
+22
+a2
+62
+20
+20
+26
+86
+78
+34
+7c
+00
+20
+40
+14
+17
+6f
+e1
+c1
+74
+20
+3a
+7d
+94
+6f
+e0
+cd
+4e
+24
+3a
+7d
+94
+6f
+e0
+cd
+4f
+24
+3a
+7d
+94
+6f
+e0
+cd
+73
+24
+3a
+7d
+94
+6f
+e0
+c8
+c5
+c0
+00
+fd
+94
+20
+20
+26
+a9
+6f
+e2
+48
+43
+68
+4a
+48
+95
+98
+46
+7c
+00
+24
+22
+a6
+d6
+70
+41
+eb
+9f
+20
+60
+00
+00
+58
+00
+00
+00
+20
+60
+00
+00
+20
+40
+48
+ba
+20
+40
+78
+6c
+20
+20
+3e
+a3
+6f
+e0
+cb
+f5
+24
+5a
+77
+97
+70
+4b
+f5
+00
+20
+20
+77
+87
+1a
+62
+7e
+00
+c0
+1c
+84
+15
+c0
+1e
+04
+18
+c0
+1d
+04
+31
+20
+20
+42
+51
+20
+40
+04
+2c
+20
+40
+44
+5f
+20
+20
+47
+71
+20
+40
+04
+2c
+6f
+e2
+48
+43
+67
+e2
+48
+99
+67
+e2
+49
+9a
+20
+40
+25
+6a
+20
+40
+47
+f0
+20
+40
+44
+5f
+20
+20
+47
+68
+70
+4c
+0b
+02
+20
+40
+05
+9d
+70
+4b
+e0
+03
+20
+60
+00
+00
+df
+20
+00
+06
+d8
+c0
+4c
+04
+ef
+e0
+80
+06
+c0
+29
+84
+2c
+c0
+1c
+84
+2c
+c0
+23
+84
+2c
+c2
+00
+04
+26
+20
+60
+00
+00
+70
+4d
+5a
+03
+70
+4c
+a1
+01
+20
+60
+00
+00
+70
+4d
+58
+01
+20
+60
+00
+00
+6f
+e0
+c8
+ad
+24
+3a
+04
+3e
+6f
+e0
+c8
+93
+c0
+01
+04
+37
+c0
+01
+c7
+53
+20
+20
+47
+50
+6f
+e4
+4b
+bd
+c2
+97
+c7
+2b
+c2
+98
+47
+2b
+c3
+1d
+47
+20
+6f
+e2
+49
+9a
+20
+3a
+02
+ed
+20
+20
+47
+20
+70
+48
+ad
+00
+20
+40
+26
+3c
+5f
+ff
+ff
+ff
+67
+e4
+48
+63
+58
+00
+00
+00
+67
+e3
+c8
+d8
+70
+4b
+f3
+01
+20
+20
+03
+c8
+6f
+e0
+c9
+02
+20
+3a
+04
+4a
+70
+48
+ef
+4d
+20
+60
+00
+00
+70
+48
+ef
+4b
+20
+60
+00
+00
+20
+40
+3d
+b7
+20
+40
+04
+46
+20
+40
+48
+80
+20
+40
+22
+c2
+20
+40
+25
+42
+20
+40
+46
+e6
+20
+40
+04
+69
+20
+40
+04
+71
+20
+40
+04
+76
+20
+40
+04
+7a
+20
+40
+44
+1a
+20
+40
+44
+50
+20
+40
+3f
+3d
+20
+40
+44
+62
+20
+40
+04
+87
+20
+40
+04
+a2
+20
+40
+04
+a7
+20
+40
+04
+5f
+20
+20
+04
+aa
+6f
+e0
+cf
+eb
+20
+3a
+04
+66
+6f
+e0
+cf
+ea
+1f
+e0
+ff
+ff
+20
+3a
+02
+eb
+67
+e0
+cf
+ea
+20
+60
+00
+00
+6f
+e0
+cf
+e9
+67
+e0
+cf
+ea
+20
+60
+00
+00
+6f
+e0
+cd
+58
+20
+7a
+00
+00
+70
+4d
+58
+00
+6f
+e0
+c8
+a9
+24
+7a
+00
+00
+70
+4c
+a1
+01
+20
+40
+26
+1b
+20
+20
+03
+ce
+da
+60
+4d
+5b
+da
+40
+04
+74
+20
+20
+31
+cf
+70
+4d
+5a
+00
+20
+60
+00
+00
+6f
+e0
+c4
+a9
+c3
+80
+80
+00
+6f
+e0
+c9
+3f
+c0
+00
+47
+e8
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e0
+cc
+16
+20
+7a
+00
+00
+1f
+e0
+ff
+ff
+67
+e0
+cc
+16
+c2
+80
+48
+4a
+20
+20
+48
+3c
+20
+40
+48
+3c
+20
+40
+04
+94
+20
+40
+04
+96
+68
+48
+cc
+13
+20
+20
+48
+55
+6f
+e0
+cc
+11
+c1
+7f
+80
+00
+6f
+e0
+cb
+b9
+24
+7a
+00
+00
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e1
+4b
+d0
+68
+49
+4a
+c4
+98
+46
+04
+00
+6f
+e1
+4c
+14
+98
+46
+7e
+00
+20
+21
+04
+98
+20
+40
+04
+96
+68
+48
+cc
+11
+20
+20
+5f
+89
+68
+48
+cc
+12
+20
+20
+5f
+89
+20
+40
+04
+9d
+6f
+e0
+cd
+59
+c3
+00
+84
+94
+68
+48
+cc
+11
+20
+20
+5f
+8d
+6f
+e0
+cd
+59
+c3
+00
+04
+96
+70
+49
+36
+ff
+68
+48
+cc
+12
+20
+20
+5f
+8d
+da
+60
+4c
+9b
+da
+40
+04
+a5
+20
+20
+31
+d6
+70
+4c
+98
+01
+20
+20
+32
+5c
+da
+60
+4d
+73
+da
+40
+02
+66
+20
+20
+31
+cf
+da
+60
+4a
+c4
+da
+40
+04
+ad
+20
+20
+31
+d6
+6f
+e0
+c9
+3f
+c0
+00
+04
+3e
+20
+20
+42
+36
+78
+54
+7c
+00
+70
+4b
+9d
+00
+70
+4b
+9e
+00
+70
+4b
+9f
+00
+6f
+e0
+cd
+70
+c0
+00
+82
+6d
+c0
+01
+02
+72
+c0
+01
+82
+72
+c0
+02
+02
+76
+c0
+03
+02
+7f
+6f
+e0
+cc
+a1
+20
+3a
+04
+c9
+1f
+e0
+ff
+ff
+67
+e0
+cc
+a1
+20
+40
+04
+d7
+70
+4d
+5b
+0a
+20
+40
+44
+5f
+6f
+e0
+cd
+70
+c0
+02
+82
+7e
+d8
+a0
+4c
+01
+df
+20
+00
+0a
+20
+40
+7c
+68
+20
+40
+04
+da
+70
+4c
+0b
+00
+20
+60
+00
+00
+6f
+e0
+cd
+5a
+20
+7a
+00
+00
+6f
+e0
+cd
+58
+24
+7a
+00
+00
+68
+48
+cd
+5c
+6f
+e0
+cd
+5b
+98
+46
+7c
+00
+67
+e0
+cd
+5c
+20
+62
+80
+00
+d8
+a0
+4c
+01
+df
+20
+00
+0a
+20
+40
+7c
+68
+20
+40
+7d
+92
+20
+20
+04
+ef
+70
+41
+77
+03
+70
+4a
+c1
+0a
+20
+60
+00
+00
+6f
+e0
+cd
+74
+c0
+01
+05
+67
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+e7
+24
+21
+05
+02
+c2
+00
+04
+de
+6f
+e0
+cc
+9e
+20
+5a
+04
+f8
+70
+4c
+01
+00
+6f
+e0
+cc
+a7
+1f
+e6
+7c
+7f
+20
+22
+84
+fb
+d8
+c0
+4c
+a5
+d8
+a0
+4c
+02
+df
+20
+00
+08
+ef
+e0
+80
+06
+c0
+3f
+85
+00
+e7
+e0
+80
+05
+c2
+00
+04
+eb
+20
+40
+05
+72
+6f
+e0
+cc
+0b
+c0
+00
+fd
+92
+c0
+01
+04
+f6
+c0
+01
+84
+f6
+c0
+02
+04
+f6
+c0
+02
+84
+f6
+20
+40
+40
+95
+20
+20
+7d
+92
+d8
+a0
+4c
+a5
+df
+20
+00
+09
+20
+20
+7c
+68
+6f
+e1
+4c
+a5
+67
+e1
+4c
+02
+6f
+e3
+4c
+a8
+67
+e3
+4c
+04
+20
+20
+04
+ef
+58
+00
+00
+00
+20
+20
+04
+ed
+70
+4c
+01
+03
+68
+48
+cc
+9e
+18
+46
+7c
+00
+20
+22
+85
+67
+c0
+74
+05
+1e
+c0
+74
+85
+21
+c0
+75
+05
+24
+c0
+75
+85
+27
+c0
+76
+05
+2a
+c0
+76
+85
+2d
+c0
+77
+05
+30
+c0
+77
+85
+33
+c0
+78
+05
+36
+c0
+78
+85
+39
+c0
+79
+05
+3c
+c0
+79
+85
+3f
+c0
+7a
+05
+42
+c0
+7a
+85
+45
+c0
+7b
+05
+48
+c0
+7b
+85
+4b
+c0
+7c
+05
+4e
+c0
+7c
+85
+51
+c0
+7d
+05
+54
+c0
+7d
+85
+57
+c0
+7e
+05
+5c
+c0
+7e
+85
+5f
+c0
+7f
+85
+6e
+20
+20
+04
+ef
+58
+00
+01
+83
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+cd
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b7
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b6
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b5
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+ea
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+e9
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+e2
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+94
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+8a
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+92
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+70
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+6f
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+2a
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+25
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+24
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+26
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+27
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+21
+67
+e1
+4c
+02
+20
+20
+04
+ef
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+58
+00
+02
+23
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+30
+67
+e1
+4c
+02
+20
+20
+04
+ef
+6f
+e0
+cf
+a9
+c0
+00
+85
+64
+58
+00
+01
+ae
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+03
+07
+67
+e1
+4c
+02
+20
+20
+04
+ef
+70
+4c
+a1
+02
+6f
+e0
+cc
+9e
+20
+5a
+04
+f8
+70
+4d
+74
+00
+58
+00
+00
+03
+67
+e1
+cc
+01
+20
+20
+04
+ef
+70
+4c
+01
+02
+58
+00
+00
+02
+67
+e0
+cc
+02
+20
+20
+04
+ef
+6f
+e0
+c9
+3f
+c0
+80
+05
+79
+70
+4d
+58
+00
+6f
+e1
+4c
+01
+24
+5a
+04
+2f
+6f
+e3
+4c
+04
+24
+5a
+04
+2f
+6f
+e0
+cc
+01
+c0
+00
+05
+84
+c0
+00
+85
+7f
+c0
+01
+85
+8d
+c0
+01
+05
+95
+20
+60
+00
+00
+70
+4c
+0b
+01
+d8
+c0
+4c
+01
+d8
+a0
+48
+d8
+df
+20
+00
+07
+20
+20
+7c
+a1
+70
+4c
+0b
+02
+20
+40
+05
+9d
+20
+40
+04
+24
+6f
+e0
+cd
+5a
+67
+e0
+cc
+03
+d8
+c0
+4c
+01
+d8
+a0
+4b
+de
+df
+20
+00
+09
+20
+20
+7c
+a1
+70
+4c
+0b
+04
+20
+40
+05
+9d
+58
+00
+00
+03
+20
+40
+46
+21
+d8
+c0
+4c
+02
+d8
+a0
+4b
+df
+df
+20
+00
+02
+20
+20
+7c
+a1
+70
+4c
+0b
+05
+20
+40
+05
+9d
+58
+00
+00
+02
+67
+e4
+4b
+de
+67
+e4
+4b
+e7
+6f
+e0
+cc
+02
+67
+e0
+cb
+df
+20
+60
+00
+00
+df
+20
+00
+12
+d8
+a0
+4b
+de
+20
+20
+7c
+68
+62
+40
+aa
+55
+40
+00
+00
+40
+09
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+0c
+00
+80
+10
+20
+00
+00
+e4
+91
+96
+18
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+80
+01
+1f
+00
+00
+aa
+55
+08
+00
+bd
+4b
+04
+09
+32
+00
+03
+00
+01
+2c
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+01
+00
+c6
+4b
+01
+aa
+55
+01
+00
+f5
+4b
+01
+aa
+55
+01
+00
+97
+47
+ff
+aa
+55
+01
+00
+96
+47
+1e
+aa
+55
+03
+00
+91
+44
+01
+34
+49
+aa
+55
+01
+00
+36
+49
+ff
+aa
+55
+01
+00
+eb
+41
+01
+aa
+55
+01
+00
+85
+48
+07
+aa
+55
+02
+00
+a1
+48
+c7
+4a
+aa
+55
+02
+00
+0d
+49
+85
+90
+aa
+55
+02
+00
+10
+49
+75
+80
+aa
+55
+01
+00
+0f
+49
+63
+aa
+55
+01
+00
+d2
+48
+7d
+aa
+55
+01
+00
+58
+0b
+ff
+aa
+55
+0b
+00
+36
+4c
+c2
+c1
+85
+84
+83
+82
+81
+80
+c7
+c6
+c4
+aa
+55
+01
+00
+3d
+48
+02
+aa
+55
+05
+00
+94
+48
+01
+0f
+0f
+0f
+0f
+aa
+55
+01
+00
+6d
+48
+00
+aa
+55
+01
+00
+f4
+4b
+02
+aa
+55
+01
+00
+7e
+48
+00
+aa
+55
+01
+00
+0c
+49
+94
+aa
+55
+03
+00
+63
+48
+00
+48
+60
+aa
+55
+02
+00
+ca
+48
+0a
+00
+aa
+55
+02
+00
+c8
+48
+50
+00
+aa
+55
+04
+00
+cc
+4b
+02
+00
+32
+00
+aa
+55
+01
+00
+c7
+49
+02
+aa
+55
+08
+00
+4f
+44
+fb
+00
+48
+08
+fb
+00
+48
+08
+aa
+55
+01
+00
+99
+40
+01
+aa
+55
+01
+00
+77
+41
+20
+aa
+55
+01
+00
+9c
+4b
+20
+aa
+55
+01
+00
+82
+44
+06
+aa
+55
+06
+00
+a8
+40
+32
+ef
+6d
+ac
+24
+54
+aa
+55
+13
+00
+03
+46
+12
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+05
+00
+58
+44
+0e
+00
+01
+00
+02
+aa
+55
+08
+00
+f9
+4b
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+aa
+55
+01
+00
+48
+46
+0a
+aa
+55
+04
+00
+6b
+47
+01
+03
+00
+04
+aa
+55
+01
+00
+95
+47
+01
+aa
+55
+01
+00
+d8
+40
+01
+aa
+55
+06
+00
+7d
+43
+73
+83
+92
+a1
+b1
+c1
+aa
+55
+01
+00
+35
+44
+07
+aa
+55
+02
+00
+02
+4b
+96
+00
+aa
+55
+02
+00
+f9
+4a
+15
+00
+aa
+55
+02
+00
+5a
+43
+19
+00
+aa
+55
+04
+00
+fb
+4a
+1d
+00
+21
+00
+aa
+55
+02
+00
+d4
+43
+28
+00
+aa
+55
+02
+00
+ff
+4a
+30
+00
+aa
+55
+0c
+00
+ea
+43
+1f
+02
+01
+05
+03
+03
+12
+18
+03
+19
+c1
+03
+aa
+55
+14
+00
+e4
+4a
+13
+09
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+15
+00
+0a
+44
+1f
+13
+09
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+13
+00
+fa
+42
+12
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+08
+00
+75
+43
+07
+00
+07
+00
+20
+00
+2c
+01
+aa
+55
+06
+00
+de
+4a
+03
+12
+18
+ff
+00
+00
+aa
+55
+09
+00
+d7
+4f
+41
+70
+70
+6c
+65
+20
+49
+6e
+63
+aa
+55
+02
+00
+d5
+4f
+0a
+18
+aa
+55
+02
+00
+a7
+4f
+c1
+03
+aa
+55
+02
+00
+75
+4d
+bd
+00
+aa
+55
+08
+00
+e1
+4f
+01
+02
+e8
+04
+21
+70
+01
+00
+aa
+55
+02
+00
+56
+4d
+2a
+10
+aa
+55
+01
+00
+ff
+48
+0a
+aa
+55
+01
+00
+05
+49
+01
+aa
+55
+01
+00
+a6
+44
+00
+aa
+55
+02
+00
+da
+4b
+64
+00
+aa
+55
+02
+00
+d8
+4b
+90
+01
+aa
+55
+02
+00
+d6
+4b
+e8
+03
+aa
+55
+01
+00
+d2
+4b
+1e
+aa
+55
+02
+00
+08
+49
+58
+02
+aa
+55
+02
+00
+06
+49
+58
+02
+aa
+55
+02
+00
+d0
+4b
+70
+17
+aa
+55
+01
+00
+0b
+49
+64
+aa
+55
+01
+00
+0a
+49
+64
+aa
+55
+01
+00
+c9
+4b
+64
+aa
+55
+02
+00
+c7
+4b
+00
+40
+aa
+55
+02
+00
+ca
+4b
+00
+40
+aa
+55
+02
+00
+99
+4c
+b8
+0b
+aa
+55
+02
+00
+14
+4c
+58
+02
+aa
+55
+01
+00
+e9
+4f
+01
+aa
+55
+01
+00
+3f
+49
+00
+aa
+55
+01
+00
+c5
+4b
+01
+aa
+55
+01
+00
+40
+49
+33
+aa
+55
+01
+00
+51
+4d
+00
+aa
+55
+01
+00
+24
+49
+13
+aa
+55
+04
+00
+52
+4d
+7f
+06
+29
+14
+aa
+55
+03
+00
+c6
+44
+ff
+ff
+ff
+aa
+55
+02
+00
+19
+49
+ff
+ff
+aa
+55
+01
+00
+1d
+49
+ff
+aa
+55
+06
+00
+28
+49
+13
+80
+81
+ff
+ff
+ff
+aa
+55
+03
+00
+11
+4c
+82
+ff
+80
+aa
+55
+03
+00
+0e
+4c
+08
+14
+07
+aa
+55
+1c
+00
+1a
+4c
+0d
+0a
+0f
+04
+0e
+03
+0b
+09
+80
+05
+c4
+06
+81
+c7
+84
+82
+85
+c2
+12
+10
+11
+c1
+c6
+83
+ff
+ff
+ff
+ff
+aa
+55
+90
+00
+ae
+4c
+48
+00
+00
+00
+e6
+00
+7f
+3e
+14
+2b
+04
+29
+1d
+00
+35
+1e
+1a
+39
+16
+64
+1b
+e5
+3a
+1f
+08
+3c
+07
+3d
+06
+88
+3b
+20
+15
+17
+09
+0a
+19
+05
+22
+21
+18
+1c
+0d
+0b
+10
+11
+23
+24
+0c
+30
+0e
+3f
+36
+87
+2e
+25
+12
+40
+e0
+e3
+37
+e7
+41
+45
+13
+2f
+33
+34
+32
+38
+2d
+27
+47
+2a
+31
+e2
+28
+e6
+42
+43
+89
+e1
+e5
+44
+28
+45
+42
+43
+5f
+5c
+59
+2c
+44
+51
+4c
+00
+60
+5d
+5a
+62
+54
+4f
+49
+00
+61
+5e
+5b
+52
+55
+50
+4b
+4e
+12
+40
+0f
+52
+37
+50
+41
+26
+00
+e2
+e5
+f6
+f7
+f5
+f4
+f1
+fa
+e3
+d1
+d3
+d2
+d4
+f8
+d5
+91
+d0
+e7
+f9
+f3
+fb
+fb
+90
+aa
+55
+13
+00
+5d
+4d
+01
+fb
+ad
+a5
+a6
+a7
+a8
+eb
+e9
+ec
+ed
+ee
+f3
+f4
+a9
+01
+00
+00
+01
+aa
+55
+08
+00
+9e
+00
+00
+00
+08
+00
+00
+00
+00
+00
+aa
+55
+08
+00
+7a
+41
+88
+12
+ce
+70
+3f
+0c
+37
+07
+aa
+55
+03
+00
+83
+41
+9d
+10
+24
+aa
+55
+01
+00
+5c
+41
+00
+aa
+55
+01
+00
+c5
+40
+18
+aa
+55
+01
+00
+d8
+44
+d3
+aa
+55
+01
+00
+d7
+44
+00
+aa
+55
+01
+00
+d6
+44
+29
+aa
+55
+01
+00
+d5
+44
+00
+aa
+55
+05
+00
+ed
+41
+ff
+88
+66
+44
+00
+aa
+55
+01
+00
+94
+44
+0c
+aa
+55
+08
+00
+b5
+40
+24
+00
+00
+02
+24
+00
+00
+02
+aa
+55
+02
+00
+c3
+40
+20
+00
+aa
+55
+04
+00
+bf
+40
+20
+00
+00
+20
+aa
+55
+04
+00
+c6
+40
+80
+04
+00
+0c
+aa
+55
+05
+00
+fe
+45
+09
+0e
+05
+04
+00
+aa
+55
+01
+00
+d4
+44
+7f
+aa
+55
+01
+00
+f2
+41
+ff
+aa
+55
+02
+00
+ca
+40
+f2
+41
+aa
+55
+02
+00
+db
+44
+06
+07
+55
+aa
+aa
+55
+4a
+88
+2c
+a0
Index: debug.exe
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: debug.exe
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: do.bat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/do.bat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/do.bat	(working copy)
@@ -0,0 +1,106 @@
+@set FPGA_PATH=fpgajic\fpga
+@set ROM_PATH=.
+@set MV_PATCH=mv\src\yichip
+@set YC_PATCH_FILE=yc_patch_yc1021.h
+@set enc=1
+@set enckey=0000000000000000
+@rem set device_option=rfbqb
+@set device_option=mouse
+@rem set device_option=shutter
+@rem set device_option=hci
+@rem set device_option=antilost
+@rem set device_option=dongle
+@rem set device_option=module
+@rem set device_option=car
+@rem set device_option=remote_car
+@rem set device_option=mesh
+@echo off
+
+setlocal enabledelayedexpansion
+for %%f in (program\ble_protocol_stack\*.prog) do @set progs=!progs! %%f
+for %%f in (program\g24_protocol_stack\*.prog) do @set progs=!progs! %%f
+for %%f in (program\mesh_protocol_stack\*.prog) do @set progs=!progs! %%f
+for %%f in (program\*.prog) do @if not %%f==program\bt.prog if not %%f==program\patch.prog if not %%f==program\sim.prog set progs=!progs! %%f
+type program\bt.prog %progs% > output\bt_program23.meta
+
+for %%f in (format\ble_protocol_stack\*.format) do set fmts=!fmts! %%f
+for %%f in (format\g24_protocol_stack\*.format) do set fmts=!fmts! %%f
+for %%f in (format\mesh_protocol_stack\*.format) do set fmts=!fmts! %%f
+for %%f in (format\*.format) do @if not %%f==format\bt.format if not %%f==format\command.format set fmts=!fmts! %%f
+type format\bt.format %fmts% format\command.format > output\bt_format.meta
+::perl util/memalloc.pl output/bt_format.meta
+
+if "%device_option%" equ "hci" (
+  copy sched\hci_boot.dat output\sched.rom
+) else if "%device_option%" equ "mouse" (
+  copy sched\keyboard.dat + sched\1307.dat output\sched.rom
+) else if "%device_option%" equ "module" (
+  copy sched\DM_module.dat + sched\1307.dat output\sched.rom
+) else if "%device_option%" equ "shutter" (
+  copy sched\shutter.dat + sched\1307.dat output\sched.rom
+) else if "%device_option%" equ "antilost" (
+  copy sched\antilost.dat + sched\1307.dat output\sched.rom
+) else if "%device_option%" equ "dongle" (
+  copy sched\dongle.dat + sched\1307.dat output\sched.rom
+) else if "%device_option%" equ "car" (
+  copy sched\car.dat + sched\1307.dat output\sched.rom
+) else if "%device_option%" equ "remote_car" (
+  copy sched\remote_car.dat + sched\1307.dat output\sched.rom
+) else if "%device_option%" equ "esl" (
+  copy sched\esl.dat + sched\1307.dat output\sched.rom  
+ ) else if "%device_option%" equ "mesh" (
+  copy sched\mesh.dat + sched\1307.dat output\sched.rom
+) else (
+
+cd ..
+echo **********************************
+echo Error: illegal device_option !
+echo **********************************
+goto end
+) 
+
+perl util/mergepatch.pl 
+
+cd output
+osiuasm bt_program23 -O-W
+
+::geneep -n -k key.dat
+echo no c51 code
+geneep -n 
+::geneep -n -k key.dat -i 
+::echo exist c51 code
+::geneep
+
+::create otp.dat
+cd ..\output
+copy eeprom.dat ..\util\otp1.dat
+cd ..\util
+perl eeprom2otp.pl otp1.dat otp.dat
+copy otp.dat ..\output\otp.dat
+del otp1.dat
+del otp.dat
+
+
+if "%device_option%" equ "mouse" (
+cd ..\output
+copy eeprom.dat ..\util\eeprom.dat
+cd ..\util
+eeprom2fulleeprom.exe eeprom.dat 64>compare2.dat
+crc16.exe compare2.dat 2 >..\output\eeprom.dat
+del eeprom.dat
+del compare2.dat
+cd ..\output
+copy eeprom.dat ..\output\flash.dat 
+
+)
+
+
+if "%device_option%" equ "module" (
+	cd ..\output
+	perl eeprom2hciimage_1021s.pl 
+	 perl bin2array.pl > bt_patch.h
+)
+
+
+:end
+
Index: eotp.bat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/eotp.bat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/eotp.bat	(working copy)
@@ -0,0 +1,6 @@
+call do eep
+e pu
+e 8043 00
+e otp output/otp.dat 0
+e otr 0 20
+e ku
Index: ep.bat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/ep.bat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/ep.bat	(working copy)
@@ -0,0 +1,9 @@
+call do eep
+e pu
+e er 0 10
+e 8070 6c6d
+e ew 0 11223344
+e er 0 10
+e ep
+e er 0 10
+e ku
\ No newline at end of file
Index: format/Hid.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/Hid.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/Hid.format	(working copy)
@@ -0,0 +1,21 @@
+
+(
+/*HID TYPE*/
+0x01 HID_TYPE_CONTROL
+0x04 HID_TYPE_GET_REPORT
+0x05 HID_TYPE_SET_REPORT
+0x07 HID_TYPE_SET_PROTOCOL
+0x09 HID_TYPE_SET_IDLE
+0x0a HID_TYPE_DATA
+/*HID REPORT ID*/
+0x01 HID_REPORT_ID_KB
+
+0x00 HID_CONTROL_P_NOOPERATION
+0x01 HID_CONTROL_P_HARDRESET
+0x02 HID_CONTROL_P_SOFTRESET
+0x03 HID_CONTROL_P_SUSPEND
+0x04 HID_CONTROL_P_EXITSUSPEND
+0x05 HID_CONTROL_P_VIRTUALCABLEUNPLUG
+)
+
+
Index: format/app.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app.format	(working copy)
@@ -0,0 +1,382 @@
+
+memalloc(
+
+/* load code */
+1 mem_ucode_status
+1 mem_spid_tbuf				/* spid buf: 03 addr[23:16] addr[15:8] addr[7:0] */
+0 mem_iicd_tbuf				/* iicd buf: iic_adr addr[15:8] addr[7:0] iic_adr */
+1 mem_addr_hi
+1 mem_addr_mi
+1 mem_addr_lo
+1 mem_iicd_addr
+4 mem_spid_rbuf
+2 mem_ucode_buf
+2 mem_ucode_len
+2 mem_sched_addr
+2 mem_ucode_ptr
+16 mem_ucode_keybuf
+
+1 mem_spid2_tbuf
+1 mem_addr_hi2
+1 mem_addr_mi2
+1 mem_addr_lo2
+4 mem_spid2_rbuf
+1 mem_reconnect_flag
+1 mem_switch_fail_master_count
+1 mem_app_evt_timer_count
+)
+
+xmemalloc(
+1 mem_app_handshake_flag
+2 mem_sniff_param_interval
+2 mem_sniff_param_attempt
+2 mem_sniff_param_timeout
+
+/*App Callback Functons*/
+2 mem_cb_check_wakelock
+2 mem_cb_before_hibernate
+2 mem_cb_before_lpm
+2 mem_cb_le_process
+2 mem_cb_bt_process
+2 mem_cb_idle_process
+2 mem_cb_bb_event_process
+2 mem_cb_discovry_timeout
+2 mem_cb_att_write
+2 mem_cb_ble_transmit
+2 mem_cb_event_timer
+2 mem_cb_bt_set_mult
+2 mem_cb_spi_flash_write_complate
+2 mem_cb_spi2_flash_write_complate
+2 mem_cb_bt_slave_match
+2 mem_cb_before_lpm_sleep
+
+2 mem_eeprom_base
+
+1 mem_unsniff2sniff_timer_count
+//lpm mode
+1 mem_wake_up_delay_timer
+
+1 mem_app_connection_options
+
+//
+2 mem_app_disconn_reason
+2 mem_app_disconn_reason_flag
+1 mem_xrecord_mode
+
+1 mem_eeprom_block_size
+1 mem_spi_init_clk
+1 mem_spi_init_delay_time
+1 mem_spi_ncs_gpio
+
+2 mem_nv_data_ptr
+1 mem_nv_data_number
+
+2 mem_queue_ptr
+
+1 mem_ui_led_struct_num
+2 mem_ui_led_struct_ptr
+
+//adc
+1 mem_adc_wait_count
+2 mem_3v_adc_io_data
+2 mem_2v_adc_hvin_data
+2 mem_2v_adc_vinlpm_data
+2 mem_1v_adc_io_data
+2 mem_3v_adc_hvin_data
+2 mem_3v_adc_vinlpm_data
+1 mem_app_adc_read_count
+1 mem_start_adc_clkn
+2 mem_reference_voltage
+1 mem_adc_config_flag
+1 mem_adc_channel
+2 mem_adc_current_value
+1 mem_adc_power_flag	//bit0:low power falg ; bit1:no power flag
+
+3 mem_spi_write_addr
+2 mem_spi_write_ptr
+2 mem_spi_write_len
+1 mem_spi_write_flash_sm
+3 mem_spi2_write_addr
+2 mem_spi2_write_ptr
+2 mem_spi2_write_len
+1 mem_spi2_write_flash_sm
+
+1 mem_spi_cs_gpio
+1 mem_spi_si_gpio
+1 mem_spi_so_gpio
+1 mem_spi_sclk_gpio
+1 mem_spi_wp_gpio
+1 mem_spi_hold_gpio
+1 mem_spi2_cs_gpio
+1 mem_spi2_si_gpio
+1 mem_spi2_so_gpio
+1 mem_spi2_sclk_gpio
+1 mem_spi2_wp_gpio
+1 mem_spi2_hold_gpio
+
+1 mem_eeprom_wp_gpio
+1 mem_eeprom_scl_gpio
+1 mem_eeprom_sda_gpio
+2 mem_kscan_ptr
+0 mem_key_num_ptr
+2 mem_keyscan_ptr
+2 mem_key_value_retention
+2 mem_power_param_ptr
+3 mem_efuse_header
+
+1 mem_seqi
+
+1 mem_dig_aon_vsel
+1 mem_syn_afc_cfg1
+1 mem_rf_ldo_cfg1
+1 mem_rc_cal
+
+1 mem_nec_decode_error_value
+
+ifdef AC_50HZ
+1 mem_ac_detect_gpio
+0 mem_ac_detect_control
+1 mem_ac_detect_div
+1 mem_ac_detect_window
+endif
+
+1 mem_wdt_always_work
+
+)
+//adc read
+(
+0 ADC_CONFIG_VINLPM
+1 ADC_CONFIG_HVIN
+2 ADC_CONFIG_GPIO
+)
+
+
+(
+0 QUEUE_OFFSET_EACH_SIZE
+1 QUEUE_OFFSET_LENGTH
+2 QUEUE_OFFSET_CURR_NUM
+3 QUEUE_OFFSET_READ_PTR
+4 QUEUE_OFFSET_WRITE_PTR
+5 QUEUE_OFFSET_ELE_INIT_ADDR
+)
+(
+//Flash Register
+0x05 FLASH_READ_SATUS
+
+// Flash Status Register
+0x00 FLASH_STATUS_WIP
+0X01 FLASH_STATUS_WEL
+0X02 FLASH_STATUS_BP0
+0X03 FLASH_STATUS_BP1
+
+//Flash Write Sm
+0X00 FLASH_SM_NO_BUYS
+0X01 FLASH_SM_START
+0X02 FLASH_SM_ERASE_SECTOR
+0X03 FLASH_SM_WAIT_ERASE_SECTOR
+0X04 FLASH_SM_WRITE_DATA
+0X05 FLASH_SM_WAIT_WRITE_DATA
+
+
+//Flash Command
+0x02 FLASH_COMMAND_WRITE_DATA
+0x03 FLASH_COMMAND_READ_DATA
+0x06 FLASH_COMMAND_WRITE_ENABLE
+0x20 FLASH_COMMAND_SECTOR_ERASE
+0xAB FLASH_COMMAND_RELEASE_FROM_POWERDOWN
+0xB9 FLASH_COMMAND_POWERDOWN
+
+)
+
+
+//OTP
+(
+0x0000 OTP_OFFSET_UCODE_FLAG
+0x1fd0 OTP_OFFSET_APP_VDD_SEL
+0X1fd1 OTP_OFFSET_DEVICE_LOCK
+0X1fd2 OTP_OFFSET_PERIPHERALS_LOCK
+0x1fd3 OTP_OFFSET_LOADCODE_DELAY
+0x1fe0 OTP_OFFSET_ADC_PARAM
+0x1ff0 OTP_OFFSET_UCODE_KEY
+
+//LOADCODE
+0 OTP_LOADCODE_OFFSET_UCODE_FLAG
+2 OTP_LOADCODE_OFFSET_APP_VDD_SEL
+3 OTP_LOADCODE_OFFSET_DEVICE_LOCK
+4 OTP_LOADCODE_OFFSET_PERIPHERALS_LOCK
+5 OTP_LOADCODE_OFFSET_LOADCODE_DELAY
+
+//OTP_OFFSET_PERIPHERALS_LOCK
+0 OTP_SPI_LOCK_BIT
+1 OTP_SPI2_LOCK_BIT
+2 OTP_UART_LOCK_BIT
+3 OTP_UARTB_LOCK_BIT
+4 OTP_IIC_LOCK_BIT
+6 OTP_LE_LOCK_BIT
+7 OTP_BR_LOCK_BIT
+)
+
+
+/* data stored in eeprom */
+(
+0	eeprom_nv_ram
+
+)
+
+/*mem_app_handshake_flag*/
+(
+0 APP_HANDSHAKE_NULL
+1 APP_HANDSHAKE_DONE
+
+)
+/*mem_device_option*/
+(
+1 dvc_op_hci
+2 dvc_op_esl
+4 dvc_op_dongle
+5 dvc_op_test
+8 dvc_op_mouse
+9 dvc_op_shutter
+0x0a dvc_op_module
+0x0b dvc_op_ali_mesh
+0x0c dvc_op_hci_boot
+0x0d dvc_op_remote_car
+0x0e dvc_op_car
+0x0f dvc_op_antilost
+   
+)
+
+(
+7 UCODE_FLAG_ENC
+6 UCODE_FLAG_SKIP_EEP
+5 UCODE_FLAG_SKIP_FLASH
+4 UCODE_FLAG_HCI
+)
+
+
+(
+7 gpio_active_bit
+)
+(
+2 HID_HANDSHAKE_TIMEOUT
+
+)
+
+(
+1 APP_FLAG_RECONNECT
+)
+(
+5 LPM_WAKE_UP_DELAY_TIMER
+)
+
+
+//mem_app_disconn_reason
+//mem_app_disconn_reason_flag
+//bit map
+(
+2 APP_DISC_RSN_SIZE
+)
+(
+0 APP_DISC_BY_BUTTON
+1 APP_DISC_AFTER_PAIRING
+2 APP_DISC_AFTER_RECONN
+3 APP_DISC_AFTER_SNIFF
+4 APP_DISC_AFTER_SETUP_DONE
+5 APP_DISC_AFTER_HANDSHAKE
+6 APP_DISC_BT
+7 APP_DISC_BLE
+8 APP_DISC_L2CAP_REFUSED
+9 APP_DISC_SWITCH_FAIL
+)
+//eeprom init flag
+(
+0xaa55 EEPROM_INIT_FLAG
+)
+
+(
+1 KEY_CONF_STRUCT_LEN
+0 KEY_PIN_OFFSET
+)
+
+(
+12000000 PWM_12MHZ
+24000000 PWM_24MHZ
+33000 PWM_33KHZ
+)
+(
+0 POWER_OFF
+1 POWER_STARTING
+2 POWER_STANDBY
+)
+//power parameter offset(8 byte)
+(
+0 power_state_offset
+1 power_timer_offset
+2 power_off_timeout_offset
+3 power_starting_timeout_offset
+4 power_off_cb_offset
+6 power_starting_cb_offset
+8 power_standby_cb_offset
+10 ui_butten_up_cb_offset
+)
+
+//auth rom address
+(
+0x9000 mem_b_box
+0x9100 mem_e_box
+0x9200 mem_l_box
+0x9300 memk
+0x9400 mem_theta
+0x9420 mem_local_sig
+0x9fff mem_sim_slave
+//mouse
+0x9468 MOUSE_BT_SDP_ADDR
+0x9732 MOUSE_BLE_ATT_LIST_ADDR
+//dongle
+0x99A4 USB_KBDATA_VENDOR_DEFINE_ADDR
+0x99BF USB_KBDATA_ADDR
+0x99FF USB_MSDATA_ADDR
+0x9AA3 USB_DEVICEDATA_ADDR
+0x9AB6 USB_CONFDATA_ADDR
+//shutter
+0x9AF2 BLE_SHUTTER_GATT_LIST
+0x9C2B CLASSIC_SHUTTER_SDP_LIST
+0x9E12 BLE_SHUTTER_KEY_VALUE_LIST
+0x9E3A CLASSIC_SHUTTER_KEY_VALUE_LIST
+//car
+0x9E62 BLE_CAR_ATT_LIST
+)
+
+(//NEC 61212
+9000 NEC61212_BOOT_CODE_START_TIME
+4500 NEC61212_BOOT_CODE_END_TIME
+
+9000 NEC61212_REPEAT_START_TIME
+2250 NEC61212_REPEAT_END_TIME
+
+560 NEC61212_DATA_BIT_1_START_TIME
+1690 NEC61212_DATA_BIT_1_END_TIME
+
+560 NEC61212_DATA_BIT_0_START_TIME
+560 NEC61212_DATA_BIT_0_END_TIME
+
+560 NEC61212_STOP_TIME
+
+42580 NEC61212_DATA2REPEAT_TIME
+98190 NEC61212_REPEAT2REPEAT_TIME
+
+0xffff NEC61212_TIMEOUT_TIME
+)
+
+
+(
+0 ADC_GPIO_4
+1 ADC_GPIO_5
+2 ADC_GPIO_6
+3 ADC_GPIO_7
+4 ADC_GPIO_9
+5 ADC_GPIO_10
+6 ADC_GPIO_11
+7 ADC_GPIO_12
+)
+
Index: format/app_antiLost.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_antiLost.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_antiLost.format	(working copy)
@@ -0,0 +1,207 @@
+xmemalloc antilost(
+// memblock for cover the variables portion at shutter.format
+2 mem_antl_lpm_interval
+2 mem_antl_adv_interval
+2 mem_antl_slow_adv_lpm_interval
+2 mem_antl_slow_adv_adv_interval
+0 mem_antl_led_style
+1 mem_antl_led_type
+1 mem_antl_led_blink_count
+1 mem_antl_led_gpio
+2 mem_antl_led_on_time
+2 mem_antl_led_off_time
+2 mem_antl_led_cb_on
+2 mem_antl_led_cb_off
+
+0 mem_antl_buzzer_style
+1 mem_antl_buzzer_type
+1 mem_antl_buzzer_blink_count
+1 mem_antl_buzzer_gpio
+2 mem_antl_buzzer_on_time
+2 mem_antl_buzzer_off_time
+2 mem_antl_buzzer_cb_on
+2 mem_antl_buzzer_cb_off
+
+0 mem_antl_fast_adv_led_style
+1 mem_antl_fast_adv_led_type
+1 mem_antl_fast_adv_led_blink_count
+1 mem_antl_fast_adv_led_gpio
+2 mem_antl_fast_adv_led_on_time
+2 mem_antl_fast_adv_led_off_time
+
+0 mem_antl_slow_adv_led_style
+1 mem_antl_slow_adv_led_type
+1 mem_antl_slow_adv_led_blink_count
+1 mem_antl_slow_adv_led_gpio
+2 mem_antl_slow_adv_led_on_time
+2 mem_antl_slow_adv_led_off_time
+
+0 mem_antl_power_starting_led_style
+1 mem_antl_power_starting_led_type
+1 mem_antl_power_starting_led_blink_count
+1 mem_antl_power_starting_led_gpio
+2 mem_antl_power_starting_led_on_time
+2 mem_antl_power_starting_led_off_time
+
+7 mem_antl_power_starting_buzzer_style
+
+0 mem_antl_power_off_led_style
+1 mem_antl_power_off_led_type
+1 mem_antl_power_off_led_link_count
+1 mem_antl_power_off_led_gpio
+2 mem_antl_power_off_led_on_time
+2 mem_antl_power_off_led_off_time
+
+0 mem_antl_power_off_buzzer_style
+1 mem_antl_power_off_buzzer_type
+1 mem_antl_power_off_buzzer_link_count
+1 mem_antl_power_off_buzzer_gpio
+2 mem_antl_power_off_buzzer_on_time
+2 mem_antl_power_off_buzzer_off_time
+
+7 mem_antl_alert_led_stlye
+
+0 mem_antl_alert_buzzer_stlye
+1 mem_antl_alert_buzzer_type
+1 mem_antl_alert_buzzer_blink_count
+1 mem_antl_alert_buzzer_gpio
+2 mem_antl_alert_buzzer_on_time
+2 mem_antl_alert_buzzer_off_time
+
+0 mem_antl_key_led_style
+1 mem_antl_key_led_type
+1 mem_antl_key_led_blink_count
+1 mem_antl_key_led_gpio
+2 mem_antl_key_led_on_time
+2 mem_antl_key_led_off_time
+
+7 mem_antl_key_buzzer_style
+
+1 mem_antl_queue_width
+1 mem_antl_queue_depth
+1 mem_antl_queue_curr_num
+1 mem_antl_queue_read_ptr
+1 mem_antl_queue_write_ptr
+80 mem_antl_queue_buff
+
+1 mem_antl_key_scan_enable
+1 mem_antl_led_num
+4 mem_antl_led_gpio_map
+
+0 mem_antl_power_param
+1 mem_antl_power_state
+1 mem_antl_power_timer
+1 mem_antl_power_off_timeout
+1 mem_antl_power_starting_timeout
+2 mem_antl_power_off_cb
+2 mem_antl_power_starting_cb
+2 mem_antl_power_standby_cb
+2 mem_event_button_up_cb
+
+1 mem_antl_key_num
+2 mem_cb_antl_key
+4 mem_antl_key_conf0
+
+15 mem_antl_key0_press
+15 mem_antl_key0_release
+
+///////
+1 mem_antl_conn_updata_procedure_state
+2 mem_client_characteristic_configuration_descriptor
+///////
+
+
+//100ms timer
+2 mem_adc_timer
+1 mem_antl_conn_update_timer
+1 mem_antl_send_updata_le_param_timer
+////
+
+2 mem_antl_le_sleep_timer
+2 mem_antl_fast_adv_timer
+2 mem_antl_fast_adv_timeout
+2 mem_antl_le_sleep_timeout
+1 mem_double_click_timer
+1 mem_butten_click_cnt
+
+//1 mem_dvc_seq
+/////////anti lost alarm state/////
+1 mem_antl_led_state
+1 mem_antl_buzzer_state
+1 mem_antl_key_state
+1 mem_antl_lost_mode
+1 mem_alarm_config
+1 mem_alarm_config_notfy_cnt
+
+6 mem_buzzer_pwm_conf
+
+
+/////////anti lost battery adc read////////
+2 mem_adc_timeout
+1 mem_voltage_remain_percent
+
+0 mem_battery_calculate_set
+2 mem_battery_full_voltage
+2 mem_battery_empty_voltage
+2 mem_battery_low_voltage
+2 mem_battery_current_voltage
+
+
+2 mem_rx_window_sniff_inc
+2 mem_interval_increment
+
+2 mem_antl_le_interval_min
+2 mem_antl_le_interval_max
+2 mem_antl_le_latency
+2 mem_antl_le_timeout
+2 mem_antl_le_unnormal_interval_min
+2 mem_antl_le_unnormal_interval_max
+2 mem_antl_le_unnormal_latency
+2 mem_antl_le_unnormal_timeout
+
+400 mem_AntiLost_le_att_list
+1 mem_lestate_update_param_flag
+1 mem_antilost_conn_battery_send_timer
+
+2 mem_antl_disconn_buzzer_on_timer
+2 mem_antl_disconn_buzzer_on_timeout
+)
+
+//app new specific
+(
+0 CONN_PARAM_UPDATA_PROCEDURE_NO_INIT
+1 CONN_PARAM_UPDATA_PROCEDURE_STARTING
+2 CONN_PARAM_UPDATA_PROCEDURE_COMPLETE
+3 CONN_PARAM_UPDATA_PROCEDURE_FAILD
+)
+(
+0 NEW_SPEC_HEADER_OFFSET
+2 NEW_SPEC_OPCODE_OFFSET
+3 NEW_SPEC_DLEGTH_OFFSET  //data length offset
+5 NEW_SPEC_DADDR_OFFSET   //data address offset
+)
+(
+1 OPCODE1_BUTTEN_CLICK_ONCE
+2 OPCODE2_BUTTEN_DOUBLE_CLICK
+3 OPCODE3_ANTL_START_ALRAM
+4 OPCODE4_CURRENT_ALARM_STATE
+5 OPCODE5_BATTER_INFORMATION
+7 OPCODE7_ANTL_CONFIG_ALRAM
+)
+(
+0x0a NEW_SPEC_NOTIFY_HANDLE
+0x0b NEW_SPEC_NOTIFICATION_ENABLE_HANDLE
+0x0d NEW_SPEC_WRITE_HANDLE
+)
+//app new specific end
+
+//mem_anti_lost_mode
+(
+0x01 ANTI_LE_ALARM_ON
+0x00 ANTI_LE_ALARM_OFF
+)
+(
+0 NOTIFICATION_ENABLE_BIT
+1 INDICATION_ENABLE_BIT
+)
+
Index: format/app_car.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_car.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_car.format	(working copy)
@@ -0,0 +1,326 @@
+
+
+xmemalloc g24_rx_car(
+1 mem_car_hard_soft_switch
+1 mem_car_queue_each_size
+1 mem_car__queue_length
+
+1 mem_car_queue_curr_num
+1 mem_car_queue_read_ptr
+1 mem_car_queue_write_ptr
+120 mem_car_queue_ele
+
+20 mem_car_pop_queue_buff
+
+1 mem_car_led_num
+10 mem_car_led_map
+
+1 mem_car_style1_led_type
+1 mem_car_style1_blink_count
+1 mem_car_style1_struct_led_gpio
+2 mem_car_style1_on_time
+2 mem_car_style1_off_time
+2 mem_car_style1_cb_ledon
+2 mem_car_style1_cb_ledoff
+
+1 mem_car_style2_led_type
+1 mem_car_style2_blink_count
+1 mem_car_style2_struct_led_gpio
+2 mem_car_style2_on_time
+2 mem_car_style2_off_time
+2 mem_car_style2_cb_ledon
+2 mem_car_style2_cb_ledoff
+
+//////motor
+0 mem_le_receive_data
+2 mem_le_receive_packet_head
+1 mem_le_receive_cmd
+2 mem_le_receive_length
+10 mem_le_receive_payload
+1 mem_le_receive_checksum
+1 mem_motor1_status
+1 mem_motor1_speed
+1 mem_motor2_status
+1 mem_motor2_speed
+1 mem_motor3_status
+1 mem_motor3_speed
+
+0 mem_motor1_pwm_set
+1 mem_motor1_pwm_pin1_set
+1 mem_motor1_pwm_pin2_set
+1 mem_motor1_pwm_pin_set
+1 mem_motor1_pwm_channel_set
+3 mem_motor1_pwm_freq_set
+1 mem_motor1_pwm_dute_set
+0 mem_motor2_pwm_set
+1 mem_motor2_pwm_pin1_set
+1 mem_motor2_pwm_pin2_set
+1 mem_motor2_pwm_pin_set
+1 mem_motor2_pwm_channel_set
+3 mem_motor2_pwm_freq_set
+1 mem_motor2_pwm_dute_set
+0 mem_motor3_pwm_set
+1 mem_motor3_pwm_pin1_set
+1 mem_motor3_pwm_pin2_set
+1 mem_motor3_pwm_pin_set
+1 mem_motor3_pwm_channel_set
+3 mem_motor3_pwm_freq_set
+1 mem_motor3_pwm_dute_set
+
+1 mem_motor_select_p_n
+1 mem_car_motor_status
+1 mem_car_motor_speed
+0 mem_motor_pwm_set
+1 mem_motor_pwm_pin1_set
+1 mem_motor_pwm_pin2_set
+1 mem_motor_pwm_pin_set
+1 mem_motor_pwm_channel_set
+3 mem_motor_pwm_freq_set
+1 mem_motor_pwm_dute_set
+
+1 mem_ir_rx_gpio
+2 mem_ir_data
+2 mem_ir_rx_buf
+4 mem_ir_receive_clkn
+
+3 mem_ir_notify_data
+5 mem_ir_notify_data_head
+2 mem_ir_notify_data_payload
+1 mem_ir_notify_data_check_sum
+1 mem_car_ir_breakdown_check_timer
+1 mem_car_ir_breakdown_flag
+
+0 mem_car_led_control
+1 mem_car_led1_status
+1 mem_car_led2_status
+1 mem_car_led3_status
+1 mem_car_led4_status
+1 mem_car_led5_status
+1 mem_car_led6_status
+1 mem_car_led7_status
+1 mem_car_led8_status
+1 mem_car_led_control_timer
+1 mem_car_led_blink_status
+1 mem_car_led_no
+
+3 mem_car_info_request
+5 mem_car_info_request_head
+8 mem_car_info_request_payload
+1 mem_car_info_request_checksum
+
+0 mem_car_config_param
+1 mem_car_config_setting_flag
+1 mem_car_config_device_select
+1 mem_car_config_motor_layout
+1 mem_car_config_ir_enable
+1 mem_car_config_ir_rx_gpio
+1 mem_car_config_pairing_led_conn_status
+1 mem_car_config_pairing_led_gpio
+1 mem_car_config_led_num
+0 mem_car_config_blood_led_gpio
+1 mem_car_config_blood_led1_gpio
+1 mem_car_config_blood_led2_gpio
+1 mem_car_config_blood_led3_gpio
+1 mem_car_config_blood_led4_gpio
+1 mem_car_config_blood_led5_gpio
+1 mem_car_config_blood_led6_gpio
+1 mem_car_config_blood_led7_gpio
+1 mem_car_config_blood_led8_gpio
+1 mem_car_config_bat_notify_enable
+1 mem_car_config_low_voltage_led_gpio
+1 mem_car_config_low_voltage_percent
+1 mem_car_config_soft_switch_enable
+1 mem_car_config_soft_switch_gpio
+
+1 mem_car_notify_vdd_count
+1 mem_car_notify_vdd_timer
+1 mem_car_notify_vdd_value_last
+1 mem_car_notify_vdd_percent
+1 mem_car_working_flag
+1 mem_low_bat_flag
+
+3 mem_notify_bat_packet
+5 mem_notify_bat_head
+1 mem_notify_bat_payload
+1 mem_notify_bat_check_sum
+
+1 mem_vdd_notify_flag
+2 mem_car_current_vdd_value_temp
+2 mem_car_last_vdd_value
+
+0 mem_vdd_calculate_set
+2 mem_vdd_full_vol
+2 mem_vdd_empty_vol
+2 mem_vdd_low_vol
+2 mem_vdd_now_vol
+
+
+1 mem_car_24g_status
+2 mem_car_24g_no_data_timeout_count
+2 mem_car_24g_no_data_timeout_timer
+
+1 mem_car_24g_ir_receive_attack_count
+1 mem_car_24g_go_die_flag
+1 mem_car_attack_shake_timer
+1 mem_car_attack_shake_flag
+
+0 mem_car_soft_power
+1 mem_car_power_state
+1 mem_car_power_timer
+1 mem_car_power_off_timeout
+1 mem_car_power_starting_timeout
+2 mem_car_power_off_cb
+2 mem_car_power_starting_cb
+2 mem_car_power_standby_cb
+2 mem_car_ui_button_up_cb
+
+
+500 mem_car_le_att_list
+
+1 mem_car_moto1_blank_timer
+1 mem_car_moto2_blank_timer
+1 mem_car_moto3_blank_timer
+
+1 mem_car_motor_gpio_num
+0 mem_car_motor_gpio_map
+1 mem_car_motor_left_gpio
+1 mem_car_motor_right_gpio
+1 mem_car_motor_front_gpio
+1 mem_car_motor_back_gpio
+1 mem_car_gpio
+1 mem_car_app_send_speed
+
+2 mem_rssi_sum
+2 mem_check_rssi_high_count
+8 mem_rssi_data
+
+1 mem_car_24g_received_pac
+1 mem_car_24g_bind_enable_delay_count
+
+0 mem_car_keyscan
+1 mem_car_key_num
+2 mem_cb_car_keyscan
+
+2 mem_car_enter_lpm_timer_count
+2 mem_car_enter_lpm_timer
+1 mem_car_enter_lpm_flag
+
+1 mem_car_24g_ch_polling
+
+8 mem_car_rssi_noise_buffer
+8 mem_car_rssi_noise_car_buffer
+8 mem_car_rssi_noise_remote_buffer
+
+
+)
+
+(
+//20ms
+0x0020	FAST_ADV_INTERVAL_VALUE_CAR
+)
+
+(
+0x14 ATT_CAR_CONTROL_HANDLE
+0x14 ATT_SPEED_SET_HANDLE
+)
+
+
+(
+0 TURN_FRONT
+1 TURN_LEFT
+2 TURN_RIGHT
+0 MOTOR_STOP
+1 GO_FRONT
+2 GO_BACK
+0x6b5a LE_RECEIVE_PACKET_HEAD
+)
+
+(
+0 FLAG_IR_DISABLE
+1 FLAG_IR_ENABLE
+)
+
+(
+0 DEVICE_CAR
+1 DEVICE_TANK
+2 DEVICE_BATTLE_CAR
+3 DEVICE_BATTLE_TANK
+4 DEVICE_REMOTE
+)
+
+(
+0 F_B_MOTOR
+1 L_R_MOTOR
+2 F_B_BATTERY
+3 L_R_BATTERY
+)
+
+(
+0 CAR_WORK	   		//connect mode normal
+1 CAR_BIND			//code pair mode
+2 CAR_TEST			//test mode
+3 CAR_CODE			//PC_application
+4 CAR_PCBA			//PCBA_TEST
+5 CAR_DEBUG
+6 CAR_MODE_MAX
+7 CAR_SEARCH
+)
+
+(
+1 SPEED_LEVEL_1
+2 SPEED_LEVEL_2
+3 SPEED_LEVEL_3
+4 SPEED_LEVEL_4
+5 SPEED_LEVEL_5
+6 SPEED_LEVEL_6
+7 SPEED_LEVEL_7
+8 SPEED_LEVEL_8
+9 SPEED_LEVEL_9
+10 SPEED_LEVEL_10
+)
+
+(
+0 PWM0_DUTY_SETTING
+1 PWM1_DUTY_SETTING
+2 PWM2_DUTY_SETTING
+)
+
+(
+1 CAR_CMD_BATTERY
+2 CAR_CMD_OLD_CAR_CONTROL
+3 CAR_CMD_OLD_SPEED_CONTROL
+4 CAR_CMD_L_R_MOTOR_CONTROL
+5 CAR_CMD_F_B_MOTOR_CONTROL
+6 CAR_CMD_IR_CONTROL
+7 CAR_CMD_LED_CONTROL
+8 CAR_CMD_DEVICE_INFO
+)
+
+(
+0 CAR_REMOTE_CHECK_BUTTON
+1 CAR_REMOTE_CHECK_ROCKER
+)
+
+(
+0x11 CAR_NOTIFY_HANDLE
+)
+
+(
+0 LED_OFF
+1 LED_ON
+2 LED_BLINK
+0xFF LED_INVALID
+)
+
+(
+0xFF INVALID_PIN_NUM
+)
+
+
+(
+0 POWER_ON
+1 WORK_PAIRED
+2 WORK_SEARCH
+)
+
+
Index: format/app_dongle.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_dongle.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_dongle.format	(working copy)
@@ -0,0 +1,135 @@
+
+memalloc usb_dongle(
+256 mem_dg_rssi_noise_buffer
+256 mem_dg_rssi_noise_dg_buffer
+256 mem_dg_rssi_noise_ms_buffer
+256 mem_dg_rssi_noise_kb_buffer
+
+)
+
+
+xmemalloc g24_rx_dongle(
+1 mem_dg_kb_bind_flag
+8 mem_dg_kb_data_sta_data
+8 mem_dg_kb_data_last_data
+3 mem_dg_kb_multikey_sta_data
+3 mem_dg_kb_multikey_last_data
+3 mem_dg_kb_system_sta_data
+3 mem_dg_kb_system_last_data
+1 mem_dg_kb_blank_data_enable
+1 mem_dg_kb_mul_blank_data_enable
+1 mem_dg_ms_blank_data_enable
+
+1 mem_dg_sys_config
+9 mem_dg_usb_vid_pid
+1 mem_dg_usb_tx_interval
+30 mem_dg_usb_device_name
+1 mem_dg_kb_bind_success
+1 mem_dg_pc_sleep_flag
+)
+
+
+//otp address offset
+(
+0x5A DONGLE_KB_BIND_SUCCESS
+0x1fdf DONGLE_KB_BIND_EFUSE_OFFECT
+)
+
+(
+5 WORK_MODE_DELAY
+7 BIND_MODE_DELAY
+)
+
+(
+0 DONGLE_WORK	   		//connect mode normal
+1 DONGLE_BIND			//code pair mode
+2 DONGLE_TEST			//test mode
+3 DONGLE_CODE			//PC_application
+4 DONGLE_PCBA			//PCBA_TEST
+5 DONGLE_DEBUG
+6 DONGLE_MODE_MAX
+7 DONGLE_SEARCH
+0 CLEAR_INIT
+)
+
+
+(
+0xa0 COMMAND_MODE     //BYTE 0
+0x81 COM_MODE_BIND	//BYTE 1
+0x82 COM_MODE_TEST	//BYTE 1
+)
+(
+0xa1 COMMAND_BIND		//BYTE 0
+0x01 COM_BIND_GET		//1
+0x84 COM_BIND_EXIT		//1
+0xa7 COM_READ_MODE		//1
+)
+(
+0xa2 COMMAND_TEST	//BYTE 0
+0x81 COM_TEST_SC		//	进入单载波
+0x82 COM_TEST_CD		// fcc测试
+0x83 COM_TEST_DAT		// 数据测试
+0x84 COM_TEST_LOW_CH  //低频点
+0x85 COM_TEST_MID_CH	//中频点
+0x86 COM_TEST_HIG_CH	//高频点
+0x87 COM_TEST_SW_HIG	//自动切换频点为高 1mhz
+0x88 COIM_TEST_SW_LOW	//自动切换频点为低 1mhz
+0x89 COM_TEST_SW_STOP	//停止自动切换频点
+0x8a COM_TEST_POW_5		//设置输出功率5dbm
+0x8b COM_TEST_POW_0		//0dbm
+0x8c COM_TEST_POW_N5		//-5dbm
+0x8d COM_TEST_POW_N10		//-10dbm
+0x8e COM_TEST_EXIT			//退出测试模式
+)
+(
+0xa6 COMMAND_CURRENT_PROJECT
+0xa7 COMMAND_CURRENT_MODE
+0xa9 COMMAND_CURRENT_FW_VERSION
+0xb0 COMMAND_USER_DEFINED		//user defined cmd
+)
+
+(
+0x15 PRODUCT_ID
+0 FW_VERSION0
+0 FW_VERSION1
+1 FW_VERSION2
+7 FW_VERSION3
+)
+
+(
+8 TIMER_NODATA
+640 TIMER_NODATA_DELAY	//200ms
+
+11 TIMER_MS_BLANK
+384 TIMER_MS_BLANK_DELAY
+
+12 TIMER_KB_MUL_BLANK
+384 TIMER_KB_MUL_BLANK_DELAY
+
+14 TIMER_KB_BLANK
+384 TIMER_KB_BLANK_DELAY
+)
+
+(
+0 KB_NORMAL_REPORT_ID
+1 MS_REPORT_ID
+2 KB_SYSTEM_CONCTRL_REPORT_ID
+3 KB_MULTIKEY_REPORT_ID
+)
+
+
+(
+0x01 BIND_ACKPAYLOAD
+0x03 KB_LED_ACKPAYLOAD
+)
+
+//mem_dg_sys_config
+(
+7 DG_ENABLE_XTAL_24M
+6 DG_ENABLE_NEW_CHMAP
+5 DG_ENABLE_EEPROM
+4 DG_ENABLE_KB_ICON
+//bit3-0
+//tx power
+)
+
Index: format/app_module.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_module.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_module.format	(working copy)
@@ -0,0 +1,289 @@
+
+memalloc module(
+	//ble
+	2 mem_module_le_rx_data_len
+	2 mem_module_le_rx_data_address
+	2 mem_module_le_rx_data_handle
+
+ifdef COMPILE_WECHAT
+	0 mem_wechat_tx_buffer
+	1 mem_wechat_tx_bMagicNumber
+	1 mem_wechat_tx_bVer
+	2 mem_wechat_tx_nLength
+	2 mem_wechat_tx_nCmdId
+	2 mem_wechat_tx_nSeq1
+	255 mem_wechat_tx_payload
+
+	0 mem_wechat_rx_buffer
+	1 mem_wechat_rx_bMagicNumber
+	1 mem_wechat_rx_bVer
+	2 mem_wechat_rx_nLength
+	2 mem_wechat_rx_nCmdId
+	2 mem_wechat_rx_nSeq
+	255 mem_wechat_rx_payload
+
+	255 mem_module_wechat_local_data_buffer
+
+endif
+)
+
+xmemalloc module(	
+	2 mem_soft_version_num
+	1 mem_module_wake_up_gpio
+	1 mem_module_state_gpio
+	1 mem_module_connect_state_gpio
+
+	2 mem_current_packet_length
+	1 mem_module_state
+	
+	1 mem_module_mcu_wake_pin
+	4 mem_module_mcu_wake_delay_us
+
+	1 mem_module_spp_lpm_mult
+	1 mem_module_le_lpm_mult	
+	1 mem_module_bluetooth_stauts_by_command
+
+	//uart
+	2 mem_module_uart_rx_buffer
+	2 mem_module_uart_rx_buffer_end
+	2 mem_module_uart_tx_buffer
+	2 mem_module_uart_tx_buffer_end
+	2 mem_module_uarta_baud_rate
+
+	//ADC
+	1 mem_module_read_vdd_flag
+	1 mem_module_read_vdd_count
+	1 mem_module_vdd_quotient
+	1 mem_module_vdd_remainder
+
+	//ble
+	1 mem_module_ble_data_uart_max_length
+
+	//flag
+	2 mem_module_flag
+
+	1 mem_module_hci_notify_len
+	2 mem_module_hci_notify_handle
+	2 mem_module_hci_nofiy_addr
+	1 mem_module_hci_notify_type
+
+	4 mem_last_transmite_clock
+
+ifdef COMPILE_WECHAT
+	1 mem_module_wechat_indication_handle
+	1 mem_module_wechat_write_handle
+	2 mem_module_wechat_tx_buffer_ptr
+	2 mem_module_wechat_rx_buffer_ptr
+	2 mem_module_wechat_rx_push_data_cb
+	2 mem_module_wechat_tx_nSeq
+	2 mem_module_wechat_tx_len
+	2 mem_module_wechat_tx_address
+	2 mem_module_wechat_rx_len
+	2 mem_module_wechat_rx_address
+	1 mem_module_wechat_receive_push_data
+endif
+	
+	300 mem_module_uuid_list
+	0 mem_module_uuid_list_end
+	600 mem_module_le_att_list
+	0 mem_module_le_att_list_end
+	0 mem_module_nv_data
+	34 mem_module_nv_data0
+	34 mem_module_nv_data1
+	34 mem_module_nv_data2
+	34 mem_module_nv_data3
+	34 mem_module_nv_data4
+	0 mem_module_nv_data_end
+)
+
+
+(//mem_module_flag
+//bit0~bit7 config module function
+0 MODULE_FLAG_UART_FLOW_CONTROL
+1 MODULE_FLAG_BLE_SEND_MTU23
+2 MODULE_FLAG_BLE_DATA_ENCRYPT
+
+//bit8~bit15 module states change
+8 MODULE_FLAG_BLE_DATA_FINISH
+9 MOUDLE_TASK_UNSNIFF
+10 MOUDLE_TASK_SNIFF
+
+)
+
+(
+34 NV_DATA_LEN
+-1 DECREASED_ONE
+)
+
+
+
+(
+	5 FLAG_MODULE_READ_VDD_COUNT
+)
+
+(
+	0x200 UART_AIR_CONTROL_THRESHOLD
+)
+
+(
+0x01 HCI_DISCARD_PACKET
+0x00 HCI_NOT_DISCARD_PACKET
+)
+
+
+
+(//Command
+0x00 HCI_CMD_SET_BT_ADDR_REQ
+0x01 HCI_CMD_SET_LE_ADDR_REQ
+0x02 HCI_CMD_SET_VISIBILITY_REQ
+0x03 HCI_CMD_SET_BT_NAME_REQ
+0x04 HCI_CMD_SET_LE_NAME_REQ
+0x05 HCI_CMD_SPP_DATA_REQ
+0x09 HCI_CMD_LE_DATA_REQ
+0x0b HCI_CMD_STATUS_IRQ
+0x0c HCI_CMD_SET_PAIRING_REQ
+0x0d HCI_CMD_SET_PINCODE_REQ
+0x0e HCI_CMD_SET_UARTCONTROL_REQ
+0x0f HCI_CMD_SET_UART_BAUD_REQ
+0x10 HCI_CMD_VERSION_REQ
+0x11 HCI_CMD_BT_DISCONNECT
+0x12 HCI_CMD_BLE_DISCONNECT
+0x13 HCI_CMD_DELETE_DEVICE
+0x14 HCI_CMD_CREATE_CONNECT
+0x15 HCI_CMD_SET_COD
+0x26 HCI_CMD_SET_NVRAM_REQ
+0x27 HCI_CMD_SLEEP
+0x28 HCI_CMD_CONFIRM_GKEY
+0x29 HCI_CMD_SET_CREDIT_GIVEN
+0x2a HCI_CMD_AUTO_ADV_SCAN
+0x2b HCI_CMD_POWER_REQ
+0x2c HCI_CMD_POWER_SET
+0x30 HCI_CMD_PASSKEY_ENTRY
+0x31 HCI_CMD_SET_GPIO
+0x32 HCI_CMD_READ_GPIO
+0x33 HCI_CMD_LE_SET_PAIRING
+0x34 HCI_CMD_LE_SET_ADV_DATA
+0x35 HCI_CMD_LE_SET_SCAN_DATA
+0x36 HCI_CMD_LE_SEND_CONN_UPDATE_REQ
+0x37 HCI_CMD_LE_SET_ADV_PARM
+0x38 HCI_CMD_LE_START_PAIRING
+0x40 HCI_CMD_SET_WAKE_GPIO
+0x42 HCI_CMD_SET_TX_POWER
+0x43 HCI_CMD_BOOT_VERSION_REQ
+0x48 HCI_CMD_LE_CONFIRM_GKEY
+0x49 HCI_CMD_REJECT_JUSTWORK
+0x51 HCI_CMD_RESET_CHIP_REQ
+
+0x61 HCI_CMD_LE_SET_FIXED_PASSKEY
+
+0x76 HCI_CMD_DELETE_CUSTOMIZE_SERVICE
+0x77 HCI_CMD_ADD_SERVICE_UUID
+0x78 HCI_CMD_ADD_CHARACTERISTIC_UUID
+0x7a HCI_CMD_PASSKEY_ENTRY_INPUT
+
+0x90 HCI_CMD_BLE_SET_PHY
+0x91 HCI_CMD_BLE_READ_CURRENT_PHY
+0x92 HCI_CMD_BLE_SET_DLE
+0x93 HCI_CMD_READ_CHIP_DATA
+0x94 HCI_CMD_WRITE_CHIP_DATA
+ifdef COMPILE_WECHAT
+0x95 HCI_CMD_WECHAT_SEND_DATA
+endif
+0xff HCI_CMD_CLOSE_LPM
+)
+
+(//event
+0x00 HCI_EVENT_SPP_CONN_REP
+0x01 HCI_EVENT_HID_CONN_REP
+0x02 HCI_EVENT_LE_CONN_REP
+0x03 HCI_EVENT_SPP_DIS_REP
+0x04 HCI_EVENT_HID_DIS_REP
+0x05 HCI_EVENT_LE_DIS_REP
+0x06 HCI_EVENT_CMD_RES
+0x07 HCI_EVENT_SPP_DATA_REP
+0x08 HCI_EVENT_LE_DATA_REP
+0x09 HCI_EVENT_STANDBY_REP
+
+0x0a HCI_EVENT_STATUS_RES
+
+0x0D HCI_EVENT_NVRAM_REP
+0x0e HCI_EVENT_GKEY
+0x0F HCI_EVENT_INVALID_PACKET
+0x10 HCI_EVENT_GET_PASSKEY
+0x11 HCI_EVENT_LE_TK
+0x12 HCI_EVENT_REMOTE_MTU
+0x14 HCI_EVENT_LE_PAIRING_STATE
+0X15 HCI_EVENT_LE_ENCRYPTION_STATE
+0x17 HCI_EVENT_LE_CONNECTION_UPDATE
+0x1d HCI_EVENT_LE_GKEY
+0x29 HCI_EVENT_UUID_HANDLE
+0x2b HCI_EVENT_LE_INPUT_GKEY
+
+0x40 HCI_BLE_UPDATE_PHY_EVENT
+ifdef COMPILE_WECHAT
+0x41 HCI_BLE_WECHAT_RECEIVE_PUSH_DATA
+endif
+)
+
+
+(//command HCI_CMD_SET_GPIO
+//byte 0
+0x00 HCI_CMD_CONFIG_GPIO_INPUT
+0x01 HCI_CMD_CONFIG_GPIO_OUTPUT
+//byte 1 input state
+0x00 GPIO_INPUT_PULLUP
+0x01 GPIO_INPUT_PULLDOWN
+0x02 GPIO_INPUT_HIGH_IMPEDANCE
+)
+
+
+
+(
+0x7e0 OTP_ADDR_RF_PARAM_FIX
+//struct of RF_PARAM_FIX
+// uint8       //length = param_pair_count * 2 
+// uint16     //param-pair-1
+// uint16     //param-pair-2
+// uint16     //param-pair-3
+// uint16     //param-pair-4
+// uint16     //param-pair-5
+// uint16     //param-pair-6
+// uint16     //param-pair-7
+)
+
+(
+0	BR_PAIRING_MODE_PINCODE
+1	BR_PAIRING_MODE_JUSTWORK
+2	BR_PAIRING_MODE_PASSKEY
+3	BR_PAIRING_MODE_NUMERIC
+
+0x81 BR_PAIRING_MODE_SECURE_CONNECT_JUSTWORK
+0x82 BR_PAIRING_MODE_SECURE_CONNECT_PASSKEY
+0x83 BR_PAIRING_MODE_SECURE_CONNECT_NUMERIC
+)
+
+
+(
+0x0001	FLAG_BT_PAIRING_SUCCESS
+0x0101	FLAG_BT_PAIRING_FAIL
+0x0080	FLAG_BLE_PAIRING_SUCCESS
+0x0180	FLAG_BLE_PAIRING_FAIL
+)
+
+
+(
+1	FLAG_EVENT_START_ENC
+0	FLAG_EVENT_PAUSE_ENC
+)
+
+(
+0 MOUDLE_STATE_BT_BIT
+1 MOUDLE_STATE_BLE_BIT
+)
+
+(
+5 BIT_OF_NOTIFY_AUTHENTICATED
+6 BIT_OF_READ_AUTHENTICATED
+7 BIT_OF_WRITE_AUTHENTICATED
+)
+
Index: format/app_mouse.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_mouse.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_mouse.format	(working copy)
@@ -0,0 +1,735 @@
+
+memalloc mouse(
+2 mem_init_cnt
+2 mem_data_pre
+2 mem_data_current
+3 mem_data_sum
+2 mem_data_value
+
+
+)
+//dpi eeprom addr
+
+
+xmemalloc g24_tx_mouse(
+// Mouse Work Area
+1 mem_mouse_key
+2 mem_mouse_x
+2 mem_mouse_y
+1 mem_mouse_z
+1 mem_mouse_tz
+1 mem_mouse_xy_h
+1 mem_mouse_key_last
+
+//mouse wheel
+1 mem_wheel_tb_old_pinlevel
+1 mem_wheel_tb_new_pinlevel
+1 mem_wheel_tog 
+1 mem_mouse_tz_data
+1 mem_mwheel_b_old_pinlevel
+1 mem_mwheel_b_new_pinlevel
+1 mem_mwheel_tog 
+1 mem_mouse_z_data
+1 mem_mouse_wheel_trigger
+1 mem_mouse_wheel_trigger_timer
+
+// adc
+//adc struct
+0 mem_mouse_vdd_calculate_set
+2 mem_mouse_vdd_full_vol
+2 mem_mouse_vdd_empty_vol
+2 mem_mouse_vdd_low_vol
+2 mem_mouse_vdd_now_vol
+
+2 mem_mouse_vdd_button_press_vol
+2 mem_mouse_vdd_switch_gnd_24g_vol
+2 mem_mouse_vdd_switch_gnd_full_vol
+2 mem_mouse_vdd_switch_gnd_shutdown_voltage
+2 mem_mouse_vdd_switch_gnd_low_voltage
+1 mem_adc_mux_status
+1 mem_adc_read_timer
+1 mem_adc_read_time_init
+1 mem_adc_low_volatage_led_timer_count
+1 mem_adc_low_volatage_led_blink_enable
+1 mem_mouse_adc_last_low_voltage_flag
+1 mem_mouse_adc_button_press_flag
+1 mem_adc_channel_gpio
+
+1 mem_adc_config_flag_init
+
+2 mem_mouse_discovery_timeout
+2 mem_mouse_24g_pair_timeout_init
+1 mem_mouse_direct_timeout
+1 mem_mouse_24g_reconn_timeout_init
+1 mem_mouse_24g_pair_tx_power
+1 mem_rssi_dis_min_24g_init
+1 mem_rssi_dis_max_24g_init
+1 mem_rssi_hex_received_max_value_init
+1 mem_rssi_dis_min_ble_init
+1 mem_rssi_dis_max_ble_init
+1 mem_mouse_enable_flag
+
+0 mem_mouse_param_config
+1 mem_lbutton_gpio
+1 mem_mbutton_gpio
+1 mem_rbutton_gpio
+1 mem_bk_button_gpio
+1 mem_fw_button_gpio
+1 mem_dpi_button_gpio
+1 mem_whee_a_data_gpio
+1 mem_whee_b_data_gpio
+1 mem_mouse_sensor_sclk_gpio
+1 mem_mouse_sensor_sdio_gpio
+1 mem_select_sensor_angle_gpio
+1 mem_sensor_angle_default
+1 mem_sensor_angle_switch
+1 mem_config_sensor_dpi	
+1 mem_whee_ta_data_gpio
+1 mem_whee_tb_data_gpio
+1 mem_matrix_public_gpio
+1 mem_config_select_device_button_gpio
+1 mem_customer_key_gpio
+1 mem_sensor_motion_gpio
+1 mem_device_switch_gpio
+1 mem_mouse_reuse_2ice_gpio
+1 mem_config_low_voltage_alarm_gpio
+1 mem_config_device_24g_led_gpio
+1 mem_config_device_bt1_led_gpio
+1 mem_config_device_bt2_led_gpio	
+1 mem_dpi_led_gpio 
+0 mem_mouse_param_config_end
+
+1 mem_config_sensor_type
+1 mem_config_sensor_angle
+
+// usb
+1 mem_wire_usb_interval
+1 mem_usb_addr
+1 mem_mouse_usb_vdd_status
+1 mem_mouse_usb_keyboard_flag
+
+
+//led struct
+1 mem_mouse_led_type
+1 mem_mouse_blink_count
+1 mem_mouse_struct_led_gpio
+2 mem_mouse_on_time
+2 mem_mouse_off_time
+2 mem_mouse_cb_ledon
+2 mem_mouse_cb_ledoff
+
+//three devices param
+//eeprom/flash
+0 mem_mouse_information_start
+1 mem_device_flag
+1 mem_device1_type
+6 mem_device1_addr
+16 mem_device1_link_key
+6 mem_device1_locall_addr
+
+1 mem_device2_type
+6 mem_device2_addr
+16 mem_device2_link_key
+6 mem_device2_locall_addr
+
+1 mem_device3_type
+0 mem_mouse_compare_addr_ff
+6 mem_device3_addr
+16 mem_device3_link_key
+6 mem_device3_locall_addr
+2 mem_store_flag
+1 mem_mouse_dpi
+4 mem_mouse_24g_addr
+2 mem_random_addr_increase_count
+31 mem_mouse_retention
+0 mem_mouse_information_end
+
+3 mem_flash_base
+4 mem_write_flash_head_temp
+1 mem_store_information_delay_timer
+1 mem_store_information_delay_timer_init
+
+//sensor param
+1 mem_sensor_id1
+1 mem_sensor_id2
+
+1 mem_sensor_shutter_hi
+1 mem_sensor_shutter_lo
+1 mem_sensor_smart_flag
+1 mem_sensor_squal_reg
+1 mem_sensor_iqc
+1 mem_mouse_move_flag
+
+1 mem_mouse_asm_flag
+2 mem_mouse_x_pre
+2 mem_mouse_y_pre
+1 mem_mouse_data_xtemp
+1 mem_mouse_data_ytemp
+
+0 mem_mouse_dpi_seting
+1 mem_320x_dpi_0
+1 mem_320x_dpi_1
+1 mem_320x_dpi_2
+1 mem_320x_dpi_3
+1 mem_3212_dpi_0
+1 mem_3212_dpi_1
+1 mem_3212_dpi_2
+1 mem_3212_dpi_3
+1 mem_ka8g2_dpi_0
+1 mem_ka8g2_dpi_1
+1 mem_ka8g2_dpi_2
+1 mem_ka8g2_dpi_3
+1 mem_mouse_cpi_count
+1 mem_mouse_dpi_button_state
+1 mem_mouse_dpi_long_press_flag
+
+10 mem_sensor_3212_init
+10 mem_sensor_3204_init
+10 mem_sensor_3205_init
+26 mem_sensor_32xx_init
+34 mem_sensor_32xx_init_1
+38 mem_sensor_8650_init
+30 mem_sensor_ka8ul_init
+16 mem_sensor_8009_init
+22 mem_sensor_ka8g2_init
+12 mem_sensor_p6520_init
+8 mem_sensor_poweron_init
+	
+1 mem_mouse_clear_sensor_data_flag
+1 mem_bluetooth_125hz_cnt
+
+//no motion pin
+1 mem_mouse_long_mult_flag
+1 mem_mouse_current_mult_timer
+
+1 mem_reconn_times
+1 mem_reconn_times_init
+2 mem_mouse_no_data_timer
+1 mem_device_flag_temp
+8 mem_mouse_rssi_signal_buf				
+4 mem_btclk_sensor
+1 mem_mouse_bluetooth_fast_conn_flag
+2 mem_mouse_discovery_timer
+1 mem_mouse_bluetooth_reconnect_timeout
+1 mem_mouse_need_soft_reset
+
+// le
+1 mem_mouse_le_bb_connected_flag
+1 mem_mouse_le_reconnect_flag
+1 mem_mouse_send_secutiry_request_timer
+
+3 mem_mouse_le_lap_temp
+3 mem_le_adv_ind
+3 mem_le_adv_direct_ind
+20 mem_le_adv_swift_pair
+1 mem_le_data_len
+2 mem_le_keyboard_handle
+2 mem_le_multimedia_handle
+2 mem_le_systemctrl_handle
+2 mem_le_battery_level_handle
+1 mem_le_battery_level_percentage
+2 mem_le_battery_level_updata_timer_init
+2 mem_le_battery_level_updata_timer
+1 mem_mouse_le_conn_param_reject
+32 mem_le_tx_buffer0_omemalloc
+32 mem_le_tx_buffer1_omemalloc
+32 mem_le_tx_buffer2_omemalloc
+32 mem_le_tx_buffer3_omemalloc
+1 mem_le_connect_status_flag
+1 mem_le_start_encrypt_timer
+1 mem_mouse_direct_timer
+
+//bt
+7 mem_device_addr_temp
+1 mem_mouse_enter_sniff_count
+1 mem_mouse_bt_boot_mode
+5 mem_mouse_bt_boot_data
+1 mem_bt_send_max_slot_req_accept_after_switch
+1 mem_mouse_bt_send_first_package_timer
+1 mem_mouse_bt_send_first_package_flag
+1 mem_lmi_opcode_temp 
+1 mem_lpm_mult_init
+
+// mouse key
+1 mem_customer_key
+1 mem_customer_data_trigger
+1 mem_customer_data_trigger_last
+
+1 mem_mouse_lkey_press_status
+1 mem_mouse_rkey_press_status
+1 mem_mouse_mkey_press_status
+1 mem_mouse_bkkey_press_status
+1 mem_mouse_fwkey_press_status
+1 mem_mouse_dpikey_press_status
+1 mem_mouse_pbkey_press_status
+1 mem_mouse_customerkey_press_status
+1 mem_mouse_key_temp
+1 mem_mouse_key_status
+
+1 mem_mouse_matrix_key_cow_count
+1 mem_mouse_matrix_key_row_count
+1 mem_mouse_ghost_flag
+1 mem_bt_discovery_count
+1 mem_select_device_count
+1 mem_mouse_commbination_key
+1 mem_select_device_button_statue
+1 mem_commbination_key_statue
+1 mem_combination_ui_button_count
+
+// 2.4G
+1 mem_mouse_search_dongle_interval
+1 mem_mouse_search_dongle_ch
+1 mem_mouse_search_dongle_count
+1 mem_mouse_search_dongle_action
+1 mem_24g_enter_lpm_timer
+1 mem_mouse_24g_enter_lpm_enable
+
+//led
+1 mem_mouse_device_poweron_timer_count
+1 mem_mouse_dpi_led_delay_count
+1 mem_mouse_led_off_4_led
+1 mem_24g_device_led_status
+
+// mouse configured param
+8 mem_mouse_flag 
+1 mem_mouse_bluetooth_type
+1 mem_device_number
+2 mem_mouse_page_to
+1 mem_mouse_fast_direct_timeout
+2 mem_mouse_fast_page_to
+2 mem_mouse_24g_power_on_fast_conn_timer
+2 mem_mouse_24g_search_dongle_time_init
+2 mem_mouse_no_data_timeout
+
+1 mem_mouse_device_poweron_timer_count_init
+1 mem_mouse_dpi_led_delay_count_init
+2 mem_mouse_dpi_led_blink_time
+2 mem_mouse_disconvey_led_blink_time
+2 mem_mouse_low_v_led_blink_time
+2 mem_adc_low_volatage_led_blink_timer
+
+1 mem_mouse_commbination_key_bt
+1 mem_mouse_commbination_key_24g
+
+9 mem_customer_key_press
+9 mem_customer_key_release
+3 mem_mouse_set_high_impedance_bit_set
+
+1 mem_sensor_shutdown_flag
+1 mem_24g_long_sleep_set_level
+
+// patch area
+1 mem_power_on_flag
+2 mem_24g_pair_count
+1 mem_24g_pair_time_out
+
+8 mem_mouse_factory_addr
+
+10 mem_keyboard_tx_data
+1 mem_keyboard_data_send_flag
+
+//le conn param update
+1 mem_mouse_le_send_conn_param_update
+1 mem_mouse_le_send_conn_param_update_timer
+
+1 mem_mcu_stb_gpio
+1 mem_mcu_clk_gpio
+1 mem_mcu_rstb_gpio
+
+1 mem_keyboard_caps_led_gpio
+1 mem_keyboard_num_led_gpio
+1 mem_keyboard_power_led_gpio
+2 mem_keyboard_caps_led_on_timer
+1 mem_keyboard_mode_led_on_timer
+
+1 mem_keyboard_led_r_gpio
+1 mem_keyboard_led_g_gpio
+1 mem_keyboard_led_b_gpio
+
+8 mem_key_row_gpio
+20 mem_key_col_gpio
+12 mem_key_excol_gpio
+2 mem_kb_row_ptr
+2 mem_kb_col_ptr
+2 mem_kb_excol_ptr
+
+20 mem_keyscan_value_current
+20 mem_keyscan_value_check
+20 mem_keyscan_value_old
+11 mem_keyscan_exmcu_value
+2 mem_keyscan_value_ptr
+2 mem_keyscan_exmcu_value_ptr
+1 mem_keyscan_value_temp
+1 mem_keyscan_col_loop_count
+2 mem_keyscan_exmcu_wait_wake_count
+1 mem_keyscan_exmcu_reset_count
+
+1 mem_same_keyvalue_timerout_flag
+2 mem_same_keyvalue_timer_init
+2 mem_same_keyvalue_timer
+
+1 mem_keyboard_current_col_press_key_count
+1 mem_keyboard_all_press_key_count
+1 mem_keyboard_same_row_press_key_count
+1 mem_keyboard_ghost_flag
+1 mem_keyboard_data_change_flag
+1 mem_keyboard_keyvalue_temp
+1 mem_keyboard_press_flag_temp
+1 mem_keyboard_keyvalue_bit_loop_count
+9 mem_keyboard_keyvalue_buffer
+160 mem_keyboard_keyvalue_map
+
+1 mem_keyboard_fn_flag
+1 mem_keyboard_control_key_flag
+1 mem_keyboard_bt_button_flag
+1 mem_keyboard_pairing_type
+2 mem_keyboard_commbination_key_bt
+2 mem_keyboard_commbination_key_24g
+2 mem_keyboard_commbination_fast_conn_bt
+1 mem_24g_repeat_send_flag
+1 mem_keyboard_led_status
+1 mem_keyboard_led_status_get
+1 mem_keyboard_led_status_get_timer
+1 mem_keyboard_led_status_get_timer_last
+
+0 mem_keyboard_fn_esc_f1_f12
+1 mem_keyboard_fn_first
+1 mem_keyboard_fn_esc
+1 mem_keyboard_fn_f1
+1 mem_keyboard_fn_f2
+1 mem_keyboard_fn_f3
+1 mem_keyboard_fn_f4
+1 mem_keyboard_fn_f5
+1 mem_keyboard_fn_f6
+1 mem_keyboard_fn_f7
+1 mem_keyboard_fn_f8
+1 mem_keyboard_fn_f9
+1 mem_keyboard_fn_f10
+1 mem_keyboard_fn_f11
+1 mem_keyboard_fn_f12
+1 mem_keyboard_fn_del
+
+1 mem_keyboard_fn_arrow_enable_flag
+1 mem_keyboard_fn_left_ctrl_enable_flag
+1 mem_keyboard_fn_space_enable_flag
+1 mem_keyboard_fn_system_switch_enable_flag
+
+1 mem_keyboard_commbination_key_step
+1 mem_keyboard_commbination_control_key_value
+1 mem_keyboard_commbination_standard_key_value
+1 mem_keyboard_commbination_control_key_delay_release_timer
+
+1 mem_keyboard_consumer_key_status
+2 mem_keyboard_le_map_len
+340 mem_keyboard_ui_uuid_table
+220 mem_keyboard_le_hid_map
+2 mem_keybord_appearance
+
+1 mem_kb_computer_system
+24 mem_otp_read_retention_memory
+2 mem_otp_read_retention_offset
+
+16 mem_le_search_service_uuid
+1 mem_le_connect_ios_mac_flag
+2 mem_le_search_mac_uuid
+9 mem_le_search_mac_manu_name
+1 mem_le_start_auto_reco_timer
+1 mem_keyboard_change_vid_pid_flag
+1 mem_keybaord_pnp_vid_source
+2 mem_keyboard_vid
+2 mem_keyboard_pid
+2 mem_keyboard_product_version
+1 mem_keyboard_commbination_long_press_timer_init
+1 mem_keyboard_commbination_long_press_timer
+1 mem_keyboard_commbination_long_press_flag
+)
+
+
+(
+//combination
+0x01 MOUSE_L_BUTTON
+0X02 MOUSE_R_BUTTON
+0x03 MOUSE_LR_BUTTON
+0X04 MOUSE_M_BUTTON
+0X05 MOUSE_LM_BUTTON
+0X06 MOUSE_RM_BUTTON
+0X07 MOUSE_LMR_BUTTON
+0x09 MOUSE_L_BK_BUTTON
+0x14 MOUSE_M_FW_BUTTON
+0X18 MOUSE_BK_FW_BUTTON
+//mouse default gpio
+0x1B MOUSE_DEFAULT_XA_GPIO
+0x1C MOUSE_DEFAULT_XB_GPIO
+
+//ui led blink
+0X00C8  LED_RECONNECT_BLINK //200
+0X0190  LED_DPI_BLINK //400
+0X03E8  LED_DPI_BLINK_FIXED    //1000
+0X03E8  LED_DISCOVERY_BLINK    //1000
+0XFF    LED_LONG_BLINK
+0x05	LED_SENSOR_BLINK_CNT
+//mode device number
+0x00 MODE_24G_DEVICE
+0x01 MODE_BT_DEVICE1
+0x02 MODE_BT_DEVICE2
+0x03 MODE_BT_DEVICE3
+//mouse  flag
+0X00 WRITE_REQ_ENABLE_FLAG
+0X01 LL_START_ENC_FLAG
+0X02 LL_PAIRING_SUCCESS_FLAG
+
+
+//mouse_function_flag
+0x08 MOUSE_FLAG_LEN
+//byte 1
+0x00 MOUSE_SELECT_DEVICE_FLAG
+0x01 MOUSE_24G_PAIRING_FLAG
+0x02 MOUSE_STORE_EEPROM_FLAG
+0x03 MOUSE_BT_CANNEL_RECONN_FLAG
+0x04 MOUSE_LOW_VOLTAGE_FLAG
+0x05 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+0x06 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+
+//byte 2
+0x08 MOUSE_ENABLE_BLE_RANDOM_ADDRE
+0x09 MOUSE_ENABLE_2K_EEPROM
+0x0a MOUSE_ENABLE_INIT_DELAY
+0x0b MOUSE_ENABLE_WAKEUP_FROM_POWER
+0x0c MOUSE_ENABLE_16M
+0x0d MOUSE_ENABLE_USB
+
+//byte 3
+0x10 MOUSE_ENABLE_SPI2
+0x11 MOUSE_ENABLE_24G
+0x12 MOUSE_ENABLE_FLASH
+0x13 MOUSE_ENABLE_EEPROM
+0x14 MOUSE_ENABLE_ADC
+0x15 MOUSE_ENABLE_KEYBOARD
+0x16 MOUSE_ENABLE_24G_SEARCH_DONGLE
+
+//byte 4
+0x18 MOUSE_ENABLE_24G_250Hz
+0x19 MOUSE_ENABLE_24G_500Hz
+0x1a MOUSE_ENABLE_24G_1000
+0x1b MOUSE_ENABLE_BT_125Hz
+0x1c MOUSE_ENABLE_DPI_LEVEL_4
+0x1d MOUSE_ENABLE_USB_250
+0x1e MOUSE_ENABLE_USB_500
+0x1f MOUSE_ENABLE_USB_1000
+
+//byte 5
+0x20 MOUSE_ENABLE_POWER_ON_LED
+0x21 MOUSE_ENABLE_LOW_VOLTAGE_LED
+0x22 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED
+0x23 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND
+0x24 MOUSE_ENABLE_4_LED
+0x25 MOUSE_ENABLE_DPI_FOR_4_LED
+0x26 MOUSE_ENABLE_BT2_FOR_4_LED
+0x27 MOUSE_ENABLE_LOW_V_FOR_4_LED
+
+
+//byte 6
+0x28 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+0x29 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON
+0x2a MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO
+0x2b MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
+0x2c MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+0x2d MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
+0x2e MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+0x2f MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
+//byte 7 
+0x30 MOUSE_ENABLE_AUTO_24G_PARING
+0x31 MOUSE_ENABLE_24G_POWER_ON_PAIRING
+0x32 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+0x33 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY
+0x34 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+0x35 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+0x36 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+0x37 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
+
+//byte 8
+0x38 MOUSE_ENABLE_SMOOTHER
+0x39 MOUSE_ENABLE_XY_OFFSET
+0x3a MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
+0x3b MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
+0x3c MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
+0x3d MOUSE_ENABLE_OTP
+
+//mouse dpi level
+0x00 MOUSE_DPI_LEVEL1
+0x01 MOUSE_DPI_LEVEL2
+0x02 MOUSE_DPI_LEVEL3
+0x03 MOUSE_DPI_LEVEL4
+
+
+//mouse sensor angle
+0x00 MOUSE_6CLK_ANGLE
+0X01 MOUSE_9CLK_ANGLE
+0X02 MOUSE_12CLK_ANGLE
+0X03 MOUSE_3CLK_ANGLE
+
+
+
+0xFF GPIO_DISABLE
+
+//DPI button state 
+0x00 DPI_BUTTON_STATE_UP
+0x01 DPI_BUTTON_STATE_DOWN
+
+
+//PB button state 
+0x00 PB_BUTTON_STATE_UP
+0x01 PB_BUTTON_STATE_DOWN
+
+//Commbination_key state 
+0x00 COMMBINATION_KEY_STATE_UP
+0x01 COMMBINATION_KEY_STATE_DOWN
+
+
+//eeprom address offect
+0X00 MOUSE_INFO_EEPROM_OFFECT
+0x58 MOUSE_STORE_FLAG
+0X5A MOUSE_DPI_EEPROM_OFFECT	//1byte
+0X5B MOUSE_G24_ADDR_EEPROM_OFFECT	//4bytes
+0X5F MOUSE_RANDOM_ADDR_COUNT_EEPROM_OFFSET	//2bytes
+0X61 MOUSE_EEPROM_MODULE_INIT_FLAG
+
+// Sensor id number
+0x30 P32XX_ID1
+0x31 P3065_ID1
+0x02 P3212_ID2
+0xD1 P3205_TJ3T_ID2
+0XD2 P3204_TJ3L_ID2
+0x54 PKA8_ID2
+0x70 P3065_XY_ID2
+0x00 P3065_ID2
+0x5a P_MX8650
+0xD8 P8009_ID2
+0x50 P6520A_ID2
+0x58 PKA8G2_ID1
+0x59 PKA8G2_ID2
+
+
+//Sensor type
+0X00 P3205
+0X01 P3065
+0X02 P3204
+0X03 P3212
+0X04 P3065_XY
+0x05 MX8650
+0x06 P8009
+0x07 P6520
+0X08 KA8
+0X09 KA8_UL
+0X0a KA8_HD
+0X0b KA8G2
+
+
+//SENSOR REG
+0x00 PAN_REG_PID_L
+0x01 PAN_REG_PID_H
+0x02 PAN_REG_MOTION_STAUS
+0x03 PAN_REG_DELTA_X
+0x04 PAN_REG_DELTA_Y
+0x05 PAN_REG_OPRATION_MODE
+0x06 PAN_REG_CONFIG
+0x07 PAN_REG_IMAGE_QUALITY
+0x08 PAN_REG_OPRATION_STATE
+0x09 PAN_REG_WRITE_PROTECT
+0x0A PAN_REG_SLEEP_1
+0x0B PAN_REG_ENTER_TIME
+0x0C PAN_REG_SLEEP_2
+0x0D PAN_REG_IMAGE_THRESHOLD
+0x0E PAN_REG_IMAGE_RECGNITION
+
+
+0x06 MOUSE_DPI_ADDRESS
+0x05 MOUSE_P3610_DPI_ADDRESS
+0x0D MOUSE_P3212_DPI_XADDRESS
+0x0E MOUSE_P3212_DPI_YADDRESS
+
+)
+
+(
+0x01 ADV_FLAG_LIMITED_DISCOVERABLE
+0x04 ADV_FLAG_BREDR_NOT_SUPPORTED
+)
+
+(
+2 BIT_POWER_ON
+)
+//device option low 2
+(
+0 MODE_3_MOUSE
+1 MODE_4_MOUSE
+)
+
+
+(
+10 LE_LPM_DISABLE_TO
+1 LE_LPM_DISABLE
+0 LE_LPM_ENABLE
+
+12 LE_INTERVAL_15MS
+9 LE_INTERVAL_11_25MS//11.25ms
+7 LE_INTERVAL_8_75MS//8.75ms
+6 LE_INTERVAL_7_5MS//7.5ms
+12 CLASSIC_INTERVAL_7_5MS
+14 CLASSIC_INTERVAL_8_75MS
+18 CLASSIC_INTERVAL_11_25MS
+)
+
+(
+0x00 MOUSE_L_KEY
+0x01 MOUSE_R_KEY
+0x02 MOUSE_M_KEY
+0x03 MOUSE_BK_KEY
+0x04 MOUSE_FW_KEY
+0x05 MOUSE_DPI_KEY
+0x06 MOUSE_PB_KEY
+0x07 MOUSE_CUSTOMER_KEY
+)
+
+
+(
+0 G24_DISCONN_STATE
+1 G24_CONN_STATE
+
+8 G24_CH_NUMBER
+16 G24_CH_POLL_COUNT
+)
+
+(
+0 MOUSE_ADC_CHECK_BATTERY_ONLY
+1 MOUSE_ADC_CHECK_MULTIPLE
+2 MOUSE_ADC_CHECK_GPIO_MULTIPLE
+3 MOUSE_ADC_CHECK_VINLPM_MULTIPLE
+)
+
+
+(
+0x5a MOUSE_USB_INTERFACE_INSERT
+0xa5 MOUSE_USB_INTERFACE_REMOVE
+)
+
+(
+0x10 MOUSE_BLE_L2CAP_TXBUFF_SIZE
+)
+
+(
+0x08 KB_ROW_GPIO_NUM
+0x0b KB_MCU_COL_GPIO_NUM
+)
+
+(
+0 MOUSE_ADC_ENABLE
+1 MOUSE_SEARCH_DONGLE_ENABLE
+2 MOUSE_24G_250HZ_ENABLE
+3 MOUSE_CLK_16M_ENABLE
+4 MOUSE_DPI_4_LEVEL_ENABLE
+5 MOUSE_KEYBOARD_ENABLE
+
+7 MOUSE_DEVICE_NUMBER_FLAG
+)
+
+
Index: format/app_remote_car.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_remote_car.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_remote_car.format	(working copy)
@@ -0,0 +1,159 @@
+
+xmemalloc g24_tx_remote(
+1 mem_remote_car_hard_soft_switch
+
+1 mem_remote_car_queue_each_size
+1 mem_remote_car_queue_length
+
+1 mem_remote_car_queue_curr_num
+1 mem_remote_car_queue_read_ptr
+1 mem_remote_car_queue_write_ptr
+90 mem_remote_car_queue_ele
+
+1 mem_remote_style_led_type
+1 mem_remote_style_blink_count
+1 mem_remote_style_struct_led_gpio
+2 mem_remote_style_on_time
+2 mem_remote_style_off_time
+2 mem_remote_style_cb_ledon
+2 mem_remote_style_cb_ledoff
+
+
+1 mem_remote_car_led_num
+8 mem_remote_car_led_map
+
+0 mem_remote_car_keyscan
+1 mem_remote_car_key_num
+2 mem_cb_remote_car_keyscan
+
+0 mem_remote_car_key_conf0
+1 mem_remote_car_key_conf0_pin
+0 mem_remote_car_key_conf1
+1 mem_remote_car_key_conf1_pin
+0 mem_remote_car_key_conf2
+1 mem_remote_car_key_conf2_pin
+0 mem_remote_car_key_conf3
+1 mem_remote_car_key_conf3_pin
+0 mem_remote_car_key_conf4
+1 mem_remote_car_key_conf4_pin
+0 mem_remote_car_key_conf5
+1 mem_remote_car_key_conf5_pin
+0 mem_remote_car_key_conf6
+1 mem_remote_car_key_conf6_pin
+
+
+//rocker
+1 mem_rocker_negative_flag
+1 mem_rocker_work_status
+2 mem_current_vdd_value_default_mid_x
+2 mem_current_vdd_value_default_mid_y
+2 mem_current_vdd_value_default_mid_temp
+2 mem_current_vdd_default_range
+2 mem_rocker_last_status
+0 mem_rocker_status
+1 mem_rocker_x_status
+1 mem_rocker_y_status
+
+0 mem_remote_car_config_param
+1 mem_remote_car_config_setting_flag
+1 mem_remote_car_config_key_map
+1 mem_remote_car_config_layout
+1 mem_remote_car_config_connect_led_gpio
+1 mem_remote_car_config_check_way
+1 mem_remote_car_config_soft_switch_enable
+1 mem_remote_car_config_soft_switch_gpio
+1 mem_remote_car_config_timeout_shutdown_enable
+
+0 mem_remote_car_24g_motor_packet
+1 mem_remote_car_24g_motor_packet_lenght
+2 mem_remote_car_24g_motor_send_packet_head
+1 mem_remote_car_24g_motor_send_cmd
+2 mem_remote_car_24g_motor_send_length
+0 mem_remote_car_24g_motor_send_payload
+2 mem_remote_car_24g_motor1_payload
+2 mem_remote_car_24g_motor2_payload
+2 mem_remote_car_24g_motor3_payload
+1 mem_remote_car_24g_motor_send_checksum
+
+0 mem_remote_car_24g_fire_packet
+1 mem_remote_car_24g_fire_packet_lenght
+2 mem_remote_car_24g_fire_send_packet_head
+1 mem_remote_car_24g_fire_send_cmd
+2 mem_remote_car_24g_fire_send_length
+2 mem_remote_car_24g_fire_send_payload
+1 mem_remote_car_24g_fire_send_checksum
+
+15 mem_remote_car_24g_tx_temp
+
+2 mem_remote_car_no_data_timeout
+2 mem_remote_car_no_data_timer
+
+0 mem_remote_car_soft_power
+1 mem_remote_car_power_state
+1 mem_remote_car_power_timer
+1 mem_remote_car_power_off_timeout
+1 mem_remote_car_power_starting_timeout
+2 mem_remote_car_power_off_cb
+2 mem_remote_car_power_starting_cb
+2 mem_remote_car_power_standby_cb
+
+1 mem_remote_key_status
+1 mem_remote_car_24g_status
+
+1 mem_remote_car_24g_auto_work_step
+1 mem_remote_car_24g_pair_success_flag
+1 mem_remote_car_empty_packet
+
+1 mem_remote_car_motor1_key0_press_state
+1 mem_remote_car_motor1_key1_press_state
+1 mem_remote_car_motor2_key2_press_state
+1 mem_remote_car_motor2_key3_press_state
+1 mem_remote_car_motor1_rel_state
+1 mem_remote_car_motor2_rel_state
+
+1 mem_remote_car_no_data_check
+)
+
+
+(
+// eeprom config
+0xb0 REMOTE_PARAM_EEPROM_CONFIG_ADDR
+//eeprom address offect
+0X00 REMOTE_INFO_EEPROM_OFFECT
+
+)
+
+
+(
+0x00 CONTROL_F_B_MOTOR
+0x02 CONTROL_L_R_MOTOR
+)
+
+(
+0x00 KEY_MAP_TEN
+0x01 KEY_MAP_LR
+)
+
+(
+0x00 CONTROL_F_B_TEN
+0x02 CONTROL_L_R_TEN
+0x03 CONTROL_L_R_LR
+)
+
+(
+0 KEY_CHECK
+1 ROCKER_CHECK
+)
+
+(
+1 MOTOR_POSITIVE
+2 MOTOR_NEGATIVE
+)
+
+(
+0 ROCKER_MIDDLE_KEY
+1 ROCKER_POSITIVE_KEY
+2 ROCKER_NEGATIVE_KEY
+)
+
+
Index: format/app_shutter.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_shutter.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/app_shutter.format	(working copy)
@@ -0,0 +1,242 @@
+
+
+xmemalloc shutter(
+
+////////////////////////////////////
+//shutter common config
+1 mem_shutter_bluetooth_type
+////////////////////////////////////
+
+2 mem_shutter_config_eeprom_offset_addr
+
+////////
+2 mem_shutter_config_eeprom_start_flag
+1 mem_shutter_config_user_size
+///////
+1 mem_shutter_config_label
+2 mem_shutter_config_otp_addr
+///////////////////////////////////
+
+////////////////////////////////////
+//classic shutter config
+1 mem_classic_shutter_cable_unplug_conut
+1 mem_classic_shutter_hid_disconn_count
+2 mem_classic_shutter_random_mac_offset_addr
+////////////////////////////////////
+
+////////////////////////////////////
+//ble shutter config
+1 mem_ble_shutter_enable_notify
+2 mem_ble_shutter_reconn_adv_interval
+2 mem_ble_shutter_discovery_adv_interval
+2 mem_ble_shutter_reconn_timeout
+2 mem_ble_shutter_reconn_timer
+2 mem_ble_shutter_reconn_blink_on_time
+2 mem_ble_shutter_reconn_blink_off_time
+2 mem_ble_shutter_discovery_blink_on_time
+2 mem_ble_shutter_discovery_blink_off_time
+
+2 mem_ble_shutter_interval_min
+2 mem_ble_shutter_interval_max
+2 mem_ble_shutter_latency
+2 mem_ble_shutter_timeout
+
+2 mem_ble_shutter_interval_min_new
+2 mem_ble_shutter_interval_max_new
+2 mem_ble_shutter_latency_new
+2 mem_ble_shutter_timeout_new
+
+//////////////////shutter sleep timeout//////////////////
+2 mem_classic_shutter_discovery_timeout
+2 mem_classic_shutter_connect_timeout
+2 mem_ble_shutter_discovery_timeout
+2 mem_ble_shutter_connect_timeout
+2 mem_shutter_sleep_timeout
+2 mem_shutter_sleep_timer
+
+/////////////////////////////////////////////////////////////////
+1 mem_shutter_hard_soft_switch_case
+1 mem_shutter_soft_switch_button_gpio
+1 mem_shutter_soft_switch_power_state
+1 mem_shutter_soft_switch_poweron_time
+1 mem_shutter_soft_switch_poweroff_time
+2 mem_shutter_soft_switch_poweron_callback_function
+2 mem_shutter_soft_switch_poweroff_callback_function
+
+
+0 mem_shutter_keyscan
+1 mem_shutter_key_num
+2 mem_cb_shutter_keycan
+1 mem_shutter_key_conf0
+1 mem_shutter_key_conf1
+1 mem_shutter_key_conf2
+1 mem_shutter_key_conf3
+1 mem_shutter_key_conf4
+1 mem_shutter_key_conf5
+1 mem_shutter_key_conf6
+1 mem_shutter_key_conf7
+
+
+5 mem_key0_press
+5 mem_key1_press
+5 mem_key2_press
+5 mem_key3_press
+5 mem_key4_press
+5 mem_key5_press
+5 mem_key6_press
+5 mem_key7_press
+
+5 mem_key0_release	
+5 mem_key1_release
+5 mem_key2_release
+5 mem_key3_release
+5 mem_key4_release
+5 mem_key5_release
+5 mem_key6_release
+5 mem_key7_release
+
+5 mem_ble_data_buffer1
+5 mem_ble_data_buffer2
+5 mem_ble_data_buffer3
+5 mem_ble_data_buffer4
+5 mem_ble_data_buffer5
+5 mem_ble_data_buffer6
+5 mem_ble_data_buffer7
+5 mem_ble_data_buffer8
+50 mem_ble_data_buffer9_58
+
+5 mem_classic_data_buffer
+
+5 mem_classic_data_buffer1
+5 mem_classic_data_buffer2
+5 mem_classic_data_buffer3
+5 mem_classic_data_buffer4
+5 mem_classic_data_buffer5
+5 mem_classic_data_buffer6
+5 mem_classic_data_buffer7
+5 mem_classic_data_buffer8
+50 mem_classic_data_buffer9_58
+
+1 mem_queue_each_size
+1 mem_queue_length
+1 mem_queue_curr_num
+1 mem_queue_read_ptr
+1 mem_queue_write_ptr
+32 mem_queue_ele
+
+
+170 mem_shutter_nv_data
+
+0 mem_shutter_led_struct_app_led
+1 mem_shutter_led_struct_app_led_type
+1 mem_shutter_led_struct_app_led_blink_count
+1 mem_shutter_led_struct_app_led_gpio
+2 mem_shutter_led_struct_app_led_on_time
+2 mem_shutter_led_struct_app_led_off_time
+2 mem_shutter_led_struct_app_led_on_callback
+2 mem_shutter_led_struct_app_led_off_callback
+
+0 mem_shutter_power_off_led_style
+1 mem_shutter_power_off_led_style_type
+1 mem_shutter_power_off_led_style_blink_count
+1 mem_shutter_power_off_led_style_gpio
+2 mem_shutter_power_off_led_style_on_time
+2 mem_shutter_power_off_led_style_off_time
+2 mem_shutter_power_off_led_style_on_callback
+2 mem_shutter_power_off_led_style_off_callback
+
+1 mem_shutter_soft_swtich_botton_down
+11 mem_shutter_soft_swtich_led_struct_temp
+1 mem_shutter_power_off_timeout
+1 mem_shutter_power_off_timer
+2 mem_shutter_key_conf0_temp
+1 mem_shutter_led_struct_app_led_gpio_temp
+1 mem_shutter_hard_soft_switch_case_temp
+1 mem_shutter_soft_switch_button_gpio_temp
+)
+
+
+
+
+(
+0 BLE_SHUTTER
+1 CLASSIC_SHUTTER
+)
+
+(
+0x0000 NVRAM_EEPROM_OFFSET
+)
+
+(
+0x1b3a SHUTTER_EEPROM_CONFIG_CRC
+)
+
+(
+5 MAX_QUEUE_NUM
+5 SHUTTER_BLE_DATA_BUFFER
+5 SHUTTER_CLASSIC_DATA_BUFFER
+)
+
+
+(
+0x13	GATT_CONSUMER_NOTIFY_HANDLE
+0x14	GATT_CONSUMER_WRITE_HANDLE
+0x17	GATT_KEYBOARD_NOTIFY_HANDLE
+0x18	GATT_KEYBOARD_WRITE_HANDLE
+)
+
+(
+//20ms
+0x0020	FAST_ADV_INTERVAL_VALUE
+//100ms
+0x00a0	SLOW_ADV_INTERVAL_VALUE
+)
+
+
+(
+0 ATT_BIT_NOTIFICATION
+1 ATT_BIT_INDICATION
+)
+///////////////////////////////////////////////////////////////////////////////////////
+
+(
+0 HARD_SWITCH
+1 SOFT_SWITCH
+)
+
+
+(
+1  FLAG_SHUTTER_HID_DISCONN_TIMEOUT
+5 FLAG_SHUTTER_CABLE_UNPLUG_TIMEOUT
+)
+
+(//Data Rom Buffer Addr
+313		BLE_GATT_LIST_SIZE
+487		BT_SDP_LIST_SIZE
+40		BLE_KEY_VALUE_LIST_SIZE
+40		BT_KEY_VALUE_LIST_SIZE
+)
+
+
+(//soft switch power state
+0		SS_STATE_POWER_UP
+1		SS_STATE_POWER_ON
+2		SS_STATE_POWER_OFF
+)
+
+(
+0		SS_POWER_STATE_OFFSET
+1		SS_POWER_ON_TIME
+2		SS_POWER_OFF_TIME
+3		SS_POWER_ON_CB
+5		SS_POWER_OFF_CB
+
+)
+
+(
+
+0x4FFE SIM_IIC_SCL_GPIO_NUM
+0x4FFF SIM_IIC_SDA_GPIO_NUM
+
+)
+
Index: format/ble_protocol_stack/le.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le.format	(working copy)
@@ -0,0 +1,437 @@
+
+memalloc(
+260 mem_le_rxbuf
+
+/* security temp */
+4 mem_le_mic
+4 mem_le_peer_mic
+//8 mem_le_skdm
+//8 mem_le_skds
+16 mem_le_mrand
+
+
+/* ========= le context =========== */
+1 mem_le_state
+1 mem_le_mode
+2 mem_le_tsniff
+4 mem_le_anchor
+6 mem_le_clk_offset
+2 mem_le_receive_window
+6 mem_le_plap
+1 mem_le_conn_handle
+1 mem_le_arq
+1 mem_le_ch
+1 mem_le_hop
+2 mem_le_event_count
+4 mem_le_supervision_timer
+2 mem_le_instant
+1 mem_le_channels
+1 mem_le_op
+
+	/* these 3 should NOT be seperated */
+4 mem_le_access
+3 mem_le_crcinit
+1 mem_le_window_size
+
+	/* these 3 should NOT be seperated */
+2 mem_le_slave_latency
+2 mem_le_superto
+5 mem_le_channel_map
+
+
+1 mem_le_rx_phy
+1 mem_le_tx_phy
+
+9 mem_le_update_new_param
+
+16 mem_le_sk
+
+1 mem_le_peer_sca
+1 mem_le_err_code
+1 mem_le_ll_pairing_fail_reason
+
+5 mem_le_context_reserve
+/* ========= le context ending =========== */
+
+/* test */
+1 mem_le_testtype
+1 mem_cmd_le_create_conn
+
+)
+
+amemalloc mem_le_update_new_param(
+//update connection parameter
+	0 mem_le_new_param
+	1 mem_le_new_transmitwindowsize
+	2 mem_le_new_transmitwindowoffset
+	2 mem_le_new_conninterval
+	2 mem_le_new_connslavelatency
+	2 mem_le_new_connsupervisiontimeout
+)
+
+amemalloc mem_le_update_new_param(
+//update map parameter
+	5 mem_le_new_map
+)
+
+amemalloc mem_le_update_new_param(
+//update phy parameter
+	1 mem_le_new_m2s_phy
+	1 mem_le_new_s2m_phy
+)
+
+amemalloc mem_le_rxbuf(
+//data channel PDU
+	1 mem_le_rxbuf_data_header
+	1 mem_le_rxbuf_data_length
+	255 mem_le_rxbuf_data_payload
+)
+
+amemalloc mem_le_rxbuf(
+//data channel LL control PDU
+	1 mem_le_rxbuf_data_ll_header
+	1 mem_le_rxbuf_data_ll_length
+	1 mem_le_rxbuf_data_ll_opcode
+	26 mem_le_rxbuf_data_ll_control_data
+)
+
+xmemalloc(
+2 mem_le_dsniff
+
+2 mem_le_conn_interval
+
+1 mem_le_txheader
+1 mem_le_txlen
+256 mem_le_txpayload
+
+//modified name
+1 mem_le_name_len
+30 mem_le_name
+
+
+/* smp related */
+
+16 mem_le_ltk
+1 mem_ltk_exists
+16 mem_le_rconfirm
+16 mem_le_srand
+1 mem_le_iat
+1 mem_le_rat
+1 mem_le_preq
+1 mem_le_preq_iocap
+1 mem_le_preq_oob
+1 mem_le_preq_auth
+1 mem_le_preq_max_keysize
+1 mem_le_preq_init_key_distribution
+1 mem_le_preq_resp_key_distribution
+1 mem_le_pres
+1 mem_le_pres_iocap
+1 mem_le_pres_oob
+1 mem_le_pres_auth
+1 mem_le_pres_max_keysize
+1 mem_le_pres_init_key_distribution
+1 mem_le_pres_resp_key_distribution
+
+/* att related */
+
+2 mem_le_notify_handle
+1 mem_le_search_uuid_length
+16 mem_le_search_uuid
+
+
+
+//START of LE conn parameter structure
+0 mem_le_conn_param
+1 mem_le_conn_peer_addr_type
+6 mem_le_conn_peer_addr
+1 mem_le_conn_own_addr_type
+2 mem_le_interval_min
+2 mem_le_interval_max
+2 mem_le_latency
+2 mem_le_timeout
+//START of LE conn parameter structure
+
+
+3 mem_le_lap
+1 mem_le_uap
+2 mem_le_nap
+
+
+2 mem_le_local_mtu
+2 mem_le_remote_mtu
+
+8 mem_le_skdm
+8 mem_le_skds
+
+2 mem_le_init_superto
+2 mem_ui_le_uuid_table
+
+1 mem_le_secure_connect_flag
+1 mem_le_secure_connect_state
+1 mem_le_sc_confirm_gkey_flag
+
+
+1 mem_le_pairing_state
+1 mem_le_enc_state
+1 mem_le_pairing_mode
+4 mem_le_tk
+2 mem_le_ediv
+8 mem_le_rand
+16 mem_le_irk
+
+//LE attribute list
+4 mem_le_transmit_window
+
+//ble General configuration 
+1 mem_le_configuration
+16 mem_le_fixed_ltk
+2 mem_le_pairing_handle
+
+
+1 mem_le_packet_llid
+
+//for continue
+2 mem_le_l2cap_size
+2 mem_le_packet_len_recved
+2 mem_le_payload_ptr
+
+
+//ble gatt signaling
+1 mem_le_signaling_identifier
+2 mem_le_l2cap_signaling_conn_param_update_rsp_result
+
+1 mem_le_md_count
+
+2 mem_ble_l2cap_tx_buff0_ptr
+2 mem_ble_l2cap_tx_buff_size_ptr
+)
+
+(//mem_le_T_IFS
+150 PARAM_T_IFS_150US
+20000 PARAM_20MS_INIT
+-13 PARAM_SYNC_TIME_DIFFERENCE
+40 PARAM_CODED_C1_TERM1_TIME_40US
+1666 PARAM_WINDOWN_SIZE
+//T_IFS = 150-modem(CRC time)
+)
+
+
+(
+0 DEFAULT_STATES
+1 IPHONE_LOST_LTK
+2 MODULE_LOST_LTK
+3 LTK_NOT_LOST
+)
+
+	//BLE ErrorCodes
+	(    
+	0x01 ERROR_UNKNOWN_HCI_COMMAND
+	0x02 ERROR_NO_CONNECTION
+	0x03 ERROR_HARDWARE_FAILURE
+	0x04 ERROR_PAGE_TIMEOUT
+	0x05 ERROR_AUTHENTICATION_FAILURE
+	0x06 ERROR_KEY_MISSING
+	0x07 ERROR_MEMORY_FULL
+	0x08 ERROR_CONNECTION_TIMEOUT
+	0x09 ERROR_MAX_CONNECTIONS
+	0x0A ERROR_MAX_SCO_CONNECTIONS
+	0x0B ERROR_MAX_ACL_CONNECTIONS
+	0x0C ERROR_COMMAND_DISALLOWED
+	0x0D ERROR_HOST_REJECT_LIMITED_RESOURCES
+	0x0E ERROR_HOST_REJECT_SECURITY_REASONS
+	0x0F ERROR_HOST_REJECT_REMOTE_IS_ONLY_PERSONAL
+	0x10 ERROR_HOST_TIMEOUT
+	0x11 ERROR_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE
+	0x12 ERROR_INVALID_HCI_COMMAND_PARAMETERS
+	0x13 ERROR_REMOTE_USER_TERMINATED_CONNECTION
+	0x14 ERROR_REMOTE_LOW_RESOURCES
+	0x15 ERROR_REMOTE_POWERING_OFF
+	0x16 ERROR_CONNECTION_TERMINATED_BY_LOCAL_HOST
+	0x17 ERROR_REPEATED_ATTEMPTS
+	0x18 ERROR_PAIRING_NOT_ALLOWED
+	0x19 ERROR_UNKNOWN_LMP_PDU
+	0x1A ERROR_UNSUPPORTED_REMOTE_FEATURE
+	0x1B ERROR_SCO_OFFSET_REJECTED
+	0x1C ERROR_SCO_INTERVAL_REJECTED
+	0x1D ERROR_SCO_AIR_MODE_REJECTED
+	0x1E ERROR_INVALID_LMP_PARAMETER
+	0x1F ERROR_UNSPECIFIED_ERROR
+	0x20 ERROR_UNSUPPORTED_LMP_PARAMETER_VALUE
+	0x21 ERROR_ROLE_CHANGE_NOT_ALLOWD
+	0x22 ERROR_LMP_RESPONSE_TIMEOUT
+	0x23 ERROR_ERROR_TRANSACTION_COLLISION
+	0x24 ERROR_LMP_PDU_NOT_ALLOWED
+	0x25 ERROR_ENCRYPTION_MODE_NOT_ACCEPTABLE
+	0x26 ERROR_UNIT_KEY_USED
+	0x27 ERROR_QOS_NOT_SUPPORTED
+	0x28 ERROR_INSTANT_PASSED
+	0x29 ERROR_PAIRING_W_UNIT_KEY_NOT_SUPPORTED
+	0x2a ERROR_DIFFERENT_TRANSACTION_COLLISION
+	0x2c ERROR_QOS_UNACCEPTABLE_PARAMETER
+	0x2d ERROR_QOS_REJECTED
+	0x2e ERROR_CHANNEL_CLASSIFICATION_NOT_SUPPORTED
+	0x2f ERROR_INSUFFICIENT_SECURITY
+	0x30 ERROR_PARAMETER_OUT_OF_MANDATORY_PANGE
+	0x32 ERROR_ROLE_SWITCH_PENDING
+	0x34 ERROR_RESERVED_SLOT_VIOLATION
+	0x35 ERROR_ROLE_SWITCH_FAILED
+	0x36 ERROR_EXTENDED_INQUIRY_RESPONSE_TOO_LARGE
+	0x37 ERROR_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST
+	0x38 ERROR_HOST_BUSY_PAIRING
+	0x3d ERROR_MIC_FAILURE
+	)
+
+
+	//modified_name
+	(
+	0X20 SPACE	
+	)
+	/* LE L2CAP CID */
+	(
+	0x0004 LE_L2CAP_CID_ATT
+	0x0005 LE_L2CAP_CID_SIGNAL
+	0x0006 LE_L2CAP_CID_SMP
+	)
+
+	//LE address type
+	(
+	0 LE_ADDR_TYPE_PUBLIC
+	1 LE_ADDR_TYPE_RANDOM
+	)
+	//LE address type bitmap
+	(
+	7 LE_RECEIVER_ADDR_BIT
+	6 LE_SENDER_ADDR_BIT
+	)
+	//LE SCAN TYPE
+	(
+	0x00 LE_SCAN_TYPE_PASSIVE //no SCAN_REQ shall be sent
+	0x01 LE_SCAN_TYPE_ACTIVE
+	)
+
+	//LE SCAN ENABLE
+	(
+	0x00 LE_SCAN_DISABLE
+	0x01 LE_SCAN_ENABLE
+	0x0101 LE_ACTIVE_SCAN_ENABLE
+	)
+
+	//LE FIND INFORMATION RESPONSE
+	//THE FORMAT OF THE INFORMATION DATA
+	(
+	0x01 UUID_SIZE_16BIT
+	0x02 UUID_SIZE_128BIT
+	)
+
+//	le_state_map 0-2 is reserved for state_inconn,state_insniff and state_sco
+(
+3 lestate_got_first_packet
+4 lestate_encryption
+5 lestate_update_param
+6 lestate_update_map
+7 lestate_update_phy
+)
+
+// 	le mode
+(
+0 lemode_idle
+1 lemode_slave
+3 lemode_master
+0x20 lemode_2m
+0x40 lemode_lr_s2
+0xc0 lemode_lr_s8
+)
+
+(
+0 llid0
+1 llid1
+2 nesn
+3 sn
+4 md
+5 wak
+6 txdat
+)
+
+(
+0x01 LLID_CONTINUE
+0x02 LLID_START
+0x03 LLID_LE_LL
+0x01 LLID_EMPTY
+)
+
+(
+4 LE_TX_BUFF_COUNT
+3 LE_TX_BUFF_UPDATE_LOOPCNT //LE_TX_BUFF_COUNT-1
+
+12 LE_MD_MAX_COUNT
+)
+
+
+(
+0 LE_INITATOR_LTK_BIT
+1 LE_INITATOR_IRK_BIT
+2 LE_INITATOR_CSRK_BIT
+)
+
+
+
+
+
+(
+0  LE_FIND_BY_TYPE_VAL_RES_NOT_FOUND
+1  LE_FIND_BY_TYPE_VAL_RES_FOUND_STARTING_HANDLE
+2  LE_FIND_BY_TYPE_VAL_RES_FOUND_ENDING_HANDLE
+
+)
+
+(
+0 MASTER_PUBLIC_ADDR
+1 MASTER_RANDOM_ADDR
+)
+
+(
+0x06 LE_ERR_PIN_OR_KEY_MISSING
+)
+
+(
+39 LE_CCM_DIRECTIONBIT
+)
+(
+36 BR_CCM_0_LENGTH_CONTINUATION
+37 BR_CCM_DIRECTIONBIT
+)
+
+(
+96000 TIMER_SMP_PAIRING_TIMEOUT //30S
+)
+
+
+
+//mem_le_enc_state
+(
+0 FLAG_LE_ENC_NULL
+1 FLAG_LE_RCV_ENC_START
+2 FLAG_LE_ENC_PAUSE
+3 FLAG_LE_RCV_START_ENC_RSP
+4 FLAG_LE_SEND_START_ENC_RSP
+5 FLAG_LE_SEND_START_ENC_REQ
+0xff FLAG_LE_ENC_END
+)
+
+(//mem_le_configuration
+//bit0:use fixed key , ble passkey pairing
+0 BIT_BLE_PASSKEY_FIXED_KEY
+//bit1:ble pairing use fixed long term key
+1 BIT_BLE_PAIRING_FIXED_LTK
+//bit2:ble transmit packet will set more data flag
+2 BIT_BLE_TRANSMIT_PACKET_BY_MD
+//bit3:master read handle, with requires an authenticated link
+3 BIT_BLE_READ_AUTH
+//bit4:master write handle, with requires an authenticated link
+4 BIT_BLE_WRITE_AUTH
+//bit5:cannot enter long sleep
+5 BIT_BLE_SHORT_MULT
+//bit6:DEAL baseband packet
+6 BIT_BLE_DEAL_BB_PACKET
+)
+
Index: format/ble_protocol_stack/le_advertising.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_advertising.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_advertising.format	(working copy)
@@ -0,0 +1,104 @@
+
+xmemalloc(
+// parameters
+1 mem_le_scan_enable
+2 mem_le_scan_interval
+2 mem_le_scan_window
+
+
+1 mem_le_adv_data_len
+31 mem_le_adv_data
+1 mem_le_scan_data_len
+31 mem_le_scan_data
+
+//START of LE adv parameter structure
+1 mem_le_adv_enable
+0 mem_le_adv_param
+2 mem_le_adv_interval
+1 mem_le_adv_type
+1 mem_le_adv_own_addr_type
+6 mem_le_adv_direct_addr
+1 mem_le_adv_channel_map
+//END of LE adv parameter structure
+
+//START of LE scan parameter structure
+0 mem_le_scan_params
+1 mem_le_scan_type
+1 mem_le_scan_own_addr_type
+//END of LE scan parameter structure
+)
+
+amemalloc mem_le_rxbuf(
+//advertising channel PDU
+	1 mem_le_rxbuf_adv_header
+	1 mem_le_rxbuf_adv_length
+	255 mem_le_rxbuf_adv_payload
+)
+
+amemalloc mem_le_rxbuf(
+//advertising channel PDU
+//Scan Req
+	1 mem_le_rxbuf_adv_scan_req_header
+	1 mem_le_rxbuf_adv_scan_req_length
+	6 mem_le_rxbuf_adv_scan_req_scan_address
+	6 mem_le_rxbuf_adv_scan_req_adv_address
+)
+
+amemalloc mem_le_rxbuf(
+//advertising channel PDU
+//Connect IND
+	1 mem_le_rxbuf_adv_connect_ind_header
+	1 mem_le_rxbuf_adv_connect_ind_length
+	6 mem_le_rxbuf_adv_connect_ind_init_address
+	6 mem_le_rxbuf_adv_connect_ind_adv_address
+	4 mem_le_rxbuf_adv_connect_ind_access_address
+	3 mem_le_rxbuf_adv_connect_ind_crc_init
+	1 mem_le_rxbuf_adv_connect_ind_win_size
+	2 mem_le_rxbuf_adv_connect_ind_win_offset
+	2 mem_le_rxbuf_adv_connect_ind_interval
+	2 mem_le_rxbuf_adv_connect_ind_latency
+	2 mem_le_rxbuf_adv_connect_ind_timeout
+	5 mem_le_rxbuf_adv_connect_ind_channel_map
+	1 mem_le_rxbuf_adv_connect_ind_hop_and_sca
+)
+
+(
+0x01	GAP_ADTYPE_FLAGS
+0x02	GAP_ADTYPE_16BIT_MORE
+0x03	GAP_ADTYPE_16BIT_COMPLETE
+0x04	GAP_ADTYPE_32BIT_MORE
+0x05	GAP_ADTYPE_32BIT_COMPLETE
+0x06	GAP_ADTYPE_128BIT_MORE
+0x07	GAP_ADTYPE_128BIT_COMPLETE
+0x08	GAP_ADTYPE_LOCAL_NAME_SHORT
+0x09	GAP_ADTYPE_LOCAL_NAME_COMPLETE
+0x0a	GAP_ADTYPE_POWER_LEVEL
+0x16	GAP_ADTYPE_SERVICE_DATA
+0x2a	GAP_ADTYPE_MESH_MESSAGE
+0x2b 	GAP_ADTYPE_MESH_BEACON
+0xff	GAP_ADTYPE_MANUFACTURER_SPECIFIC
+)
+
+/* advertising channel PDU type */
+(
+0 ADV_IND
+1 ADV_DIRECT_IND
+2 ADV_NONCONN_IND
+3 SCAN_REQ
+3 AUX_SCAN_REQ
+4 SCAN_RSP
+5 CONNECT_REQ
+5 AUX_CONNECT_REQ
+6 ADV_SCAN_IND
+)
+
+(
+0 BIT_ADV_CHANNEL_MAP_37
+1 BIT_ADV_CHANNEL_MAP_38
+2 BIT_ADV_CHANNEL_MAP_39
+)
+
+(
+0xa0 param_le_sca
+)
+
Index: format/ble_protocol_stack/le_l2cap_att.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_l2cap_att.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_l2cap_att.format	(working copy)
@@ -0,0 +1,194 @@
+
+xmemalloc(
+	1 mem_le_l2cap_att_states
+
+	/* should be together */
+	1 mem_le_att_opcode
+	2 mem_le_att_handle
+	1 mem_le_search_res
+
+)
+
+amemalloc mem_temp_block2(
+	2 mem_le_search_handle_start
+	2 mem_le_search_handle_end
+	0 mem_le_att_offset
+	1 mem_le_search_att_type_length
+	16 mem_le_search_att_type
+
+	1 mem_le_curr_att_len
+
+	2 mem_le_cur_attlist_start_ptr
+	2 mem_le_cur_handle_start
+	2 mem_le_cur_handle_end
+	1 mem_le_cur_uuid_length
+	16 mem_le_cur_uuid
+)
+
+
+amemalloc mem_le_rxbuf(
+//data channel ATT start PDU
+	1 mem_le_rxbuf_data_att_header
+	1 mem_le_rxbuf_data_att_length
+	2 mem_le_rxbuf_data_att_l2cap_length
+	2 mem_le_rxbuf_data_att_cid
+	1 mem_le_rxbuf_data_att_opcode
+	250 mem_le_rxbuf_data_att_payload
+)
+
+
+amemalloc mem_le_rxbuf(
+//data channel ATT continue PDU
+	1 mem_le_rxbuf_data_continue_header
+	1 mem_le_rxbuf_data_continue_length
+	255 mem_le_rxbuf_data_continue_payload
+)
+
+amemalloc mem_le_rxbuf(
+//data channel ATT write request PDU
+	1 mem_le_rxbuf_data_att_write_header
+	1 mem_le_rxbuf_data_att_write_length
+	2 mem_le_rxbuf_data_att_write_l2cap_length
+	2 mem_le_rxbuf_data_att_write_cid
+	1 mem_le_rxbuf_data_att_write_opcode
+	2 mem_le_rxbuf_data_att_write_handle
+	248 mem_le_rxbuf_data_att_write_payload
+)
+
+amemalloc mem_le_rxbuf(
+//data channel ATT prepare write request PDU
+	1 mem_le_rxbuf_data_prepare_att_write_header
+	1 mem_le_rxbuf_data_prepare_att_write_length
+	2 mem_le_rxbuf_data_prepare_att_write_l2cap_length
+	2 mem_le_rxbuf_data_prepare_att_write_cid
+	1 mem_le_rxbuf_data_prepare_att_write_opcode
+	2 mem_le_rxbuf_data_prepare_att_write_handle
+	2 mem_le_rxbuf_data_prepare_att_write_offset
+	246 mem_le_rxbuf_data_prepare_att_write_payload
+)
+
+(//bit of mem_le_l2cap_att_states
+0 BLE_L2CAP_SEND_INDICATION_PACKET
+0 BLE_L2CAP_RECV_CONFIRMATION_PACKET
+1 BLE_L2CAP_DEAL_WITH_CONTINUE_PACKET
+)
+
+(//bit map of att handle
+14 BIT_OF_ATT_HANDLE_READ_AUTHENTICATED
+15 BIT_OF_ATT_HANDLE_WRITE_AUTHENTICATED
+)
+
+
+
+(
+0 BIT_CHARACTERISTIC_BROADCAST
+1 BIT_CHARACTERISTIC_READ
+2 BIT_CHARACTERISTIC_WRITE_WITHOUT_RESPONSE
+3 BIT_CHARACTERISTIC_WRITE
+4 BIT_CHARACTERISTIC_NOTIFY
+5 BIT_CHARACTERISTIC_INDICATE
+6 BIT_CHARACTERISTIC_SIGNED_WRITE
+7 BIT_CHARACTERISTIC_EXTENDED_PROPERTIES
+)
+
+/* ATT OPCODE */
+(
+0x01 ATTOP_ERROR_RESPONSE
+0x02 ATTOP_EXCHANGE_MTU_REQUEST
+0x03 ATTOP_EXCHANGE_MTU_RESPONSE
+0x04 ATTOP_FIND_INFORMATION_REQUEST
+0x05 ATTOP_FIND_INFORMATION_RESPONSE
+0x06 ATTOP_FIND_BY_TYPE_VALUE_REQUEST
+0x07 ATTOP_FIND_BY_TYPE_VALUE_RESPONSE
+0x08 ATTOP_READ_BY_TYPE_REQUEST
+0x09 ATTOP_READ_BY_TYPE_RESPONSE
+0x0A ATTOP_READ_REQUEST
+0x0B ATTOP_READ_RESPONSE
+0x0C ATTOP_READ_BLOB_REQUEST
+0x0D ATTOP_READ_BLOB_RESPONSE
+0x0E ATTOP_READ_MULTIPLE_REQUEST
+0x0F ATTOP_READ_MULTIPLE_RESPONSE
+0x10 ATTOP_READ_BY_GROUP_TYPE_REQUEST
+0x11 ATTOP_READ_BY_GROUP_TYPE_RESPONSE
+0x12 ATTOP_WRITE_REQUEST
+0x13 ATTOP_WRITE_RESPONSE
+0x16 ATTOP_PREPARE_WRITE_REQUEST
+0x17 ATTOP_PREPARE_WRITE_RESPONSE
+0x18 ATTOP_EXECUTE_WRITE_REQUEST
+0x19 ATTOP_EXECUTE_WRITE_RESPONSE
+0x1B ATTOP_HANDLE_VALUE_NOTIFICATION
+0x1D ATTOP_HANDLE_VALUE_INDICATION
+0x1E ATTOP_HANDLE_VALUE_CONFIRMATION
+0x52 ATTOP_WRITE_COMMAND
+0xD2 ATTOP_SIGNED_WRITE_COMMAND
+0x1f ATTOP_CONTINUE
+0x9e EMPTY_LE_DATA_PRE
+0x9f EMPTY_LE_DATA
+)
+
+/* ATT error code */
+(
+0x01 ATT_ERR_INVALID_HANDLE
+0x02 ATT_ERR_READ_NOT_PERMITTED
+0x03 ATT_ERR_WRITE_NOT_PERMITTED
+0x04 ATT_ERR_INVALID_PDU
+0x05 ATT_ERR_INSUFFICIENT_AUTHENTICATION
+0x06 ATT_ERR_REQUEST_NOT_SUPPORTED
+0x07 ATT_ERR_INVALID_OFFSET
+0x08 ATT_ERR_INSUFFICIENT_AUTHORIZATION
+0x09 ATT_ERR_PREPARE_QUEUE_FULL
+0x0A ATT_ERR_ATTRIBUTE_NOT_FOUND
+0x0B ATT_ERR_ATTRIBUTE_NOT_LONG
+0x0C ATT_ERR_INSUFFICIENT_ENCRYPTION_KEY_SIZE
+0x0D ATT_ERR_INVALID_ATTRIBUTE_VALUE_LENGTH
+0x0E ATT_ERR_UNLIKELY_ERROR
+0x0F ATT_ERR_INSUFFICIENT_ENCRYPTION
+0x10 ATT_ERR_UNSUPPORTED_GROUP_TYPE
+0x11 ATT_ERR_INSUFFICIENT_RESOURCES
+)
+
+/* GATT Specifications*/
+(
+0X2900 CHARACTERTIC_EXTENDED_PROPERTIES
+0X2901 CHARACTERTIC_USER_DESCRIPTION
+0X2902 CLIENT_CHARACTERTIC_CONFIGURATION
+0X2903 SERVER_CHARACTERTIC_CONFIGURATION
+0X2904 CHARACTERTIC_PRESENTATION_FORMAT
+0X2905 CHARACTERTIC_AGGREGATE
+0X2906 VALID_RANGE
+0X2907 EXTERNAL_REPORT_REFERENCE
+0X2908 REPORT_REFERENCE
+0X290B ENVIR_SENSING_CONFIGURATION
+0X290C ENVIR_SENSING_MEASUREMENT
+0X290D ENVIR_SENSING_TRIGGER_SETTING
+)
+
+
+/*	SERVICE UUID	*/
+(
+0x1800 UUID_SERVICE_GENERIC_ACC
+0x1801 UUID_SERVICE_GENERIC_ATT
+0x180a UUID_SERVICE_DEVICE_INFO
+0x180f UUID_SERVICE_BATTERY
+0x1812 UUID_SERVICE_HIDS
+0x2800 UUID_GATT_PRIMARY_SERVICE
+0x2801 UUID_GATT_SECONDARY_SERVICE
+0X2802 UUID_GATT_INCLUDE
+0X2803 UUID_GATT_CHARACTERISTIC
+0X2A00 UUID_CHRCTR_DEVICE_NAME
+0X2A19 UUID_CHRCTR_BATTERY_LEVEL
+0X2A22 UUID_CHRCTR_KEYBOARD_INPUT
+0X2A23 UUID_CHRCTR_SYSTEM_ID 
+0X2A25 UUID_CHRCTR_SERIAL_NUMBER
+0X2A26 UUID_CHRCTR_FIRMWARE
+0X2A32 UUID_CHRCTR_KEYBOARD_OUTPUT
+0X2A33 UUID_CHRCTR_MOUSE_INPUT
+0X2A4A UUID_CHRCTR_HID_INFO
+0X2A4B UUID_CHRCTR_REPORT_MAP
+0X2A4C UUID_CHRCTR_HID_CTRL_POINT
+0X2A4D UUID_CHRCTR_REPORT
+0X2A4E UUID_CHRCTR_PROTOCOL_MODE
+)
+
+
+
Index: format/ble_protocol_stack/le_l2cap_att_wechat.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_l2cap_att_wechat.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_l2cap_att_wechat.format	(working copy)
@@ -0,0 +1,85 @@
+ifdef COMPILE_WECHAT
+
+amemalloc mem_temp_block2(
+	0 mem_wechat_initreq_base_request
+	2 mem_wechat_authreq_base_request
+	4 mem_wechat_authreq_protocol_version
+	2 mem_wechat_authreq_auth_protocol
+	2 mem_wechat_authreq_eam_mac_no_encrypt
+	2 mem_wechat_authreq_mac_address
+	6 mem_wechat_authreq_device_address
+
+	1 mem_wechat_indication_handle
+	1 mem_wechat_write_handle
+	2 mem_wechat_tx_buffer_ptr
+	2 mem_wechat_rx_buffer_ptr
+	2 mem_wechat_rx_push_data_cb
+	2 mem_wechat_tx_nSeq
+	2 mem_wechat_tx_len
+	2 mem_wechat_tx_address
+	2 mem_wechat_rx_len
+	2 mem_wechat_rx_address
+	1 mem_wechat_receive_push_data
+
+)
+
+xmemalloc(
+
+/*
+wechat Air sync protocol parse
+uint8_t indication handle
+uint8_t write handle
+
+*/
+2 mem_le_wechat_air_sync_ptr
+
+)
+
+(
+17 WECHAT_AIR_SYNC_STRUCT_SIZE
+)
+
+(
+0x0000 ECI_NONE
+0x1127 ECI_REQ_AUTH
+0x1227 ECI_REQ_SEND_DATA
+0x1327 ECI_REQ_INIT
+0x214E ECI_RESPONSE_AUTH
+0x224E ECI_RESPONSE_SEND_DATA
+0x234E ECI_RESPONSE_INIT
+0x3175 ECI_PUSH_RECEIVE_DATA
+0x3275 ECI_PUSH_SWITCH_VIEW
+0x3375 ECI_PUSH_SWITCH_BACKGROUD
+0x2F75 ECI_ERR_DECODE
+)
+
+(
+2 ECI_REQ_INIT_MESSAGE_LENGTH
+18 ECI_REQ_AUTH_MESSAGE_LENGTH
+)
+
+(
+0xFE WECHAT_HEAD_MAGIC_NUMBER
+0x01 WECAHT_HEAD_VERSION
+0x01FE WECHAT_RX_HEAD
+)
+
+(
+//push data
+0x0a 	TAG_RecvDataPush_BasePush
+0x12	TAG_RecvDataPush_Data
+0x18	TAG_RecvDataPush_Type
+)
+
+
+(
+0 WECHAT_PROTOCOL_MESSAGE_B_MAGIC_NUMBER
+1 WECHAT_PROTOCOL_MESSAGE_B_VER
+2 WECHAT_PROTOCOL_MESSAGE_N_LENGTH
+4 WECHAT_PROTOCOL_MESSAGE_N_CMD_ID
+6 WECHAT_PROTOCOL_MESSAGE_N_SEQ
+8 WECHAT_PROTOCOL_MESSAGE_PAYLOAD
+)
+
+endif
+
Index: format/ble_protocol_stack/le_l2cap_signalling.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_l2cap_signalling.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_l2cap_signalling.format	(working copy)
@@ -0,0 +1,14 @@
+
+/* L2CAP Signaling OPCODE */
+(
+0x12 L2CAP_CONNECTION_PARAMETER_UPDATE_REQUEST
+0x13 L2CAP_CONNECTION_PARAMETER_UPDATE_RESPONSE
+)
+
+(
+0x0000 BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_ACCEPTED
+0x0001 BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_REJECTED
+)
+
+
+
Index: format/ble_protocol_stack/le_l2cap_smp.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_l2cap_smp.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_l2cap_smp.format	(working copy)
@@ -0,0 +1,113 @@
+
+
+(
+0x00 LE_PAIRING_MODE_NONE
+0x01 LE_PAIRING_MODE_LAGACY_JUSTWORK
+0x02 LE_PAIRING_MODE_LAGACY_PASSKEY
+0x04 LE_PAIRING_MODE_LAGACY_PASSKEY_RES_INPUT
+0x81 LE_PAIRING_MODE_SECURE_CONNECT_JUSTWORK
+0x82 LE_PAIRING_MODE_SECURE_CONNECT_NUMERIC
+0x83 LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY
+0x84 LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT
+
+7 LE_PAIRING_MODE_SECURE_CONNECT_BIT
+)
+
+
+(
+0 FLAG_IOCAP_DISPLAYONLY
+1 FLAG_IOCAP_DISPLAYYESNO
+2 FLAG_IOCAP_KEYBOARDONLY
+3 FLAG_IOCAP_NOINPUTNOOUTPUT
+4 FLAG_IOCAP_KEYBOARDDISPLAY
+
+0x00 FLAG_OOB_DATA_FLAG_NO
+)
+
+(
+0x00 FLAG_LE_NO_BONDING_NO_MITM
+0x01 FLAG_LE_BONDING_NO_MITM
+0x04 FLAG_LE_NO_BONDING_MITM
+0x05 FLAG_LE_BONDING_MITM
+0x09 FLAG_LE_BONDING_NO_MITM_SECURE
+0x0D FLAG_LE_BONDING_MITM_SECURE
+
+2 LE_AUTH_MITM_BIT
+3 LE_AUTH_SECURE_CONNECTION_PAIRING_BIT
+)
+
+//mem_le_pairing_state
+(
+0 FLAG_LE_PAIRING_NULL
+1 FLAG_LE_PAIRING_START
+2 FLAG_LE_PAIRING_SEND_RECURITY_REQ
+3 FLAG_LE_PAIRING_RCV_PAIRING_REQ
+4 FLAG_LE_PAIRING_WAIT_STK_GENERATION
+5 FLAG_LE_PAIRING_RECEIVE_PAIRING_CONFIRM
+6 FLAG_LE_PAIRING_SEND_PAIRING_CONFIRM
+7 FLAG_LE_PAIRING_RECEIVE_PAIRING_RANDOM
+8 FLAG_LE_PAIRING_SEND_PAIRING_RANDOM
+9 FLAG_LE_PAIRING_AFTER_AUTH
+10 FLAG_LE_PAIRING_SEND_START_ENC_RSP
+11 FLAG_LE_PARING_SEND_ENC_INFORMATION
+12 FLAG_LE_PARING_SEND_MASTER_IDENTIFICATION 
+13 FLAG_LE_PARING_SEND_INDENTITY_INFORMATION
+0xff FLAG_LE_PAIRING_END
+)
+
+/* Security Manager Protocol Code */
+(
+0x01 SMP_PAIRING_REQUEST
+0x02 SMP_PAIRING_RESPONSE
+0x03 SMP_PAIRING_CONFIRM
+0x04 SMP_PAIRING_RANDOM
+0x05 SMP_PAIRING_FAILED
+0x06 SMP_ENCRYPTION_INFORMATION
+0x07 SMP_MASTER_IDENTIFICATION
+0x08 SMP_IDENTITY_INFORMATION
+0x09 SMP_IDENTITY_ADDRESS_INFORMATION
+0x0A SMP_SIGNING_INFORMATION
+0x0B SMP_SECURITY_REQUEST
+0x0c SMP_PAIRING_PUBLIC_KEY
+0x0d SMP_PAIRING_DHKEY_CHECK
+)
+
+(// pairing failed reason
+0x00 PAIRING_FAILED_RESERVED
+0X01 PAIRING_FAILED_PASSKEY_ENTRY_FAILED
+0X02 PAIRING_FAILED_OOB_NOT_AVAILABLE
+0X03 PAIRING_FAILED_AUTHENTICATION_REQUIRE
+0X04 PAIRING_FAILED_CONFIRM_VALUE_FAILED
+0X05 PAIRING_FAILED_PAIRING_NOT_SUPPORTED
+0X06 PAIRING_FAILED_ENCRYPTION_KEY_SIZE
+0X07 PAIRING_FAILED_COMMAND_NOT_SUPPORTED
+0X08 PAIRING_FAILED_UNSPECIFIED_REASON
+0X09 PAIRING_FAILED_REPEATED_ATTEMPTS
+0X0A PAIRING_FAILED_INVALID_PARAMETERS
+0X0B PAIRING_FAILED_DHKEY_CHECK_FAILED
+0X0C PAIRING_FAILED_NUMERIC_COMPARISON_FAILED
+0X0D PAIRING_FAILED_BR_EDR_PAIRING_IN_PROGRESS
+0X0E PAIRING_FAILED_KEY_DERIVATION_GENERATION_NOT_ALLOWED
+)
+
+/*LE secure connect state */
+(
+0x00 LE_SC_STAT_NULL
+0x01 LE_SC_STAT_RECEIVE_PUBLIC_KEY
+0x02 LE_SC_STAT_WAIT_SEND_PUBLIC_KEY
+0x03 LE_SC_STAT_SEND_PUBLIC_KEY
+0x04 LE_SC_STAT_RECEIVE_RANDOM
+0x05 LE_SC_STAT_SEND_RANDOM
+0x06 LE_SC_STAT_RECEIVE_DHKEY
+0x07 LE_SC_STAT_WAIT_CONFIRM_GKEY
+0x08 LE_SC_STAT_PASSKEY_WAIT_CONFIRM
+)
+
+
+(
+0 FLAG_LE_SC_CONFRIM_NULL
+1 FLAG_LE_SC_CONFRIM_GKEY_OK
+)
+
+
+
Index: format/ble_protocol_stack/le_ll.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_ll.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ble_protocol_stack/le_ll.format	(working copy)
@@ -0,0 +1,120 @@
+xmemalloc(
+8 mem_le_local_feature
+1 mem_le_tx_phys
+1 mem_le_rx_phys
+
+2 mem_remote_rx_max_octets
+2 mem_remote_rx_max_time
+2 mem_remote_tx_max_octets
+2 mem_remote_tx_max_time
+2 mem_local_rx_max_octets
+2 mem_local_rx_max_time
+2 mem_local_tx_max_octets
+2 mem_local_tx_max_time
+
+)
+
+/* LE control packet type */
+(
+0x00 LL_CONNECTION_UPDATE_IND
+0x01 LL_CHANNEL_MAP_IND
+0x02 LL_TERMINATE_IND
+0x03 LL_ENC_REQ
+0x04 LL_ENC_RSP
+0x05 LL_START_ENC_REQ
+0x06 LL_START_ENC_RSP
+0x07 LL_UNKNOWN_RSP
+0x08 LL_FEATURE_REQ
+0x09 LL_FEATURE_RSP
+0x0A LL_PAUSE_ENC_REQ
+0x0B LL_PAUSE_ENC_RSP
+0x0C LL_VERSION_IND
+0x0D LL_REJECT_IND
+0x0E LL_SLAVE_FEATURE_REQ
+0x0F LL_CONNECTION_PARAM_REQ
+0x10 LL_CONNECTION_PARAM_RSP
+0x11 LL_REJECT_IND_EXT
+0x12 LL_PING_REQ
+0x13 LL_PING_RSP
+0x14 LL_LENGTH_REQ
+0x15 LL_LENGTH_RSP
+0x16 LL_PHY_REQ
+0x17 LL_PHY_RSP
+0x18 LL_PHY_UPDATE_IND
+0x19 LL_MIN_USED_CHANNELS_IND
+0x1A LL_CTE_REQ
+0x1B LL_CTE_RSP
+0x1C LL_PERIODIC_SYNC_IND
+0x1D LL_CLOCK_ACCURACY_REQ
+0x1E LL_CLOCK_ACCURACY_RSP
+0x1F LL_CIS_REQ
+0x20 LL_CIS_RSP
+0x21 LL_CIS_IND
+0x22 LL_CIS_TERMINATE_IND
+0x23 LL_POWER_CONTROL_REQ
+0x24 LL_POWER_CONTROL_RSP
+0x25 LL_POWER_CHANGE_IND
+)
+
+
+
+(//bit map of mem_le_ll_feature
+//LL_FEATURE_REQ
+0 BIT_LL_FEATURE_LE_ENCRYPTION
+1 BIT_LL_FEATURE_CONNECTION_PARAMETERS_REQUEST_PROCEDURE
+2 BIT_LL_FEATURE_EXTENDED_REJECT_INDICATION
+3 BIT_LL_FEATURE_SLAVE_INITIATED_FEATURES_EXCHANGE
+4 BIT_LL_FEATURE_LE_PING
+5 BIT_LL_FEATURE_LE_DATA_PACKET_LENGTH_EXTENSION
+6 BIT_LL_FEATURE_LL_PRIVACY
+7 BIT_LL_FEATURE_EXTENDED_SCANNER_FILTER_POLICIES
+8 BIT_LL_FEATURE_LE_2M_PHY
+9 BIT_LL_FEATURE_STABLE_MODULATION_INDEX_TRANSMITTER
+10 BIT_LL_FEATURE_STABLE_MODULATION_INDEX_RECEIVER
+11 BIT_LL_FEATURE_LE_CODED_PHY
+12 BIT_LL_FEATURE_LE_EXTENDED_ADVERTISING
+13 BIT_LL_FEATURE_LE_PERIODIC_ADVERTISING
+14 BIT_LL_FEATURE_CHANNEL_SELECTION_ALGORITHM
+15 BIT_LL_FEATURE_LE_POWER_CLASS_1
+16 BIT_LL_FEATURE_MINIMUM_NUMBER_OF_USED_CHANNELS_PROCEDURE
+)
+(//function map of mem_le_ll_feature
+//LL_FEATURE_REQ
+0x1 FUN_LL_FEATURE_LE_ENCRYPTION
+0x2 FUN_LL_FEATURE_CONNECTION_PARAMETERS_REQUEST_PROCEDURE
+0x4 FUN_LL_FEATURE_EXTENDED_REJECT_INDICATION
+0x8 FUN_LL_FEATURE_SLAVE_INITIATED_FEATURES_EXCHANGE
+0x10 FUN_LL_FEATURE_LE_PING
+0x20 FUN_LL_FEATURE_LE_DATA_PACKET_LENGTH_EXTENSION
+0x40 FUN_LL_FEATURE_LL_PRIVACY
+0x80 FUN_LL_FEATURE_EXTENDED_SCANNER_FILTER_POLICIES
+0x100 FUN_LL_FEATURE_LE_2M_PHY
+0x200 FUN_LL_FEATURE_STABLE_MODULATION_INDEX_TRANSMITTER
+0x400 FUN_LL_FEATURE_STABLE_MODULATION_INDEX_RECEIVER
+0x800 FUN_LL_FEATURE_LE_CODED_PHY
+0x1000 FUN_LL_FEATURE_LE_EXTENDED_ADVERTISING
+0x2000 FUN_LL_FEATURE_LE_PERIODIC_ADVERTISING
+0x4000 FUN_LL_FEATURE_CHANNEL_SELECTION_ALGORITHM
+0x8000 FUN_LL_FEATURE_LE_POWER_CLASS_1
+0x10000 FUN_LL_FEATURE_MINIMUM_NUMBER_OF_USED_CHANNELS_PROCEDURE
+)
+
+(//bit of mem_le_tx_phys and mem_le_rx_phys
+0x00 BIT_LE_1M_PHY
+0x01 BIT_LE_2M_PHY
+0x02 BIT_LE_CODED_PHY
+
+0x02 BIT_LE_CODED_PHY_S2
+0x07 BIT_LE_CODED_PHY_S8
+)
+
+(//map of mem_le_tx_phys and mem_le_rx_phys
+0x01 FUN_TX_LL_1M_PHY
+0x02 FUN_TX_LL_2M_PHY
+0x04 FUN_TX_LL_CODED_PHY
+
+0x01 FUN_RX_LL_1M_PHY
+0x02 FUN_RX_LL_2M_PHY
+0x04 FUN_RX_LL_CODED_PHY
+)
+
Index: format/bt.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/bt.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/bt.format	(working copy)
@@ -0,0 +1,1105 @@
+
+	width = 32
+	const length = 12000
+
+	/* ========= memory ============== */
+memalloc(
+/* 00-0f most frequently used area  */
+1 mem_le_adv_transmit
+1 mem_le_adv_waitcnt
+1 mem_le_adv_rcv
+1 mem_le_req_rcv
+1 mem_le_scanrsp_rcv
+1 mem_le_conn_rcv
+
+1 mem_inquiryscan_waitcnt
+1 mem_inquiryscan_rcvcnt
+1 mem_pagescan_waitcnt
+1 mem_pagescan_rcvcnt
+1 mem_pagescan_rcvfhscnt
+1 mem_slave_rcvcnt
+1 mem_page_transmit
+1 mem_page_rcv
+1 mem_page_rcv_fhs
+1 mem_master_rcvcnt
+
+/* 10-1f debug area */
+1 mem_fhs_wait_counter
+1 mem_newconnto_counter
+1 mem_inquiry_transmit
+1 mem_inquiry_rcv
+1 mem_fw_ver
+1 mem_current_context
+1 mem_le_ch_mapped
+1 mem_last_freq
+1 mem_rssi
+1 mem_rx_type
+2 mem_rx_hec_err
+2 mem_rx_crc_err
+2 mem_context_ptr
+8 mem_display
+8 mem_bcd
+
+		/* context swappable area */
+1 mem_state
+1 mem_mode
+2 mem_tsniff
+4 mem_sniff_anchor
+6 mem_clk_offset
+2 mem_rx_window
+3 mem_plap
+1 mem_puap
+2 mem_pnap
+1 mem_conn_handle
+1 mem_arq
+1 mem_lmp_to_send
+1 mem_lmi_opcode
+1 mem_lmo_reason
+1 mem_op
+1 mem_state_map
+4 mem_supervision_timer
+2 mem_supervision_to
+1 mem_name_offset
+1 mem_key_size
+1 mem_conn_sm
+12 mem_aco
+16 mem_kc
+1 mem_conn_timer
+1 mem_sniff_attempt
+1 mem_sniff_timeout
+2 mem_dsniff
+1 mem_amaddr
+1 mem_lmo_opcode1
+1 mem_lmi_opcode1
+1 mem_lmo_reason1
+1 mem_lmo_tid1
+1 mem_lmo_opcode2
+1 mem_lmi_opcode2
+1 mem_lmo_reason2
+1 mem_lmo_tid2
+8 mem_bt_context_reserve
+	/*context ending*/
+
+/*above param can not be modified*/
+
+
+1 mem_current_sniff_attempt
+1 mem_current_sniff_timeout
+1 mem_nfreq_index_inq
+1 mem_nfreq_index_page
+1 mem_ninqy_index
+1 mem_fhs_misc
+
+
+
+/* lpo related */
+4 mem_subsniff_instant
+1 mem_subsniff_rate
+2 mem_subsniff_tcmax
+1 mem_subsniff_tsniff
+1 mem_lpm_adjust
+6 mem_sync_clke
+1 mem_lpm_current_mult
+4 mem_gpio_wakeup_low
+4 mem_gpio_wakeup_high
+
+
+//page
+1 mem_npage_index
+1 mem_page_mode
+4 mem_page_clk
+
+
+
+/*temp mem*/
+1 mem_temp_am_addr
+1 mem_temp_arq
+
+//
+2 mem_len
+4 mem_clkn_bt
+4 mem_clke_bt
+4 mem_dpll_clkn
+1 mem_connection_options
+
+1 mem_nameres_cnt
+2 mem_txptr
+2 mem_slot_offset
+
+//extm
+1 extm_fhs_misc
+1 extm_newconn_am_addr
+3 extm_class
+3 extm_lap
+1 extm_uap
+3 extm_nap
+
+21 mem_rxbuf
+
+//debug
+1 mem_debug_config
+1 mem_lch_code
+1 mem_fhs_am_addr
+1 mem_select_list_item
+0 mem_temp_reconn_record
+1 mem_record_bt_mode
+6 mem_temp_lap
+2 mem_list_item_ptr
+
+100 mem_eir
+1 mem_rssi_hex
+
+
+2 mem_param_tx_setup
+2 mem_param_rf_setup
+2 mem_param_conn_access
+2 mem_param_clke_cal
+2 mem_param_pll_setup
+2 mem_param_rx_setup
+2 mem_param_dpll_start_delay
+2 mem_param_rt_rthalfslot
+2 mem_param_clke_cal_le_1m
+2 mem_param_clke_cal_le_2m
+2 mem_param_clke_cal_le_coded
+
+)
+
+memalloc iqcal (
+2 mem_vdk
+4 mem_vok
+6 mem_omega
+4 mem_b1
+4 mem_b2
+16 mem_u1
+16 mem_u2
+16 mem_q
+)
+
+memalloc test (
+/* test related */
+2 mem_tst_pktcnt_sync
+2 mem_tst_pktcnt_hec
+2 mem_tst_pktcnt_crc
+2 mem_tst_pktcnt_dmh
+3 mem_tmp_buffer_head
+80 mem_tmp_buffer
+
+
+1 mem_tester_emulate
+0 mem_temp_payload
+1 test_mode_scenario
+1 test_mode_hopping_mode
+1 test_mode_tx_freq
+1 test_mode_rx_freq
+1 test_mode_power_mode
+1 test_mode_poll_period
+1 test_mode_packet_type
+2 test_mode_data_length
+1 mem_test_mode_old_debug_config
+1 mem_tester_cnt
+
+)
+
+
+xmemalloc(
+/* patch enable 0x4000-0x403f  */
+
+1 mem_patch00
+1 mem_patch01
+1 mem_patch02
+1 mem_patch03
+1 mem_patch04
+1 mem_patch05
+1 mem_patch06
+1 mem_patch07
+1 mem_patch08
+1 mem_patch09
+1 mem_patch0a
+1 mem_patch0b
+1 mem_patch0c
+1 mem_patch0d
+1 mem_patch0e
+1 mem_patch0f
+1 mem_patch10
+1 mem_patch11
+1 mem_patch12
+1 mem_patch13
+1 mem_patch14
+1 mem_patch15
+1 mem_patch16
+1 mem_patch17
+1 mem_patch18
+1 mem_patch19
+1 mem_patch1a
+1 mem_patch1b
+1 mem_patch1c
+1 mem_patch1d
+1 mem_patch1e
+1 mem_patch1f
+1 mem_patch20
+1 mem_patch21
+1 mem_patch22
+1 mem_patch23
+1 mem_patch24
+1 mem_patch25
+1 mem_patch26
+1 mem_patch27
+1 mem_patch28
+1 mem_patch29
+1 mem_patch2a
+1 mem_patch2b
+1 mem_patch2c
+1 mem_patch2d
+1 mem_patch2e
+1 mem_patch2f
+1 mem_patch30
+1 mem_patch31
+1 mem_patch32
+1 mem_patch33
+1 mem_patch34
+1 mem_patch35
+1 mem_patch36
+1 mem_patch37
+1 mem_patch38
+1 mem_patch39
+1 mem_patch3a
+1 mem_patch3b
+1 mem_patch3c
+1 mem_patch3d
+1 mem_patch3e
+1 mem_patch3f
+
+	/* 3 device contexts  */
+88 mem_context
+1 mem_current_amaddr
+1 mem_lpm_mode
+1 mem_device_option
+1 mem_scan_mode
+4 mem_last_clkn
+
+	/* parameters */
+8 mem_features
+3 mem_lap
+1 mem_uap
+2 mem_nap
+1 mem_npage
+3 mem_glap
+3 mem_class
+2 mem_iscan_window
+2 mem_iscan_interval
+2 mem_pscan_window
+2 mem_pscan_interval
+2 mem_page_interval
+2 mem_page_window
+2 mem_page_to
+2 mem_inq_window
+1 mem_fcomp_div
+2 mem_rx_window_init
+2 mem_rx_window_sniff
+2 mem_rf_init_ptr
+
+	/* connection related */
+1 mem_last_type
+1 mem_last_type_esco
+1 mem_last_type_saved
+2 mem_retransmission_cnt
+4 mem_next_btclk
+
+1 mem_rf_rccal
+1 mem_handle_num
+1 mem_max_slot
+1 mem_eir_enable
+
+/* AFH related */
+4 mem_afh_instant
+2 mem_afh_error_total
+1 mem_afh_cfg
+1 mem_afh_new_mod
+5 mem_afh_map_lo
+5 mem_afh_map_hi
+1 mem_afh_used
+2 mem_afh_index
+11 mem_afh_map_new
+80 mem_afh_map
+4 mem_afh_timer
+10 mem_afh_classify_channel_map
+
+
+	/* lpm related */
+2 mem_lpm_wake_lock
+2 mem_lpm_interval
+1 mem_lpm_overhead
+1 mem_lpm_hibernate_switch
+1 mem_esco_addr
+1 mem_sniff_unint_lost
+1 mem_ptt
+4 mem_sleep_counter   //should be 0x41fc in REVC
+4 mem_sleep_counter_all
+6 mem_sleep_clkn
+3 mem_sniff_rcv
+3 mem_sniff_lost
+3 mem_clks_per_lpo
+
+1 mem_lpm_mult
+1 mem_lpm_mult_timeout
+1 mem_lpm_mult_cnt
+
+/* 8139-813b lpm_ctrl[31:12] */
+0 mem_lpm_config				
+1 mem_lpm_xtal_ib
+1 mem_lpm_ctrim
+1 mem_lpm_padding
+
+1 mem_lpm_xtalcnt
+1 mem_lpm_buckcnt
+1 mem_lpm_ldocnt
+1 mem_lpm_isogate
+1 mem_lpm_isogate_final
+
+0 mem_lpm_ctrl3
+1 mem_lpm_ctrl3_app_vsel
+1 mem_lpm_ctrl3_aon_vsel
+1 mem_lpm_ctrl3_core_byp
+1 mem_lpm_ctrl3_core_vsel
+
+23 mem_saved_gpio	// should be 0x421e in REVC
+3 mem_saved_gsel
+8 mem_saved_mark
+1 mem_saved_spidctrl
+2 mem_patch_ptr
+2 mem_patch_len
+
+32 mem_timers
+
+/*LINK KEY*/
+1 mem_link_key_exists
+16 mem_link_key
+
+
+/* HCI */
+1 mem_hci_cmd
+1 mem_hci_conn_handle
+3 mem_hci_plap
+1 mem_hci_puap
+2 mem_hci_pnap
+
+
+1 mem_loadcode_times
+1 mem_llid
+
+1 mem_tx_lch
+2 mem_tx_len
+
+1 mem_tx_power
+1 mem_modem_rssi
+1 mem_gain_fix
+3 mem_gain_table
+1 mem_gain_second_agc_en
+
+ifdef DEBUG_RF_INIT
+1 mem_rf_init_data
+endif
+1 mem_system_clk
+)
+
+(//mem_system_clk
+12 SYSTEM_CLK_12M
+24 SYSTEM_CLK_24M
+)
+
+(//bluetooth tx power
+0x00 TX_POWER_0DB
+0x03 TX_POWER_3DB
+0x05 TX_POWER_5DB
+0x06 TX_POWER_6DB
+0x07 TX_POWER_7DB
+0x0a TX_POWER_10DB
+
+0x83 TX_POWER_F3DB
+0x85 TX_POWER_F5DB
+0x94 TX_POWER_F20DB
+0x9e TX_POWER_F30DB
+0x9f TX_POWER_F25DB
+)
+
+
+	/* context */
+(
+0x01 coffset_mode
+0x02 coffset_tsniff
+0x04 coffset_sniff_anchor
+0x08 coffset_clk_offset
+0x0e coffset_rx_window
+0x10 coffset_plap
+0x16 coffset_conn_handle
+0x17 coffset_arq
+	/* 3.0 only */
+0x18 coffset_lmp_to_send
+0x1b coffset_op
+0x1c coffset_state_map
+	/* le only */
+0x18 coffset_le_ch
+0x19 coffset_le_hop
+0x1a coffset_le_event_cnt
+0x1c coffset_le_supervision_timer
+0x20 coffset_le_instant
+0x22 coffset_le_channels
+0x23 coffset_le_op
+0x24 coffset_le_access
+0x28 coffset_le_crcinit
+0x2b coffset_le_window_size
+0x2c coffset_le_slave_latency
+0x2e coffset_le_slave_superto
+0x30 coffset_le_channel_map
+0x35 coffset_le_rx_phy
+0x36 coffset_le_tx_phy
+0x37 coffset_le_new_map
+0x37 coffset_le_new_m2s_phy
+0x38 coffset_le_new_s2m_phy
+0x37 coffest_le_new_transmitwindowsize
+0x38 coffest_le_new_transmitwindowoffset
+0x3a coffest_le_new_conninterval
+0x3c coffest_le_new_connslavelatency
+0x3e coffest_le_new_connsupervisiontimeout
+0x40 coffset_le_sk
+0x50 coffset_le_peer_sca
+0x53 coffset_le_transmit_window
+	
+88 context_size
+1 context_num
+)
+
+(
+0 lpm_flag_wake
+1 lpm_flag_loadcode
+)
+
+/* ========= parameters ============== */
+(
+0x0050 param_newconn_arq
+0x0007 param_esco_addr
+0x0010 param_conn_handle
+0x01f0 param_conn_handle_comp
+0x0020 param_newconnto
+0x0008 param_pagerespto
+0x0a00 param_snooze_setup_orig
+0x5353 param_snooze_ahead_orig
+0x00ff param_ninquiry
+0x2000 param_page_to
+0x0005 param_max_slot
+0x0010 param_sco_poll
+
+/* 24Mhz clock setting */
+ifdef CLK24M
+0x1c86 param_tx_setup
+0x0c00 param_rf_setup
+0x0c00 param_conn_access 
+0x1a00 param_rx_setup
+0x0776 param_clke_cal
+0x0a00 param_pll_setup
+4000 param_dpll_start_delay
+7500 param_halfclk
+60084 param_halfclk_neg
+-60084 param_halfclk_neg1
+else
+/* 12Mhz clock setting */
+0x0e43 param_tx_setup
+0x0600 param_rf_setup
+0x0600 param_conn_access 
+0x03bb param_clke_cal
+0x0500 param_pll_setup		// 120 is minimum
+0x0d00 param_rx_setup	// 114us before sync
+2000 param_dpll_start_delay
+3750 param_rt_rthalfslot
+
+480 param_clke_cal_le_1m	//preamble(1B) & access address(4B) time (1+4)*8*1 * 12
+288 	param_clke_cal_le_2m	//preamble(2B) & access address(4B) time (1+4)*8*1 * 12
+282 param_clke_cal_le_coded	//preamble(80us) & access address(256us)-312.5us(0.5slot)
+endif
+
+110 param_lpm_fix
+10 param_lpo_extra
+200 param_lpm_adjmax
+
+ifdef SIM
+20 param_hibernate_clks
+3 param_chgpump_delay
+else
+-1 param_hibernate_clks
+3000 param_chgpump_delay
+endif
+
+3 param_featrue_ssp
+0x0101 param_lmpext_ssp_enable
+30   param_sco_pktlen
+1     param_acl_pktcnt		/*buffer acl pkt cnt*/
+7     param_sco_pktcnt
+
+
+0x8fffff param_features0
+0x9d83fe param_features1  // not support afh
+0x8359     param_features2
+0x000033 param_unap
+0x001177 param_lap
+0x9e8b33 param_glap
+0x002540 param_class//0x180208 //0x002580//402500//240404
+0x000a04 param_lmp_version//0x0a04
+0x000a06 param_lmp_version0
+0x12e9 param_lmp_subversion
+0x0012 param_tisw
+0x0012 param_tpsw
+0x1000 param_tisi
+0x0800 param_tpsi
+0x0020 param_page_window
+0x0020 param_inq_window
+0x1c80 param_supervision_to
+39 param_fcomp_div
+2 param_fcomp_mul
+6     param_name_len
+0x535442 param_name
+0x344950 param_name1
+
+
+)
+
+/* ======= packet types  ========= */
+(
+0x0      type_null    
+0x1      type_poll   
+0x2      type_fhs    
+0x3      type_dm1    
+0x4      type_dh1    
+0x5      type_hv1    
+0x6      type_hv2    
+0x7      type_hv3    
+0x8      type_3dh1     
+0x9      type_aux1   
+0xa      type_dm3    
+0xb      type_dh3    
+0xe      type_dm5    
+0xf      type_dh5    
+0x10     type_id
+0x11     type_shutdown
+0x13     type_lmp
+)
+
+/* ========== flag[6] =============== */
+(
+0        always        /* always 1 */
+1        true          /* set/rstn by verify,compare,icompare (true) */
+2        positive      /* set/rstn by all alu operations (opcode = 0x03,0x13,0x0f,0x1f), if alu output >= 0 */
+3        timeout       /* read only, the timeout from timers */
+5        zero          /* set/rstn by all alu operations (opcode = 0x03,0x13,0x0f,0x1f), if alu output == 0 */
+6        crc_failed    /* level, cleared by hop_start */
+7        enable_white  /* outside mux decide whether to load bt_clk or response_X */
+8        enable_parity /* level */
+9        enable_crc    /* level */
+10       enable_hec    /* level */
+11       decode_fec1   /* level */
+12       decode_fec2   /* level */
+13       decode_fec0   /* level */
+14       encrypt       /* level */
+15       crc16       /* for caculate ccitt crc16 */
+16       swfine	/* =0 stop_watch count based on oneslot =1 on 1 clock */
+20       rqst_freq    /* pulse, to start calculating frequency */
+21       recalc        /* pulse, to recalculate the fhs_parity */
+22       init_encrypt  /* pulse, issued to initialize encrption */
+23       mhalfbnd    /* half slot boundary of clke_rt, or when clke_bt[0] toggles */
+24       sync          /* sync found as a result of correlation,set/rstn by correlate opcode */
+25       user10    /* user10 */
+26       kc_p_activate  /* pulse to recalc the kc_p */
+27       encode_fec1   /* level */
+28       encode_fec2   /* level */
+29       encode_fec0   /* level */
+30       packet_end    /* pulse */
+32       is_tx         /* level */
+33       is_rx         /* level */
+34       halfslot     /* pulse, read only, when clkn_bt[0] toggles */
+35       oneslot      /* pulse, read only, when clkn_bt[1] toggles */
+36       mslotbnd     /* pulse, read only, when clke_bt[1] toggles */
+37       expire       /* level, read only, when selected clock source exceed timeup value */
+38       meet         /* level, read only, when selected clock source meet timeup value */
+39       tx_clear     /* level, read only, indicate tx pipe is cleared */
+40       user         /* user0 */
+41       master        /* user1 */
+42       slave2         /* user2 */
+43       wake           /* user3 */
+44       user2        /* user4 */
+45       match         /* user5 */
+46       attempt        /* user6 */
+47       user3          /* user7 */
+48       clknt         /* user8 */
+49	   user7 	/* user9 */
+50       synchronize   /* synchronize lpo and regular version of the clock */
+51       lpo_edge  /* read only, 3 clocks after risling edge of lpo clock */
+52       blank         /* C0 only, means pdata == 0 */
+53       modone          /* set divide operation is done */
+54       le		/* bluetooth 4.0 LE enable */
+55       aes_ready	/* set when aes is ok */
+56       encode_fec3   /* level */
+57       dewhiten_code_calc   /* dewhiten code calculate */
+58       lr_s2en       /* long range s2 enable */
+60	   ble_coded_info	//1:s2 0:s8
+63       never         /* read only, always 0 */
+)
+
+default flag = always
+
+/* ========== reg[6] =============== */
+(
+0        mark   /* for keeping strobes, more permanent */
+1        type   /* save and verify during rx */     /* rw */
+2        temp   /* general purpose register, 64 bits */
+3        contu  /* contr uart */
+3	 contru	/*contr uart*/
+3	 contwu	/*contw uart*/
+4        am_addr      /* verify during rx, read and send during tx */ /* ro */
+5        contw        /* last mem_addr during write */
+6        contr        /* last mem_addr during read */
+7        queue    /* the index of qset*,qisolate* commands, ie, if queue = 3, qset/qisolate operate on bit3 */
+8        debug    /* can be wired out for observation */
+9        access   /* the 72 bit access word */
+10       contus   /* contw uart */
+11       timeup        /* when does certain counter expire */
+12       pwindow       /* bit 71-61 of pdata; because on rx, bits shifts in from 71 down */
+13       fhs_parity    /* re-gernated based on bt_adr( {nap,uap,lap} ) when recalc flag is pulsed */
+14       white_init    /* init value of the whitening */
+15       crc24_init        /* init crc24 lfsr, 24 bits */
+16       contue    /* set interrupts, 40 bits */
+17       rega          /* general purpose register, 32 bits */
+18       regb          /* general purpose register, 32 bits */
+19       regc          /* general purpose register, 17 bits */
+20       regab         /* concat of {rega,regb}, thus 64 bits */
+21       radio_ctrl   /* radio i/f direct i/o ctrl, check following "radio_ctrl" section */
+
+23       freq_index   /* 7 bit read only */
+24       regd    /* 32 bit regext[1,0] */
+25       clkn              /* {clkn_bt, clkn_rt} */
+26       clke              /* {clke_bt, clke_rt} */
+27       stop_watch		
+28       fhs_misc   /* SR, SP, pscan mode */
+29       fhs_class  /* class field in fhs */
+30       fhs0   /* read only, bit 0-71 of fhs word */
+31       fhs1   /* read only, bit 72-142 of fhs word */
+32       bt_adr /* r/w, the bt_addr to access gen and freq hopping, contain only lap and uap */
+33       bt_clk /* r/w, the bt_clk for freq hopping */
+34       clkn_bt  /* read only, native bluetooth clock, free running 3.2KHz  or controlled by RTHALFSLOT register */
+35       clkn_rt  /* read only, native realtime clock, free running 12MHz, count from 0-3749, or controlled by RTHALFSLOT register */
+36       freq_mode
+37       xin   /* x parameter, read only */
+38       N_tx_slot /* the N factor in equations for Xi,Xp,Xprm,Xprs */
+39 	   auxcnt
+40       clke_bt  /* r/w,  external bluetooth clock , free running 3.2KHz or controlled by RTHALFSLOT register */
+41       clke_rt  /* r/w,  external realtime clock, , free running 12MHz, count from 0-3749, or controlled by RTHALFSLOT register */
+42       branch_addr	/* last branch address */
+43       rege         /* 64bit regext[3,2] */
+44       lap
+45       uap
+46       nap         
+47       regext		/* r/w extended 12x32bit registers,  indexed by regext_index */
+48       alarm             /* r/w, lpo wake up time, this is also how lpo and current clock keep sync */
+49       lpo_time          /* read only, this is the value to be copied back to clkn/clke after wakeup */
+50       kc_ls             /* secret key,                71: 0 */
+51       kc_ms             /* secret key,               127:72 */
+52       g1l               /* encryption length                */
+53		mask3ff		/* for mask 0x3ff operation */
+54       aes_ctrl		
+55       regf			/* 64bit regext[5,4] */
+56       regext_index   /* index of regext */
+57	     loopcnt
+58      stack			/* current return address */
+59       stack_ptr		/* stack depth */
+61         pc /* direct goto */
+62       null              /* to nowhere */
+63       pdata /* the shift register */
+)
+default reg = pdata
+
+/* regext_index */
+(
+0 regidx_data
+4 regidx_key
+8 regidx_xor
+12 regidx_result
+)
+/* ========== radio_ctrl========= */
+(
+0 TXGFSK
+1 PSK
+2 PSK3M
+3 RESET
+)
+/* assign BPWR = radio_ctrl[0]; */
+/* assign PARAMP = radio_ctrl[1]; */
+/* assign XTALPU = radio_ctrl[2]; */
+/* assign SYNTHPU = radio_ctrl[3]; */
+/* assign TXPU = radio_ctrl[4]; */
+/* assign RXPU = radio_ctrl[5]; */
+/* assign SLCTRL = radio_ctrl[6]; */
+/* assign XTALSEL_MUX_SEL = radio_ctrl[7] */
+
+
+/* =========== destination[4] ============== */
+(
+0 bucket
+1 rxf
+2 back
+3 mod
+)
+default dest = bucket
+
+/* =========== source[4] ============= */
+(
+1 txf
+3 demod
+)
+default source = 0
+
+
+/* ============== mark ============= */
+(
+0  mark_fhs_eir  
+1  mark_rxbuf_inuse
+2  mark_tx_l2cap
+3  mark_switch_initiated
+4  mark_accept_switch
+5  mark_loopback
+7  mark_esco
+8  mark_esco_rxok
+9  mark_context
+10 mark_am_addr_broadcast
+11 mark_fhs_already_good
+12 mark_page_trainb
+13 mark_lpm_mult_enable
+14 mark_usb_first_resp
+15 mark_old_packet
+16 mark_longpacket
+17 mark_testmode
+18 mark_ar2
+28 mark_inquiry_on
+29 mark_inquiry_state
+30 mark_inquiry_trainb
+31 mark_periodical_diac
+32 mark_all_diac
+33 mark_slave_in_rand_accepted
+34 mark_reconn_recieve_switch
+35 mark_isstr
+36 mark_loadcode
+37 mark_ext_patch
+38 mark_24g
+39 mark_24g_rxmode
+40 mark_eeprom_size
+41 mark_ble_tx_md
+42 mark_ble_rx_md
+43 mark_otp_encrypt
+44 mark_temp
+45 mark_ble_2M
+46 mark_ble_lr_s8
+47 mark_ble_lr
+48 mark_ble_crc_fail
+49 mark_role_switch_receive_fhs
+50 mark_ble_encryption
+51 mark_first_packet
+)
+
+(
+1 reload_type_otp
+2 reload_type_spi
+3 reload_type_iic
+)
+
+
+/* ============== soft timers ============== */
+(
+0 le_adv_interval_timer
+1 inquiry_length_timer
+2 le_scan_interval_timer
+3 page_length_timer
+4 iscan_interval_timer
+5 pscan_interval_timer
+6 switch_wait_timer
+7 enpt_delay_timer
+8 page_interval_timer
+9 key_scan_timer
+10 smp_pairing_timer
+11  ui_led_blink   //led timer 可扩展
+12  ui_led_blink1
+13 ui_led_blink2
+
+//不使用mesh应用可以复用
+//Tiny Mesh 广播APP回复
+13 mesh_ble_adv_app
+//Tiny Mesh广播tmall回复
+14 mesh_ble_adv_tmall
+//Tiny Mesh relay
+15 mesh_ble_relay_timer
+
+)
+
+(
+1 hci_cmd_inquiry
+2 hci_cmd_inquiry_cancel
+3 hci_cmd_remote_name_req
+4 hci_cmd_remote_feature_req
+5 hci_cmd_create_conn
+6 hci_cmd_disconn
+7 hci_cmd_accept_conn
+8 hci_cmd_reject_conn
+9 hci_cmd_pair
+10 hci_cmd_nopair
+11 hci_cmd_linkkey
+12 hci_cmd_nokey
+13 hci_cmd_auth
+14 hci_cmd_stopencrypt
+15 hci_cmd_startencrypt
+16 hci_cmd_setup_sco
+17 hci_cmd_disconn_sco
+18 hci_cmd_in_sniff
+19 hci_cmd_exit_sniff
+20 hci_cmd_remote_version_req
+21 hci_cmd_remote_ext_features_req
+22 hci_cmd_io_cap
+23 hci_cmd_role_discovery
+24 hci_cmd_role_switch
+25 hci_cmd_accept_with_switch
+26 hci_cmd_detach
+27 hci_cmd_le_create_conn
+28 hci_cmd_accept_sco_conn
+29 hci_cmd_le_disconn
+30 hci_cmd_le_att_req
+80 hci_cmd_wait_remote_feature
+81 hci_cmd_wait_remote_ext_feature
+82 hci_cmd_wait_remote_name
+)
+
+
+
+/* ============== debug ============= */
+(
+0 debug_neg_skew
+1 debug_bitbucket
+2 debug_dont_clear_got_tx
+3 debug_scatter_enabled
+4 debug_tx_fixed_freq
+5 debug_rx_fixed_freq
+6 debug_tx_pattern
+)
+
+/* ============== tester_emulator ============= */
+(
+0 tester_fixed_flow
+1 tester_fixed_flow_polarity
+2 tester_change
+3 tester_exit
+4 tester_pattern_test
+5 tester_whitening_change
+6 tester_fixed_freq
+7 tester_no_whitening
+)
+
+/* ============== mode ==========*/
+(
+0 mode_le
+1 mode_master
+2 afh_enable
+3 afh_change
+4 first_seqnx
+)
+
+/* ============== state_map ==========*/
+(
+0 smap_lmptidinit
+1 smap_lmptid
+2 smap_encryption
+3 smap_name_res
+4 smap_name_req
+5 smap_edr
+6 smap_rxlmp
+7 smap_rxl2cap
+)
+(
+0 state_inconn
+1 state_insniff
+2 state_insco 
+3 state_inpage
+4 state_conn_comp
+5 state_init_seq
+6 state_combkey
+7 state_linkkey
+)
+(
+0 op_send_sres
+1 op_auth_req
+2 op_inrand_req
+3 op_disconn
+4 op_stop_enc
+5 op_start_enc
+6 op_txl2cap
+7 op_pkt_comp
+)
+
+
+/* ============== arq [3] ================ */
+(
+0 flow
+1 arqn
+2 seqn
+3 wack
+4 flowx              /* out */  /* not really in memory */
+5 arqnx              /* out */
+6 seqnx              /* out */
+7 bcast1             /* first broadcast received */
+)
+
+/* arq          {flow,arqn,seqn}, read/write */
+/* [0] flow r/w  acl full status of the other, store during rx, checked during tx */
+/* [1] arqn r/w  ack of the other during rx (ack tx fifo),                        */
+/* [2] seqn r/w  seqn of the other, check during rx                               */ 
+/* arqx         {flowx,arqnx,seqnx} */
+/* [0] flowx r/o flow back to the other, 1 alow send, 0 not to send, read only tx */
+/* [1] arqnx r/w ack to the other, set by rx, send back on tx                     */
+/* [2] seqnx r/w toggled by arqn, to be send during tx                            */ 
+
+ 
+/* AFH flags */
+(
+0 AFH_CFG_ON
+1 AFH_CFG_TIMER
+2 send_lmp_set_afh
+3 AFH_CFG_REPORT_MODE
+4 AFH_CFG_MASTER_SENT_REQ
+)
+
+/* LLID CODE */
+(	
+1 LLID_L2CAP_CONT
+2 LLID_L2CAP_START
+3 LLID_LMP
+)
+
+/* ============== master_state ==========*/
+(
+0  master_in_idle
+1  master_in_inquiry
+2  master_in_page
+10 master_in_becoming_slave
+15 master_in_conn
+)
+(
+0 newrev_feature_bettx
+1 newrev_feature_betplltx
+2 newrev_feature_skip_retransmit
+3 newrev_feature_init_radio_after_sleep
+4 newrev_feature_no_lpolog
+)
+/*************mem_pincode_state****************/
+(
+0 pincode_state_ilde
+1 pincode_state_wait_pincode
+2 pincode_state_pincode_ready
+)
+
+
+// lpm_write
+(
+1 lpmreg_sel_ctrl
+2 lpmreg_sel_ctrl2
+4 lpmreg_sel_gpiolow
+8 lpmreg_sel_gpiohigh
+16 lpmreg_sel_counter
+32 lpmreg_sel_ctrl3
+)
+
+// lpm_write2
+(
+2 lpmreg2_sel_option
+4 lpmreg2_sel_mpu_s0
+8 lpmreg2_sel_mpu_s1
+)
+
+(
+8 lpmreg_spi_lock_bit
+9 lpmreg_spi2_lock_bit
+0x0a lpmreg_uart_lock_bit
+0x0b lpmreg_uartb_lock_bit
+0x0c lpmreg_iic_lock_bit
+0x0d lpmreg_rom_lock_bit
+0x0e lpmreg_ice_mode_bit
+
+0x01 lpmreg_spi_lock
+0x02 lpmreg_spi2_lock
+0x04 lpmreg_uart_lock
+0x08 lpmreg_uartb_lock
+0x10 lpmreg_iic_lock
+0x20 lpmreg_rom_lock
+0x40 lpmreg_ice_mode
+)
+
+
+
+//scan_mode
+(
+0 inq_scan_mode
+1 page_scan_mode
+2 page_inq_enable
+)
+//mem_neogotiation_state
+(
+ 0 default_neogotiation_state
+ 1 prarm_neogotiation
+)
+
+//mem_lpm_wake_lock
+(
+0 wake_lock_ble_rx
+1 wake_lock_ble_tx
+
+3 wake_lock_key_press
+4 wake_lock_ble_tx_patch
+5 wake_lock_uart_tx
+6 wake_lock_uart_rx
+7 wake_lock_button
+8 wake_lock_cmd
+9 wake_lock_app
+10 wake_lock_lmp_tx
+11 wake_lock_lmp_rx
+12 wake_lock_l2cap_tx
+13 wake_lock_l2cap_rx
+14 wake_lock_ipc_c512bt
+15 wake_lock_ipc_bt2c51
+
+)
+
+(//mem_fcomp_div
+0x18 XTAL_24M
+0x08 XTAL_16M
+)
+
+( //verion
+6 BLUETOOTH_CORE_SPECIFICATION_4_0
+7 BLUETOOTH_CORE_SPECIFICATION_4_1
+8 BLUETOOTH_CORE_SPECIFICATION_4_2
+9 BLUETOOTH_CORE_SPECIFICATION_5_0
+10 BLUETOOTH_CORE_SPECIFICATION_5_1
+)
+
+(
+0x050e COMPANY_ID_YICHIP
+)
+
+(
+0x33  REC_3_MODE
+0x34  REC_4_MODE
+0x35  REC_4_MODE_STATIC_ADDRESS
+0x36  REC_4_MODE_RANDOM_RESOLVABLE_PRIVATE_ADDRESS
+0x37  REC_4_MODE_RANDOM_NON_RESOLVABLE_PRIVATE_ADDRESS
+)
+
+
+//sniff UART_TX UART_RX
+(
+6 UART_WAKEUP_TX
+7 UART_WAKEUP_RX
+)
+
+
Index: format/command.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/command.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/command.format	(working copy)
@@ -0,0 +1,1379 @@
+
+/* Parse Command:
+TX: take bits from tx fifo, jam it into shift and a destination (rf,bucket)
+RX: take bits from demod,  jam it into shift and a destination (acl,sco,bucket) */
+
+/* Inject Command:
+TX: 0 into shift, send tail of shift into a destination (rf,bucket)
+RX: 0 into shift, send tail of shift into a destination (acl,sco,bucket) */
+
+format
+  ! 15 romdat
+  % d0
+  % d1
+  % d2
+  % d3
+  [8] d0
+  [8] d1
+  [8] d2
+  [8] d3
+end
+
+format
+  ! 15 enable   /* set flag to 1 */
+  % flag
+  [5] opcode
+  [6] 1
+  [6] flag
+  [6] null
+  [9] 0
+end
+ /* High 5 bytes of channel map */
+format
+  ! 15 pulse   /* set flag to 1 */
+  % flag
+  [5] opcode
+  [6] 1
+  [6] flag
+  [6] null
+  [9] 0
+end
+
+format
+  ! 15 disable   /* set flag to 0 */
+  % flag
+  [5] opcode
+  [6] 2
+  [6] flag
+  [6] null
+  [9] 0
+end
+
+format
+  ! 15 set0  /* set selected bit of reg to 0 */
+  % immediate
+  % reg
+  [5] opcode
+  [6] 9
+  [6] never
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 set1  /* set selected bit of reg to 1 */
+  % immediate
+  % reg
+  [5] opcode
+  [6] 9          /* alu op demux */
+  [6] always
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 setflag  /* set selected bit of the reg to the polarity of the flag */
+  % flag
+  % immediate
+  % reg
+  [5] opcode
+  [6] 9
+  [6] flag
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 nsetflag  /* set the selected bit of the reg to the opposite polarity of the flag */
+  % flag
+  % immediate
+  % reg
+  [5] opcode
+  [6] 0x29
+  [6] flag
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 setflip    /* invert the selected bit of the reg */
+  % immediate
+  % reg
+  [5] opcode
+  [6] 10            /* this is alu op */
+  [6] always
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 0x1f qset1      /* demux the lowest 4 bit of queue and OR it with regr into regw */
+  % reg             /* in short, set the bit in reg indexed by queue to 1 */
+  [5] opcode
+  [6] 9
+  [6] always
+  [6] reg
+  [9] 0
+end
+  
+format
+  ! 0x1f qset0      /* demux the lowest 4 bit of queue and AND it with regr into regw */
+  % reg             /* in short, set the bit in reg indexed by queue to 0 */
+  [5] opcode
+  [6] 9
+  [6] never
+  [6] reg
+  [9] 0
+end
+
+format 
+  ! 0x1f qsetflag   /* set the bit in reg index by queue to same as flag */
+  % flag
+  % reg
+  [5] opcode
+  [6] 9
+  [6] flag
+  [6] reg
+  [9] 0
+end
+
+format 
+  ! 0x1f nqsetflag   /* set the bit in the reg index by queue to opposite of flag */
+  % flag
+  % reg
+  [5] opcode
+  [6] 0x29
+  [6] flag
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 0x1f qsetflip      /* flip the bit in reg index by queue */
+  % reg
+  [5] opcode
+  [6] 10
+  [6] always
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 1 parse       /* take bits out of source (sco_tx,tx_buffer,rx-elas) into pdata and dest (sco_rx,rx_fifo,tx-elas) */
+  % source
+  % dest
+  % immediate
+  [5] opcode
+  [4] source      /* voice, data, demod */
+  [2] 0
+  [6] 0    
+  [2] 0           /* parse or inject */ 
+  [4] dest        /* acl, sco, mod, bucket */
+  [9] immediate   /* number of bits to parse off */
+end
+
+format
+  ! 1 inject      /* shift data from pdata into destination (tx-elas,rx_fifo,sco_rx) */
+  % destination
+  % immediate
+  [5] opcode
+  [4] 0
+  [2] 0
+  [6] 1
+  [2] 0
+  [4] destination /* acl,sco,mod,bucket */
+  [9] immediate   /* number of bits to be injected */
+end
+
+format
+  ! 1 iinject
+  % destination
+  % regr
+  [5] opcode
+  [6] regr       /* contain the number of bits to inject */
+  [6] 3
+  [2] 0
+  [4] destination /* acl,sco,mod,bucket */
+  [9] 0 
+end
+
+format
+  ! 1 stuff  /* automatic parse, stuff_counter decrement on every bit until hits zero */
+  % source
+  % destination
+  [5] opcode
+  [4] source
+  [2] 0
+  [6] 2
+  [2] 0
+  [4] destination
+  [9] 0
+end
+
+format    /* force immediate value into registers */
+  ! 3 force
+  % immediate
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 0    /* alu operation force */
+  [6] regw  /* destination register */
+  [9] immediate
+end
+
+format    /* force whatever is on shift_reg to regsiters */
+  ! 0x13 iforce
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 0    /* alu operation force */
+  [6] regw  /* destination register */
+  [9] 0
+end
+
+format    /* force immediate value into registers */
+  ! 3 increase
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 1    /* alu operation add */
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 3 pincrease
+  % immediate
+  [5] opcode
+  [6] -1  /* pdata */
+  [6] 1   /* alu add */
+  [6] -1  /* back to pdata */
+  [9] immediate
+end
+
+format    /* force immediate value into registers */
+  ! 3 and_into
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 2    /* alu operation and into */
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 3 and
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 2    /* alu operation and into */
+  [6] regw
+  [9] immediate
+end
+  
+format
+  ! 0x13 iand    /* pdata & regr -> regw */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 2    /* alu operation and into */
+  [6] regw
+  [9] 0
+end
+  
+
+format    /* and whatever is in shiftreg with reg */
+  ! 0x13 iand_into
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 2    /* alu operation and into */
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 3 or_into
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 3    /* alu operation or into */
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 3 or
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 3    /* alu operation or into */
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 ior
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 3    /* alu operation or into */
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 0x13 ior_into
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 3    /* alu operation or into */
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 3 skip_to   /* jump to location stored in reg */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 4   /* alu operation copy */
+  [6] rom_addr
+  [9] 0
+end
+
+format
+  ! 3 copy
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 4   /* alu operation copy */
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 deposit   /* copy the register content thru alu to shift register, not prealigned like preload */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 4   /* alu operation copy */
+  [6] -1  /* pdata */
+  [9] 0
+end
+
+format
+  ! 3 icopy     /* copy the shift register lsb content directly to register, not aligned */
+  % regw
+  [5] opcode
+  [6] -1  /* pdata */
+  [6]  4  /* alu copy */
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 add
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 1
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 iadd       /* regr + pdata -> regw */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 1
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 sub          /* immediate - regr -> regw */
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 12
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 isub       /* pdata - regr -> regw */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 12
+  [6] regw
+  [9] 0
+end
+
+
+format
+  ! 3 flip
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 5
+  [6] reg
+  [9] immediate
+end
+  
+format
+  ! 0x13 iflip  /* use shift register as immediate to do xor */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 5
+  [6] regw
+  [9] 0
+end
+  
+format
+  ! 3 xor
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 5
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 3 xor_into
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 5
+  [6] reg
+  [9] immediate
+end
+  
+format
+  ! 0x13 ixor  /* pdata xor regr and store result in regw */
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 5
+  [6] regw
+  [9] 0
+end
+  
+format
+  ! 3 invert
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 8
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 pinvert    /* invert pdata into itself */
+  [5] opcode
+  [6] -1
+  [6] 8
+  [6] -1
+  [9] 0
+end
+
+format
+  ! 3 div                 /* regr div immediate div */
+  % reg
+  % immediate
+  [5] opcode
+  [6] reg
+  [6] 13                   /* generate diven pulse to div */
+  [6] null
+  [9] immediate
+end
+
+format
+  ! 0x13 idiv           /* pdata div regr data ready at most after 41 nops */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 13                   /* generate diven pulse to div */
+  [6] null
+  [9] 0
+end
+
+format
+  ! 0x13 idiv48           /* pdata div regr data 48bit */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 17                   /* generate diven pulse to div */
+  [6] null
+  [9] 0
+end
+
+format
+  ! 3 remainder            /* harvest div remainder */
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 14
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 quotient             /* harvest div quotient */
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 15
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 6
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift2
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 22
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift3
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 18
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift4
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 35
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift8
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 25
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift16
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 34
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift32
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 30
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 7
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift2
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 23
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift8
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 26
+  [6] regw
+  [9] 0
+end
+
+  
+format
+  ! 3 lshift3
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 19
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift4
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 36
+  [6] regw
+  [9] 0
+end
+  
+
+format
+  ! 3 lshift16
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 32
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 random               /* random number into regw */
+  % reg
+  [5] opcode
+  [6] 0
+  [6] 20
+  [6] reg
+  [9] 0
+end
+
+format                     /* bit reverse within a byte */
+  ! 3 reverse
+  % reg
+  % regw
+  [5] opcode
+  [6] reg
+  [6] 27
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 priority    /* priority encode reg into regw, lsb is the top priority, ie, priority(8'b00010000) = 4 */
+  % reg
+  % regw
+  [5] opcode
+  [6] reg
+  [6] 21
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 7 setsect   /* set a section of pdata */
+  % section    /* 0 sets 17:0 of pdata with set_data, 1 sets 35:18, 2 sets 53:36, 3 sets 71:54 */
+  % set_data
+  [5] opcode
+  [7] 0
+  [2] section
+  [18] set_data
+end
+
+format
+  ! 10 preload   /* load stuff into pdata according to fhs format, check us.v */
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 0
+  [6] -1
+  [9] 0
+end
+
+format  /* load register with pdata content, according to fhs format, check us.v */
+  ! 10 ialigned   /* all bits are in position */
+  % regw
+  [5] opcode
+  [6] -1
+  [6] 0
+  [6] regw
+  [9] 0
+end
+
+format  /* load register to another according to fhs format */
+  ! 10 aligned
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 0
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 4 branch
+  % addr
+  % flag
+  [5] opcode
+  [6] 1
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 call
+  % addr
+  % flag
+  [5] opcode
+  [6] 2
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 rtn
+  % flag
+  [5] opcode
+  [6] 3
+  [6] flag
+  [15] 0
+end
+
+format
+  ! 0x0d fetch          /* read from memory, data into pdata, address from immediate then mem_ptr */
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 63
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x0d fetcht          /* read from memory, data into temp, address from immediate won't increment */
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 2
+  [1] addr
+  [1] 1
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x1d ifetch         /* read from memory, data into pdata, address from regr then mem_ptr */
+  % num_bytes
+  % reg
+  [5] opcode
+  [6] 63
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] reg
+end
+
+format
+  ! 0x1d ifetcht         /* read from memory, data into temp, address from regr won't increment */
+  % num_bytes
+  % reg
+  [5] opcode
+  [6] 2
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] reg
+end
+
+format
+  ! 0x0c store          /* write to memory, data from pdata, address from immediate then mem_ptr */
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 63
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x0c storet          /* write to memory, data from temp, address from immediate won't increment */
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 2
+  [1] addr
+  [1] 1
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x1c istore        /* write pdata to memory, address from regaddr */
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] 63            
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+format
+  ! 0x1c istoret        /* write temp to memory, address from regaddr */
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] 2            
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+format
+  ! 0x0d crc         // read from memory, count from loopcnt, put crc result into pdata 
+  % addr
+  [5] opcode
+  [6] 63
+  [6] 0
+  [15] addr
+end
+
+format
+  ! 0x1d icrc         /* read from memory, address from reg, count from loopcnt, put crc result into pdata */
+  % reg
+  [5] opcode
+  [6] 63
+  [15] 0
+  [6] reg
+end
+
+
+format
+  ! 0x0c storer          /* write reg to memory, address from immediate then mem_ptr */
+  % reg
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] reg               
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+
+format
+  ! 0x1c istorer        /* write regr to memory, address from regaddr */
+  % regr
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] regr            
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+
+format
+  ! 0x0d fetchr          /* read reg from memory, address from immediate then mem_ptr */
+  % reg
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] reg               
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x1d ifetchr        /* read regr from memory, address from regaddr */
+  % regr
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] regr
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+
+
+
+format
+  ! 0x0e jam
+  % immediate
+  % addr
+  [5] opcode
+  [3] 0
+  [16] addr
+  [8] immediate
+end
+
+format			/* 0x242... */
+  ! 4 nbranch
+  % addr
+  % flag
+  [5] opcode
+  [1] 1
+  [5] 1
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 ncall
+  % addr
+  % flag
+  [5] opcode
+  [1] 1
+  [5] 2
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 nrtn
+  % flag
+  [5] opcode
+  [1] 1
+  [5] 3
+  [6] flag
+  [15] 0
+end
+
+format
+  ! 4 nop
+  % addr  /* no-op for addr+2 clocks */
+  [5] opcode
+  [6] 0     
+  [6] 0     /* always */ 
+  [15] addr
+end
+
+format
+  ! 4 clear_stack
+  [5] opcode
+  [6] 4
+  [6] 0    /* always */
+  [15] 0
+end
+
+format
+  ! 6 until
+  % reg
+  % flag
+  [5] opcode
+  [6] reg
+  [6] flag
+  [6] 1
+  [9] 0
+end
+  
+format
+  ! 6 correlate   /* quit if 1. flag is true 2, regr time up 3, found sync,(cond_true) */
+  % reg          /* expire counter to check against */
+  % flag
+  [5] opcode
+  [6] reg
+  [6] flag
+  [6] 2           /* correlate */
+  [9] 0           
+end
+
+format
+  ! 5 compare   /* sets cond flag,  if reg equals immediate */
+  % immediate
+  % reg
+  % mask
+  [5] opcode
+  [6] reg
+  [3] 0
+  [9] mask
+  [9] immediate
+end
+
+format
+  ! 0x15 icompare   /* sets cond flag,  if reg equals pdata */
+  % mask
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 0
+  [9] mask
+  [9] 0
+end
+
+format   /* sets cond. flag, if reg equals LS half of shift reg with MS half of reg being mask */
+  ! 5 iverify
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 2
+  [18] 0
+end
+
+format
+  ! 0x15 qisolate1
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [18] -1
+end
+
+format
+  ! 0x15 qisolate0
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [18] 0
+end
+
+	/* REVAB bug: cannot access bit above 35 */
+format
+  ! 5 isolate1
+  % addr
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [9] -1
+  [9] addr
+end
+
+format
+  ! 5 isolate0
+  % addr
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [9] 0
+  [9] addr
+end
+
+format
+  ! 11 setarg
+  % immediate
+  [5] opcode
+  [27] immediate
+end
+
+format
+  ! 0x1b arg
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [21] immediate
+end
+
+  
+format
+  ! 0 sleep
+  [5] opcode
+  [27] 0
+end
+
+format
+  ! 0 snooze
+  [5] opcode
+  [6] -1
+  [21] 0
+end
+
+format
+  ! 0 revision
+  % rev_num
+  [5] opcode
+  [27] rev_num
+end
+
+format
+  ! 0x18 loop   /* branch when loopcnt is NOT zero, and decrease loopcnt */
+  % addr
+  [5] opcode
+  [4] 4
+  [8] 0
+  [15] addr
+end
+
+format
+  ! 0x18 beq   /* branch when pdata is equal to immediate */
+  % imme
+  % addr
+  [5] opcode
+  [4] 0
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bne   /* branch when pdata is NOT equal to immediate */
+  % imme
+  % addr
+  [5] opcode
+  [4] 1
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 rtneq   /* return when pdata is equal to immediate */
+  % imme
+  [5] opcode
+  [4] 2
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 rtnne   /* return when pdata is NOT equal to immediate */
+  % imme
+  [5] opcode
+  [4] 3
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 bbit1   /* branch when pdata's imme bit is 1 */
+  % imme
+  % addr
+  [5] opcode
+  [4] 5
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bbit0   /* branch when pdata's imme bit is 0 */
+  % imme
+  % addr
+  [5] opcode
+  [4] 6
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 rtnbit1   /* return when pdata's imme bit is 0 */
+  % imme
+  [5] opcode
+  [4] 7
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 rtnbit0   /* return when pdata's imme bit is 0 */
+  % imme
+  [5] opcode
+  [4] 8
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 8	bpatch
+  % imme
+  % addr
+  [5] opcode
+  [4] 9
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 8	bpatchx
+  % imme
+  % addr
+  [5] opcode
+  [4] 14
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bmark1   /* branch when mark's imme bit is 1 */
+  % imme
+  % addr
+  [5] opcode
+  [4] 10
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bmark0   /* branch when mark's imme bit is 0 */
+  % imme
+  % addr
+  [5] opcode
+  [4] 11
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 rtnmark1   /* return when mark's imme bit is 0 */
+  % imme
+  [5] opcode
+  [4] 12
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 rtnmark0   /* return when mark's imme bit is 0 */
+  % imme
+  [5] opcode
+  [4] 13
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 3 mul32                  /* immediate mult regr */ 
+  % regr
+  % immediate                                  
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 31           
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 imul32           /* pdata mult regr 32x32=64bit */  
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 31                   
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 0x13 imults           /* pdata mult regr 32x32=64bit, signed */  
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 16
+  [6] regw
+  [9] 0
+end
+
+
+format
+  ! 3 byteswap
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 33
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 shasx          /* SHA256 Sx operation, immediate is Sx */
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 28
+  [6] regw
+  [9] immediate
+end
+
+
+format
+  ! 0x13 regexrot 	/* regext[0] <- regext[7], regext[1] <- regext[0], regext[2] <- regext[1] ... */
+  [5] opcode
+  [6] 0
+  [6] 29
+  [6] null
+  [9] 0
+end
+
Index: format/debug.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/debug.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/debug.format	(working copy)
@@ -0,0 +1,6 @@
+xmemalloc(
+
+1 mem_rf_debug_rx_gpio
+1 mem_rf_debug_tx_gpio
+)
+
Index: format/g24_protocol_stack/24g.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g.format	(working copy)
@@ -0,0 +1,66 @@
+
+xmemalloc g24(
+34 mem_24g_rxbuf
+32 mem_24g_txbuf
+36 mem_24g_txpayload
+32 mem_24g_rxpayload
+1 mem_24g_rxdata_length
+1 mem_24g_pid
+1 mem_24g_no_ack
+3 mem_24g_sta_crc
+3 mem_24g_last_crc
+1 mem_24g_sta_pid
+1 mem_24g_last_pid
+1 mem_24g_datalen
+1 mem_24g_data_type
+1 mem_24g_txlen
+2 mem_24g_rx_window
+1 mem_24g_ch
+1 mem_24g_current_ch_number
+4 mem_24g_addr
+4 mem_24g_ch_map1
+4 mem_24g_ch_map2
+4 mem_24g_ch_map3
+4 mem_24g_ch_map4
+4 mem_24g_tx_btclk
+1 mem_24g_interval
+1 mem_24g_interval_min
+1 mem_24g_interval_max
+2 mem_24g_syncword
+1 mem_24g_syncword_crc8
+1 mem_24g_get_syncword_crc8
+1 mem_24g_pair_switch
+8 mem_24g_enter_hibernate
+
+1 mem_24g_rx_phy
+1 mem_24g_tx_phy
+
+1 mem_24g_ch_map_update
+4 mem_24g_ch_update_map1
+4 mem_24g_ch_update_map2
+4 mem_24g_ch_update_map3
+4 mem_24g_ch_update_map4
+
+1 mem_24g_disable_fec1
+)
+
+
+xmemalloc g24_tx(
+1 mem_rssi_hex_received
+
+)
+
+
+
+(//mem_24g_data_type
+1 TYPE_MS
+2 TYPE_KB
+0x07 bits_data
+//0-2 data type
+3 bit_abort
+4 bit_hop
+5 bit_sync
+//6-7 channel offset
+)
+
+
Index: format/g24_protocol_stack/24g_pair.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_pair.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_pair.format	(working copy)
@@ -0,0 +1,50 @@
+
+
+xmemalloc g24(
+4 mem_24g_pair_addr
+1 mem_24g_pair_ch
+1 mem_24g_pair_tx_power
+
+)
+
+xmemalloc g24_tx(
+1 mem_24g_pair_sm
+1 mem_24g_pair_no_ack
+2 mem_24g_pair_timeout_init
+2 mem_24g_pair_timeout
+
+)
+
+xmemalloc g24_rx(
+1 mem_24g_device1_bind_step
+1 mem_24g_device2_bind_step
+1 mem_24g_bind_device_status
+8 mem_24g_bind_payload
+
+)
+
+(//mem_24g_pair_sm
+0 STATE_24G_PAIRING_NULL
+1 STATE_24G_PAIRING_1
+2 STATE_24G_PAIRING_2
+3 STATE_24G_PAIRING_3
+4 STATE_24G_PAIRING_4
+0X11 STATE_24G_PAIRING_1_WAITING_ACK
+0X12 STATE_24G_PAIRING_2_WAITING_ACK
+0X13 STATE_24G_PAIRING_3_WAITING_ACK
+0X14 STATE_24G_PAIRING_4_WAITING_ACK
+0XFF STATE_24G_PAIRING_SUCCESS
+)
+
+(
+0x01 DATATYPE_DEVICE1	//mouse
+0x02 DATATYPE_DEVICE2	//keyboard
+0xaa DATATYPE_BIND		//bind step 1
+0x55 DATATYPE_CONFIG	//bind step 2
+0x22 DATATYPE_OK		//bind step 3
+0xff DATATYPE_ATTEMP	//reconn
+)
+
+(
+5 BIND_MODE_CONTINUE
+)
Index: format/g24_protocol_stack/24g_receiver.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_receiver.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_receiver.format	(working copy)
@@ -0,0 +1,50 @@
+
+
+xmemalloc g24_rx(
+2 mem_cb_24g_receive_process
+2 mem_cb_24g_ackpayload
+2 mem_cb_24g_data_device1
+2 mem_cb_24g_data_device2
+34 mem_24g_rxdata_temp
+1 mem_24g_abort_packet
+4 mem_24g_hop_btclk
+1 mem_24g_hop_interval
+1 mem_24g_pair_mode
+1 mem_24g_ackpayload_enable
+1 mem_24g_hop_packet
+1 mem_24g_mode_switch
+1 mem_24g_nodata_timer_enable
+
+1 mem_24g_mode_init
+1 mem_24g_work_mode
+1 mem_24g_time_slice
+1 mem_24g_self_last_ch
+1 mem_24g_self_ch_number
+1 mem_24g_self_config_ch_once
+1 mem_24g_device1_last_ch
+1 mem_24g_device1_ch_number
+1 mem_24g_device1_config_ch_once
+1 mem_24g_device2_last_ch
+1 mem_24g_device2_ch_number
+1 mem_24g_device2_config_ch_once
+1 mem_24g_led_status
+1 mem_24g_bind_mode_continue
+
+1 mem_tx_power_temp
+
+1 mem_24g_mode_B_S_switch
+1 mem_24g_mode_B_S_switch_init
+2 mem_24g_mode_B_S_switch_cnt
+1 mem_24g_mode_B_S_switch_exit
+1 mem_24g_B_S_time_slice
+1 mem_24g_B_S_mode_switch_disable
+
+1 mem_24g_bind_device_living
+)
+
+
+(
+0 bit_ack_24g
+)
+
+
Index: format/g24_protocol_stack/24g_reconn.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_reconn.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_reconn.format	(working copy)
@@ -0,0 +1,29 @@
+xmemalloc g24_tx(
+2 mem_24g_reconn_timeout_init
+2 mem_24g_reconn_timeout
+2 mem_24g_reconn_count
+1 mem_24g_reconn_type
+1 mem_24g_fast_conn_enable
+4 mem_24g_fast_conn_addr
+4 mem_24g_receiver_addr
+1 mem_24g_fast_conn_temp_ch
+1 mem_24g_receiver_temp_ch
+1 mem_24g_device_temp_ch
+
+)
+
+xmemalloc g24_rx(
+4 mem_24g_transmitter_addr
+4 mem_24g_device1_addr
+4 mem_24g_device2_addr
+
+)
+
+(//mem_24g_reconn_type
+0 DEFAULT_24G_DEVICE
+1 FAST_CONN_AND_RECEIVER
+2 FAST_CONN_AND_3_0_ADDR
+3 RECEIVER_AND_3_0_ADDR
+4 PAIR_AND_3_0_ADDR
+)
+
Index: format/g24_protocol_stack/24g_rssi.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_rssi.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_rssi.format	(working copy)
@@ -0,0 +1,40 @@
+
+xmemalloc g24(
+1 mem_rssi_buff_index
+)
+
+
+xmemalloc g24_tx(
+1 mem_rssi_signal_index
+2 mem_rssi_signal_buf_ptr
+
+)
+
+
+xmemalloc g24_rx(
+1 mem_rssi_noise_avg
+1 mem_rssi_noise_index
+
+1 mem_rssi_noise_self_avg
+1 mem_rssi_noise_device1_avg
+1 mem_rssi_noise_device2_avg
+1 mem_rssi_noise_self_index
+1 mem_rssi_noise_device1_index
+1 mem_rssi_noise_device2_index
+
+2 mem_rssi_noise_buffer_ptr
+2 mem_rssi_noise_self_buffer_ptr
+2 mem_rssi_noise_device1_buffer_ptr
+2 mem_rssi_noise_device2_buffer_ptr
+
+)
+
+
+
+(
+0x50 RSSI_THRESH_NOISE
+)
+
+
+
+
Index: format/g24_protocol_stack/24g_transmitter.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_transmitter.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_transmitter.format	(working copy)
@@ -0,0 +1,64 @@
+
+
+xmemalloc g24_tx(
+2 mem_cb_24g_transmit_data
+2 mem_cb_24g_search_receiver
+2 mem_cb_24g_lpm_before
+
+1 mem_24g_conn_sm
+
+1 mem_24g_ensure
+2 mem_24g_txfail_cnt
+1 mem_24g_attempt_fail_flag
+
+1 mem_24g_retry
+1 mem_24g_abort_pac
+1 mem_24g_max_retry
+4 mem_24g_device_addr
+3 mem_24g_short_sleep_set
+8 mem_24g_long_sleep_set
+4 mem_24g_long_sleep_set1
+
+1 mem_24g_pac_index
+1 mem_24g_transmit_by_interrupt
+2 mem_24g_transmit_by_interrupt_exit_count
+2 mem_24g_transmit_by_interrupt_exit_count_init
+2 mem_24g_long_sleep_param_update_timer_init
+2 mem_24g_long_sleep_param_update_timer
+
+1 mem_24g_fast_hop_count
+)
+
+(
+1 NO_ACK_24G
+0 WITH_ACK_24G
+)
+
+(//mem_24g_conn_sm
+0 STATE_24G_STOP
+0 STATE_24G_START
+1 STATE_24G_PAIR
+2 STATE_24G_RECONN
+)
+
+(//mem_24g_transmit_by_interrupt
+1 G24_TX_TIMER_INT_ENABLE
+0 G24_TX_TIMER_INT_DISABLE
+)
+
+
+(
+1 OFFSET_DATA_TYPE
+2 OFFSET_LR_DATA_TYPE
+)
+
+(
+0x017700 G24_LONG_SLEEP_STEP1	//8ms
+0x36ee80 G24_LONG_SLEEP_STEP2	//300ms
+0x124f80 G24_LONG_SLEEP_STEP3	//100ms
+63500 G24_8MS_INTERVAL_PARAM		//8ms
+12210 G24_4MS_INTERVAL_PARAM
+)
+
+
+
Index: format/g24_protocol_stack/24g_txpower_ctrl.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_txpower_ctrl.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/g24_protocol_stack/24g_txpower_ctrl.format	(working copy)
@@ -0,0 +1,20 @@
+
+xmemalloc g24_tx(
+1 mem_rssi_avg_received
+1 mem_power_ctrl_level
+1 mem_power_ctrl_pac_succ_cnt
+1 mem_power_ctrl_pac_succ_cnt_init
+
+1 mem_rssi_dis_min_24g
+1 mem_rssi_dis_max_24g
+1 mem_rssi_hex_received_max_value
+
+1 mem_rssi_dis_min_ble
+1 mem_rssi_dis_max_ble
+)
+
+
+(
+50 POWER_CTRL_DECRS_THRESHOLD
+)
+
Index: format/hci.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/hci.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/hci.format	(working copy)
@@ -0,0 +1,520 @@
+
+
+memalloc hci_boot(
+2 mem_hci_opcode_ocf
+1 mem_hci_opcode_ogf
+
+//event head
+1 mem_hci_event_head_type
+1 mem_hci_event_head_event_code
+1 mem_hci_event_para_total_length
+
+//command complete
+1 mem_hci_command_complete_num_hci_command_packet
+0 mem_hci_command_complete_command_opcode
+2 mem_hci_opcode
+0 mem_hci_command_complete_return_parameter
+1 mem_hci_command_complete_return_parameter_status
+0 mem_hci_command_complete_return_parameter_chip_id
+
+)
+
+xmemalloc hci_boot(
+1 mem_hci_uart_tx_gpio
+1 mem_hci_uart_rx_gpio
+1 mem_hci_uart_rts_gpio
+1 mem_hci_uart_cts_gpio
+1 mem_hci_pwm_12mhz_gpio
+)
+
+(
+0x0d HCI_UART_TX_GPIO_NUM
+0x0e HCI_UART_RX_GPIO_NUM
+0x09 HCI_UART_RTS_GPIO_NUM
+0x0a HCI_UART_CTS_GPIO_NUM
+0x0c HCI_PMW_12MHZ_GPIO_NUM
+)
+
+(
+0x00 COMMAND_SUCCEEDED
+0x01 COMMAND_UNKNOWN
+0x0c COMMAND_DISALLOWED
+)
+
+//HCI H4 Packet TYPE
+(
+0x01 HCI_H4_TYPE_CMD
+0x02 HCI_H4_TYPE_ACL
+0x04 HCI_H4_TYPE_EVENT
+)
+
+(
+0x00 BT_ACL_START_NO_FLUSH
+0x01 BT_ACL_CONT
+0x02 BT_ACL_START
+)
+
+// HCI command opcode group field values
+(
+0x01 HCI_OGF_LINK_CONTROL
+0x02 HCI_OGF_LINK_POLICY
+0x03 HCI_OGF_CONTROLLER_AND_BASEBAND
+0x04 HCI_OGF_INFOMATIONAL_PARAM
+0x05 HCI_OGF_STATUS_PARAM
+0x06 HCI_OGF_TEST
+0x08 HCI_OGF_LE_CONTROLLER
+0x3f HCI_OGF_VENDOR_SPECIFIC_DEBUG
+)
+
+// HCI link control opcode command field values, OGF=1
+(
+0x01 HCI_INQUIRY 
+0x02 HCI_INQUIRY_CANCEL 
+0x03 HCI_PERIODIC_INQUIRY_MODE 
+0x04 HCI_EXIT_PERIODIC_INQUIRY_MODE 
+0x05 HCI_CREATE_CONNECTION 
+0x06 HCI_DISCONNECT 
+0x07 HCI_ADD_SCO_CONNECTION 
+0x08 HCI_CREATE_CONNECTION_CANCEL
+0x09 HCI_ACCEPT_CONNECTION 
+0x0A HCI_REJECT_CONNECTION 
+0x0B HCI_LINK_KEY_REQUEST_REPLY 
+0x0C HCI_LINK_KEY_REQUEST_NEGATIVE_REPLY 
+0x0D HCI_PIN_CODE_REQUEST_REPLY 
+0x0E HCI_PIN_CODE_REQUEST_NEGATIVE_REPLY 
+0x0F HCI_CHANGE_CONNECTION_PACKET_TYPE 
+0x11 HCI_AUTHENTICATION_REQUESTED 
+0x13 HCI_SET_CONNECTION_ENCRYPTION 
+0x15 HCI_CHANGE_CONNECTION_LINK_KEY 
+0x17 HCI_MASTER_LINK_KEY 
+0x19 HCI_REMOTE_NAME_REQUEST 
+0x1A HCI_REMOTE_NAME_REQUEST_CANCEL
+0x1B HCI_READ_REMOTE_SUPPORTED_FEATURES 
+0x1C HCI_READ_REMOTE_EXT_FEATURES 
+0x1D HCI_READ_REMOTE_VERSION_INFORMATION 
+0x1F HCI_READ_CLOCK_OFFSET 
+0x20 HCI_READ_LMP_HANDLE
+0x28 HCI_SETUP_SCO_CONNECTION
+0x29 HCI_ACCEPT_SCO_CONNECTION
+0x2A HCI_REJECT_SCO_CONNECTION
+0x2B HCI_IO_CAP_REQUEST_REPLY
+0x2C HCI_USER_CONFIRMATION_REQUEST_REPLY
+0x2D HCI_USER_CONFIRMATION_REQUEST_NEGATIVE_REPLY
+0x2E HCI_USER_PASSKEY_REQUEST_REPLY
+0x2F HCI_USER_PASSKEY_REQUEST_NEGATIVE_REPLY
+0x30 HCI_REMOTE_OOB_DATA_REQUEST_REPLY
+0x33 HCI_REMOTE_OOB_DATA_REQUEST_NEGATIVE_REPLY
+0x34 HCI_IO_CAPABILITY_REQUEST_NEGATIVE_REPLY
+0x35 HCI_CREATE_PHYSICAL_LINK
+0x36 HCI_ACCEPT_PHYSICAL_LINK
+0x37 HCI_DISCONNECT_PHYSICAL_LINK
+0x38 HCI_CREATE_LOGICAL_LINK
+0x39 HCI_ACCEPT_LOGICAL_LINK
+0x3A HCI_DISCONNECT_LOGICAL_LINK
+0x3B HCI_LOGICAL_LINK_CANCEL
+0x3C HCI_FLOW_SPEC_MODIFY
+0x3D HCI_ENHANCED_SETUP_SYNCHRONOUS_CONNECTION
+0x3E HCI_ENHANCED_ACCEPT_SYNCHRONOUS_CONNECTION_REQUEST
+0x3F HCI_TRUNCATED_PAGE
+0x40 HCI_TRUNCATED_PAGE_CANCEL
+0x41 HCI_SET_CONNECTIONLESS_SLAVE_BROADCAST
+0x42 HCI_SET_CONNECTIONLESS_SLAVE_BROADCAST_RECEIVE
+0x43 HCI_START_SYNCHRONIZATION_TRAIN
+0x44 HCI_RECEIVE_SYNCHRONIZATION_TRAIN
+0x45 HCI_REMOTE_OOB_EXTENDED_DATA_REQUEST_REPLY
+)
+
+
+// HCI link policy commands OCF value, OGF=2
+(
+0x01 HCI_HOLD_MODE 
+0x03 HCI_SNIFF_MODE 
+0x04 HCI_EXIT_SNIFF_MODE 
+0x05 HCI_PARK_MODE 
+0x06 HCI_EXIT_PARK_MODE 
+0x07 HCI_QOS_SETUP 
+0x09 HCI_ROLE_DISCOVERY 
+0x0B HCI_SWITCH_ROLE 
+0x0C HCI_READ_LINK_POLICY_SETTINGS 
+0x0D HCI_WRITE_LINK_POLICY_SETTINGS 
+0x0e HCI_READ_DEFAULT_LINK_POLICY_SETTINGS
+0x0f HCI_WRITE_DEFAULT_LINK_POLICY_SETTINGS
+0x10 HCI_FLOW_SPECIFICATION
+0x11 HCI_SNIFF_SUBRATING
+)
+
+// HCI host controller and baseband commands OCF values, OGF=3
+(
+0x01 HCI_SET_EVENT_MASK 
+0x03 HCI_RESET 
+0x05 HCI_SET_EVENT_FILTER 
+0x08 HCI_FLUSH 
+0x09 HCI_READ_PIN_TYPE 
+0x0A HCI_WRITE_PIN_TYPE 
+0x0B HCI_CREATE_NEW_UNIT_KEY 
+0x0D HCI_READ_STORED_LINK_KEY 
+0x11 HCI_WRITE_STORED_LINK_KEY 
+0x12 HCI_DELETE_STORED_LINK_KEY 
+0x13 HCI_WRITE_LOCAL_NAME 
+0x14 HCI_READ_LOCAL_NAME 
+0x15 HCI_READ_CONN_ACCEPT_TIMEOUT 
+0x16 HCI_WRITE_CONN_ACCEPT_TIMEOUT 
+0x17 HCI_READ_PAGE_TIMEOUT 
+0x18 HCI_WRITE_PAGE_TIMEOUT 
+0x19 HCI_READ_SCAN_ENABLE 
+0x1A HCI_WRITE_SCAN_ENABLE 
+0x1B HCI_READ_PAGE_SCAN_ACTIVITY 
+0x1C HCI_WRITE_PAGE_SCAN_ACTIVITY 
+0x1D HCI_READ_INQUIRY_SCAN_ACTIVITY 
+0x1E HCI_WRITE_INQUIRY_SCAN_ACTIVITY 
+0x1F HCI_READ_AUTHENTICATION_ENABLE 
+0x20 HCI_WRITE_AUTHENTICATION_ENABLE 
+0x21 HCI_READ_ENCRYPTION_MODE 
+0x22 HCI_WRITE_ENCRYPTION_MODE 
+0x23 HCI_READ_CLASS_OF_DEVICE 
+0x24 HCI_WRITE_CLASS_OF_DEVICE 
+0x25 HCI_READ_VOICE_SETTING 
+0x26 HCI_WRITE_VOICE_SETTING 
+0x27 HCI_READ_AUTOMATIC_FLUSH_TIMEOUT 
+0x28 HCI_WRITE_AUTOMATIC_FLUSH_TIMEOUT 
+0x29 HCI_READ_NUM_BROADCAST_RETRANSMISSIONS 
+0x2A HCI_WRITE_NUM_BROADCAST_RETRANSMISSIONS 
+0x2B HCI_READ_HOLD_MODE_ACTIVITY 
+0x2C HCI_WRITE_HOLD_MODE_ACTIVITY 
+0x2D HCI_READ_TRANSMIT_POWER_LEVEL 
+0x2E HCI_READ_SCO_FLOW_CONTROL_ENABLE 
+0x2F HCI_WRITE_SCO_FLOW_CONTROL_ENABLE 
+0x31 HCI_SET_CONTROLLER_TO_HOST_FLOW_CONTROL 
+0x33 HCI_HOST_BUFFER_SIZE 
+0x35 HCI_HOST_NUM_COMPLETED_PACKETS 
+0x36 HCI_READ_LINK_SUPERVISION_TIMEOUT 
+0x37 HCI_WRITE_LINK_SUPERVISION_TIMEOUT 
+0x38 HCI_READ_NUMBER_OF_SUPPORTED_IAC 
+0x39 HCI_READ_CURRENT_IAC_LAP 
+0x3A HCI_WRITE_CURRENT_IAC_LAP 
+0x3B HCI_READ_PAGE_SCAN_PERIOD_MODE 
+0x3C HCI_WRITE_PAGE_SCAN_PERIOD_MODE 
+0x3D HCI_READ_PAGE_SCAN_MODE 
+0x3E HCI_WRITE_PAGE_SCAN_MODE 
+0x3F HCI_SET_AFH_CHANNEL_CLASSIFICATION 
+
+
+0x42 HCI_READ_INQUIRY_SCAN_TYPE 
+0x43 HCI_WRITE_INQUIRY_SCAN_TYPE 
+0x44 HCI_READ_INQUIRY_MODE 
+0x45 HCI_WRITE_INQUIRY_MODE 
+0x46 HCI_READ_PAGE_SCAN_TYPE 
+0x47 HCI_WRITE_PAGE_SCAN_TYPE 
+
+0x48 HCI_READ_AFH_CHANNEL_ACCESSMENT_MODE 
+0x49 HCI_WRITE_AFH_CHANNEL_ACCESSMENT_MODE 
+0x51 HCI_READ_EXTENDED_INQUIRY_RESPONSE
+0x52 HCI_WRITE_EXTENDED_INQUIRY_RESPONSE
+0x53 HCI_REFRESH_ENCRYPTION_KEY
+0x55 HCI_READ_SIMPLE_PAIRING_MODE
+0x56 HCI_WRITE_SIMPLE_PAIRING_MODE
+0x57 HCI_READ_LOCAL_OOB_DATA
+0x58 HCI_READ_INQUIRY_RESPONSE_TRANSMIT_POWER_LEVEL
+0x59 HCI_WRITE_INQUIRY_TRANSMIT_POWER_LEVEL
+0x60 HCI_SEND_KEYPRESS_NOTIFICATION
+0x5A HCI_READ_DEFAULT_ERRONEOUS_DATA_REPORTING
+0x5B HCI_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING
+0x5F HCI_ENHANCED_FLUSH
+0x61 HCI_READ_LOGICAL_LINK_ACCEPT_TIMEOUT
+0x62 HCI_WRITE_LOGICAL_LINK_ACCEPT_TIMEOUT
+0x63 HCI_SET_EVENT_MASK_PAGE_2
+0x64 HCI_READ_LOCATION_DATA
+0x65 HCI_WRITE_LOCATION_DATA
+0x66 HCI_READ_FLOW_CONTROL_MODE
+0x67 HCI_WRITE_FLOW_CONTROL_MODE
+0x68 HCI_READ_ENHANCE_TRANSMIT_POWER_LEVEL
+0x69 HCI_READ_BEST_EFFORT_FLUSH_TIMEOUT
+0x6A HCI_WRITE_BEST_EFFORT_FLUSH_TIMEOUT
+0x6B HCI_SHORT_RANGE_MODE
+0x6C HCI_READ_LE_HOST_SUPPORT
+0x6D HCI_WRITE_LE_HOST_SUPPORT
+0x6E HCI_SET_MWS_CHANNEL_PARAMETERS
+0x6F HCI_SET_EXTERNAL_FRAME_CONFIGURATION
+0x70 HCI_SET_MWS_SIGNALING
+0x71 HCI_SET_MWS_TRANSPORT_LAYER
+0x72 HCI_SET_MWS_SCAN_FREQUENCY_TABLE
+0x73 HCI_SET_MWS_PATTERN_CONFIGURATION
+0x74 HCI_SET_RESERVED_LT_ADDR
+0x75 HCI_DELETE_RESERVED_LT_ADDR
+0x76 HCI_SET_CONNECTIONLESS_SLAVE_BROADCAST_DATA
+0x77 HCI_READ_SYNCHRONIZATION_TRAIN_PARAMETERS
+0x78 HCI_WRITE_SYNCHRONIZATION_TRAIN_PARAMETERS
+0x79 HCI_READ_SECURE_CONNECTIONS_HOST_SUPPORT
+0x7A HCI_WRITE_SECURE_CONNECTIONS_HOST_SUPPORT
+0x7B HCI_READ_AUTHENTICATED_PAYLOAD_TIMEOUT
+0x7C HCI_WRITE_AUTHENTICATED_PAYLOAD_TIMEOUT
+0x7D HCI_READ_LOCAL_OOB_EXTENDED_DATA
+0x7E HCI_READ_EXTENDED_PAGE_TIMEOUT
+0x7F HCI_WRITE_EXTENDED_PAGE_TIMEOUT
+0x80 HCI_READ_EXTENDED_INQUIRY_LENGTH
+0x81 HCI_WRITE_EXTENDED_INQUIRY_LENGTH
+)
+
+
+// HCI informational parameters OCF values, OGF=4
+(
+0x01 HCI_READ_LOCAL_VERSION_INFORMATION 
+0x02 HCI_READ_LOCAL_SUPPORTED_COMMANDS
+0x03 HCI_READ_LOCAL_SUPPORTED_FEATURES 
+0x04 HCI_READ_LOCAL_EXT_FEATURES 
+0x05 HCI_READ_BUFFER_SIZE 
+0x07 HCI_READ_COUNTRY_CODE 
+0x09 HCI_READ_BD_ADDR 
+0x0A HCI_REJECT_CONNECTION_REQUEST
+0x0B HCI_READ_LOCAL_SUPPORTED_CODECS
+)
+
+// HCI status parameters OCF values, OGF=5
+(
+0x01 HCI_READ_FAILED_CONTACT_COUNTER 
+0x02 HCI_RESET_FAILED_CONTACT_COUNTER 
+0x03 HCI_GET_LINK_QUALITY 
+0x05 HCI_READ_RSSI 
+0x06 HCI_READ_AFH_CHANNEL_MAP
+0x07 HCI_READ_BD_CLOCK
+0x08 HCI_READ_ENCRYPTION_KEY_SIZE
+0x09 HCI_READ_LOCAL_AMP_INFO
+0x0A HCI_READ_LOCAL_AMP_ASSOC
+0x0B HCI_WRITE_REMOTE_AMP_ASSOC
+0x0C HCI_GET_MWS_TRANSPORT_LAYER_CONFIGURATION
+0x0D HCI_SET_TRIGGERED_CLOCK_CAPTURE
+)
+
+// HCI testing command OCF values, OGF=6
+(
+0x01 HCI_READ_LOOPBACK_MODE 
+0x02 HCI_WRITE_LOOPBACK_MODE 
+0x03 HCI_ENABLE_DEVICE_UNDER_TEST_MODE 
+0x04 HCI_WRITE_SIMPLE_PAIRING_DEBUG_MODE
+0x07 HCI_ENABLE_AMP_RECEIVER_REPORTS
+0x08 HCI_AMP_TEST_END
+0x09 HCI_AMP_TEST
+0x0A HCI_WRITE_SECURE_CONNECTIONS_TEST_MODE
+)
+
+// HCI vendor specific command OCF values -OGF=3F
+(
+0x01 HCI_WRITE_BD_ADDR 
+0x02 HCI_READ_INQUIRY_RESPONSE_TIMEOUT 
+0x03 HCI_WRITE_INQUIRY_RESPONSE_TIMEOUT 
+0x04 HCI_READ_PAGE_SCAN_REPETITION_MODE 
+0x05 HCI_WRITE_PAGE_SCAN_REPETITION_MODE 
+0x06 HCI_READ_PAGE_RESPONSE_TIMEOUT 
+0x07 HCI_WRITE_PAGE_RESPONSE_TIMEOUT 
+0x08 HCI_READ_NEW_CONNECTION_TIMEOUT 
+0x09 HCI_WRITE_NEW_CONNECTION_TIMEOUT 
+0x0a HCI_INITIALIZE_BASEBAND 
+0x0b HCI_WRITE_LOCAL_SUPPORTED_FEATURES 
+0x0c HCI_WRITE_PARK_PARAMETERS 
+0x0d HCI_READ_PARK_PARAMETERS 
+0x0e HCI_WRITE_QUALITY_OF_SERVICE 
+0x0f HCI_NOT_USED 
+0x10 HCI_MODIFY_BEACON_PARAMETERS 
+0x11 HCI_UNPARK_USING_PM_ADDR 
+0x12 HCI_WRITE_HOPPING_CHANNELS 
+0x13 HCI_SLEEP_FOREVER_MODE 
+0x14 HCI_WRITE_AUTO_PAGE_SCAN_ENABLE 
+0x15 HCI_READ_AUTO_PAGE_SCAN_ENABLE 
+0x16 HCI_SET_ENCRYPTION_KEY_SIZE 
+0x17 HCI_INVALIDATE_FLASH_AND_REBOOT 
+0x18 HCI_UPDATE_UART_BAUD_RATE 
+0x19 HCI_WRITE_GPIO_1_4_AS_OUTPUT 
+0x1A HCI_WRITE_GPIO_2_LED 
+0x1B HCI_SET_TESTMODE_TYPE 
+0x1C HCI_WRITE_SCO_PCM_INT_PARAM 
+0x1D HCI_READ_SCO_PCM_INT_PARAM 
+0x1E HCI_WRITE_PCM_DATA_FORMAT_PARAM 
+0x1F HCI_READ_PCM_DATA_FORMAT_PARAM 
+0x20 HCI_WRITE_COMFORT_NOISE_PARAM 
+0x21 HCI_READ_COMFORT_NOISE_PARAM 
+0x22 HCI_WRITE_SCO_TS 
+0x23 HCI_READ_SCO_TS 
+0x24 HCI_WRITE_PCM_LOOPBACK_MODE 
+0x25 HCI_READ_PCM_LOOPBACK_MODE 
+0x26 HCI_SET_TRANSMIT_POWER 
+0x27 HCI_SET_SLEEPMODE_PARAM 
+0x28 HCI_READ_SLEEPMODE_PARAM 
+0x29 HCI_SLEEPMODE_CMD 
+0x2A HCI_DELAY_PERIPHERAL_SCO_STARTUP 
+0x2B HCI_WRITE_RECEIVE_ONLY 
+0x2C HCI_WRITE_RATE_CONTROL 
+0x2D HCI_TX_UNMOD_CARRIER 
+0x2E HCI_DOWNLOAD_MINIDRIVER 
+0x2F HCI_CRYSTAL_PPM 
+0x30 HCI_SET_POWER_AMP_BIAS 
+0x31 HCI_SET_HAM_BEHAVIOR 
+0x32 HCI_SET_AFH_BEHAVIOR 
+0x33 HCI_READ_USER_DEFINED_NVRAM 
+0x34 HCI_ENABLE_RADIO 
+0x35 HCI_READ_DIAGNOSTIC_INFO 
+0x36 HCI_GET_HID_DEVICE_LIST 
+0x37 HCI_ADD_HID_DEVICE 
+0x38 HCI_READ_APP_FW_CONFIG_VERSION 
+0x39 HCI_DELETE_HID_DEVICE 
+0x3B HCI_ENABLE_USB_HID_EMULATION 
+// 0x3A available
+// 0x3B available
+0x3C HCI_SEND_LMPDU 
+0x3D HCI_AUTO_PAIR_REQ 
+0x3E HCI_READ_VS_EXTENSION 
+0x3F HCI_WRITE_VS_EXTENSION 
+
+0x77 HCI_OPCODE_FC77
+0x79 HCI_OPCODE_FC79
+0xC4 HCI_DOWNLOAD_PATCH
+0xCC HCI_OPCODE_FCCC
+
+0x00 HCI_VENDOR_CMD_RESET
+0x01 HCI_VENDOR_CMD_CHIPID
+0x02 HCI_VENDOR_CMD_BAUD
+0x03 HCI_VENDOR_CMD_PATCH
+0x04 HCI_VENDOR_CMD_PATCH_DONE
+0x05 HCI_VENDOR_CMD_ECHO
+0x06 HCI_VENDOR_CMD_BDADDR
+
+0x07 HCI_VENDOR_CMD_ENTER_LPM
+0x08 HCI_VENDOR_CMD_COMMU_READY
+
+0x10 HCI_VENDOR_CMD_MEM
+0x11 HCI_VENDOR_CMD_EEP
+
+0X12 HCI_VENDOR_CMD_PATCH_SEC_INIT
+0X13 HCI_VENDOR_CMD_PATCH_SEC
+0x14 HCI_VENDOR_CMD_SET_FLOW_CONTROL
+)
+
+//HCI LE controller command OCF values, OGF=8
+(
+0x01 HCI_LE_SET_EVENT_MASK
+0x02 HCI_LE_READ_BUFFER_SIZE
+0x03 HCI_LE_READ_LOCAL_SUPPORTED_FEATURES
+0x05 HCI_LE_SET_RANDOM_ADDRESS
+0x06 HCI_LE_SET_ADVERTISING_PARAMETERS
+0x07 HCI_LE_READ_ADVERTISING_CHANNEL_TX_POWER
+0x08 HCI_LE_SET_ADVERTISING_DATA
+0x09 HCI_LE_SET_SCAN_RESPONSE_DATA
+0x0A HCI_LE_SET_ADVERTISE_ENABLE
+0x0B HCI_LE_SET_SCAN_PARAMETERS
+0x0C HCI_LE_SET_SCAN_ENABLE
+0x0D HCI_LE_CREATE_CONNECTION
+0x0E HCI_LE_CREATE_CONNECTION_CANCEL
+0x0F HCI_LE_READ_WHITE_LIST_SIZE
+0x10 HCI_LE_CLEAR_WHITE_LIST
+0x11 HCI_LE_ADD_DEVICE_TO_WHITE_LIST
+0x12 HCI_LE_REMOVE_DEVICE_FROM_WHITE_LIST
+0x13 HCI_LE_CONNECTION_UPDATE
+0x14 HCI_LE_SET_HOST_CHANNEL_CLASSIFICATION
+0x15 HCI_LE_READ_CHANNEL_MAP
+0x16 HCI_LE_READ_REMOTE_USED_FEATURES
+0x17 HCI_LE_ENCRYPT
+0x18 HCI_LE_RAND
+0x19 HCI_LE_START_ENCRYPTION
+0x1A HCI_LE_LONG_TERM_KEY_REQUEST_REPLY
+0x1B HCI_LE_LONG_TERM_KEY_REQUEST_NEGATIVE_REPLY
+0x1C HCI_LE_READ_SUPPORTED_STATES
+0x1D HCI_LE_RECEIVER_TEST
+0x1E HCI_LE_TRANSMITTER_TEST
+0x1F HCI_LE_TEST_END
+0x20 HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_REPLY
+0x21 HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_NEGATIVE_REPLY
+)
+// HCI event code
+(
+0x01 HCI_EVENT_INQUIRY_COMPLETE
+0x02 HCI_EVENT_INQUIRY_RESULT
+0x03 HCI_EVENT_CONNECTION_COMPLETE
+0x04 HCI_EVENT_CONNECTION_REQUEST
+0x05 HCI_EVENT_DISCONNECTION_COMPLETE
+0x06 HCI_EVENT_AUTHENTICATION_COMPLETE
+0x07 HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
+0x08 HCI_EVENT_ENCRYPTION_CHANGE_COMPLETE
+0x09 HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE
+0x0A HCI_EVENT_MASTER_LINK_KEY_COMPLETE
+0x0B HCI_EVENT_READ_REMOTE_FEATURES_COMPLETE
+0x0C HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
+0x0D HCI_EVENT_QOS_SETUP_COMPLETE
+0x0E HCI_EVENT_COMMAND_COMPLETE
+0x0F HCI_EVENT_COMMAND_STATUS
+0x10 HCI_EVENT_HARDWARE_ERROR
+0x11 HCI_EVENT_FLUSH_OCCURRED
+0x12 HCI_EVENT_ROLE_CHANGE
+0x13 HCI_EVENT_NUM_COMPLETED_PACKETS
+0x14 HCI_EVENT_MODE_CHANGE
+0x15 HCI_EVENT_RETURN_LINK_KEYS
+0x16 HCI_EVENT_PIN_CODE_REQUEST
+0x17 HCI_EVENT_LINK_KEY_REQUEST
+0x18 HCI_EVENT_LINK_KEY_NOTIFICATION
+0x19 HCI_EVENT_LOOPBACK_COMMAND
+0x1A HCI_EVENT_DATA_BUFFER_OVERFLOW
+0x1B HCI_EVENT_MAX_SLOTS_CHANGE
+0x1C HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
+0x1D HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
+0x1E HCI_EVENT_QOS_VIOLATION
+0x1F HCI_EVENT_PAGE_SCAN_MODE_CHANGE
+0x20 HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE
+0x21 HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
+0x22 HCI_EVENT_INQUIRY_RESULT_WITHRSSI
+0x23 HCI_EVENT_READ_REMOTE_EXT_FEATURES_COMPLETE
+0x2C HCI_EVENT_SCO_CONNECTION_COMPLETE
+0x2D HCI_EVENT_SCO_CONNECTION_CHANGED
+0x2E HCI_EVENT_SNIFF_SUBRATING
+0x2F HCI_EVENT_EXT_INQUIRY_RESULT
+0x30 HCI_EVENT_ENCRYPT_KEY_REFRESH_COMPLETE
+0x31 HCI_EVENT_IO_CAP_REQ
+0x32 HCI_EVENT_IO_CAP_RESPONSE
+0x33 HCI_EVENT_USER_CONFIRMATION_REQUEST
+0x34 HCI_EVENT_UESR_PASSKEY_REQUEST
+0x35 HCI_EVENT_REMOTE_OOB_DATA_REQUEST
+0x36 HCI_EVENT_SIMPLE_PAIRING_COMPLETE
+0x38 HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED
+0x39 HCI_EVENT_ENHANCED_FLUSH_COMPLETE
+0x3B HCI_EVENT_USER_PASSKEY_NOTIFICATION
+0x3C HCI_EVENT_KEYPRESS_NOTIFICATION
+0x3D HCI_EVENT_REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION 
+0x3E HCI_EVENT_LE_META_EVENT
+0x40 HCI_EVENT_PHYSICAL_LINK_COMPLETE
+0x41 HCI_EVENT_CHANNEL_SELECTED
+0x42 HCI_EVENT_DISCONNECTION_PHYSICAL_LINK_COMPLETE
+0x43 HCI_EVENT_PHYSICAL_LINK_LOSS_EARLY_WARNING
+0x44 HCI_EVENT_PHYSICAL_LINK_RECOVERY
+0x45 HCI_EVENT_LOGICAL_LINK_COMPLETE
+0x46 HCI_EVENT_DISCONNECTION_LOGICAL_LINK_COMPLETE
+0x47 HCI_EVENT_FLOW_SPEC_MODIFY_COMPLETE
+0x48 HCI_EVENT_NUMBER_OF_COMPLETED_DATA_BLOCKS
+0x49 HCI_EVENT_AMP_START_TEST
+0x4A HCI_EVENT_AMP_TEST_END
+0x4B HCI_EVENT_AMP_RECEIVER_REPORT
+0x4C HCI_EVENT_SHORT_RANGE_MODE_CHANGE_COMPLETE
+0x4D HCI_EVENT_AMP_STATUS_CHANGE
+0x4E HCI_EVENT_TRIGGERED_CLOCK_CAPTURE
+0x4F HCI_EVENT_SYNCHRONIZATION_TRAIN_COMPLETE
+0x50 HCI_EVENT_SYNCHRONIZATION_TRAIN_RECEIVED
+0x51 HCI_EVENT_CONNECTIONLESS_SLAVE_BROADCAST_RECEIVE
+0x52 HCI_EVENT_CONNECTIONLESS_SLAVE_BROADCAST_TIMEOUT
+0x53 HCI_EVENT_TRUNCATED_PAGE_COMPLETE
+0x54 HCI_EVENT_SLAVE_PAGE_RESPONSE_TIMEOUT
+0x55 HCI_EVENT_CONNECTIONLESS_SLAVE_BROADCAST_CHANNEL_MAP_CHANGE
+0x56 HCI_EVENT_INQUIRY_RESPONSE_NOTIFICATION
+0x57 HCI_EVENT_AUTHENTICATED_PAYLOAD_TIMEOUT_EXPIRED
+
+0xFE HCI_EVENT_LOGO_TESTING
+0xFF HCI_EVENT_VENDOR_SPECIFIC
+)
+(
+0x01 HCI_VENDOR_EVENT_COMMU_READY
+)
+//HCI LE SUBEVENT CODE
+(
+0x01 HCI_LE_SUBEVENT_CONN_COMPLETE
+0x02 HCI_LE_SUBEVENT_ADV_REPORT
+0x03 HCI_LE_SUBEVENT_CONN_UPDATE_COMPLETE
+0x04 HCI_LE_SUBEVENT_REMOTE_FEATURE_COMPLETE
+0x05 HCI_LE_SUBEVENT_LTK_REQUEST
+0x06 HCI_LE_SUBEVENT_REMOTE_CONN_PARAM_REQ
+)
+
Index: format/keyboard.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/keyboard.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/keyboard.format	(working copy)
@@ -0,0 +1,244 @@
+
+
+(
+0x01 DEVICE_DATA_TPYE_MOUSE
+0x02 DEVICE_DATA_TPYE_STANDARD_KEYBOARD
+0x03 DEVICE_DATA_TPYE_NONSTARNDARD_KEYBOARD
+0x04 DEVICE_DATA_TPYE_CONSUMER
+0x05 DEVICE_DATA_TPYE_SYSTEM_CONCTOL
+)
+
+(
+0x00 HID_REPORTID_KEY_STANDARD
+0x01 HID_REPORTID_MOUSE
+0x02 HID_REPORTID_SYSTEM_CTRL
+0x03 HID_REPORTID_CONSUMER_KEY
+)
+
+(
+0x04	 HID_KEY_A 	 
+0x05        HID_KEY_B 	 
+0x06        HID_KEY_C 	 
+0x07        HID_KEY_D 	 
+0x08        HID_KEY_E 	 
+0x09        HID_KEY_F 	 
+0x0a        HID_KEY_G 	 
+0x0b        HID_KEY_H 	 
+0x0c        HID_KEY_I  	 
+0x0d        HID_KEY_J 	 
+0x0e        HID_KEY_K 	 
+0x0f        HID_KEY_L 	 
+0x10        HID_KEY_M 	 
+0x11        HID_KEY_N 	 
+0x12        HID_KEY_O	 
+0x13        HID_KEY_P	 
+0x14        HID_KEY_Q	 
+0x15        HID_KEY_R	 
+0x16        HID_KEY_S	 
+0x17        HID_KEY_T	 
+0x18        HID_KEY_U	 
+0x19        HID_KEY_V	 
+0x1a        HID_KEY_W 	 
+0x1b        HID_KEY_X	 
+0x1c        HID_KEY_Y	 
+0x1d        HID_KEY_Z	 
+    
+0x1e        HID_KEY_1	 
+0x1f        HID_KEY_2	 
+0x20        HID_KEY_3	 
+0x21        HID_KEY_4	 
+0x22        HID_KEY_5	 
+0x23        HID_KEY_6	 
+0x24        HID_KEY_7	 
+0x25        HID_KEY_8	 
+0x26        HID_KEY_9	 
+0x27        HID_KEY_0	 
+    
+0x28        HID_KEY_ENTER 				 
+0x29        HID_KEY_ESC				 
+0x2a        HID_KEY_BACKSPACE		 
+0x2b        HID_KEY_TAB				 
+0x2c        HID_KEY_SPACE 				 
+0x2d        HID_KEY_MINUS				 		// -_
+0x2e        HID_KEY_EQUAL				 		// =+
+0x2f        HID_KEY_LEFT_BRACKET 		 	// [{
+0x30        HID_KEY_RIGHT_BRACKET 	 		// ]}
+0x31        HID_KEY_BACK_SLASH 		 		// \|
+    
+0x32        HID_KEY_K42				 
+0x33        HID_KEY_SEMICOLON			 	// ;:
+0x34        HID_KEY_QUOTE				 		// ' "
+0x35        HID_KEY_TILDE				 		// `~
+0x36        HID_KEY_LESS_THAN			 		// ,<
+0x37        HID_KEY_GREAT_THAN		 		// .>
+0x38        HID_KEY_SLASH				 		// /?
+0x39        HID_KEY_CAPS_LOCK			 
+
+0x3a        HID_KEY_F1		 
+0x3b        HID_KEY_F2		 
+0x3c        HID_KEY_F3		 
+0x3d        HID_KEY_F4		 
+0x3e        HID_KEY_F5		 
+0x3f        HID_KEY_F6		 
+0x40        HID_KEY_F7		 
+0x41        HID_KEY_F8		 
+0x42        HID_KEY_F9		 
+0x43        HID_KEY_F10	 
+0x44        HID_KEY_F11	 
+0x45        HID_KEY_F12	 
+    
+0x46        HID_KEY_PRINT_SCREEN	 
+0x47        HID_KEY_SCROLL_LOCK	 
+0x48        HID_KEY_PAUSE			 
+0x49        HID_KEY_INSERT			 
+0x4a        HID_KEY_HOME			 
+0x4b        HID_KEY_PAGE_UP		 
+0x4c        HID_KEY_DELETE		 
+0x4d        HID_KEY_END			 
+0x4e        HID_KEY_PAGE_DOWN	 
+        
+0x4f        HID_KEY_RIGHT_ARROW	 
+0x50        HID_KEY_LEFT_ARROW	 
+0x51        HID_KEY_DOWN_ARROW	 
+0x52        HID_KEY_UP_ARROW		 
+        
+0x53        HID_KEY_NUM_LOCK		 
+0x54        HID_KEY_KP_SLASH		 
+0x55        HID_KEY_KP_ASTERISK	 
+0x56        HID_KEY_KP_MINUS		 
+0x57        HID_KEY_KP_PLUS		 
+0x58        HID_KEY_KP_ENTER		 
+0x59        HID_KEY_KP_1			 
+0x5a        HID_KEY_KP_2			 
+0x5b        HID_KEY_KP_3			 
+0x5c        HID_KEY_KP_4			 
+0x5d        HID_KEY_KP_5			 
+0x5e        HID_KEY_KP_6			 
+0x5f        HID_KEY_KP_7			 
+0x60        HID_KEY_KP_8			 
+0x61        HID_KEY_KP_9			 
+0x62        HID_KEY_KP_0			 
+0x63        HID_KEY_KP_DEL		 
+  
+0x64        HID_KEY_K45			 
+0x65        HID_KEY_APP			 
+0x66        HID_KEY_POWER			 
+0x67        HID_KEY_KP_EQUAL		 
+        
+       
+0x87        HID_KEY_K56				 
+0x88        HID_KEY_K133  				 
+0x89        HID_KEY_K14  				 
+0x8a        HID_KEY_K132  				 
+0x8b        HID_KEY_K131 				 
+    
+0x90        HID_KEY_KR_R  				 
+0x91        HID_KEY_KR_L  				 
+        
+0xe0        HID_KEY_LEFT_CTRL			 
+0xe1        HID_KEY_LEFT_SHIFT			 
+0xe2        HID_KEY_LEFT_ALT 			 
+0xe3        HID_KEY_LEFT_GUI 			 
+0xe4        HID_KEY_RIGHT_CTRL			 
+0xe5        HID_KEY_RIGHT_SHIFT		 
+0xe6        HID_KEY_RIGHT_ALT			 
+0xe7        HID_KEY_RIGHT_GUI			 
+
+0xe8 	HID_KEY_MULTIKEY_MEDIA
+0xe9 	HID_KEY_MULTIKEY_PALY
+0xea 	HID_KEY_MULTIKEY_STOP
+0xeb 	HID_KEY_MULTIKEY_PRE_TRACK
+0xec 	HID_KEY_MULTIKEY_NEXT_TRACK
+0xed 	HID_KEY_MULTIKEY_VOL_DOWN
+0xee 	HID_KEY_MULTIKEY_VOL_UP
+0xef 	HID_KEY_MULTIKEY_MUTE
+0xf0 	HID_KEY_MY_COMPUTER
+0xf1 	HID_KEY_MAIL
+0xf2 	HID_KEY_CALCULATOR
+0xf3 	HID_KEY_LIGHT_DOWN
+0xf4 	HID_KEY_LIGHT_UP
+0xf5 	HID_KEY_AC_FAVORITES
+0xf6 	HID_KEY_AC_FORWARD
+0xf7 	HID_KEY_AC_BACK
+0xf8 	HID_KEY_AC_STOP
+0xf9 	HID_KEY_AC_REFRESH
+0xfa 	HID_KEY_AC_SEARCH
+0xfb 	HID_KEY_AC_HOME
+0xfc 	HID_KEY_IOS_ANDROID_OS_LOCK
+0xfd 	HID_KEY_OS_SOFT_KB
+0xfe 	HID_KEY_OS_LANGUAGE
+0xff 	HID_KEY_SYSTEM_SLEEP
+        // 0xe8~0xff reserved
+0xa5	HID_KEY_SELECT_ALL
+0xa6 	HID_KEY_COPY
+0xa7	HID_KEY_PASTE
+0xa8	HID_KEY_CUT
+0xa9	HID_KEY_ALL_OS_LOCK
+0xaa	HID_KEY_OSK
+0xab	HID_KEY_LANGUAGE
+0xac 	HID_KEY_APP_TILING
+0xad	HID_KEY_SEARCH
+0xae    HID_KEY_DESKTOP
+	 // 0xa5~0xaf reserved
+0x7f     	HID_KEY_FN 					 
+0xde     	HID_KEY_PB
+0x00     	HID_KEY_NULL 				 
+)
+
+(
+0x01 LEFT_CONTROL
+0x02 LEFT_SHIFT
+0x04 LEFT_ALT
+0x08 LEFT_GUI
+0x10 RIGHT_CONTROL
+0x20 RIGHT_SHIFT
+0x40 RIGHT_ALT
+0x80 RIGHT_GUI
+0x09 LEFT_GUI_CONTROL
+0x0a LEFT_SHIFT_GUI
+)
+
+
+(
+0x00 KB_PC_KEYSEL_NUMLOCK
+0x01 KB_PC_KEYSEL_CAPSLOCK
+0x02 KB_PC_KEYSEL_SCROLLLOCK
+)
+
+(
+8 KEYSCAN_COL_NUM
+20 KEYSCAN_ROW_NUM
+)
+
+(
+0 CAMMBINATION_KEY_FREE
+1 CAMMBINATION_KEY_PRESS
+2 CAMMBINATION_KEY_HOLD
+3 CAMMBINATION_KEY_COMPLETE
+4 CAMMBINATION_KEY_WAIT_RELEASE
+5 CAMMBINATION_KEY_RELEASE
+6 CAMMBINATION_KEY_NULL
+)
+
+
+(
+
+0x600 PNP_MICROSOFT
+0x4c00 PNP_IOS
+0x1208 PNP_MAC
+
+
+0 SYSTEM_OS_WINDOWS
+1 SYSTEM_OS_ANDRIOD
+2 SYSTEM_OS_IOS
+3 SYSTEM_OS_MAC
+
+)
+
+(
+0 KEYBOARD_CONSUMER_KEY_STANDBY
+1 KEYBOARD_CONSUMER_KEY_PRESS
+2 KEYBOARD_CONSUMER_KEY_RELEASE
+)
+
+
Index: format/kscan_peipherals.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/kscan_peipherals.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/kscan_peipherals.format	(working copy)
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+//0 mem_kscan_head_ptr
+//1 mem_col_num
+//1 mem_row_num
+//4 mem_col_conf_pin
+//4 mem_row_conf_pin
+//1 mem_row_count
+//1 mem_count_shift
+//2 mem_kscan_value_temp
+//2 mem_kscan_lastvalue
+//2 mem_kscan_value
+//4 mem_btclk_kscan
+//1 mem_btclk_kscan_interval
+
+
+0x00 KEYSCAN_OFFECT_COL_NUM
+0x01 KEYSCAN_OFFECT_ROW_NUM
+0x02 KEYSCAN_OFFECT_COL_CONF_PIN
+0x06 KEYSCAN_OFFECT_ROW_CONF_PIN
+
+0x0a KEYSCAN_OFFECT_ROW_COUNT
+0x0b KEYSCAN_OFFECT_SHIFT_COUNT
+
+0X0C KEYSCAN_OFFECT_VALUE_TEMP
+0X0E KEYSCAN_OFFECT_LASVALUE
+0X10 KEYSCAN_OFFECT_VALUE
+0x12 KEYSCAN_OFFECT_BTCLK
+0x16 KEYSCAN_OFFECT_BTCLK_INTERVAL
+
+
Index: format/l2cap.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/l2cap.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/l2cap.format	(working copy)
@@ -0,0 +1,444 @@
+
+memalloc(
+0 mem_l2cap_mem_start
+// L2CAP RX 
+2 mem_l2cap_rxbuff1_len
+2 mem_l2cap_rxbuff2_len
+2 mem_l2cap_rxbuff_new
+1 mem_l2cap_rxbuff_inuse
+2 mem_l2cap_payload_ptr
+2 mem_l2cap_rx_pkt_length
+2 mem_l2cap_rx_cid
+1 mem_l2cap_rx_done
+
+
+
+// L2CAP TX Signal channel
+2 mem_l2cap_signal_tx_buff_ptr
+2 mem_l2cap_signal_tx_payload_ptr
+2 mem_l2cap_signal_tx_length
+// L2CAP TX SDP channel
+2 mem_sdp_tx_buff_ptr
+2 mem_sdp_tx_payload_ptr
+2 mem_sdp_tx_pkt_length
+// L2CAP TX RFCOMM channel
+2 mem_rfcomm_tx_buff_ptr
+2 mem_rfcomm_tx_payload_ptr
+2 mem_rfcomm_tx_pkt_length
+
+
+
+//L2CAP Util
+
+2 memL2CAP_T1
+
+1 mem_CONTROL_tasks
+1 mem_send_config_req
+
+
+1 mem_config_identifier
+2 mem_config_req_dest_CID
+1 mem_rfcomm_malloc_fail_flag
+
+//L2CAP STATE MACHINE
+1 mem_message_to_uppersm
+1 mem_upper_sm_remote_page
+1 mem_upper_sm_reconn
+1 mem_upper_sm_ss
+
+
+64 mem_tx_malloc_log
+0 mem_l2cap_mem_end
+
+
+2 mem_scid
+2 mem_cmd_length
+2 mem_tt2
+2 mem_tt3
+2 mem_id
+2 mem_psm
+
+
+4 mem_l2cap_sdpres_delay_time
+)
+
+xmemalloc(
+0 mem_l2cap_xmem_start
+//*******************L2CAP TX MULTI-PACKET*********************//
+2 mem_l2cap_tx_multi_offset //0 means single packet
+
+//*******************CHANNEL ID*********************//
+2 mem_sdp_remote_cid
+2 mem_rfcomm_remote_cid
+2 mem_hid_ctrl_remote_cid
+2 mem_hid_int_remote_cid
+//*******************CHANNEL STATE*********************//
+1 mem_sdp_state
+1 mem_rfcomm_state
+1 mem_hid_control_state
+1 mem_hid_interrupt_state
+1 mem_spp_state
+1 mem_ML2CAP_comm_id
+
+//*******************L2CAP malloc********************//
+1 mem_used_map
+0 mem_tx_fifo0
+1 mem_tx_fifo0_map
+2 mem_tx_fifo0_ptr
+0 mem_tx_fifo1
+1 mem_tx_fifo1_map
+2 mem_tx_fifo1_ptr
+0 mem_tx_fifo2
+1 mem_tx_fifo2_map
+2 mem_tx_fifo2_ptr
+0 mem_tx_fifo3
+1 mem_tx_fifo3_map
+2 mem_tx_fifo3_ptr
+0 mem_tx_fifo_end
+256 mem_l2cap_lpm_txbuf
+//*******************MISC*********************//
+1 mem_l2cap_flow_ctrl_flag
+1 mem_l2cap_pending_item
+1 mem_l2cap_rcv_hidtype
+0 mem_l2cap_xmem_end
+
+)
+
+
+//mem_l2cap_lpm_txbuf
+(
+256 l2cap_lpm_txbuf_len
+)
+
+(
+4 L2CAP_TX_FIFO_SIZE
+8 L2CAP_TX_BUFF_CNT
+
+)
+(
+0x0002 L2CAP_SIG_EXT_FEATRUE
+0x0003 L2CAP_SIG_FIX_FEATRUE
+)
+
+
+(
+0 HS_IDLE
+1 AG_INIT_CALL
+2 HS_INIT_CALL
+)
+(
+0 M_ACL_LINK_ABSENT
+1 M_ACL_LINK_EXIST
+)
+
+(
+0 L2CAP_INUSE_BUFF1
+1 L2CAP_INUSE_BUFF2
+)
+/* upper layer interface w/ lower layer */
+(
+1 MAX_NUM_LINKS_ALLOWED
+1 MAX_NUM_SCO_ALLOWED
+1 ACL_LINK_PRESENT
+0 ACL_LINK_ABSENT
+)
+(
+1 L2CAP_RX_DONE 
+0 L2CAP_RX_CLEAR
+)
+/* Scheduler */
+(
+0 L2CAP_DISCONNECT_INTERRUPT
+1 RFCOMM_wants_service
+2 L2CAP_sig_Tx_buff_full
+3 RFCOMM_Tx_buff_full
+4 SDP_Tx_buff_full
+5 got_complete_L2CAP_pkt	
+6 L2CAP_init_Config_Req
+7 L2CAP_DISCONNECT_CONTROL
+)
+
+/* mem_CONTROL_tasks2 */
+(
+0 UI_NEED_SERVICE
+)
+/* L2CAP logic channel identifiers (2 bytes) p.261 */
+(
+0x0001 L2CAP_signal_channel
+0x0050 L2CAP_SDP_channel
+0x0051 L2CAP_RFCOMM_channel
+0x0052 L2CAP_HID_Control_channel   
+0x0053 L2CAP_HID_Interrupt_channel
+
+0x0077 L2CAP_AVDTP_signal_channel		//------avdtp
+0x0078 L2CAP_AVDTP_media_channel
+0x0079 L2CAP_AVDTP_report_channel
+0x0080 L2CAP_AVDTP_recovery_channel
+0x00dd L2CAP_AVCTP_Control_channel
+)
+/* L2CAP signalling command codes (1 byte) p.284 */
+(
+0x00 reserved
+0x01 signal_cmd_reject
+0x02 signal_connect_req
+0x03 signal_connect_rsp
+0x04 signal_config_req
+0x05 signal_config_rsp
+0x06 signal_disconnect_req
+0x07 signal_disconnect_rsp
+0x08 signal_echo_req
+0x09 signal_echo_rsp
+0x0a signal_info_req
+0x0b signal_info_rsp
+)
+/* L2CAP signal_command_reject reason code (2 bytes), p.285 */
+(
+0x0000 cmd_not_understood
+0x0001 signalling_MTU_exceeded
+0x0002 invalid_CID_in_req
+)
+/* L2CAP PSM values used in signal_connect_req (2 bytes), p.286 */
+(
+0x0001 PSM_SDP
+0x0003 PSM_RFCOMM
+0x0005 PSM_TCS
+0x0011 PSM_HID_control
+0x0013 PSM_HID_interrupt
+0x0017 PSM_AVCTP
+0x0019 PSM_AVDTP
+)
+/* L2CAP connection response result code (2 bytes), p.288 */
+(
+0x0000 L2CAP_connect_successful
+0x0001 L2CAP_connect_pending
+0x0002 L2CAP_connect_refused_PSM_unsupported
+0x0003 L2CAP_connect_refused_security_block
+0x0004 L2CAP_connect_refused_no_resources
+)
+/* L2CAP connection status values (2 bytes), p.288 */
+(
+0x0000 L2CAP_no_info_available
+0x0001 L2CAP_authentication_pending
+0x0002 L2CAP_authorization_pending
+)
+/* L2CAP configuration response result code (2 bytes), p.292 */
+(
+0x0000 L2CAP_config_success
+0x0001 L2CAP_config_failure_bad_parameters
+0x0002 L2CAP_config_failure_no_reason
+0x0003 L2CAP_config_failure_unknown_options
+)
+/* L2CAP constant definitions */
+(
+128 L2CAP_Rx_buff_size
+48  L2CAP_signal_Tx_buff_size
+128 SDP_Tx_buff_size
+128 RFCOMM_Tx_buff_size
+1 AM_ADDRESS
+3 DM1TYPE
+4 DH1TYPE
+11 DH3TYPE
+8 DVTYPE
+0 channel_state_closed
+1 channel_state_config
+2 channel_state_open
+0x0030 L2CAP_config_MTU_SDP
+0xffff L2CAP_config_ftimeout_SDP
+0x03e3 L2CAP_config_MTU_RFCOMM
+0xffff L2CAP_config_ftimeout_RFCOMM
+260 l2cap_max_pkt_len
+)
+
+(
+0 FAILURE
+1 SUCCESS
+2 IN_PROGRESS
+)
+(
+0x00	IDLE
+0x01	WAIT_4_BB_PAGE
+0x02	WAIT_4_LMP_CONN
+0x03	WAIT_4_SCO_CONN
+0x04	WAIT_4_SCO_KILLED
+)
+
+/*mem_master_mss*/
+(
+0 STOP_ENC
+1 SEND_SWITCH_REQ
+)
+(
+0 HF_HS_READY
+1 HF_AG_READY
+)
+/* mem_hf_state */
+(
+0 HF_STATE_WAITING_RFCOMM_CONN
+1 HF_STATE_HF_SEND_FEATURE
+2 HF_STATE_WAITING_AG_FEATURE_OK
+3 HF_STATE_HF_SEND_INDICATORS
+4 HF_STATE_WAITING_AG_INDICATORS_OK
+5 HF_STATE_HF_SEND_CURR_STATUS
+6 HF_STATE_WAITING_AG_STATUS_OK
+7 HF_STATE_HF_SEND_UPDATE_STATUS
+8 HF_STATE_WAITING_AG_UPDATE_STATUS_OK
+9 HF_STATE_CONNECTED
+0x0a HF_STATE_HF_SEND_RECEIVE_INFO
+0x0b HF_STATE_WAITING_AG_INFO
+0x0c HF_STATE_HF_SEND_AT_CLIP
+0x0d HF_STATE_WAITING_AT_CLIP
+0x0e HF_STATE_HF_SEND_AT_CCWA
+0x0f HF_STATE_WAITING_AT_CCWA
+)
+/*mem_hf_call_state*/
+(
+0 HF_CALL_STATE_INACTIVE
+1 HF_CALL_STATE_SETUP
+2 HF_CALL_STATE_ACTIVE 
+)
+/* mem_pairing_state bit definition */
+(
+0 PAIR_INQUIRY_START
+1 PAIR_INQUIRY_TIME_OUT
+2 PAIR_INQUIRY_FAILED
+3 PAIR_INQUIRY_SUCCESS
+4 PAIR_READY_CONN
+5 PAIR_WAIT_CANCEL_RESPONSE
+6 PAIR_CONN_SUCCESS
+7 PAIR_WAIT_DETACH
+)  
+
+/* mem_pairing_mode bit definition */
+(
+0 FORCE_AUTHENTICATION
+)
+/* mem_hid_protecol_type */
+(
+0 PROTECOL_BOOT /*default*/
+1 PROTECOL_REPORT
+)
+
+/* mem_upper_sm_reconn */
+(
+1 UPPERSM_SEND_SDP_CONN_REQ
+2 UPPERSM_SEND_SDP_CFG_REQ
+3 UPPERSM_SEND_SDP_HF_SS
+4 UPPERSM_SEND_SDP_DISC_REQ
+5 UPPERSM_SEND_RFCOMM_CONN_REQ
+6 UPPERSM_SEND_RFCOMM_CFG_REQ
+7 UPPERSM_SEND_SABM_CMD
+8 UPPERSM_SEND_DISC
+9 UPPERSM_SEND_WAIT
+10 UPPERSM_SEND_HID_CONTROL_CONN_REQ
+11 UPPERSM_SEND_HID_CONTROL_CFG_REQ
+12 UPPERSM_SEND_HID_INTERRUPT_CONN_REQ
+13 UPPERSM_SEND_HID_INTERRUPT_CFG_REQ
+14 UPPERSM_SEND_SDP_HS_SS
+15 UPPERSM_SEND_SDP_PBAP_SS
+16 UPPERSM_SEND_SDP_AVTARG_SS
+)
+/* mem_upper_sm_remote_page */
+(
+1 UPPERSM_RP_SEND_SDP_CONN_REQ
+2 UPPERSM_RP_SEND_SDP_CFG_REQ
+3 UPPERSM_RP_SEND_SDP_HF_SS
+4 UPPERSM_RP_SEND_SDP_HS_SS
+5 UPPERSM_RP_SEND_SDP_PBAP_SS
+6 UPPERSM_RP_SEND_SDP_AVTARG_SS
+7 UPPERSM_RP_SEND_SDP_DISC_REQ
+8 UPPERSM_RP_SEND_AVCTP_CONN_REQ
+9 UPPERSM_RP_SEND_AVCTP_CFG_REQ
+)
+
+/* mem_ML2CAP_flag */
+(
+0 MSCHEDULER_HID_CONTROL_CONN_DONE
+1 MSCHEDULER_HID_INTERRUPT_CONN_DONE
+2 MSCHEDULER_HID_CONTROL_CFG_REQ_DONE
+3 MSCHEDULER_HID_CONTROL_CFG_RSP_DONE
+4 MSCHEDULER_HID_INTERRUPT_CFG_REQ_DONE
+5 MSCHEDULER_HID_INTERRUPT_CFG_RSP_DONE
+6 MSCHEDULER_HID_CONTROL_DISC_DONE
+7 MSCHEDULER_HID_INTERRUPT_DISC_DONE
+)
+/*    ui event    --add by lj*/
+(
+0x00 UI_DATA_EVNET_NONE
+0x01 UI_DATA_EVNET_HID
+0x02 UI_DATA_EVNET_AVDTP_S
+0x03 UI_DATA_EVNET_AVDTP_M
+0x04 UI_DATA_EVNET_AVCTP
+0x05 UI_DATA_EVNET_HS
+0x06 UI_DATA_EVNET_HF
+0x07 UI_DATA_EVNET_SPP
+0x08 UI_DATA_EVNET_OBEX
+)
+/*    ui ack --add by lj*/
+(
+0x00 UI_DATA_TX_NONE
+0x01 UI_DATA_TX_HID
+0x02 UI_DATA_TX_AVDTP_S
+0x03 UI_DATA_TX_AVDTP_M
+0x04 UI_DATA_TX_AVCTP
+0x05 UI_DATA_TX_HS
+0x06 UI_DATA_TX_HF
+0x07 UI_DATA_TX_SPP
+0x08 UI_DATA_TX_OBEX
+0x10 ACL_TX_L2CAP_SIGNAL
+0x11 ACL_TX_SDP
+0x12 ACL_TX_RFCOMM
+
+)
+
+(
+0 L2CAP_SDP_interface_conn
+1 L2CAP_SDP_interface_cfg
+)
+
+(                                   
+0 L2CAP_CHANNEL_STATE_CONN_REQ      
+1 L2CAP_CHANNEL_STATE_CONN_RES      
+2 L2CAP_CHANNEL_STATE_SND_CFG_REQ   
+3 L2CAP_CHANNEL_STATE_SND_CFG_RES   
+4 L2CAP_CHANNEL_STATE_RCV_CFG_REQ   
+5 L2CAP_CHANNEL_STATE_RCV_CFG_RES
+6 L2CAP_CHANNEL_RFCOMM_ONLY_SABM
+7 L2CAP_CHANNEL_RFCOMM_ONLY_UA
+6 L2CAP_CHANNEL_AVDTP_SIGNAL_INIT //set avdtp init complete
+6 L2CAP_CHANNEL_HID_HANDSHAKE_DONE
+0x3f L2CAP_CHANNEL_SETUP_COMPLETE
+0x7f L2CAP_CHANNEL_AVDTP_SIGNAL_COMPLETE
+0xff L2CAP_CHANNEL_RFCOMM_DLCI0_OPENED
+)                                     
+
+/*  AVDTP---lj*/
+(
+0 L2CAP_AVDTP_SIGNAL_CONNECT
+1 L2CAP_AVDTP_SIGNAL_CONFIG
+2 L2CAP_AVDTP_MEDIA_CONNECT
+3 L2CAP_AVDTP_MEDIA_CONFIG
+4 L2CAP_AVDTP_REPORT_CONNECT
+5 L2CAP_AVDTP_REPORT_CONFIG
+6 L2CAP_AVDTP_RECOVERY_CONNECT
+7 L2CAP_AVDTP_RECOVERY_CONFIG
+)
+/*  AVCTP---lj*/
+(
+0 L2CAP_AVCTP_SIGNAL_CONNECT
+1 L2CAP_AVCTP_SIGNAL_CONFIG
+)
+
+127 L2CAP_SIGNAL_MALLOC_SIZE
+
+//1 mem_rfcomm_malloc_fail_flag
+(
+0 RFCOMM_MALLOC_SUCCEED
+1 RFCOMM_MALLOC_FAIL
+)
+
+//mem_l2cap_flow_ctrl_flag
+(
+0 L2CAP_FLOW_CTRL_DISABLE
+1 L2CAP_FLOW_CTRL_ENABLE
+)
+
Index: format/lmp.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/lmp.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/lmp.format	(working copy)
@@ -0,0 +1,249 @@
+
+memalloc(
+
+1 mem_lmo_header_length
+1 mem_lmo_header_opcode
+17 mem_lmo_payload
+1 mem_lmi_accepted_opcode
+1 mem_disconn_reason_send
+1 mem_tx_fixed_freq
+1 mem_rx_fixed_freq
+1 mem_ext_features_page
+2 mem_lmpext_ssp_enable
+1 mem_remote_sppcap
+
+1 mem_lmp_conn_state
+2 mem_soft_timer
+1 mem_pincode_state
+
+1 mem_sres_tid
+1 mem_accptsco_tid
+
+1 mem_wait_encryption
+
+16 mem_sniff_payload
+4 mem_aurand_send_delay_time
+)
+
+xmemalloc(
+1 mem_lmo_header_opcode_x
+1 mem_lmp_version
+2 mem_lmp_compid
+2 mem_lmp_subversion
+1 mem_local_name_length
+3 mem_local_name
+64 mem_local_name2
+1 mem_local_name_end
+1 mem_unsniff2sniff_timer
+1 mem_switch_flag
+1 mem_classic_bt_flag
+1 mem_encapsulated_major_type
+1 mem_encapsulated_minor_type
+1 mem_encapsulated_len
+1 mem_remote_br_sc_support
+)
+
+	(
+	//bit flag:mem_classic_bt_flag
+	0 FLAG_SSP_REJECT_JUSTWORK
+	1 SHORT_MULT_FLAG
+	)
+	
+	(
+	//bit map
+	0 pair_state_inrand
+	1 pair_state_inrand_acpt
+	2 pair_state_send_comb
+	3 pair_state_recv_comb
+	4 pair_state_send_aurand
+	5 pair_state_recv_sres
+	6 pair_state_recv_aurand
+	7 pair_state_send_sres	
+	)
+	/* LMP opcodes */
+	(
+	1 LMP_NAME_REQ 
+	2 LMP_NAME_RES 
+	3 LMP_ACCEPTED 
+	4 LMP_NOT_ACCEPTED 
+	5 LMP_CLKOFFSET_REQ 
+	6 LMP_CLKOFFSET_RES 
+	7 LMP_DETACH 
+	8 LMP_IN_RAND 
+	9 LMP_COMB_KEY 
+	10 LMP_UNIT_KEY 
+	11 LMP_AU_RAND 
+	12 LMP_SRES 
+	13 LMP_TEMP_RAND 
+	14 LMP_TEMP_KEY 
+	15 LMP_ENCRYPTION_MODE_REQ 
+	16 LMP_ENCRYPTION_KEY_SIZE_REQ 
+	17 LMP_START_ENCRYPTION_REQ 
+	18 LMP_STOP_ENCRYPTION_REQ 
+	19 LMP_SWITCH_REQ 
+	20 LMP_HOLD
+	21 LMP_HOLD_REQ
+	23 LMP_SNIFF_REQ 
+	24 LMP_UNSNIFF_REQ 
+	26 LMP_PARK_REQ 
+	27 LMP_SET_BROADCAST_SCAN_WINDOW 
+	28 LMP_MODIFY_BEACON 
+	29 LMP_UNPARK_BD_ADDR_REQ 
+	30 LMP_UNPARK_PM_ADDR_REQ 
+	31 LMP_INCR_POWER_REQ 
+	32 LMP_DECR_POWER_REQ 
+	33 LMP_MAX_POWER 
+	34 LMP_MIN_POWER 
+	35 LMP_AUTO_RATE 
+	36 LMP_PREFERRED_RATE 
+	37 LMP_VERSION_REQ 
+	38 LMP_VERSION_RES 
+	39 LMP_FEATURES_REQ 
+	40 LMP_FEATURES_RES 
+	41 LMP_QUALITY_OF_SERVICE 
+	42 LMP_QUALITY_OF_SERVICE_REQ 
+	43 LMP_SCO_LINK_REQ 
+	44 LMP_REMOVE_SCO_LINK_REQ 
+	45 LMP_MAX_SLOT 
+	46 LMP_MAX_SLOT_REQ 
+	47 LMP_TIMING_ACCURACY_REQ 
+	48 LMP_TIMING_ACCURACY_RES 
+	49 LMP_SETUP_COMPLETE 
+	50 LMP_USE_SEMI_PERMANENT_KEY 
+	51 LMP_HOST_CONNECTION_REQ 
+	52 LMP_SLOT_OFFSET 
+	53 LMP_PAGE_MODE_REQ 
+	54 LMP_PAGE_SCAN_MODE_REQ 
+	55 LMP_SUPERVISION_TIMEOUT 
+	56 LMP_TEST_ACTIVATE
+	57 LMP_TEST_CONTROL
+	58 LMP_ENC_KEY_SIZE_MASK_REQ
+	59 LMP_ENC_KEY_SIZE_MASK_RES
+	60 LMP_SET_AFH
+
+	/* simple pairing support */
+	61 LMP_ENCAPSULATED_HEADER
+	62 LMP_ENCAPSULATED_PAYLOAD
+	63 LMP_SIMPLE_PAIRING_CONFIRM
+	64 LMP_SIMPLE_PAIRING_NUMBER
+	65 LMP_DHKEY_CHECK
+	127 LMP_ESCAPE
+	127 LMP_ESCAPE_4   /* add 2bytes LMP header support  */   
+	)
+	/* LMP EXT opcodes, ORed with bit 7 to make difference to nonEXT */
+	(
+	129 LMP_EXT_ACCEPTED
+	130 LMP_NOT_ACCEPTED_EXT
+	131 LMP_EXT_FEATURES_REQ
+	132 LMP_EXT_FEATURES_RES
+	139 LMP_PACKET_TYPE_TABLE_REQ
+	140 LMP_EXT_ESCO_LINK_REQ
+	141 LMP_EXT_REMOVE_ESCO_REQ
+	144 LMP_EXT_CHN_CLASSIFICATION_REQ
+	145 LMP_EXT_CHN_CLASSIFICATION
+	149 LMP_SNIFF_SUBRATING_REQ
+	150 LMP_SNIFF_SUBRATING_RES
+	151 LMP_PAUSE_ENCRYPTION_REQ
+	152 LMP_RESUME_ENCRYPTION_REQ
+	153 LMP_IO_CAP_REQ
+	154 LMP_IO_CAP_RES
+	161 LMP_PING_REQ
+	162 LMP_PING_RES
+	)
+	/* LMP reason codes */
+	(
+	0x05 AUTHENTICATION_FAILURE_ERROR
+	0x06 KEY_MISSING
+	0x0b ACL_CONNECTION_ALREADY_EXISTS
+	0x13 OTHER_END_TERMINATED
+	0x15 ABOUT_TO_POEWR_OFF
+	0x16 LOCAL_HOST
+	0x18 PAIRING_NOT_ALLOWED
+	0x19 UNKNOWN_LMP_PDU
+	0x1A UNSUPPORTED_LMP_FEATURE 
+	0x1F UNSPECIFIED_ERROR
+	0x20 UNSUPPORTED_PARAMETERS
+	0x21 SWITCH_NOT_ALLOWED
+	0x23 TRANSACTION_COLLISION
+	0x24 PDU_NOT_ALLOWED
+	0x25 ENCRYPTION_MODE_NOT_ACCEPTABLE
+	0x2e NOT_SUPPORT_CHN_CLASSIFICATION
+	0x37 NOT_SUPPORT_SSP
+	)
+
+	/* test mode scenarios */
+	(
+	0 PAUSE_TEST_MODE
+	1 ZERO_PATTERN
+	2 ONE_PATTERN
+	3 ALT_PATTERN
+	4 PSEUDORANDOM
+	5 CLOSED_LOOP_BACK_ACL
+	6 CLOSED_LOOP_BACK_SCO
+	7 ACL_WITHOUT_WHITENING
+	8 SCO_WITHOUT_WHITENING
+	9 ALT2_PATTERN
+	255 EXIT_TEST_MODE
+	)
+	/* test mode hoppig modes */
+	(
+	0 FIXED_FREQ
+	1 NORMAL_HOP
+	)
+
+	/* mem_lmp_tid indicates which type of LMP will be sent */
+	(
+	0 TID_NORM_REPLY
+	1 TID_NORM_SEND
+	2 TID_ONE
+	3 TID_ZERO
+	4 TID_PAIRING
+	5 TID_ENCRYPTION
+	6 TID_VARIABLE
+	7 TID_RX
+	)
+
+	/* ============== lmp status ==========*/
+	(
+	0 lmp_incoming
+	1 lmp_outgoing
+	2 lmp_reject_msg
+	3 lmp_clear_msg
+	4 upper_reject_msg
+	5 upper_clear_msg
+	)
+
+(
+0x2ee00 TIMER_ONE_MINUTE //96000*2
+80 TIMER_SWITCH_WAITE
+12 TIMER_ENPT_WAITE
+)
+
+(
+0 SWITCH_FLAG_INIT
+1 SWITCH_FLAG_ACCEPT
+2 SWITCH_FLAG_NOT_ACCEPT
+)
+(
+0 NULL_ENCRYP
+1 DONE_ENCRYP
+)
+
+
+(
+3 LMP_FEATURES_EXT_PAGE1_SC_HOST_BIT
+)
+
+(
+8 LMP_FEATURES_EXT_PAGE2_SC_CONTROLLER_BIT
+)
+
+
+//mem_remote_br_sc_support
+(
+0 REMOTE_BR_SC_HOST_BIT
+1 REMOTE_BR_SC_CONTROLLER_BIT
+)
+  
+
+
Index: format/memblocks.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/memblocks.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/memblocks.format	(working copy)
@@ -0,0 +1,54 @@
+//
+//
+//Large memory blocks defined in this file.
+//Blocks Shall be defined with absolute address.
+//Blocks' length Shall be specified in comment following Blocks' names.
+//Different blocks MAY be overlap.
+//Blocks defined in this file Shall NOT be overlap with variable in memmap.format.
+
+// USB C51 exchange area
+(
+0xff0 mem_mcmd
+0xff1 mem_mouse_data
+)
+
+//l2cap RX buffers
+(
+0x1000 mem_le_l2cap_buf		//0x400
+0x1000 mem_l2cap_rxbuff1		//0x400
+0x1400 mem_l2cap_rxbuff2		//0x400
+//end address:0x17ff
+)
+//l2cap TX buffers
+(
+0x1800 mem_tx_buff0		//128
+0x0080 mem_bt_l2cap_tx_buff_size
+0x1400 mem_ble_tx_buff0
+0x0100 mem_ble_l2cap_tx_buff_size
+)
+
+(
+0x1800 mem_le_tx_buffer0
+0x1900 mem_le_tx_buffer1
+0x1a00 mem_le_tx_buffer2
+0x1b00 mem_le_tx_buffer3
+//end addr:0x1dff
+)
+
+
+//uart buffer
+(
+0x1800 mem_h5rx_buf//0x400
+0x1bff mem_h5rx_buf_end
+0x1c00 mem_h5tx_buf
+0x1fff mem_h5tx_buf_end
+)
+
+
+(
+0x1800 mem_ir_record
+0x1c      mem_ir_record_max
+)
+
+0x4c00 mem_savelist
+
Index: format/mesh_protocol_stack/mesh_access_layer.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_access_layer.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_access_layer.format	(working copy)
@@ -0,0 +1,348 @@
+
+memalloc ali_mesh(
+	1 mem_mesh_receive_model_message_payload_len
+	1 mem_mesh_receive_model_message_payload_opcode
+	23 mem_mesh_receive_model_message_payload
+
+	1 mem_mesh_access_layer_payload_len
+	0 mem_mesh_access_layer_payload
+	50 mem_mesh_access_payload
+	50 mem_mesh_access_payload_padding	//为了透传模块预留
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	3 mem_mesh_NETKeyindex_and_APPKeyindex
+	16 mem_mesh_receive_application_key
+)
+
+
+(//status codes
+0 STATUS_CODE_SUCCESS
+)
+
+
+// ali vendor message
+(
+0xD0 VENDOR_MESSAGE_ATTR_GET
+0xD1 VENDOR_MESSAGE_ATTR_SET
+0xD2 VENDOR_MESSAGE_ATTR_SET_UNACKNOWLEDGED
+0xD3 VENDOR_MESSAGE_ATTR_STATUS
+0xD4 VENDOR_MESSAGE_ATTR_INDICATION
+0xD5 VENDOR_MESSAGE_ATTR_CONFIRMATION
+0xCF VENDOR_MESSAGE_TRANSPARENT_MSG
+)
+
+
+
+(//configuration message and health message opcode
+0x80 MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER
+
+0x00 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_ADD
+0x01 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_UPDATE
+0x02 MESH_MESSAGE_OPCODE_CONFIG_COMPOSITION_DATA_STATUS
+0x03 MESH_MESSAGE_OPCODE_CONFIG_CONFIG_MODEL_PUBLICATION_SET
+0x04 MESH_MESSAGE_OPCODE_HEALTH_CURRENT_STATUS
+0x05 MESH_MESSAGE_OPCODE_HEALTH_FAULT_STATUS
+0x06 MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_PUBLICATION_STATUS
+0x00 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_DELETE_NO_HEAD
+0x01 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_GET_NO_HEAD
+0x02 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_LIST_NO_HEAD
+0x03 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_STATUS_NO_HEAD
+0x04 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_GET_NO_HEAD
+0x05 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_SET_NO_HEAD
+0x06 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_SET_UNACKNOWLEDGED_NO_HEAD
+0x07 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_STATUS_NO_HEAD
+0x08 MESH_MESSAGE_OPCODE_CONFIG_COMPOSITION_DATA_GET_NO_HEAD
+0x09 MESH_MESSAGE_OPCODE_CONFIG_BEACON_GET_NO_HEAD
+0x0A MESH_MESSAGE_OPCODE_CONFIG_BEACON_SET_NO_HEAD
+0x0B MESH_MESSAGE_OPCODE_CONFIG_BEACON_STATUS_NO_HEAD
+0x0C MESH_MESSAGE_OPCODE_CONFIG_DEFAULT_TTL_GET_NO_HEAD
+0x0D MESH_MESSAGE_OPCODE_CONFIG_DEFAULT_TTL_SET_NO_HEAD
+0x0E MESH_MESSAGE_OPCODE_CONFIG_DEFAULT_TTL_STATUS_NO_HEAD
+0x0F MESH_MESSAGE_OPCODE_CONFIG_FRIEND_GET_NO_HEAD
+0x10 MESH_MESSAGE_OPCODE_CONFIG_FRIEND_SET_NO_HEAD
+0x11 MESH_MESSAGE_OPCODE_CONFIG_FRIEND_STATUS_NO_HEAD
+0x12 MESH_MESSAGE_OPCODE_CONFIG_GATT_PROXY_GET_NO_HEAD
+0x13 MESH_MESSAGE_OPCODE_CONFIG_GATT_PROXY_SET_NO_HEAD
+0x14 MESH_MESSAGE_OPCODE_CONFIG_GATT_PROXY_STATUS_NO_HEAD
+0x15 MESH_MESSAGE_OPCODE_CONFIG_KEY_REFRESH_PHASE_GET_NO_HEAD
+0x16 MESH_MESSAGE_OPCODE_CONFIG_KEY_REFRESH_PHASE_SET_NO_HEAD
+0x17 MESH_MESSAGE_OPCODE_CONFIG_KEY_REFRESH_PHASE_STATUS_NO_HEAD
+0x18 MESH_MESSAGE_OPCODE_CONFIG_MODEL_PUBLICATION_GET_NO_HEAD
+0x19 MESH_MESSAGE_OPCODE_CONFIG_MODEL_PUBLICATION_STATUS_NO_HEAD
+0x1A MESH_MESSAGE_OPCODE_CONFIG_MODEL_PUBLICATION_VIRTUAL_ADDRESS_SET_NO_HEAD
+0x1B MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_ADD_NO_HEAD
+0x1C MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_DELETE_NO_HEAD
+0x1D MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_DELETE_ALL_NO_HEAD
+0x1E MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_OVERWRITE_NO_HEAD
+0x1F MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_STATUS_NO_HEAD
+0x20 MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_ADD_NO_HEAD
+0x21 MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_DELETE_NO_HEAD
+0x22 MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_OVERWRITE_NO_HEAD
+0x23 MESH_MESSAGE_OPCODE_CONFIG_NETWORK_TRANSMIT_GET_NO_HEAD
+0x24 MESH_MESSAGE_OPCODE_CONFIG_NETWORK_TRANSMIT_SET_NO_HEAD
+0x25 MESH_MESSAGE_OPCODE_CONFIG_NETWORK_TRANSMIT_STATUS_NO_HEAD
+0x26 MESH_MESSAGE_OPCODE_CONFIG_RELAY_GET_NO_HEAD
+0x27 MESH_MESSAGE_OPCODE_CONFIG_RELAY_SET_NO_HEAD
+0x28 MESH_MESSAGE_OPCODE_CONFIG_RELAY_STATUS_NO_HEAD
+0x29 MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_SUBSCRIPTION_GET_NO_HEAD
+0x2A MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_SUBSCRIPTION_LIST_NO_HEAD
+0x2B MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_SUBSCRIPTION_GET_NO_HEAD
+0x2C MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_SUBSCRIPTION_LIST_NO_HEAD
+0x2D MESH_MESSAGE_OPCODE_CONFIG_LOW_POWER_NODE_POLLTIMEOUT_GET_NO_HEAD
+0x2E MESH_MESSAGE_OPCODE_CONFIG_LOW_POWER_NODE_POLLTIMEOUT_STATUS_NO_HEAD
+0x2F MESH_MESSAGE_OPCODE_HEALTH_FAULT_CLEAR_NO_HEAD
+0x30 MESH_MESSAGE_OPCODE_HEALTH_FAULT_CLEAR_UNACKNOWLEDGED_NO_HEAD
+0x31 MESH_MESSAGE_OPCODE_HEALTH_FAULT_GET_NO_HEAD
+0x32 MESH_MESSAGE_OPCODE_HEALTH_FAULT_TEST_NO_HEAD
+0x33 MESH_MESSAGE_OPCODE_HEALTH_FAULT_TEST_UNACKNOWLEDGED_NO_HEAD
+0x34 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_GET_NO_HEAD
+0x35 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_SET_NO_HEAD
+0x36 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_SET_UNACKNOWLEDGED_NO_HEAD
+0x37 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_STATUS_NO_HEAD
+0x38 MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_PUBLICATION_GET_NO_HEAD
+0x39 MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_PUBLICATION_SET_NO_HEAD
+0x3A MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_SUBSCRIPTION_GET_NO_HEAD
+0x3B MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_SUBSCRIPTION_SET_NO_HEAD
+0x3C MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_SUBSCRIPTION_STATUS_NO_HEAD
+0x3D MESH_MESSAGE_OPCODE_CONFIG_MODEL_APP_BIND_NO_HEAD
+0x3E MESH_MESSAGE_OPCODE_CONFIG_MODEL_APP_STATUS_NO_HEAD
+0x3F MESH_MESSAGE_OPCODE_CONFIG_MODEL_APP_UNBIND_NO_HEAD
+0x40 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_ADD_NO_HEAD
+0x41 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_DELETE_NO_HEAD
+0x42 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_GET_NO_HEAD
+0x43 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_LIST_NO_HEAD
+0x44 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_STATUS_NO_HEAD
+0x45 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_UPDATE_NO_HEAD
+0x46 MESH_MESSAGE_OPCODE_CONFIG_NODE_IDENTITY_GET_NO_HEAD
+0x47 MESH_MESSAGE_OPCODE_CONFIG_NODE_IDENTITY_SET_NO_HEAD
+0x48 MESH_MESSAGE_OPCODE_CONFIG_NODE_IDENTITY_STATUS_NO_HEAD
+0x49 MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_NO_HEAD
+0x4A MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_STATUS_NO_HEAD
+0x4B MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_APP_GET_NO_HEAD
+0x4C MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_APP_LIST_NO_HEAD
+0x4D MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_APP_GET_NO_HEAD
+0x4E MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_APP_LIST_NO_HEAD
+)
+
+(//Modle message opcode
+0x82 MESH_MODULE_MESSAGE_OPCODE_HEADER
+
+0x01 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_GET_NO_HEAD
+0x02 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_SET_NO_HEAD
+0x03 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_SET_UNACKNOWLEDGED_NO_HEAD
+0x04 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_STATUS_NO_HEAD
+0x05 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_GET_NO_HEAD
+0x06 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_SET_NO_HEAD
+0x07 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_SET_UNACKNOWLEDGED_NO_HEAD
+0x08 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_STATUS_NO_HEAD
+0x09 MESH_MODULE_MESSAGE_OPCODE_GENERIC_DELTA_SET_NO_HEAD
+0x0A MESH_MODULE_MESSAGE_OPCODE_GENERIC_DELTA_SET_UNACKNOWLEDGED_NO_HEAD
+0x0B MESH_MODULE_MESSAGE_OPCODE_GENERIC_MOVE_SET_NO_HEAD
+0x0C MESH_MODULE_MESSAGE_OPCODE_GENERIC_MOVE_SET_UNACKNOWLEDGED_NO_HEAD
+0x0D MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_GET_NO_HEAD
+0x0E MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_SET_NO_HEAD
+0x0F MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_SET_UNACKNOWLEDGED_NO_HEAD
+0x10 MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_STATUS_NO_HEAD
+0x11 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_GET_NO_HEAD
+0x12 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_STATUS_NO_HEAD
+0x13 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_SET_NO_HEAD
+0x14 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_SET_UNACKNOWLEDGED_NO_HEAD
+0x15 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_GET_NO_HEAD
+0x16 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_SET_NO_HEAD
+0x17 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_SET_UNACKNOWLEDGED_NO_HEAD
+0x18 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_STATUS_NO_HEAD
+0x19 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LAST_GET_NO_HEAD
+0x1A MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LAST_STATUS_NO_HEAD
+0x1B MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_GET_NO_HEAD
+0x1C MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_STATUS_NO_HEAD
+0x1D MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_GET_NO_HEAD
+0x1E MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_STATUS_NO_HEAD
+0x1F MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_SET_NO_HEAD
+0x20 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x21 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_SET_NO_HEAD
+0x22 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x23 MESH_MODULE_MESSAGE_OPCODE_GENERIC_BATTERY_GET_NO_HEAD
+0x24 MESH_MODULE_MESSAGE_OPCODE_GENERIC_BATTERY_STATUS_NO_HEAD
+0x25 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_GET_NO_HEAD
+0x40 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_STATUS
+0x26 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_GET_NO_HEAD
+0x27 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_STATUS_NO_HEAD
+0x41 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_SET
+0x42 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_SET_UNACKNOWLEDGED
+0x28 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_SET_NO_HEAD
+0x29 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_SET_UNACKNOWLEDGED_NO_HEAD
+0x2A MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTIES_GET_NO_HEAD
+0x43 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTIES_STATUS
+0x2B MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_GET_NO_HEAD
+0x44 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_SET
+0x45 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_SET_UNACKNOWLEDGED
+0x46 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_STATUS
+0x2C MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTIES_GET_NO_HEAD
+0x47 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTIES_STATUS
+0x2D MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_GET_NO_HEAD
+0x48 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_SET
+0x49 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_SET_UNACKNOWLEDGED
+0x4A MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_STATUS
+0x2E MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTIES_GET_NO_HEAD
+0x4B MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTIES_STATUS
+0x2F MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_GET_NO_HEAD
+0x4C MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_SET
+0x4D MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_SET_UNACKNOWLEDGED
+0x4E MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_STATUS
+0x4F MESH_MODULE_MESSAGE_OPCODE_GENERIC_CLIENT_PROPERTIES_GET
+0x50 MESH_MODULE_MESSAGE_OPCODE_GENERIC_CLIENT_PROPERTIES_STATUS
+0x30 MESH_MODULE_MESSAGE_OPCODE_SENSOR_DESCRIPTOR_GET_NO_HEAD
+0x51 MESH_MODULE_MESSAGE_OPCODE_SENSOR_DESCRIPTOR_STATUS
+0x31 MESH_MODULE_MESSAGE_OPCODE_SENSOR_GET_NO_HEAD
+0x52 MESH_MODULE_MESSAGE_OPCODE_SENSOR_STATUS
+0x32 MESH_MODULE_MESSAGE_OPCODE_SENSOR_COLUMN_GET_NO_HEAD
+0x53 MESH_MODULE_MESSAGE_OPCODE_SENSOR_COLUMN_STATUS
+0x33 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SERIES_GET_NO_HEAD
+0x54 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SERIES_STATUS
+0x34 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_GET_NO_HEAD
+0x55 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_SET
+0x56 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_SET_UNACKNOWLEDGED
+0x57 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_STATUS
+0x35 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTINGS_GET_NO_HEAD
+0x58 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTINGS_STATUS
+0x36 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_GET_NO_HEAD
+0x59 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_SET
+0x5A MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_SET_UNACKNOWLEDGED
+0x5B MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_STATUS
+0x37 MESH_MODULE_MESSAGE_OPCODE_TIME_GET_NO_HEAD
+0x5C MESH_MODULE_MESSAGE_OPCODE_TIME_SET
+0x5D MESH_MODULE_MESSAGE_OPCODE_TIME_STATUS
+0x38 MESH_MODULE_MESSAGE_OPCODE_TIME_ROLE_GET_NO_HEAD
+0x39 MESH_MODULE_MESSAGE_OPCODE_TIME_ROLE_SET_NO_HEAD
+0x3A MESH_MODULE_MESSAGE_OPCODE_TIME_ROLE_STATUS_NO_HEAD
+0x3B MESH_MODULE_MESSAGE_OPCODE_TIME_ZONE_GET_NO_HEAD
+0x3C MESH_MODULE_MESSAGE_OPCODE_TIME_ZONE_SET_NO_HEAD
+0x3D MESH_MODULE_MESSAGE_OPCODE_TIME_ZONE_STATUS_NO_HEAD
+0x3E MESH_MODULE_MESSAGE_OPCODE_TAI_UTC_DELTA_GET_NO_HEAD
+0x3F MESH_MODULE_MESSAGE_OPCODE_TAI_UTC_DELTA_SET_NO_HEAD
+0x40 MESH_MODULE_MESSAGE_OPCODE_TAI_UTC_DELTA_STATUS_NO_HEAD
+0x41 MESH_MODULE_MESSAGE_OPCODE_SCENE_GET_NO_HEAD
+0x42 MESH_MODULE_MESSAGE_OPCODE_SCENE_RECALL_NO_HEAD
+0x43 MESH_MODULE_MESSAGE_OPCODE_SCENE_RECALL_UNACKNOWLEDGED_NO_HEAD
+0x5E MESH_MODULE_MESSAGE_OPCODE_SCENE_STATUS
+0x44 MESH_MODULE_MESSAGE_OPCODE_SCENE_REGISTER_GET_NO_HEAD
+0x45 MESH_MODULE_MESSAGE_OPCODE_SCENE_REGISTER_STATUS_NO_HEAD
+0x46 MESH_MODULE_MESSAGE_OPCODE_SCENE_STORE_NO_HEAD
+0x47 MESH_MODULE_MESSAGE_OPCODE_SCENE_STORE_UNACKNOWLEDGED_NO_HEAD
+0x9E MESH_MODULE_MESSAGE_OPCODE_SCENE_DELETE_NO_HEAD
+0x9F MESH_MODULE_MESSAGE_OPCODE_SCENE_DELETE_UNACKNOWLEDGED_NO_HEAD
+0x48 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_GET_NO_HEAD
+0x5F MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_STATUS
+0x49 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_GET_NO_HEAD
+0x4A MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_STATUS_NO_HEAD
+0x60 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_SET
+0x61 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_SET_UNACKNOWLEDGED
+0x4B MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LIGHT_LIGHTNESS_GET_NO_HEAD
+0x4C MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_SET_NO_HEAD
+0x4D MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_SET_UNACKNOWLEDGED_NO_HEAD
+0x4E MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_STATUS_NO_HEAD
+0x4F MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_GET_NO_HEAD
+0x50 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_SET_NO_HEAD
+0x51 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_SET_UNACKNOWLEDGED_NO_HEAD
+0x52 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_STATUS_NO_HEAD
+0x53 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LAST_GET_NO_HEAD
+0x54 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LAST_STATUS_NO_HEAD
+0x55 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_GET_NO_HEAD
+0x56 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_STATUS_NO_HEAD
+0x57 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_GET_NO_HEAD
+0x58 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_STATUS_NO_HEAD
+0x59 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_SET_NO_HEAD
+0x5A MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x5B MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_SET_NO_HEAD
+0x5C MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x5D MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_GET_NO_HEAD
+0x5E MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_SET_NO_HEAD
+0x5F MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_SET_UNACKNOWLEDGED_NO_HEAD
+0x60 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_STATUS_NO_HEAD
+0x61 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_GET_NO_HEAD
+0x62 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_GET_NO_HEAD
+0x63 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_STATUS_NO_HEAD
+0x64 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_SET_NO_HEAD
+0x65 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_SET_UNACKNOWLEDGED_NO_HEAD
+0x66 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_STATUS_NO_HEAD
+0x67 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_GET_NO_HEAD
+0x68 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_STATUS_NO_HEAD
+0x69 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_SET_NO_HEAD
+0x6A MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x6B MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_SET_NO_HEAD
+0x6C MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x6D MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_GET_NO_HEAD
+0x6E MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_GET_NO_HEAD
+0x6F MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_SET_NO_HEAD
+0x70 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_SET_UNACKNOWLEDGED_NO_HEAD
+0x71 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_STATUS_NO_HEAD
+0x72 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_GET_NO_HEAD
+0x73 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_SET_NO_HEAD
+0x74 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_SET_UNACKNOWLEDGED_NO_HEAD
+0x75 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_STATUS_NO_HEAD
+0x76 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SET_NO_HEAD
+0x77 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SET_UNACKNOWLEDGED_NO_HEAD
+0x78 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_STATUS_NO_HEAD
+0x79 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_TARGET_GET_NO_HEAD
+0x7A MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_TARGET_STATUS_NO_HEAD
+0x7B MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_GET_NO_HEAD
+0x7C MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_STATUS_NO_HEAD
+0x7D MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_RANGE_GET_NO_HEAD
+0x7E MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_RANGE_STATUS_NO_HEAD
+0x7F MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_SET_NO_HEAD
+0x80 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x81 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_RANGE_SET_NO_HEAD
+0x83 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_GET_NO_HEAD
+0x84 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_SET_NO_HEAD
+0x85 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_SET_UNACKNOWLEDGED_NO_HEAD
+0x86 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_STATUS_NO_HEAD
+0x87 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_TARGET_GET_NO_HEAD
+0x88 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_TARGET_STATUS_NO_HEAD
+0x89 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_GET_NO_HEAD
+0x8A MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_STATUS_NO_HEAD
+0x8B MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_GET_NO_HEAD
+0x8C MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_STATUS_NO_HEAD
+0x8D MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_SET_NO_HEAD
+0x8E MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x8F MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_SET_NO_HEAD
+0x90 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x91 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_GET_NO_HEAD
+0x92 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_SET_NO_HEAD
+0x93 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_SET_UNACKNOWLEDGED_NO_HEAD
+0x94 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_STATUS_NO_HEAD
+0x95 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_GET_NO_HEAD
+0x96 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_SET_NO_HEAD
+0x97 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_SET_UNACKNOWLEDGED_NO_HEAD
+0x98 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_STATUS_NO_HEAD
+0x99 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_GET_NO_HEAD
+0x9A MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_SET_NO_HEAD
+0x9B MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_SET_UNACKNOWLEDGED_NO_HEAD
+0x9C MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_STATUS_NO_HEAD
+0x9D MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_GET_NO_HEAD
+0x62 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_SET
+0x63 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_SET_UNACKNOWLEDGED
+0x64 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_STATUS)
+
+// status code
+(
+0x00 MESH_SUCCESS
+0x01 MESH_INVALID_ADDRESS
+0x02 MESH_INVALID_MODEL
+0x03 MESH_INVALID_APPKEYINDEX
+0x04 MESH_INVALID_NETKEYINDEX
+0x05 MESH_INSUFFICIENT_RESOURCES
+0x06 MESH_KEYINDEX_ALREAD_STORED
+0x07 MESH_INVALID_PUBLISH_PARAMETERS
+0x08 MESH_NOT_A_SUBSCRIBE_MODEL
+0x09 MESH_STORAGE_FAILURE
+0x0a MESH_FEATURE_NOT_SUPPORTED
+0x0b MESH_CANNOT_UPDATE
+0x0c MESH_CANNOT_REMOVE
+0x0d MESH_CANNOT_BIND
+0x0e MESH_TEMPORARILY_UNABLE_TO_CHANGE_STATE
+0x0f MESH_CANNOT_SET
+0x10 MESH_UNSPECIFIED_ERROR
+0x11 MESH_INVALID_BINDING
+)
+
Index: format/mesh_protocol_stack/mesh_ali_vendor_message.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_ali_vendor_message.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_ali_vendor_message.format	(working copy)
@@ -0,0 +1,149 @@
+
+xmemalloc ali_mesh(
+	1 mem_mesh_vendor_mesh_receive_tid
+	1 mem_mesh_vendor_mesh_send_tid
+
+	4 mem_mesh_vendor_timer_current_time
+	4 mem_system_time
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	2 mem_mesh_vendor_message_cid
+	1 mem_mesh_vendor_message_tid
+	2 mem_mesh_vendor_message_attr_type
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_header
+	0 mem_mesh_vendor_attr_parameter
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_delay_close_time_header
+	2 mem_mesh_vendor_delay_close_time
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_night_light_onoff_header
+	1 mem_mesh_vendor_night_light_onoff
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_color_header
+	2 mem_mesh_vendor_color_lightness
+	2 mem_mesh_vendor_color_hue
+	2 mem_mesh_vendor_color_saturation
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_back_light_onoff_header
+	1 mem_mesh_vendor_back_light_onoff
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_main_light_onoff_header
+	1 mem_mesh_vendor_main_light_onoff
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_standby_brightness_header
+	2 mem_mesh_vendor_standby_brightness
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_current_time_header
+	4 mem_mesh_vendor_message_current_time
+)
+
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_timer_header
+	1 mem_mesh_vendor_timer_timing_index
+	0 mem_mesh_vendor_timer_timing_index1
+	4 mem_mesh_vendor_timer_timing_time
+	2 mem_mesh_vendor_timer_timing_attr_type
+	1 mem_mesh_vendor_timer_timing_attr_para
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	5 mem_mesh_vendor_message_timer_cyclic_header
+	1 mem_mesh_vendor_timer_timing_index_cyclic
+	2 mem_mesh_vendor_timer_timing_time_cyclic
+	1 mem_mesh_vendor_timer_timing_weekdays_cyclic
+	2 mem_mesh_vendor_timer_timing_attr_type_cyclic
+	1 mem_mesh_vendor_timer_timing_attr_para_cyclic
+	1 mem_mesh_vendor_timer_timing_cyclic_flag
+)
+
+amemalloc mem_mesh_access_layer_payload(
+	//ali mesh vendor struct
+	1 mem_mesh_access_layer_payload_vendor_command
+	2 mem_mesh_access_layer_payload_vendor_CID
+	1 mem_mesh_access_layer_payload_vendor_tid
+	2 mem_mesh_access_layer_payload_vendor_attr_type
+	1 mem_mesh_access_layer_payload_vendor_attr_parameter
+)
+
+
+(
+0x00F0 VENDOR_MESSAGE_TMALL_DST
+)
+
+(// vendor model attribute
+0x0123 VENDOR_ATTR_COLOR_SERVER
+0x0100 VENDOR_ATTR_GENERIC_ONOFF_SERVER
+0x0121 VENDOR_ATTR_LIGHTNESS_LEVEL_SERVER
+0x0122 VENDOR_ATTR_COLOR_TEMPERATURE_SERVER
+0x0534 VENDOR_ATTR_MAIN_LIGHT_SERVER
+0x0533 VENDOR_ATTR_BACKGROUND_LIGHT_ONOFF_SERVER
+0xf004 VENDOR_ATTR_SCENE_SERVER
+)
+
+(//Timer opcode
+0x01A8 VENDOR_MESSAGE_OPCODE_COMPANY_ID
+//时间
+0xF01F VENDOR_MESSAGE_ATTR_TYPE_TIME
+//时区
+0xF01E VENDOR_MESSAGE_ATTR_TYPE_TIME_ZONE
+//对时
+0xF01D VENDOR_MESSAGE_ATTR_TYPE_ON_TIME
+//定时
+0xF010 VENDOR_MESSAGE_ATTR_TYPE_TIMING
+//周期定时
+0xF011 VENDOR_MESSAGE_ATTR_TYPE_CYCLE_TIMING
+//删除定时
+0xF012 VENDOR_MESSAGE_ATTR_TYPE_DELETE_TIMING
+
+//颜色
+0x0123 VENDOR_MESSAGE_ATTR_TYPE_COLOR
+//主灯
+0x0534 VENDOR_MESSAGE_ATTR_TYPE_MAIN_LIGHT
+//背光灯
+0x0533 VENDOR_MESSAGE_ATTR_TYPE_BACKGROUND_LIGHT
+)
+
+(//天猫event事件表
+//设备发生的事件，比如上电或者定时完成
+0xF009 VENDOR_ATTR_TYPE_EVENT_TRIGGER
+
+//天猫设备上电
+0x03 VENDOR_MESSAGE_EVENT_DEVICE_POWER_ON
+//天猫定时完成
+0x11 VENDOR_MESSAGE_EVENT_FINISH_TIMING
+)
+
+(
+0x80 VENDOR_MESSAGE_SEND_TID_MIN
+0xC0 VENDOR_MESSAGE_SEND_TID_MAX
+)
+
+(
+0x59 TIMER_CYCLICAL_FALG
+60 SECONDS_OF_MIN
+345600 SECONDS_OF_FOUR_DAYS
+604800 SECONDS_OF_WEEK
+86400 SECONDS_OF_DAY
+0x01e0 EIGHT_HOURS_TIME_ZONE_OFFSET
+
+)
+
Index: format/mesh_protocol_stack/mesh_bearer_layer.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_bearer_layer.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_bearer_layer.format	(working copy)
@@ -0,0 +1,10 @@
+
+memalloc ali_mesh(
+	0 mem_mesh_queue_ele_temp
+	1 mem_mesh_queue_ele_duration
+	1 mem_mesh_queue_ele_gatt_msg_id
+	1 mem_mesh_queue_ele_len
+	31 mem_mesh_queue_ele_payload
+	1 mem_mesh_queue_ele_padding
+)
+
Index: format/mesh_protocol_stack/mesh_ble_core_advertising.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_ble_core_advertising.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_ble_core_advertising.format	(working copy)
@@ -0,0 +1,26 @@
+
+memalloc ali_mesh(
+	39 mem_le_txheader_mesh_temp
+	
+)
+
+xmemalloc ali_mesh(
+
+	
+	1 mem_mesh_adv_data_len
+	31 mem_mesh_adv_data
+
+	1 mem_mesh_adv_scan_channel
+)
+
+
+(
+6 ADV_PACKET_MIN_LENGTH
+37 ADV_PACKET_MAX_LENGTH
+
+1 AD_TYPE_MIN_LENGTH
+30 AD_TYPE_MAX_LENGTH
+)
+
+
+
Index: format/mesh_protocol_stack/mesh_chip_peripherals.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_chip_peripherals.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_chip_peripherals.format	(working copy)
@@ -0,0 +1,34 @@
+
+
+amemalloc mem_temp_block0(
+	64 mem_mesh_subscription_eep_temp
+)
+
+(//transport mic cache parameter
+10 TRANSPORT_MIC_CACHE_SPACE_NUM
+4 TRANSPORT_MIC_CACHE_SPACE_SIZE
+//总长度少一个space
+36 TRANSPORT_MIC_CACHE_TOTAL_SIZE
+)
+
+(
+0x00 MESH_EEP_THREE_TUPLE_OFFSET
+0x1a MESH_EEP_NETWORK_KEY_OFFSET
+0x2d MESH_EEP_APPLICATION_KEY_OFFSET
+0x3d MESH_EEP_DEVICE_KEY_OFFSET
+0x4d MESH_EEP_RESET_COUNT_OFFSET
+0x4e MESH_EEP_SEQ_OFFSET
+0x51 MESH_EEP_SUBSCRIPTION_OFFSET
+)
+
+(
+0x1a MESH_EEP_THREE_TUPLE_LENGTH
+0x13 MESH_EEP_NETWORK_KEY_LENGTH
+0x10 MESH_EEP_APPLICATION_KEY_LENGTH
+0x10 MESH_EEP_DEVICE_KEY_LENGTH
+0x01 MESH_EEP_RESET_COUNT_LENGTH
+0x03 MESH_EEP_SEQ_LENGTH
+0x10 MESH_EEP_SUBSCRIPTION_LENGTH
+0x40 MESH_EEP_SUBSCRIPTION_TOTAL_LENGTH
+)
+
Index: format/mesh_protocol_stack/mesh_control_ble_advertising.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_control_ble_advertising.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_control_ble_advertising.format	(working copy)
@@ -0,0 +1,57 @@
+
+
+xmemalloc ali_mesh(
+	1 mem_mesh_advertising_unprovisioned_device_beacon_switch
+	//未配网广播间隔
+	2 mem_mesh_advertising_unprovisioned_device_beacon_timer
+
+	//广播生存周期
+	1 mem_mesh_advertising_unprovisioned_device_beacon_duration
+	//广播周期之间的间隔
+	1 mem_mesh_advertising_unprovisioned_device_beacon_interval
+
+)
+
+(//mem_mesh_advertising_unprovisioned_device_beacon_switch
+0 DEVICE_BEACON_OFF
+1 DEVICE_BEACON_ON
+)
+
+(
+//未配网广播超时10min
+0x1770	ADV_UNPROVISIONED_DEVICE_BEACON_TIMEOUT
+//未配网广播间隔500ms
+5		ADV_UNPROVISIONED_DEVICE_BEACON_INTERVAL
+//未配网广播时长120ms=20ms*6
+6		ADV_UNPROVISIONED_DEVICE_BEACON_DURATION
+
+//静默广播超时:无
+0		ADV_SILENCE_DEVICE_BEACON_TIMEOUT
+//静默广播间隔60s
+600		ADV_SILENCE_DEVICE_BEACON_INTERVAL
+//静默广播时长120ms=20ms*6
+6		ADV_SILENCE_DEVICE_BEACON_DURATION
+
+
+//配网后广播间隔
+0x54		ADV_PAIRING_MESH_MESSAGE_INTERVAL
+//配网后广播时长
+20		ADV_PAIRING_MESH_MESSAGE_DURATION
+
+10		ADV_RELAY_MESH_MESSAGE_DURATION
+)
+
+(
+0x12 MAX_APP_MSSAGE_PAYLOAD_LENGTH
+7 BIT_OF_APP_PACKAGE_NUM
+6 BIT_OF_ADV_IN_OFF
+)
+
+(
+//mesh 回复APP广播间隔24*0.625ms = 15ms
+0x15 MESH_ADV_APP_MESSAGE_INTERVAL
+//mesh回复tmall广播间隔32*0.625ms = 20ms
+0x1d MESH_ADV_TMALL_MESSAGE_INTERVAL
+)
+
+
Index: format/mesh_protocol_stack/mesh_encrypt_function.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_encrypt_function.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_encrypt_function.format	(working copy)
@@ -0,0 +1,111 @@
+memalloc ali_mesh(
+	// sha256
+	0 mem_mesh_sha256_chunk_start
+	64 mem_mesh_sha256_chunk1
+	64 mem_mesh_sha256_chunk2
+	64 mem_mesh_sha256_chunk3
+	64 mem_mesh_sha256_chunk4
+
+	//obfuscation network PDU Header
+	0 mem_mesh_Privacy_Plaintext
+	5 mem_mesh_Privacy_Plaintext_Zero_String
+	4 mem_mesh_Privacy_Plaintext_IV_Index
+	0 mem_mesh_Privacy_Plaintext_Privacy_Random
+	2 mem_mesh_Privacy_Plaintext_Privacy_Random_EncDST
+	5 mem_mesh_Privacy_Plaintext_Privacy_Random_EncTransportPDU_or_NetMIC
+	16 mem_mesh_PECB
+
+	//basic function
+	//aes-ccm
+	2 mem_nonce_ptr
+	1 mem_ccm_data_len
+	2 mem_ccm_data_ptr
+	8 mem_ccm_mic
+	1 mem_ccm_type
+
+
+)
+
+xmemalloc ali_mesh(
+
+	0 mem_mesh_calc_ConfirmationCloud_data
+	8 mem_mesh_ConfirmationCloud_RandomB
+	8 mem_mesh_ConfirmationCloud_RandomA
+	16 mem_mesh_AuthValueProv
+	16 mem_mesh_ConfirmationCloud
+
+
+	//provisioning random  / provisioning_confirmation
+	0 mem_mesh_ConfirmationDevice
+	0 mem_mesh_calc_ConfirmationDevice_data
+	8 mem_mesh_provisioning_random_A
+	8 mem_mesh_provisioning_random_B
+	16 mem_mesh_AuthValueDevice
+
+	16 mem_mesh_Device_Key
+
+
+// CMAC Key
+	16 mem_mesh_Confirmationkey
+
+	//sha256 init data
+	15 mem_mesh_sha256_ConfirmationKey_ascii
+	10 mem_mesh_sha256_SessionKey_ascii
+	9 mem_mesh_sha256_DeviceKey_ascii
+
+	//sha256
+	1 mem_mesh_sha256_load_first_data_flag
+
+	8 mem_mesh_sha256_data_len_byte
+	8 mem_mesh_sha256_data_len_bit
+	2 mem_mesh_sha256_data_end_addr
+	2 mem_mesh_sha256_data_len_addr
+	1 mem_mesh_sha256_chunk_count
+	2 mem_mesh_sha256_chunk_data_ptr
+	2 mem_mesh_sha256_chunk_ptr
+
+
+	//function K2
+	//f2 input
+	1 mem_k2_P_len
+	16 mem_k2_P
+	16 mem_k2_N
+	//f2 init data
+	16 mem_k2_SALT
+	//f2 output
+	16 mem_k2_T
+	0 mem_k2_T0
+	16 mem_k2_T1
+	1 mem_k2_NID
+	16 mem_k2_T3
+	16 mem_k2_T2
+
+
+	//k4 function
+	16 mem_k4_SALT
+	16 mem_k4_T
+	16 mem_k4_id6_01
+	16 mem_k4_k4N
+	1 mem_mesh_transport_AID
+
+	16 mem_k3_SALT
+	16 mem_k3_T
+	5 mem_k3_id64_01
+	8 mem_k3_k4N
+	8 mem_mesh_network_id
+
+
+)
+
+(
+0x2c COMMA
+-4 DECREASED_FOUR
+
+)
+
+(
+0x19 MIC_SIZE_64BIT
+0x09 MIC_SIZE_32BIT
+)
+
+
Index: format/mesh_protocol_stack/mesh_fast_pairing.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_fast_pairing.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_fast_pairing.format	(working copy)
@@ -0,0 +1,182 @@
+memalloc ali_mesh(
+
+	16 mem_mesh_Device_UUID
+	
+	1 mem_mesh_receive_VID
+
+)
+
+
+xmemalloc ali_mesh(
+
+	// provisioning flag 标志是否入网
+	1 mem_mesh_provisioned_flag
+
+	//入网时的状态机
+	1 mem_mesh_Provisioning_State_Flag
+	
+	1 mem_mesh_Device_PID
+	1 mem_mesh_UUID_FeatureFlag
+	2 mem_mesh_PDU_RFU
+	2 mem_mesh_OOB_information
+
+	//Provisioning_Data
+	0 mem_mesh_Encrypt_Provisioning_Data
+	2 mem_mesh_provisioning_data_Mac_addr
+	1 mem_mesh_KeyFresh_and_Update_flag
+	16 mem_mesh_Network_Key
+	1 mem_mesh_last_IV_Index_byte
+	2 mem_mesh_Unicast_Address
+
+	4 mem_mesh_adv_last_time
+	2 mem_mesh_send_packet_timeout
+
+	1 mem_mesh_gatt_package_send_msg_id
+
+)
+
+
+(
+33 GATT_RECEIVE_MSG_BUFFER_SIZE
+)
+
+xmemalloc ali_mesh(
+//GATT 协议
+	1 mem_mesh_gatt_receive_msg_timer
+	//fast pairing 
+	//APP control 
+
+	GATT_RECEIVE_MSG_BUFFER_SIZE mem_mesh_gatt_packet_receive_msg_buffer1
+	GATT_RECEIVE_MSG_BUFFER_SIZE mem_mesh_gatt_packet_receive_msg_buffer2
+
+)
+
+amemalloc mem_mesh_queue_ele_temp(
+	2 mem_mesh_gatt_package_receive_msg_buffer_ptr
+	0 mem_mesh_gatt_package_receive_msg_buffer_temp
+	2 mem_mesh_gatt_package_receive_msg_id
+	0 mem_mesh_gatt_package_receive_MAC
+	1 mem_mesh_gatt_package_receive_msg_num
+	1 mem_mesh_gatt_package_receive_msg_total_length
+	29 mem_mesh_gatt_package_receive_msg_payload
+)
+
+amemalloc mem_mesh_Device_UUID(
+	2 mem_mesh_receive_service_uuid_company_id
+	1 mem_mesh_receive_service_uuid_vid
+	1 mem_mesh_receive_service_uuid_provisioning_type
+	2 mem_mesh_receive_service_uuid_mac
+	1 mem_mesh_receive_service_uuid_msg_id
+	1 mem_mesh_receive_service_uuid_package_num
+	1 mem_mesh_receive_service_uuid_length
+	7 mem_mesh_receive_service_uuid_payload_data
+)
+
+amemalloc mem_mesh_Device_UUID(
+	2 mem_mesh_receive_service_uuid_ios_data_company_id
+	1 mem_mesh_receive_service_uuid_ios_data_vid
+	1 mem_mesh_receive_service_uuid_ios_data_provisioning_type
+	1 mem_mesh_receive_service_uuid_ios_data_NID
+	1 mem_mesh_receive_service_uuid_ios_data_msg_id
+	1 mem_mesh_receive_service_uuid_ios_data_package_num
+	1 mem_mesh_receive_service_uuid_ios_data_length
+	8 mem_mesh_receive_service_uuid_ios_data_payload_data
+)
+
+
+(//mem_mesh_provisioned_flag
+0 PAIRED_STATUS
+1 UNPROVISIONED_BEACON_STATUS
+2 PAIRING_STATUS
+3 SILENCE_BEACON_STATUS
+4 RECEIVED_CONFIG_APPKEY_ADD
+)
+
+(//mem_mesh_UUID_FeatureFlag
+0 BIT_SILENCE_ADV_FLAG
+)
+
+//mem Beacon Tmall Length
+(
+0x01 UNPROVISIONED_ADLEN_LENGTH
+0x01 UNPROVISIONED_ADTYPE_LENGTH
+0x01 UNPROVISIONED_DEVICE_BEACON_LENGTH
+0x10 UNPROVISIONED_DEVICE_UUID_LENGTH
+0x02 UNPROVISIONED_OOB_INFORMATION_LENGTH
+)
+
+// mem Beacon Type
+(
+0x00 UNPROVISIONED_DEVICE_BEACON
+0x01 SECURE_NETWORK_BEACON
+0x1827 MESH_PROVISIONING_UUID
+0x1828 MESH_PROXY_SERVICE
+
+)
+
+// Provisioning Type
+(
+0x00 PROVISIONING_RANDOM
+0x01 PROVISIONING_CONFIRMATION
+0x02 PROVISIONING_DATA
+0x03 PROVISIONING_COMPLETE
+0x04 PROVISIONING_CONFIG
+0x05 PROVISIONING_CONFIG_ACK
+0x06 PROVISIONING_IOS_DATA
+0x07 PROVISIONING_SEND_IOS_DATA
+)
+
+(//mem_mesh_Provisioning_State_Flag
+// FLAG bit1:Provisioning Confirmation
+1 RECEIVE_PROVISIONING_RANDOM
+2 RECEIVE_PROVISIONING_DATA
+)
+
+
+(//provisioning packet info size
+3 PROVISIONING_PACKET_LENGTH_FLAGS
+6 PROVISIONING_PACKET_LENGTH_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE
+5 PROVISIONING_PACKET_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE
+1 PROVISIONING_PACKET_LENGTH
+1 PROVISIONING_PACKET_AD_TYPE
+2 PROVISIONING_PACKET_COMPANY_ID
+1 PROVISIONING_PACKET_VID
+1 PROVISIONING_PACKET_PROVISIONING_TYPE
+//provisioning random
+2 PROVISIONING_PACKET_RANDOM_MAC
+8 PROVISIONING_PACKET_RANDOM_RANDOM_A
+8 PROVISIONING_PACKET_RANDOM_RANDOM_B
+//provisioning confirmation
+2 PROVISIONING_PACKET_CONFIRMATION_MAC
+16 PROVISIONING_PACKET_CONFIRMATION_DEVICE
+//provisioning complete
+6 PROVISIONING_PACKET_COMPLETE_MAC
+
+2 PROVISIONING_CONFIG_ACK_MAC
+1 PROVISIONING_CONFIG_ACK_FIELD
+
+)
+
+(
+0x01 PROVISIONING_CONFIG_ACK_NOTE
+)
+
+(//gatt package struct
+0 GATT_PACKAGE_MSG_ID
+1 GATT_PACKAGE_PACKAGE_NUM
+2 GATT_PACKAGE_LENGTH
+3 GATT_PACKAGE_PAYLOAD
+)
+
+(
+0x12 MAX_LENGTH_PRIVISIONING_CONTROL_MSG_ANDROID
+0x08 MAX_LENGTH_PRIVISIONING_CONTROL_MSG_IOS
+0x07 MAX_LENGTH_PRIVISIONING_PAIRING_MSG_IOS
+)
+
+(
+4 MAX_GATT_PACKAGE_NUM
+50 GATT_RECEIVE_TIMEOUT
+)
+
+
Index: format/mesh_protocol_stack/mesh_health_message.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_health_message.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_health_message.format	(working copy)
@@ -0,0 +1,16 @@
+
+amemalloc mem_mesh_receive_model_message_payload(
+	1 mem_mesh_configuration_health_message_opcode
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	1 mem_mesh_configuration_health_message_opcode_config_model_subscription
+	2 mem_mesh_subscription_element_address
+	2 mem_mesh_subscription_value_address
+	2 mem_mesh_subscription_model_identifier
+)
+
+(
+8 SUBSCRIPTION_MAX_COUNT
+)
+
Index: format/mesh_protocol_stack/mesh_init.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_init.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_init.format	(working copy)
@@ -0,0 +1,198 @@
+memalloc ali_mesh(
+	2 mem_mesh_mic_cache_ptr
+)
+
+
+xmemalloc ali_mesh(
+	// three tuple 阿里云平台分配的三元组
+	4 mem_mesh_three_tuple_ProductID
+	6 mem_mesh_three_tuple_MAC
+	16 mem_mesh_three_tuple_secret
+
+	//ble 核心协议栈，scan到数据的回调
+	2 mem_mesh_cb_receive_advertising
+
+	//alarm寄存器不能修改
+	//mesh核心规范接收到任何TMALL指令
+	2 mem_mesh_cb_receive_access_message
+
+	//接收到配置application key指令(可以认为入网成功)
+	2 mem_mesh_cb_receive_config_appkey_add
+
+	//各种原因配网失败回调
+	2 mem_mesh_cb_pairing_fail
+
+	//ali vendor message cb
+	2 mem_mesh_cb_recv_vendor
+
+	2 mem_mesh_scan_selete_next_ch
+	
+	2 mem_mesh_cb_generic_onoff_get
+	2 mem_mesh_cb_generic_onoff_set
+	2 mem_mesh_cb_scene_recall
+	2 mem_mesh_cb_light_lightness_set
+	2 mem_mesh_cb_light_lightness_get
+	2 mem_mesh_cb_light_ctl_set
+
+	2 mem_mesh_cb_main_light_onoff_set
+	2 mem_mesh_cb_background_onoff_set
+	2 mem_mesh_cb_color_set
+
+	//relay 的功能回调
+	2 mem_mesh_cb_network_relay
+
+	//模块复位的回调，需要3s之后复位
+	2 mem_mesh_cb_receive_node_reset
+
+	//seq改变时的回调，需要存到对应的存储器中
+	2 mem_mesh_cb_seq_changed
+
+	2 mem_mesh_cb_subscriptuion_list_changed
+
+	//Timer 定时器改变时，需要存到对应的存储器中
+	2 mem_mesh_cb_vendor_timing_changed
+	
+
+	2 mem_mesh_core_feature
+
+	1 mem_mesh_element_number
+	2 mem_mesh_element_device_ptr
+	2 mem_mesh_element_device_length
+
+)
+
+(//typedef struct of mem_mesh_element_device
+0 ELEMENT_DEVICE_GROUP_ADDR
+2 ELEMENT_DEVICE_QUEUE_BUFFER_PTR
+4 ELEMENT_DEVICE_VENDOR_TIME_PTR
+6 ELEMENT_DEVICE_SUBSCRIPTION_LABEL
+22 ELEMENT_DEVICE_UPPER_ADV_FLAG
+23 ELEMENT_DEVICE_UPPER_QUEUE_PTR
+25 ELEMENT_DEVICE_TRAN_PACKAGE_TID
+26 ELEMENT_DEVICE_TRAN_PACKAGE_TYPE
+27 SIZEOF_ELEMENT_DEVICE
+
+)
+
+
+xmemalloc ali_mesh_element(
+	0 mem_mesh_element_device
+	2 mem_mesh_element_device_group_addr
+	2 mem_mesh_element_device_queue_buffer_ptr
+	2 mem_mesh_element_device_timing_ptr
+	16 mem_mesh_element_device_element_subscription_label
+	1 mem_mesh_element_upper_adv_flag
+	2 mem_mesh_element_upper_queue_buffer_ptr
+	1 mem_mesh_element_tran_package_tid
+	1 mem_mesh_element_tran_package_type
+
+	SIZEOF_ELEMENT_DEVICE mem_mesh_element_device1
+	SIZEOF_ELEMENT_DEVICE mem_mesh_element_device2
+)
+
+(
+36 MESH_SEGMENT_SIZE
+)
+
+xmemalloc ali_mesh_element(
+	MESH_SEGMENT_SIZE mem_mesh_segmented_access_message_Segment
+)
+
+xmemalloc ali_mesh_element(
+	1 mem_mesh_element_device_queue_each_size
+	1 mem_mesh_element_device_queue_length
+	1 mem_mesh_element_device_queue_current_num
+	1 mem_mesh_element_device_queue_read_ptr
+	1 mem_mesh_element_device_queue_write_ptr
+	136 mem_mesh_element_device_queue_ele
+
+	1 mem_mesh_element_device_upper_queue_each_size
+	1 mem_mesh_element_device_upper_queue_length
+	1 mem_mesh_element_device_upper_queue_current_num
+	1 mem_mesh_element_device_upper_queue_read_ptr
+	1 mem_mesh_element_device_upper_queue_write_ptr
+	//元素长度为47
+	188 mem_mesh_element_device_upper_queue_ele
+
+)
+
+(
+320 MESH_TIMER_BUFFER_SIZE
+)
+
+/*
+xmemalloc ali_mesh_element_timer(
+	MESH_TIMER_BUFFER_SIZE mem_mesh_element_timing
+	MESH_TIMER_BUFFER_SIZE mem_mesh_element_timing1
+	MESH_TIMER_BUFFER_SIZE mem_mesh_element_timing2
+)
+*/
+
+(//bit map of mem_mesh_core_feature
+0 MESH_FEATURE_DISABLE_LOG
+1 MESH_FEATURE_DISABLE_RELAY
+2 MESH_FEATURE_DISABLE_SUBSCRIPTION
+3 MESH_FEATURE_DISABLE_APP_PAIRING
+)
+
+(//taobao id
+0x01a8	COMPANY_IDENTIFIERS_ALIBABA
+0x0d	ALI_MESH_VID_NUMBER
+0x0da801 COMPANY_ID_ALIBABA_AND_VID
+0x0ea801 COMPANY_ID_ALIBABA_AND_VID_GATT
+)
+
+
+(
+0x00 MESH_CODE_INIT
+0x01 MESH_RECEIVE_PROVISIONING_PACKET
+0x02 MESH_RECEIVE_PROVISIONING_RANDOM_PACKET
+0x03 MESH_SEND_PROVISIONING_CONFIRMATION_PACKET
+0x04 MESH_RECEIVE_PROVISIONING_DATA_PACKET
+0x05 MESH_SEND_PROVISIONING_COMPLETE_PACKET
+0x06 MESH_RECEIVE_PROVISIONING_FAILED_PACKET
+
+0x10 MESH_ENCRYPT_SHA256_FUNCTION_INPUT
+0x11 MESH_ENCRYPT_SHA256_FUNCTION_RESULT
+0x12 MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_M
+0x13 MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_K
+0x14 MESH_ENCRYPT_AES_CMAC_FUNCTION_RESULT
+
+0x20 MESH_NETWORK_RECEIVE_PACKET
+0x21 MESH_NETWORK_RELAY_PACKET
+
+0x30 MESH_LOWER_RECEIVE_PACKET
+0x40 MESH_UPPER_RECEIVE_PACKET
+0x41 MESH_UPPER_SEND_PACKET
+
+0x50 MESH_ACCESS_RECEIVE_MESSAGE
+
+0x60 MESH_PROXY_RECEIVE_MESSAGE_HANDLE
+0x61 MESH_PROXY_RECEIVE_MESSAGE
+
+0xF0 MESH_MESSAGE_GENERIC_ONOFF_SET
+0xF1 MESH_MESSAGE_SET_LIGHT_LIGHTNESS
+0xF2 MESH_MESSAGE_SET_CTL
+)
+
+(//LUA LOG 
+0xAA LUA_LOG_PACKET_HEADER
+0x03 LUA_LOG_PAKCET_TYPE
+0xBB LUA_LOG_PACKET_TRAIL
+)
+
+(//logging level
+0 LOGGING_DEBUG
+1 LOGGING_INFO
+2 LOGGING_WARNING
+3 LOGGING_ERROR
+4 LOGGING_CRITICAL
+)
+
+(
+0x1c00 mem_mesh_uart_log_rx_buff
+0x1c01 mem_mesh_uart_log_rx_buff_end
+0x1c02 mem_mesh_uart_log_tx_buff
+0x1fff mem_mesh_uart_log_tx_buff_end
+)
+
Index: format/mesh_protocol_stack/mesh_lower_transport_layer.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_lower_transport_layer.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_lower_transport_layer.format	(working copy)
@@ -0,0 +1,53 @@
+memalloc ali_mesh(
+	1 mem_mesh_lower_transport_layer_payload_len
+
+)
+
+
+
+xmemalloc ali_mesh(
+	//current segmented access message head
+	1 mem_mesh_segmented_access_message_SZMIC
+	2 mem_mesh_segmented_access_message_SeqZero
+	1 mem_mesh_segmented_access_message_SegO
+	1 mem_mesh_segmented_access_message_SegN
+
+	4 mem_mesh_segmented_access_message_BlockAck
+	1 mem_mesh_segmented_access_message_receive_finish
+	1 mem_mesh_segmented_access_message_current_length
+
+	1 mem_mesh_segmented_access_message_SegN_upper_limit
+	2 mem_mesh_segmented_access_message_Segment_ptr
+)
+
+amemalloc mem_mesh_send_access_lower_transport_layer(
+	//bit7 is SEQ 0=Unsegment Message
+	//bit6 is AKF
+	//bit5-bit0 is AID
+	1 mem_mesh_unsegmented_access_lower_transport_layer_head
+	11 mem_mesh_unsegmented_access_lower_transport_layer_parameters
+	4 mem_mesh_unsegmented_access_lower_transport_layer_mic
+)
+
+amemalloc mem_mesh_send_access_lower_transport_layer(
+	//bit7 is SEQ 1=segment Message
+	//bit6 is AKF
+	//bit5-bit0 is AID
+	1 mem_mesh_segmented_access_lower_transport_layer_head
+	//bit23 is SZMIC size of transMIC
+	//bit22-bit10 is SeqZero Least significant bits of SeqAuth
+	//bit9-bit5 is SegO Segment offset number
+	//bit4-bit0 is SegN Last Segment number
+	3 mem_mesh_segmented_access_lower_transport_layer_SZMIC_SeqZero_SegO_SegN
+	8 mem_mesh_segmented_access_lower_transport_layer_parameters
+	4 mem_mesh_segmented_access_lower_transport_layer_mic
+)
+
+(
+7 TRANSPORT_HEAD_BIT_SEG
+6 TRANSPORT_HEAD_BIT_AKF
+05 TRANSPORT_HEAD_BIT_AID
+7 BIT_CTL
+)
+
+
Index: format/mesh_protocol_stack/mesh_model_layer.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_model_layer.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_model_layer.format	(working copy)
@@ -0,0 +1,70 @@
+
+
+xmemalloc ali_mesh(
+	2 mem_mesh_last_CTL_Temperature
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	1 mem_mesh_module_message_opcode
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	//generic OnOff Set
+	1 mem_mesh_module_message_opcode_onoff_set
+	1 mem_mesh_generic_onoff_set_payload_OnOff
+	1 mem_mesh_generic_onoff_set_payload_TID
+	1 mem_mesh_generic_onoff_set_payload_Transition_Time
+	1 mem_mesh_generic_onoff_set_payload_Delay
+
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	//Scene recall 模式设置
+	1 mem_mesh_module_message_opcode_scene_recall
+	2 mem_mesh_scene_recall_payload_scene_number
+	1 mem_mesh_scene_recall_payload_TID
+	1 mem_mesh_scene_recall_payload_Transition_Time
+	1 mem_mesh_scene_recall_payload_Delay
+
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	//light lightness
+	1 mem_mesh_module_message_opcode_set_light_lightness
+	2 mem_mesh_light_lightness_set_payload_lightness
+	1 mem_mesh_light_lightness_set_payload_TID
+	1 mem_mesh_light_lightness_set_payload_Transition_Time
+	1 mem_mesh_light_lightness_set_payload_Delay
+	1 mem_mesh_light_lightness_calc_lightness
+)
+
+amemalloc mem_mesh_receive_model_message_payload(
+	//light CTL
+	1 mem_mesh_module_message_opcode_set_light_ctl
+	2 mem_mesh_CTL_Lightness
+	2 mem_mesh_CTL_Temperature
+	2 mem_mesh_CTL_Delta_UV
+	1 mem_mesh_CTL_lightness_TID
+	1 mem_mesh_CTL_lightness_Transition_Time
+	1 mem_mesh_CTL_lightness_Delay	
+	1 mem_mesh_CTL_calc_lightness
+	1 mem_mesh_CTL_calc_temperature
+
+)
+
+(//Generic OnOff
+0x00 GENERIC_ONOFF_CMD_OFF
+0x01 GENERIC_ONOFF_CMD_ON
+)
+
+(//LIGHTNESS
+0xFFFF ALI_MESH_LIGHTNESS_MAX
+0x0064 ALI_MESH_LIGHTNESS_LEVEL
+)
+
+(//TEMPERATURE
+0x4E20 ALI_MESH_TEMPERATURE_MAX
+0x0320 ALI_MESH_TEMPERATURE_MIN
+0x0064 ALI_MESH_TEMPERATURE_LEVEL
+)
+
Index: format/mesh_protocol_stack/mesh_more_element_check.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_more_element_check.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_more_element_check.format	(working copy)
@@ -0,0 +1,17 @@
+
+memalloc ali_mesh(
+	2 mem_mesh_loopcnt_tmep
+	2 mem_mesh_rega_temp
+	2 mem_mesh_regb_temp
+	2 mem_mesh_regc_temp
+	2 mem_mesh_alarm_temp
+	
+)
+
+
+
+xmemalloc ali_mesh(
+	1 mem_mesh_receive_group_address
+	1 mem_mesh_receive_element_number
+)
+
Index: format/mesh_protocol_stack/mesh_network_layer.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_network_layer.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_network_layer.format	(working copy)
@@ -0,0 +1,113 @@
+
+
+memalloc ali_mesh(
+	1 mem_mesh_message_Transport_NetMIC_length
+
+	1 mem_mesh_message_NID
+	1 mem_mesh_message_TTL
+	3 mem_mesh_message_SEQ
+	2 mem_mesh_message_SRC
+	2 mem_mesh_message_DST
+	0 mem_mesh_message_Transport_NetMIC
+	1 mem_mesh_message_Transport_Head
+	//unsegmented access message
+	0 mem_mesh_message_Transport_unsegmented_access_messagePDU
+	//segmented access message
+	0 mem_mesh_message_Transport_segmented_access_messagePDU
+	3 mem_mesh_message_segment_access_SZMIC_SeqZero_SegO_SegN
+	0 mem_mesh_message_Transport_segmented_access_messagePDU_Segment
+	16 mem_mesh_message_Transport_NetMIC_end
+
+	13 mem_mesh_nonce_struct
+
+	2 mem_mesh_send_message_DST
+	3 mem_mesh_last_message_SEQ
+	1 mem_mesh_network_packet_type
+
+)
+
+xmemalloc ali_mesh(
+	4 mem_mesh_IV_Index
+
+
+
+// mesh SRC/SEQ  cache
+	0 mem_mesh_TMALL_cache_start
+	2 mem_mesh_TMALL_SRC1
+	3 mem_mesh_TMALL_SEQ1
+	45 mem_mesh_TMALL_cache
+	0 mem_mesh_TMALL_cache_end
+
+	0 mem_mesh_transport_message_mic_cache
+	4 mem_mesh_transport_message_mic_cache_buff1
+	36 mem_mesh_transport_message_mic_cache_buff2_10
+
+	0 mem_mesh_network_relay_queue
+	1 mem_mesh_network_relay_queue_each_size
+	1 mem_mesh_network_relay_queue_length
+	1 mem_mesh_network_relay_queue_current_num
+	1 mem_mesh_network_relay_queue_read_ptr
+	1 mem_mesh_network_relay_queue_write_ptr
+	136 mem_mesh_network_relay_queue_ele
+
+)
+
+amemalloc mem_le_txheader_mesh_temp(
+	1 mem_mesh_network_packet_type_temp
+	29 mem_mesh_message_NID_temp
+)
+
+amemalloc mem_k2_T2(
+	16 mem_k2_EncryptionKey
+)
+
+amemalloc mem_k2_T3(
+	16 mem_k2_PrivacyKey
+)
+
+amemalloc mem_mesh_nonce_struct(
+	//DST and TransportPDU encryption
+	0 mem_mesh_Network_Nonce
+	1 mem_mesh_Network_Nonce_nonce_type
+	1 mem_mesh_Network_Nonce_CTL_and_TTL
+	3 mem_mesh_Network_Nonce_SEQ
+	2 mem_mesh_Network_Nonce_SRC
+	2 mem_mesh_Network_Nonce_Pad	//0x0000
+	4 mem_mesh_Network_Nonce_IV_Index
+
+)
+
+(//nonce type
+0x00 NETWORK_NONCE
+0x01 APPLICATION_NONCE
+0x02 DEVICE_NONCE
+0x03 PROXY_NONCE
+)
+
+
+(
+0x00c0 GROUP_ADDRESS_0XC000_little_endian
+0xffcf GROUP_ADDRESS_0XCFFF_little_endian
+0x02c0 GROUP_ADDRESS_0XC002_little_endian
+0x07c0 GROUP_ADDRESS_0XC007_little_endian
+0x01c0 GROUP_ADDRESS_0XC001_little_endian
+0xffff GROUP_ADDRESS_0XFFFF_little_endian
+)
+
+
+(//SRC SEQ cache parameter
+10 CACHE_SPACE_NUM
+5 CACHE_SPACE_SIZE
+)
+
+(
+12 MESH_NETWORK_PACKET_MIN_LENGTH
+30 MESH_NETWORK_PACKET_MAX_LENGTH
+)
+
+(
+0 MESH_MESSAGE_TMALL
+1 MESH_MESSAGE_APP
+2 MESH_MESSAGE_PROXY
+)
+
Index: format/mesh_protocol_stack/mesh_proxy_layer.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_proxy_layer.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_proxy_layer.format	(working copy)
@@ -0,0 +1,26 @@
+
+xmemalloc ali_mesh_element(
+	152 mem_mesh_le_att_list
+)
+
+(
+0x00 MESH_PROXY_SERVICE_DATA_ID_TYPE_NETWORK_ID
+0x01 MESH_PROXY_SERVICE_DATA_ID_TYPE_NODE_IDENTITY
+)
+
+(
+0x00 MESH_PROXY_MESSAGE_TYPE_NETWORK_PDU
+0x01 MESH_PROXY_MESSAGE_TYPE_MESH_BEACON
+0x02 MESH_PROXY_MESSAGE_TYPE_PROXY_CONFIGURATION
+0x03 MESH_PROXY_MESSAGE_TYPE_PROVISIONING_PDU
+)
+
+(
+0x0e	MESH_PROXY_DATA_IN_HANDLE
+0x10	MESH_PROXY_DATA_OUT_HANDLE
+0x11	MESH_PROXY_ENABLE_DATA_OUT_HANDLE
+0x14	MESH_PROVISIONING_DATA_IN_HANDLE
+0x16	MESH_PROVISIONING_DATA_OUT_HANDLE
+0x17	MESH_PROVISIONING_ENABLE_DATA_OUT_HANDLE
+)
+
Index: format/mesh_protocol_stack/mesh_upper_transport_layer.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_upper_transport_layer.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/mesh_protocol_stack/mesh_upper_transport_layer.format	(working copy)
@@ -0,0 +1,131 @@
+
+memalloc ali_mesh(
+	2 mem_mesh_upper_transport_layer_payload_ptr
+	1 mem_mesh_segmented_upper_transport_layer_payload_len
+	2 mem_mesh_segmented_lower_transport_layer_SegZero
+	1 mem_mesh_segmented_lower_transport_layer_SegO
+	1 mem_mesh_segmented_lower_transport_layer_SegN
+	1 mem_mesh_segmented_last_packet_upper_teansport_payload_len
+
+	0 mem_mesh_upper_tran_layer_queue_temp
+	1 mem_mesh_upper_tran_layer_temp_packet_flag
+	2 mem_mesh_upper_tran_layer_temp_packet_transmit_delay
+	1 mem_mesh_upper_tran_layer_temp_packet_TID
+	1 mem_mesh_upper_tran_layer_temp_packet_header_IVI_NID
+	1 mem_mesh_upper_tran_layer_temp_packet_header_CTL_TTL
+	3 mem_mesh_upper_tran_layer_temp_packet_header_SEQ
+	2 mem_mesh_upper_tran_layer_temp_packet_header_SRC
+	2 mem_mesh_upper_tran_layer_temp_packet_header_DST
+	1 mem_mesh_upper_tran_layer_temp_packet_length
+	108 mem_mesh_upper_tran_layer_temp_packet_payload
+
+)
+
+xmemalloc ali_mesh(
+	16 mem_mesh_application_key
+	1 mem_mesh_ASZMIC
+
+	0 mem_mesh_access_message_mic_cache
+	4 mem_mesh_access_message_mic_cache_buff1
+	36 mem_mesh_access_message_mic_cache_buff2_10
+
+	3 mem_mesh_send_message_SEQ
+
+	2 mem_mesh_send_message_SRC
+
+	1 mem_mesh_send_message_TTL
+
+	//Upper transport access PDU
+	1 mem_mesh_send_upper_layer_IVI_and_NID
+	1 mem_mesh_send_upper_layer_CTL_and_TTL
+	3 mem_mesh_send_upper_layer_SEQ
+	2 mem_mesh_send_upper_layer_SRC
+	2 mem_mesh_send_upper_layer_DST
+	16 mem_mesh_send_access_lower_transport_layer
+	4 mem_mesh_send_network_layer_NetMIC
+
+)
+
+
+amemalloc mem_mesh_nonce_struct(
+	//application payload encryption
+	0 mem_mesh_Application_Nonce
+	1 mem_mesh_Application_Nonce_Nonce_Type
+	//bit7 is ASZMIC
+	1 mem_mesh_Application_Nonce_ASZMIC_and_Pad	//
+	3 mem_mesh_Application_Nonce_SEQ
+	2 mem_mesh_Application_Nonce_SRC
+	2 mem_mesh_Application_Nonce_DST
+	4 mem_mesh_Application_Nonce_IV_Index
+)
+
+amemalloc mem_mesh_nonce_struct(
+	//application payload encryption
+	0 mem_mesh_Device_Nonce
+	1 mem_mesh_Device_Nonce_Nonce_Type
+	1 mem_mesh_Device_Nonce_ASZMIC_and_Pad	//
+	3 mem_mesh_Device_Nonce_SEQ
+	2 mem_mesh_Device_Nonce_SRC
+	2 mem_mesh_Device_Nonce_DST
+	4 mem_mesh_Device_Nonce_IV_Index
+)
+
+amemalloc mem_mesh_access_layer_payload_len(
+	1 mem_mesh_upper_transport_layer_payload_len
+)
+
+amemalloc mem_mesh_upper_tran_layer_temp_packet_payload(
+//unsegment access message
+	0 mem_mesh_upper_tran_layer_temp_pakcet_AKF_AID
+	1 mem_mesh_upper_tran_layer_temp_unsegmented_pakcet_AKF_AID
+	4 mem_mesh_upper_tran_layer_temp_unsegmented_packet_fill
+	0 mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu
+	15 mem_mesh_upper_tran_layer_temp_unsegmented_pakcet_upper_tran_access_pdu
+)
+
+amemalloc mem_mesh_upper_tran_layer_temp_packet_payload(
+//segment access message
+	1 mem_mesh_upper_tran_layer_temp_segmented_pakcet_AKF_AID
+	2 mem_mesh_upper_tran_layer_temp_segmented_pakcet_SeqZero
+	1 mem_mesh_upper_tran_layer_temp_segmented_pakcet_SegO
+	1 mem_mesh_upper_tran_layer_temp_segmented_pakcet_SegN
+	104 mem_mesh_upper_tran_layer_temp_segmented_pakcet_upper_tran_access_pdu
+)
+
+
+
+(
+15 UNSEGMENTED_ACCESS_MESSAGE_MAX_UPPER_TRANSPORT_ACCESS_PDU_LEN
+12 SEGMENTED_ACCESS_MESSAGE_UNINT_PDU_LEN
+)
+
+(//bit of mem_mesh_upper_tran_layer_temp_packet_flag
+7 BIT_UPPER_FLAG_PROXY_CONTROL
+6 BIT_UPPER_FLAG_APP_CONTROL
+5 BIT_UPPER_FLAG_VENDOR_INDICATION
+4 BIT_UPPER_FLAG_RETRANSMIT
+//BIT3-0
+0x0f DATA_UPPER_FLAG_MAX_RETRY_COUNT
+
+2 UPPER_RETRY_COUNT_STATUS
+1 UPPER_RETRY_COUNT_INDICATION
+)
+
+(
+0 NULL_PACKET_ADVERTISING
+1 PACKET_IN_BEARER
+2 PACKET_IN_ADVERTING
+3 PACKET_RECEIVE_INDICATION
+)
+
+(
+1 UPPER_TRAN_TMALL_MESSAGE
+2 UPPER_TRAN_APP_MESSAGE
+3 UPPER_TRAN_TMALL_AND_APP
+
+0 BIT_UPPER_TRAN_TMALL_MESSAGE
+1 BIT_UPPER_TRAN_APP_MESSAGE
+2 BIT_UUPER_TRAN_PROXY_MESSAGE
+)
+
+
Index: format/meter.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/meter.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/meter.format	(working copy)
@@ -0,0 +1,24 @@
+omemalloc (
+3 mem_dummy
+1 mem_seq
+1 mem_context_cnt
+1 mem_context_map
+768 mem_context_new
+1 mem_att_cmd_len
+15 mem_att_cmd
+1 mem_att_resp_handle
+1 mem_att_resp_len
+30 mem_att_resp
+600 mem_meter_att_list
+)
+
+(
+7 context_num_new_m1
+8 context_num_new
+96 context_size_new
+)
+
+(
+0x4040 mem_anchor_array
+)
+
Index: format/patch.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/patch.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/patch.format	(working copy)
@@ -0,0 +1,516 @@
+
+(
+	  0 patch00_0
+	  1 patch00_1
+	  2 patch00_2
+	  3 patch00_3
+	  4 patch00_4
+	  5 patch00_5
+	  6 patch00_6
+	  7 patch00_7
+	  8 patch01_0
+	  9 patch01_1
+	 10 patch01_2
+	 11 patch01_3
+	 12 patch01_4
+	 13 patch01_5
+	 14 patch01_6
+	 15 patch01_7
+	 16 patch02_0
+	 17 patch02_1
+	 18 patch02_2
+	 19 patch02_3
+	 20 patch02_4
+	 21 patch02_5
+	 22 patch02_6
+	 23 patch02_7
+	 24 patch03_0
+	 25 patch03_1
+	 26 patch03_2
+	 27 patch03_3
+	 28 patch03_4
+	 29 patch03_5
+	 30 patch03_6
+	 31 patch03_7
+	 32 patch04_0
+	 33 patch04_1
+	 34 patch04_2
+	 35 patch04_3
+	 36 patch04_4
+	 37 patch04_5
+	 38 patch04_6
+	 39 patch04_7
+	 40 patch05_0
+	 41 patch05_1
+	 42 patch05_2
+	 43 patch05_3
+	 44 patch05_4
+	 45 patch05_5
+	 46 patch05_6
+	 47 patch05_7
+	 48 patch06_0
+	 49 patch06_1
+	 50 patch06_2
+	 51 patch06_3
+	 52 patch06_4
+	 53 patch06_5
+	 54 patch06_6
+	 55 patch06_7
+	 56 patch07_0
+	 57 patch07_1
+	 58 patch07_2
+	 59 patch07_3
+	 60 patch07_4
+	 61 patch07_5
+	 62 patch07_6
+	 63 patch07_7
+	 64 patch08_0
+	 65 patch08_1
+	 66 patch08_2
+	 67 patch08_3
+	 68 patch08_4
+	 69 patch08_5
+	 70 patch08_6
+	 71 patch08_7
+	 72 patch09_0
+	 73 patch09_1
+	 74 patch09_2
+	 75 patch09_3
+	 76 patch09_4
+	 77 patch09_5
+	 78 patch09_6
+	 79 patch09_7
+	 80 patch0a_0
+	 81 patch0a_1
+	 82 patch0a_2
+	 83 patch0a_3
+	 84 patch0a_4
+	 85 patch0a_5
+	 86 patch0a_6
+	 87 patch0a_7
+	 88 patch0b_0
+	 89 patch0b_1
+	 90 patch0b_2
+	 91 patch0b_3
+	 92 patch0b_4
+	 93 patch0b_5
+	 94 patch0b_6
+	 95 patch0b_7
+	 96 patch0c_0
+	 97 patch0c_1
+	 98 patch0c_2
+	 99 patch0c_3
+	100 patch0c_4
+	101 patch0c_5
+	102 patch0c_6
+	103 patch0c_7
+	104 patch0d_0
+	105 patch0d_1
+	106 patch0d_2
+	107 patch0d_3
+	108 patch0d_4
+	109 patch0d_5
+	110 patch0d_6
+	111 patch0d_7
+	112 patch0e_0
+	113 patch0e_1
+	114 patch0e_2
+	115 patch0e_3
+	116 patch0e_4
+	117 patch0e_5
+	118 patch0e_6
+	119 patch0e_7
+	120 patch0f_0
+	121 patch0f_1
+	122 patch0f_2
+	123 patch0f_3
+	124 patch0f_4
+	125 patch0f_5
+	126 patch0f_6
+	127 patch0f_7
+	128 patch10_0
+	129 patch10_1
+	130 patch10_2
+	131 patch10_3
+	132 patch10_4
+	133 patch10_5
+	134 patch10_6
+	135 patch10_7
+	136 patch11_0
+	137 patch11_1
+	138 patch11_2
+	139 patch11_3
+	140 patch11_4
+	141 patch11_5
+	142 patch11_6
+	143 patch11_7
+	144 patch12_0
+	145 patch12_1
+	146 patch12_2
+	147 patch12_3
+	148 patch12_4
+	149 patch12_5
+	150 patch12_6
+	151 patch12_7
+	152 patch13_0
+	153 patch13_1
+	154 patch13_2
+	155 patch13_3
+	156 patch13_4
+	157 patch13_5
+	158 patch13_6
+	159 patch13_7
+	160 patch14_0
+	161 patch14_1
+	162 patch14_2
+	163 patch14_3
+	164 patch14_4
+	165 patch14_5
+	166 patch14_6
+	167 patch14_7
+	168 patch15_0
+	169 patch15_1
+	170 patch15_2
+	171 patch15_3
+	172 patch15_4
+	173 patch15_5
+	174 patch15_6
+	175 patch15_7
+	176 patch16_0
+	177 patch16_1
+	178 patch16_2
+	179 patch16_3
+	180 patch16_4
+	181 patch16_5
+	182 patch16_6
+	183 patch16_7
+	184 patch17_0
+	185 patch17_1
+	186 patch17_2
+	187 patch17_3
+	188 patch17_4
+	189 patch17_5
+	190 patch17_6
+	191 patch17_7
+	192 patch18_0
+	193 patch18_1
+	194 patch18_2
+	195 patch18_3
+	196 patch18_4
+	197 patch18_5
+	198 patch18_6
+	199 patch18_7
+	200 patch19_0
+	201 patch19_1
+	202 patch19_2
+	203 patch19_3
+	204 patch19_4
+	205 patch19_5
+	206 patch19_6
+	207 patch19_7
+	208 patch1a_0
+	209 patch1a_1
+	210 patch1a_2
+	211 patch1a_3
+	212 patch1a_4
+	213 patch1a_5
+	214 patch1a_6
+	215 patch1a_7
+	216 patch1b_0
+	217 patch1b_1
+	218 patch1b_2
+	219 patch1b_3
+	220 patch1b_4
+	221 patch1b_5
+	222 patch1b_6
+	223 patch1b_7
+	224 patch1c_0
+	225 patch1c_1
+	226 patch1c_2
+	227 patch1c_3
+	228 patch1c_4
+	229 patch1c_5
+	230 patch1c_6
+	231 patch1c_7
+	232 patch1d_0
+	233 patch1d_1
+	234 patch1d_2
+	235 patch1d_3
+	236 patch1d_4
+	237 patch1d_5
+	238 patch1d_6
+	239 patch1d_7
+	240 patch1e_0
+	241 patch1e_1
+	242 patch1e_2
+	243 patch1e_3
+	244 patch1e_4
+	245 patch1e_5
+	246 patch1e_6
+	247 patch1e_7
+	248 patch1f_0
+	249 patch1f_1
+	250 patch1f_2
+	251 patch1f_3
+	252 patch1f_4
+	253 patch1f_5
+	254 patch1f_6
+	255 patch1f_7
+	  0 patch20_0
+	  1 patch20_1
+	  2 patch20_2
+	  3 patch20_3
+	  4 patch20_4
+	  5 patch20_5
+	  6 patch20_6
+	  7 patch20_7
+	  8 patch21_0
+	  9 patch21_1
+	 10 patch21_2
+	 11 patch21_3
+	 12 patch21_4
+	 13 patch21_5
+	 14 patch21_6
+	 15 patch21_7
+	 16 patch22_0
+	 17 patch22_1
+	 18 patch22_2
+	 19 patch22_3
+	 20 patch22_4
+	 21 patch22_5
+	 22 patch22_6
+	 23 patch22_7
+	 24 patch23_0
+	 25 patch23_1
+	 26 patch23_2
+	 27 patch23_3
+	 28 patch23_4
+	 29 patch23_5
+	 30 patch23_6
+	 31 patch23_7
+	 32 patch24_0
+	 33 patch24_1
+	 34 patch24_2
+	 35 patch24_3
+	 36 patch24_4
+	 37 patch24_5
+	 38 patch24_6
+	 39 patch24_7
+	 40 patch25_0
+	 41 patch25_1
+	 42 patch25_2
+	 43 patch25_3
+	 44 patch25_4
+	 45 patch25_5
+	 46 patch25_6
+	 47 patch25_7
+	 48 patch26_0
+	 49 patch26_1
+	 50 patch26_2
+	 51 patch26_3
+	 52 patch26_4
+	 53 patch26_5
+	 54 patch26_6
+	 55 patch26_7
+	 56 patch27_0
+	 57 patch27_1
+	 58 patch27_2
+	 59 patch27_3
+	 60 patch27_4
+	 61 patch27_5
+	 62 patch27_6
+	 63 patch27_7
+	 64 patch28_0
+	 65 patch28_1
+	 66 patch28_2
+	 67 patch28_3
+	 68 patch28_4
+	 69 patch28_5
+	 70 patch28_6
+	 71 patch28_7
+	 72 patch29_0
+	 73 patch29_1
+	 74 patch29_2
+	 75 patch29_3
+	 76 patch29_4
+	 77 patch29_5
+	 78 patch29_6
+	 79 patch29_7
+	 80 patch2a_0
+	 81 patch2a_1
+	 82 patch2a_2
+	 83 patch2a_3
+	 84 patch2a_4
+	 85 patch2a_5
+	 86 patch2a_6
+	 87 patch2a_7
+	 88 patch2b_0
+	 89 patch2b_1
+	 90 patch2b_2
+	 91 patch2b_3
+	 92 patch2b_4
+	 93 patch2b_5
+	 94 patch2b_6
+	 95 patch2b_7
+	 96 patch2c_0
+	 97 patch2c_1
+	 98 patch2c_2
+	 99 patch2c_3
+	100 patch2c_4
+	101 patch2c_5
+	102 patch2c_6
+	103 patch2c_7
+	104 patch2d_0
+	105 patch2d_1
+	106 patch2d_2
+	107 patch2d_3
+	108 patch2d_4
+	109 patch2d_5
+	110 patch2d_6
+	111 patch2d_7
+	112 patch2e_0
+	113 patch2e_1
+	114 patch2e_2
+	115 patch2e_3
+	116 patch2e_4
+	117 patch2e_5
+	118 patch2e_6
+	119 patch2e_7
+	120 patch2f_0
+	121 patch2f_1
+	122 patch2f_2
+	123 patch2f_3
+	124 patch2f_4
+	125 patch2f_5
+	126 patch2f_6
+	127 patch2f_7
+	128 patch30_0
+	129 patch30_1
+	130 patch30_2
+	131 patch30_3
+	132 patch30_4
+	133 patch30_5
+	134 patch30_6
+	135 patch30_7
+	136 patch31_0
+	137 patch31_1
+	138 patch31_2
+	139 patch31_3
+	140 patch31_4
+	141 patch31_5
+	142 patch31_6
+	143 patch31_7
+	144 patch32_0
+	145 patch32_1
+	146 patch32_2
+	147 patch32_3
+	148 patch32_4
+	149 patch32_5
+	150 patch32_6
+	151 patch32_7
+	152 patch33_0
+	153 patch33_1
+	154 patch33_2
+	155 patch33_3
+	156 patch33_4
+	157 patch33_5
+	158 patch33_6
+	159 patch33_7
+	160 patch34_0
+	161 patch34_1
+	162 patch34_2
+	163 patch34_3
+	164 patch34_4
+	165 patch34_5
+	166 patch34_6
+	167 patch34_7
+	168 patch35_0
+	169 patch35_1
+	170 patch35_2
+	171 patch35_3
+	172 patch35_4
+	173 patch35_5
+	174 patch35_6
+	175 patch35_7
+	176 patch36_0
+	177 patch36_1
+	178 patch36_2
+	179 patch36_3
+	180 patch36_4
+	181 patch36_5
+	182 patch36_6
+	183 patch36_7
+	184 patch37_0
+	185 patch37_1
+	186 patch37_2
+	187 patch37_3
+	188 patch37_4
+	189 patch37_5
+	190 patch37_6
+	191 patch37_7
+	192 patch38_0
+	193 patch38_1
+	194 patch38_2
+	195 patch38_3
+	196 patch38_4
+	197 patch38_5
+	198 patch38_6
+	199 patch38_7
+	200 patch39_0
+	201 patch39_1
+	202 patch39_2
+	203 patch39_3
+	204 patch39_4
+	205 patch39_5
+	206 patch39_6
+	207 patch39_7
+	208 patch3a_0
+	209 patch3a_1
+	210 patch3a_2
+	211 patch3a_3
+	212 patch3a_4
+	213 patch3a_5
+	214 patch3a_6
+	215 patch3a_7
+	216 patch3b_0
+	217 patch3b_1
+	218 patch3b_2
+	219 patch3b_3
+	220 patch3b_4
+	221 patch3b_5
+	222 patch3b_6
+	223 patch3b_7
+	224 patch3c_0
+	225 patch3c_1
+	226 patch3c_2
+	227 patch3c_3
+	228 patch3c_4
+	229 patch3c_5
+	230 patch3c_6
+	231 patch3c_7
+	232 patch3d_0
+	233 patch3d_1
+	234 patch3d_2
+	235 patch3d_3
+	236 patch3d_4
+	237 patch3d_5
+	238 patch3d_6
+	239 patch3d_7
+	240 patch3e_0
+	241 patch3e_1
+	242 patch3e_2
+	243 patch3e_3
+	244 patch3e_4
+	245 patch3e_5
+	246 patch3e_6
+	247 patch3e_7
+	248 patch3f_0
+	249 patch3f_1
+	250 patch3f_2
+	251 patch3f_3
+	252 patch3f_4
+	253 patch3f_5
+	254 patch3f_6
+	255 patch3f_7
+
+)
Index: format/regs.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/regs.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/regs.format	(working copy)
@@ -0,0 +1,558 @@
+(
+	0x8000 core_chipid
+	0x8003 core_kick
+	0x8004 core_write_wdt
+	0x8005 core_lpm_wr
+	0x8006 core_misc_ctrl
+	0x8007 core_otp_rdata
+	0x800a core_ccm_ctrl
+	0x800b core_write_wdt2
+	0x8010 core_reset
+	0x8011 core_encrypt
+	0x8012 core_lpm_wr2
+	0x8022 core_ucode_hi
+	0x8023 core_ucode_ctrl
+	0x8024 core_ucode_low
+	0x8025 core_ucode_data
+
+	0x8040 core_halfslot
+	0x8042 core_clksel
+	0x8043 core_uart_clksel
+	0x8043 core_config
+	0x8044 core_xtal_stable_time
+	0x8045 core_otp_addr
+	0x8046 core_bist_ctrl
+	0x8047 core_otp_ctrl
+	0x8048 core_ac_ctrl
+	0x804a core_ac_saddr
+	0x804c core_lpm_reg
+	0x804f core_lpm_isogate
+	0x8050 core_clkoff
+	0x8052 core_uart_baud
+	0x8053 core_sum_en
+	0x8054 core_uart_rsaddr
+	0x8056 core_uart_readdr
+	0x8058 core_uart_rrptr
+	0x805a core_uart_tsaddr
+	0x805c core_uart_teaddr
+	0x805e core_uart_twptr
+	0x8060 core_uart_ctrl
+	0x8061 core_uartb_ctrl
+	0x8062 core_uartb_baud
+	0x8064 core_uartb_rsaddr
+	0x8066 core_uartb_readdr
+	0x8068 core_uartb_rrptr
+	0x806a core_uartb_tsaddr
+	0x806c core_uartb_teaddr
+	0x806e core_uartb_twptr
+	0x8070 core_gpio_conf
+	0x8084 core_pwm_en
+	0x8085 core_aes_en
+	0x8086 core_spid_ctrl
+	0x8087 core_spid_delay
+	0x8088 core_spid_txlen
+	0x808a core_spid_txaddr
+	0x808c core_spid_rxaddr
+	0x808e core_spid_rxlen
+	0x8090 core_iicd_ctrl
+	0x8091 core_iicd_scl_low
+	0x8092 core_iicd_scl_high
+	0x8093 core_iicd_start_setup
+	0x8094 core_iicd_start_hold
+	0x8095 core_iicd_stop_setup
+	0x8096 core_iicd_data_setup
+	0x8097 core_iicd_data_hold
+	0x8098 core_iicd_txlen
+	0x809a core_iicd_txaddr
+	0x809c core_iicd_rxaddr
+	0x809e core_iicd_rxlen
+	0x80a0 core_pwm_pcnt0
+	0x80a2 core_pwm_ncnt0
+	0x80a4 core_pwm_pcnt1
+	0x80a6 core_pwm_ncnt1
+	0x80a8 core_pwm_pcnt2
+	0x80aa core_pwm_ncnt2
+	0x80ac core_pwm_pcnt3
+	0x80ae core_pwm_ncnt3
+	0x80b0 core_pwm_pcnt4
+	0x80b2 core_pwm_ncnt4
+	0x80b4 core_pwm_pcnt5
+	0x80b6 core_pwm_ncnt5
+	0x80b8 core_pwm_pcnt6
+	0x80ba core_pwm_ncnt6
+	0x80bc core_pwm_pcnt7
+	0x80be core_pwm_ncnt7
+	0x80c0 core_spid2_ctrl
+	0x80c1 core_spid2_delay
+	0x80c2 core_spid2_txlen
+	0x80c4 core_spid2_txaddr
+	0x80c6 core_spid2_rxaddr
+	0x80c8 core_spid2_rxlen
+	0x80ca core_nec_start_addr
+	0x80cc core_nec_end_addr
+	0x80ce core_nec_rptr
+	0x80d0 core_nec_control
+	0x80d1 core_ccm_input_playload_addr
+	0x80d3 core_ccm_output_playload_addr
+	0x80d5 core_ccm_aad0
+	0x80d6 core_ccm_aad1
+	0x80d7 core_ccm_aad2
+	0x80d8 core_pwm_init
+	0x80d9 core_ac_buf_len
+	0x80da core_ccm_inptr
+	0x80dc core_sum_ctrl
+	0x80dc core_otp_din
+	0x80dd core_pwm_sync
+   	0x80df core_otpd_addr
+   	0x80e1 core_otpd_len
+   	0x80e2 core_otpd_ctrl
+   	0x80e4 core_pwm_autoload
+   	0x80e5 core_gpio_conf1
+   	0x80e8 core_keybuf_saddr
+	0x8108 core_misc_status
+	0x8109 core_qdec_cntx
+	0x810a core_watchdog_cnt
+	0x810b core_uart_status
+	0x810c core_uart_rbaud
+	0x810e core_uart_txitems
+	0x8110 core_uart_trptr
+	0x8112 core_uart_rxitems
+	0x8114 core_uart_rdptr
+	0x8116 core_uart_rwptr
+	0x8118 core_debug_baud
+	0x811a core_ccm_outptr
+	0x811c core_gpio_in
+	0x811d core_gpio_in1
+	0x8120 core_ucode_flag
+	0x8121 core_peripheral_lock
+	0x8122 core_nec_wptr
+	0x8124 core_current_efuse_addr
+	0x8124 core_current_otp_addr
+	0x8126 core_spid2_remain
+	0x8128 core_spid_remain
+	0x812a core_iicd_remain
+	0x812c core_dma_status
+	0x812d core_perf_status
+	0x812e core_adc_in
+	0x8130 core_nec_rxitem
+	0x8134 core_lpm_ctrl2
+	0x8138 core_lpm_ctrl
+	0x813c core_lpm_xtalcnt
+	0x813d core_lpm_buckcnt
+	0x813e core_lpm_ldocnt
+	0x813f core_lpm_latch
+	0x8140 core_gpio_wakeup_low
+	0x8144 core_gpio_wakeup_high
+	0x8148 core_aes_decode_key_init
+	0x8149 core_clk_counter
+	0x8150 core_adc_sum
+	0x8152 core_uartb_status
+	0x8152 core_uartb_rbaud
+	0x8154 core_uartb_txitems
+	0x8156 core_uartb_trptr
+	0x8158 core_uartb_rxitems
+	0x815a core_uartb_rdptr
+	0x815c core_uartb_rwptr
+	0x815e core_mpu_s0_saddr
+	0x8160 core_mpu_s0_eaddr
+	0x8162 core_mpu_s1_saddr
+	0x8164 core_mpu_s1_eaddr
+
+	0x8203 core_ice_ctrl
+	0x8204 core_ice_status
+	0x8205 core_ice_break0
+	0x8207 core_ice_break1
+  
+	0x8280 core_docd_ctrl
+	0x8288 core_docd_paddr
+	0x828a core_docd_pdata
+
+	0x8900 modem_en
+	0x8938 mod_value_scale1
+	0x8960 core_rf_rx_agc_ctrl
+	0x8961 core_rf_rx_gain_fix
+	0x8968 core_agc_wb_sat_th
+	0x8969 core_agc_nb_sat_th
+	0x89a0 modem_rssi
+	0x89a1 modem_wb_pow
+	0x89a2 modem_nb_pow
+	0x89a3 modem_gain
+	0x89a4 modem_status
+
+	0x89f0 fpga_rf_gain
+	0x89f1 fpga_rf_gain_ctrl
+	0x89f2 fpga_uart_ctrl
+	0x89f3 fpga_uart_wdata
+	0x89f4 fpga_uart_rdata
+	0x89f5 fpga_uart_status
+
+	0x8a00 core_clkpll_ctrl0              
+	0x8a01 core_clkpll_ctrl1              
+	0x8a02 core_clkpll_ctrl2              
+	0x8a03 core_clkpll_cfg0               
+	0x8a04 core_clkpll_cfg1               
+	0x8a05 core_clkpll_cfg2               
+	0x8a06 core_clkpll_cfg3               
+	0x8a07 core_clkpll_cfg4               
+	0x8a08 core_clkpll_cfg5               
+	0x8a09 core_clkpll_cfg6               
+	0x8a0a core_rf_ldo_en0                
+	0x8a0b core_rf_ldo_en1                
+	0x8a0c core_rf_ldo_cfg0               
+	0x8a0d core_rf_ldo_cfg1               
+	0x8a0e core_rf_ldo_cfg2               
+	0x8a0f core_rf_ldo_cfg3               
+	0x8a10 core_rf_ldo_cfg4               
+	0x8a11 core_rf_ldo_cfg5               
+	0x8a12 core_rf_ldo_cfg6               
+	0x8a13 core_rf_ldo_cfg7               
+	0x8a14 core_rf_ldo_cfg8               
+	0x8a15 core_rf_ldo_cfg9               
+	0x8a16 core_syn_en                    
+	0x8a17 core_rx_en0                    
+	0x8a18 core_rx_en1                    
+	0x8a19 core_tx_en0                    
+	0x8a1a core_tx_en1                    
+	0x8a1b core_force_ctrl                
+	0x8a1c core_rx_lna_gc_gc0             
+	0x8a1d core_rx_lna_gc_gc1             
+	0x8a1e core_rx_lna_gc_gc2             
+	0x8a1f core_rx_lna_gc_gc3             
+	0x8a20 core_rx_lna_gc_gc4             
+	0x8a21 core_rx_lna_gc_gc5             
+	0x8a22 core_rx_lna_gc_gc6             
+	0x8a23 core_rx_lna_gc_gc7             
+	0x8a24 core_rx_lna_gc_gc8             
+	0x8a25 core_rx_lna_hg_isel_gc6        
+	0x8a26 core_rx_lna_hg_isel_gc7        
+	0x8a27 core_rx_lna_hg_isel_gc8        
+	0x8a28 core_rx_lna_lg_isel_gc0        
+	0x8a29 core_rx_lna_lg_isel_gc1        
+	0x8a2a core_rx_lna_lg_isel_gc2        
+	0x8a2b core_rx_lna_lg_isel_gc3        
+	0x8a2c core_rx_lna_lg_isel_gc4        
+	0x8a2d core_rx_lna_lg_isel_gc5        
+	0x8a2e core_rx_bq_gc_gc0              
+	0x8a2f core_rx_bq_gc_gc1              
+	0x8a30 core_rx_bq_gc_gc2              
+	0x8a31 core_rx_bq_gc_gc3              
+	0x8a32 core_rx_bq_gc_gc4              
+	0x8a33 core_rx_bq_gc_gc5              
+	0x8a34 core_rx_bq_gc_gc6              
+	0x8a35 core_rx_bq_gc_gc7              
+	0x8a36 core_rx_bq_gc_gc8              
+	0x8a37 core_rx_gain_force             
+	0x8a38 core_rx_lna_isel_force         
+	0x8a39 core_tx_pwr_ctrl0              
+	0x8a3a core_tx_pwr_ctrl1              
+	0x8a3b core_tx_pwr_ctrl2              
+	0x8a3c core_tx_pwr_ctrl3              
+	0x8a3d core_syn_top_ctrl              
+	0x8a3e core_syn_mmd_cp_ctrl           
+	0x8a3f core_syn_divr_int              
+	0x8a40 core_syn_divr_frac2            
+	0x8a41 core_syn_divr_frac1            
+	0x8a42 core_syn_divr_frac0            
+	0x8a43 core_syn_cal_ctrl              
+	0x8a44 core_rx_tiai_dcoc_gc0          
+	0x8a45 core_rx_tiaq_dcoc_gc0          
+	0x8a46 core_rx_tiai_dcoc_gc1          
+	0x8a47 core_rx_tiaq_dcoc_gc1          
+	0x8a48 core_rx_tiai_dcoc_gc2          
+	0x8a49 core_rx_tiaq_dcoc_gc2          
+	0x8a4a core_rx_tiai_dcoc_gc3          
+	0x8a4b core_rx_tiaq_dcoc_gc3          
+	0x8a4c core_rx_tiai_dcoc_gc4          
+	0x8a4d core_rx_tiaq_dcoc_gc4          
+	0x8a4e core_rx_tiai_dcoc_gc5          
+	0x8a4f core_rx_tiaq_dcoc_gc5          
+	0x8a50 core_rx_tiai_dcoc_gc6          
+	0x8a51 core_rx_tiaq_dcoc_gc6          
+	0x8a52 core_rx_tiai_dcoc_gc7          
+	0x8a53 core_rx_tiaq_dcoc_gc7          
+	0x8a54 core_rx_tiai_dcoc_gc8          
+	0x8a55 core_rx_tiaq_dcoc_gc8          
+	0x8a56 core_rx_bq_daci_gc0            
+	0x8a57 core_rx_bq_dacq_gc0            
+	0x8a58 core_rx_bq_daci_gc1            
+	0x8a59 core_rx_bq_dacq_gc1            
+	0x8a5a core_rx_bq_daci_gc2            
+	0x8a5b core_rx_bq_dacq_gc2            
+	0x8a5c core_rx_bq_daci_gc3            
+	0x8a5d core_rx_bq_dacq_gc3            
+	0x8a5e core_rx_bq_daci_gc4            
+	0x8a5f core_rx_bq_dacq_gc4            
+	0x8a60 core_rx_bq_daci_gc5            
+	0x8a61 core_rx_bq_dacq_gc5            
+	0x8a62 core_rx_bq_daci_gc6            
+	0x8a63 core_rx_bq_dacq_gc6            
+	0x8a64 core_rx_bq_daci_gc7            
+	0x8a65 core_rx_bq_dacq_gc7            
+	0x8a66 core_rx_bq_daci_gc8            
+	0x8a67 core_rx_bq_dacq_gc8            
+	0x8a68 core_rx_tiai_dcoc_force        
+	0x8a69 core_rx_tiaq_dcoc_force        
+	0x8a6a core_rx_bq_daci_force          
+	0x8a6b core_rx_bq_dacq_force          
+	0x8a6c core_rx_bq_bw_cal              
+	0x8a6d core_rx_bq_cfg0                
+	0x8a6e core_rx_bq_cfg1                
+	0x8a6f core_rx_bq_cfg2                
+	0x8a70 core_rx_bq_cfg3                
+	0x8a71 core_rx_bq_cfg4                
+	0x8a72 core_rx_lna_cfg0               
+	0x8a73 core_rx_lna_cfg1               
+	0x8a74 core_rx_lna_cfg2               
+	0x8a75 core_rx_lna_cfg3               
+	0x8a76 core_rx_mixer_cfg0             
+	0x8a77 core_rx_mixer_cfg1             
+	0x8a78 core_rx_mixer_cfg2             
+	0x8a79 core_rx_adc_clk_cfg            
+	0x8a7a core_rx_iqadc_cfg              
+	0x8a7b core_rx_rssiadc_cfg            
+	0x8a7c core_syn_state0                
+	0x8a7d core_syn_state1                
+	0x8a7e core_syn_bias_cfg              
+	0x8a7f core_syn_cdb_cfg0              
+	0x8a80 core_syn_cdb_cfg1              
+	0x8a81 core_syn_cdb_cfg2              
+	0x8a82 core_syn_cdb_cfg3              
+	0x8a83 core_syn_pfd_lkd_cfg           
+	0x8a84 core_syn_cp_lpf_cfg            
+	0x8a85 core_syn_loopdiv_dsm_cfg       
+	0x8a86 core_syn_afc_cfg0              
+	0x8a87 core_syn_afc_cfg1              
+	0x8a88 core_syn_afc_cfg2              
+	0x8a89 core_syn_afc_cfg3              
+	0x8a8a core_syn_aac_cfg0              
+	0x8a8b core_syn_aac_cfg1              
+	0x8a8c core_logen_process_cal0        
+	0x8a8d core_logen_process_cal1        
+	0x8a8e core_logen_process_cal2        
+	0x8a8f core_logen_process_cal3        
+	0x8a90 core_logen_process_cal4        
+	0x8a91 core_logen_process_cal5        
+	0x8a92 core_logen_process_cal6        
+	0x8a93 core_logen_process_cal7        
+	0x8a94 core_logen_process_cal8        
+	0x8a95 core_logen_process_ca9         
+	0x8a96 core_logen_process_ca10        
+	0x8a97 core_gpadc_ctrl                
+	0x8a98 core_tx_abb_cfg                
+	0x8a99 core_tx_mixer_cfg0             
+	0x8a9a core_tx_mixer_cfg1             
+	0x8a9b core_tx_mixer_cfg2             
+	0x8a9c core_tx_pa_cfg                 
+	0x8a9d core_syn_tst_ctrl              
+	0x8a9e core_ana_test_control0         
+	0x8a9f core_ana_test_control1         
+
+
+	0x8c00 core_usb_config
+	0x8c01 core_usb_int_mask
+	0x8c02 core_usb_addr
+	0x8c03 core_usb_rx_saddr
+	0x8c05 core_usb_rx_eaddr
+	0x8c07 core_usb_rxptr
+	0x8c09 core_usb_tx_saddr0
+	0x8c0b core_usb_tx_saddr1
+	0x8c0d core_usb_tx_saddr2
+	0x8c0f core_usb_tx_saddr3
+	0x8c11 core_usb_hmode
+	0x8c18 core_usb_trig
+	0x8c19 core_usb_stall
+	0x8c1a core_usb_clear		//7bit reset   
+	0x8c20 core_usb_rx_wptr
+	0x8c22 core_usb_stall_status
+	0x8c23 core_usb_status
+	0x8c24 core_usb_txbusy
+	0x8c25 core_usb_sof_cntl
+	0x8c26 core_usb_sof_cnth
+	
+)
+
+
+(
+4 rx_freq_offset
+2 tx_freq_offset
+)
+
+(
+/* bit difinitions */
+  4 whiteoff_bit
+  6 clksel_rc
+  1 clksel_dpll_24M
+  5 clksel_dpll
+  4 clksel_xtal
+  5 adc_rccal
+  0 bpf_rccal
+  1 demod_clkoff
+)
+
+(
+  2 reload_code
+  3 gpio_latch
+  4 enable_retmem
+  7 cold_wake
+  0xef isogate_mask
+  0xe0 cs_mask
+)
+
+
+// misc ctrl
+(
+  0x01 spid2_start
+  0x02 spid_start
+  0x04 iicd_start
+  0x08 lock_otp
+  0x10 x_sethi
+  0x20 y_sethi
+  0x40 z_sethi
+  0x80 ccnt_start
+)
+// dma status bit
+(
+  0 otpd_crcok
+  1 otpd_done
+  2 spid_crcok
+  3 spid_done
+  4 iicd_crcok
+  5 iicd_done
+  6 iicd_ack
+)
+
+//bit map of core_uart_status
+(
+1 UART_STATUS_TX_BUSY
+2 UART_STATUS_RX_FIFO_EMPTY
+3 UART_STATUS_RX_FIFO_FULL
+4 UARTB_STATUS_TX_BUSY
+5 UARTB_STATUS_RX_FIFO_EMPTY
+6 UARTB_STATUS_RX_FIFO_FULL
+)
+
+(//core_uart_clksel
+0 UART_CLOCK_SELECT_BIT
+0xFE UART_CLOCK_SELECT_CRYSTAL
+0x01 UART_CLOCK_SELECT_DPLL
+
+24000000 uart_clock_freq_24M
+48000000 uart_clock_freq_48M
+)
+
+
+(//bit map of core_uart_ctrl
+0 BIT_UART_CONTROL_ENABLE
+1 BIT_UART_CONTROL_PARITY
+2 BIT_UART_CONTROL_DATA_LENGTH
+3 BIT_UART_CONTROL_STOP_BIT_SIZE
+4 BIT_UART_CONTROL_FLOW_CONTROL
+5 BIT_UART_CONTROL_7816_SMART_CARD_PROTOCOL
+6 BIT_UART_CONTROL_HALF_DUPLEX_SINGLE_LINE_UART
+7 BIT_UART_CONTROL_RATE_BAUD_SETTING
+)
+(//FUN of core_uart_ctrl
+0x01 FUN_UART_CONTROL_ENABLE
+0x06 FUN_UART_CONTROL_PARITY_ODD
+0x04 FUN_UART_CONTROL_PARITY_EVEN
+0x08 FUN_UART_CONTROL_STOP_2BIT
+0x00 FUN_UART_CONTROL_STOP_1BIT
+0x10 FUN_UART_CONTROL_FLOW_CONTROL_ENABLE
+0x20 FUN_UART_CONTROL_7816_SMART_CARD_PROTOCOL
+0x40 FUN_UART_CONTROL_HALF_DUPLEX_SINGLE_LINE_UART
+0x80 FUN_UART_CONTROL_SETTING_RATE_BAUD
+)
+
+(//bit map of core_nec_control
+0x00 BIT_NEC_ENABLE
+0x01 BIT_NEC_CLK_DIVIDE_NUM
+)
+
+(//FUN  of core_nec_control
+0x01 FUN_NEC_ENABLE
+0x30 FUN_NEC_CLK_DIVIDE_24	//24M , 
+)
+
+0x8b uart_ctrl_default //BCSP
+0x81 uart_ctrl_h4 //H4
+0x81 uart_ctrl_normal
+0x91 uart_ctrl_5line
+0x81 uart_ctrl_57600
+2 uart_baud_len
+0x00 uartclk_crystal
+0x01 uartclk_dpll
+0x1a0 uart_baud_115200
+0xbb uart_baud_256000
+0x340 uart_baud_57600
+0x34 uart_baud_921600
+0x9c4 uart_baud_9600
+
+//core_clkoff
+(
+	0 CLOCK_OFF_AUTH_ROM
+	1 CLOCK_OFF_UC_ROM
+	2 CLOCK_OFF_DEBUG_UART
+	3 CLOCK_OFF_SCHED_RAM
+	4 CLOCK_OFF_TRANCE_FIFO
+	5 CLOCK_OFF_CORDIC
+	6 CLOCK_OFF_OTPD
+	7 CLOCK_OFF_I2C
+	8 CLICK_OFF_8051
+	9 CLOCK_OFF_KEYSCAN
+	0x0a CLOCK_OFF_USB
+	0x0b CLOCK_OFF_QDECODER
+	0x0c CLOCK_OFF_SPI
+	0x0d CLOCK_OFF_PWM
+	0x0e CLOCK_OFF_UARTB
+	0x0f CLOCK_OFF_UART
+)
+
+// gpio config types
+(
+  0 gpcfg_input
+  2 gpcfg_qspi_ncs
+  3 gpcfg_qspi_sck
+  4 gpcfg_qspi_io0
+  5 gpcfg_qspi_io1
+  6 gpcfg_qspi_io2
+  7 gpcfg_qspi_io3
+  8 gpcfg_uart_txd
+  9 gpcfg_uart_rxd
+  10 gpcfg_uart_rts
+  11 gpcfg_uart_cts
+  12 gpcfg_uartb_txd
+  13 gpcfg_uartb_rxd
+  14 gpcfg_uartb_rts
+  15 gpcfg_uartb_cts
+  16 gpcfg_pwm_out0
+  17 gpcfg_pwm_out1
+  18 gpcfg_pwm_out2
+  19 gpcfg_pwm_out3
+  20 gpcfg_pwm_out4
+  21 gpcfg_pwm_out5
+  22 gpcfg_pwm_out6
+  23 gpcfg_pwm_out7
+  24 gpcfg_nec_input
+  25 gpcfg_ac_input
+  31 gpcfg_spid_miso
+  32 gpcfg_spid_ncs
+  33 gpcfg_spid_sck
+  34 gpcfg_spid_mosi
+  35 gpcfg_spid_sdio
+  
+  39 gpcfg_spid2_miso
+  40 gpcfg_spid2_ncs
+  41 gpcfg_spid2_sck
+  42 gpcfg_spid2_mosi
+  43 gpcfg_spid2_sdio
+  44 gpcfg_iic_scl
+  45 gpcfg_iic_sda
+  62 gpcfg_output_low
+  63 gpcfg_output_high
+  
+  0x00 gpcfg_high_impedance
+  0x40 gpcfg_pullup
+  0x80 gpcfg_pulldown
+  0xc0 gpcfg_no_ie
+)
+
Index: format/rfcomm.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/rfcomm.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/rfcomm.format	(working copy)
@@ -0,0 +1,391 @@
+/*****************************************************************************/
+/* RCS HEADER -- DO NOT ERASE                                                */
+/* $Author: Administrator $                                                           */
+/* $Id: bt_rfcomm_format.upper,v 1.1 2009-09-28 04:06:17 Administrator Exp $ */
+/* Orisil Technology                                                      */
+/*****************************************************************************/
+
+/**********/
+/* memory */
+/**********/
+
+memalloc(
+1 memRemoteRPNBitRate
+1 memRemotePRNDataBits
+1 memRemotePRNStopBit
+1 memRemotePRNParity
+1 memRemotePRNFlowControl
+1 memRemotePRNXon
+1 memRemotePRNXoff
+
+
+3 mem_mod2div_temp
+2 mem_contw_temp
+2 mem_attrib_list
+
+//rfcomm head
+1 mem_current_adss
+1 mem_current_channel
+1 mem_current_frame_type
+1 mem_current_fcs
+2 mem_current_length
+2 mem_rfcomm_uih_payload_ptr
+
+//rfcomm uih
+1 mem_uih_cmd_type
+2 mem_uih_length
+2 mem_param_payload_ptr
+
+
+//rfcomm modem status
+1 mem_ms_param
+
+//rfcomm pn
+1 mem_pn_credit_flow_type_info
+1 mem_pn_priority
+1 mem_pn_acknowledg_timer
+1 mem_pn_max_retrans
+
+1 mem_rfcomm_send_adss
+1 mem_rfcomm_send_frame_type
+1 mem_rfcomm_send_fcs
+1 mem_rfcomm_send_offset
+
+)
+
+xmemalloc(
+1 mem_pn_dlci
+2 mem_pn_max_frame_size
+
+1 memFCStemp1
+1 memFCStemp2
+1 memFCStemp3
+
+1 mem_rfcomm_initiator
+
+1 mem_remote_spp_channel
+
+1 mem_HIUfcs_SPP
+1 mem_HIUfcs_SPP_WCredits
+
+1 mem_rfcomm_send_more_pkt
+
+1 mem_remote_credits
+1 mem_credit_given
+
+//rfcomm modem status
+1 mem_ms_channel
+
+1 mem_rfcomm_credit_flag
+
+2 mem_rfcomm_max_frame_size
+1 mem_rfcomm_credit_init_data
+
+2 mem_cb_receive_spp_data
+
+2 mem_nl_rx_data_src
+2 mem_nl_rx_len_all
+)
+
+
+(
+0 CREDIT_DISABLE
+1 CREDIT_ENABLE
+)
+
+
+/************************************************************************/
+  
+
+ 
+/************/
+/* constant */
+/************/
+
+/* RFCOMM state for Headset (memRFCOMM_State) */ 
+  (
+    0 RFCOMM_IDLE           /* before the responsor HS receive SABM            */
+    1 RFCOMM_W4_DLCI0_OPEN
+    2 RFCOMM_W4_DLCI0_CLOSE
+    3 RFCOMM_START_DLCI0    /* After respond SABM frame (DLCI=0)               */
+    4 RFCOMM_W4_DLCI_OPEN
+    5 RFCOMM_W4_DLCI_CLOSE
+    6 RFCOMM_DLCI_OPENED    
+   
+  )
+  
+/* RFCOMM timer constants   */
+  (
+    1000  RFCOMM_T1         /* Used by SABM and DISC frames,100*20ms = 20s     */     
+    1000  RFCOMM_T2         /* Used by commands send in UIH on DLCI0,          */
+    300   RFCOMM_T3_RINGON  /* 6s for ring fade time                           */
+  
+  )
+
+/* Command Type */
+  (
+    0x3F RSP_RX_SABM        /*responsor expect SABM from initiator             */
+    0x3F INI_TX_SABM
+	
+    0x73 RSP_TX_UA          /*responsor send out UA command                    */
+    0x73 UA_WFBIT_SET	    /* UA control field with F bit set                 */
+	
+    0xEF RSP_RX_UIH         /*responsor expect UIH from initiator              */
+
+    0xEF RSP_TX_UIH         /*responsor send UIH to initiator                  */
+     
+    0x1F RSP_TX_DM          /*responsor send DM to initiator                   */
+    0x1F DM_WFBIT_SET       /* DM control field with F bit set                 */
+    0x0F DM_WFBIT_CLEAR     /* DM control field with F bit clear               */
+
+    0x53 RSP_RX_DISC        /*responsor expect DISC from initiator             */
+    0x53 INI_TX_DISC	    /*initiator send DISC control type command         */
+     
+    0xFF RSP_RX_UIH_WDATA   /*UIH data with credit flow control info           */
+    
+    
+  )
+
+/* Multiplexor commands and responses frames */
+  (
+    0x83 PN_COMMAND           /* Bit 0 EA C/R Type = 000001         */
+    0x81 PN_RESPONSOR         /* Bit 0 EA C/R Type = 000001         */
+    
+    0xE3 MSC_COMMAND          /* Bit 0 EA C/R Type = 000111         */
+    0xE1 MSC_RESPONSOR
+ 
+    0x13 NSC_COMMAND          /* Bit 0 EA C/R Type = 001000         */
+    0x11 NSC_RESPONSOR        /* Bit 0 EA C/R Type = 001000         */
+
+    0x23 TEST_COMMAND         /* Bit 0 EA C/R Type = 000111         */
+    0x21 TEST_RESPONSOR 
+    
+    0x93 RPN_COMMAND          /* Bit 0 EA C/R Type = 001001         */
+    0x91 RPN_RESPONSOR 
+    
+    0x53 RLS_COMMAND          /* Bit 0 EA C/R Type = 001010         */
+    0x51 RLS_RESPONSOR 
+
+    0xA3 FCON_COMMAND         /* Bit 0 EA C/R Type = 000101         */
+    0xA1 FCON_RESPONSOR 
+    
+    0x63 FCOFF_COMMAND        /* Bit 0 EA C/R Type = 000110         */
+    0x61 FCOFF_RESPONSOR 
+    	
+    0x03 RLS_OVERRUN
+    0x05 RLS_PARITY_ERROR
+    0x09 RLS_FRAMING_ERROR
+  )
+
+/* memLocalCredit */
+  (
+    0x01 RFCOMM_CREDIT
+  )
+
+  (
+  	0x007f RFCOMM_MAX_FRAME_SIZE
+  )
+
+/* UIH received Data length */
+  (
+    0  LENGTH_ZERO
+    
+    6  LENGTH_OK
+    7  LENGTH_HOT
+    8  LENGTH_RING
+    9  LENGTH_ERROR
+    9  LENGTH_AGVOL_ONEBYTE
+    10 LENGTH_AGVOL_TWOBYTE
+    10 LENGTH_VOL_ONEBYTE
+    11 LENGTH_VOL_TWOBYTE
+    12 LENGTH_BRSF
+    13 LENGTH_PLUS_CIEV
+    15 LENGTH_INBANDRING
+    14 LENGTH_CIEV_CALL
+    17 LENGTH_CRING
+    20 LENGTH_BRSF_OK
+    24 LENGTH_CIND0
+    28 LENGTH_CIEV_TWO
+    32 LENGTH_CIND_OK
+    59 LENGTH_CIND_OK2
+    100 LENGTH_DISCARD
+  )
+  
+/************/
+/* flags    */
+/************/
+  
+/* memRFCOMM_L2CAP_Interface */
+  (
+    0 RFCOMM_TX_W4BUF_FLAG    /* Wait for Tx buffer empty flag */
+    1 RFCOMM_CLOSE_LINK_FLAG
+  )
+  
+
+    
+/* memRemoteMSC		*/
+  (
+    0 MSC_EA_BIT
+    1 MSC_FC_BIT
+    2 MSC_RTC_BIT
+    3 MSC_RTR_BIT
+    6 MSC_IC_BIT
+    7 MSC_DV_BIT
+  )
+
+/* memRemoteRLS         */
+  (
+    0x0C OVERRUN_ERROR
+    0x0A PARITY_ERROR
+    0x09 FRAMING_RERROR
+  )
+  
+/* memRemoteRPNBitRate  */
+  (
+    0x00 BITS2400
+    0x01 BITS4800
+    0x02 BITS7200
+    0x03 BITS9600
+    0x04 BITS19200
+    0x05 BITS38400
+    0x06 BITS57600
+    0x07 BITS115200
+    0x08 BITS230400
+  )
+  
+/* memRemotePRNDataBits	*/
+  (
+    0x00 DATABITS5
+    0x01 DATABITS6
+    0x02 DATABITS7
+    0x03 DATABITS8
+  )
+  
+/* memRemotePRNStopBit	*/
+  (
+    0    ONESTOP
+    1    ONEHALFSTOP
+  )
+  
+/* memRemotePRNParity   */
+  (
+    0    ODDPARITY
+    1    EVENPARITY
+    2    MARKPARITY
+    3    SPACEPARITY
+    
+    7    PARITY_ENABLE_BIT
+  )
+
+/* RPN bit mask(in)     */
+  (
+     0   BIT_RATE_MASK_BIT
+     1   DATA_BITS_MASK_BIT
+     2   STOP_BITS_MASK_BIT
+     3   PARITY_MASK_BIT
+     4   PARITY_TYPE_MASK_BIT
+     5   XON_CHAR_MASK_BIT
+     6   XOFF_CHAR_MASK_BIT
+  )
+  
+/* RPN bit mask(in) 2    */
+  (
+     0   XON_XOFF_INPUT_MASK_BIT
+     1   XON_XOFF_OUTPUT_MASK_BIT
+     2	 RTR_INPUT_MASK_BIT
+     3   RTR_OUTPUT_MASK_BIT
+     4   RTC_INPUT_MASK_BIT
+     5   RTC_OUTPUT_MASK_BIT
+
+  )
+
+/* memRFCOMM_Request	*/
+  (
+    0 SEND_MSC_CMD_REQ_FLAG
+    1 SEND_AT_CKPD_REQ_FLAG
+    2 SEND_RING_REQ_FLAG
+    3 SEND_SABM_CMD
+  )
+  
+/* memRFCOMM_Misc_Flag  */
+  (
+    0 MSC_CDM_ALREADY_SEND_FLAG
+    1 CREDIT_FLOW_USED_FLAG
+    2 DONT_EMBEDDED_CREDIT_FLAG 
+    3 MSC_EXCHANGE_DONE_FLAG
+    4 FLOW_CONTROL_FCOFF_BIT            /* set when receive FCoff, clear when FCon   */
+  )
+  
+/* memRemoteMSC		*/
+  (
+    1 FLOW_CONTROL_FC_BIT		/* received MSC FC bits                      */
+  
+  )
+/* Address filed        */
+  (
+    0 ADDR_EA_BIT
+    1 ADDR_CR_BIT
+    2 ADDR_D_BIT
+  )
+//should be same as descripted in SDP
+(
+    1 SPP_SLAVE_CHANNEL
+    7 OBEX_SERVER_CHANNEL
+    8 HF_SERVER_CHANNEL 
+    9 HS_SERVER_CHANNEL
+)
+/* memRFCOMM_Flag */
+(
+	0 USING_HF_PROFILE
+	1 USING_HS_PROFILE
+	2 USING_SPP_PROFILE
+)
+/*RFCOMM Frame Type*/
+(
+	0x3f RFCOMM_FRAME_TYPE_SABM
+	0x73 RFCOMM_FRAME_TYPE_UA
+	0xEF RFCOMM_FRAME_TYPE_UIH
+	0xFF RFCOMM_FRAME_TYPE_UIH_CREDITS
+	0x53 RFCOMM_FRAME_TYPE_DISCONN
+)
+/*RFCOMM UIH CMD TYPE*/
+(
+	0x41 UIH_PARAM_NEG_CMD
+	0x40 UIH_PARAM_NEG_RES
+	0x49 UIH_PARAM_CMD_REMOVE_PORT
+	0x71 UIH_MODEM_STATUS_CMD
+	0x70 UIH_MODEM_STATUS_RES
+)
+
+/*bits in rfcomm address*/
+(
+	0 RFCOMM_ADDRESS_EXT_LEN
+	1 RFCOMM_ADDRESS_CR
+	2 RFCOMM_ADDRESS_DERECTION
+
+
+)
+
+	(                                   
+	0 RFCOMM_CHANNEL_STATE_PN_CMD
+	1 RFCOMM_CHANNEL_STATE_PN_RES
+	2 RFCOMM_CHANNEL_STATE_SABM
+	3 RFCOMM_CHANNEL_STATE_UA
+	4 RFCOMM_CHANNEL_STATE_SND_MS_CMD
+	5 RFCOMM_CHANNEL_STATE_RCV_MS_CMD
+	6 RFCOMM_CHANNEL_STATE_SND_MS_RES
+	7 RFCOMM_CHANNEL_STATE_RCV_MS_RES
+	0xff RFCOMM_CHANNEL_SETUP_COMPLETE
+	) 
+
+	/*mem_rfcomm_send_more_pkt*/
+	(
+	1 MORE_PKT_MSC_CMD_HF
+	2 MORE_PKT_MSC_CMD_HS
+	3 MORE_PKT_MSC_CMD_SPP
+	4 MORE_PKT_MSC_CMD_OBEX
+	)
+
+	(
+	127 RFCOMM_MALLOC_SIZE
+	)
\ No newline at end of file
Index: format/sdp.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/sdp.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/sdp.format	(working copy)
@@ -0,0 +1,71 @@
+
+memalloc(
+0 mem_sdp_mem_start
+8 mem_sdp_uuid_search_ptr
+2 mem_sdp_continue_byte
+1 mem_sdp_pduid
+2 mem_sdp_transactionid
+2 mem_sdp_transactionid_local
+2 mem_sdp_attribute_maxbyte
+2 mem_sdp_record_maxcnt
+4 mem_sdp_record_handle
+1 mem_sdp_LACAP_found
+1 mem_sdp_RFCOMM_found
+0 mem_sdp_handle_list
+32 mem_sdp_attrib_list
+2 mem_sdp_error_code
+2 mem_sdp_all_length
+1 mem_handle_humber
+2 mem_search_uuid
+0 mem_sdp_mem_end
+)
+xmemalloc(
+2 mem_ui_uuid_table
+22 mem_all_uuid_16bits
+34 mem_all_uuid_128bits
+2 mem_sdp_l2capch_ptr
+)
+(
+0 AGORHS_SERVICE
+1 GENAUDIO_SERVICE
+2 HANDSFREE_SERVICE
+)
+(
+0 ATTRIBUTEID_0000
+1 ATTRIBUTEID_0001
+2 ATTRIBUTEID_0004
+3 ATTRIBUTEID_0009
+4 ATTRIBUTEID_0100
+5 ATTRIBUTEID_0302
+6 ATTRIBUTEID_0006
+7 ATTRIBUTEID_0311
+)
+
+(
+0x01 SDP_ERROR_RES
+0x02 SDP_SEARCH_REQ
+0x03 SDP_SEARCH_RES
+0x04 SDP_ATTRIBUTE_REQ
+0x05 SDP_ATTRIBUTE_RES
+0x06 SDP_SEARCHATTRIB_REQ
+0x07 SDP_SEARCHATTRIB_RES
+)
+0x2600 sdp_max_amount
+250 SDP_MALLOC_SIZE
+0x6e sdp_tid_spp //any number
+
+(
+0x1f11 SDP_UUID_HS_AUDIO_GATEWAY
+)
+
+(
+0x08 SDP_ATTRIBUTE_INTENGER
+0X09 SDP_ATTRIBUTE_ID
+0x0a SDP_ATTRIBUTE_RANGE
+)
+
+(//mem_sdp_handle_list
+7 SDP_MAX_HANDLE_NUMBER
+)
+
+ 
Index: format/security.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/security.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/security.format	(working copy)
@@ -0,0 +1,108 @@
+
+memalloc (
+
+
+16 mem_random_number
+16 mem_round_key
+16 mem_kinit
+
+16 mem_input_store
+16 mem_x
+15 mem_y
+1 mem_y15
+17 mem_key_store
+1 mem_key_store_end
+2 memp_ar_key
+2 memp_ar_input
+10 mem_ar_hround
+
+
+1 mem_ec_infinite
+2 mem_ec_loopc
+1 mem_aes_cmac_data_length
+
+0 memdat
+/* ecc calculation */
+
+24 mem_ax
+24  mem_ay
+24  mem_az
+24 mem_bx
+0 mem_ax_256 //32 bytes
+24 mem_by
+8 mem_bz
+16 mem_ay_256 // 32 bytes
+16 mem_cx
+8 mem_az_256 // 32 bytes
+23 mem_cy
+1 mem_cy5
+0 mem_bx_256 // 32 bytes
+24 mem_cz
+8  mem_k
+16 mem_by_256 // 31 bytes
+16 mem_align
+
+0 mem_bz_256  //32 bytes
+0 mem_tmp1
+24 memahbak
+8 mem_tmp5
+0 mem_cx_256  //32 bytes
+16 memahsave
+16  mem_tmp2
+0 mem_cy_256  // 32 bytes
+0  memahsave_end 
+1  mem_addr_padding 
+7   mem_addr_value         /* 12 bytes     */ 
+0 mem_tmp3
+5 mem_t1
+3  mem_addr_value_end   
+15 mem_addr_iocap_end
+1 mem_cy5_256 // 1 byte
+0 mem_cz_256 // 32 bytes
+0 mem_tmp0
+8 mem_t0
+16 mem_tmp0a
+8  mem_t2
+16 mem_k_256 //32 bytes
+16 mem_t3
+8  mem_tmp1_256 //32 bytes
+24 mem_t7
+
+
+32 mem_tmp5_256
+32  mem_tmp2_256
+0 mem_tmp3_256
+32 mem_t1_256
+0 mem_tmp0_256
+32 mem_t0_256
+32 mem_t2_256
+32 mem_t3_256
+32 mem_t7_256
+
+24 mem_p		
+24 mem_a
+24 mem_b
+24 mem_gx
+24 mem_gy
+32 memh0
+
+
+32 mem_p_256		
+32 mem_a_256
+32 mem_gx_256
+32 mem_gy_256
+16 mem_le_slat
+
+)
+
+xmemalloc(
+5 mem_ccm_pcnt_tx
+5 mem_ccm_pcnt_rx
+4 mem_ccm_last_mic
+0 mem_ccm_iv
+4 mem_ccm_ivm
+4 mem_ccm_ivs
+2 mem_ccm_len
+2 mem_ccm_rx_ptr
+)
+
Index: format/simple_pairing.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/simple_pairing.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/simple_pairing.format	(working copy)
@@ -0,0 +1,212 @@
+/* simple pairing page */
+
+memalloc(
+
+//4 mem_hci_ssp_mode
+0 mem_sp_state_start
+1 mem_sp_state
+1 mem_master_sp_state
+1 mem_sp_flag
+1 mem_master_sp_flag
+1 mem_sp_calc
+1 mem_sp_dh_ready
+1 mem_sp_localsm
+1 mem_pairing_auth
+
+1 mem_sp_local_key_send_count
+1 mem_sp_remote_key_recv_count
+1 mem_sp_remote_key_invalid
+1 mem_sp_dhkey_invalid
+4 mem_gkey
+0 mem_sp_state_end
+
+8 mem_le_pubkey_remote_x_256
+0 mem_sp_pubkey_remote
+24 mem_sp_pubkey_remote_x
+0 mem_sp_pubkey_remote_x_end
+8 mem_le_pubkey_remote_y_256
+24 mem_sp_pubkey_remote_y
+
+8 mem_le_dhkey_256
+24 mem_sp_dhkey
+0 mem_sp_dhkey_end
+
+16 mem_sp_random_local
+0 mem_sp_random_local_end
+16 mem_sp_random_remote
+0 mem_sp_random_remote_end
+0 memresult
+0 mem_sp_calc_result
+4 memh
+4 memg
+4 memf
+4 meme
+0 mem_sp_calc_result_high
+4 memd
+4 memc
+4 memb
+4 mema
+16 mem_sp_check_result
+16 mem_sp_confirm_remote
+16 mem_sp_prarm_stack
+)
+
+xmemalloc(
+1 mem_sc_only_mode
+1 mem_sp_debug_mode
+1 mem_secure_connections_enable
+1 mem_sp_local_key_invalid
+1 mem_sc_calc
+1 mem_sc_local_key_invalid
+
+
+32 mem_sc_private_key_256
+32 mem_sc_pubkey_local_x_256
+32 mem_sc_pubkey_local_y_256
+
+24 mem_sp_private_key
+0 mem_sp_pubkey_local
+24 mem_sp_pubkey_local_x
+0 mem_sp_pubkey_local_x_end
+24 mem_sp_pubkey_local_y
+
+1 mem_ssp_enable
+1 mem_lmp_io_cap_payload_iocap
+1 mem_lmp_io_cap_payload_oob_auth_data
+1 mem_lmp_io_cap_payload_auth_req
+
+0 mem_sp_state_xmem
+3 mem_sp_iocap_remote
+1 mem_flag_mode_ssp_pin
+1 mem_ssp_mode_flag
+1 mem_authentication_passkey_times
+1 mem_passkey_1bit
+1 mem_flag_pairing_state
+0 mem_sp_state_xmem_end
+)
+/* simple pairing status flag */
+(
+  0x00   SP_FLAG_STANDBY
+  0x01   SP_FLAG_COMMIT
+  0x02   LE_SP_FLAG_COMMIT_256
+
+)
+
+/* simple pairing calc flag */
+(
+  0x00   SP_CALC_STANDBY
+  0x01   SP_CALC_PUBKEY
+  0x02   SP_CALC_DHKEY
+  0x03   SP_CALC_PUBKEY_256
+  0x04   SP_CALC_DHKEY_256
+)
+
+/* simple pairing state */
+(
+  0x00   SP_STAT_NULL
+  0x01   SP_STAT_KEY_RECV
+  0x02   SP_STAT_KEY_GENERATE
+  0x03   SP_STAT_KEY_SEND
+  0x04   SP_STAT_COMMIT_CALC
+  0x05   SP_STAT_COMMIT_SEND
+  0x06   SP_STAT_RANDOM_RECV
+  0x07   SP_STAT_RANDOM_SEND
+  0x08   SP_STAT_CONFIRM_RECV
+  0x09   SP_STAT_CONFIRM_CHECK
+  0x0A   SP_STAT_CONFIRM_CALC
+  0x0B   SP_STAT_CONFIRM_SEND
+  0x0C   SP_STAT_LINK_KEY_CALC
+  0x0F   SP_STAT_DONE
+  0x10   SP_STAT_FEATURE_EXT_SEND
+  0x11   SP_STAT_GKEY_CALC
+  /*simple pairing master only*/
+  0x12   SP_MASTER_STAT_START_SKIP
+  0x13   SP_MASTER_STAT_START_DONE
+  0x14   SP_STAT_COMMITMENT_COMPARE
+  0x15   SP_STATE_END
+)
+
+
+/* simple paring invalid flag */
+(
+  0x00   SP_KEY_INVALID
+  0x01   SP_KEY_VALID
+  0x03   SP_KEY_VALID_256
+
+)
+
+/* encapsulated defination for P-256 key */
+(
+  0x01  ENCAPSULATED_MAJOR_TYPE
+  0x02  ENCAPSULATED_MINOR_TYPE_P256
+  0x40  ENCAPSULATED_LEN_P256
+)
+/* encapsulated defination for P-192 key */
+(
+  0x01  ENCAPSULATED_MAJOR_TYPE_P192
+  0x01  ENCAPSULATED_MINOR_TYPE_P192
+  0x30  ENCAPSULATED_LEN_P192
+)
+
+/* bluetooth 2.1 support flag */
+(
+  0x00  SIMPLE_PAIRING_ENABLE
+  0x01  ENCRYPTION_PAUSE_ENABLE
+  0x02  EXTENDED_INQUIRY_RESPOSE_ENABLE
+  0x03  SNIFF_SUBRATING_ENABLE
+)
+
+/*mem_sp_localsm*/
+(
+  0x00 DEFAULT_STATEMACHINE
+  0x01 LOCAL_STATEMACHINE
+)
+
+(
+ 0x00 DEFALT_PAIRING_AUTH
+ 0x01 PAIRING_AUTH
+)
+
+//mem_secure_connections_enable
+(
+0 SECURE_CONNECTIONS_LE_BIT
+1 SECURE_CONNECTIONS_BR_BIT
+)
+
+(
+1 SSP_MODE_SSP_PIN_FLAG
+2 SSP_MODE_PASSKEY_ENTRY_FLAG
+3 SSP_MODE_JUST_WORK_FLAG
+)
+
+(
+7 FLAG_MODE_SSP_PIN_REVICEVE_COMPARISON_BIT
+6 FLAG_MODE_SSP_PIN_RECIEVE_DHKEY_BIT
+0 FLAG_MODE_SSP_PIN_COMPARISON_RESULT_BIT
+)
+(
+1 FLAG_PAIRING_STATE_PAIRING
+0 FLAG_PAIRING_STATE_NOT_PAIRING
+)
+(//LMP_IO_CAP_REQ & LMP_IO_CAP_RES
+//IO capability
+0x00 IO_CAPABILITY_DISPLAY_ONLY
+0x01 IO_CAPABILITY_DISPLAY_YESNO
+0x02 IO_CAPABILITY_KEYBOARD_ONLY
+0x03 IO_CAPABILITY_NO_INPUT_NO_OUTPUT
+
+//oob data Present
+0x00 OOB_DATA_PRESENT_NOT_PRESENT
+0x01 OOB_DATA_PRESENT_P192_DATA
+0x02 OOB_DATA_PRESENT_P256_DATA
+0x03 OOB_DATA_PRESENT_P192_P256_DATA
+// authentication requirements
+0x00 AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_NO_BONDING
+0x01 AUTH_REQ_MITM_PROTECTION_REQUIRED_NO_BONDING
+0x02 AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_DEDICATED_BONDING
+0x03 AUTH_REQ_MITM_PROTECTION_REQUIRED_DEDICATED_BONDING
+0x04 AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_GENERAL_BONDING
+0x05 AUTH_REQ_MITM_PROTECTION_REQUIRED_GENERAL_BONDING
+)
+
+  
Index: format/ui.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ui.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/ui.format	(working copy)
@@ -0,0 +1,451 @@
+/*****************************************************************************/
+/* RCS HEADER -- DO NOT ERASE                                                */
+/* $Author: Administrator $                                                           */
+/* $Id: bt_ui_format.upper,v 1.1 2009-09-28 04:06:17 Administrator Exp $     */
+/************************************************************************/
+
+
+	/* ========= memory ============== */
+memalloc(
+2 mem_UI_data_txbuff_length
+
+1 mem_ipc_skip_continue_proc
+0 mem_ui_timer_temp  //length 4
+4 mem_ipc_rega_temp
+) 
+
+xmemalloc(
+//UI Work area
+1 mem_ipc_lock_bt
+1 mem_ipc_lock_c51
+8 mem_ipc_fifo_bt2c51
+8 mem_ipc_fifo_c512bt
+
+1 mem_ui_button_timer
+1 mem_ui_button_last_state
+4 mem_ui_timer_last_btclk
+2 mem_discovery_timeout_timer_count
+1 mem_hid_handshake_timer_count
+1 memui_reconnect_mode
+2 mem_ui_state_map
+
+//UI Config area
+1 mem_ui_profile_supported
+1 mem_ui_button_timeout
+1 mem_ui_button_gpio
+2 mem_discovery_timeout
+1 mem_pin_length
+16 mem_pin
+
+)
+/************/
+/* constant */
+/************/
+
+//mem_ui_state_map
+(
+0 UI_STATE_BT_CONNECTED
+1 UI_STATE_BT_SETUP_COMPLETE
+2 UI_STATE_BT_HID_CONN
+3 UI_STATE_BT_HID_HANDSHAKE
+4 UI_STATE_BT_SPP_CONN
+5 UI_STATE_BT_SNIFF
+6 UI_STATE_BT_DISCOVERY
+7 UI_STATE_BT_RECONNECT
+8 UI_STATE_BT_SLAVE_ROLE
+9 UI_STATE_BLE_CONNECTED
+10 UI_STATE_BLE_WRITE_RCV
+11 UI_STATE_BLE_ADV
+12 UI_STATE_BTN_DOWN
+)
+
+(
+1 UI_STATE_SPP_NL_AUTO_DISCOVER
+
+)
+
+/* UI state for Headset (memui_HS_State) */ 
+   (
+    0 UI_HEADSET_DISCONNECT
+    1 UI_HEADSET_IDLE                   /* before the responsor HS receive SABM      */
+    2 UI_HEADSET_W4CONNECT
+    3 UI_HEADSET_RINGING
+    4 UI_HEADSET_CONNECTED
+    5 UI_HEADSET_PARING
+  )
+/* memui_BB_State */
+(
+  0 UI_BB_OFF
+  1 UI_BB_IDLE
+  2 UI_BB_DISCOVERY
+  3 UI_BB_CONNECTED_ACTIVE_NO_SCO
+  4 UI_BB_CONNECTED_ACTIVE_WITH_SCO
+  5 UI_BB_CONNECTED_ACTIVE_WAIT_SNIFF
+  6 UI_BB_CONNECTED_SNIFF
+  7 UI_BB_RECONNECT
+  8 UI_BB_CONNECTED_SNIFF_WITH_SCO
+)
+
+/************/
+/* flags    */
+/************/
+  
+/* memui_Misc_Flags */
+  (
+    5 NO_IDLE_TURN_OFF
+    7 ANSWER_RING_FLAG               /* 1 Answer,0 no*/
+  )
+
+/* mem_UI_SCH_Interface */
+  (
+    0  UI_HS_PAIRING 
+    2  UI_REQ_CLOSE_RFCOMM
+    3  UI_LINK_LOST
+    4  UI_REQ_OPEN_SCO
+    6  UI_REQ_CLOSE_SCO
+  )
+  
+/* memui_PassOverKey */
+  (
+    0  ANSWER_RING_BIT
+    0  AG_SEND_RING_BIT
+    1  VOL_UP_BIT
+    2  VOL_DOWN_BIT
+    3  INI_CALL_BIT
+    4  DAIL_LAST_CALL
+    5  END_CALL_BIT
+    6  NOKIA_VOICE_ACTIVE 
+    7  REJECT_CALL_BIT
+  )
+  
+/* memui_reconnect_mode */
+(
+  0 NO_RECONNECTION
+  1 RECONNECT_HID
+  2 RECONNECT_HF
+  3 RECONNECT_HS
+  4 RECONNECT_HID_HF
+  5 RECONNECT_HID_HS
+)
+/* memui_Commands */
+(
+0 BT_CMD_STANDBY
+1 BT_CMD_START_DISCOVERY
+2 BT_CMD_STOP_DISCOVERY
+3 BT_CMD_RECONNECT
+4 BT_CMD_DISCONNECT
+5 BT_CMD_ENTER_SNIFF
+6 BT_CMD_EXIT_SNIFF
+7 BT_CMD_ENTER_SNIFF_SUBRATING
+8 BT_CMD_EXIT_SNIFF_SUBRATING
+9 BT_CMD_SNIFF_TEST
+10 BT_CMD_SET_PIN_CODE
+11 BT_CMD_START_INQUIRY
+12 BT_CMD_STOP_INQUIRY
+13 BT_CMD_START_ADV
+14 BT_CMD_STOP_ADV
+15 BT_CMD_START_DIRECT_ADV
+16 BT_CMD_STOP_DIRECT_ADV
+17 BT_CMD_LE_DISCONNECT
+18 BT_CMD_LE_UPDATE_CONN
+19 BT_CMD_LED_OFF
+20 BT_CMD_LED_ON
+21 BT_CMD_LED_BLINK
+22 BT_CMD_LE_START_CONN
+23 BT_CMD_LE_START_SCAN
+24 BT_CMD_LE_STOP_SCAN
+25 BT_CMD_ENTER_HIBERNATE
+27 BT_CMD_LE_SMP_SECURITY_REQUEST
+29 BT_CMD_ROLE_SWITCH
+30 BT_CMD_BB_RECONN_CANCEL
+31 BT_CMD_STORE_RECONN_INFO_LE
+32 BT_CMD_STORE_RECONN_INFO_BT
+33 BT_CMD_DHKEY_NOT_ACCEPT
+34 BT_CMD_START_24G
+35 BT_CMD_STOP_24G
+36 BT_CMD_PAIR_24G
+37 BT_CMD_STORE_RECONN_INFO
+)
+
+(
+0x00 BT_EVT_NULL
+0x01 BT_EVT_BB_CONNECTED
+0x02 BT_EVT_BB_DISCONNECTED
+0x03 BT_EVT_RECONN_STARTED
+0x04 BT_EVT_RECONN_FAILED
+0x05 BT_EVT_SETUP_COMPLETE
+0x06 BT_EVT_HID_CONNECTED
+0x07 BT_EVT_HID_DISCONNECTED
+0x08 BT_EVT_SPP_CONNECTED
+0x09 BT_EVT_SPP_DISCONNECTED
+0x0A BT_EVT_PINCODE_REQ
+0x0B BT_EVT_ENTER_SNIFF
+0x0C BT_EVT_EXIT_SNIFF
+0x0D BT_EVT_ENTER_SNIFF_SUB
+0x0E BT_EVT_EXIT_SNIFF_SUB
+0x0F BT_EVT_DISCOVERY_STOPED
+0x10 BT_EVT_BUTTON_LONG_PRESSED
+0x12 BT_EVT_HID_HANDSHAKE
+0X13 BT_EVT_RECONN_PAGE_TIMEOUT
+0x14 BT_EVT_LE_CONNECTED
+0X15 BT_EVT_LE_DISCONNECTED
+0x16 BT_EVT_ML2CAP_CONN_REFUSED
+0x17 BT_EVT_BUTTON_ENTER_HIBERNATE
+0x18 BT_EVT_LINKKEY_GENERATE
+0x19 BT_EVT_SWITCH_NOT_ACCEPT
+0x20 BT_EVT_SWITCH_ACCEPT
+0x21 BT_EVT_SNIFF_NOT_ACCEPT
+0x22 BT_EVT_SNIFF_ACCEPT
+0x23 BT_EVT_UNSNIFF_ACCEPT
+0x24 BT_EVT_UNSNIFF_NOT_ACCEPT
+0x25 BT_EVT_BUTTON_ADJUST_DPI
+0x26 BT_EVT_SEND_UNSNIFF_ACCEPT
+0x27 BT_EVT_VIRTUAL_CABLE_UNPLUG
+0x28 BT_EVT_LE_WRITE_REQUEST
+0x29 BT_EVT_LE_ENC_INFO
+0x2a BT_EVT_SWITCH_FAIL_MASTER
+0x2b BT_EVT_SWITCH_SUCCESS_MASTER
+0x2c BT_EVT_BUTTON_DOWN
+0x2d BT_EVT_BUTTON_UP
+0x2e BT_EVT_REMOTE_UNSNIFF
+0x30 BT_EVT_LE_PAIRING_FAIL
+0x31 BT_EVT_LE_PAIRING_SUCCESS
+0x32 BT_EVT_LE_START_ENC
+0X33 BT_EVT_LE_PAUSE_ENC
+0X34 BT_EVT_LE_TK_GENERATE
+0x35 BT_EVT_BT_GKEY_GENERATE
+0x36 BT_EVT_BT_GET_PASSKEY
+0x37 BT_EVT_BT_PAIRING_FAIL
+0x38 BT_EVT_BT_PAIRING_SUCCESS
+0x39 BT_EVT_24G_PAIRING_COMPLETE
+0x3a BT_EVT_24G_ATTEMPT_FAIL
+0x3b BT_EVT_LE_GKEY_GENERATE
+0x3c BT_EVT_24G_ATTEMPT_SUCCESS
+0x3d BT_EVT_STORE_NVRAM
+0x3e BT_EVT_LE_PAIRING_COMPLETE
+0x3F BT_EVT_LE_RECONNECT_COMPLETE
+0x40 BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP
+0x41 BT_EVT_LE_LTK_LOST
+0x42 BT_EVT_LE_UPDATE_PHY
+0x43 BT_EVT_LE_GET_PASSKEY
+0x44 BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED
+)
+//switch
+(
+0 OFF
+1 ON
+)
+/* memui_mem_lock */
+(
+    0 MEM_UNLOCK
+    1 MEM_LOCK
+)
+/* memui_flag0 */
+(
+    0 UI_USER_DATA_FLAG
+    1 UI_WII_WAITING_SLEEP
+    2 UI_KEYBOARD_SNIFF_SKIP
+)
+/* mem_master_type */
+(
+    0 MTYPE_HID_DEFAULT
+    1 MTYPE_HID_SSP
+    2 MTYPE_SPP
+)
+
+	(	
+	0x01 RECIEVE_SDP_CONN_RES
+	0x02 RECIEVE_SDP_CFG_REQ
+	0x03 RECIEVE_SDP_CFG_RES
+	0x04 RECIEVE_RFCOMM_CONN_RES
+	0x05 RECIEVE_RFCOMM_CFG_REQ
+	0x06 RECIEVE_RFCOMM_CFG_RES
+	0x07 RECIEVE_HID_CTRL_CONN_RES
+	0x08 RECIEVE_HID_CTRL_CFG_REQ
+	0x09 RECIEVE_HID_CTRL_CFG_RES
+	0x0A RECIEVE_HID_INT_CONN_RES
+	0x0B RECIEVE_HID_INT_CFG_REQ
+	0x0C RECIEVE_HID_INT_CFG_RES
+	0x0D RECIEVE_AVCTP_CONN_RES
+	0x0E RECIEVE_AVCTP_CFG_REQ
+	0x0F RECIEVE_AVCTP_CFG_RES
+	0x10 RECIEVE_AVDTP_SIGNAL_CONN_RES
+	0x11 RECIEVE_AVDTP_SIGNAL_CFG_REQ
+	0x12 RECIEVE_AVDTP_SIGNAL_CFG_RES
+	0x13 RECIEVE_AVDTP_MEDIA_CONN_RES
+	0x14 RECIEVE_AVDTP_MEDIA_CFG_REQ
+	0x15 RECIEVE_AVDTP_MEDIA_CFG_RES
+	0x16 RECIEVE_SS_REASULT_HS                  
+	0x17 RECIEVE_SS_REASULT_HF                  
+	0x18 RECIEVE_SS_REASULT_AVTARG		          
+	0x19 RECIEVE_SS_REASULT_OBEX		            
+	0x1A RECIEVE_DLCI0_UA
+	0x1B RECIEVE_HS_PARAM_NEG_RES
+	0x1C RECIEVE_HS_UA
+	0x1D RECIEVE_HS_MODEM_STATUS_RES
+	0x1E RECIEVE_HS_MODEm_STATUS_CMD
+	0x1F RECIEVE_HF_PARAM_NEG_RES   
+	0x20 RECIEVE_HF_UA              
+	0x21 RECIEVE_HF_MODEM_STATUS_RES
+	0x22 RECIEVE_HF_MODEm_STATUS_CMD 
+	0x23 RECIEVE_OBEX_PARAM_NEG_RES     
+	0x24 RECIEVE_OBEX_UA              
+	0x25 RECIEVE_OBEX_MODEM_STATUS_RES
+	0x26 RECIEVE_OBEX_MODEm_STATUS_CMD    
+	0x27 RECIEVE_SPP_PARAM_NEG_RES   
+	0x28 RECIEVE_SPP_UA              
+	0x29 RECIEVE_SPP_MODEM_STATUS_RES
+	0x2A RECIEVE_SPP_MODEm_STATUS_CMD
+	0x2b RECIEVE_SDP_DISCONN_RES
+	)
+
+
+
+	(
+	0 UPPERSM_RP_IDLE
+	1 UPPERSM_RP_SDP_CONN
+	2 UPPERSM_RP_SDP_CONN_WAIT
+	3 UPPERSM_RP_SDP_CFG
+	4 UPPERSM_RP_SDP_CFG_WAIT
+	5 UPPERSM_RP_SS_AVTARG
+	6 UPPERSM_RP_SS_AVTARG_WAIT
+	7 UPPERSM_RP_SS_OBEX
+	8 UPPERSM_RP_SS_OBEX_WAIT
+	9 UPPERSM_RP_SDP_DISCONN
+	10 UPPERSM_RP_SDP_DISCONN_WAIT
+	11 UPPERSM_RP_AVDTP_CONN_WAIT
+	12 UPPERSM_RP_AVCTP_CONN
+	13 UPPERSM_RP_AVCTP_CONN_WAIT
+	14 UPPERSM_RP_AVCTP_CFG
+	15 UPPERSM_RP_AVCTP_CFG_WAIT
+	16 UPPERSM_RP_OBEX_CMD_PN
+	17 UPPERSM_RP_OBEX_CMD_PN_WAIT
+	18 UPPERSM_RP_OBEX_SABM
+	19 UPPERSM_RP_OBEX_SABM_WAIT
+	20 UPPERSM_RP_OBEX_CMD_MS
+	21 UPPERSM_RP_OBEX_CMD_MS_WAIT
+	)
+	(		/*mem_upper_sm_reconn*/
+	0 UPPERSM_RECONN_IDLE		
+	1 UPPERSM_RECONN_SDP_CONN		
+	2 UPPERSM_RECONN_SDP_CONN_WAIT		
+	3 UPPERSM_RECONN_SDP_CFG		
+	4 UPPERSM_RECONN_SDP_CFG_WAIT		
+	5 UPPERSM_RECONN_SS_HS
+	6 UPPERSM_RECONN_SS_HS_WAIT
+	7 UPPERSM_RECONN_SS_HF
+	8 UPPERSM_RECONN_SS_HF_WAIT
+	9 UPPERSM_RECONN_SS_AVTARG		
+	10 UPPERSM_RECONN_SS_AVTARG_WAIT		    
+	11 UPPERSM_RECONN_SS_OBEX		            
+	12 UPPERSM_RECONN_SS_OBEX_WAIT		      
+	13 UPPERSM_RECONN_SDP_DISCONN		        
+	14 UPPERSM_RECONN_SDP_DISCONN_WAIT      
+	15 UPPERSM_RECONN_HID_CTRL_CONN		      
+	16 UPPERSM_RECONN_HID_CTRL_CONN_WAIT		
+	17 UPPERSM_RECONN_HID_CTRL_CFG		      
+	18 UPPERSM_RECONN_HID_CTRL_CFG_WAIT     
+	19 UPPERSM_RECONN_HID_INT_CONN		      
+	20 UPPERSM_RECONN_HID_INT_CONN_WAIT		  
+	21 UPPERSM_RECONN_HID_INT_CFG		        
+	22 UPPERSM_RECONN_HID_INT_CFG_WAIT      
+	23 UPPERSM_RECONN_RFCOMM_CONN		        
+	24 UPPERSM_RECONN_RFCOMM_CONN_WAIT		  
+	25 UPPERSM_RECONN_RFCOMM_CFG		        
+	26 UPPERSM_RECONN_RFCOMM_CFG_WAIT       
+	27 UPPERSM_RECONN_RFCOMM_SABM		        
+	28 UPPERSM_RECONN_RFCOMM_SABM_WAIT		  
+	29 UPPERSM_RECONN_SPP_CMD_PN		        
+	30 UPPERSM_RECONN_SPP_CMD_PN_WAIT		    
+	31 UPPERSM_RECONN_SPP_SABM		          
+	32 UPPERSM_RECONN_SPP_SABM_WAIT		      
+	33 UPPERSM_RECONN_SPP_CMD_MS		        
+	34 UPPERSM_RECONN_SPP_CMD_MS_WAIT       
+	35 UPPERSM_RECONN_HF_CMD_PN		          
+	36 UPPERSM_RECONN_HF_CMD_PN_WAIT		    
+	37 UPPERSM_RECONN_HF_SABM		            
+	38 UPPERSM_RECONN_HF_SABM_WAIT		      
+	39 UPPERSM_RECONN_HF_CMD_MS		          
+	40 UPPERSM_RECONN_HF_CMD_MS_WAIT        
+	41 UPPERSM_RECONN_AVDTPs_CONN		        
+	42 UPPERSM_RECONN_AVDTPs_CONN_WAIT		  
+	43 UPPERSM_RECONN_AVDTPs_CFG		        
+	44 UPPERSM_RECONN_AVDTPs_CFG_WAIT       
+	45 UPPERSM_RECONN_AVDTPm_CONN		        
+	46 UPPERSM_RECONN_AVDTPm_CONN_WAIT		  
+	47 UPPERSM_RECONN_AVDTPm_CFG		        
+	48 UPPERSM_RECONN_AVDTPm_CFG_WAIT       
+	49 UPPERSM_RECONN_AVCTP_CONN		        
+	50 UPPERSM_RECONN_AVCTP_CONN_WAIT		    
+	51 UPPERSM_RECONN_AVCTP_CFG		          
+	52 UPPERSM_RECONN_AVCTP_CFG_WAIT		    
+	53 UPPERSM_RECONN_OBEX_CMD_PN		        
+	54 UPPERSM_RECONN_OBEX_CMD_PN_WAIT		  
+	55 UPPERSM_RECONN_OBEX_SABM		          
+	56 UPPERSM_RECONN_OBEX_SABM_WAIT		    
+	57 UPPERSM_RECONN_OBEX_CMD_MS		        
+	58 UPPERSM_RECONN_OBEX_CMD_MS_WAIT     
+	59 UPPERSM_RECONN_SS_SPP
+	60 UPPERSM_RECONN_SS_SPP_WAIT
+	)
+	(/*mem_UI_profile_supported*/
+	0 support_HID
+	1 support_A2DP
+	2 support_AVRCP
+	3 support_HF
+	4 support_HS
+	5 support_PBAP
+	6 support_SPP
+	)
+	/*mem_upper_sm_ss*/
+	(
+	0 UPPERSM_SS_HS
+	1 UPPERSM_SS_HF
+	2 UPPERSM_SS_AVTARG
+	3 UPPERSM_SS_OBEX
+	)
+
+	(
+	160 UI_HUNDRED_MILLISECOND_TIME
+	0XFF UI_BUTTON_GPIO_DISABLE
+	)
+	(
+	0x01 UI_BB_INCONNECT
+	0x10 UI_BB_DISCONNECT
+	)
+(
+0x00 UI_BUTTON_STATE_DOWN
+0x01 UI_BUTTON_STATE_UP
+)
+
+//mem_ipc_skip_continue_proc
+(
+	0 IPC_CONTINUE_PROCESS
+	1 IPC_SKIP_CONTINUE_PROCESS
+)
+
+
+(//led style struct 
+0 		LED_OFFSET_LED_TYPE
+1 		LED_OFFSET_BLINK_COUNT
+2		LED_OFFSET_LED_GPIO
+3		LED_OFFSET_ON_TIME
+5		LED_OFFSET_OFF_TIME
+7 		LED_OFFSET_CB_LEDON
+9		LED_OFFSET_CB_LEDOFF
+11		LED_OFFSET_LENGTH
+)
+
+(//LED state
+0 UI_LED_STATE_BLINK_STOP
+1 UI_LED_STATE_BLINK_START
+2 UI_LED_STATE_LIGHTING
+3 UI_LED_STATE_DARKING
+4 UI_LED_STATE_BLINK_LIGHTING
+5 UI_LED_STATE_BLINK_DARKING
+
+0xFF LED_INFINITE_FLASH_NUM
+
+)
+
+
Index: format/usb.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/usb.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/usb.format	(working copy)
@@ -0,0 +1,254 @@
+memalloc usb(
+1 mem_usb_status
+1 mem_usb_fifo_empty
+2 mem_usb_read_len
+65 mem_usb_txbuf
+10 mem_usb_txbuf1
+10 mem_usb_txbuf2
+64 mem_usb_rxbuf
+1 mem_usb_rxbuf_end
+2 mem_bufptr
+1 mem_remain
+2 mem_hidreportdesc_kb
+2 mem_hidreportdesc_m
+19 mem_devicedesc
+60 mem_confdesc
+5 mem_string0
+30 mem_string1
+30 mem_string2
+30 mem_string3
+2 mem_cb_usb_config
+
+1 mem_usb_tx_interval
+9 mem_usb_vid_pid
+2 mem_usb_zero_packet
+2 mem_usb_ones_packet
+2 mem_usb_two_packet
+1 mem_usb0_state
+1 mem_usb_offline_check_gpio
+
+0 mem_usb_clear_mem_start
+0 mem_usb_setup
+1 mem_usb_setup_bmRequestType
+1 mem_usb_setup_bRequest
+1 mem_usb_setup_bValue
+1 mem_usb_setup_bValueH
+2 mem_usb_setup_wIndex
+1 mem_usb_setup_bLength
+1 mem_usb_setup_bLengthH
+64 mem_usb0_set_report_data
+64 mem_usb0_get_report_data
+2 mem_usb_setup_bValue_temp
+1 mem_usb0_get_set_report
+1 mem_usb0_data_ready_report
+1 mem_usb_tx_win_enable
+1 mem_usb_tx_mac_enable
+1 mem_usb_idle_flag
+1 mem_usb_idle_rate
+1 mem_usb_get_protocol_flag
+1 mem_usb_set_protocol_status
+1 mem_usb_set_protocol_value
+1 mem_usb_state
+1 mem_usb_remote_wakeup
+1 mem_usb_clear_remote_wakeup
+1 mem_sdsystem_wakeup_flag
+1 mem_usb_ep0_stall_status
+1 mem_usb_ep1_stall_status
+1 mem_usb_ep2_stall_status
+1 mem_usb_ep3_stall_status
+2 mem_dsc_info_data_pointer
+1 mem_dsc_info_len
+1 mem_usb_ep1_data
+1 mem_usb_ep2_data
+1 mem_usb_tx_enable
+1 mem_usb_device_enumeration_endflag
+1 mem_usb_wakestate_onetime_flag
+1 mem_usb_mac_wakeup_trig
+1 mem_usb_set_high_addr_flag
+1 mem_usb_clear_halt
+16 mem_usb_mouse_data
+16 mem_usb_kb_data
+16 mem_usb_kb_multikey
+16 mem_usb_kb_system
+2 mem_usb_test_cnt
+10 mem_usb_test_kb
+0 mem_usb_clear_mem_end
+
+)
+
+//class type
+(
+0x00 STANDARD_REQ
+0x01 CLASS_REQ
+0x02 MANUFACTURER_REQ
+)
+//Standard Request Codes
+(
+0x00 GET_STATUS                // Code for Get Status
+0x01 CLEAR_FEATURE             // Code for Clear Feature
+0x03 SET_FEATURE              // Code for Set Feature
+0x05 SET_ADDRESS              // Code for Set Address
+0x06 GET_DESCRIPTOR           // Code for Get Descriptor
+0x07 SET_DESCRIPTOR           // Code for Set Descriptor(not used)
+0x08 GET_CONFIGURATION        // Code for Get Configuration
+0x09 SET_CONFIGURATION        // Code for Set Configuration
+0x0A GET_INTERFACE            // Code for Get Interface
+0x0B SET_INTERFACE            // Code for Set Interface
+0x0C SYNCH_FRAME              // Code for Synch Frame(not used)
+)
+//Standard Descriptor Types
+(
+0x01 DSC_DEVICE               // Device Descriptor
+0x02 DSC_CONFIG               // Configuration Descriptor
+0x03 DSC_STRING               // String Descriptor
+0x04 DSC_INTERFACE            // Interface Descriptor
+0x05 DSC_ENDPOINT             // Endpoint Descriptor
+)
+//HID Descriptor Types
+(
+0x21 DSC_HID			      // HID Class Descriptor
+0x22 DSC_HID_REPORT			  // HID Report Descriptor
+)
+//Define bmRequestType bitmaps
+(
+0x80 IN_DEVICE                // Request made to device,
+                              // direction is IN
+0x00 OUT_DEVICE               // Request made to device,
+                              // direction is OUT
+0x81 IN_INTERFACE             // Request made to interface,
+                              // direction is IN
+0x01 OUT_INTERFACE            // Request made to interface,
+                              // direction is OUT
+0x82 IN_ENDPOINT              // Request made to endpoint,
+                              // direction is IN
+0x02 OUT_ENDPOINT             // Request made to endpoint,
+)
+//HID Request Codes
+(
+0x01 GET_REPORT 		       // Code for Get Report
+0x02 GET_IDLE				   // Code for Get Idle
+0x03 GET_PROTOCOL			   // Code for Get Protocol
+0x09 SET_REPORT				   // Code for Set Report
+0x0A SET_IDLE				   // Code for Set Idle
+0x0B SET_PROTOCOL			   // Code for Set Protocol
+0xF2 HID_REPORT_ID           
+64 EP0_PACKET_SIZE         
+6 EP1_PACKET_SIZE         
+16 HID_REPORT_SIZE         
+0x001B HID_REPORT_DESCRIPTOR_SIZE    
+)
+//math cordic
+(
+0 TYPE_SIN		
+1 TYPE_ATAN	
+2 TYPE_MULT	
+3 TYPE_DIV		
+4 TYPE_ASIN	
+5 TYPE_SQRT	
+6 TYPE_COS		
+7 TYPE_TAN		 
+)
+   
+(
+0 DFIFO0_IN_EMPTY
+1 DFIFO1_IN_EMPTY
+2 DFIFO2_IN_EMPTY
+3 DFIFO3_IN_EMPTY
+4 DFIFO0_OUT_EMPTY
+5 DFIFO1_OUT_EMPTY
+6 DFIFO2_OUT_EMPTY
+7 DFIFO3_OUT_EMPTY
+)
+
+(
+)
+
+(
+0 USB_STATUS_SETUP
+1 USB_STATUS_SUSPEND
+2 USB_STATUS_NAK
+3 USB_STATUS_RESET
+4 USB_STATUS_ACK
+5 USB_STATUS_RXREADY
+6 USB_STATUS_TXEMPTY
+6 USB_STATUS_RXEMPTY
+)
+
+(
+1 USB_GOT_REPORT_REQ
+2 USB_CONNECTED
+3 USB_SLEEP
+4 USB_RESUME
+5 USB_SETIDLE_1
+)
+
+(
+0x10 USB_EP1_KB
+0x20 USB_EP2_MS
+0x21 USB_EP2_MULTIKEY
+0x22 USB_EP2_SYSTEMKEY
+0x01 MAC_BOOT_MODE
+0x02 R_KEY
+0x03 LR_KEY
+)
+
+
+(
+0x01ba PC_GET_REPORT
+0x02ba PC_SET_REPORT
+0x0200 PC_SET_REPORT_bValue
+0x0000 PC_SET_REPORT_wIndex
+0x0001 PC_SET_REPORT_bLength
+0xba PC_REPORT_ID
+
+0x01 PC_GET_DATA
+0x00 PC_GET_NONDATA
+)
+
+(
+//--------------------------------------------------
+// Define device states
+0x00 DEV_ATTACHED	// Device is in Attached State
+0x01 DEV_POWERED	// Device is in Powered State
+0x02 DEV_DEFAULT		// Device is in Default State
+0x03 DEV_ADDRESS	// Device is in Addressed State
+0x04 DEV_CONFIGURED	// Device is in Configured State
+0x05 DEV_SUSPENDED	// Device is in Suspended State
+)
+
+(
+// Define wIndex bitmaps
+0x81 IN_EP1                    // Index values used by Set and Clear
+0x01 OUT_EP1                   // commands for Endpoint_Halt
+0x82 IN_EP2              
+0x02 OUT_EP2             
+0x83 IN_EP3              
+0x03 OUT_EP3             
+)
+
+(
+0 EP0_STALL
+1 EP1_IN_STALL
+2 EP1_OUT_STALL
+3 EP2_IN_STALL
+4 EP2_OUT_STALL
+5 EP3_IN_STALL
+6 EP3_OUT_STALL
+)
+
+(
+// Define wValue bitmaps for Standard Feature Selectors
+0x00 ENDPOINT_HALT             // Endpoint_Halt feature selector
+0x01 DEVICE_REMOTE_WAKEUP      // Remote wakeup feature(not used)
+0x00 BOOT_PROTOCOL
+0x01 REPORT_PROTOCOL
+0x01 USB_MAX_NUM_CFG
+)
+
+(
+0 TIMER_NAK
+640 TIMER_NAK_DELAY
+15 TIMER_WAKEUP
+5000 TIMER_WAKEUP_DELAY
+)
+
Index: format/utility.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/utility.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/utility.format	(working copy)
@@ -0,0 +1,191 @@
+
+memalloc(
+
+/*
+    temp parameter
+*/
+2 mem_hold_contr
+2 mem_hold_contw
+1 mem_fifo_temp
+
+8 mem_pdatatemp
+8 mem_temp //8 bytes
+4 mem_timeup // 4 bytes
+4 mem_rega //4 bytes
+4 mem_regb //4 bytes
+3 mem_regc //3 bytes
+2 mem_contr //2 bytes
+2 mem_contw //2 bytes
+2 mem_contus
+2 mem_contue
+2 mem_contu
+2 mem_queue
+2 mem_loopcnt
+
+
+1 mem_wakup_from_power_flag
+4 mem_saved_gpio_in
+
+0 mem_module_rx_error_data_buffer
+0 mem_shutter_random_mac_data_temp
+0 mem_shutter_config_data_temp
+0 mem_le_adv_channel_map_temp
+0 mem_le_data_len_temp	//1byte
+0 mem_tx_fifo_map_temp
+0 mem_rpn_dlci		//1byte
+0 mem_event_cmd_response_content	//2byte
+0 mem_le_prand		//16byte
+0 mem_AES_CMAC_k	 //16 bytes
+0 mem_regext_index 	//1 bytes
+1 mem_temp_block0
+0 mem_le_data_temp	//15bytes
+15 mem_temp_block1
+0 mem_le_aes_128	//16byte
+0 mem_regext   //64 bytes
+0 mem_AES_CMAC_k1  //16 bytes
+16 mem_temp_block2
+0 mem_AES_CMAC_k2  //16 bytes
+16 mem_temp_block3
+0 mem_AES_CMAC_temp  // 16 bytes
+16 mem_temp_block4
+0 mem_AES_CMAC_M_last // 16 bytes
+1 mem_module_uart_cmd
+1 mem_module_uart_opcode
+1 mem_module_uart_len
+1 mem_module_temp_nl_discard_packet
+12 mem_temp_block5
+0 mem_le_mackey //16 bytes
+0 mem_app_receive_temp
+2 mem_key_value_temp
+2 mem_key_value
+1 mem_key_value_temp1
+1 mem_key_value_temp2
+1 mem_key_value_temp3
+1 mem_key_value_temp4
+1 mem_key_value_temp5
+1 mem_key_value_temp6
+6 mem_temp_block6
+
+3 mem_scale_ratio
+3 mem_xcnt
+2 mem_scale_ratio_temp
+)
+
+
+(
+/*mem_util_timer_flag0_7*/
+    0   UTIL_TIMER_0_USED
+    1   UTIL_TIMER_1_USED
+    2   UTIL_TIMER_2_USED
+    3   UTIL_TIMER_3_USED
+    4   UTIL_TIMER_4_USED
+    5   UTIL_TIMER_5_USED
+    6   UTIL_TIMER_6_USED
+    7   UTIL_TIMER_7_USED
+/*mem_util_timer_flag8_15*/
+    0   UTIL_TIMER_8_USED
+    1   UTIL_TIMER_9_USED
+    2   UTIL_TIMER_10_USED
+    3   UTIL_TIMER_11_USED
+    4   UTIL_TIMER_12_USED
+    5   UTIL_TIMER_13_USED
+    6   UTIL_TIMER_14_USED
+    7   UTIL_TIMER_15_USED
+)
+
+/* 24g */
+(
+6 dlen_24g
+14 plen_24g
+90 blen_tx_24g
+106 blen_rx_24g
+42 blen_txack_24g
+58 blen_rxack_24g
+0xaaf08e acc_24g
+0x15c4 crc_data_3byte
+0xbb81 crc_data_6byte
+0x4160 crc_ack
+)
+
+//util fifo param
+(
+
+8 UTIL_FIFO_LEN
+-1 UTIL_FIFO_OFFSET
+)
+
+
+(
+	0xAA DEBUGLOG_HEAD
+	0x00 DEBUGLOG_TYPE
+	0x04 DEBUGLOG_LEN
+	0xBB DEBUGLOG_TAIL
+)
+
+(
+	0x1000 DEBUGLOG_DTYPE_CALLBACK
+	0x1001 DEBUGLOG_DTYPE_EVENT
+	0x1002 DEBUGLOG_DTYPE_CMD
+	0x1003 DEBUGLOG_DTYPE_STATUS
+	0x1004 DEBUGLOG_DTYPE_MISC
+	0x1005 DEBUGLOG_DTYPE_PARSE_LMP
+	0x1006 DEBUGLOG_DTYPE_SEND_LMP
+	0x1007 DEBUGLOG_DTYPE_CONN_SM
+	0x1008 DEBUGLOG_DTYPE_UPPER_SM
+)
+
+//DEBUGLOG_DTYPE_CALLBACK
+(
+	0x0000 CALLBACK_24G_DATA
+	0x0001 CALLBACK_LE_PROCESS
+	0x0002 CALLBACK_BT_PROCESS
+	0x0003 CALLBACK_BEFORE_LPM
+	0x0004 CALLBACK_BB_EVENT_PROCESS
+	0x0005 CALLBACK_IDLE_PROCESS
+	0x0006 CALLBACK_BEFORE_HIBERNATE
+	0x0007 CALLBACK_ATT_WRITE
+	0x0008 CALLBACK_EVENT_TIMER
+	0x0009 CALLBACK_SLAVE_LOOP
+	0x000a CALLBACK_SDP_PROCESS
+)
+
+//DEBUGLOG_DTYPE_EVENT
+//(
+
+//)
+
+//DEBUGLOG_DTYPE_CMD
+//(
+
+//)
+
+//DEBUGLOG_DTYPE_STATUS
+(
+	0x0000 STATUS_CODE_WAKE
+	0x0001 STATUS_LPM_WAKE
+	0x0002 STATUS_INQUIRY_SCAN
+	0x0003 STATUS_SEND_EIR
+	0x0004 STATUS_PAGE_SCAN
+	0x0005 STATUS_PAGE_SCAN_RECV_ID_PACK
+	0x0006 STATUS_PAGE_SCAN_WAIT_FHS
+	0x0007 STATUS_PAGE_SCAN_CONNECTED
+	0x0008 STATUS_START_DISCOVER
+	0x0009 STATUS_STOP_DISCOVER
+)
+//DEBUG_DTYPE_MISC
+(
+	0x0000 MISC_LE_RETRANSMIT
+	0x0001 MISC_LOST_MOUSEDATA
+	0x0002 MISC_TXPOWER_0
+	0x0003 MISC_TXPOWER_1
+	0x0004 MISC_TXPOWER_2
+	0x0005 MISC_BT_RETRANSMIT
+	0x0006 MISC_BT_UPPER_SM_ERR
+	0x0007 MISC_BT_CONN_SM_ERR
+)
+
+//mem_creat_mouse_flag
+(
+	0x55 CREAT_MOUSE_DATA_OK
+	0x00 CREAT_MOUSE_DATA_FAIL
+
Index: format/var.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/var.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/format/var.format	(working copy)
@@ -0,0 +1,442 @@
+/************************************************************************/
+/* RCS HEADER -- DO NOT ERASE                                           */
+/* $Author: Administrator $                                                     */
+/* $Id: bt_var.osi,v 1.1 2009-09-28 04:06:18 Administrator Exp $   */
+/* Orisil Technology                                                 */
+/************************************************************************/
+
+
+/* packet types */
+(
+  0x02 FHS_PACKET 
+  0x03 DM1_PACKET 
+  0x03 DM1_LMP_PACKET 
+  0x04 DH1_PACKET 
+  0x05 HV1_PACKET 
+  0x06 HV2_PACKET 
+  0x07 HV3_PACKET 
+  0x08 DV_PACKET 
+  0x09 AUX1_PACKET 
+  0x0a DM3_PACKET 
+  0x0b DH3_PACKET 
+  0x0e DM5_PACKET 
+  0x0f DH5_PACKET 
+)
+
+
+/* mem_lmp_respond */
+(
+  0 RESPOND_TO_ALL
+  1 PASS_EVERYTHING
+  2 PASS_ONLY_UNKNOWNS
+  3 RESPOND_TO_LMPS
+)
+/* SCO algorithm defines */
+(
+  0 ULAW
+  1 ALAW
+  2 CVSD
+)
+/* encryption modes */
+(
+  0 NO_ENCRYPTION
+  1 PT_PT_ENCRYPTION
+  2 PT_BROADCAST_ENCRYPTION
+)
+
+/* bits used in mem_lmp_state1 variable */
+(
+  0 LMP_STATE_DETACH
+  1 LMP_STATE_HOLD
+  2 LMP_STATE_SNIFF
+  3 LMP_STATE_PARK
+  4 LMP_STATE_WAIT_SCO_CREATE
+  5 LMP_STATE_WAIT_SCO_KILL
+  6 LMP_STATE_SCO3
+  7 LMP_STATE_WAIT_SCO_START
+)
+/* mem_lmp_state2 */
+(
+  0 LMP_WAIT_FOR_SNIFF_ACCEPT
+  1 LMP_WAIT_FOR_PARK_ACCEPT
+  2 LMP_SEND_UNPARK_ACCEPTED
+  3 LMP_SEND_ENCRYPTION_START
+  4 LMP_SEND_ENCRYPTION_STOP
+  5 MESSAGE_QUEUE
+  7 LMP_STATE_WAIT_BEACON
+)
+/* mem_lmp_state3 */
+(
+ 0 INQUIRY_STATE_CHECK
+ 1 HOST_DELAY_MESSAGE
+ 2 VARIABLE_DELAY
+ 3 TEST_MODE_START_LOOPBACK
+ 4 TEST_MODE_START_PATTERN
+ 5 PARSE_TEST_CONTROL_MESSAGE
+ 6 H_AUTH_SEND_COMB_KEY
+)
+/* mem_rx_status */
+(
+  0 FROM_MASTER
+)
+/* mem_ms_flag */
+(
+  0 MS_RECEIVE_SWITCH_REQ
+  1 MS_SEND_SETUP_COMPLATE
+)
+/* mem_conn_sm */
+(
+  0 CONN_SM_STANDBY
+  1 CONN_SM_WAIT_PAGE
+  2 CONN_SM_SEND_FEATURES
+  3 CONN_SM_WAIT_FEATURES_RES
+  4 CONN_SM_SEND_CONN_REQ
+  5 CONN_SM_WAIT_CONN_ACCEPT
+  6 CONN_SM_AUTH_PAIR
+  7 CONN_SM_AUTH_PAIR_WAIT
+  8 CONN_SM_WAIT_MUTAL_AUTH
+  9 CONN_SM_ENCRYPT
+  0xa CONN_SM_ENCRYPT_WAIT
+  0xb CONN_SM_ENCRYPT_WAIT_CLEAR
+  0xc CONN_SM_SEND_SETUP_COMPLETE
+  0xd CONN_SM_WAIT_SETUP_COMPLETE 
+  0xe CONN_SM_SEND_SWITCH
+  0xf CONN_SM_DETACH_DELAY
+  0x10 CONN_SM_WAIT_SWITCH_AFTER_HOST_CONNECTION
+  0x11 CONN_SM_DELAY_RESTART_CONNECTION
+  0x12 CONN_SM_SEND_VERSION
+  0X13 CONN_SM_WAIT_VERSION
+  0x14 CONN_SM_SEND_FEATURES_EXT
+  0x15 CONN_SM_WAIT_FEATURES_EXT
+  0x16 CONN_SM_PAIRING
+  0x17 CONN_SM_AUTH
+  0x18 CONN_SM_PAIRING_WAIT
+  0x19 CONN_SM_AUTH_WAIT
+  0x1a CONN_SM_DONE
+  0x1b CONN_SM_WAIT_DONE
+)
+
+/* btStateConn1 */
+(
+  0 CONN_STANDBY
+  1 CONN_MASTER_SEND_CONN_REQ
+  2 CONN_MASTER_WAIT_FOR_CONN_ACCEPTED
+  3 CONN_MASTER_AUTH
+  4 CONN_MASTER_WAIT_FOR_FEATURES
+  5 CONN_MASTER_WAIT_FOR_SETUP_COMPLETE
+  6 CONN_MASTER_WAIT_FOR_MAX_SLOT
+  7 CONN_SLAVE_CONN_REQUESTED
+  8 CONN_SLAVE_WAIT_FOR_SETUP_COMPLETE
+  9 CONN_SLAVE_AUTH
+  10 CONN_USING_HOST_OPCODE
+  11 CONN_SLAVE_AUTH_WAIT
+  12 CONN_SLAVE_ENCRYPT_WAIT
+)
+
+/* mem_lmp_conn_state */
+(
+  0 RECEIVED_CONN_REQ
+  1 SENT_CONN_REQ
+  2 RECEIVED_SETUP_COMPLETE
+  3 SENT_SETUP_COMPLETE
+  4 HOST_CONNECTION_MADE
+  6 INIT_COMPLETE
+  7 SNIFF_NEGOTIATE
+)
+/* btStateAuth1 */
+(
+  0 WAIT_FOR_KINIT
+  1 WAIT_FOR_LKA
+  2 WAIT_FOR_LKB
+  3 WAIT_FOR_SRES
+  4 EXAMINE_RECEIVED_SRES
+  5 SEND_AU_RAND
+  6 WAIT_FOR_KC
+  7 DELAYED_ENCRYPT_RESPONSE
+)
+/* btStateAuth2 */
+(
+  0 SENT_SRES
+  1 RECEIVED_IN_RAND
+  2 SENT_AU_RAND
+  3 AUTHENTICATION_FAILED
+  4 AUTHENTICATION_PASSED
+  5 STARTED_AUTH
+  6 SENT_COMB_KEY
+  7 SENT_IN_RAND
+)
+/* btStateAuth3 */
+(
+  0 RECEIVED_AU_RAND
+  1 RECEIVED_SRES
+  2 MUTUALLY_AUTHENTICATE
+)
+/* btStateHost */
+(
+  0 H_AUTH_STARTED
+  2 H_ENCRYPTION_MODE_REQ_PT
+  3 H_ENCRYPTION_KEY_SIZE
+  4 H_ENCRYPTION_START
+  5 H_ENCRYPTION_STOP
+  6 H_AUTH_SECOND_TRY
+)
+/* btStateEncrypt2 */
+(
+  0 RECEIVED_ENCRYPT_MODE_REQ_PT
+  1 RECEIVED_ENCRYPT_KEY_SIZE
+  2 RECEIVED_ENCRYPT_START
+  3 RECEIVED_ENCRYPT_STOP
+  4 STARTED_ENCRYPT_START
+)
+/* mem_ms_state */
+(
+  0x00 MS_STANDBY
+  0x11 M_MINIT_1
+  0x12 M_MINIT_2
+  0x20 M_SINIT_0
+  0x30 S_MINIT_0
+  0x31 S_MINIT_1
+  0x32 S_MINIT_2
+  0x41 S_SINIT_1
+  0x42 S_SINIT_2
+  0x43 S_SINIT_3
+)
+/* mem_test_mode */
+(
+  0 TEST_MODE_ALLOWED
+  1 TEST_MODE_ACTIVE
+)
+/* values for mem_tester_emulate */
+(
+  0x00 NO_TEST_MODE
+  0x00 CONTINUOUS_TRANSMIT
+  0x10 TRANSMIT_TEST
+  0x08 LOOPBACK
+)
+
+/* mem_tx_misc */
+(
+  1 SEND_TX_ADDR
+)
+/* BBHWREG_page_stat */
+(
+  5 PAGE_MODE_END
+)
+/* host_return_parameters_status codes */
+(
+  0x00 HOST_RETURN_SUCCESS
+  0x01 HOST_RETURN_SLAVE_CANT_ISSUE
+  0x02 HOST_RETURN_NO_CONNECTION
+  0x04 HOST_RETURN_PAGE_TIMEOUT
+  0x05 HOST_RETURN_INQUIRY_TIMEOUT
+  0x08 HOST_RETURN_CONNECTION_TIMEOUT
+  0x09 HOST_RETURN_MAX_NUM_CONNECTIONS
+  0x0a HOST_RETURN_MAX_NUM_SCO
+  0x0b HOST_RETURN_MAX_NUM_ACL
+  0x0c HOST_RETURN_SECURITY_REASONS
+  0x10 HOST_RETURN_HOST_TIMEOUT
+  0x11 HOST_RETURN_UNSUPPORTED_FEATURE_PARAMETER
+  0x13 HOST_RETURN_OTHER_END_USER
+  0x14 HOST_RETURN_OTHER_END_LOW_RESOURCE
+  0x15 HOST_RETURN_OTHER_END_POWER_OFF
+  0x16 HOST_RETURN_LOCAL_HOST
+  0x18 HOST_RETURN_PAIRING_NOT_ALLOWED
+  0x19 HOST_RETURN_UNKNOWN_PDU
+  0x1a HOST_RETURN_UNSUPPORTED_REMOTE_FEATURE
+  0x1d HOST_RETURN_SCO_AIR_MODE_REJECTED
+  0x20 HOST_RETURN_UNSUPPORTED_LMP_VALUE
+  0x21 HOST_RETURN_AUTHENTICATION_FAILURE
+  0x22 HOST_RETURN_CHANGED_EXISTING_SCO
+  0x23 HOST_RETURN_HOST_REJECTED
+  0x24 HOST_RETURN_UNSPECIFIED_ERROR
+  0x25 HOST_RESET
+  0x26 HOST_RETURN_BAD_HANDLE
+
+  0x00 HOST_RETURN_ACCEPT_COMMAND
+  0x01 HOST_RETURN_REJECT_COMMAND
+)
+/* host_present */
+(
+  0 HOST_IS_PRESENT
+  1 BCI_IS_PRESENT
+  2 DONT_INIT_RADIO
+)
+/* mem_master_state */
+(
+  0 MASTER_STATE_STANDBY
+  1 MASTER_INQUIRY
+)
+/* misc */
+(
+  92 SECOND_SWITCH_REQ
+  93 SLAVE_DELAY_DETACH
+  94 MASTER_DELAY_DETACH
+  95 UNSNIFF_DELAY_DETACH
+  0 WE_STARTED_AS_MASTER
+  1 WE_STARTED_AS_SLAVE
+)
+/* mem_host_commands */
+(
+  0x01 HOST_INQUIRY
+  0x02 HOST_INQUIRY_CANCEL
+  0x03 HOST_CREATE_CONNECTION
+  0x04 HOST_DISCONNECT_CONNECTION
+  0x05 HOST_ADD_SCO_REQUEST
+  0x06 HOST_REMOTE_NAME_REQUEST
+  0x07 HOST_WRITE_SUPPORTED_FEATURES
+  0x08 HOST_SET_TX_LEVEL
+  0x09 HOST_SET_RX_LEVEL
+  0x0a HOST_SNIFF_REQUEST
+  0x0b HOST_UNSNIFF_REQUEST
+  0x0c HOST_WRITE_LINK_SUPERVISION_TIMEOUT
+  0x0e HOST_WRITE_SCAN_ENABLE
+  0x0f HOST_READ_AUDIO_QUALITY
+  0x10 HOST_ENABLE_DEVICE_UNDER_TEST
+  0x14 HOST_BUTTON_CONFIGURE
+  0x15 HOST_SET_LOW_BATTERY_LEVEL
+  0x16 HOST_WRITE_LOCAL_NAME
+  0x17 HOST_WRITE_LOCAL_PIN
+  0x18 HOST_KILL_SCO_REQUEST
+  0x19 HOST_QOS_REQ
+
+  0x1a HOST_FEATURES_REQUEST
+  0x1b HOST_VERSION_REQUEST
+  0x1c HOST_TIMING_REQUEST
+  0x1d HOST_CLK_OFFSET_REQUEST
+  0x1e HOST_AUTHENTICATE
+  0x1f HOST_START_ENCRYPTION
+  0x20 HOST_STOP_ENCRYPTION
+  0x21 HOST_HOLD_REQUEST
+  0x22 HOST_HOLD_FORCE
+  0x23 HOST_PARK_REQUEST
+  0x24 HOST_MOD_BEACON
+  0x25 HOST_SET_BROADCAST_SCAN_WINDOW
+  0x26 HOST_UNPARK_PM_REQUEST
+  0x27 HOST_UNPARK_BD_REQUEST
+  0x28 HOST_SLAVE_REQUEST_UNPARK
+  0x29 HOST_DECREASE_POWER_REQUEST
+  0x2a HOST_INCREASE_POWER_REQUEST
+  0x2b HOST_SEND_PREFERRED_RATE
+  0x2c HOST_MAX_SLOT_REQ
+  0x2d HOST_MAX_SLOT_FORCE
+  0x2e HOST_PAGE_MODE_REQUEST
+  0x2f HOST_PAGE_SCAN_MODE_REQUEST
+  0x30 HOST_MASTER_SLAVE_SWITCH
+  0x31 HOST_SEND_AUTO_RATE
+  0x32 HOST_PAGE_CANCEL
+  0x33 HOST_CHANGE_LINK_KEY
+  0x34 HOST_RADIO_READ
+  0x35 HOST_RADIO_WRITE
+  0x36 HOST_REMOTE_SLAVE_INIT_UNPARK_REQUESTED
+
+  0x40 HOST_REMOTE_CONNECTION_REQUESTED
+  0x41 HOST_REMOTE_DETACH
+  0x42 HOST_REMOTE_SCO_CREATE_REQUESTED
+  0x43 HOST_REMOTE_SCO_KILL_REQUESTED
+  0x44 HOST_REMOTE_PARK_REQUESTED
+  0x45 HOST_REMOTE_UNPARK_REQUESTED
+  0x46 HOST_REMOTE_SNIFF_REQUESTED
+  0x47 HOST_REMOTE_UNSNIFF_REQUESTED
+  0x48 HOST_REMOTE_HOLD_REQUESTED
+  0x49 HOST_REMOTE_AUTHENTICATION
+  0x4a HOST_REMOTE_START_ENCRYPTION_REQUESTED
+  0x4b HOST_REMOTE_STOP_ENCRYPTION_REQUESTED
+  0x4c HOST_MODE_CHANGE_EVENT
+  0x4d HOST_REMOTE_TEST_ACTIVATE
+  0x4e HOST_REMOTE_TEST_CONTROL
+  0x4f HOST_REMOTE_TIMING_REQUEST
+)
+/* BCI interface (not used if not compiled in ) */
+(
+  0x01 BCI_INQUIRY
+  0x02 BCI_INQUIRY_CANCEL
+  0x03 BCI_CREATE_CONNECTION
+  0x04 BCI_DISCONNECT
+  0x05 BCI_ADD_SCO_CONNECTION
+  0x06 BCI_REMOTE_NAME_REQUEST
+  0x07 BCI_WRITE_SUPPORTED_FEATURES
+  0x08 BCI_SET_TX_POWER_LEVEL
+  0x09 BCI_SET_RX_POWER_LEVEL
+  0x0a BCI_SNIFF_MODE
+  0x0b BCI_EXIT_SNIFF_MODE
+  0x0c BCI_WRITE_LINK_SUPERVISION_TIMEOUT
+  0x0d BCI_WRITE_PAGE_TIMEOUT
+  0x0e BCI_WRITE_SCAN_ENABLE
+  0x0f BCI_GET_AUDIO_QUALITY
+  0x10 BCI_ENABLE_DEVICE_UNDER_TEST
+  0x11 BCI_SEND_DATA
+  0x12 BCI_REGISTER_SERVICE_RECORD
+  0x13 BCI_SERVICE_SEARCH_ATTRIB_REQ
+  0x14 BCI_BUTTON_CONFIGURE
+  0x15 BCI_SET_LOW_BATTERY_LEVEL
+  0x16 BCI_WRITE_LOCAL_NAME
+  0x17 BCI_WRITE_LOCAL_PIN
+  0x18 BCI_REMOVE_SCO_CONNECTION
+  0x19 BCI_QUALITY_OF_SERVICE
+  0x40 BCI_REMOTE_CONNECTION_REQUEST
+  0x41 BCI_REMOTE_DETACH
+  0x42 BCI_REMOTE_ADD_SCO_REQUEST
+  0x43 BCI_REMOTE_REMOVE_SCO_REQUEST
+  0x44 BCI_REMOTE_PARK_REQUEST
+  0x45 BCI_REMOTE_UNPARK_REQUEST
+  0x46 BCI_REMOTE_SNIFF_REQUEST
+  0x47 BCI_REMOTE_UNSNIFF_REQUEST
+  0x48 BCI_REMOTE_HOLD_REQUEST
+  0x49 BCI_REMOTE_AUTHENTICATION_PAIRING_REQUEST
+  0x4a BCI_REMOTE_START_ENCRYPTION_REQUEST
+  0x4b BCI_REMOTE_STOP_ENCRYPTION_REQUEST
+  0x4c BCI_MODE_CHANGE_EVENT
+)
+/* mode changes */
+(
+  0 MODE_CHANGE_ACTIVE
+  1 MODE_CHANGE_SNIFFING
+  2 MODE_CHANGE_PARKED
+  3 MODE_CHANGE_HOLDING
+  4 MODE_CHANGE_SCO_ADDED
+  5 MODE_CHANGE_SCO_REMOVED
+  6 MODE_CHANGE_ACL_CONNECTION
+  7 MODE_CHANGE_DISCONNECT
+  8 MODE_CHANGE_SCO_CHANGED
+  9 MODE_CHANGE_ENCRYPTING
+  10 MODE_CHANGE_NOT_ENCRYPTING
+  11 MODE_CHANGE_BUTTON_UP
+  12 MODE_CHANGE_BUTTON_DOWN
+  13 MODE_CHANGE_BATTERY_LOW
+  14 MODE_CHANGE_RESET
+  15 MODE_CHANGE_INQUIRY_CANCELED_RMTCMD
+  16 MODE_ACTIVE_MSSWITCH_PASSED
+  17 MODE_ACTIVE_MSSWITCH_FAILED
+)
+/* mem_battery - low nibble is level information, upper nibble is status info */
+(
+  6 BATTERY_CHECK_LEVEL
+  7 BATTERY_SENT_STATUS
+)
+/* mem_radio_version */
+(
+  0x02 RADIO_2001
+  0x12 RADIO_2002
+  0x32 RADIO_2002_DDM
+  0x42 RADIO_1008A1
+  0x52 RADIO_1018A0
+)
+/* mem_slave_initiated_conn */
+(
+  0 SLAVE_INIT_AUTHENTICATION
+  1 SLAVE_INIT_ENCRYPTION
+  2 SLAVE_INIT_MASTER_SLAVE_SWITCH
+)
+/* connection_options */
+(
+  0 CONNECTION_AUTH
+  1 CONNECTION_ENCRYPT
+  2 CONNECTION_SWITCH
+  3 CONNECTION_ACL
+  4 CONNECTION_FEATURE_EXT
+)
+/* mem_debug_config */
+(
+  7 AA_INSERTION
+)
+
Index: output/bt_format.meta
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/bt_format.meta	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/bt_format.meta	(working copy)
@@ -0,0 +1,11575 @@
+0x0000 mem_le_adv_transmit
+0x0001 mem_le_adv_waitcnt
+0x0002 mem_le_adv_rcv
+0x0003 mem_le_req_rcv
+0x0004 mem_le_scanrsp_rcv
+0x0005 mem_le_conn_rcv
+0x0006 mem_inquiryscan_waitcnt
+0x0007 mem_inquiryscan_rcvcnt
+0x0008 mem_pagescan_waitcnt
+0x0009 mem_pagescan_rcvcnt
+0x000a mem_pagescan_rcvfhscnt
+0x000b mem_slave_rcvcnt
+0x000c mem_page_transmit
+0x000d mem_page_rcv
+0x000e mem_page_rcv_fhs
+0x000f mem_master_rcvcnt
+0x0010 mem_fhs_wait_counter
+0x0011 mem_newconnto_counter
+0x0012 mem_inquiry_transmit
+0x0013 mem_inquiry_rcv
+0x0014 mem_fw_ver
+0x0015 mem_current_context
+0x0016 mem_le_ch_mapped
+0x0017 mem_last_freq
+0x0018 mem_rssi
+0x0019 mem_rx_type
+0x001a mem_rx_hec_err
+0x001c mem_rx_crc_err
+0x001e mem_context_ptr
+0x0020 mem_display
+0x0028 mem_bcd
+0x0030 mem_state
+0x0031 mem_mode
+0x0032 mem_tsniff
+0x0034 mem_sniff_anchor
+0x0038 mem_clk_offset
+0x003e mem_rx_window
+0x0040 mem_plap
+0x0043 mem_puap
+0x0044 mem_pnap
+0x0046 mem_conn_handle
+0x0047 mem_arq
+0x0048 mem_lmp_to_send
+0x0049 mem_lmi_opcode
+0x004a mem_lmo_reason
+0x004b mem_op
+0x004c mem_state_map
+0x004d mem_supervision_timer
+0x0051 mem_supervision_to
+0x0053 mem_name_offset
+0x0054 mem_key_size
+0x0055 mem_conn_sm
+0x0056 mem_aco
+0x0062 mem_kc
+0x0072 mem_conn_timer
+0x0073 mem_sniff_attempt
+0x0074 mem_sniff_timeout
+0x0075 mem_dsniff
+0x0077 mem_amaddr
+0x0078 mem_lmo_opcode1
+0x0079 mem_lmi_opcode1
+0x007a mem_lmo_reason1
+0x007b mem_lmo_tid1
+0x007c mem_lmo_opcode2
+0x007d mem_lmi_opcode2
+0x007e mem_lmo_reason2
+0x007f mem_lmo_tid2
+0x0080 mem_bt_context_reserve
+0x0088 mem_current_sniff_attempt
+0x0089 mem_current_sniff_timeout
+0x008a mem_nfreq_index_inq
+0x008b mem_nfreq_index_page
+0x008c mem_ninqy_index
+0x008d mem_fhs_misc
+0x008e mem_subsniff_instant
+0x0092 mem_subsniff_rate
+0x0093 mem_subsniff_tcmax
+0x0095 mem_subsniff_tsniff
+0x0096 mem_lpm_adjust
+0x0097 mem_sync_clke
+0x009d mem_lpm_current_mult
+0x009e mem_gpio_wakeup_low
+0x00a2 mem_gpio_wakeup_high
+0x00a6 mem_npage_index
+0x00a7 mem_page_mode
+0x00a8 mem_page_clk
+0x00ac mem_temp_am_addr
+0x00ad mem_temp_arq
+0x00ae mem_len
+0x00b0 mem_clkn_bt
+0x00b4 mem_clke_bt
+0x00b8 mem_dpll_clkn
+0x00bc mem_connection_options
+0x00bd mem_nameres_cnt
+0x00be mem_txptr
+0x00c0 mem_slot_offset
+0x00c2 extm_fhs_misc
+0x00c3 extm_newconn_am_addr
+0x00c4 extm_class
+0x00c7 extm_lap
+0x00ca extm_uap
+0x00cb extm_nap
+0x00ce mem_rxbuf
+0x00e3 mem_debug_config
+0x00e4 mem_lch_code
+0x00e5 mem_fhs_am_addr
+0x00e6 mem_select_list_item
+0x00e7 mem_temp_reconn_record
+0x00e7 mem_record_bt_mode
+0x00e8 mem_temp_lap
+0x00ee mem_list_item_ptr
+0x00f0 mem_eir
+0x0154 mem_rssi_hex
+0x0155 mem_param_tx_setup
+0x0157 mem_param_rf_setup
+0x0159 mem_param_conn_access
+0x015b mem_param_clke_cal
+0x015d mem_param_pll_setup
+0x015f mem_param_rx_setup
+0x0161 mem_param_dpll_start_delay
+0x0163 mem_param_rt_rthalfslot
+0x0165 mem_param_clke_cal_le_1m
+0x0167 mem_param_clke_cal_le_2m
+0x0169 mem_param_clke_cal_le_coded
+0x016b mem_le_rxbuf
+0x026f mem_le_mic
+0x0273 mem_le_peer_mic
+0x0277 mem_le_mrand
+0x0287 mem_le_state
+0x0288 mem_le_mode
+0x0289 mem_le_tsniff
+0x028b mem_le_anchor
+0x028f mem_le_clk_offset
+0x0295 mem_le_receive_window
+0x0297 mem_le_plap
+0x029d mem_le_conn_handle
+0x029e mem_le_arq
+0x029f mem_le_ch
+0x02a0 mem_le_hop
+0x02a1 mem_le_event_count
+0x02a3 mem_le_supervision_timer
+0x02a7 mem_le_instant
+0x02a9 mem_le_channels
+0x02aa mem_le_op
+0x02ab mem_le_access
+0x02af mem_le_crcinit
+0x02b2 mem_le_window_size
+0x02b3 mem_le_slave_latency
+0x02b5 mem_le_superto
+0x02b7 mem_le_channel_map
+0x02bc mem_le_rx_phy
+0x02bd mem_le_tx_phy
+0x02be mem_le_update_new_param
+0x02c7 mem_le_sk
+0x02d7 mem_le_peer_sca
+0x02d8 mem_le_err_code
+0x02d9 mem_le_ll_pairing_fail_reason
+0x02da mem_le_context_reserve
+0x02df mem_le_testtype
+0x02e0 mem_cmd_le_create_conn
+0x02e1 mem_ucode_status
+0x02e2 mem_spid_tbuf
+0x02e3 mem_iicd_tbuf
+0x02e3 mem_addr_hi
+0x02e4 mem_addr_mi
+0x02e5 mem_addr_lo
+0x02e6 mem_iicd_addr
+0x02e7 mem_spid_rbuf
+0x02eb mem_ucode_buf
+0x02ed mem_ucode_len
+0x02ef mem_sched_addr
+0x02f1 mem_ucode_ptr
+0x02f3 mem_ucode_keybuf
+0x0303 mem_spid2_tbuf
+0x0304 mem_addr_hi2
+0x0305 mem_addr_mi2
+0x0306 mem_addr_lo2
+0x0307 mem_spid2_rbuf
+0x030b mem_reconnect_flag
+0x030c mem_switch_fail_master_count
+0x030d mem_app_evt_timer_count
+0x030e mem_l2cap_mem_start
+0x030e mem_l2cap_rxbuff1_len
+0x0310 mem_l2cap_rxbuff2_len
+0x0312 mem_l2cap_rxbuff_new
+0x0314 mem_l2cap_rxbuff_inuse
+0x0315 mem_l2cap_payload_ptr
+0x0317 mem_l2cap_rx_pkt_length
+0x0319 mem_l2cap_rx_cid
+0x031b mem_l2cap_rx_done
+0x031c mem_l2cap_signal_tx_buff_ptr
+0x031e mem_l2cap_signal_tx_payload_ptr
+0x0320 mem_l2cap_signal_tx_length
+0x0322 mem_sdp_tx_buff_ptr
+0x0324 mem_sdp_tx_payload_ptr
+0x0326 mem_sdp_tx_pkt_length
+0x0328 mem_rfcomm_tx_buff_ptr
+0x032a mem_rfcomm_tx_payload_ptr
+0x032c mem_rfcomm_tx_pkt_length
+0x032e memL2CAP_T1
+0x0330 mem_CONTROL_tasks
+0x0331 mem_send_config_req
+0x0332 mem_config_identifier
+0x0333 mem_config_req_dest_CID
+0x0335 mem_rfcomm_malloc_fail_flag
+0x0336 mem_message_to_uppersm
+0x0337 mem_upper_sm_remote_page
+0x0338 mem_upper_sm_reconn
+0x0339 mem_upper_sm_ss
+0x033a mem_tx_malloc_log
+0x037a mem_l2cap_mem_end
+0x037a mem_scid
+0x037c mem_cmd_length
+0x037e mem_tt2
+0x0380 mem_tt3
+0x0382 mem_id
+0x0384 mem_psm
+0x0386 mem_l2cap_sdpres_delay_time
+0x038a mem_lmo_header_length
+0x038b mem_lmo_header_opcode
+0x038c mem_lmo_payload
+0x039d mem_lmi_accepted_opcode
+0x039e mem_disconn_reason_send
+0x039f mem_tx_fixed_freq
+0x03a0 mem_rx_fixed_freq
+0x03a1 mem_ext_features_page
+0x03a2 mem_lmpext_ssp_enable
+0x03a4 mem_remote_sppcap
+0x03a5 mem_lmp_conn_state
+0x03a6 mem_soft_timer
+0x03a8 mem_pincode_state
+0x03a9 mem_sres_tid
+0x03aa mem_accptsco_tid
+0x03ab mem_wait_encryption
+0x03ac mem_sniff_payload
+0x03bc mem_aurand_send_delay_time
+0x03c0 memRemoteRPNBitRate
+0x03c1 memRemotePRNDataBits
+0x03c2 memRemotePRNStopBit
+0x03c3 memRemotePRNParity
+0x03c4 memRemotePRNFlowControl
+0x03c5 memRemotePRNXon
+0x03c6 memRemotePRNXoff
+0x03c7 mem_mod2div_temp
+0x03ca mem_contw_temp
+0x03cc mem_attrib_list
+0x03ce mem_current_adss
+0x03cf mem_current_channel
+0x03d0 mem_current_frame_type
+0x03d1 mem_current_fcs
+0x03d2 mem_current_length
+0x03d4 mem_rfcomm_uih_payload_ptr
+0x03d6 mem_uih_cmd_type
+0x03d7 mem_uih_length
+0x03d9 mem_param_payload_ptr
+0x03db mem_ms_param
+0x03dc mem_pn_credit_flow_type_info
+0x03dd mem_pn_priority
+0x03de mem_pn_acknowledg_timer
+0x03df mem_pn_max_retrans
+0x03e0 mem_rfcomm_send_adss
+0x03e1 mem_rfcomm_send_frame_type
+0x03e2 mem_rfcomm_send_fcs
+0x03e3 mem_rfcomm_send_offset
+0x03e4 mem_sdp_mem_start
+0x03e4 mem_sdp_uuid_search_ptr
+0x03ec mem_sdp_continue_byte
+0x03ee mem_sdp_pduid
+0x03ef mem_sdp_transactionid
+0x03f1 mem_sdp_transactionid_local
+0x03f3 mem_sdp_attribute_maxbyte
+0x03f5 mem_sdp_record_maxcnt
+0x03f7 mem_sdp_record_handle
+0x03fb mem_sdp_LACAP_found
+0x03fc mem_sdp_RFCOMM_found
+0x03fd mem_sdp_handle_list
+0x03fd mem_sdp_attrib_list
+0x041d mem_sdp_error_code
+0x041f mem_sdp_all_length
+0x0421 mem_handle_humber
+0x0422 mem_search_uuid
+0x0424 mem_sdp_mem_end
+0x0424 mem_random_number
+0x0434 mem_round_key
+0x0444 mem_kinit
+0x0454 mem_input_store
+0x0464 mem_x
+0x0474 mem_y
+0x0483 mem_y15
+0x0484 mem_key_store
+0x0495 mem_key_store_end
+0x0496 memp_ar_key
+0x0498 memp_ar_input
+0x049a mem_ar_hround
+0x04a4 mem_ec_infinite
+0x04a5 mem_ec_loopc
+0x04a7 mem_aes_cmac_data_length
+0x04a8 memdat
+0x04a8 mem_ax
+0x04c0 mem_ay
+0x04d8 mem_az
+0x04f0 mem_bx
+0x0508 mem_ax_256//32 bytes
+0x0508 mem_by
+0x0520 mem_bz
+0x0528 mem_ay_256// 32 bytes
+0x0538 mem_cx
+0x0548 mem_az_256// 32 bytes
+0x0550 mem_cy
+0x0567 mem_cy5
+0x0568 mem_bx_256// 32 bytes
+0x0568 mem_cz
+0x0580 mem_k
+0x0588 mem_by_256// 31 bytes
+0x0598 mem_align
+0x05a8 mem_bz_256//32 bytes
+0x05a8 mem_tmp1
+0x05a8 memahbak
+0x05c0 mem_tmp5
+0x05c8 mem_cx_256//32 bytes
+0x05c8 memahsave
+0x05d8 mem_tmp2
+0x05e8 mem_cy_256// 32 bytes
+0x05e8 memahsave_end
+0x05e8 mem_addr_padding
+0x05e9 mem_addr_value
+0x05f0 mem_tmp3
+0x05f0 mem_t1
+0x05f5 mem_addr_value_end
+0x05f8 mem_addr_iocap_end
+0x0607 mem_cy5_256// 1 byte
+0x0608 mem_cz_256// 32 bytes
+0x0608 mem_tmp0
+0x0608 mem_t0
+0x0610 mem_tmp0a
+0x0620 mem_t2
+0x0628 mem_k_256//32 bytes
+0x0638 mem_t3
+0x0648 mem_tmp1_256//32 bytes
+0x0650 mem_t7
+0x0668 mem_tmp5_256
+0x0688 mem_tmp2_256
+0x06a8 mem_tmp3_256
+0x06a8 mem_t1_256
+0x06c8 mem_tmp0_256
+0x06c8 mem_t0_256
+0x06e8 mem_t2_256
+0x0708 mem_t3_256
+0x0728 mem_t7_256
+0x0748 mem_p
+0x0760 mem_a
+0x0778 mem_b
+0x0790 mem_gx
+0x07a8 mem_gy
+0x07c0 memh0
+0x07e0 mem_p_256
+0x0800 mem_a_256
+0x0820 mem_gx_256
+0x0840 mem_gy_256
+0x0860 mem_le_slat
+0x0870 mem_sp_state_start
+0x0870 mem_sp_state
+0x0871 mem_master_sp_state
+0x0872 mem_sp_flag
+0x0873 mem_master_sp_flag
+0x0874 mem_sp_calc
+0x0875 mem_sp_dh_ready
+0x0876 mem_sp_localsm
+0x0877 mem_pairing_auth
+0x0878 mem_sp_local_key_send_count
+0x0879 mem_sp_remote_key_recv_count
+0x087a mem_sp_remote_key_invalid
+0x087b mem_sp_dhkey_invalid
+0x087c mem_gkey
+0x0880 mem_sp_state_end
+0x0880 mem_le_pubkey_remote_x_256
+0x0888 mem_sp_pubkey_remote
+0x0888 mem_sp_pubkey_remote_x
+0x08a0 mem_sp_pubkey_remote_x_end
+0x08a0 mem_le_pubkey_remote_y_256
+0x08a8 mem_sp_pubkey_remote_y
+0x08c0 mem_le_dhkey_256
+0x08c8 mem_sp_dhkey
+0x08e0 mem_sp_dhkey_end
+0x08e0 mem_sp_random_local
+0x08f0 mem_sp_random_local_end
+0x08f0 mem_sp_random_remote
+0x0900 mem_sp_random_remote_end
+0x0900 memresult
+0x0900 mem_sp_calc_result
+0x0900 memh
+0x0904 memg
+0x0908 memf
+0x090c meme
+0x0910 mem_sp_calc_result_high
+0x0910 memd
+0x0914 memc
+0x0918 memb
+0x091c mema
+0x0920 mem_sp_check_result
+0x0930 mem_sp_confirm_remote
+0x0940 mem_sp_prarm_stack
+0x0950 mem_UI_data_txbuff_length
+0x0952 mem_ipc_skip_continue_proc
+0x0953 mem_ui_timer_temp//length 4
+0x0953 mem_ipc_rega_temp
+0x0957 mem_hold_contr
+0x0959 mem_hold_contw
+0x095b mem_fifo_temp
+0x095c mem_pdatatemp
+0x0964 mem_temp//8 bytes
+0x096c mem_timeup// 4 bytes
+0x0970 mem_rega//4 bytes
+0x0974 mem_regb//4 bytes
+0x0978 mem_regc//3 bytes
+0x097b mem_contr//2 bytes
+0x097d mem_contw//2 bytes
+0x097f mem_contus
+0x0981 mem_contue
+0x0983 mem_contu
+0x0985 mem_queue
+0x0987 mem_loopcnt
+0x0989 mem_wakup_from_power_flag
+0x098a mem_saved_gpio_in
+0x098e mem_module_rx_error_data_buffer
+0x098e mem_shutter_random_mac_data_temp
+0x098e mem_shutter_config_data_temp
+0x098e mem_le_adv_channel_map_temp
+0x098e mem_le_data_len_temp//1byte
+0x098e mem_tx_fifo_map_temp
+0x098e mem_rpn_dlci//1byte
+0x098e mem_event_cmd_response_content//2byte
+0x098e mem_le_prand//16byte
+0x098e mem_AES_CMAC_k//16 bytes
+0x098e mem_regext_index//1 bytes
+0x098e mem_temp_block0
+0x098f mem_le_data_temp//15bytes
+0x098f mem_temp_block1
+0x099e mem_le_aes_128//16byte
+0x099e mem_regext//64 bytes
+0x099e mem_AES_CMAC_k1//16 bytes
+0x099e mem_temp_block2
+0x09ae mem_AES_CMAC_k2//16 bytes
+0x09ae mem_temp_block3
+0x09be mem_AES_CMAC_temp// 16 bytes
+0x09be mem_temp_block4
+0x09ce mem_AES_CMAC_M_last// 16 bytes
+0x09ce mem_module_uart_cmd
+0x09cf mem_module_uart_opcode
+0x09d0 mem_module_uart_len
+0x09d1 mem_module_temp_nl_discard_packet
+0x09d2 mem_temp_block5
+0x09de mem_le_mackey//16 bytes
+0x09de mem_app_receive_temp
+0x09de mem_key_value_temp
+0x09e0 mem_key_value
+0x09e2 mem_key_value_temp1
+0x09e3 mem_key_value_temp2
+0x09e4 mem_key_value_temp3
+0x09e5 mem_key_value_temp4
+0x09e6 mem_key_value_temp5
+0x09e7 mem_key_value_temp6
+0x09e8 mem_temp_block6
+0x09ee mem_scale_ratio
+0x09f1 mem_xcnt
+0x09f4 mem_scale_ratio_temp
+0x09f6 mem_mesh_receive_model_message_payload_len
+0x09f7 mem_mesh_receive_model_message_payload_opcode
+0x09f8 mem_mesh_receive_model_message_payload
+0x0a0f mem_mesh_access_layer_payload_len
+0x0a10 mem_mesh_access_layer_payload
+0x0a10 mem_mesh_access_payload
+0x0a42 mem_mesh_access_payload_padding//为了透传模块预留
+0x0a74 mem_mesh_queue_ele_temp
+0x0a74 mem_mesh_queue_ele_duration
+0x0a75 mem_mesh_queue_ele_gatt_msg_id
+0x0a76 mem_mesh_queue_ele_len
+0x0a77 mem_mesh_queue_ele_payload
+0x0a96 mem_mesh_queue_ele_padding
+0x0a97 mem_le_txheader_mesh_temp
+0x0abe mem_mesh_sha256_chunk_start
+0x0abe mem_mesh_sha256_chunk1
+0x0afe mem_mesh_sha256_chunk2
+0x0b3e mem_mesh_sha256_chunk3
+0x0b7e mem_mesh_sha256_chunk4
+0x0bbe mem_mesh_Privacy_Plaintext
+0x0bbe mem_mesh_Privacy_Plaintext_Zero_String
+0x0bc3 mem_mesh_Privacy_Plaintext_IV_Index
+0x0bc7 mem_mesh_Privacy_Plaintext_Privacy_Random
+0x0bc7 mem_mesh_Privacy_Plaintext_Privacy_Random_EncDST
+0x0bc9 mem_mesh_Privacy_Plaintext_Privacy_Random_EncTransportPDU_or_NetMIC
+0x0bce mem_mesh_PECB
+0x0bde mem_nonce_ptr
+0x0be0 mem_ccm_data_len
+0x0be1 mem_ccm_data_ptr
+0x0be3 mem_ccm_mic
+0x0beb mem_ccm_type
+0x0bec mem_mesh_Device_UUID
+0x0bfc mem_mesh_receive_VID
+0x0bfd mem_mesh_mic_cache_ptr
+0x0bff mem_mesh_lower_transport_layer_payload_len
+0x0c00 mem_mesh_loopcnt_tmep
+0x0c02 mem_mesh_rega_temp
+0x0c04 mem_mesh_regb_temp
+0x0c06 mem_mesh_regc_temp
+0x0c08 mem_mesh_alarm_temp
+0x0c0a mem_mesh_message_Transport_NetMIC_length
+0x0c0b mem_mesh_message_NID
+0x0c0c mem_mesh_message_TTL
+0x0c0d mem_mesh_message_SEQ
+0x0c10 mem_mesh_message_SRC
+0x0c12 mem_mesh_message_DST
+0x0c14 mem_mesh_message_Transport_NetMIC
+0x0c14 mem_mesh_message_Transport_Head
+0x0c15 mem_mesh_message_Transport_unsegmented_access_messagePDU
+0x0c15 mem_mesh_message_Transport_segmented_access_messagePDU
+0x0c15 mem_mesh_message_segment_access_SZMIC_SeqZero_SegO_SegN
+0x0c18 mem_mesh_message_Transport_segmented_access_messagePDU_Segment
+0x0c18 mem_mesh_message_Transport_NetMIC_end
+0x0c28 mem_mesh_nonce_struct
+0x0c35 mem_mesh_send_message_DST
+0x0c37 mem_mesh_last_message_SEQ
+0x0c3a mem_mesh_network_packet_type
+0x0c3b mem_mesh_upper_transport_layer_payload_ptr
+0x0c3d mem_mesh_segmented_upper_transport_layer_payload_len
+0x0c3e mem_mesh_segmented_lower_transport_layer_SegZero
+0x0c40 mem_mesh_segmented_lower_transport_layer_SegO
+0x0c41 mem_mesh_segmented_lower_transport_layer_SegN
+0x0c42 mem_mesh_segmented_last_packet_upper_teansport_payload_len
+0x0c43 mem_mesh_upper_tran_layer_queue_temp
+0x0c43 mem_mesh_upper_tran_layer_temp_packet_flag
+0x0c44 mem_mesh_upper_tran_layer_temp_packet_transmit_delay
+0x0c46 mem_mesh_upper_tran_layer_temp_packet_TID
+0x0c47 mem_mesh_upper_tran_layer_temp_packet_header_IVI_NID
+0x0c48 mem_mesh_upper_tran_layer_temp_packet_header_CTL_TTL
+0x0c49 mem_mesh_upper_tran_layer_temp_packet_header_SEQ
+0x0c4c mem_mesh_upper_tran_layer_temp_packet_header_SRC
+0x0c4e mem_mesh_upper_tran_layer_temp_packet_header_DST
+0x0c50 mem_mesh_upper_tran_layer_temp_packet_length
+0x0c51 mem_mesh_upper_tran_layer_temp_packet_payload
+0x09f6 mem_hci_opcode_ocf
+0x09f8 mem_hci_opcode_ogf
+0x09f9 mem_hci_event_head_type
+0x09fa mem_hci_event_head_event_code
+0x09fb mem_hci_event_para_total_length
+0x09fc mem_hci_command_complete_num_hci_command_packet
+0x09fd mem_hci_command_complete_command_opcode
+0x09fd mem_hci_opcode
+0x09ff mem_hci_command_complete_return_parameter
+0x09ff mem_hci_command_complete_return_parameter_status
+0x0a00 mem_hci_command_complete_return_parameter_chip_id
+0x09f6 mem_vdk
+0x09f8 mem_vok
+0x09fc mem_omega
+0x0a02 mem_b1
+0x0a06 mem_b2
+0x0a0a mem_u1
+0x0a1a mem_u2
+0x0a2a mem_q
+0x09f6 mem_module_le_rx_data_len
+0x09f8 mem_module_le_rx_data_address
+0x09fa mem_module_le_rx_data_handle
+0x09f6 mem_init_cnt
+0x09f8 mem_data_pre
+0x09fa mem_data_current
+0x09fc mem_data_sum
+0x09ff mem_data_value
+0x09f6 mem_tst_pktcnt_sync
+0x09f8 mem_tst_pktcnt_hec
+0x09fa mem_tst_pktcnt_crc
+0x09fc mem_tst_pktcnt_dmh
+0x09fe mem_tmp_buffer_head
+0x0a01 mem_tmp_buffer
+0x0a51 mem_tester_emulate
+0x0a52 mem_temp_payload
+0x0a52 test_mode_scenario
+0x0a53 test_mode_hopping_mode
+0x0a54 test_mode_tx_freq
+0x0a55 test_mode_rx_freq
+0x0a56 test_mode_power_mode
+0x0a57 test_mode_poll_period
+0x0a58 test_mode_packet_type
+0x0a59 test_mode_data_length
+0x0a5b mem_test_mode_old_debug_config
+0x0a5c mem_tester_cnt
+0x09f6 mem_usb_status
+0x09f7 mem_usb_fifo_empty
+0x09f8 mem_usb_read_len
+0x09fa mem_usb_txbuf
+0x0a3b mem_usb_txbuf1
+0x0a45 mem_usb_txbuf2
+0x0a4f mem_usb_rxbuf
+0x0a8f mem_usb_rxbuf_end
+0x0a90 mem_bufptr
+0x0a92 mem_remain
+0x0a93 mem_hidreportdesc_kb
+0x0a95 mem_hidreportdesc_m
+0x0a97 mem_devicedesc
+0x0aaa mem_confdesc
+0x0ae6 mem_string0
+0x0aeb mem_string1
+0x0b09 mem_string2
+0x0b27 mem_string3
+0x0b45 mem_cb_usb_config
+0x0b47 mem_usb_tx_interval
+0x0b48 mem_usb_vid_pid
+0x0b51 mem_usb_zero_packet
+0x0b53 mem_usb_ones_packet
+0x0b55 mem_usb_two_packet
+0x0b57 mem_usb0_state
+0x0b58 mem_usb_offline_check_gpio
+0x0b59 mem_usb_clear_mem_start
+0x0b59 mem_usb_setup
+0x0b59 mem_usb_setup_bmRequestType
+0x0b5a mem_usb_setup_bRequest
+0x0b5b mem_usb_setup_bValue
+0x0b5c mem_usb_setup_bValueH
+0x0b5d mem_usb_setup_wIndex
+0x0b5f mem_usb_setup_bLength
+0x0b60 mem_usb_setup_bLengthH
+0x0b61 mem_usb0_set_report_data
+0x0ba1 mem_usb0_get_report_data
+0x0be1 mem_usb_setup_bValue_temp
+0x0be3 mem_usb0_get_set_report
+0x0be4 mem_usb0_data_ready_report
+0x0be5 mem_usb_tx_win_enable
+0x0be6 mem_usb_tx_mac_enable
+0x0be7 mem_usb_idle_flag
+0x0be8 mem_usb_idle_rate
+0x0be9 mem_usb_get_protocol_flag
+0x0bea mem_usb_set_protocol_status
+0x0beb mem_usb_set_protocol_value
+0x0bec mem_usb_state
+0x0bed mem_usb_remote_wakeup
+0x0bee mem_usb_clear_remote_wakeup
+0x0bef mem_sdsystem_wakeup_flag
+0x0bf0 mem_usb_ep0_stall_status
+0x0bf1 mem_usb_ep1_stall_status
+0x0bf2 mem_usb_ep2_stall_status
+0x0bf3 mem_usb_ep3_stall_status
+0x0bf4 mem_dsc_info_data_pointer
+0x0bf6 mem_dsc_info_len
+0x0bf7 mem_usb_ep1_data
+0x0bf8 mem_usb_ep2_data
+0x0bf9 mem_usb_tx_enable
+0x0bfa mem_usb_device_enumeration_endflag
+0x0bfb mem_usb_wakestate_onetime_flag
+0x0bfc mem_usb_mac_wakeup_trig
+0x0bfd mem_usb_set_high_addr_flag
+0x0bfe mem_usb_clear_halt
+0x0bff mem_usb_mouse_data
+0x0c0f mem_usb_kb_data
+0x0c1f mem_usb_kb_multikey
+0x0c2f mem_usb_kb_system
+0x0c3f mem_usb_test_cnt
+0x0c41 mem_usb_test_kb
+0x0c4b mem_usb_clear_mem_end
+0x0c4b mem_dg_rssi_noise_buffer
+0x0d4b mem_dg_rssi_noise_dg_buffer
+0x0e4b mem_dg_rssi_noise_ms_buffer
+0x0f4b mem_dg_rssi_noise_kb_buffer
+
+0x02be mem_le_new_param
+0x02be mem_le_new_transmitwindowsize
+0x02bf mem_le_new_transmitwindowoffset
+0x02c1 mem_le_new_conninterval
+0x02c3 mem_le_new_connslavelatency
+0x02c5 mem_le_new_connsupervisiontimeout
+0x02be mem_le_new_map
+0x02be mem_le_new_m2s_phy
+0x02bf mem_le_new_s2m_phy
+0x016b mem_le_rxbuf_data_header
+0x016c mem_le_rxbuf_data_length
+0x016d mem_le_rxbuf_data_payload
+0x016b mem_le_rxbuf_data_ll_header
+0x016c mem_le_rxbuf_data_ll_length
+0x016d mem_le_rxbuf_data_ll_opcode
+0x016e mem_le_rxbuf_data_ll_control_data
+0x016b mem_le_rxbuf_adv_header
+0x016c mem_le_rxbuf_adv_length
+0x016d mem_le_rxbuf_adv_payload
+0x016b mem_le_rxbuf_adv_scan_req_header
+0x016c mem_le_rxbuf_adv_scan_req_length
+0x016d mem_le_rxbuf_adv_scan_req_scan_address
+0x0173 mem_le_rxbuf_adv_scan_req_adv_address
+0x016b mem_le_rxbuf_adv_connect_ind_header
+0x016c mem_le_rxbuf_adv_connect_ind_length
+0x016d mem_le_rxbuf_adv_connect_ind_init_address
+0x0173 mem_le_rxbuf_adv_connect_ind_adv_address
+0x0179 mem_le_rxbuf_adv_connect_ind_access_address
+0x017d mem_le_rxbuf_adv_connect_ind_crc_init
+0x0180 mem_le_rxbuf_adv_connect_ind_win_size
+0x0181 mem_le_rxbuf_adv_connect_ind_win_offset
+0x0183 mem_le_rxbuf_adv_connect_ind_interval
+0x0185 mem_le_rxbuf_adv_connect_ind_latency
+0x0187 mem_le_rxbuf_adv_connect_ind_timeout
+0x0189 mem_le_rxbuf_adv_connect_ind_channel_map
+0x018e mem_le_rxbuf_adv_connect_ind_hop_and_sca
+0x099e mem_le_search_handle_start
+0x09a0 mem_le_search_handle_end
+0x09a2 mem_le_att_offset
+0x09a2 mem_le_search_att_type_length
+0x09a3 mem_le_search_att_type
+0x09b3 mem_le_curr_att_len
+0x09b4 mem_le_cur_attlist_start_ptr
+0x09b6 mem_le_cur_handle_start
+0x09b8 mem_le_cur_handle_end
+0x09ba mem_le_cur_uuid_length
+0x09bb mem_le_cur_uuid
+0x016b mem_le_rxbuf_data_att_header
+0x016c mem_le_rxbuf_data_att_length
+0x016d mem_le_rxbuf_data_att_l2cap_length
+0x016f mem_le_rxbuf_data_att_cid
+0x0171 mem_le_rxbuf_data_att_opcode
+0x0172 mem_le_rxbuf_data_att_payload
+0x016b mem_le_rxbuf_data_continue_header
+0x016c mem_le_rxbuf_data_continue_length
+0x016d mem_le_rxbuf_data_continue_payload
+0x016b mem_le_rxbuf_data_att_write_header
+0x016c mem_le_rxbuf_data_att_write_length
+0x016d mem_le_rxbuf_data_att_write_l2cap_length
+0x016f mem_le_rxbuf_data_att_write_cid
+0x0171 mem_le_rxbuf_data_att_write_opcode
+0x0172 mem_le_rxbuf_data_att_write_handle
+0x0174 mem_le_rxbuf_data_att_write_payload
+0x016b mem_le_rxbuf_data_prepare_att_write_header
+0x016c mem_le_rxbuf_data_prepare_att_write_length
+0x016d mem_le_rxbuf_data_prepare_att_write_l2cap_length
+0x016f mem_le_rxbuf_data_prepare_att_write_cid
+0x0171 mem_le_rxbuf_data_prepare_att_write_opcode
+0x0172 mem_le_rxbuf_data_prepare_att_write_handle
+0x0174 mem_le_rxbuf_data_prepare_att_write_offset
+0x0176 mem_le_rxbuf_data_prepare_att_write_payload
+0x09f8 mem_mesh_NETKeyindex_and_APPKeyindex
+0x09fb mem_mesh_receive_application_key
+0x09f8 mem_mesh_vendor_message_cid
+0x09fa mem_mesh_vendor_message_tid
+0x09fb mem_mesh_vendor_message_attr_type
+0x09f8 mem_mesh_vendor_message_header
+0x09fd mem_mesh_vendor_attr_parameter
+0x09f8 mem_mesh_vendor_message_delay_close_time_header
+0x09fd mem_mesh_vendor_delay_close_time
+0x09f8 mem_mesh_vendor_message_night_light_onoff_header
+0x09fd mem_mesh_vendor_night_light_onoff
+0x09f8 mem_mesh_vendor_message_color_header
+0x09fd mem_mesh_vendor_color_lightness
+0x09ff mem_mesh_vendor_color_hue
+0x0a01 mem_mesh_vendor_color_saturation
+0x09f8 mem_mesh_vendor_message_back_light_onoff_header
+0x09fd mem_mesh_vendor_back_light_onoff
+0x09f8 mem_mesh_vendor_message_main_light_onoff_header
+0x09fd mem_mesh_vendor_main_light_onoff
+0x09f8 mem_mesh_vendor_message_standby_brightness_header
+0x09fd mem_mesh_vendor_standby_brightness
+0x09f8 mem_mesh_vendor_message_current_time_header
+0x09fd mem_mesh_vendor_message_current_time
+0x09f8 mem_mesh_vendor_message_timer_header
+0x09fd mem_mesh_vendor_timer_timing_index
+0x09fe mem_mesh_vendor_timer_timing_index1
+0x09fe mem_mesh_vendor_timer_timing_time
+0x0a02 mem_mesh_vendor_timer_timing_attr_type
+0x0a04 mem_mesh_vendor_timer_timing_attr_para
+0x09f8 mem_mesh_vendor_message_timer_cyclic_header
+0x09fd mem_mesh_vendor_timer_timing_index_cyclic
+0x09fe mem_mesh_vendor_timer_timing_time_cyclic
+0x0a00 mem_mesh_vendor_timer_timing_weekdays_cyclic
+0x0a01 mem_mesh_vendor_timer_timing_attr_type_cyclic
+0x0a03 mem_mesh_vendor_timer_timing_attr_para_cyclic
+0x0a04 mem_mesh_vendor_timer_timing_cyclic_flag
+0x0a10 mem_mesh_access_layer_payload_vendor_command
+0x0a11 mem_mesh_access_layer_payload_vendor_CID
+0x0a13 mem_mesh_access_layer_payload_vendor_tid
+0x0a14 mem_mesh_access_layer_payload_vendor_attr_type
+0x0a16 mem_mesh_access_layer_payload_vendor_attr_parameter
+0x098e mem_mesh_subscription_eep_temp
+0x0a74 mem_mesh_gatt_package_receive_msg_buffer_ptr
+0x0a76 mem_mesh_gatt_package_receive_msg_buffer_temp
+0x0a76 mem_mesh_gatt_package_receive_msg_id
+0x0a78 mem_mesh_gatt_package_receive_MAC
+0x0a78 mem_mesh_gatt_package_receive_msg_num
+0x0a79 mem_mesh_gatt_package_receive_msg_total_length
+0x0a7a mem_mesh_gatt_package_receive_msg_payload
+0x0bec mem_mesh_receive_service_uuid_company_id
+0x0bee mem_mesh_receive_service_uuid_vid
+0x0bef mem_mesh_receive_service_uuid_provisioning_type
+0x0bf0 mem_mesh_receive_service_uuid_mac
+0x0bf2 mem_mesh_receive_service_uuid_msg_id
+0x0bf3 mem_mesh_receive_service_uuid_package_num
+0x0bf4 mem_mesh_receive_service_uuid_length
+0x0bf5 mem_mesh_receive_service_uuid_payload_data
+0x0bec mem_mesh_receive_service_uuid_ios_data_company_id
+0x0bee mem_mesh_receive_service_uuid_ios_data_vid
+0x0bef mem_mesh_receive_service_uuid_ios_data_provisioning_type
+0x0bf0 mem_mesh_receive_service_uuid_ios_data_NID
+0x0bf1 mem_mesh_receive_service_uuid_ios_data_msg_id
+0x0bf2 mem_mesh_receive_service_uuid_ios_data_package_num
+0x0bf3 mem_mesh_receive_service_uuid_ios_data_length
+0x0bf4 mem_mesh_receive_service_uuid_ios_data_payload_data
+0x09f8 mem_mesh_configuration_health_message_opcode
+0x09f8 mem_mesh_configuration_health_message_opcode_config_model_subscription
+0x09f9 mem_mesh_subscription_element_address
+0x09fb mem_mesh_subscription_value_address
+0x09fd mem_mesh_subscription_model_identifier
+0x09f8 mem_mesh_module_message_opcode
+0x09f8 mem_mesh_module_message_opcode_onoff_set
+0x09f9 mem_mesh_generic_onoff_set_payload_OnOff
+0x09fa mem_mesh_generic_onoff_set_payload_TID
+0x09fb mem_mesh_generic_onoff_set_payload_Transition_Time
+0x09fc mem_mesh_generic_onoff_set_payload_Delay
+0x09f8 mem_mesh_module_message_opcode_scene_recall
+0x09f9 mem_mesh_scene_recall_payload_scene_number
+0x09fb mem_mesh_scene_recall_payload_TID
+0x09fc mem_mesh_scene_recall_payload_Transition_Time
+0x09fd mem_mesh_scene_recall_payload_Delay
+0x09f8 mem_mesh_module_message_opcode_set_light_lightness
+0x09f9 mem_mesh_light_lightness_set_payload_lightness
+0x09fb mem_mesh_light_lightness_set_payload_TID
+0x09fc mem_mesh_light_lightness_set_payload_Transition_Time
+0x09fd mem_mesh_light_lightness_set_payload_Delay
+0x09fe mem_mesh_light_lightness_calc_lightness
+0x09f8 mem_mesh_module_message_opcode_set_light_ctl
+0x09f9 mem_mesh_CTL_Lightness
+0x09fb mem_mesh_CTL_Temperature
+0x09fd mem_mesh_CTL_Delta_UV
+0x09ff mem_mesh_CTL_lightness_TID
+0x0a00 mem_mesh_CTL_lightness_Transition_Time
+0x0a01 mem_mesh_CTL_lightness_Delay
+0x0a02 mem_mesh_CTL_calc_lightness
+0x0a03 mem_mesh_CTL_calc_temperature
+0x0a97 mem_mesh_network_packet_type_temp
+0x0a98 mem_mesh_message_NID_temp
+0x0c28 mem_mesh_Network_Nonce
+0x0c28 mem_mesh_Network_Nonce_nonce_type
+0x0c29 mem_mesh_Network_Nonce_CTL_and_TTL
+0x0c2a mem_mesh_Network_Nonce_SEQ
+0x0c2d mem_mesh_Network_Nonce_SRC
+0x0c2f mem_mesh_Network_Nonce_Pad//0x0000
+0x0c31 mem_mesh_Network_Nonce_IV_Index
+0x0c28 mem_mesh_Application_Nonce
+0x0c28 mem_mesh_Application_Nonce_Nonce_Type
+0x0c29 mem_mesh_Application_Nonce_ASZMIC_and_Pad//
+0x0c2a mem_mesh_Application_Nonce_SEQ
+0x0c2d mem_mesh_Application_Nonce_SRC
+0x0c2f mem_mesh_Application_Nonce_DST
+0x0c31 mem_mesh_Application_Nonce_IV_Index
+0x0c28 mem_mesh_Device_Nonce
+0x0c28 mem_mesh_Device_Nonce_Nonce_Type
+0x0c29 mem_mesh_Device_Nonce_ASZMIC_and_Pad//
+0x0c2a mem_mesh_Device_Nonce_SEQ
+0x0c2d mem_mesh_Device_Nonce_SRC
+0x0c2f mem_mesh_Device_Nonce_DST
+0x0c31 mem_mesh_Device_Nonce_IV_Index
+0x0a0f mem_mesh_upper_transport_layer_payload_len
+0x0c51 mem_mesh_upper_tran_layer_temp_pakcet_AKF_AID
+0x0c51 mem_mesh_upper_tran_layer_temp_unsegmented_pakcet_AKF_AID
+0x0c52 mem_mesh_upper_tran_layer_temp_unsegmented_packet_fill
+0x0c56 mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu
+0x0c56 mem_mesh_upper_tran_layer_temp_unsegmented_pakcet_upper_tran_access_pdu
+0x0c51 mem_mesh_upper_tran_layer_temp_segmented_pakcet_AKF_AID
+0x0c52 mem_mesh_upper_tran_layer_temp_segmented_pakcet_SeqZero
+0x0c54 mem_mesh_upper_tran_layer_temp_segmented_pakcet_SegO
+0x0c55 mem_mesh_upper_tran_layer_temp_segmented_pakcet_SegN
+0x0c56 mem_mesh_upper_tran_layer_temp_segmented_pakcet_upper_tran_access_pdu
+0x4000 mem_patch00
+0x4001 mem_patch01
+0x4002 mem_patch02
+0x4003 mem_patch03
+0x4004 mem_patch04
+0x4005 mem_patch05
+0x4006 mem_patch06
+0x4007 mem_patch07
+0x4008 mem_patch08
+0x4009 mem_patch09
+0x400a mem_patch0a
+0x400b mem_patch0b
+0x400c mem_patch0c
+0x400d mem_patch0d
+0x400e mem_patch0e
+0x400f mem_patch0f
+0x4010 mem_patch10
+0x4011 mem_patch11
+0x4012 mem_patch12
+0x4013 mem_patch13
+0x4014 mem_patch14
+0x4015 mem_patch15
+0x4016 mem_patch16
+0x4017 mem_patch17
+0x4018 mem_patch18
+0x4019 mem_patch19
+0x401a mem_patch1a
+0x401b mem_patch1b
+0x401c mem_patch1c
+0x401d mem_patch1d
+0x401e mem_patch1e
+0x401f mem_patch1f
+0x4020 mem_patch20
+0x4021 mem_patch21
+0x4022 mem_patch22
+0x4023 mem_patch23
+0x4024 mem_patch24
+0x4025 mem_patch25
+0x4026 mem_patch26
+0x4027 mem_patch27
+0x4028 mem_patch28
+0x4029 mem_patch29
+0x402a mem_patch2a
+0x402b mem_patch2b
+0x402c mem_patch2c
+0x402d mem_patch2d
+0x402e mem_patch2e
+0x402f mem_patch2f
+0x4030 mem_patch30
+0x4031 mem_patch31
+0x4032 mem_patch32
+0x4033 mem_patch33
+0x4034 mem_patch34
+0x4035 mem_patch35
+0x4036 mem_patch36
+0x4037 mem_patch37
+0x4038 mem_patch38
+0x4039 mem_patch39
+0x403a mem_patch3a
+0x403b mem_patch3b
+0x403c mem_patch3c
+0x403d mem_patch3d
+0x403e mem_patch3e
+0x403f mem_patch3f
+0x4040 mem_context
+0x4098 mem_current_amaddr
+0x4099 mem_lpm_mode
+0x409a mem_device_option
+0x409b mem_scan_mode
+0x409c mem_last_clkn
+0x40a0 mem_features
+0x40a8 mem_lap
+0x40ab mem_uap
+0x40ac mem_nap
+0x40ae mem_npage
+0x40af mem_glap
+0x40b2 mem_class
+0x40b5 mem_iscan_window
+0x40b7 mem_iscan_interval
+0x40b9 mem_pscan_window
+0x40bb mem_pscan_interval
+0x40bd mem_page_interval
+0x40bf mem_page_window
+0x40c1 mem_page_to
+0x40c3 mem_inq_window
+0x40c5 mem_fcomp_div
+0x40c6 mem_rx_window_init
+0x40c8 mem_rx_window_sniff
+0x40ca mem_rf_init_ptr
+0x40cc mem_last_type
+0x40cd mem_last_type_esco
+0x40ce mem_last_type_saved
+0x40cf mem_retransmission_cnt
+0x40d1 mem_next_btclk
+0x40d5 mem_rf_rccal
+0x40d6 mem_handle_num
+0x40d7 mem_max_slot
+0x40d8 mem_eir_enable
+0x40d9 mem_afh_instant
+0x40dd mem_afh_error_total
+0x40df mem_afh_cfg
+0x40e0 mem_afh_new_mod
+0x40e1 mem_afh_map_lo
+0x40e6 mem_afh_map_hi
+0x40eb mem_afh_used
+0x40ec mem_afh_index
+0x40ee mem_afh_map_new
+0x40f9 mem_afh_map
+0x4149 mem_afh_timer
+0x414d mem_afh_classify_channel_map
+0x4157 mem_lpm_wake_lock
+0x4159 mem_lpm_interval
+0x415b mem_lpm_overhead
+0x415c mem_lpm_hibernate_switch
+0x415d mem_esco_addr
+0x415e mem_sniff_unint_lost
+0x415f mem_ptt
+0x4160 mem_sleep_counter//should be 0x41fc in REVC
+0x4164 mem_sleep_counter_all
+0x4168 mem_sleep_clkn
+0x416e mem_sniff_rcv
+0x4171 mem_sniff_lost
+0x4174 mem_clks_per_lpo
+0x4177 mem_lpm_mult
+0x4178 mem_lpm_mult_timeout
+0x4179 mem_lpm_mult_cnt
+0x417a mem_lpm_config
+0x417a mem_lpm_xtal_ib
+0x417b mem_lpm_ctrim
+0x417c mem_lpm_padding
+0x417d mem_lpm_xtalcnt
+0x417e mem_lpm_buckcnt
+0x417f mem_lpm_ldocnt
+0x4180 mem_lpm_isogate
+0x4181 mem_lpm_isogate_final
+0x4182 mem_lpm_ctrl3
+0x4182 mem_lpm_ctrl3_app_vsel
+0x4183 mem_lpm_ctrl3_aon_vsel
+0x4184 mem_lpm_ctrl3_core_byp
+0x4185 mem_lpm_ctrl3_core_vsel
+0x4186 mem_saved_gpio// should be 0x421e in REVC
+0x419d mem_saved_gsel
+0x41a0 mem_saved_mark
+0x41a8 mem_saved_spidctrl
+0x41a9 mem_patch_ptr
+0x41ab mem_patch_len
+0x41ad mem_timers
+0x41cd mem_link_key_exists
+0x41ce mem_link_key
+0x41de mem_hci_cmd
+0x41df mem_hci_conn_handle
+0x41e0 mem_hci_plap
+0x41e3 mem_hci_puap
+0x41e4 mem_hci_pnap
+0x41e6 mem_loadcode_times
+0x41e7 mem_llid
+0x41e8 mem_tx_lch
+0x41e9 mem_tx_len
+0x41eb mem_tx_power
+0x41ec mem_modem_rssi
+0x41ed mem_gain_fix
+0x41ee mem_gain_table
+0x41f1 mem_gain_second_agc_en
+0x41f2 mem_rf_init_data
+0x41f3 mem_system_clk
+0x41f4 mem_le_dsniff
+0x41f6 mem_le_conn_interval
+0x41f8 mem_le_txheader
+0x41f9 mem_le_txlen
+0x41fa mem_le_txpayload
+0x42fa mem_le_name_len
+0x42fb mem_le_name
+0x4319 mem_le_ltk
+0x4329 mem_ltk_exists
+0x432a mem_le_rconfirm
+0x433a mem_le_srand
+0x434a mem_le_iat
+0x434b mem_le_rat
+0x434c mem_le_preq
+0x434d mem_le_preq_iocap
+0x434e mem_le_preq_oob
+0x434f mem_le_preq_auth
+0x4350 mem_le_preq_max_keysize
+0x4351 mem_le_preq_init_key_distribution
+0x4352 mem_le_preq_resp_key_distribution
+0x4353 mem_le_pres
+0x4354 mem_le_pres_iocap
+0x4355 mem_le_pres_oob
+0x4356 mem_le_pres_auth
+0x4357 mem_le_pres_max_keysize
+0x4358 mem_le_pres_init_key_distribution
+0x4359 mem_le_pres_resp_key_distribution
+0x435a mem_le_notify_handle
+0x435c mem_le_search_uuid_length
+0x435d mem_le_search_uuid
+0x436d mem_le_conn_param
+0x436d mem_le_conn_peer_addr_type
+0x436e mem_le_conn_peer_addr
+0x4374 mem_le_conn_own_addr_type
+0x4375 mem_le_interval_min
+0x4377 mem_le_interval_max
+0x4379 mem_le_latency
+0x437b mem_le_timeout
+0x437d mem_le_lap
+0x4380 mem_le_uap
+0x4381 mem_le_nap
+0x4383 mem_le_local_mtu
+0x4385 mem_le_remote_mtu
+0x4387 mem_le_skdm
+0x438f mem_le_skds
+0x4397 mem_le_init_superto
+0x4399 mem_ui_le_uuid_table
+0x439b mem_le_secure_connect_flag
+0x439c mem_le_secure_connect_state
+0x439d mem_le_sc_confirm_gkey_flag
+0x439e mem_le_pairing_state
+0x439f mem_le_enc_state
+0x43a0 mem_le_pairing_mode
+0x43a1 mem_le_tk
+0x43a5 mem_le_ediv
+0x43a7 mem_le_rand
+0x43af mem_le_irk
+0x43bf mem_le_transmit_window
+0x43c3 mem_le_configuration
+0x43c4 mem_le_fixed_ltk
+0x43d4 mem_le_pairing_handle
+0x43d6 mem_le_packet_llid
+0x43d7 mem_le_l2cap_size
+0x43d9 mem_le_packet_len_recved
+0x43db mem_le_payload_ptr
+0x43dd mem_le_signaling_identifier
+0x43de mem_le_l2cap_signaling_conn_param_update_rsp_result
+0x43e0 mem_le_md_count
+0x43e1 mem_ble_l2cap_tx_buff0_ptr
+0x43e3 mem_ble_l2cap_tx_buff_size_ptr
+0x43e5 mem_le_scan_enable
+0x43e6 mem_le_scan_interval
+0x43e8 mem_le_scan_window
+0x43ea mem_le_adv_data_len
+0x43eb mem_le_adv_data
+0x440a mem_le_scan_data_len
+0x440b mem_le_scan_data
+0x442a mem_le_adv_enable
+0x442b mem_le_adv_param
+0x442b mem_le_adv_interval
+0x442d mem_le_adv_type
+0x442e mem_le_adv_own_addr_type
+0x442f mem_le_adv_direct_addr
+0x4435 mem_le_adv_channel_map
+0x4436 mem_le_scan_params
+0x4436 mem_le_scan_type
+0x4437 mem_le_scan_own_addr_type
+0x4438 mem_le_l2cap_att_states
+0x4439 mem_le_att_opcode
+0x443a mem_le_att_handle
+0x443c mem_le_search_res
+0x443d mem_le_local_feature
+0x4445 mem_le_tx_phys
+0x4446 mem_le_rx_phys
+0x4447 mem_remote_rx_max_octets
+0x4449 mem_remote_rx_max_time
+0x444b mem_remote_tx_max_octets
+0x444d mem_remote_tx_max_time
+0x444f mem_local_rx_max_octets
+0x4451 mem_local_rx_max_time
+0x4453 mem_local_tx_max_octets
+0x4455 mem_local_tx_max_time
+0x4457 mem_app_handshake_flag
+0x4458 mem_sniff_param_interval
+0x445a mem_sniff_param_attempt
+0x445c mem_sniff_param_timeout
+0x445e mem_cb_check_wakelock
+0x4460 mem_cb_before_hibernate
+0x4462 mem_cb_before_lpm
+0x4464 mem_cb_le_process
+0x4466 mem_cb_bt_process
+0x4468 mem_cb_idle_process
+0x446a mem_cb_bb_event_process
+0x446c mem_cb_discovry_timeout
+0x446e mem_cb_att_write
+0x4470 mem_cb_ble_transmit
+0x4472 mem_cb_event_timer
+0x4474 mem_cb_bt_set_mult
+0x4476 mem_cb_spi_flash_write_complate
+0x4478 mem_cb_spi2_flash_write_complate
+0x447a mem_cb_bt_slave_match
+0x447c mem_cb_before_lpm_sleep
+0x447e mem_eeprom_base
+0x4480 mem_unsniff2sniff_timer_count
+0x4481 mem_wake_up_delay_timer
+0x4482 mem_app_connection_options
+0x4483 mem_app_disconn_reason
+0x4485 mem_app_disconn_reason_flag
+0x4487 mem_xrecord_mode
+0x4488 mem_eeprom_block_size
+0x4489 mem_spi_init_clk
+0x448a mem_spi_init_delay_time
+0x448b mem_spi_ncs_gpio
+0x448c mem_nv_data_ptr
+0x448e mem_nv_data_number
+0x448f mem_queue_ptr
+0x4491 mem_ui_led_struct_num
+0x4492 mem_ui_led_struct_ptr
+0x4494 mem_adc_wait_count
+0x4495 mem_3v_adc_io_data
+0x4497 mem_2v_adc_hvin_data
+0x4499 mem_2v_adc_vinlpm_data
+0x449b mem_1v_adc_io_data
+0x449d mem_3v_adc_hvin_data
+0x449f mem_3v_adc_vinlpm_data
+0x44a1 mem_app_adc_read_count
+0x44a2 mem_start_adc_clkn
+0x44a3 mem_reference_voltage
+0x44a5 mem_adc_config_flag
+0x44a6 mem_adc_channel
+0x44a7 mem_adc_current_value
+0x44a9 mem_adc_power_flag//bit0:low power falg ; bit1:no power flag
+0x44aa mem_spi_write_addr
+0x44ad mem_spi_write_ptr
+0x44af mem_spi_write_len
+0x44b1 mem_spi_write_flash_sm
+0x44b2 mem_spi2_write_addr
+0x44b5 mem_spi2_write_ptr
+0x44b7 mem_spi2_write_len
+0x44b9 mem_spi2_write_flash_sm
+0x44ba mem_spi_cs_gpio
+0x44bb mem_spi_si_gpio
+0x44bc mem_spi_so_gpio
+0x44bd mem_spi_sclk_gpio
+0x44be mem_spi_wp_gpio
+0x44bf mem_spi_hold_gpio
+0x44c0 mem_spi2_cs_gpio
+0x44c1 mem_spi2_si_gpio
+0x44c2 mem_spi2_so_gpio
+0x44c3 mem_spi2_sclk_gpio
+0x44c4 mem_spi2_wp_gpio
+0x44c5 mem_spi2_hold_gpio
+0x44c6 mem_eeprom_wp_gpio
+0x44c7 mem_eeprom_scl_gpio
+0x44c8 mem_eeprom_sda_gpio
+0x44c9 mem_kscan_ptr
+0x44cb mem_key_num_ptr
+0x44cb mem_keyscan_ptr
+0x44cd mem_key_value_retention
+0x44cf mem_power_param_ptr
+0x44d1 mem_efuse_header
+0x44d4 mem_seqi
+0x44d5 mem_dig_aon_vsel
+0x44d6 mem_syn_afc_cfg1
+0x44d7 mem_rf_ldo_cfg1
+0x44d8 mem_rc_cal
+0x44d9 mem_nec_decode_error_value
+0x44da mem_wdt_always_work
+0x44db mem_rf_debug_rx_gpio
+0x44dc mem_rf_debug_tx_gpio
+0x44dd mem_l2cap_xmem_start
+0x44dd mem_l2cap_tx_multi_offset//0 means single packet
+0x44df mem_sdp_remote_cid
+0x44e1 mem_rfcomm_remote_cid
+0x44e3 mem_hid_ctrl_remote_cid
+0x44e5 mem_hid_int_remote_cid
+0x44e7 mem_sdp_state
+0x44e8 mem_rfcomm_state
+0x44e9 mem_hid_control_state
+0x44ea mem_hid_interrupt_state
+0x44eb mem_spp_state
+0x44ec mem_ML2CAP_comm_id
+0x44ed mem_used_map
+0x44ee mem_tx_fifo0
+0x44ee mem_tx_fifo0_map
+0x44ef mem_tx_fifo0_ptr
+0x44f1 mem_tx_fifo1
+0x44f1 mem_tx_fifo1_map
+0x44f2 mem_tx_fifo1_ptr
+0x44f4 mem_tx_fifo2
+0x44f4 mem_tx_fifo2_map
+0x44f5 mem_tx_fifo2_ptr
+0x44f7 mem_tx_fifo3
+0x44f7 mem_tx_fifo3_map
+0x44f8 mem_tx_fifo3_ptr
+0x44fa mem_tx_fifo_end
+0x44fa mem_l2cap_lpm_txbuf
+0x45fa mem_l2cap_flow_ctrl_flag
+0x45fb mem_l2cap_pending_item
+0x45fc mem_l2cap_rcv_hidtype
+0x45fd mem_l2cap_xmem_end
+0x45fd mem_lmo_header_opcode_x
+0x45fe mem_lmp_version
+0x45ff mem_lmp_compid
+0x4601 mem_lmp_subversion
+0x4603 mem_local_name_length
+0x4604 mem_local_name
+0x4607 mem_local_name2
+0x4647 mem_local_name_end
+0x4648 mem_unsniff2sniff_timer
+0x4649 mem_switch_flag
+0x464a mem_classic_bt_flag
+0x464b mem_encapsulated_major_type
+0x464c mem_encapsulated_minor_type
+0x464d mem_encapsulated_len
+0x464e mem_remote_br_sc_support
+0x464f mem_pn_dlci
+0x4650 mem_pn_max_frame_size
+0x4652 memFCStemp1
+0x4653 memFCStemp2
+0x4654 memFCStemp3
+0x4655 mem_rfcomm_initiator
+0x4656 mem_remote_spp_channel
+0x4657 mem_HIUfcs_SPP
+0x4658 mem_HIUfcs_SPP_WCredits
+0x4659 mem_rfcomm_send_more_pkt
+0x465a mem_remote_credits
+0x465b mem_credit_given
+0x465c mem_ms_channel
+0x465d mem_rfcomm_credit_flag
+0x465e mem_rfcomm_max_frame_size
+0x4660 mem_rfcomm_credit_init_data
+0x4661 mem_cb_receive_spp_data
+0x4663 mem_nl_rx_data_src
+0x4665 mem_nl_rx_len_all
+0x4667 mem_ui_uuid_table
+0x4669 mem_all_uuid_16bits
+0x467f mem_all_uuid_128bits
+0x46a1 mem_sdp_l2capch_ptr
+0x46a3 mem_ccm_pcnt_tx
+0x46a8 mem_ccm_pcnt_rx
+0x46ad mem_ccm_last_mic
+0x46b1 mem_ccm_iv
+0x46b1 mem_ccm_ivm
+0x46b5 mem_ccm_ivs
+0x46b9 mem_ccm_len
+0x46bb mem_ccm_rx_ptr
+0x46bd mem_sc_only_mode
+0x46be mem_sp_debug_mode
+0x46bf mem_secure_connections_enable
+0x46c0 mem_sp_local_key_invalid
+0x46c1 mem_sc_calc
+0x46c2 mem_sc_local_key_invalid
+0x46c3 mem_sc_private_key_256
+0x46e3 mem_sc_pubkey_local_x_256
+0x4703 mem_sc_pubkey_local_y_256
+0x4723 mem_sp_private_key
+0x473b mem_sp_pubkey_local
+0x473b mem_sp_pubkey_local_x
+0x4753 mem_sp_pubkey_local_x_end
+0x4753 mem_sp_pubkey_local_y
+0x476b mem_ssp_enable
+0x476c mem_lmp_io_cap_payload_iocap
+0x476d mem_lmp_io_cap_payload_oob_auth_data
+0x476e mem_lmp_io_cap_payload_auth_req
+0x476f mem_sp_state_xmem
+0x476f mem_sp_iocap_remote
+0x4772 mem_flag_mode_ssp_pin
+0x4773 mem_ssp_mode_flag
+0x4774 mem_authentication_passkey_times
+0x4775 mem_passkey_1bit
+0x4776 mem_flag_pairing_state
+0x4777 mem_sp_state_xmem_end
+0x4777 mem_ipc_lock_bt
+0x4778 mem_ipc_lock_c51
+0x4779 mem_ipc_fifo_bt2c51
+0x4781 mem_ipc_fifo_c512bt
+0x4789 mem_ui_button_timer
+0x478a mem_ui_button_last_state
+0x478b mem_ui_timer_last_btclk
+0x478f mem_discovery_timeout_timer_count
+0x4791 mem_hid_handshake_timer_count
+0x4792 memui_reconnect_mode
+0x4793 mem_ui_state_map
+0x4795 mem_ui_profile_supported
+0x4796 mem_ui_button_timeout
+0x4797 mem_ui_button_gpio
+0x4798 mem_discovery_timeout
+0x479a mem_pin_length
+0x479b mem_pin
+0x47ab mem_dummy
+0x47ae mem_seq
+0x47af mem_context_cnt
+0x47b0 mem_context_map
+0x47b1 mem_context_new
+0x4ab1 mem_att_cmd_len
+0x4ab2 mem_att_cmd
+0x4ac1 mem_att_resp_handle
+0x4ac2 mem_att_resp_len
+0x4ac3 mem_att_resp
+0x4ae1 mem_meter_att_list
+0x47ab mem_mesh_vendor_mesh_receive_tid
+0x47ac mem_mesh_vendor_mesh_send_tid
+0x47ad mem_mesh_vendor_timer_current_time
+0x47b1 mem_system_time
+0x47b5 mem_mesh_adv_data_len
+0x47b6 mem_mesh_adv_data
+0x47d5 mem_mesh_adv_scan_channel
+0x47d6 mem_mesh_advertising_unprovisioned_device_beacon_switch
+0x47d7 mem_mesh_advertising_unprovisioned_device_beacon_timer
+0x47d9 mem_mesh_advertising_unprovisioned_device_beacon_duration
+0x47da mem_mesh_advertising_unprovisioned_device_beacon_interval
+0x47db mem_mesh_calc_ConfirmationCloud_data
+0x47db mem_mesh_ConfirmationCloud_RandomB
+0x47e3 mem_mesh_ConfirmationCloud_RandomA
+0x47eb mem_mesh_AuthValueProv
+0x47fb mem_mesh_ConfirmationCloud
+0x480b mem_mesh_ConfirmationDevice
+0x480b mem_mesh_calc_ConfirmationDevice_data
+0x480b mem_mesh_provisioning_random_A
+0x4813 mem_mesh_provisioning_random_B
+0x481b mem_mesh_AuthValueDevice
+0x482b mem_mesh_Device_Key
+0x483b mem_mesh_Confirmationkey
+0x484b mem_mesh_sha256_ConfirmationKey_ascii
+0x485a mem_mesh_sha256_SessionKey_ascii
+0x4864 mem_mesh_sha256_DeviceKey_ascii
+0x486d mem_mesh_sha256_load_first_data_flag
+0x486e mem_mesh_sha256_data_len_byte
+0x4876 mem_mesh_sha256_data_len_bit
+0x487e mem_mesh_sha256_data_end_addr
+0x4880 mem_mesh_sha256_data_len_addr
+0x4882 mem_mesh_sha256_chunk_count
+0x4883 mem_mesh_sha256_chunk_data_ptr
+0x4885 mem_mesh_sha256_chunk_ptr
+0x4887 mem_k2_P_len
+0x4888 mem_k2_P
+0x4898 mem_k2_N
+0x48a8 mem_k2_SALT
+0x48b8 mem_k2_T
+0x48c8 mem_k2_T0
+0x48c8 mem_k2_T1
+0x48d8 mem_k2_NID
+0x48d9 mem_k2_T3
+0x48e9 mem_k2_T2
+0x48f9 mem_k4_SALT
+0x4909 mem_k4_T
+0x4919 mem_k4_id6_01
+0x4929 mem_k4_k4N
+0x4939 mem_mesh_transport_AID
+0x493a mem_k3_SALT
+0x494a mem_k3_T
+0x495a mem_k3_id64_01
+0x495f mem_k3_k4N
+0x4967 mem_mesh_network_id
+0x496f mem_mesh_provisioned_flag
+0x4970 mem_mesh_Provisioning_State_Flag
+0x4971 mem_mesh_Device_PID
+0x4972 mem_mesh_UUID_FeatureFlag
+0x4973 mem_mesh_PDU_RFU
+0x4975 mem_mesh_OOB_information
+0x4977 mem_mesh_Encrypt_Provisioning_Data
+0x4977 mem_mesh_provisioning_data_Mac_addr
+0x4979 mem_mesh_KeyFresh_and_Update_flag
+0x497a mem_mesh_Network_Key
+0x498a mem_mesh_last_IV_Index_byte
+0x498b mem_mesh_Unicast_Address
+0x498d mem_mesh_adv_last_time
+0x4991 mem_mesh_send_packet_timeout
+0x4993 mem_mesh_gatt_package_send_msg_id
+0x4994 mem_mesh_gatt_receive_msg_timer
+0x4995 mem_mesh_gatt_packet_receive_msg_buffer1
+0x49b6 mem_mesh_gatt_packet_receive_msg_buffer2
+0x49d7 mem_mesh_three_tuple_ProductID
+0x49db mem_mesh_three_tuple_MAC
+0x49e1 mem_mesh_three_tuple_secret
+0x49f1 mem_mesh_cb_receive_advertising
+0x49f3 mem_mesh_cb_receive_access_message
+0x49f5 mem_mesh_cb_receive_config_appkey_add
+0x49f7 mem_mesh_cb_pairing_fail
+0x49f9 mem_mesh_cb_recv_vendor
+0x49fb mem_mesh_scan_selete_next_ch
+0x49fd mem_mesh_cb_generic_onoff_get
+0x49ff mem_mesh_cb_generic_onoff_set
+0x4a01 mem_mesh_cb_scene_recall
+0x4a03 mem_mesh_cb_light_lightness_set
+0x4a05 mem_mesh_cb_light_lightness_get
+0x4a07 mem_mesh_cb_light_ctl_set
+0x4a09 mem_mesh_cb_main_light_onoff_set
+0x4a0b mem_mesh_cb_background_onoff_set
+0x4a0d mem_mesh_cb_color_set
+0x4a0f mem_mesh_cb_network_relay
+0x4a11 mem_mesh_cb_receive_node_reset
+0x4a13 mem_mesh_cb_seq_changed
+0x4a15 mem_mesh_cb_subscriptuion_list_changed
+0x4a17 mem_mesh_cb_vendor_timing_changed
+0x4a19 mem_mesh_core_feature
+0x4a1b mem_mesh_element_number
+0x4a1c mem_mesh_element_device_ptr
+0x4a1e mem_mesh_element_device_length
+0x4a20 mem_mesh_segmented_access_message_SZMIC
+0x4a21 mem_mesh_segmented_access_message_SeqZero
+0x4a23 mem_mesh_segmented_access_message_SegO
+0x4a24 mem_mesh_segmented_access_message_SegN
+0x4a25 mem_mesh_segmented_access_message_BlockAck
+0x4a29 mem_mesh_segmented_access_message_receive_finish
+0x4a2a mem_mesh_segmented_access_message_current_length
+0x4a2b mem_mesh_segmented_access_message_SegN_upper_limit
+0x4a2c mem_mesh_segmented_access_message_Segment_ptr
+0x4a2e mem_mesh_last_CTL_Temperature
+0x4a30 mem_mesh_receive_group_address
+0x4a31 mem_mesh_receive_element_number
+0x4a32 mem_mesh_IV_Index
+0x4a36 mem_mesh_TMALL_cache_start
+0x4a36 mem_mesh_TMALL_SRC1
+0x4a38 mem_mesh_TMALL_SEQ1
+0x4a3b mem_mesh_TMALL_cache
+0x4a68 mem_mesh_TMALL_cache_end
+0x4a68 mem_mesh_transport_message_mic_cache
+0x4a68 mem_mesh_transport_message_mic_cache_buff1
+0x4a6c mem_mesh_transport_message_mic_cache_buff2_10
+0x4a90 mem_mesh_network_relay_queue
+0x4a90 mem_mesh_network_relay_queue_each_size
+0x4a91 mem_mesh_network_relay_queue_length
+0x4a92 mem_mesh_network_relay_queue_current_num
+0x4a93 mem_mesh_network_relay_queue_read_ptr
+0x4a94 mem_mesh_network_relay_queue_write_ptr
+0x4a95 mem_mesh_network_relay_queue_ele
+0x4b1d mem_mesh_application_key
+0x4b2d mem_mesh_ASZMIC
+0x4b2e mem_mesh_access_message_mic_cache
+0x4b2e mem_mesh_access_message_mic_cache_buff1
+0x4b32 mem_mesh_access_message_mic_cache_buff2_10
+0x4b56 mem_mesh_send_message_SEQ
+0x4b59 mem_mesh_send_message_SRC
+0x4b5b mem_mesh_send_message_TTL
+0x4b5c mem_mesh_send_upper_layer_IVI_and_NID
+0x4b5d mem_mesh_send_upper_layer_CTL_and_TTL
+0x4b5e mem_mesh_send_upper_layer_SEQ
+0x4b61 mem_mesh_send_upper_layer_SRC
+0x4b63 mem_mesh_send_upper_layer_DST
+0x4b65 mem_mesh_send_access_lower_transport_layer
+0x4b75 mem_mesh_send_network_layer_NetMIC
+0x4b79 mem_mesh_element_device
+0x4b79 mem_mesh_element_device_group_addr
+0x4b7b mem_mesh_element_device_queue_buffer_ptr
+0x4b7d mem_mesh_element_device_timing_ptr
+0x4b7f mem_mesh_element_device_element_subscription_label
+0x4b8f mem_mesh_element_upper_adv_flag
+0x4b90 mem_mesh_element_upper_queue_buffer_ptr
+0x4b92 mem_mesh_element_tran_package_tid
+0x4b93 mem_mesh_element_tran_package_type
+0x4b94 mem_mesh_element_device1
+0x4baf mem_mesh_element_device2
+0x4bca mem_mesh_segmented_access_message_Segment
+0x4bee mem_mesh_element_device_queue_each_size
+0x4bef mem_mesh_element_device_queue_length
+0x4bf0 mem_mesh_element_device_queue_current_num
+0x4bf1 mem_mesh_element_device_queue_read_ptr
+0x4bf2 mem_mesh_element_device_queue_write_ptr
+0x4bf3 mem_mesh_element_device_queue_ele
+0x4c7b mem_mesh_element_device_upper_queue_each_size
+0x4c7c mem_mesh_element_device_upper_queue_length
+0x4c7d mem_mesh_element_device_upper_queue_current_num
+0x4c7e mem_mesh_element_device_upper_queue_read_ptr
+0x4c7f mem_mesh_element_device_upper_queue_write_ptr
+0x4c80 mem_mesh_element_device_upper_queue_ele
+0x4d3c mem_mesh_le_att_list
+0x47ab mem_antl_lpm_interval
+0x47ad mem_antl_adv_interval
+0x47af mem_antl_slow_adv_lpm_interval
+0x47b1 mem_antl_slow_adv_adv_interval
+0x47b3 mem_antl_led_style
+0x47b3 mem_antl_led_type
+0x47b4 mem_antl_led_blink_count
+0x47b5 mem_antl_led_gpio
+0x47b6 mem_antl_led_on_time
+0x47b8 mem_antl_led_off_time
+0x47ba mem_antl_led_cb_on
+0x47bc mem_antl_led_cb_off
+0x47be mem_antl_buzzer_style
+0x47be mem_antl_buzzer_type
+0x47bf mem_antl_buzzer_blink_count
+0x47c0 mem_antl_buzzer_gpio
+0x47c1 mem_antl_buzzer_on_time
+0x47c3 mem_antl_buzzer_off_time
+0x47c5 mem_antl_buzzer_cb_on
+0x47c7 mem_antl_buzzer_cb_off
+0x47c9 mem_antl_fast_adv_led_style
+0x47c9 mem_antl_fast_adv_led_type
+0x47ca mem_antl_fast_adv_led_blink_count
+0x47cb mem_antl_fast_adv_led_gpio
+0x47cc mem_antl_fast_adv_led_on_time
+0x47ce mem_antl_fast_adv_led_off_time
+0x47d0 mem_antl_slow_adv_led_style
+0x47d0 mem_antl_slow_adv_led_type
+0x47d1 mem_antl_slow_adv_led_blink_count
+0x47d2 mem_antl_slow_adv_led_gpio
+0x47d3 mem_antl_slow_adv_led_on_time
+0x47d5 mem_antl_slow_adv_led_off_time
+0x47d7 mem_antl_power_starting_led_style
+0x47d7 mem_antl_power_starting_led_type
+0x47d8 mem_antl_power_starting_led_blink_count
+0x47d9 mem_antl_power_starting_led_gpio
+0x47da mem_antl_power_starting_led_on_time
+0x47dc mem_antl_power_starting_led_off_time
+0x47de mem_antl_power_starting_buzzer_style
+0x47e5 mem_antl_power_off_led_style
+0x47e5 mem_antl_power_off_led_type
+0x47e6 mem_antl_power_off_led_link_count
+0x47e7 mem_antl_power_off_led_gpio
+0x47e8 mem_antl_power_off_led_on_time
+0x47ea mem_antl_power_off_led_off_time
+0x47ec mem_antl_power_off_buzzer_style
+0x47ec mem_antl_power_off_buzzer_type
+0x47ed mem_antl_power_off_buzzer_link_count
+0x47ee mem_antl_power_off_buzzer_gpio
+0x47ef mem_antl_power_off_buzzer_on_time
+0x47f1 mem_antl_power_off_buzzer_off_time
+0x47f3 mem_antl_alert_led_stlye
+0x47fa mem_antl_alert_buzzer_stlye
+0x47fa mem_antl_alert_buzzer_type
+0x47fb mem_antl_alert_buzzer_blink_count
+0x47fc mem_antl_alert_buzzer_gpio
+0x47fd mem_antl_alert_buzzer_on_time
+0x47ff mem_antl_alert_buzzer_off_time
+0x4801 mem_antl_key_led_style
+0x4801 mem_antl_key_led_type
+0x4802 mem_antl_key_led_blink_count
+0x4803 mem_antl_key_led_gpio
+0x4804 mem_antl_key_led_on_time
+0x4806 mem_antl_key_led_off_time
+0x4808 mem_antl_key_buzzer_style
+0x480f mem_antl_queue_width
+0x4810 mem_antl_queue_depth
+0x4811 mem_antl_queue_curr_num
+0x4812 mem_antl_queue_read_ptr
+0x4813 mem_antl_queue_write_ptr
+0x4814 mem_antl_queue_buff
+0x4864 mem_antl_key_scan_enable
+0x4865 mem_antl_led_num
+0x4866 mem_antl_led_gpio_map
+0x486a mem_antl_power_param
+0x486a mem_antl_power_state
+0x486b mem_antl_power_timer
+0x486c mem_antl_power_off_timeout
+0x486d mem_antl_power_starting_timeout
+0x486e mem_antl_power_off_cb
+0x4870 mem_antl_power_starting_cb
+0x4872 mem_antl_power_standby_cb
+0x4874 mem_event_button_up_cb
+0x4876 mem_antl_key_num
+0x4877 mem_cb_antl_key
+0x4879 mem_antl_key_conf0
+0x487d mem_antl_key0_press
+0x488c mem_antl_key0_release
+0x489b mem_antl_conn_updata_procedure_state
+0x489c mem_client_characteristic_configuration_descriptor
+0x489e mem_adc_timer
+0x48a0 mem_antl_conn_update_timer
+0x48a1 mem_antl_send_updata_le_param_timer
+0x48a2 mem_antl_le_sleep_timer
+0x48a4 mem_antl_fast_adv_timer
+0x48a6 mem_antl_fast_adv_timeout
+0x48a8 mem_antl_le_sleep_timeout
+0x48aa mem_double_click_timer
+0x48ab mem_butten_click_cnt
+0x48ac mem_antl_led_state
+0x48ad mem_antl_buzzer_state
+0x48ae mem_antl_key_state
+0x48af mem_antl_lost_mode
+0x48b0 mem_alarm_config
+0x48b1 mem_alarm_config_notfy_cnt
+0x48b2 mem_buzzer_pwm_conf
+0x48b8 mem_adc_timeout
+0x48ba mem_voltage_remain_percent
+0x48bb mem_battery_calculate_set
+0x48bb mem_battery_full_voltage
+0x48bd mem_battery_empty_voltage
+0x48bf mem_battery_low_voltage
+0x48c1 mem_battery_current_voltage
+0x48c3 mem_rx_window_sniff_inc
+0x48c5 mem_interval_increment
+0x48c7 mem_antl_le_interval_min
+0x48c9 mem_antl_le_interval_max
+0x48cb mem_antl_le_latency
+0x48cd mem_antl_le_timeout
+0x48cf mem_antl_le_unnormal_interval_min
+0x48d1 mem_antl_le_unnormal_interval_max
+0x48d3 mem_antl_le_unnormal_latency
+0x48d5 mem_antl_le_unnormal_timeout
+0x48d7 mem_AntiLost_le_att_list
+0x4a67 mem_lestate_update_param_flag
+0x4a68 mem_antilost_conn_battery_send_timer
+0x4a69 mem_antl_disconn_buzzer_on_timer
+0x4a6b mem_antl_disconn_buzzer_on_timeout
+0x47ab mem_24g_rxbuf
+0x47cd mem_24g_txbuf
+0x47ed mem_24g_txpayload
+0x4811 mem_24g_rxpayload
+0x4831 mem_24g_rxdata_length
+0x4832 mem_24g_pid
+0x4833 mem_24g_no_ack
+0x4834 mem_24g_sta_crc
+0x4837 mem_24g_last_crc
+0x483a mem_24g_sta_pid
+0x483b mem_24g_last_pid
+0x483c mem_24g_datalen
+0x483d mem_24g_data_type
+0x483e mem_24g_txlen
+0x483f mem_24g_rx_window
+0x4841 mem_24g_ch
+0x4842 mem_24g_current_ch_number
+0x4843 mem_24g_addr
+0x4847 mem_24g_ch_map1
+0x484b mem_24g_ch_map2
+0x484f mem_24g_ch_map3
+0x4853 mem_24g_ch_map4
+0x4857 mem_24g_tx_btclk
+0x485b mem_24g_interval
+0x485c mem_24g_interval_min
+0x485d mem_24g_interval_max
+0x485e mem_24g_syncword
+0x4860 mem_24g_syncword_crc8
+0x4861 mem_24g_get_syncword_crc8
+0x4862 mem_24g_pair_switch
+0x4863 mem_24g_enter_hibernate
+0x486b mem_24g_rx_phy
+0x486c mem_24g_tx_phy
+0x486d mem_24g_ch_map_update
+0x486e mem_24g_ch_update_map1
+0x4872 mem_24g_ch_update_map2
+0x4876 mem_24g_ch_update_map3
+0x487a mem_24g_ch_update_map4
+0x487e mem_24g_disable_fec1
+0x487f mem_24g_pair_addr
+0x4883 mem_24g_pair_ch
+0x4884 mem_24g_pair_tx_power
+0x4885 mem_rssi_buff_index
+0x4886 mem_24g_device1_bind_step
+0x4887 mem_24g_device2_bind_step
+0x4888 mem_24g_bind_device_status
+0x4889 mem_24g_bind_payload
+0x4891 mem_cb_24g_receive_process
+0x4893 mem_cb_24g_ackpayload
+0x4895 mem_cb_24g_data_device1
+0x4897 mem_cb_24g_data_device2
+0x4899 mem_24g_rxdata_temp
+0x48bb mem_24g_abort_packet
+0x48bc mem_24g_hop_btclk
+0x48c0 mem_24g_hop_interval
+0x48c1 mem_24g_pair_mode
+0x48c2 mem_24g_ackpayload_enable
+0x48c3 mem_24g_hop_packet
+0x48c4 mem_24g_mode_switch
+0x48c5 mem_24g_nodata_timer_enable
+0x48c6 mem_24g_mode_init
+0x48c7 mem_24g_work_mode
+0x48c8 mem_24g_time_slice
+0x48c9 mem_24g_self_last_ch
+0x48ca mem_24g_self_ch_number
+0x48cb mem_24g_self_config_ch_once
+0x48cc mem_24g_device1_last_ch
+0x48cd mem_24g_device1_ch_number
+0x48ce mem_24g_device1_config_ch_once
+0x48cf mem_24g_device2_last_ch
+0x48d0 mem_24g_device2_ch_number
+0x48d1 mem_24g_device2_config_ch_once
+0x48d2 mem_24g_led_status
+0x48d3 mem_24g_bind_mode_continue
+0x48d4 mem_tx_power_temp
+0x48d5 mem_24g_mode_B_S_switch
+0x48d6 mem_24g_mode_B_S_switch_init
+0x48d7 mem_24g_mode_B_S_switch_cnt
+0x48d9 mem_24g_mode_B_S_switch_exit
+0x48da mem_24g_B_S_time_slice
+0x48db mem_24g_B_S_mode_switch_disable
+0x48dc mem_24g_bind_device_living
+0x48dd mem_24g_transmitter_addr
+0x48e1 mem_24g_device1_addr
+0x48e5 mem_24g_device2_addr
+0x48e9 mem_rssi_noise_avg
+0x48ea mem_rssi_noise_index
+0x48eb mem_rssi_noise_self_avg
+0x48ec mem_rssi_noise_device1_avg
+0x48ed mem_rssi_noise_device2_avg
+0x48ee mem_rssi_noise_self_index
+0x48ef mem_rssi_noise_device1_index
+0x48f0 mem_rssi_noise_device2_index
+0x48f1 mem_rssi_noise_buffer_ptr
+0x48f3 mem_rssi_noise_self_buffer_ptr
+0x48f5 mem_rssi_noise_device1_buffer_ptr
+0x48f7 mem_rssi_noise_device2_buffer_ptr
+0x48f9 mem_car_hard_soft_switch
+0x48fa mem_car_queue_each_size
+0x48fb mem_car__queue_length
+0x48fc mem_car_queue_curr_num
+0x48fd mem_car_queue_read_ptr
+0x48fe mem_car_queue_write_ptr
+0x48ff mem_car_queue_ele
+0x4977 mem_car_pop_queue_buff
+0x498b mem_car_led_num
+0x498c mem_car_led_map
+0x4996 mem_car_style1_led_type
+0x4997 mem_car_style1_blink_count
+0x4998 mem_car_style1_struct_led_gpio
+0x4999 mem_car_style1_on_time
+0x499b mem_car_style1_off_time
+0x499d mem_car_style1_cb_ledon
+0x499f mem_car_style1_cb_ledoff
+0x49a1 mem_car_style2_led_type
+0x49a2 mem_car_style2_blink_count
+0x49a3 mem_car_style2_struct_led_gpio
+0x49a4 mem_car_style2_on_time
+0x49a6 mem_car_style2_off_time
+0x49a8 mem_car_style2_cb_ledon
+0x49aa mem_car_style2_cb_ledoff
+0x49ac mem_le_receive_data
+0x49ac mem_le_receive_packet_head
+0x49ae mem_le_receive_cmd
+0x49af mem_le_receive_length
+0x49b1 mem_le_receive_payload
+0x49bb mem_le_receive_checksum
+0x49bc mem_motor1_status
+0x49bd mem_motor1_speed
+0x49be mem_motor2_status
+0x49bf mem_motor2_speed
+0x49c0 mem_motor3_status
+0x49c1 mem_motor3_speed
+0x49c2 mem_motor1_pwm_set
+0x49c2 mem_motor1_pwm_pin1_set
+0x49c3 mem_motor1_pwm_pin2_set
+0x49c4 mem_motor1_pwm_pin_set
+0x49c5 mem_motor1_pwm_channel_set
+0x49c6 mem_motor1_pwm_freq_set
+0x49c9 mem_motor1_pwm_dute_set
+0x49ca mem_motor2_pwm_set
+0x49ca mem_motor2_pwm_pin1_set
+0x49cb mem_motor2_pwm_pin2_set
+0x49cc mem_motor2_pwm_pin_set
+0x49cd mem_motor2_pwm_channel_set
+0x49ce mem_motor2_pwm_freq_set
+0x49d1 mem_motor2_pwm_dute_set
+0x49d2 mem_motor3_pwm_set
+0x49d2 mem_motor3_pwm_pin1_set
+0x49d3 mem_motor3_pwm_pin2_set
+0x49d4 mem_motor3_pwm_pin_set
+0x49d5 mem_motor3_pwm_channel_set
+0x49d6 mem_motor3_pwm_freq_set
+0x49d9 mem_motor3_pwm_dute_set
+0x49da mem_motor_select_p_n
+0x49db mem_car_motor_status
+0x49dc mem_car_motor_speed
+0x49dd mem_motor_pwm_set
+0x49dd mem_motor_pwm_pin1_set
+0x49de mem_motor_pwm_pin2_set
+0x49df mem_motor_pwm_pin_set
+0x49e0 mem_motor_pwm_channel_set
+0x49e1 mem_motor_pwm_freq_set
+0x49e4 mem_motor_pwm_dute_set
+0x49e5 mem_ir_rx_gpio
+0x49e6 mem_ir_data
+0x49e8 mem_ir_rx_buf
+0x49ea mem_ir_receive_clkn
+0x49ee mem_ir_notify_data
+0x49f1 mem_ir_notify_data_head
+0x49f6 mem_ir_notify_data_payload
+0x49f8 mem_ir_notify_data_check_sum
+0x49f9 mem_car_ir_breakdown_check_timer
+0x49fa mem_car_ir_breakdown_flag
+0x49fb mem_car_led_control
+0x49fb mem_car_led1_status
+0x49fc mem_car_led2_status
+0x49fd mem_car_led3_status
+0x49fe mem_car_led4_status
+0x49ff mem_car_led5_status
+0x4a00 mem_car_led6_status
+0x4a01 mem_car_led7_status
+0x4a02 mem_car_led8_status
+0x4a03 mem_car_led_control_timer
+0x4a04 mem_car_led_blink_status
+0x4a05 mem_car_led_no
+0x4a06 mem_car_info_request
+0x4a09 mem_car_info_request_head
+0x4a0e mem_car_info_request_payload
+0x4a16 mem_car_info_request_checksum
+0x4a17 mem_car_config_param
+0x4a17 mem_car_config_setting_flag
+0x4a18 mem_car_config_device_select
+0x4a19 mem_car_config_motor_layout
+0x4a1a mem_car_config_ir_enable
+0x4a1b mem_car_config_ir_rx_gpio
+0x4a1c mem_car_config_pairing_led_conn_status
+0x4a1d mem_car_config_pairing_led_gpio
+0x4a1e mem_car_config_led_num
+0x4a1f mem_car_config_blood_led_gpio
+0x4a1f mem_car_config_blood_led1_gpio
+0x4a20 mem_car_config_blood_led2_gpio
+0x4a21 mem_car_config_blood_led3_gpio
+0x4a22 mem_car_config_blood_led4_gpio
+0x4a23 mem_car_config_blood_led5_gpio
+0x4a24 mem_car_config_blood_led6_gpio
+0x4a25 mem_car_config_blood_led7_gpio
+0x4a26 mem_car_config_blood_led8_gpio
+0x4a27 mem_car_config_bat_notify_enable
+0x4a28 mem_car_config_low_voltage_led_gpio
+0x4a29 mem_car_config_low_voltage_percent
+0x4a2a mem_car_config_soft_switch_enable
+0x4a2b mem_car_config_soft_switch_gpio
+0x4a2c mem_car_notify_vdd_count
+0x4a2d mem_car_notify_vdd_timer
+0x4a2e mem_car_notify_vdd_value_last
+0x4a2f mem_car_notify_vdd_percent
+0x4a30 mem_car_working_flag
+0x4a31 mem_low_bat_flag
+0x4a32 mem_notify_bat_packet
+0x4a35 mem_notify_bat_head
+0x4a3a mem_notify_bat_payload
+0x4a3b mem_notify_bat_check_sum
+0x4a3c mem_vdd_notify_flag
+0x4a3d mem_car_current_vdd_value_temp
+0x4a3f mem_car_last_vdd_value
+0x4a41 mem_vdd_calculate_set
+0x4a41 mem_vdd_full_vol
+0x4a43 mem_vdd_empty_vol
+0x4a45 mem_vdd_low_vol
+0x4a47 mem_vdd_now_vol
+0x4a49 mem_car_24g_status
+0x4a4a mem_car_24g_no_data_timeout_count
+0x4a4c mem_car_24g_no_data_timeout_timer
+0x4a4e mem_car_24g_ir_receive_attack_count
+0x4a4f mem_car_24g_go_die_flag
+0x4a50 mem_car_attack_shake_timer
+0x4a51 mem_car_attack_shake_flag
+0x4a52 mem_car_soft_power
+0x4a52 mem_car_power_state
+0x4a53 mem_car_power_timer
+0x4a54 mem_car_power_off_timeout
+0x4a55 mem_car_power_starting_timeout
+0x4a56 mem_car_power_off_cb
+0x4a58 mem_car_power_starting_cb
+0x4a5a mem_car_power_standby_cb
+0x4a5c mem_car_ui_button_up_cb
+0x4a5e mem_car_le_att_list
+0x4c52 mem_car_moto1_blank_timer
+0x4c53 mem_car_moto2_blank_timer
+0x4c54 mem_car_moto3_blank_timer
+0x4c55 mem_car_motor_gpio_num
+0x4c56 mem_car_motor_gpio_map
+0x4c56 mem_car_motor_left_gpio
+0x4c57 mem_car_motor_right_gpio
+0x4c58 mem_car_motor_front_gpio
+0x4c59 mem_car_motor_back_gpio
+0x4c5a mem_car_gpio
+0x4c5b mem_car_app_send_speed
+0x4c5c mem_rssi_sum
+0x4c5e mem_check_rssi_high_count
+0x4c60 mem_rssi_data
+0x4c68 mem_car_24g_received_pac
+0x4c69 mem_car_24g_bind_enable_delay_count
+0x4c6a mem_car_keyscan
+0x4c6a mem_car_key_num
+0x4c6b mem_cb_car_keyscan
+0x4c6d mem_car_enter_lpm_timer_count
+0x4c6f mem_car_enter_lpm_timer
+0x4c71 mem_car_enter_lpm_flag
+0x4c72 mem_car_24g_ch_polling
+0x4c73 mem_car_rssi_noise_buffer
+0x4c7b mem_car_rssi_noise_car_buffer
+0x4c83 mem_car_rssi_noise_remote_buffer
+0x48f9 mem_dg_kb_bind_flag
+0x48fa mem_dg_kb_data_sta_data
+0x4902 mem_dg_kb_data_last_data
+0x490a mem_dg_kb_multikey_sta_data
+0x490d mem_dg_kb_multikey_last_data
+0x4910 mem_dg_kb_system_sta_data
+0x4913 mem_dg_kb_system_last_data
+0x4916 mem_dg_kb_blank_data_enable
+0x4917 mem_dg_kb_mul_blank_data_enable
+0x4918 mem_dg_ms_blank_data_enable
+0x4919 mem_dg_sys_config
+0x491a mem_dg_usb_vid_pid
+0x4923 mem_dg_usb_tx_interval
+0x4924 mem_dg_usb_device_name
+0x4942 mem_dg_kb_bind_success
+0x4943 mem_dg_pc_sleep_flag
+0x4886 mem_rssi_hex_received
+0x4887 mem_24g_pair_sm
+0x4888 mem_24g_pair_no_ack
+0x4889 mem_24g_pair_timeout_init
+0x488b mem_24g_pair_timeout
+0x488d mem_24g_reconn_timeout_init
+0x488f mem_24g_reconn_timeout
+0x4891 mem_24g_reconn_count
+0x4893 mem_24g_reconn_type
+0x4894 mem_24g_fast_conn_enable
+0x4895 mem_24g_fast_conn_addr
+0x4899 mem_24g_receiver_addr
+0x489d mem_24g_fast_conn_temp_ch
+0x489e mem_24g_receiver_temp_ch
+0x489f mem_24g_device_temp_ch
+0x48a0 mem_rssi_signal_index
+0x48a1 mem_rssi_signal_buf_ptr
+0x48a3 mem_cb_24g_transmit_data
+0x48a5 mem_cb_24g_search_receiver
+0x48a7 mem_cb_24g_lpm_before
+0x48a9 mem_24g_conn_sm
+0x48aa mem_24g_ensure
+0x48ab mem_24g_txfail_cnt
+0x48ad mem_24g_attempt_fail_flag
+0x48ae mem_24g_retry
+0x48af mem_24g_abort_pac
+0x48b0 mem_24g_max_retry
+0x48b1 mem_24g_device_addr
+0x48b5 mem_24g_short_sleep_set
+0x48b8 mem_24g_long_sleep_set
+0x48c0 mem_24g_long_sleep_set1
+0x48c4 mem_24g_pac_index
+0x48c5 mem_24g_transmit_by_interrupt
+0x48c6 mem_24g_transmit_by_interrupt_exit_count
+0x48c8 mem_24g_transmit_by_interrupt_exit_count_init
+0x48ca mem_24g_long_sleep_param_update_timer_init
+0x48cc mem_24g_long_sleep_param_update_timer
+0x48ce mem_24g_fast_hop_count
+0x48cf mem_rssi_avg_received
+0x48d0 mem_power_ctrl_level
+0x48d1 mem_power_ctrl_pac_succ_cnt
+0x48d2 mem_power_ctrl_pac_succ_cnt_init
+0x48d3 mem_rssi_dis_min_24g
+0x48d4 mem_rssi_dis_max_24g
+0x48d5 mem_rssi_hex_received_max_value
+0x48d6 mem_rssi_dis_min_ble
+0x48d7 mem_rssi_dis_max_ble
+0x48d8 mem_mouse_key
+0x48d9 mem_mouse_x
+0x48db mem_mouse_y
+0x48dd mem_mouse_z
+0x48de mem_mouse_tz
+0x48df mem_mouse_xy_h
+0x48e0 mem_mouse_key_last
+0x48e1 mem_wheel_tb_old_pinlevel
+0x48e2 mem_wheel_tb_new_pinlevel
+0x48e3 mem_wheel_tog
+0x48e4 mem_mouse_tz_data
+0x48e5 mem_mwheel_b_old_pinlevel
+0x48e6 mem_mwheel_b_new_pinlevel
+0x48e7 mem_mwheel_tog
+0x48e8 mem_mouse_z_data
+0x48e9 mem_mouse_wheel_trigger
+0x48ea mem_mouse_wheel_trigger_timer
+0x48eb mem_mouse_vdd_calculate_set
+0x48eb mem_mouse_vdd_full_vol
+0x48ed mem_mouse_vdd_empty_vol
+0x48ef mem_mouse_vdd_low_vol
+0x48f1 mem_mouse_vdd_now_vol
+0x48f3 mem_mouse_vdd_button_press_vol
+0x48f5 mem_mouse_vdd_switch_gnd_24g_vol
+0x48f7 mem_mouse_vdd_switch_gnd_full_vol
+0x48f9 mem_mouse_vdd_switch_gnd_shutdown_voltage
+0x48fb mem_mouse_vdd_switch_gnd_low_voltage
+0x48fd mem_adc_mux_status
+0x48fe mem_adc_read_timer
+0x48ff mem_adc_read_time_init
+0x4900 mem_adc_low_volatage_led_timer_count
+0x4901 mem_adc_low_volatage_led_blink_enable
+0x4902 mem_mouse_adc_last_low_voltage_flag
+0x4903 mem_mouse_adc_button_press_flag
+0x4904 mem_adc_channel_gpio
+0x4905 mem_adc_config_flag_init
+0x4906 mem_mouse_discovery_timeout
+0x4908 mem_mouse_24g_pair_timeout_init
+0x490a mem_mouse_direct_timeout
+0x490b mem_mouse_24g_reconn_timeout_init
+0x490c mem_mouse_24g_pair_tx_power
+0x490d mem_rssi_dis_min_24g_init
+0x490e mem_rssi_dis_max_24g_init
+0x490f mem_rssi_hex_received_max_value_init
+0x4910 mem_rssi_dis_min_ble_init
+0x4911 mem_rssi_dis_max_ble_init
+0x4912 mem_mouse_enable_flag
+0x4913 mem_mouse_param_config
+0x4913 mem_lbutton_gpio
+0x4914 mem_mbutton_gpio
+0x4915 mem_rbutton_gpio
+0x4916 mem_bk_button_gpio
+0x4917 mem_fw_button_gpio
+0x4918 mem_dpi_button_gpio
+0x4919 mem_whee_a_data_gpio
+0x491a mem_whee_b_data_gpio
+0x491b mem_mouse_sensor_sclk_gpio
+0x491c mem_mouse_sensor_sdio_gpio
+0x491d mem_select_sensor_angle_gpio
+0x491e mem_sensor_angle_default
+0x491f mem_sensor_angle_switch
+0x4920 mem_config_sensor_dpi
+0x4921 mem_whee_ta_data_gpio
+0x4922 mem_whee_tb_data_gpio
+0x4923 mem_matrix_public_gpio
+0x4924 mem_config_select_device_button_gpio
+0x4925 mem_customer_key_gpio
+0x4926 mem_sensor_motion_gpio
+0x4927 mem_device_switch_gpio
+0x4928 mem_mouse_reuse_2ice_gpio
+0x4929 mem_config_low_voltage_alarm_gpio
+0x492a mem_config_device_24g_led_gpio
+0x492b mem_config_device_bt1_led_gpio
+0x492c mem_config_device_bt2_led_gpio
+0x492d mem_dpi_led_gpio
+0x492e mem_mouse_param_config_end
+0x492e mem_config_sensor_type
+0x492f mem_config_sensor_angle
+0x4930 mem_wire_usb_interval
+0x4931 mem_usb_addr
+0x4932 mem_mouse_usb_vdd_status
+0x4933 mem_mouse_usb_keyboard_flag
+0x4934 mem_mouse_led_type
+0x4935 mem_mouse_blink_count
+0x4936 mem_mouse_struct_led_gpio
+0x4937 mem_mouse_on_time
+0x4939 mem_mouse_off_time
+0x493b mem_mouse_cb_ledon
+0x493d mem_mouse_cb_ledoff
+0x493f mem_mouse_information_start
+0x493f mem_device_flag
+0x4940 mem_device1_type
+0x4941 mem_device1_addr
+0x4947 mem_device1_link_key
+0x4957 mem_device1_locall_addr
+0x495d mem_device2_type
+0x495e mem_device2_addr
+0x4964 mem_device2_link_key
+0x4974 mem_device2_locall_addr
+0x497a mem_device3_type
+0x497b mem_mouse_compare_addr_ff
+0x497b mem_device3_addr
+0x4981 mem_device3_link_key
+0x4991 mem_device3_locall_addr
+0x4997 mem_store_flag
+0x4999 mem_mouse_dpi
+0x499a mem_mouse_24g_addr
+0x499e mem_random_addr_increase_count
+0x49a0 mem_mouse_retention
+0x49bf mem_mouse_information_end
+0x49bf mem_flash_base
+0x49c2 mem_write_flash_head_temp
+0x49c6 mem_store_information_delay_timer
+0x49c7 mem_store_information_delay_timer_init
+0x49c8 mem_sensor_id1
+0x49c9 mem_sensor_id2
+0x49ca mem_sensor_shutter_hi
+0x49cb mem_sensor_shutter_lo
+0x49cc mem_sensor_smart_flag
+0x49cd mem_sensor_squal_reg
+0x49ce mem_sensor_iqc
+0x49cf mem_mouse_move_flag
+0x49d0 mem_mouse_asm_flag
+0x49d1 mem_mouse_x_pre
+0x49d3 mem_mouse_y_pre
+0x49d5 mem_mouse_data_xtemp
+0x49d6 mem_mouse_data_ytemp
+0x49d7 mem_mouse_dpi_seting
+0x49d7 mem_320x_dpi_0
+0x49d8 mem_320x_dpi_1
+0x49d9 mem_320x_dpi_2
+0x49da mem_320x_dpi_3
+0x49db mem_3212_dpi_0
+0x49dc mem_3212_dpi_1
+0x49dd mem_3212_dpi_2
+0x49de mem_3212_dpi_3
+0x49df mem_ka8g2_dpi_0
+0x49e0 mem_ka8g2_dpi_1
+0x49e1 mem_ka8g2_dpi_2
+0x49e2 mem_ka8g2_dpi_3
+0x49e3 mem_mouse_cpi_count
+0x49e4 mem_mouse_dpi_button_state
+0x49e5 mem_mouse_dpi_long_press_flag
+0x49e6 mem_sensor_3212_init
+0x49f0 mem_sensor_3204_init
+0x49fa mem_sensor_3205_init
+0x4a04 mem_sensor_32xx_init
+0x4a1e mem_sensor_32xx_init_1
+0x4a40 mem_sensor_8650_init
+0x4a66 mem_sensor_ka8ul_init
+0x4a84 mem_sensor_8009_init
+0x4a94 mem_sensor_ka8g2_init
+0x4aaa mem_sensor_p6520_init
+0x4ab6 mem_sensor_poweron_init
+0x4abe mem_mouse_clear_sensor_data_flag
+0x4abf mem_bluetooth_125hz_cnt
+0x4ac0 mem_mouse_long_mult_flag
+0x4ac1 mem_mouse_current_mult_timer
+0x4ac2 mem_reconn_times
+0x4ac3 mem_reconn_times_init
+0x4ac4 mem_mouse_no_data_timer
+0x4ac6 mem_device_flag_temp
+0x4ac7 mem_mouse_rssi_signal_buf
+0x4acf mem_btclk_sensor
+0x4ad3 mem_mouse_bluetooth_fast_conn_flag
+0x4ad4 mem_mouse_discovery_timer
+0x4ad6 mem_mouse_bluetooth_reconnect_timeout
+0x4ad7 mem_mouse_need_soft_reset
+0x4ad8 mem_mouse_le_bb_connected_flag
+0x4ad9 mem_mouse_le_reconnect_flag
+0x4ada mem_mouse_send_secutiry_request_timer
+0x4adb mem_mouse_le_lap_temp
+0x4ade mem_le_adv_ind
+0x4ae1 mem_le_adv_direct_ind
+0x4ae4 mem_le_adv_swift_pair
+0x4af8 mem_le_data_len
+0x4af9 mem_le_keyboard_handle
+0x4afb mem_le_multimedia_handle
+0x4afd mem_le_systemctrl_handle
+0x4aff mem_le_battery_level_handle
+0x4b01 mem_le_battery_level_percentage
+0x4b02 mem_le_battery_level_updata_timer_init
+0x4b04 mem_le_battery_level_updata_timer
+0x4b06 mem_mouse_le_conn_param_reject
+0x4b07 mem_le_tx_buffer0_omemalloc
+0x4b27 mem_le_tx_buffer1_omemalloc
+0x4b47 mem_le_tx_buffer2_omemalloc
+0x4b67 mem_le_tx_buffer3_omemalloc
+0x4b87 mem_le_connect_status_flag
+0x4b88 mem_le_start_encrypt_timer
+0x4b89 mem_mouse_direct_timer
+0x4b8a mem_device_addr_temp
+0x4b91 mem_mouse_enter_sniff_count
+0x4b92 mem_mouse_bt_boot_mode
+0x4b93 mem_mouse_bt_boot_data
+0x4b98 mem_bt_send_max_slot_req_accept_after_switch
+0x4b99 mem_mouse_bt_send_first_package_timer
+0x4b9a mem_mouse_bt_send_first_package_flag
+0x4b9b mem_lmi_opcode_temp
+0x4b9c mem_lpm_mult_init
+0x4b9d mem_customer_key
+0x4b9e mem_customer_data_trigger
+0x4b9f mem_customer_data_trigger_last
+0x4ba0 mem_mouse_lkey_press_status
+0x4ba1 mem_mouse_rkey_press_status
+0x4ba2 mem_mouse_mkey_press_status
+0x4ba3 mem_mouse_bkkey_press_status
+0x4ba4 mem_mouse_fwkey_press_status
+0x4ba5 mem_mouse_dpikey_press_status
+0x4ba6 mem_mouse_pbkey_press_status
+0x4ba7 mem_mouse_customerkey_press_status
+0x4ba8 mem_mouse_key_temp
+0x4ba9 mem_mouse_key_status
+0x4baa mem_mouse_matrix_key_cow_count
+0x4bab mem_mouse_matrix_key_row_count
+0x4bac mem_mouse_ghost_flag
+0x4bad mem_bt_discovery_count
+0x4bae mem_select_device_count
+0x4baf mem_mouse_commbination_key
+0x4bb0 mem_select_device_button_statue
+0x4bb1 mem_commbination_key_statue
+0x4bb2 mem_combination_ui_button_count
+0x4bb3 mem_mouse_search_dongle_interval
+0x4bb4 mem_mouse_search_dongle_ch
+0x4bb5 mem_mouse_search_dongle_count
+0x4bb6 mem_mouse_search_dongle_action
+0x4bb7 mem_24g_enter_lpm_timer
+0x4bb8 mem_mouse_24g_enter_lpm_enable
+0x4bb9 mem_mouse_device_poweron_timer_count
+0x4bba mem_mouse_dpi_led_delay_count
+0x4bbb mem_mouse_led_off_4_led
+0x4bbc mem_24g_device_led_status
+0x4bbd mem_mouse_flag
+0x4bc5 mem_mouse_bluetooth_type
+0x4bc6 mem_device_number
+0x4bc7 mem_mouse_page_to
+0x4bc9 mem_mouse_fast_direct_timeout
+0x4bca mem_mouse_fast_page_to
+0x4bcc mem_mouse_24g_power_on_fast_conn_timer
+0x4bce mem_mouse_24g_search_dongle_time_init
+0x4bd0 mem_mouse_no_data_timeout
+0x4bd2 mem_mouse_device_poweron_timer_count_init
+0x4bd3 mem_mouse_dpi_led_delay_count_init
+0x4bd4 mem_mouse_dpi_led_blink_time
+0x4bd6 mem_mouse_disconvey_led_blink_time
+0x4bd8 mem_mouse_low_v_led_blink_time
+0x4bda mem_adc_low_volatage_led_blink_timer
+0x4bdc mem_mouse_commbination_key_bt
+0x4bdd mem_mouse_commbination_key_24g
+0x4bde mem_customer_key_press
+0x4be7 mem_customer_key_release
+0x4bf0 mem_mouse_set_high_impedance_bit_set
+0x4bf3 mem_sensor_shutdown_flag
+0x4bf4 mem_24g_long_sleep_set_level
+0x4bf5 mem_power_on_flag
+0x4bf6 mem_24g_pair_count
+0x4bf8 mem_24g_pair_time_out
+0x4bf9 mem_mouse_factory_addr
+0x4c01 mem_keyboard_tx_data
+0x4c0b mem_keyboard_data_send_flag
+0x4c0c mem_mouse_le_send_conn_param_update
+0x4c0d mem_mouse_le_send_conn_param_update_timer
+0x4c0e mem_mcu_stb_gpio
+0x4c0f mem_mcu_clk_gpio
+0x4c10 mem_mcu_rstb_gpio
+0x4c11 mem_keyboard_caps_led_gpio
+0x4c12 mem_keyboard_num_led_gpio
+0x4c13 mem_keyboard_power_led_gpio
+0x4c14 mem_keyboard_caps_led_on_timer
+0x4c16 mem_keyboard_mode_led_on_timer
+0x4c17 mem_keyboard_led_r_gpio
+0x4c18 mem_keyboard_led_g_gpio
+0x4c19 mem_keyboard_led_b_gpio
+0x4c1a mem_key_row_gpio
+0x4c22 mem_key_col_gpio
+0x4c36 mem_key_excol_gpio
+0x4c42 mem_kb_row_ptr
+0x4c44 mem_kb_col_ptr
+0x4c46 mem_kb_excol_ptr
+0x4c48 mem_keyscan_value_current
+0x4c5c mem_keyscan_value_check
+0x4c70 mem_keyscan_value_old
+0x4c84 mem_keyscan_exmcu_value
+0x4c8f mem_keyscan_value_ptr
+0x4c91 mem_keyscan_exmcu_value_ptr
+0x4c93 mem_keyscan_value_temp
+0x4c94 mem_keyscan_col_loop_count
+0x4c95 mem_keyscan_exmcu_wait_wake_count
+0x4c97 mem_keyscan_exmcu_reset_count
+0x4c98 mem_same_keyvalue_timerout_flag
+0x4c99 mem_same_keyvalue_timer_init
+0x4c9b mem_same_keyvalue_timer
+0x4c9d mem_keyboard_current_col_press_key_count
+0x4c9e mem_keyboard_all_press_key_count
+0x4c9f mem_keyboard_same_row_press_key_count
+0x4ca0 mem_keyboard_ghost_flag
+0x4ca1 mem_keyboard_data_change_flag
+0x4ca2 mem_keyboard_keyvalue_temp
+0x4ca3 mem_keyboard_press_flag_temp
+0x4ca4 mem_keyboard_keyvalue_bit_loop_count
+0x4ca5 mem_keyboard_keyvalue_buffer
+0x4cae mem_keyboard_keyvalue_map
+0x4d4e mem_keyboard_fn_flag
+0x4d4f mem_keyboard_control_key_flag
+0x4d50 mem_keyboard_bt_button_flag
+0x4d51 mem_keyboard_pairing_type
+0x4d52 mem_keyboard_commbination_key_bt
+0x4d54 mem_keyboard_commbination_key_24g
+0x4d56 mem_keyboard_commbination_fast_conn_bt
+0x4d58 mem_24g_repeat_send_flag
+0x4d59 mem_keyboard_led_status
+0x4d5a mem_keyboard_led_status_get
+0x4d5b mem_keyboard_led_status_get_timer
+0x4d5c mem_keyboard_led_status_get_timer_last
+0x4d5d mem_keyboard_fn_esc_f1_f12
+0x4d5d mem_keyboard_fn_first
+0x4d5e mem_keyboard_fn_esc
+0x4d5f mem_keyboard_fn_f1
+0x4d60 mem_keyboard_fn_f2
+0x4d61 mem_keyboard_fn_f3
+0x4d62 mem_keyboard_fn_f4
+0x4d63 mem_keyboard_fn_f5
+0x4d64 mem_keyboard_fn_f6
+0x4d65 mem_keyboard_fn_f7
+0x4d66 mem_keyboard_fn_f8
+0x4d67 mem_keyboard_fn_f9
+0x4d68 mem_keyboard_fn_f10
+0x4d69 mem_keyboard_fn_f11
+0x4d6a mem_keyboard_fn_f12
+0x4d6b mem_keyboard_fn_del
+0x4d6c mem_keyboard_fn_arrow_enable_flag
+0x4d6d mem_keyboard_fn_left_ctrl_enable_flag
+0x4d6e mem_keyboard_fn_space_enable_flag
+0x4d6f mem_keyboard_fn_system_switch_enable_flag
+0x4d70 mem_keyboard_commbination_key_step
+0x4d71 mem_keyboard_commbination_control_key_value
+0x4d72 mem_keyboard_commbination_standard_key_value
+0x4d73 mem_keyboard_commbination_control_key_delay_release_timer
+0x4d74 mem_keyboard_consumer_key_status
+0x4d75 mem_keyboard_le_map_len
+0x4d77 mem_keyboard_ui_uuid_table
+0x4ecb mem_keyboard_le_hid_map
+0x4fa7 mem_keybord_appearance
+0x4fa9 mem_kb_computer_system
+0x4faa mem_otp_read_retention_memory
+0x4fc2 mem_otp_read_retention_offset
+0x4fc4 mem_le_search_service_uuid
+0x4fd4 mem_le_connect_ios_mac_flag
+0x4fd5 mem_le_search_mac_uuid
+0x4fd7 mem_le_search_mac_manu_name
+0x4fe0 mem_le_start_auto_reco_timer
+0x4fe1 mem_keyboard_change_vid_pid_flag
+0x4fe2 mem_keybaord_pnp_vid_source
+0x4fe3 mem_keyboard_vid
+0x4fe5 mem_keyboard_pid
+0x4fe7 mem_keyboard_product_version
+0x4fe9 mem_keyboard_commbination_long_press_timer_init
+0x4fea mem_keyboard_commbination_long_press_timer
+0x4feb mem_keyboard_commbination_long_press_flag
+0x48d8 mem_remote_car_hard_soft_switch
+0x48d9 mem_remote_car_queue_each_size
+0x48da mem_remote_car_queue_length
+0x48db mem_remote_car_queue_curr_num
+0x48dc mem_remote_car_queue_read_ptr
+0x48dd mem_remote_car_queue_write_ptr
+0x48de mem_remote_car_queue_ele
+0x4938 mem_remote_style_led_type
+0x4939 mem_remote_style_blink_count
+0x493a mem_remote_style_struct_led_gpio
+0x493b mem_remote_style_on_time
+0x493d mem_remote_style_off_time
+0x493f mem_remote_style_cb_ledon
+0x4941 mem_remote_style_cb_ledoff
+0x4943 mem_remote_car_led_num
+0x4944 mem_remote_car_led_map
+0x494c mem_remote_car_keyscan
+0x494c mem_remote_car_key_num
+0x494d mem_cb_remote_car_keyscan
+0x494f mem_remote_car_key_conf0
+0x494f mem_remote_car_key_conf0_pin
+0x4950 mem_remote_car_key_conf1
+0x4950 mem_remote_car_key_conf1_pin
+0x4951 mem_remote_car_key_conf2
+0x4951 mem_remote_car_key_conf2_pin
+0x4952 mem_remote_car_key_conf3
+0x4952 mem_remote_car_key_conf3_pin
+0x4953 mem_remote_car_key_conf4
+0x4953 mem_remote_car_key_conf4_pin
+0x4954 mem_remote_car_key_conf5
+0x4954 mem_remote_car_key_conf5_pin
+0x4955 mem_remote_car_key_conf6
+0x4955 mem_remote_car_key_conf6_pin
+0x4956 mem_rocker_negative_flag
+0x4957 mem_rocker_work_status
+0x4958 mem_current_vdd_value_default_mid_x
+0x495a mem_current_vdd_value_default_mid_y
+0x495c mem_current_vdd_value_default_mid_temp
+0x495e mem_current_vdd_default_range
+0x4960 mem_rocker_last_status
+0x4962 mem_rocker_status
+0x4962 mem_rocker_x_status
+0x4963 mem_rocker_y_status
+0x4964 mem_remote_car_config_param
+0x4964 mem_remote_car_config_setting_flag
+0x4965 mem_remote_car_config_key_map
+0x4966 mem_remote_car_config_layout
+0x4967 mem_remote_car_config_connect_led_gpio
+0x4968 mem_remote_car_config_check_way
+0x4969 mem_remote_car_config_soft_switch_enable
+0x496a mem_remote_car_config_soft_switch_gpio
+0x496b mem_remote_car_config_timeout_shutdown_enable
+0x496c mem_remote_car_24g_motor_packet
+0x496c mem_remote_car_24g_motor_packet_lenght
+0x496d mem_remote_car_24g_motor_send_packet_head
+0x496f mem_remote_car_24g_motor_send_cmd
+0x4970 mem_remote_car_24g_motor_send_length
+0x4972 mem_remote_car_24g_motor_send_payload
+0x4972 mem_remote_car_24g_motor1_payload
+0x4974 mem_remote_car_24g_motor2_payload
+0x4976 mem_remote_car_24g_motor3_payload
+0x4978 mem_remote_car_24g_motor_send_checksum
+0x4979 mem_remote_car_24g_fire_packet
+0x4979 mem_remote_car_24g_fire_packet_lenght
+0x497a mem_remote_car_24g_fire_send_packet_head
+0x497c mem_remote_car_24g_fire_send_cmd
+0x497d mem_remote_car_24g_fire_send_length
+0x497f mem_remote_car_24g_fire_send_payload
+0x4981 mem_remote_car_24g_fire_send_checksum
+0x4982 mem_remote_car_24g_tx_temp
+0x4991 mem_remote_car_no_data_timeout
+0x4993 mem_remote_car_no_data_timer
+0x4995 mem_remote_car_soft_power
+0x4995 mem_remote_car_power_state
+0x4996 mem_remote_car_power_timer
+0x4997 mem_remote_car_power_off_timeout
+0x4998 mem_remote_car_power_starting_timeout
+0x4999 mem_remote_car_power_off_cb
+0x499b mem_remote_car_power_starting_cb
+0x499d mem_remote_car_power_standby_cb
+0x499f mem_remote_key_status
+0x49a0 mem_remote_car_24g_status
+0x49a1 mem_remote_car_24g_auto_work_step
+0x49a2 mem_remote_car_24g_pair_success_flag
+0x49a3 mem_remote_car_empty_packet
+0x49a4 mem_remote_car_motor1_key0_press_state
+0x49a5 mem_remote_car_motor1_key1_press_state
+0x49a6 mem_remote_car_motor2_key2_press_state
+0x49a7 mem_remote_car_motor2_key3_press_state
+0x49a8 mem_remote_car_motor1_rel_state
+0x49a9 mem_remote_car_motor2_rel_state
+0x49aa mem_remote_car_no_data_check
+0x47ab mem_hci_uart_tx_gpio
+0x47ac mem_hci_uart_rx_gpio
+0x47ad mem_hci_uart_rts_gpio
+0x47ae mem_hci_uart_cts_gpio
+0x47af mem_hci_pwm_12mhz_gpio
+0x47ab mem_soft_version_num
+0x47ad mem_module_wake_up_gpio
+0x47ae mem_module_state_gpio
+0x47af mem_module_connect_state_gpio
+0x47b0 mem_current_packet_length
+0x47b2 mem_module_state
+0x47b3 mem_module_mcu_wake_pin
+0x47b4 mem_module_mcu_wake_delay_us
+0x47b8 mem_module_spp_lpm_mult
+0x47b9 mem_module_le_lpm_mult
+0x47ba mem_module_bluetooth_stauts_by_command
+0x47bb mem_module_uart_rx_buffer
+0x47bd mem_module_uart_rx_buffer_end
+0x47bf mem_module_uart_tx_buffer
+0x47c1 mem_module_uart_tx_buffer_end
+0x47c3 mem_module_uarta_baud_rate
+0x47c5 mem_module_read_vdd_flag
+0x47c6 mem_module_read_vdd_count
+0x47c7 mem_module_vdd_quotient
+0x47c8 mem_module_vdd_remainder
+0x47c9 mem_module_ble_data_uart_max_length
+0x47ca mem_module_flag
+0x47cc mem_module_hci_notify_len
+0x47cd mem_module_hci_notify_handle
+0x47cf mem_module_hci_nofiy_addr
+0x47d1 mem_module_hci_notify_type
+0x47d2 mem_last_transmite_clock
+0x47d6 mem_module_uuid_list
+0x4902 mem_module_uuid_list_end
+0x4902 mem_module_le_att_list
+0x4b5a mem_module_le_att_list_end
+0x4b5a mem_module_nv_data
+0x4b5a mem_module_nv_data0
+0x4b7c mem_module_nv_data1
+0x4b9e mem_module_nv_data2
+0x4bc0 mem_module_nv_data3
+0x4be2 mem_module_nv_data4
+0x4c04 mem_module_nv_data_end
+0x47ab mem_shutter_bluetooth_type
+0x47ac mem_shutter_config_eeprom_offset_addr
+0x47ae mem_shutter_config_eeprom_start_flag
+0x47b0 mem_shutter_config_user_size
+0x47b1 mem_shutter_config_label
+0x47b2 mem_shutter_config_otp_addr
+0x47b4 mem_classic_shutter_cable_unplug_conut
+0x47b5 mem_classic_shutter_hid_disconn_count
+0x47b6 mem_classic_shutter_random_mac_offset_addr
+0x47b8 mem_ble_shutter_enable_notify
+0x47b9 mem_ble_shutter_reconn_adv_interval
+0x47bb mem_ble_shutter_discovery_adv_interval
+0x47bd mem_ble_shutter_reconn_timeout
+0x47bf mem_ble_shutter_reconn_timer
+0x47c1 mem_ble_shutter_reconn_blink_on_time
+0x47c3 mem_ble_shutter_reconn_blink_off_time
+0x47c5 mem_ble_shutter_discovery_blink_on_time
+0x47c7 mem_ble_shutter_discovery_blink_off_time
+0x47c9 mem_ble_shutter_interval_min
+0x47cb mem_ble_shutter_interval_max
+0x47cd mem_ble_shutter_latency
+0x47cf mem_ble_shutter_timeout
+0x47d1 mem_ble_shutter_interval_min_new
+0x47d3 mem_ble_shutter_interval_max_new
+0x47d5 mem_ble_shutter_latency_new
+0x47d7 mem_ble_shutter_timeout_new
+0x47d9 mem_classic_shutter_discovery_timeout
+0x47db mem_classic_shutter_connect_timeout
+0x47dd mem_ble_shutter_discovery_timeout
+0x47df mem_ble_shutter_connect_timeout
+0x47e1 mem_shutter_sleep_timeout
+0x47e3 mem_shutter_sleep_timer
+0x47e5 mem_shutter_hard_soft_switch_case
+0x47e6 mem_shutter_soft_switch_button_gpio
+0x47e7 mem_shutter_soft_switch_power_state
+0x47e8 mem_shutter_soft_switch_poweron_time
+0x47e9 mem_shutter_soft_switch_poweroff_time
+0x47ea mem_shutter_soft_switch_poweron_callback_function
+0x47ec mem_shutter_soft_switch_poweroff_callback_function
+0x47ee mem_shutter_keyscan
+0x47ee mem_shutter_key_num
+0x47ef mem_cb_shutter_keycan
+0x47f1 mem_shutter_key_conf0
+0x47f2 mem_shutter_key_conf1
+0x47f3 mem_shutter_key_conf2
+0x47f4 mem_shutter_key_conf3
+0x47f5 mem_shutter_key_conf4
+0x47f6 mem_shutter_key_conf5
+0x47f7 mem_shutter_key_conf6
+0x47f8 mem_shutter_key_conf7
+0x47f9 mem_key0_press
+0x47fe mem_key1_press
+0x4803 mem_key2_press
+0x4808 mem_key3_press
+0x480d mem_key4_press
+0x4812 mem_key5_press
+0x4817 mem_key6_press
+0x481c mem_key7_press
+0x4821 mem_key0_release
+0x4826 mem_key1_release
+0x482b mem_key2_release
+0x4830 mem_key3_release
+0x4835 mem_key4_release
+0x483a mem_key5_release
+0x483f mem_key6_release
+0x4844 mem_key7_release
+0x4849 mem_ble_data_buffer1
+0x484e mem_ble_data_buffer2
+0x4853 mem_ble_data_buffer3
+0x4858 mem_ble_data_buffer4
+0x485d mem_ble_data_buffer5
+0x4862 mem_ble_data_buffer6
+0x4867 mem_ble_data_buffer7
+0x486c mem_ble_data_buffer8
+0x4871 mem_ble_data_buffer9_58
+0x48a3 mem_classic_data_buffer
+0x48a8 mem_classic_data_buffer1
+0x48ad mem_classic_data_buffer2
+0x48b2 mem_classic_data_buffer3
+0x48b7 mem_classic_data_buffer4
+0x48bc mem_classic_data_buffer5
+0x48c1 mem_classic_data_buffer6
+0x48c6 mem_classic_data_buffer7
+0x48cb mem_classic_data_buffer8
+0x48d0 mem_classic_data_buffer9_58
+0x4902 mem_queue_each_size
+0x4903 mem_queue_length
+0x4904 mem_queue_curr_num
+0x4905 mem_queue_read_ptr
+0x4906 mem_queue_write_ptr
+0x4907 mem_queue_ele
+0x4927 mem_shutter_nv_data
+0x49d1 mem_shutter_led_struct_app_led
+0x49d1 mem_shutter_led_struct_app_led_type
+0x49d2 mem_shutter_led_struct_app_led_blink_count
+0x49d3 mem_shutter_led_struct_app_led_gpio
+0x49d4 mem_shutter_led_struct_app_led_on_time
+0x49d6 mem_shutter_led_struct_app_led_off_time
+0x49d8 mem_shutter_led_struct_app_led_on_callback
+0x49da mem_shutter_led_struct_app_led_off_callback
+0x49dc mem_shutter_power_off_led_style
+0x49dc mem_shutter_power_off_led_style_type
+0x49dd mem_shutter_power_off_led_style_blink_count
+0x49de mem_shutter_power_off_led_style_gpio
+0x49df mem_shutter_power_off_led_style_on_time
+0x49e1 mem_shutter_power_off_led_style_off_time
+0x49e3 mem_shutter_power_off_led_style_on_callback
+0x49e5 mem_shutter_power_off_led_style_off_callback
+0x49e7 mem_shutter_soft_swtich_botton_down
+0x49e8 mem_shutter_soft_swtich_led_struct_temp
+0x49f3 mem_shutter_power_off_timeout
+0x49f4 mem_shutter_power_off_timer
+0x49f5 mem_shutter_key_conf0_temp
+0x49f7 mem_shutter_led_struct_app_led_gpio_temp
+0x49f8 mem_shutter_hard_soft_switch_case_temp
+0x49f9 mem_shutter_soft_switch_button_gpio_temp
+
+0x4b65 mem_mesh_unsegmented_access_lower_transport_layer_head
+0x4b66 mem_mesh_unsegmented_access_lower_transport_layer_parameters
+0x4b71 mem_mesh_unsegmented_access_lower_transport_layer_mic
+0x4b65 mem_mesh_segmented_access_lower_transport_layer_head
+0x4b66 mem_mesh_segmented_access_lower_transport_layer_SZMIC_SeqZero_SegO_SegN
+0x4b69 mem_mesh_segmented_access_lower_transport_layer_parameters
+0x4b71 mem_mesh_segmented_access_lower_transport_layer_mic
+0x48e9 mem_k2_EncryptionKey
+0x48d9 mem_k2_PrivacyKey
+
+	width = 32
+	const length = 12000
+
+	
+
+
+
+
+
+(//mem_system_clk
+12 SYSTEM_CLK_12M
+24 SYSTEM_CLK_24M
+)
+
+(//bluetooth tx power
+0x00 TX_POWER_0DB
+0x03 TX_POWER_3DB
+0x05 TX_POWER_5DB
+0x06 TX_POWER_6DB
+0x07 TX_POWER_7DB
+0x0a TX_POWER_10DB
+
+0x83 TX_POWER_F3DB
+0x85 TX_POWER_F5DB
+0x94 TX_POWER_F20DB
+0x9e TX_POWER_F30DB
+0x9f TX_POWER_F25DB
+)
+
+
+	
+(
+0x01 coffset_mode
+0x02 coffset_tsniff
+0x04 coffset_sniff_anchor
+0x08 coffset_clk_offset
+0x0e coffset_rx_window
+0x10 coffset_plap
+0x16 coffset_conn_handle
+0x17 coffset_arq
+	
+0x18 coffset_lmp_to_send
+0x1b coffset_op
+0x1c coffset_state_map
+	
+0x18 coffset_le_ch
+0x19 coffset_le_hop
+0x1a coffset_le_event_cnt
+0x1c coffset_le_supervision_timer
+0x20 coffset_le_instant
+0x22 coffset_le_channels
+0x23 coffset_le_op
+0x24 coffset_le_access
+0x28 coffset_le_crcinit
+0x2b coffset_le_window_size
+0x2c coffset_le_slave_latency
+0x2e coffset_le_slave_superto
+0x30 coffset_le_channel_map
+0x35 coffset_le_rx_phy
+0x36 coffset_le_tx_phy
+0x37 coffset_le_new_map
+0x37 coffset_le_new_m2s_phy
+0x38 coffset_le_new_s2m_phy
+0x37 coffest_le_new_transmitwindowsize
+0x38 coffest_le_new_transmitwindowoffset
+0x3a coffest_le_new_conninterval
+0x3c coffest_le_new_connslavelatency
+0x3e coffest_le_new_connsupervisiontimeout
+0x40 coffset_le_sk
+0x50 coffset_le_peer_sca
+0x53 coffset_le_transmit_window
+	
+88 context_size
+1 context_num
+)
+
+(
+0 lpm_flag_wake
+1 lpm_flag_loadcode
+)
+
+
+(
+0x0050 param_newconn_arq
+0x0007 param_esco_addr
+0x0010 param_conn_handle
+0x01f0 param_conn_handle_comp
+0x0020 param_newconnto
+0x0008 param_pagerespto
+0x0a00 param_snooze_setup_orig
+0x5353 param_snooze_ahead_orig
+0x00ff param_ninquiry
+0x2000 param_page_to
+0x0005 param_max_slot
+0x0010 param_sco_poll
+
+
+
+0x0e43 param_tx_setup
+0x0600 param_rf_setup
+0x0600 param_conn_access 
+0x03bb param_clke_cal
+0x0500 param_pll_setup		// 120 is minimum
+0x0d00 param_rx_setup	// 114us before sync
+2000 param_dpll_start_delay
+3750 param_rt_rthalfslot
+
+480 param_clke_cal_le_1m	//preamble(1B) & access address(4B) time (1+4)*8*1 * 12
+288 	param_clke_cal_le_2m	//preamble(2B) & access address(4B) time (1+4)*8*1 * 12
+282 param_clke_cal_le_coded	//preamble(80us) & access address(256us)-312.5us(0.5slot)
+
+110 param_lpm_fix
+10 param_lpo_extra
+200 param_lpm_adjmax
+
+-1 param_hibernate_clks
+3000 param_chgpump_delay
+
+3 param_featrue_ssp
+0x0101 param_lmpext_ssp_enable
+30   param_sco_pktlen
+1     param_acl_pktcnt		
+7     param_sco_pktcnt
+
+
+0x8fffff param_features0
+0x9d83fe param_features1  // not support afh
+0x8359     param_features2
+0x000033 param_unap
+0x001177 param_lap
+0x9e8b33 param_glap
+0x002540 param_class//0x180208 //0x002580//402500//240404
+0x000a04 param_lmp_version//0x0a04
+0x000a06 param_lmp_version0
+0x12e9 param_lmp_subversion
+0x0012 param_tisw
+0x0012 param_tpsw
+0x1000 param_tisi
+0x0800 param_tpsi
+0x0020 param_page_window
+0x0020 param_inq_window
+0x1c80 param_supervision_to
+39 param_fcomp_div
+2 param_fcomp_mul
+6     param_name_len
+0x535442 param_name
+0x344950 param_name1
+
+
+)
+
+
+(
+0x0      type_null    
+0x1      type_poll   
+0x2      type_fhs    
+0x3      type_dm1    
+0x4      type_dh1    
+0x5      type_hv1    
+0x6      type_hv2    
+0x7      type_hv3    
+0x8      type_3dh1     
+0x9      type_aux1   
+0xa      type_dm3    
+0xb      type_dh3    
+0xe      type_dm5    
+0xf      type_dh5    
+0x10     type_id
+0x11     type_shutdown
+0x13     type_lmp
+)
+
+
+(
+0        always        
+1        true          
+2        positive      
+3        timeout       
+5        zero          
+6        crc_failed    
+7        enable_white  
+8        enable_parity 
+9        enable_crc    
+10       enable_hec    
+11       decode_fec1   
+12       decode_fec2   
+13       decode_fec0   
+14       encrypt       
+15       crc16       
+16       swfine	
+20       rqst_freq    
+21       recalc        
+22       init_encrypt  
+23       mhalfbnd    
+24       sync          
+25       user10    
+26       kc_p_activate  
+27       encode_fec1   
+28       encode_fec2   
+29       encode_fec0   
+30       packet_end    
+32       is_tx         
+33       is_rx         
+34       halfslot     
+35       oneslot      
+36       mslotbnd     
+37       expire       
+38       meet         
+39       tx_clear     
+40       user         
+41       master        
+42       slave2         
+43       wake           
+44       user2        
+45       match         
+46       attempt        
+47       user3          
+48       clknt         
+49	   user7 	
+50       synchronize   
+51       lpo_edge  
+52       blank         
+53       modone          
+54       le		
+55       aes_ready	
+56       encode_fec3   
+57       dewhiten_code_calc   
+58       lr_s2en       
+60	   ble_coded_info	//1:s2 0:s8
+63       never         
+)
+
+default flag = always
+
+
+(
+0        mark   
+1        type   
+2        temp   
+3        contu  
+3	 contru	
+3	 contwu	
+4        am_addr      
+5        contw        
+6        contr        
+7        queue    
+8        debug    
+9        access   
+10       contus   
+11       timeup        
+12       pwindow       
+13       fhs_parity    
+14       white_init    
+15       crc24_init        
+16       contue    
+17       rega          
+18       regb          
+19       regc          
+20       regab         
+21       radio_ctrl   
+
+23       freq_index   
+24       regd    
+25       clkn              
+26       clke              
+27       stop_watch		
+28       fhs_misc   
+29       fhs_class  
+30       fhs0   
+31       fhs1   
+32       bt_adr 
+33       bt_clk 
+34       clkn_bt  
+35       clkn_rt  
+36       freq_mode
+37       xin   
+38       N_tx_slot 
+39 	   auxcnt
+40       clke_bt  
+41       clke_rt  
+42       branch_addr	
+43       rege         
+44       lap
+45       uap
+46       nap         
+47       regext		
+48       alarm             
+49       lpo_time          
+50       kc_ls             
+51       kc_ms             
+52       g1l               
+53		mask3ff		
+54       aes_ctrl		
+55       regf			
+56       regext_index   
+57	     loopcnt
+58      stack			
+59       stack_ptr		
+61         pc 
+62       null              
+63       pdata 
+)
+default reg = pdata
+
+
+(
+0 regidx_data
+4 regidx_key
+8 regidx_xor
+12 regidx_result
+)
+
+(
+0 TXGFSK
+1 PSK
+2 PSK3M
+3 RESET
+)
+
+
+
+
+
+
+
+
+
+
+
+(
+0 bucket
+1 rxf
+2 back
+3 mod
+)
+default dest = bucket
+
+
+(
+1 txf
+3 demod
+)
+default source = 0
+
+
+
+(
+0  mark_fhs_eir  
+1  mark_rxbuf_inuse
+2  mark_tx_l2cap
+3  mark_switch_initiated
+4  mark_accept_switch
+5  mark_loopback
+7  mark_esco
+8  mark_esco_rxok
+9  mark_context
+10 mark_am_addr_broadcast
+11 mark_fhs_already_good
+12 mark_page_trainb
+13 mark_lpm_mult_enable
+14 mark_usb_first_resp
+15 mark_old_packet
+16 mark_longpacket
+17 mark_testmode
+18 mark_ar2
+28 mark_inquiry_on
+29 mark_inquiry_state
+30 mark_inquiry_trainb
+31 mark_periodical_diac
+32 mark_all_diac
+33 mark_slave_in_rand_accepted
+34 mark_reconn_recieve_switch
+35 mark_isstr
+36 mark_loadcode
+37 mark_ext_patch
+38 mark_24g
+39 mark_24g_rxmode
+40 mark_eeprom_size
+41 mark_ble_tx_md
+42 mark_ble_rx_md
+43 mark_otp_encrypt
+44 mark_temp
+45 mark_ble_2M
+46 mark_ble_lr_s8
+47 mark_ble_lr
+48 mark_ble_crc_fail
+49 mark_role_switch_receive_fhs
+50 mark_ble_encryption
+51 mark_first_packet
+)
+
+(
+1 reload_type_otp
+2 reload_type_spi
+3 reload_type_iic
+)
+
+
+
+(
+0 le_adv_interval_timer
+1 inquiry_length_timer
+2 le_scan_interval_timer
+3 page_length_timer
+4 iscan_interval_timer
+5 pscan_interval_timer
+6 switch_wait_timer
+7 enpt_delay_timer
+8 page_interval_timer
+9 key_scan_timer
+10 smp_pairing_timer
+11  ui_led_blink   //led timer 可扩展
+12  ui_led_blink1
+13 ui_led_blink2
+
+//不使用mesh应用可以复用
+//Tiny Mesh 广播APP回复
+13 mesh_ble_adv_app
+//Tiny Mesh广播tmall回复
+14 mesh_ble_adv_tmall
+//Tiny Mesh relay
+15 mesh_ble_relay_timer
+
+)
+
+(
+1 hci_cmd_inquiry
+2 hci_cmd_inquiry_cancel
+3 hci_cmd_remote_name_req
+4 hci_cmd_remote_feature_req
+5 hci_cmd_create_conn
+6 hci_cmd_disconn
+7 hci_cmd_accept_conn
+8 hci_cmd_reject_conn
+9 hci_cmd_pair
+10 hci_cmd_nopair
+11 hci_cmd_linkkey
+12 hci_cmd_nokey
+13 hci_cmd_auth
+14 hci_cmd_stopencrypt
+15 hci_cmd_startencrypt
+16 hci_cmd_setup_sco
+17 hci_cmd_disconn_sco
+18 hci_cmd_in_sniff
+19 hci_cmd_exit_sniff
+20 hci_cmd_remote_version_req
+21 hci_cmd_remote_ext_features_req
+22 hci_cmd_io_cap
+23 hci_cmd_role_discovery
+24 hci_cmd_role_switch
+25 hci_cmd_accept_with_switch
+26 hci_cmd_detach
+27 hci_cmd_le_create_conn
+28 hci_cmd_accept_sco_conn
+29 hci_cmd_le_disconn
+30 hci_cmd_le_att_req
+80 hci_cmd_wait_remote_feature
+81 hci_cmd_wait_remote_ext_feature
+82 hci_cmd_wait_remote_name
+)
+
+
+
+
+(
+0 debug_neg_skew
+1 debug_bitbucket
+2 debug_dont_clear_got_tx
+3 debug_scatter_enabled
+4 debug_tx_fixed_freq
+5 debug_rx_fixed_freq
+6 debug_tx_pattern
+)
+
+
+(
+0 tester_fixed_flow
+1 tester_fixed_flow_polarity
+2 tester_change
+3 tester_exit
+4 tester_pattern_test
+5 tester_whitening_change
+6 tester_fixed_freq
+7 tester_no_whitening
+)
+
+
+(
+0 mode_le
+1 mode_master
+2 afh_enable
+3 afh_change
+4 first_seqnx
+)
+
+
+(
+0 smap_lmptidinit
+1 smap_lmptid
+2 smap_encryption
+3 smap_name_res
+4 smap_name_req
+5 smap_edr
+6 smap_rxlmp
+7 smap_rxl2cap
+)
+(
+0 state_inconn
+1 state_insniff
+2 state_insco 
+3 state_inpage
+4 state_conn_comp
+5 state_init_seq
+6 state_combkey
+7 state_linkkey
+)
+(
+0 op_send_sres
+1 op_auth_req
+2 op_inrand_req
+3 op_disconn
+4 op_stop_enc
+5 op_start_enc
+6 op_txl2cap
+7 op_pkt_comp
+)
+
+
+
+(
+0 flow
+1 arqn
+2 seqn
+3 wack
+4 flowx              
+5 arqnx              
+6 seqnx              
+7 bcast1             
+)
+
+
+
+
+ 
+
+
+
+ 
+
+ 
+
+(
+0 AFH_CFG_ON
+1 AFH_CFG_TIMER
+2 send_lmp_set_afh
+3 AFH_CFG_REPORT_MODE
+4 AFH_CFG_MASTER_SENT_REQ
+)
+
+
+(	
+1 LLID_L2CAP_CONT
+2 LLID_L2CAP_START
+3 LLID_LMP
+)
+
+
+(
+0  master_in_idle
+1  master_in_inquiry
+2  master_in_page
+10 master_in_becoming_slave
+15 master_in_conn
+)
+(
+0 newrev_feature_bettx
+1 newrev_feature_betplltx
+2 newrev_feature_skip_retransmit
+3 newrev_feature_init_radio_after_sleep
+4 newrev_feature_no_lpolog
+)
+
+(
+0 pincode_state_ilde
+1 pincode_state_wait_pincode
+2 pincode_state_pincode_ready
+)
+
+
+// lpm_write
+(
+1 lpmreg_sel_ctrl
+2 lpmreg_sel_ctrl2
+4 lpmreg_sel_gpiolow
+8 lpmreg_sel_gpiohigh
+16 lpmreg_sel_counter
+32 lpmreg_sel_ctrl3
+)
+
+// lpm_write2
+(
+2 lpmreg2_sel_option
+4 lpmreg2_sel_mpu_s0
+8 lpmreg2_sel_mpu_s1
+)
+
+(
+8 lpmreg_spi_lock_bit
+9 lpmreg_spi2_lock_bit
+0x0a lpmreg_uart_lock_bit
+0x0b lpmreg_uartb_lock_bit
+0x0c lpmreg_iic_lock_bit
+0x0d lpmreg_rom_lock_bit
+0x0e lpmreg_ice_mode_bit
+
+0x01 lpmreg_spi_lock
+0x02 lpmreg_spi2_lock
+0x04 lpmreg_uart_lock
+0x08 lpmreg_uartb_lock
+0x10 lpmreg_iic_lock
+0x20 lpmreg_rom_lock
+0x40 lpmreg_ice_mode
+)
+
+
+
+//scan_mode
+(
+0 inq_scan_mode
+1 page_scan_mode
+2 page_inq_enable
+)
+//mem_neogotiation_state
+(
+ 0 default_neogotiation_state
+ 1 prarm_neogotiation
+)
+
+//mem_lpm_wake_lock
+(
+0 wake_lock_ble_rx
+1 wake_lock_ble_tx
+
+3 wake_lock_key_press
+4 wake_lock_ble_tx_patch
+5 wake_lock_uart_tx
+6 wake_lock_uart_rx
+7 wake_lock_button
+8 wake_lock_cmd
+9 wake_lock_app
+10 wake_lock_lmp_tx
+11 wake_lock_lmp_rx
+12 wake_lock_l2cap_tx
+13 wake_lock_l2cap_rx
+14 wake_lock_ipc_c512bt
+15 wake_lock_ipc_bt2c51
+
+)
+
+(//mem_fcomp_div
+0x18 XTAL_24M
+0x08 XTAL_16M
+)
+
+( //verion
+6 BLUETOOTH_CORE_SPECIFICATION_4_0
+7 BLUETOOTH_CORE_SPECIFICATION_4_1
+8 BLUETOOTH_CORE_SPECIFICATION_4_2
+9 BLUETOOTH_CORE_SPECIFICATION_5_0
+10 BLUETOOTH_CORE_SPECIFICATION_5_1
+)
+
+(
+0x050e COMPANY_ID_YICHIP
+)
+
+(
+0x33  REC_3_MODE
+0x34  REC_4_MODE
+0x35  REC_4_MODE_STATIC_ADDRESS
+0x36  REC_4_MODE_RANDOM_RESOLVABLE_PRIVATE_ADDRESS
+0x37  REC_4_MODE_RANDOM_NON_RESOLVABLE_PRIVATE_ADDRESS
+)
+
+
+//sniff UART_TX UART_RX
+(
+6 UART_WAKEUP_TX
+7 UART_WAKEUP_RX
+)
+
+
+
+
+
+
+
+
+
+
+(//mem_le_T_IFS
+150 PARAM_T_IFS_150US
+20000 PARAM_20MS_INIT
+-13 PARAM_SYNC_TIME_DIFFERENCE
+40 PARAM_CODED_C1_TERM1_TIME_40US
+1666 PARAM_WINDOWN_SIZE
+//T_IFS = 150-modem(CRC time)
+)
+
+
+(
+0 DEFAULT_STATES
+1 IPHONE_LOST_LTK
+2 MODULE_LOST_LTK
+3 LTK_NOT_LOST
+)
+
+	//BLE ErrorCodes
+	(    
+	0x01 ERROR_UNKNOWN_HCI_COMMAND
+	0x02 ERROR_NO_CONNECTION
+	0x03 ERROR_HARDWARE_FAILURE
+	0x04 ERROR_PAGE_TIMEOUT
+	0x05 ERROR_AUTHENTICATION_FAILURE
+	0x06 ERROR_KEY_MISSING
+	0x07 ERROR_MEMORY_FULL
+	0x08 ERROR_CONNECTION_TIMEOUT
+	0x09 ERROR_MAX_CONNECTIONS
+	0x0A ERROR_MAX_SCO_CONNECTIONS
+	0x0B ERROR_MAX_ACL_CONNECTIONS
+	0x0C ERROR_COMMAND_DISALLOWED
+	0x0D ERROR_HOST_REJECT_LIMITED_RESOURCES
+	0x0E ERROR_HOST_REJECT_SECURITY_REASONS
+	0x0F ERROR_HOST_REJECT_REMOTE_IS_ONLY_PERSONAL
+	0x10 ERROR_HOST_TIMEOUT
+	0x11 ERROR_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE
+	0x12 ERROR_INVALID_HCI_COMMAND_PARAMETERS
+	0x13 ERROR_REMOTE_USER_TERMINATED_CONNECTION
+	0x14 ERROR_REMOTE_LOW_RESOURCES
+	0x15 ERROR_REMOTE_POWERING_OFF
+	0x16 ERROR_CONNECTION_TERMINATED_BY_LOCAL_HOST
+	0x17 ERROR_REPEATED_ATTEMPTS
+	0x18 ERROR_PAIRING_NOT_ALLOWED
+	0x19 ERROR_UNKNOWN_LMP_PDU
+	0x1A ERROR_UNSUPPORTED_REMOTE_FEATURE
+	0x1B ERROR_SCO_OFFSET_REJECTED
+	0x1C ERROR_SCO_INTERVAL_REJECTED
+	0x1D ERROR_SCO_AIR_MODE_REJECTED
+	0x1E ERROR_INVALID_LMP_PARAMETER
+	0x1F ERROR_UNSPECIFIED_ERROR
+	0x20 ERROR_UNSUPPORTED_LMP_PARAMETER_VALUE
+	0x21 ERROR_ROLE_CHANGE_NOT_ALLOWD
+	0x22 ERROR_LMP_RESPONSE_TIMEOUT
+	0x23 ERROR_ERROR_TRANSACTION_COLLISION
+	0x24 ERROR_LMP_PDU_NOT_ALLOWED
+	0x25 ERROR_ENCRYPTION_MODE_NOT_ACCEPTABLE
+	0x26 ERROR_UNIT_KEY_USED
+	0x27 ERROR_QOS_NOT_SUPPORTED
+	0x28 ERROR_INSTANT_PASSED
+	0x29 ERROR_PAIRING_W_UNIT_KEY_NOT_SUPPORTED
+	0x2a ERROR_DIFFERENT_TRANSACTION_COLLISION
+	0x2c ERROR_QOS_UNACCEPTABLE_PARAMETER
+	0x2d ERROR_QOS_REJECTED
+	0x2e ERROR_CHANNEL_CLASSIFICATION_NOT_SUPPORTED
+	0x2f ERROR_INSUFFICIENT_SECURITY
+	0x30 ERROR_PARAMETER_OUT_OF_MANDATORY_PANGE
+	0x32 ERROR_ROLE_SWITCH_PENDING
+	0x34 ERROR_RESERVED_SLOT_VIOLATION
+	0x35 ERROR_ROLE_SWITCH_FAILED
+	0x36 ERROR_EXTENDED_INQUIRY_RESPONSE_TOO_LARGE
+	0x37 ERROR_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST
+	0x38 ERROR_HOST_BUSY_PAIRING
+	0x3d ERROR_MIC_FAILURE
+	)
+
+
+	//modified_name
+	(
+	0X20 SPACE	
+	)
+	
+	(
+	0x0004 LE_L2CAP_CID_ATT
+	0x0005 LE_L2CAP_CID_SIGNAL
+	0x0006 LE_L2CAP_CID_SMP
+	)
+
+	//LE address type
+	(
+	0 LE_ADDR_TYPE_PUBLIC
+	1 LE_ADDR_TYPE_RANDOM
+	)
+	//LE address type bitmap
+	(
+	7 LE_RECEIVER_ADDR_BIT
+	6 LE_SENDER_ADDR_BIT
+	)
+	//LE SCAN TYPE
+	(
+	0x00 LE_SCAN_TYPE_PASSIVE //no SCAN_REQ shall be sent
+	0x01 LE_SCAN_TYPE_ACTIVE
+	)
+
+	//LE SCAN ENABLE
+	(
+	0x00 LE_SCAN_DISABLE
+	0x01 LE_SCAN_ENABLE
+	0x0101 LE_ACTIVE_SCAN_ENABLE
+	)
+
+	//LE FIND INFORMATION RESPONSE
+	//THE FORMAT OF THE INFORMATION DATA
+	(
+	0x01 UUID_SIZE_16BIT
+	0x02 UUID_SIZE_128BIT
+	)
+
+//	le_state_map 0-2 is reserved for state_inconn,state_insniff and state_sco
+(
+3 lestate_got_first_packet
+4 lestate_encryption
+5 lestate_update_param
+6 lestate_update_map
+7 lestate_update_phy
+)
+
+// 	le mode
+(
+0 lemode_idle
+1 lemode_slave
+3 lemode_master
+0x20 lemode_2m
+0x40 lemode_lr_s2
+0xc0 lemode_lr_s8
+)
+
+(
+0 llid0
+1 llid1
+2 nesn
+3 sn
+4 md
+5 wak
+6 txdat
+)
+
+(
+0x01 LLID_CONTINUE
+0x02 LLID_START
+0x03 LLID_LE_LL
+0x01 LLID_EMPTY
+)
+
+(
+4 LE_TX_BUFF_COUNT
+3 LE_TX_BUFF_UPDATE_LOOPCNT //LE_TX_BUFF_COUNT-1
+
+12 LE_MD_MAX_COUNT
+)
+
+
+(
+0 LE_INITATOR_LTK_BIT
+1 LE_INITATOR_IRK_BIT
+2 LE_INITATOR_CSRK_BIT
+)
+
+
+
+
+
+(
+0  LE_FIND_BY_TYPE_VAL_RES_NOT_FOUND
+1  LE_FIND_BY_TYPE_VAL_RES_FOUND_STARTING_HANDLE
+2  LE_FIND_BY_TYPE_VAL_RES_FOUND_ENDING_HANDLE
+
+)
+
+(
+0 MASTER_PUBLIC_ADDR
+1 MASTER_RANDOM_ADDR
+)
+
+(
+0x06 LE_ERR_PIN_OR_KEY_MISSING
+)
+
+(
+39 LE_CCM_DIRECTIONBIT
+)
+(
+36 BR_CCM_0_LENGTH_CONTINUATION
+37 BR_CCM_DIRECTIONBIT
+)
+
+(
+96000 TIMER_SMP_PAIRING_TIMEOUT //30S
+)
+
+
+
+//mem_le_enc_state
+(
+0 FLAG_LE_ENC_NULL
+1 FLAG_LE_RCV_ENC_START
+2 FLAG_LE_ENC_PAUSE
+3 FLAG_LE_RCV_START_ENC_RSP
+4 FLAG_LE_SEND_START_ENC_RSP
+5 FLAG_LE_SEND_START_ENC_REQ
+0xff FLAG_LE_ENC_END
+)
+
+(//mem_le_configuration
+//bit0:use fixed key , ble passkey pairing
+0 BIT_BLE_PASSKEY_FIXED_KEY
+//bit1:ble pairing use fixed long term key
+1 BIT_BLE_PAIRING_FIXED_LTK
+//bit2:ble transmit packet will set more data flag
+2 BIT_BLE_TRANSMIT_PACKET_BY_MD
+//bit3:master read handle, with requires an authenticated link
+3 BIT_BLE_READ_AUTH
+//bit4:master write handle, with requires an authenticated link
+4 BIT_BLE_WRITE_AUTH
+//bit5:cannot enter long sleep
+5 BIT_BLE_SHORT_MULT
+//bit6:DEAL baseband packet
+6 BIT_BLE_DEAL_BB_PACKET
+)
+
+
+
+
+
+
+(
+0x01	GAP_ADTYPE_FLAGS
+0x02	GAP_ADTYPE_16BIT_MORE
+0x03	GAP_ADTYPE_16BIT_COMPLETE
+0x04	GAP_ADTYPE_32BIT_MORE
+0x05	GAP_ADTYPE_32BIT_COMPLETE
+0x06	GAP_ADTYPE_128BIT_MORE
+0x07	GAP_ADTYPE_128BIT_COMPLETE
+0x08	GAP_ADTYPE_LOCAL_NAME_SHORT
+0x09	GAP_ADTYPE_LOCAL_NAME_COMPLETE
+0x0a	GAP_ADTYPE_POWER_LEVEL
+0x16	GAP_ADTYPE_SERVICE_DATA
+0x2a	GAP_ADTYPE_MESH_MESSAGE
+0x2b 	GAP_ADTYPE_MESH_BEACON
+0xff	GAP_ADTYPE_MANUFACTURER_SPECIFIC
+)
+
+
+(
+0 ADV_IND
+1 ADV_DIRECT_IND
+2 ADV_NONCONN_IND
+3 SCAN_REQ
+3 AUX_SCAN_REQ
+4 SCAN_RSP
+5 CONNECT_REQ
+5 AUX_CONNECT_REQ
+6 ADV_SCAN_IND
+)
+
+(
+0 BIT_ADV_CHANNEL_MAP_37
+1 BIT_ADV_CHANNEL_MAP_38
+2 BIT_ADV_CHANNEL_MAP_39
+)
+
+(
+0xa0 param_le_sca
+)
+
+
+
+
+
+
+
+
+
+
+(//bit of mem_le_l2cap_att_states
+0 BLE_L2CAP_SEND_INDICATION_PACKET
+0 BLE_L2CAP_RECV_CONFIRMATION_PACKET
+1 BLE_L2CAP_DEAL_WITH_CONTINUE_PACKET
+)
+
+(//bit map of att handle
+14 BIT_OF_ATT_HANDLE_READ_AUTHENTICATED
+15 BIT_OF_ATT_HANDLE_WRITE_AUTHENTICATED
+)
+
+
+
+(
+0 BIT_CHARACTERISTIC_BROADCAST
+1 BIT_CHARACTERISTIC_READ
+2 BIT_CHARACTERISTIC_WRITE_WITHOUT_RESPONSE
+3 BIT_CHARACTERISTIC_WRITE
+4 BIT_CHARACTERISTIC_NOTIFY
+5 BIT_CHARACTERISTIC_INDICATE
+6 BIT_CHARACTERISTIC_SIGNED_WRITE
+7 BIT_CHARACTERISTIC_EXTENDED_PROPERTIES
+)
+
+
+(
+0x01 ATTOP_ERROR_RESPONSE
+0x02 ATTOP_EXCHANGE_MTU_REQUEST
+0x03 ATTOP_EXCHANGE_MTU_RESPONSE
+0x04 ATTOP_FIND_INFORMATION_REQUEST
+0x05 ATTOP_FIND_INFORMATION_RESPONSE
+0x06 ATTOP_FIND_BY_TYPE_VALUE_REQUEST
+0x07 ATTOP_FIND_BY_TYPE_VALUE_RESPONSE
+0x08 ATTOP_READ_BY_TYPE_REQUEST
+0x09 ATTOP_READ_BY_TYPE_RESPONSE
+0x0A ATTOP_READ_REQUEST
+0x0B ATTOP_READ_RESPONSE
+0x0C ATTOP_READ_BLOB_REQUEST
+0x0D ATTOP_READ_BLOB_RESPONSE
+0x0E ATTOP_READ_MULTIPLE_REQUEST
+0x0F ATTOP_READ_MULTIPLE_RESPONSE
+0x10 ATTOP_READ_BY_GROUP_TYPE_REQUEST
+0x11 ATTOP_READ_BY_GROUP_TYPE_RESPONSE
+0x12 ATTOP_WRITE_REQUEST
+0x13 ATTOP_WRITE_RESPONSE
+0x16 ATTOP_PREPARE_WRITE_REQUEST
+0x17 ATTOP_PREPARE_WRITE_RESPONSE
+0x18 ATTOP_EXECUTE_WRITE_REQUEST
+0x19 ATTOP_EXECUTE_WRITE_RESPONSE
+0x1B ATTOP_HANDLE_VALUE_NOTIFICATION
+0x1D ATTOP_HANDLE_VALUE_INDICATION
+0x1E ATTOP_HANDLE_VALUE_CONFIRMATION
+0x52 ATTOP_WRITE_COMMAND
+0xD2 ATTOP_SIGNED_WRITE_COMMAND
+0x1f ATTOP_CONTINUE
+0x9e EMPTY_LE_DATA_PRE
+0x9f EMPTY_LE_DATA
+)
+
+
+(
+0x01 ATT_ERR_INVALID_HANDLE
+0x02 ATT_ERR_READ_NOT_PERMITTED
+0x03 ATT_ERR_WRITE_NOT_PERMITTED
+0x04 ATT_ERR_INVALID_PDU
+0x05 ATT_ERR_INSUFFICIENT_AUTHENTICATION
+0x06 ATT_ERR_REQUEST_NOT_SUPPORTED
+0x07 ATT_ERR_INVALID_OFFSET
+0x08 ATT_ERR_INSUFFICIENT_AUTHORIZATION
+0x09 ATT_ERR_PREPARE_QUEUE_FULL
+0x0A ATT_ERR_ATTRIBUTE_NOT_FOUND
+0x0B ATT_ERR_ATTRIBUTE_NOT_LONG
+0x0C ATT_ERR_INSUFFICIENT_ENCRYPTION_KEY_SIZE
+0x0D ATT_ERR_INVALID_ATTRIBUTE_VALUE_LENGTH
+0x0E ATT_ERR_UNLIKELY_ERROR
+0x0F ATT_ERR_INSUFFICIENT_ENCRYPTION
+0x10 ATT_ERR_UNSUPPORTED_GROUP_TYPE
+0x11 ATT_ERR_INSUFFICIENT_RESOURCES
+)
+
+
+(
+0X2900 CHARACTERTIC_EXTENDED_PROPERTIES
+0X2901 CHARACTERTIC_USER_DESCRIPTION
+0X2902 CLIENT_CHARACTERTIC_CONFIGURATION
+0X2903 SERVER_CHARACTERTIC_CONFIGURATION
+0X2904 CHARACTERTIC_PRESENTATION_FORMAT
+0X2905 CHARACTERTIC_AGGREGATE
+0X2906 VALID_RANGE
+0X2907 EXTERNAL_REPORT_REFERENCE
+0X2908 REPORT_REFERENCE
+0X290B ENVIR_SENSING_CONFIGURATION
+0X290C ENVIR_SENSING_MEASUREMENT
+0X290D ENVIR_SENSING_TRIGGER_SETTING
+)
+
+
+
+(
+0x1800 UUID_SERVICE_GENERIC_ACC
+0x1801 UUID_SERVICE_GENERIC_ATT
+0x180a UUID_SERVICE_DEVICE_INFO
+0x180f UUID_SERVICE_BATTERY
+0x1812 UUID_SERVICE_HIDS
+0x2800 UUID_GATT_PRIMARY_SERVICE
+0x2801 UUID_GATT_SECONDARY_SERVICE
+0X2802 UUID_GATT_INCLUDE
+0X2803 UUID_GATT_CHARACTERISTIC
+0X2A00 UUID_CHRCTR_DEVICE_NAME
+0X2A19 UUID_CHRCTR_BATTERY_LEVEL
+0X2A22 UUID_CHRCTR_KEYBOARD_INPUT
+0X2A23 UUID_CHRCTR_SYSTEM_ID 
+0X2A25 UUID_CHRCTR_SERIAL_NUMBER
+0X2A26 UUID_CHRCTR_FIRMWARE
+0X2A32 UUID_CHRCTR_KEYBOARD_OUTPUT
+0X2A33 UUID_CHRCTR_MOUSE_INPUT
+0X2A4A UUID_CHRCTR_HID_INFO
+0X2A4B UUID_CHRCTR_REPORT_MAP
+0X2A4C UUID_CHRCTR_HID_CTRL_POINT
+0X2A4D UUID_CHRCTR_REPORT
+0X2A4E UUID_CHRCTR_PROTOCOL_MODE
+)
+
+
+
+
+
+
+(
+0x12 L2CAP_CONNECTION_PARAMETER_UPDATE_REQUEST
+0x13 L2CAP_CONNECTION_PARAMETER_UPDATE_RESPONSE
+)
+
+(
+0x0000 BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_ACCEPTED
+0x0001 BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_REJECTED
+)
+
+
+
+
+
+(
+0x00 LE_PAIRING_MODE_NONE
+0x01 LE_PAIRING_MODE_LAGACY_JUSTWORK
+0x02 LE_PAIRING_MODE_LAGACY_PASSKEY
+0x04 LE_PAIRING_MODE_LAGACY_PASSKEY_RES_INPUT
+0x81 LE_PAIRING_MODE_SECURE_CONNECT_JUSTWORK
+0x82 LE_PAIRING_MODE_SECURE_CONNECT_NUMERIC
+0x83 LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY
+0x84 LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT
+
+7 LE_PAIRING_MODE_SECURE_CONNECT_BIT
+)
+
+
+(
+0 FLAG_IOCAP_DISPLAYONLY
+1 FLAG_IOCAP_DISPLAYYESNO
+2 FLAG_IOCAP_KEYBOARDONLY
+3 FLAG_IOCAP_NOINPUTNOOUTPUT
+4 FLAG_IOCAP_KEYBOARDDISPLAY
+
+0x00 FLAG_OOB_DATA_FLAG_NO
+)
+
+(
+0x00 FLAG_LE_NO_BONDING_NO_MITM
+0x01 FLAG_LE_BONDING_NO_MITM
+0x04 FLAG_LE_NO_BONDING_MITM
+0x05 FLAG_LE_BONDING_MITM
+0x09 FLAG_LE_BONDING_NO_MITM_SECURE
+0x0D FLAG_LE_BONDING_MITM_SECURE
+
+2 LE_AUTH_MITM_BIT
+3 LE_AUTH_SECURE_CONNECTION_PAIRING_BIT
+)
+
+//mem_le_pairing_state
+(
+0 FLAG_LE_PAIRING_NULL
+1 FLAG_LE_PAIRING_START
+2 FLAG_LE_PAIRING_SEND_RECURITY_REQ
+3 FLAG_LE_PAIRING_RCV_PAIRING_REQ
+4 FLAG_LE_PAIRING_WAIT_STK_GENERATION
+5 FLAG_LE_PAIRING_RECEIVE_PAIRING_CONFIRM
+6 FLAG_LE_PAIRING_SEND_PAIRING_CONFIRM
+7 FLAG_LE_PAIRING_RECEIVE_PAIRING_RANDOM
+8 FLAG_LE_PAIRING_SEND_PAIRING_RANDOM
+9 FLAG_LE_PAIRING_AFTER_AUTH
+10 FLAG_LE_PAIRING_SEND_START_ENC_RSP
+11 FLAG_LE_PARING_SEND_ENC_INFORMATION
+12 FLAG_LE_PARING_SEND_MASTER_IDENTIFICATION 
+13 FLAG_LE_PARING_SEND_INDENTITY_INFORMATION
+0xff FLAG_LE_PAIRING_END
+)
+
+
+(
+0x01 SMP_PAIRING_REQUEST
+0x02 SMP_PAIRING_RESPONSE
+0x03 SMP_PAIRING_CONFIRM
+0x04 SMP_PAIRING_RANDOM
+0x05 SMP_PAIRING_FAILED
+0x06 SMP_ENCRYPTION_INFORMATION
+0x07 SMP_MASTER_IDENTIFICATION
+0x08 SMP_IDENTITY_INFORMATION
+0x09 SMP_IDENTITY_ADDRESS_INFORMATION
+0x0A SMP_SIGNING_INFORMATION
+0x0B SMP_SECURITY_REQUEST
+0x0c SMP_PAIRING_PUBLIC_KEY
+0x0d SMP_PAIRING_DHKEY_CHECK
+)
+
+(// pairing failed reason
+0x00 PAIRING_FAILED_RESERVED
+0X01 PAIRING_FAILED_PASSKEY_ENTRY_FAILED
+0X02 PAIRING_FAILED_OOB_NOT_AVAILABLE
+0X03 PAIRING_FAILED_AUTHENTICATION_REQUIRE
+0X04 PAIRING_FAILED_CONFIRM_VALUE_FAILED
+0X05 PAIRING_FAILED_PAIRING_NOT_SUPPORTED
+0X06 PAIRING_FAILED_ENCRYPTION_KEY_SIZE
+0X07 PAIRING_FAILED_COMMAND_NOT_SUPPORTED
+0X08 PAIRING_FAILED_UNSPECIFIED_REASON
+0X09 PAIRING_FAILED_REPEATED_ATTEMPTS
+0X0A PAIRING_FAILED_INVALID_PARAMETERS
+0X0B PAIRING_FAILED_DHKEY_CHECK_FAILED
+0X0C PAIRING_FAILED_NUMERIC_COMPARISON_FAILED
+0X0D PAIRING_FAILED_BR_EDR_PAIRING_IN_PROGRESS
+0X0E PAIRING_FAILED_KEY_DERIVATION_GENERATION_NOT_ALLOWED
+)
+
+
+(
+0x00 LE_SC_STAT_NULL
+0x01 LE_SC_STAT_RECEIVE_PUBLIC_KEY
+0x02 LE_SC_STAT_WAIT_SEND_PUBLIC_KEY
+0x03 LE_SC_STAT_SEND_PUBLIC_KEY
+0x04 LE_SC_STAT_RECEIVE_RANDOM
+0x05 LE_SC_STAT_SEND_RANDOM
+0x06 LE_SC_STAT_RECEIVE_DHKEY
+0x07 LE_SC_STAT_WAIT_CONFIRM_GKEY
+0x08 LE_SC_STAT_PASSKEY_WAIT_CONFIRM
+)
+
+
+(
+0 FLAG_LE_SC_CONFRIM_NULL
+1 FLAG_LE_SC_CONFRIM_GKEY_OK
+)
+
+
+
+
+
+(
+0x00 LL_CONNECTION_UPDATE_IND
+0x01 LL_CHANNEL_MAP_IND
+0x02 LL_TERMINATE_IND
+0x03 LL_ENC_REQ
+0x04 LL_ENC_RSP
+0x05 LL_START_ENC_REQ
+0x06 LL_START_ENC_RSP
+0x07 LL_UNKNOWN_RSP
+0x08 LL_FEATURE_REQ
+0x09 LL_FEATURE_RSP
+0x0A LL_PAUSE_ENC_REQ
+0x0B LL_PAUSE_ENC_RSP
+0x0C LL_VERSION_IND
+0x0D LL_REJECT_IND
+0x0E LL_SLAVE_FEATURE_REQ
+0x0F LL_CONNECTION_PARAM_REQ
+0x10 LL_CONNECTION_PARAM_RSP
+0x11 LL_REJECT_IND_EXT
+0x12 LL_PING_REQ
+0x13 LL_PING_RSP
+0x14 LL_LENGTH_REQ
+0x15 LL_LENGTH_RSP
+0x16 LL_PHY_REQ
+0x17 LL_PHY_RSP
+0x18 LL_PHY_UPDATE_IND
+0x19 LL_MIN_USED_CHANNELS_IND
+0x1A LL_CTE_REQ
+0x1B LL_CTE_RSP
+0x1C LL_PERIODIC_SYNC_IND
+0x1D LL_CLOCK_ACCURACY_REQ
+0x1E LL_CLOCK_ACCURACY_RSP
+0x1F LL_CIS_REQ
+0x20 LL_CIS_RSP
+0x21 LL_CIS_IND
+0x22 LL_CIS_TERMINATE_IND
+0x23 LL_POWER_CONTROL_REQ
+0x24 LL_POWER_CONTROL_RSP
+0x25 LL_POWER_CHANGE_IND
+)
+
+
+
+(//bit map of mem_le_ll_feature
+//LL_FEATURE_REQ
+0 BIT_LL_FEATURE_LE_ENCRYPTION
+1 BIT_LL_FEATURE_CONNECTION_PARAMETERS_REQUEST_PROCEDURE
+2 BIT_LL_FEATURE_EXTENDED_REJECT_INDICATION
+3 BIT_LL_FEATURE_SLAVE_INITIATED_FEATURES_EXCHANGE
+4 BIT_LL_FEATURE_LE_PING
+5 BIT_LL_FEATURE_LE_DATA_PACKET_LENGTH_EXTENSION
+6 BIT_LL_FEATURE_LL_PRIVACY
+7 BIT_LL_FEATURE_EXTENDED_SCANNER_FILTER_POLICIES
+8 BIT_LL_FEATURE_LE_2M_PHY
+9 BIT_LL_FEATURE_STABLE_MODULATION_INDEX_TRANSMITTER
+10 BIT_LL_FEATURE_STABLE_MODULATION_INDEX_RECEIVER
+11 BIT_LL_FEATURE_LE_CODED_PHY
+12 BIT_LL_FEATURE_LE_EXTENDED_ADVERTISING
+13 BIT_LL_FEATURE_LE_PERIODIC_ADVERTISING
+14 BIT_LL_FEATURE_CHANNEL_SELECTION_ALGORITHM
+15 BIT_LL_FEATURE_LE_POWER_CLASS_1
+16 BIT_LL_FEATURE_MINIMUM_NUMBER_OF_USED_CHANNELS_PROCEDURE
+)
+(//function map of mem_le_ll_feature
+//LL_FEATURE_REQ
+0x1 FUN_LL_FEATURE_LE_ENCRYPTION
+0x2 FUN_LL_FEATURE_CONNECTION_PARAMETERS_REQUEST_PROCEDURE
+0x4 FUN_LL_FEATURE_EXTENDED_REJECT_INDICATION
+0x8 FUN_LL_FEATURE_SLAVE_INITIATED_FEATURES_EXCHANGE
+0x10 FUN_LL_FEATURE_LE_PING
+0x20 FUN_LL_FEATURE_LE_DATA_PACKET_LENGTH_EXTENSION
+0x40 FUN_LL_FEATURE_LL_PRIVACY
+0x80 FUN_LL_FEATURE_EXTENDED_SCANNER_FILTER_POLICIES
+0x100 FUN_LL_FEATURE_LE_2M_PHY
+0x200 FUN_LL_FEATURE_STABLE_MODULATION_INDEX_TRANSMITTER
+0x400 FUN_LL_FEATURE_STABLE_MODULATION_INDEX_RECEIVER
+0x800 FUN_LL_FEATURE_LE_CODED_PHY
+0x1000 FUN_LL_FEATURE_LE_EXTENDED_ADVERTISING
+0x2000 FUN_LL_FEATURE_LE_PERIODIC_ADVERTISING
+0x4000 FUN_LL_FEATURE_CHANNEL_SELECTION_ALGORITHM
+0x8000 FUN_LL_FEATURE_LE_POWER_CLASS_1
+0x10000 FUN_LL_FEATURE_MINIMUM_NUMBER_OF_USED_CHANNELS_PROCEDURE
+)
+
+(//bit of mem_le_tx_phys and mem_le_rx_phys
+0x00 BIT_LE_1M_PHY
+0x01 BIT_LE_2M_PHY
+0x02 BIT_LE_CODED_PHY
+
+0x02 BIT_LE_CODED_PHY_S2
+0x07 BIT_LE_CODED_PHY_S8
+)
+
+(//map of mem_le_tx_phys and mem_le_rx_phys
+0x01 FUN_TX_LL_1M_PHY
+0x02 FUN_TX_LL_2M_PHY
+0x04 FUN_TX_LL_CODED_PHY
+
+0x01 FUN_RX_LL_1M_PHY
+0x02 FUN_RX_LL_2M_PHY
+0x04 FUN_RX_LL_CODED_PHY
+)
+
+
+
+
+
+
+
+(//mem_24g_data_type
+1 TYPE_MS
+2 TYPE_KB
+0x07 bits_data
+//0-2 data type
+3 bit_abort
+4 bit_hop
+5 bit_sync
+//6-7 channel offset
+)
+
+
+
+
+
+
+
+(//mem_24g_pair_sm
+0 STATE_24G_PAIRING_NULL
+1 STATE_24G_PAIRING_1
+2 STATE_24G_PAIRING_2
+3 STATE_24G_PAIRING_3
+4 STATE_24G_PAIRING_4
+0X11 STATE_24G_PAIRING_1_WAITING_ACK
+0X12 STATE_24G_PAIRING_2_WAITING_ACK
+0X13 STATE_24G_PAIRING_3_WAITING_ACK
+0X14 STATE_24G_PAIRING_4_WAITING_ACK
+0XFF STATE_24G_PAIRING_SUCCESS
+)
+
+(
+0x01 DATATYPE_DEVICE1	//mouse
+0x02 DATATYPE_DEVICE2	//keyboard
+0xaa DATATYPE_BIND		//bind step 1
+0x55 DATATYPE_CONFIG	//bind step 2
+0x22 DATATYPE_OK		//bind step 3
+0xff DATATYPE_ATTEMP	//reconn
+)
+
+(
+5 BIND_MODE_CONTINUE
+)
+
+
+
+
+(
+0 bit_ack_24g
+)
+
+
+
+
+(//mem_24g_reconn_type
+0 DEFAULT_24G_DEVICE
+1 FAST_CONN_AND_RECEIVER
+2 FAST_CONN_AND_3_0_ADDR
+3 RECEIVER_AND_3_0_ADDR
+4 PAIR_AND_3_0_ADDR
+)
+
+
+
+
+
+
+
+
+
+(
+0x50 RSSI_THRESH_NOISE
+)
+
+
+
+
+
+
+
+(
+1 NO_ACK_24G
+0 WITH_ACK_24G
+)
+
+(//mem_24g_conn_sm
+0 STATE_24G_STOP
+0 STATE_24G_START
+1 STATE_24G_PAIR
+2 STATE_24G_RECONN
+)
+
+(//mem_24g_transmit_by_interrupt
+1 G24_TX_TIMER_INT_ENABLE
+0 G24_TX_TIMER_INT_DISABLE
+)
+
+
+(
+1 OFFSET_DATA_TYPE
+2 OFFSET_LR_DATA_TYPE
+)
+
+(
+0x017700 G24_LONG_SLEEP_STEP1	//8ms
+0x36ee80 G24_LONG_SLEEP_STEP2	//300ms
+0x124f80 G24_LONG_SLEEP_STEP3	//100ms
+63500 G24_8MS_INTERVAL_PARAM		//8ms
+12210 G24_4MS_INTERVAL_PARAM
+)
+
+
+
+
+
+
+(
+50 POWER_CTRL_DECRS_THRESHOLD
+)
+
+
+
+
+
+(//status codes
+0 STATUS_CODE_SUCCESS
+)
+
+
+// ali vendor message
+(
+0xD0 VENDOR_MESSAGE_ATTR_GET
+0xD1 VENDOR_MESSAGE_ATTR_SET
+0xD2 VENDOR_MESSAGE_ATTR_SET_UNACKNOWLEDGED
+0xD3 VENDOR_MESSAGE_ATTR_STATUS
+0xD4 VENDOR_MESSAGE_ATTR_INDICATION
+0xD5 VENDOR_MESSAGE_ATTR_CONFIRMATION
+0xCF VENDOR_MESSAGE_TRANSPARENT_MSG
+)
+
+
+
+(//configuration message and health message opcode
+0x80 MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER
+
+0x00 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_ADD
+0x01 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_UPDATE
+0x02 MESH_MESSAGE_OPCODE_CONFIG_COMPOSITION_DATA_STATUS
+0x03 MESH_MESSAGE_OPCODE_CONFIG_CONFIG_MODEL_PUBLICATION_SET
+0x04 MESH_MESSAGE_OPCODE_HEALTH_CURRENT_STATUS
+0x05 MESH_MESSAGE_OPCODE_HEALTH_FAULT_STATUS
+0x06 MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_PUBLICATION_STATUS
+0x00 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_DELETE_NO_HEAD
+0x01 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_GET_NO_HEAD
+0x02 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_LIST_NO_HEAD
+0x03 MESH_MESSAGE_OPCODE_CONFIG_APPKEY_STATUS_NO_HEAD
+0x04 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_GET_NO_HEAD
+0x05 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_SET_NO_HEAD
+0x06 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_SET_UNACKNOWLEDGED_NO_HEAD
+0x07 MESH_MESSAGE_OPCODE_HEALTH_ATTENTION_STATUS_NO_HEAD
+0x08 MESH_MESSAGE_OPCODE_CONFIG_COMPOSITION_DATA_GET_NO_HEAD
+0x09 MESH_MESSAGE_OPCODE_CONFIG_BEACON_GET_NO_HEAD
+0x0A MESH_MESSAGE_OPCODE_CONFIG_BEACON_SET_NO_HEAD
+0x0B MESH_MESSAGE_OPCODE_CONFIG_BEACON_STATUS_NO_HEAD
+0x0C MESH_MESSAGE_OPCODE_CONFIG_DEFAULT_TTL_GET_NO_HEAD
+0x0D MESH_MESSAGE_OPCODE_CONFIG_DEFAULT_TTL_SET_NO_HEAD
+0x0E MESH_MESSAGE_OPCODE_CONFIG_DEFAULT_TTL_STATUS_NO_HEAD
+0x0F MESH_MESSAGE_OPCODE_CONFIG_FRIEND_GET_NO_HEAD
+0x10 MESH_MESSAGE_OPCODE_CONFIG_FRIEND_SET_NO_HEAD
+0x11 MESH_MESSAGE_OPCODE_CONFIG_FRIEND_STATUS_NO_HEAD
+0x12 MESH_MESSAGE_OPCODE_CONFIG_GATT_PROXY_GET_NO_HEAD
+0x13 MESH_MESSAGE_OPCODE_CONFIG_GATT_PROXY_SET_NO_HEAD
+0x14 MESH_MESSAGE_OPCODE_CONFIG_GATT_PROXY_STATUS_NO_HEAD
+0x15 MESH_MESSAGE_OPCODE_CONFIG_KEY_REFRESH_PHASE_GET_NO_HEAD
+0x16 MESH_MESSAGE_OPCODE_CONFIG_KEY_REFRESH_PHASE_SET_NO_HEAD
+0x17 MESH_MESSAGE_OPCODE_CONFIG_KEY_REFRESH_PHASE_STATUS_NO_HEAD
+0x18 MESH_MESSAGE_OPCODE_CONFIG_MODEL_PUBLICATION_GET_NO_HEAD
+0x19 MESH_MESSAGE_OPCODE_CONFIG_MODEL_PUBLICATION_STATUS_NO_HEAD
+0x1A MESH_MESSAGE_OPCODE_CONFIG_MODEL_PUBLICATION_VIRTUAL_ADDRESS_SET_NO_HEAD
+0x1B MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_ADD_NO_HEAD
+0x1C MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_DELETE_NO_HEAD
+0x1D MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_DELETE_ALL_NO_HEAD
+0x1E MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_OVERWRITE_NO_HEAD
+0x1F MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_STATUS_NO_HEAD
+0x20 MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_ADD_NO_HEAD
+0x21 MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_DELETE_NO_HEAD
+0x22 MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_VIRTUAL_ADDRESS_OVERWRITE_NO_HEAD
+0x23 MESH_MESSAGE_OPCODE_CONFIG_NETWORK_TRANSMIT_GET_NO_HEAD
+0x24 MESH_MESSAGE_OPCODE_CONFIG_NETWORK_TRANSMIT_SET_NO_HEAD
+0x25 MESH_MESSAGE_OPCODE_CONFIG_NETWORK_TRANSMIT_STATUS_NO_HEAD
+0x26 MESH_MESSAGE_OPCODE_CONFIG_RELAY_GET_NO_HEAD
+0x27 MESH_MESSAGE_OPCODE_CONFIG_RELAY_SET_NO_HEAD
+0x28 MESH_MESSAGE_OPCODE_CONFIG_RELAY_STATUS_NO_HEAD
+0x29 MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_SUBSCRIPTION_GET_NO_HEAD
+0x2A MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_SUBSCRIPTION_LIST_NO_HEAD
+0x2B MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_SUBSCRIPTION_GET_NO_HEAD
+0x2C MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_SUBSCRIPTION_LIST_NO_HEAD
+0x2D MESH_MESSAGE_OPCODE_CONFIG_LOW_POWER_NODE_POLLTIMEOUT_GET_NO_HEAD
+0x2E MESH_MESSAGE_OPCODE_CONFIG_LOW_POWER_NODE_POLLTIMEOUT_STATUS_NO_HEAD
+0x2F MESH_MESSAGE_OPCODE_HEALTH_FAULT_CLEAR_NO_HEAD
+0x30 MESH_MESSAGE_OPCODE_HEALTH_FAULT_CLEAR_UNACKNOWLEDGED_NO_HEAD
+0x31 MESH_MESSAGE_OPCODE_HEALTH_FAULT_GET_NO_HEAD
+0x32 MESH_MESSAGE_OPCODE_HEALTH_FAULT_TEST_NO_HEAD
+0x33 MESH_MESSAGE_OPCODE_HEALTH_FAULT_TEST_UNACKNOWLEDGED_NO_HEAD
+0x34 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_GET_NO_HEAD
+0x35 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_SET_NO_HEAD
+0x36 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_SET_UNACKNOWLEDGED_NO_HEAD
+0x37 MESH_MESSAGE_OPCODE_HEALTH_PERIOD_STATUS_NO_HEAD
+0x38 MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_PUBLICATION_GET_NO_HEAD
+0x39 MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_PUBLICATION_SET_NO_HEAD
+0x3A MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_SUBSCRIPTION_GET_NO_HEAD
+0x3B MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_SUBSCRIPTION_SET_NO_HEAD
+0x3C MESH_MESSAGE_OPCODE_CONFIG_HEARTBEAT_SUBSCRIPTION_STATUS_NO_HEAD
+0x3D MESH_MESSAGE_OPCODE_CONFIG_MODEL_APP_BIND_NO_HEAD
+0x3E MESH_MESSAGE_OPCODE_CONFIG_MODEL_APP_STATUS_NO_HEAD
+0x3F MESH_MESSAGE_OPCODE_CONFIG_MODEL_APP_UNBIND_NO_HEAD
+0x40 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_ADD_NO_HEAD
+0x41 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_DELETE_NO_HEAD
+0x42 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_GET_NO_HEAD
+0x43 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_LIST_NO_HEAD
+0x44 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_STATUS_NO_HEAD
+0x45 MESH_MESSAGE_OPCODE_CONFIG_NETKEY_UPDATE_NO_HEAD
+0x46 MESH_MESSAGE_OPCODE_CONFIG_NODE_IDENTITY_GET_NO_HEAD
+0x47 MESH_MESSAGE_OPCODE_CONFIG_NODE_IDENTITY_SET_NO_HEAD
+0x48 MESH_MESSAGE_OPCODE_CONFIG_NODE_IDENTITY_STATUS_NO_HEAD
+0x49 MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_NO_HEAD
+0x4A MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_STATUS_NO_HEAD
+0x4B MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_APP_GET_NO_HEAD
+0x4C MESH_MESSAGE_OPCODE_CONFIG_SIG_MODEL_APP_LIST_NO_HEAD
+0x4D MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_APP_GET_NO_HEAD
+0x4E MESH_MESSAGE_OPCODE_CONFIG_VENDOR_MODEL_APP_LIST_NO_HEAD
+)
+
+(//Modle message opcode
+0x82 MESH_MODULE_MESSAGE_OPCODE_HEADER
+
+0x01 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_GET_NO_HEAD
+0x02 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_SET_NO_HEAD
+0x03 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_SET_UNACKNOWLEDGED_NO_HEAD
+0x04 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_STATUS_NO_HEAD
+0x05 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_GET_NO_HEAD
+0x06 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_SET_NO_HEAD
+0x07 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_SET_UNACKNOWLEDGED_NO_HEAD
+0x08 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LEVEL_STATUS_NO_HEAD
+0x09 MESH_MODULE_MESSAGE_OPCODE_GENERIC_DELTA_SET_NO_HEAD
+0x0A MESH_MODULE_MESSAGE_OPCODE_GENERIC_DELTA_SET_UNACKNOWLEDGED_NO_HEAD
+0x0B MESH_MODULE_MESSAGE_OPCODE_GENERIC_MOVE_SET_NO_HEAD
+0x0C MESH_MODULE_MESSAGE_OPCODE_GENERIC_MOVE_SET_UNACKNOWLEDGED_NO_HEAD
+0x0D MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_GET_NO_HEAD
+0x0E MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_SET_NO_HEAD
+0x0F MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_SET_UNACKNOWLEDGED_NO_HEAD
+0x10 MESH_MODULE_MESSAGE_OPCODE_GENERIC_DEFAULT_TRANSITION_TIME_STATUS_NO_HEAD
+0x11 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_GET_NO_HEAD
+0x12 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_STATUS_NO_HEAD
+0x13 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_SET_NO_HEAD
+0x14 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONPOWERUP_SET_UNACKNOWLEDGED_NO_HEAD
+0x15 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_GET_NO_HEAD
+0x16 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_SET_NO_HEAD
+0x17 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_SET_UNACKNOWLEDGED_NO_HEAD
+0x18 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LEVEL_STATUS_NO_HEAD
+0x19 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LAST_GET_NO_HEAD
+0x1A MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_LAST_STATUS_NO_HEAD
+0x1B MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_GET_NO_HEAD
+0x1C MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_STATUS_NO_HEAD
+0x1D MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_GET_NO_HEAD
+0x1E MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_STATUS_NO_HEAD
+0x1F MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_SET_NO_HEAD
+0x20 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x21 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_SET_NO_HEAD
+0x22 MESH_MODULE_MESSAGE_OPCODE_GENERIC_POWER_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x23 MESH_MODULE_MESSAGE_OPCODE_GENERIC_BATTERY_GET_NO_HEAD
+0x24 MESH_MODULE_MESSAGE_OPCODE_GENERIC_BATTERY_STATUS_NO_HEAD
+0x25 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_GET_NO_HEAD
+0x40 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_STATUS
+0x26 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_GET_NO_HEAD
+0x27 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_STATUS_NO_HEAD
+0x41 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_SET
+0x42 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_GLOBAL_SET_UNACKNOWLEDGED
+0x28 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_SET_NO_HEAD
+0x29 MESH_MODULE_MESSAGE_OPCODE_GENERIC_LOCATION_LOCAL_SET_UNACKNOWLEDGED_NO_HEAD
+0x2A MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTIES_GET_NO_HEAD
+0x43 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTIES_STATUS
+0x2B MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_GET_NO_HEAD
+0x44 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_SET
+0x45 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_SET_UNACKNOWLEDGED
+0x46 MESH_MODULE_MESSAGE_OPCODE_GENERIC_MANUFACTURER_PROPERTY_STATUS
+0x2C MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTIES_GET_NO_HEAD
+0x47 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTIES_STATUS
+0x2D MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_GET_NO_HEAD
+0x48 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_SET
+0x49 MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_SET_UNACKNOWLEDGED
+0x4A MESH_MODULE_MESSAGE_OPCODE_GENERIC_ADMIN_PROPERTY_STATUS
+0x2E MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTIES_GET_NO_HEAD
+0x4B MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTIES_STATUS
+0x2F MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_GET_NO_HEAD
+0x4C MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_SET
+0x4D MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_SET_UNACKNOWLEDGED
+0x4E MESH_MODULE_MESSAGE_OPCODE_GENERIC_USER_PROPERTY_STATUS
+0x4F MESH_MODULE_MESSAGE_OPCODE_GENERIC_CLIENT_PROPERTIES_GET
+0x50 MESH_MODULE_MESSAGE_OPCODE_GENERIC_CLIENT_PROPERTIES_STATUS
+0x30 MESH_MODULE_MESSAGE_OPCODE_SENSOR_DESCRIPTOR_GET_NO_HEAD
+0x51 MESH_MODULE_MESSAGE_OPCODE_SENSOR_DESCRIPTOR_STATUS
+0x31 MESH_MODULE_MESSAGE_OPCODE_SENSOR_GET_NO_HEAD
+0x52 MESH_MODULE_MESSAGE_OPCODE_SENSOR_STATUS
+0x32 MESH_MODULE_MESSAGE_OPCODE_SENSOR_COLUMN_GET_NO_HEAD
+0x53 MESH_MODULE_MESSAGE_OPCODE_SENSOR_COLUMN_STATUS
+0x33 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SERIES_GET_NO_HEAD
+0x54 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SERIES_STATUS
+0x34 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_GET_NO_HEAD
+0x55 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_SET
+0x56 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_SET_UNACKNOWLEDGED
+0x57 MESH_MODULE_MESSAGE_OPCODE_SENSOR_CADENCE_STATUS
+0x35 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTINGS_GET_NO_HEAD
+0x58 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTINGS_STATUS
+0x36 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_GET_NO_HEAD
+0x59 MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_SET
+0x5A MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_SET_UNACKNOWLEDGED
+0x5B MESH_MODULE_MESSAGE_OPCODE_SENSOR_SETTING_STATUS
+0x37 MESH_MODULE_MESSAGE_OPCODE_TIME_GET_NO_HEAD
+0x5C MESH_MODULE_MESSAGE_OPCODE_TIME_SET
+0x5D MESH_MODULE_MESSAGE_OPCODE_TIME_STATUS
+0x38 MESH_MODULE_MESSAGE_OPCODE_TIME_ROLE_GET_NO_HEAD
+0x39 MESH_MODULE_MESSAGE_OPCODE_TIME_ROLE_SET_NO_HEAD
+0x3A MESH_MODULE_MESSAGE_OPCODE_TIME_ROLE_STATUS_NO_HEAD
+0x3B MESH_MODULE_MESSAGE_OPCODE_TIME_ZONE_GET_NO_HEAD
+0x3C MESH_MODULE_MESSAGE_OPCODE_TIME_ZONE_SET_NO_HEAD
+0x3D MESH_MODULE_MESSAGE_OPCODE_TIME_ZONE_STATUS_NO_HEAD
+0x3E MESH_MODULE_MESSAGE_OPCODE_TAI_UTC_DELTA_GET_NO_HEAD
+0x3F MESH_MODULE_MESSAGE_OPCODE_TAI_UTC_DELTA_SET_NO_HEAD
+0x40 MESH_MODULE_MESSAGE_OPCODE_TAI_UTC_DELTA_STATUS_NO_HEAD
+0x41 MESH_MODULE_MESSAGE_OPCODE_SCENE_GET_NO_HEAD
+0x42 MESH_MODULE_MESSAGE_OPCODE_SCENE_RECALL_NO_HEAD
+0x43 MESH_MODULE_MESSAGE_OPCODE_SCENE_RECALL_UNACKNOWLEDGED_NO_HEAD
+0x5E MESH_MODULE_MESSAGE_OPCODE_SCENE_STATUS
+0x44 MESH_MODULE_MESSAGE_OPCODE_SCENE_REGISTER_GET_NO_HEAD
+0x45 MESH_MODULE_MESSAGE_OPCODE_SCENE_REGISTER_STATUS_NO_HEAD
+0x46 MESH_MODULE_MESSAGE_OPCODE_SCENE_STORE_NO_HEAD
+0x47 MESH_MODULE_MESSAGE_OPCODE_SCENE_STORE_UNACKNOWLEDGED_NO_HEAD
+0x9E MESH_MODULE_MESSAGE_OPCODE_SCENE_DELETE_NO_HEAD
+0x9F MESH_MODULE_MESSAGE_OPCODE_SCENE_DELETE_UNACKNOWLEDGED_NO_HEAD
+0x48 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_GET_NO_HEAD
+0x5F MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_STATUS
+0x49 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_GET_NO_HEAD
+0x4A MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_STATUS_NO_HEAD
+0x60 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_SET
+0x61 MESH_MODULE_MESSAGE_OPCODE_SCHEDULER_ACTION_SET_UNACKNOWLEDGED
+0x4B MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LIGHT_LIGHTNESS_GET_NO_HEAD
+0x4C MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_SET_NO_HEAD
+0x4D MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_SET_UNACKNOWLEDGED_NO_HEAD
+0x4E MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_STATUS_NO_HEAD
+0x4F MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_GET_NO_HEAD
+0x50 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_SET_NO_HEAD
+0x51 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_SET_UNACKNOWLEDGED_NO_HEAD
+0x52 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LINEAR_STATUS_NO_HEAD
+0x53 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LAST_GET_NO_HEAD
+0x54 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_LAST_STATUS_NO_HEAD
+0x55 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_GET_NO_HEAD
+0x56 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_STATUS_NO_HEAD
+0x57 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_GET_NO_HEAD
+0x58 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_STATUS_NO_HEAD
+0x59 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_SET_NO_HEAD
+0x5A MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x5B MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_SET_NO_HEAD
+0x5C MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x5D MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_GET_NO_HEAD
+0x5E MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_SET_NO_HEAD
+0x5F MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_SET_UNACKNOWLEDGED_NO_HEAD
+0x60 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_STATUS_NO_HEAD
+0x61 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_GET_NO_HEAD
+0x62 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_GET_NO_HEAD
+0x63 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_STATUS_NO_HEAD
+0x64 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_SET_NO_HEAD
+0x65 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_SET_UNACKNOWLEDGED_NO_HEAD
+0x66 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_STATUS_NO_HEAD
+0x67 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_GET_NO_HEAD
+0x68 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_STATUS_NO_HEAD
+0x69 MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_SET_NO_HEAD
+0x6A MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x6B MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_SET_NO_HEAD
+0x6C MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_TEMPERATURE_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x6D MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_GET_NO_HEAD
+0x6E MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_GET_NO_HEAD
+0x6F MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_SET_NO_HEAD
+0x70 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_SET_UNACKNOWLEDGED_NO_HEAD
+0x71 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_HUE_STATUS_NO_HEAD
+0x72 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_GET_NO_HEAD
+0x73 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_SET_NO_HEAD
+0x74 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_SET_UNACKNOWLEDGED_NO_HEAD
+0x75 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SATURATION_STATUS_NO_HEAD
+0x76 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SET_NO_HEAD
+0x77 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_SET_UNACKNOWLEDGED_NO_HEAD
+0x78 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_STATUS_NO_HEAD
+0x79 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_TARGET_GET_NO_HEAD
+0x7A MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_TARGET_STATUS_NO_HEAD
+0x7B MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_GET_NO_HEAD
+0x7C MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_STATUS_NO_HEAD
+0x7D MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_RANGE_GET_NO_HEAD
+0x7E MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_RANGE_STATUS_NO_HEAD
+0x7F MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_SET_NO_HEAD
+0x80 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x81 MESH_MODULE_MESSAGE_OPCODE_LIGHT_HSL_RANGE_SET_NO_HEAD
+0x83 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_GET_NO_HEAD
+0x84 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_SET_NO_HEAD
+0x85 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_SET_UNACKNOWLEDGED_NO_HEAD
+0x86 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_STATUS_NO_HEAD
+0x87 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_TARGET_GET_NO_HEAD
+0x88 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_TARGET_STATUS_NO_HEAD
+0x89 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_GET_NO_HEAD
+0x8A MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_STATUS_NO_HEAD
+0x8B MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_GET_NO_HEAD
+0x8C MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_STATUS_NO_HEAD
+0x8D MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_SET_NO_HEAD
+0x8E MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_DEFAULT_SET_UNACKNOWLEDGED_NO_HEAD
+0x8F MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_SET_NO_HEAD
+0x90 MESH_MODULE_MESSAGE_OPCODE_LIGHT_XYL_RANGE_SET_UNACKNOWLEDGED_NO_HEAD
+0x91 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_GET_NO_HEAD
+0x92 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_SET_NO_HEAD
+0x93 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_SET_UNACKNOWLEDGED_NO_HEAD
+0x94 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_MODE_STATUS_NO_HEAD
+0x95 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_GET_NO_HEAD
+0x96 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_SET_NO_HEAD
+0x97 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_SET_UNACKNOWLEDGED_NO_HEAD
+0x98 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_OM_STATUS_NO_HEAD
+0x99 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_GET_NO_HEAD
+0x9A MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_SET_NO_HEAD
+0x9B MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_SET_UNACKNOWLEDGED_NO_HEAD
+0x9C MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_LIGHT_ONOFF_STATUS_NO_HEAD
+0x9D MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_GET_NO_HEAD
+0x62 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_SET
+0x63 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_SET_UNACKNOWLEDGED
+0x64 MESH_MODULE_MESSAGE_OPCODE_LIGHT_LC_PROPERTY_STATUS)
+
+// status code
+(
+0x00 MESH_SUCCESS
+0x01 MESH_INVALID_ADDRESS
+0x02 MESH_INVALID_MODEL
+0x03 MESH_INVALID_APPKEYINDEX
+0x04 MESH_INVALID_NETKEYINDEX
+0x05 MESH_INSUFFICIENT_RESOURCES
+0x06 MESH_KEYINDEX_ALREAD_STORED
+0x07 MESH_INVALID_PUBLISH_PARAMETERS
+0x08 MESH_NOT_A_SUBSCRIBE_MODEL
+0x09 MESH_STORAGE_FAILURE
+0x0a MESH_FEATURE_NOT_SUPPORTED
+0x0b MESH_CANNOT_UPDATE
+0x0c MESH_CANNOT_REMOVE
+0x0d MESH_CANNOT_BIND
+0x0e MESH_TEMPORARILY_UNABLE_TO_CHANGE_STATE
+0x0f MESH_CANNOT_SET
+0x10 MESH_UNSPECIFIED_ERROR
+0x11 MESH_INVALID_BINDING
+)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(
+0x00F0 VENDOR_MESSAGE_TMALL_DST
+)
+
+(// vendor model attribute
+0x0123 VENDOR_ATTR_COLOR_SERVER
+0x0100 VENDOR_ATTR_GENERIC_ONOFF_SERVER
+0x0121 VENDOR_ATTR_LIGHTNESS_LEVEL_SERVER
+0x0122 VENDOR_ATTR_COLOR_TEMPERATURE_SERVER
+0x0534 VENDOR_ATTR_MAIN_LIGHT_SERVER
+0x0533 VENDOR_ATTR_BACKGROUND_LIGHT_ONOFF_SERVER
+0xf004 VENDOR_ATTR_SCENE_SERVER
+)
+
+(//Timer opcode
+0x01A8 VENDOR_MESSAGE_OPCODE_COMPANY_ID
+//时间
+0xF01F VENDOR_MESSAGE_ATTR_TYPE_TIME
+//时区
+0xF01E VENDOR_MESSAGE_ATTR_TYPE_TIME_ZONE
+//对时
+0xF01D VENDOR_MESSAGE_ATTR_TYPE_ON_TIME
+//定时
+0xF010 VENDOR_MESSAGE_ATTR_TYPE_TIMING
+//周期定时
+0xF011 VENDOR_MESSAGE_ATTR_TYPE_CYCLE_TIMING
+//删除定时
+0xF012 VENDOR_MESSAGE_ATTR_TYPE_DELETE_TIMING
+
+//颜色
+0x0123 VENDOR_MESSAGE_ATTR_TYPE_COLOR
+//主灯
+0x0534 VENDOR_MESSAGE_ATTR_TYPE_MAIN_LIGHT
+//背光灯
+0x0533 VENDOR_MESSAGE_ATTR_TYPE_BACKGROUND_LIGHT
+)
+
+(//天猫event事件表
+//设备发生的事件，比如上电或者定时完成
+0xF009 VENDOR_ATTR_TYPE_EVENT_TRIGGER
+
+//天猫设备上电
+0x03 VENDOR_MESSAGE_EVENT_DEVICE_POWER_ON
+//天猫定时完成
+0x11 VENDOR_MESSAGE_EVENT_FINISH_TIMING
+)
+
+(
+0x80 VENDOR_MESSAGE_SEND_TID_MIN
+0xC0 VENDOR_MESSAGE_SEND_TID_MAX
+)
+
+(
+0x59 TIMER_CYCLICAL_FALG
+60 SECONDS_OF_MIN
+345600 SECONDS_OF_FOUR_DAYS
+604800 SECONDS_OF_WEEK
+86400 SECONDS_OF_DAY
+0x01e0 EIGHT_HOURS_TIME_ZONE_OFFSET
+
+)
+
+
+
+
+
+
+
+(
+6 ADV_PACKET_MIN_LENGTH
+37 ADV_PACKET_MAX_LENGTH
+
+1 AD_TYPE_MIN_LENGTH
+30 AD_TYPE_MAX_LENGTH
+)
+
+
+
+
+
+
+(//transport mic cache parameter
+10 TRANSPORT_MIC_CACHE_SPACE_NUM
+4 TRANSPORT_MIC_CACHE_SPACE_SIZE
+//总长度少一个space
+36 TRANSPORT_MIC_CACHE_TOTAL_SIZE
+)
+
+(
+0x00 MESH_EEP_THREE_TUPLE_OFFSET
+0x1a MESH_EEP_NETWORK_KEY_OFFSET
+0x2d MESH_EEP_APPLICATION_KEY_OFFSET
+0x3d MESH_EEP_DEVICE_KEY_OFFSET
+0x4d MESH_EEP_RESET_COUNT_OFFSET
+0x4e MESH_EEP_SEQ_OFFSET
+0x51 MESH_EEP_SUBSCRIPTION_OFFSET
+)
+
+(
+0x1a MESH_EEP_THREE_TUPLE_LENGTH
+0x13 MESH_EEP_NETWORK_KEY_LENGTH
+0x10 MESH_EEP_APPLICATION_KEY_LENGTH
+0x10 MESH_EEP_DEVICE_KEY_LENGTH
+0x01 MESH_EEP_RESET_COUNT_LENGTH
+0x03 MESH_EEP_SEQ_LENGTH
+0x10 MESH_EEP_SUBSCRIPTION_LENGTH
+0x40 MESH_EEP_SUBSCRIPTION_TOTAL_LENGTH
+)
+
+
+
+
+(//mem_mesh_advertising_unprovisioned_device_beacon_switch
+0 DEVICE_BEACON_OFF
+1 DEVICE_BEACON_ON
+)
+
+(
+//未配网广播超时10min
+0x1770	ADV_UNPROVISIONED_DEVICE_BEACON_TIMEOUT
+//未配网广播间隔500ms
+5		ADV_UNPROVISIONED_DEVICE_BEACON_INTERVAL
+//未配网广播时长120ms=20ms*6
+6		ADV_UNPROVISIONED_DEVICE_BEACON_DURATION
+
+//静默广播超时:无
+0		ADV_SILENCE_DEVICE_BEACON_TIMEOUT
+//静默广播间隔60s
+600		ADV_SILENCE_DEVICE_BEACON_INTERVAL
+//静默广播时长120ms=20ms*6
+6		ADV_SILENCE_DEVICE_BEACON_DURATION
+
+
+//配网后广播间隔
+0x54		ADV_PAIRING_MESH_MESSAGE_INTERVAL
+//配网后广播时长
+20		ADV_PAIRING_MESH_MESSAGE_DURATION
+
+10		ADV_RELAY_MESH_MESSAGE_DURATION
+)
+
+(
+0x12 MAX_APP_MSSAGE_PAYLOAD_LENGTH
+7 BIT_OF_APP_PACKAGE_NUM
+6 BIT_OF_ADV_IN_OFF
+)
+
+(
+//mesh 回复APP广播间隔24*0.625ms = 15ms
+0x15 MESH_ADV_APP_MESSAGE_INTERVAL
+//mesh回复tmall广播间隔32*0.625ms = 20ms
+0x1d MESH_ADV_TMALL_MESSAGE_INTERVAL
+)
+
+
+
+
+(
+0x2c COMMA
+-4 DECREASED_FOUR
+
+)
+
+(
+0x19 MIC_SIZE_64BIT
+0x09 MIC_SIZE_32BIT
+)
+
+
+
+
+
+
+(
+33 GATT_RECEIVE_MSG_BUFFER_SIZE
+)
+
+
+
+
+
+
+(//mem_mesh_provisioned_flag
+0 PAIRED_STATUS
+1 UNPROVISIONED_BEACON_STATUS
+2 PAIRING_STATUS
+3 SILENCE_BEACON_STATUS
+4 RECEIVED_CONFIG_APPKEY_ADD
+)
+
+(//mem_mesh_UUID_FeatureFlag
+0 BIT_SILENCE_ADV_FLAG
+)
+
+//mem Beacon Tmall Length
+(
+0x01 UNPROVISIONED_ADLEN_LENGTH
+0x01 UNPROVISIONED_ADTYPE_LENGTH
+0x01 UNPROVISIONED_DEVICE_BEACON_LENGTH
+0x10 UNPROVISIONED_DEVICE_UUID_LENGTH
+0x02 UNPROVISIONED_OOB_INFORMATION_LENGTH
+)
+
+// mem Beacon Type
+(
+0x00 UNPROVISIONED_DEVICE_BEACON
+0x01 SECURE_NETWORK_BEACON
+0x1827 MESH_PROVISIONING_UUID
+0x1828 MESH_PROXY_SERVICE
+
+)
+
+// Provisioning Type
+(
+0x00 PROVISIONING_RANDOM
+0x01 PROVISIONING_CONFIRMATION
+0x02 PROVISIONING_DATA
+0x03 PROVISIONING_COMPLETE
+0x04 PROVISIONING_CONFIG
+0x05 PROVISIONING_CONFIG_ACK
+0x06 PROVISIONING_IOS_DATA
+0x07 PROVISIONING_SEND_IOS_DATA
+)
+
+(//mem_mesh_Provisioning_State_Flag
+// FLAG bit1:Provisioning Confirmation
+1 RECEIVE_PROVISIONING_RANDOM
+2 RECEIVE_PROVISIONING_DATA
+)
+
+
+(//provisioning packet info size
+3 PROVISIONING_PACKET_LENGTH_FLAGS
+6 PROVISIONING_PACKET_LENGTH_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE
+5 PROVISIONING_PACKET_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE
+1 PROVISIONING_PACKET_LENGTH
+1 PROVISIONING_PACKET_AD_TYPE
+2 PROVISIONING_PACKET_COMPANY_ID
+1 PROVISIONING_PACKET_VID
+1 PROVISIONING_PACKET_PROVISIONING_TYPE
+//provisioning random
+2 PROVISIONING_PACKET_RANDOM_MAC
+8 PROVISIONING_PACKET_RANDOM_RANDOM_A
+8 PROVISIONING_PACKET_RANDOM_RANDOM_B
+//provisioning confirmation
+2 PROVISIONING_PACKET_CONFIRMATION_MAC
+16 PROVISIONING_PACKET_CONFIRMATION_DEVICE
+//provisioning complete
+6 PROVISIONING_PACKET_COMPLETE_MAC
+
+2 PROVISIONING_CONFIG_ACK_MAC
+1 PROVISIONING_CONFIG_ACK_FIELD
+
+)
+
+(
+0x01 PROVISIONING_CONFIG_ACK_NOTE
+)
+
+(//gatt package struct
+0 GATT_PACKAGE_MSG_ID
+1 GATT_PACKAGE_PACKAGE_NUM
+2 GATT_PACKAGE_LENGTH
+3 GATT_PACKAGE_PAYLOAD
+)
+
+(
+0x12 MAX_LENGTH_PRIVISIONING_CONTROL_MSG_ANDROID
+0x08 MAX_LENGTH_PRIVISIONING_CONTROL_MSG_IOS
+0x07 MAX_LENGTH_PRIVISIONING_PAIRING_MSG_IOS
+)
+
+(
+4 MAX_GATT_PACKAGE_NUM
+50 GATT_RECEIVE_TIMEOUT
+)
+
+
+
+
+
+(
+8 SUBSCRIPTION_MAX_COUNT
+)
+
+
+
+
+(//typedef struct of mem_mesh_element_device
+0 ELEMENT_DEVICE_GROUP_ADDR
+2 ELEMENT_DEVICE_QUEUE_BUFFER_PTR
+4 ELEMENT_DEVICE_VENDOR_TIME_PTR
+6 ELEMENT_DEVICE_SUBSCRIPTION_LABEL
+22 ELEMENT_DEVICE_UPPER_ADV_FLAG
+23 ELEMENT_DEVICE_UPPER_QUEUE_PTR
+25 ELEMENT_DEVICE_TRAN_PACKAGE_TID
+26 ELEMENT_DEVICE_TRAN_PACKAGE_TYPE
+27 SIZEOF_ELEMENT_DEVICE
+
+)
+
+
+
+(
+36 MESH_SEGMENT_SIZE
+)
+
+
+
+(
+320 MESH_TIMER_BUFFER_SIZE
+)
+
+
+(//bit map of mem_mesh_core_feature
+0 MESH_FEATURE_DISABLE_LOG
+1 MESH_FEATURE_DISABLE_RELAY
+2 MESH_FEATURE_DISABLE_SUBSCRIPTION
+3 MESH_FEATURE_DISABLE_APP_PAIRING
+)
+
+(//taobao id
+0x01a8	COMPANY_IDENTIFIERS_ALIBABA
+0x0d	ALI_MESH_VID_NUMBER
+0x0da801 COMPANY_ID_ALIBABA_AND_VID
+0x0ea801 COMPANY_ID_ALIBABA_AND_VID_GATT
+)
+
+
+(
+0x00 MESH_CODE_INIT
+0x01 MESH_RECEIVE_PROVISIONING_PACKET
+0x02 MESH_RECEIVE_PROVISIONING_RANDOM_PACKET
+0x03 MESH_SEND_PROVISIONING_CONFIRMATION_PACKET
+0x04 MESH_RECEIVE_PROVISIONING_DATA_PACKET
+0x05 MESH_SEND_PROVISIONING_COMPLETE_PACKET
+0x06 MESH_RECEIVE_PROVISIONING_FAILED_PACKET
+
+0x10 MESH_ENCRYPT_SHA256_FUNCTION_INPUT
+0x11 MESH_ENCRYPT_SHA256_FUNCTION_RESULT
+0x12 MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_M
+0x13 MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_K
+0x14 MESH_ENCRYPT_AES_CMAC_FUNCTION_RESULT
+
+0x20 MESH_NETWORK_RECEIVE_PACKET
+0x21 MESH_NETWORK_RELAY_PACKET
+
+0x30 MESH_LOWER_RECEIVE_PACKET
+0x40 MESH_UPPER_RECEIVE_PACKET
+0x41 MESH_UPPER_SEND_PACKET
+
+0x50 MESH_ACCESS_RECEIVE_MESSAGE
+
+0x60 MESH_PROXY_RECEIVE_MESSAGE_HANDLE
+0x61 MESH_PROXY_RECEIVE_MESSAGE
+
+0xF0 MESH_MESSAGE_GENERIC_ONOFF_SET
+0xF1 MESH_MESSAGE_SET_LIGHT_LIGHTNESS
+0xF2 MESH_MESSAGE_SET_CTL
+)
+
+(//LUA LOG 
+0xAA LUA_LOG_PACKET_HEADER
+0x03 LUA_LOG_PAKCET_TYPE
+0xBB LUA_LOG_PACKET_TRAIL
+)
+
+(//logging level
+0 LOGGING_DEBUG
+1 LOGGING_INFO
+2 LOGGING_WARNING
+3 LOGGING_ERROR
+4 LOGGING_CRITICAL
+)
+
+(
+0x1c00 mem_mesh_uart_log_rx_buff
+0x1c01 mem_mesh_uart_log_rx_buff_end
+0x1c02 mem_mesh_uart_log_tx_buff
+0x1fff mem_mesh_uart_log_tx_buff_end
+)
+
+
+
+
+
+
+
+(
+7 TRANSPORT_HEAD_BIT_SEG
+6 TRANSPORT_HEAD_BIT_AKF
+05 TRANSPORT_HEAD_BIT_AID
+7 BIT_CTL
+)
+
+
+
+
+
+
+
+
+
+
+(//Generic OnOff
+0x00 GENERIC_ONOFF_CMD_OFF
+0x01 GENERIC_ONOFF_CMD_ON
+)
+
+(//LIGHTNESS
+0xFFFF ALI_MESH_LIGHTNESS_MAX
+0x0064 ALI_MESH_LIGHTNESS_LEVEL
+)
+
+(//TEMPERATURE
+0x4E20 ALI_MESH_TEMPERATURE_MAX
+0x0320 ALI_MESH_TEMPERATURE_MIN
+0x0064 ALI_MESH_TEMPERATURE_LEVEL
+)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(//nonce type
+0x00 NETWORK_NONCE
+0x01 APPLICATION_NONCE
+0x02 DEVICE_NONCE
+0x03 PROXY_NONCE
+)
+
+
+(
+0x00c0 GROUP_ADDRESS_0XC000_little_endian
+0xffcf GROUP_ADDRESS_0XCFFF_little_endian
+0x02c0 GROUP_ADDRESS_0XC002_little_endian
+0x07c0 GROUP_ADDRESS_0XC007_little_endian
+0x01c0 GROUP_ADDRESS_0XC001_little_endian
+0xffff GROUP_ADDRESS_0XFFFF_little_endian
+)
+
+
+(//SRC SEQ cache parameter
+10 CACHE_SPACE_NUM
+5 CACHE_SPACE_SIZE
+)
+
+(
+12 MESH_NETWORK_PACKET_MIN_LENGTH
+30 MESH_NETWORK_PACKET_MAX_LENGTH
+)
+
+(
+0 MESH_MESSAGE_TMALL
+1 MESH_MESSAGE_APP
+2 MESH_MESSAGE_PROXY
+)
+
+
+
+(
+0x00 MESH_PROXY_SERVICE_DATA_ID_TYPE_NETWORK_ID
+0x01 MESH_PROXY_SERVICE_DATA_ID_TYPE_NODE_IDENTITY
+)
+
+(
+0x00 MESH_PROXY_MESSAGE_TYPE_NETWORK_PDU
+0x01 MESH_PROXY_MESSAGE_TYPE_MESH_BEACON
+0x02 MESH_PROXY_MESSAGE_TYPE_PROXY_CONFIGURATION
+0x03 MESH_PROXY_MESSAGE_TYPE_PROVISIONING_PDU
+)
+
+(
+0x0e	MESH_PROXY_DATA_IN_HANDLE
+0x10	MESH_PROXY_DATA_OUT_HANDLE
+0x11	MESH_PROXY_ENABLE_DATA_OUT_HANDLE
+0x14	MESH_PROVISIONING_DATA_IN_HANDLE
+0x16	MESH_PROVISIONING_DATA_OUT_HANDLE
+0x17	MESH_PROVISIONING_ENABLE_DATA_OUT_HANDLE
+)
+
+
+
+
+
+
+
+
+
+
+
+
+(
+15 UNSEGMENTED_ACCESS_MESSAGE_MAX_UPPER_TRANSPORT_ACCESS_PDU_LEN
+12 SEGMENTED_ACCESS_MESSAGE_UNINT_PDU_LEN
+)
+
+(//bit of mem_mesh_upper_tran_layer_temp_packet_flag
+7 BIT_UPPER_FLAG_PROXY_CONTROL
+6 BIT_UPPER_FLAG_APP_CONTROL
+5 BIT_UPPER_FLAG_VENDOR_INDICATION
+4 BIT_UPPER_FLAG_RETRANSMIT
+//BIT3-0
+0x0f DATA_UPPER_FLAG_MAX_RETRY_COUNT
+
+2 UPPER_RETRY_COUNT_STATUS
+1 UPPER_RETRY_COUNT_INDICATION
+)
+
+(
+0 NULL_PACKET_ADVERTISING
+1 PACKET_IN_BEARER
+2 PACKET_IN_ADVERTING
+3 PACKET_RECEIVE_INDICATION
+)
+
+(
+1 UPPER_TRAN_TMALL_MESSAGE
+2 UPPER_TRAN_APP_MESSAGE
+3 UPPER_TRAN_TMALL_AND_APP
+
+0 BIT_UPPER_TRAN_TMALL_MESSAGE
+1 BIT_UPPER_TRAN_APP_MESSAGE
+2 BIT_UUPER_TRAN_PROXY_MESSAGE
+)
+
+
+
+
+//adc read
+(
+0 ADC_CONFIG_VINLPM
+1 ADC_CONFIG_HVIN
+2 ADC_CONFIG_GPIO
+)
+
+
+(
+0 QUEUE_OFFSET_EACH_SIZE
+1 QUEUE_OFFSET_LENGTH
+2 QUEUE_OFFSET_CURR_NUM
+3 QUEUE_OFFSET_READ_PTR
+4 QUEUE_OFFSET_WRITE_PTR
+5 QUEUE_OFFSET_ELE_INIT_ADDR
+)
+(
+//Flash Register
+0x05 FLASH_READ_SATUS
+
+// Flash Status Register
+0x00 FLASH_STATUS_WIP
+0X01 FLASH_STATUS_WEL
+0X02 FLASH_STATUS_BP0
+0X03 FLASH_STATUS_BP1
+
+//Flash Write Sm
+0X00 FLASH_SM_NO_BUYS
+0X01 FLASH_SM_START
+0X02 FLASH_SM_ERASE_SECTOR
+0X03 FLASH_SM_WAIT_ERASE_SECTOR
+0X04 FLASH_SM_WRITE_DATA
+0X05 FLASH_SM_WAIT_WRITE_DATA
+
+
+//Flash Command
+0x02 FLASH_COMMAND_WRITE_DATA
+0x03 FLASH_COMMAND_READ_DATA
+0x06 FLASH_COMMAND_WRITE_ENABLE
+0x20 FLASH_COMMAND_SECTOR_ERASE
+0xAB FLASH_COMMAND_RELEASE_FROM_POWERDOWN
+0xB9 FLASH_COMMAND_POWERDOWN
+
+)
+
+
+//OTP
+(
+0x0000 OTP_OFFSET_UCODE_FLAG
+0x1fd0 OTP_OFFSET_APP_VDD_SEL
+0X1fd1 OTP_OFFSET_DEVICE_LOCK
+0X1fd2 OTP_OFFSET_PERIPHERALS_LOCK
+0x1fd3 OTP_OFFSET_LOADCODE_DELAY
+0x1fe0 OTP_OFFSET_ADC_PARAM
+0x1ff0 OTP_OFFSET_UCODE_KEY
+
+//LOADCODE
+0 OTP_LOADCODE_OFFSET_UCODE_FLAG
+2 OTP_LOADCODE_OFFSET_APP_VDD_SEL
+3 OTP_LOADCODE_OFFSET_DEVICE_LOCK
+4 OTP_LOADCODE_OFFSET_PERIPHERALS_LOCK
+5 OTP_LOADCODE_OFFSET_LOADCODE_DELAY
+
+//OTP_OFFSET_PERIPHERALS_LOCK
+0 OTP_SPI_LOCK_BIT
+1 OTP_SPI2_LOCK_BIT
+2 OTP_UART_LOCK_BIT
+3 OTP_UARTB_LOCK_BIT
+4 OTP_IIC_LOCK_BIT
+6 OTP_LE_LOCK_BIT
+7 OTP_BR_LOCK_BIT
+)
+
+
+
+(
+0	eeprom_nv_ram
+
+)
+
+
+(
+0 APP_HANDSHAKE_NULL
+1 APP_HANDSHAKE_DONE
+
+)
+
+(
+1 dvc_op_hci
+2 dvc_op_esl
+4 dvc_op_dongle
+5 dvc_op_test
+8 dvc_op_mouse
+9 dvc_op_shutter
+0x0a dvc_op_module
+0x0b dvc_op_ali_mesh
+0x0c dvc_op_hci_boot
+0x0d dvc_op_remote_car
+0x0e dvc_op_car
+0x0f dvc_op_antilost
+   
+)
+
+(
+7 UCODE_FLAG_ENC
+6 UCODE_FLAG_SKIP_EEP
+5 UCODE_FLAG_SKIP_FLASH
+4 UCODE_FLAG_HCI
+)
+
+
+(
+7 gpio_active_bit
+)
+(
+2 HID_HANDSHAKE_TIMEOUT
+
+)
+
+(
+1 APP_FLAG_RECONNECT
+)
+(
+5 LPM_WAKE_UP_DELAY_TIMER
+)
+
+
+//mem_app_disconn_reason
+//mem_app_disconn_reason_flag
+//bit map
+(
+2 APP_DISC_RSN_SIZE
+)
+(
+0 APP_DISC_BY_BUTTON
+1 APP_DISC_AFTER_PAIRING
+2 APP_DISC_AFTER_RECONN
+3 APP_DISC_AFTER_SNIFF
+4 APP_DISC_AFTER_SETUP_DONE
+5 APP_DISC_AFTER_HANDSHAKE
+6 APP_DISC_BT
+7 APP_DISC_BLE
+8 APP_DISC_L2CAP_REFUSED
+9 APP_DISC_SWITCH_FAIL
+)
+//eeprom init flag
+(
+0xaa55 EEPROM_INIT_FLAG
+)
+
+(
+1 KEY_CONF_STRUCT_LEN
+0 KEY_PIN_OFFSET
+)
+
+(
+12000000 PWM_12MHZ
+24000000 PWM_24MHZ
+33000 PWM_33KHZ
+)
+(
+0 POWER_OFF
+1 POWER_STARTING
+2 POWER_STANDBY
+)
+//power parameter offset(8 byte)
+(
+0 power_state_offset
+1 power_timer_offset
+2 power_off_timeout_offset
+3 power_starting_timeout_offset
+4 power_off_cb_offset
+6 power_starting_cb_offset
+8 power_standby_cb_offset
+10 ui_butten_up_cb_offset
+)
+
+//auth rom address
+(
+0x9000 mem_b_box
+0x9100 mem_e_box
+0x9200 mem_l_box
+0x9300 memk
+0x9400 mem_theta
+0x9420 mem_local_sig
+0x9fff mem_sim_slave
+//mouse
+0x9468 MOUSE_BT_SDP_ADDR
+0x9732 MOUSE_BLE_ATT_LIST_ADDR
+//dongle
+0x99A4 USB_KBDATA_VENDOR_DEFINE_ADDR
+0x99BF USB_KBDATA_ADDR
+0x99FF USB_MSDATA_ADDR
+0x9AA3 USB_DEVICEDATA_ADDR
+0x9AB6 USB_CONFDATA_ADDR
+//shutter
+0x9AF2 BLE_SHUTTER_GATT_LIST
+0x9C2B CLASSIC_SHUTTER_SDP_LIST
+0x9E12 BLE_SHUTTER_KEY_VALUE_LIST
+0x9E3A CLASSIC_SHUTTER_KEY_VALUE_LIST
+//car
+0x9E62 BLE_CAR_ATT_LIST
+)
+
+(//NEC 61212
+9000 NEC61212_BOOT_CODE_START_TIME
+4500 NEC61212_BOOT_CODE_END_TIME
+
+9000 NEC61212_REPEAT_START_TIME
+2250 NEC61212_REPEAT_END_TIME
+
+560 NEC61212_DATA_BIT_1_START_TIME
+1690 NEC61212_DATA_BIT_1_END_TIME
+
+560 NEC61212_DATA_BIT_0_START_TIME
+560 NEC61212_DATA_BIT_0_END_TIME
+
+560 NEC61212_STOP_TIME
+
+42580 NEC61212_DATA2REPEAT_TIME
+98190 NEC61212_REPEAT2REPEAT_TIME
+
+0xffff NEC61212_TIMEOUT_TIME
+)
+
+
+(
+0 ADC_GPIO_4
+1 ADC_GPIO_5
+2 ADC_GPIO_6
+3 ADC_GPIO_7
+4 ADC_GPIO_9
+5 ADC_GPIO_10
+6 ADC_GPIO_11
+7 ADC_GPIO_12
+)
+
+
+//app new specific
+(
+0 CONN_PARAM_UPDATA_PROCEDURE_NO_INIT
+1 CONN_PARAM_UPDATA_PROCEDURE_STARTING
+2 CONN_PARAM_UPDATA_PROCEDURE_COMPLETE
+3 CONN_PARAM_UPDATA_PROCEDURE_FAILD
+)
+(
+0 NEW_SPEC_HEADER_OFFSET
+2 NEW_SPEC_OPCODE_OFFSET
+3 NEW_SPEC_DLEGTH_OFFSET  //data length offset
+5 NEW_SPEC_DADDR_OFFSET   //data address offset
+)
+(
+1 OPCODE1_BUTTEN_CLICK_ONCE
+2 OPCODE2_BUTTEN_DOUBLE_CLICK
+3 OPCODE3_ANTL_START_ALRAM
+4 OPCODE4_CURRENT_ALARM_STATE
+5 OPCODE5_BATTER_INFORMATION
+7 OPCODE7_ANTL_CONFIG_ALRAM
+)
+(
+0x0a NEW_SPEC_NOTIFY_HANDLE
+0x0b NEW_SPEC_NOTIFICATION_ENABLE_HANDLE
+0x0d NEW_SPEC_WRITE_HANDLE
+)
+//app new specific end
+
+//mem_anti_lost_mode
+(
+0x01 ANTI_LE_ALARM_ON
+0x00 ANTI_LE_ALARM_OFF
+)
+(
+0 NOTIFICATION_ENABLE_BIT
+1 INDICATION_ENABLE_BIT
+)
+
+
+
+
+(
+//20ms
+0x0020	FAST_ADV_INTERVAL_VALUE_CAR
+)
+
+(
+0x14 ATT_CAR_CONTROL_HANDLE
+0x14 ATT_SPEED_SET_HANDLE
+)
+
+
+(
+0 TURN_FRONT
+1 TURN_LEFT
+2 TURN_RIGHT
+0 MOTOR_STOP
+1 GO_FRONT
+2 GO_BACK
+0x6b5a LE_RECEIVE_PACKET_HEAD
+)
+
+(
+0 FLAG_IR_DISABLE
+1 FLAG_IR_ENABLE
+)
+
+(
+0 DEVICE_CAR
+1 DEVICE_TANK
+2 DEVICE_BATTLE_CAR
+3 DEVICE_BATTLE_TANK
+4 DEVICE_REMOTE
+)
+
+(
+0 F_B_MOTOR
+1 L_R_MOTOR
+2 F_B_BATTERY
+3 L_R_BATTERY
+)
+
+(
+0 CAR_WORK	   		//connect mode normal
+1 CAR_BIND			//code pair mode
+2 CAR_TEST			//test mode
+3 CAR_CODE			//PC_application
+4 CAR_PCBA			//PCBA_TEST
+5 CAR_DEBUG
+6 CAR_MODE_MAX
+7 CAR_SEARCH
+)
+
+(
+1 SPEED_LEVEL_1
+2 SPEED_LEVEL_2
+3 SPEED_LEVEL_3
+4 SPEED_LEVEL_4
+5 SPEED_LEVEL_5
+6 SPEED_LEVEL_6
+7 SPEED_LEVEL_7
+8 SPEED_LEVEL_8
+9 SPEED_LEVEL_9
+10 SPEED_LEVEL_10
+)
+
+(
+0 PWM0_DUTY_SETTING
+1 PWM1_DUTY_SETTING
+2 PWM2_DUTY_SETTING
+)
+
+(
+1 CAR_CMD_BATTERY
+2 CAR_CMD_OLD_CAR_CONTROL
+3 CAR_CMD_OLD_SPEED_CONTROL
+4 CAR_CMD_L_R_MOTOR_CONTROL
+5 CAR_CMD_F_B_MOTOR_CONTROL
+6 CAR_CMD_IR_CONTROL
+7 CAR_CMD_LED_CONTROL
+8 CAR_CMD_DEVICE_INFO
+)
+
+(
+0 CAR_REMOTE_CHECK_BUTTON
+1 CAR_REMOTE_CHECK_ROCKER
+)
+
+(
+0x11 CAR_NOTIFY_HANDLE
+)
+
+(
+0 LED_OFF
+1 LED_ON
+2 LED_BLINK
+0xFF LED_INVALID
+)
+
+(
+0xFF INVALID_PIN_NUM
+)
+
+
+(
+0 POWER_ON
+1 WORK_PAIRED
+2 WORK_SEARCH
+)
+
+
+
+
+
+
+
+//otp address offset
+(
+0x5A DONGLE_KB_BIND_SUCCESS
+0x1fdf DONGLE_KB_BIND_EFUSE_OFFECT
+)
+
+(
+5 WORK_MODE_DELAY
+7 BIND_MODE_DELAY
+)
+
+(
+0 DONGLE_WORK	   		//connect mode normal
+1 DONGLE_BIND			//code pair mode
+2 DONGLE_TEST			//test mode
+3 DONGLE_CODE			//PC_application
+4 DONGLE_PCBA			//PCBA_TEST
+5 DONGLE_DEBUG
+6 DONGLE_MODE_MAX
+7 DONGLE_SEARCH
+0 CLEAR_INIT
+)
+
+
+(
+0xa0 COMMAND_MODE     //BYTE 0
+0x81 COM_MODE_BIND	//BYTE 1
+0x82 COM_MODE_TEST	//BYTE 1
+)
+(
+0xa1 COMMAND_BIND		//BYTE 0
+0x01 COM_BIND_GET		//1
+0x84 COM_BIND_EXIT		//1
+0xa7 COM_READ_MODE		//1
+)
+(
+0xa2 COMMAND_TEST	//BYTE 0
+0x81 COM_TEST_SC		//	进入单载波
+0x82 COM_TEST_CD		// fcc测试
+0x83 COM_TEST_DAT		// 数据测试
+0x84 COM_TEST_LOW_CH  //低频点
+0x85 COM_TEST_MID_CH	//中频点
+0x86 COM_TEST_HIG_CH	//高频点
+0x87 COM_TEST_SW_HIG	//自动切换频点为高 1mhz
+0x88 COIM_TEST_SW_LOW	//自动切换频点为低 1mhz
+0x89 COM_TEST_SW_STOP	//停止自动切换频点
+0x8a COM_TEST_POW_5		//设置输出功率5dbm
+0x8b COM_TEST_POW_0		//0dbm
+0x8c COM_TEST_POW_N5		//-5dbm
+0x8d COM_TEST_POW_N10		//-10dbm
+0x8e COM_TEST_EXIT			//退出测试模式
+)
+(
+0xa6 COMMAND_CURRENT_PROJECT
+0xa7 COMMAND_CURRENT_MODE
+0xa9 COMMAND_CURRENT_FW_VERSION
+0xb0 COMMAND_USER_DEFINED		//user defined cmd
+)
+
+(
+0x15 PRODUCT_ID
+0 FW_VERSION0
+0 FW_VERSION1
+1 FW_VERSION2
+7 FW_VERSION3
+)
+
+(
+8 TIMER_NODATA
+640 TIMER_NODATA_DELAY	//200ms
+
+11 TIMER_MS_BLANK
+384 TIMER_MS_BLANK_DELAY
+
+12 TIMER_KB_MUL_BLANK
+384 TIMER_KB_MUL_BLANK_DELAY
+
+14 TIMER_KB_BLANK
+384 TIMER_KB_BLANK_DELAY
+)
+
+(
+0 KB_NORMAL_REPORT_ID
+1 MS_REPORT_ID
+2 KB_SYSTEM_CONCTRL_REPORT_ID
+3 KB_MULTIKEY_REPORT_ID
+)
+
+
+(
+0x01 BIND_ACKPAYLOAD
+0x03 KB_LED_ACKPAYLOAD
+)
+
+//mem_dg_sys_config
+(
+7 DG_ENABLE_XTAL_24M
+6 DG_ENABLE_NEW_CHMAP
+5 DG_ENABLE_EEPROM
+4 DG_ENABLE_KB_ICON
+//bit3-0
+//tx power
+)
+
+
+
+
+
+(//mem_module_flag
+//bit0~bit7 config module function
+0 MODULE_FLAG_UART_FLOW_CONTROL
+1 MODULE_FLAG_BLE_SEND_MTU23
+2 MODULE_FLAG_BLE_DATA_ENCRYPT
+
+//bit8~bit15 module states change
+8 MODULE_FLAG_BLE_DATA_FINISH
+9 MOUDLE_TASK_UNSNIFF
+10 MOUDLE_TASK_SNIFF
+
+)
+
+(
+34 NV_DATA_LEN
+-1 DECREASED_ONE
+)
+
+
+
+(
+	5 FLAG_MODULE_READ_VDD_COUNT
+)
+
+(
+	0x200 UART_AIR_CONTROL_THRESHOLD
+)
+
+(
+0x01 HCI_DISCARD_PACKET
+0x00 HCI_NOT_DISCARD_PACKET
+)
+
+
+
+(//Command
+0x00 HCI_CMD_SET_BT_ADDR_REQ
+0x01 HCI_CMD_SET_LE_ADDR_REQ
+0x02 HCI_CMD_SET_VISIBILITY_REQ
+0x03 HCI_CMD_SET_BT_NAME_REQ
+0x04 HCI_CMD_SET_LE_NAME_REQ
+0x05 HCI_CMD_SPP_DATA_REQ
+0x09 HCI_CMD_LE_DATA_REQ
+0x0b HCI_CMD_STATUS_IRQ
+0x0c HCI_CMD_SET_PAIRING_REQ
+0x0d HCI_CMD_SET_PINCODE_REQ
+0x0e HCI_CMD_SET_UARTCONTROL_REQ
+0x0f HCI_CMD_SET_UART_BAUD_REQ
+0x10 HCI_CMD_VERSION_REQ
+0x11 HCI_CMD_BT_DISCONNECT
+0x12 HCI_CMD_BLE_DISCONNECT
+0x13 HCI_CMD_DELETE_DEVICE
+0x14 HCI_CMD_CREATE_CONNECT
+0x15 HCI_CMD_SET_COD
+0x26 HCI_CMD_SET_NVRAM_REQ
+0x27 HCI_CMD_SLEEP
+0x28 HCI_CMD_CONFIRM_GKEY
+0x29 HCI_CMD_SET_CREDIT_GIVEN
+0x2a HCI_CMD_AUTO_ADV_SCAN
+0x2b HCI_CMD_POWER_REQ
+0x2c HCI_CMD_POWER_SET
+0x30 HCI_CMD_PASSKEY_ENTRY
+0x31 HCI_CMD_SET_GPIO
+0x32 HCI_CMD_READ_GPIO
+0x33 HCI_CMD_LE_SET_PAIRING
+0x34 HCI_CMD_LE_SET_ADV_DATA
+0x35 HCI_CMD_LE_SET_SCAN_DATA
+0x36 HCI_CMD_LE_SEND_CONN_UPDATE_REQ
+0x37 HCI_CMD_LE_SET_ADV_PARM
+0x38 HCI_CMD_LE_START_PAIRING
+0x40 HCI_CMD_SET_WAKE_GPIO
+0x42 HCI_CMD_SET_TX_POWER
+0x43 HCI_CMD_BOOT_VERSION_REQ
+0x48 HCI_CMD_LE_CONFIRM_GKEY
+0x49 HCI_CMD_REJECT_JUSTWORK
+0x51 HCI_CMD_RESET_CHIP_REQ
+
+0x61 HCI_CMD_LE_SET_FIXED_PASSKEY
+
+0x76 HCI_CMD_DELETE_CUSTOMIZE_SERVICE
+0x77 HCI_CMD_ADD_SERVICE_UUID
+0x78 HCI_CMD_ADD_CHARACTERISTIC_UUID
+0x7a HCI_CMD_PASSKEY_ENTRY_INPUT
+
+0x90 HCI_CMD_BLE_SET_PHY
+0x91 HCI_CMD_BLE_READ_CURRENT_PHY
+0x92 HCI_CMD_BLE_SET_DLE
+0x93 HCI_CMD_READ_CHIP_DATA
+0x94 HCI_CMD_WRITE_CHIP_DATA
+0xff HCI_CMD_CLOSE_LPM
+)
+
+(//event
+0x00 HCI_EVENT_SPP_CONN_REP
+0x01 HCI_EVENT_HID_CONN_REP
+0x02 HCI_EVENT_LE_CONN_REP
+0x03 HCI_EVENT_SPP_DIS_REP
+0x04 HCI_EVENT_HID_DIS_REP
+0x05 HCI_EVENT_LE_DIS_REP
+0x06 HCI_EVENT_CMD_RES
+0x07 HCI_EVENT_SPP_DATA_REP
+0x08 HCI_EVENT_LE_DATA_REP
+0x09 HCI_EVENT_STANDBY_REP
+
+0x0a HCI_EVENT_STATUS_RES
+
+0x0D HCI_EVENT_NVRAM_REP
+0x0e HCI_EVENT_GKEY
+0x0F HCI_EVENT_INVALID_PACKET
+0x10 HCI_EVENT_GET_PASSKEY
+0x11 HCI_EVENT_LE_TK
+0x12 HCI_EVENT_REMOTE_MTU
+0x14 HCI_EVENT_LE_PAIRING_STATE
+0X15 HCI_EVENT_LE_ENCRYPTION_STATE
+0x17 HCI_EVENT_LE_CONNECTION_UPDATE
+0x1d HCI_EVENT_LE_GKEY
+0x29 HCI_EVENT_UUID_HANDLE
+0x2b HCI_EVENT_LE_INPUT_GKEY
+
+0x40 HCI_BLE_UPDATE_PHY_EVENT
+)
+
+
+(//command HCI_CMD_SET_GPIO
+//byte 0
+0x00 HCI_CMD_CONFIG_GPIO_INPUT
+0x01 HCI_CMD_CONFIG_GPIO_OUTPUT
+//byte 1 input state
+0x00 GPIO_INPUT_PULLUP
+0x01 GPIO_INPUT_PULLDOWN
+0x02 GPIO_INPUT_HIGH_IMPEDANCE
+)
+
+
+
+(
+0x7e0 OTP_ADDR_RF_PARAM_FIX
+//struct of RF_PARAM_FIX
+// uint8       //length = param_pair_count * 2 
+// uint16     //param-pair-1
+// uint16     //param-pair-2
+// uint16     //param-pair-3
+// uint16     //param-pair-4
+// uint16     //param-pair-5
+// uint16     //param-pair-6
+// uint16     //param-pair-7
+)
+
+(
+0	BR_PAIRING_MODE_PINCODE
+1	BR_PAIRING_MODE_JUSTWORK
+2	BR_PAIRING_MODE_PASSKEY
+3	BR_PAIRING_MODE_NUMERIC
+
+0x81 BR_PAIRING_MODE_SECURE_CONNECT_JUSTWORK
+0x82 BR_PAIRING_MODE_SECURE_CONNECT_PASSKEY
+0x83 BR_PAIRING_MODE_SECURE_CONNECT_NUMERIC
+)
+
+
+(
+0x0001	FLAG_BT_PAIRING_SUCCESS
+0x0101	FLAG_BT_PAIRING_FAIL
+0x0080	FLAG_BLE_PAIRING_SUCCESS
+0x0180	FLAG_BLE_PAIRING_FAIL
+)
+
+
+(
+1	FLAG_EVENT_START_ENC
+0	FLAG_EVENT_PAUSE_ENC
+)
+
+(
+0 MOUDLE_STATE_BT_BIT
+1 MOUDLE_STATE_BLE_BIT
+)
+
+(
+5 BIT_OF_NOTIFY_AUTHENTICATED
+6 BIT_OF_READ_AUTHENTICATED
+7 BIT_OF_WRITE_AUTHENTICATED
+)
+
+
+//dpi eeprom addr
+
+
+
+
+(
+//combination
+0x01 MOUSE_L_BUTTON
+0X02 MOUSE_R_BUTTON
+0x03 MOUSE_LR_BUTTON
+0X04 MOUSE_M_BUTTON
+0X05 MOUSE_LM_BUTTON
+0X06 MOUSE_RM_BUTTON
+0X07 MOUSE_LMR_BUTTON
+0x09 MOUSE_L_BK_BUTTON
+0x14 MOUSE_M_FW_BUTTON
+0X18 MOUSE_BK_FW_BUTTON
+//mouse default gpio
+0x1B MOUSE_DEFAULT_XA_GPIO
+0x1C MOUSE_DEFAULT_XB_GPIO
+
+//ui led blink
+0X00C8  LED_RECONNECT_BLINK //200
+0X0190  LED_DPI_BLINK //400
+0X03E8  LED_DPI_BLINK_FIXED    //1000
+0X03E8  LED_DISCOVERY_BLINK    //1000
+0XFF    LED_LONG_BLINK
+0x05	LED_SENSOR_BLINK_CNT
+//mode device number
+0x00 MODE_24G_DEVICE
+0x01 MODE_BT_DEVICE1
+0x02 MODE_BT_DEVICE2
+0x03 MODE_BT_DEVICE3
+//mouse  flag
+0X00 WRITE_REQ_ENABLE_FLAG
+0X01 LL_START_ENC_FLAG
+0X02 LL_PAIRING_SUCCESS_FLAG
+
+
+//mouse_function_flag
+0x08 MOUSE_FLAG_LEN
+//byte 1
+0x00 MOUSE_SELECT_DEVICE_FLAG
+0x01 MOUSE_24G_PAIRING_FLAG
+0x02 MOUSE_STORE_EEPROM_FLAG
+0x03 MOUSE_BT_CANNEL_RECONN_FLAG
+0x04 MOUSE_LOW_VOLTAGE_FLAG
+0x05 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+0x06 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+
+//byte 2
+0x08 MOUSE_ENABLE_BLE_RANDOM_ADDRE
+0x09 MOUSE_ENABLE_2K_EEPROM
+0x0a MOUSE_ENABLE_INIT_DELAY
+0x0b MOUSE_ENABLE_WAKEUP_FROM_POWER
+0x0c MOUSE_ENABLE_16M
+0x0d MOUSE_ENABLE_USB
+
+//byte 3
+0x10 MOUSE_ENABLE_SPI2
+0x11 MOUSE_ENABLE_24G
+0x12 MOUSE_ENABLE_FLASH
+0x13 MOUSE_ENABLE_EEPROM
+0x14 MOUSE_ENABLE_ADC
+0x15 MOUSE_ENABLE_KEYBOARD
+0x16 MOUSE_ENABLE_24G_SEARCH_DONGLE
+
+//byte 4
+0x18 MOUSE_ENABLE_24G_250Hz
+0x19 MOUSE_ENABLE_24G_500Hz
+0x1a MOUSE_ENABLE_24G_1000
+0x1b MOUSE_ENABLE_BT_125Hz
+0x1c MOUSE_ENABLE_DPI_LEVEL_4
+0x1d MOUSE_ENABLE_USB_250
+0x1e MOUSE_ENABLE_USB_500
+0x1f MOUSE_ENABLE_USB_1000
+
+//byte 5
+0x20 MOUSE_ENABLE_POWER_ON_LED
+0x21 MOUSE_ENABLE_LOW_VOLTAGE_LED
+0x22 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED
+0x23 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND
+0x24 MOUSE_ENABLE_4_LED
+0x25 MOUSE_ENABLE_DPI_FOR_4_LED
+0x26 MOUSE_ENABLE_BT2_FOR_4_LED
+0x27 MOUSE_ENABLE_LOW_V_FOR_4_LED
+
+
+//byte 6
+0x28 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+0x29 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON
+0x2a MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO
+0x2b MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
+0x2c MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+0x2d MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
+0x2e MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+0x2f MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
+//byte 7 
+0x30 MOUSE_ENABLE_AUTO_24G_PARING
+0x31 MOUSE_ENABLE_24G_POWER_ON_PAIRING
+0x32 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+0x33 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY
+0x34 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+0x35 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+0x36 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+0x37 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
+
+//byte 8
+0x38 MOUSE_ENABLE_SMOOTHER
+0x39 MOUSE_ENABLE_XY_OFFSET
+0x3a MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
+0x3b MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
+0x3c MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
+0x3d MOUSE_ENABLE_OTP
+
+//mouse dpi level
+0x00 MOUSE_DPI_LEVEL1
+0x01 MOUSE_DPI_LEVEL2
+0x02 MOUSE_DPI_LEVEL3
+0x03 MOUSE_DPI_LEVEL4
+
+
+//mouse sensor angle
+0x00 MOUSE_6CLK_ANGLE
+0X01 MOUSE_9CLK_ANGLE
+0X02 MOUSE_12CLK_ANGLE
+0X03 MOUSE_3CLK_ANGLE
+
+
+
+0xFF GPIO_DISABLE
+
+//DPI button state 
+0x00 DPI_BUTTON_STATE_UP
+0x01 DPI_BUTTON_STATE_DOWN
+
+
+//PB button state 
+0x00 PB_BUTTON_STATE_UP
+0x01 PB_BUTTON_STATE_DOWN
+
+//Commbination_key state 
+0x00 COMMBINATION_KEY_STATE_UP
+0x01 COMMBINATION_KEY_STATE_DOWN
+
+
+//eeprom address offect
+0X00 MOUSE_INFO_EEPROM_OFFECT
+0x58 MOUSE_STORE_FLAG
+0X5A MOUSE_DPI_EEPROM_OFFECT	//1byte
+0X5B MOUSE_G24_ADDR_EEPROM_OFFECT	//4bytes
+0X5F MOUSE_RANDOM_ADDR_COUNT_EEPROM_OFFSET	//2bytes
+0X61 MOUSE_EEPROM_MODULE_INIT_FLAG
+
+// Sensor id number
+0x30 P32XX_ID1
+0x31 P3065_ID1
+0x02 P3212_ID2
+0xD1 P3205_TJ3T_ID2
+0XD2 P3204_TJ3L_ID2
+0x54 PKA8_ID2
+0x70 P3065_XY_ID2
+0x00 P3065_ID2
+0x5a P_MX8650
+0xD8 P8009_ID2
+0x50 P6520A_ID2
+0x58 PKA8G2_ID1
+0x59 PKA8G2_ID2
+
+
+//Sensor type
+0X00 P3205
+0X01 P3065
+0X02 P3204
+0X03 P3212
+0X04 P3065_XY
+0x05 MX8650
+0x06 P8009
+0x07 P6520
+0X08 KA8
+0X09 KA8_UL
+0X0a KA8_HD
+0X0b KA8G2
+
+
+//SENSOR REG
+0x00 PAN_REG_PID_L
+0x01 PAN_REG_PID_H
+0x02 PAN_REG_MOTION_STAUS
+0x03 PAN_REG_DELTA_X
+0x04 PAN_REG_DELTA_Y
+0x05 PAN_REG_OPRATION_MODE
+0x06 PAN_REG_CONFIG
+0x07 PAN_REG_IMAGE_QUALITY
+0x08 PAN_REG_OPRATION_STATE
+0x09 PAN_REG_WRITE_PROTECT
+0x0A PAN_REG_SLEEP_1
+0x0B PAN_REG_ENTER_TIME
+0x0C PAN_REG_SLEEP_2
+0x0D PAN_REG_IMAGE_THRESHOLD
+0x0E PAN_REG_IMAGE_RECGNITION
+
+
+0x06 MOUSE_DPI_ADDRESS
+0x05 MOUSE_P3610_DPI_ADDRESS
+0x0D MOUSE_P3212_DPI_XADDRESS
+0x0E MOUSE_P3212_DPI_YADDRESS
+
+)
+
+(
+0x01 ADV_FLAG_LIMITED_DISCOVERABLE
+0x04 ADV_FLAG_BREDR_NOT_SUPPORTED
+)
+
+(
+2 BIT_POWER_ON
+)
+//device option low 2
+(
+0 MODE_3_MOUSE
+1 MODE_4_MOUSE
+)
+
+
+(
+10 LE_LPM_DISABLE_TO
+1 LE_LPM_DISABLE
+0 LE_LPM_ENABLE
+
+12 LE_INTERVAL_15MS
+9 LE_INTERVAL_11_25MS//11.25ms
+7 LE_INTERVAL_8_75MS//8.75ms
+6 LE_INTERVAL_7_5MS//7.5ms
+12 CLASSIC_INTERVAL_7_5MS
+14 CLASSIC_INTERVAL_8_75MS
+18 CLASSIC_INTERVAL_11_25MS
+)
+
+(
+0x00 MOUSE_L_KEY
+0x01 MOUSE_R_KEY
+0x02 MOUSE_M_KEY
+0x03 MOUSE_BK_KEY
+0x04 MOUSE_FW_KEY
+0x05 MOUSE_DPI_KEY
+0x06 MOUSE_PB_KEY
+0x07 MOUSE_CUSTOMER_KEY
+)
+
+
+(
+0 G24_DISCONN_STATE
+1 G24_CONN_STATE
+
+8 G24_CH_NUMBER
+16 G24_CH_POLL_COUNT
+)
+
+(
+0 MOUSE_ADC_CHECK_BATTERY_ONLY
+1 MOUSE_ADC_CHECK_MULTIPLE
+2 MOUSE_ADC_CHECK_GPIO_MULTIPLE
+3 MOUSE_ADC_CHECK_VINLPM_MULTIPLE
+)
+
+
+(
+0x5a MOUSE_USB_INTERFACE_INSERT
+0xa5 MOUSE_USB_INTERFACE_REMOVE
+)
+
+(
+0x10 MOUSE_BLE_L2CAP_TXBUFF_SIZE
+)
+
+(
+0x08 KB_ROW_GPIO_NUM
+0x0b KB_MCU_COL_GPIO_NUM
+)
+
+(
+0 MOUSE_ADC_ENABLE
+1 MOUSE_SEARCH_DONGLE_ENABLE
+2 MOUSE_24G_250HZ_ENABLE
+3 MOUSE_CLK_16M_ENABLE
+4 MOUSE_DPI_4_LEVEL_ENABLE
+5 MOUSE_KEYBOARD_ENABLE
+
+7 MOUSE_DEVICE_NUMBER_FLAG
+)
+
+
+
+
+
+(
+// eeprom config
+0xb0 REMOTE_PARAM_EEPROM_CONFIG_ADDR
+//eeprom address offect
+0X00 REMOTE_INFO_EEPROM_OFFECT
+
+)
+
+
+(
+0x00 CONTROL_F_B_MOTOR
+0x02 CONTROL_L_R_MOTOR
+)
+
+(
+0x00 KEY_MAP_TEN
+0x01 KEY_MAP_LR
+)
+
+(
+0x00 CONTROL_F_B_TEN
+0x02 CONTROL_L_R_TEN
+0x03 CONTROL_L_R_LR
+)
+
+(
+0 KEY_CHECK
+1 ROCKER_CHECK
+)
+
+(
+1 MOTOR_POSITIVE
+2 MOTOR_NEGATIVE
+)
+
+(
+0 ROCKER_MIDDLE_KEY
+1 ROCKER_POSITIVE_KEY
+2 ROCKER_NEGATIVE_KEY
+)
+
+
+
+
+
+
+
+
+(
+0 BLE_SHUTTER
+1 CLASSIC_SHUTTER
+)
+
+(
+0x0000 NVRAM_EEPROM_OFFSET
+)
+
+(
+0x1b3a SHUTTER_EEPROM_CONFIG_CRC
+)
+
+(
+5 MAX_QUEUE_NUM
+5 SHUTTER_BLE_DATA_BUFFER
+5 SHUTTER_CLASSIC_DATA_BUFFER
+)
+
+
+(
+0x13	GATT_CONSUMER_NOTIFY_HANDLE
+0x14	GATT_CONSUMER_WRITE_HANDLE
+0x17	GATT_KEYBOARD_NOTIFY_HANDLE
+0x18	GATT_KEYBOARD_WRITE_HANDLE
+)
+
+(
+//20ms
+0x0020	FAST_ADV_INTERVAL_VALUE
+//100ms
+0x00a0	SLOW_ADV_INTERVAL_VALUE
+)
+
+
+(
+0 ATT_BIT_NOTIFICATION
+1 ATT_BIT_INDICATION
+)
+///////////////////////////////////////////////////////////////////////////////////////
+
+(
+0 HARD_SWITCH
+1 SOFT_SWITCH
+)
+
+
+(
+1  FLAG_SHUTTER_HID_DISCONN_TIMEOUT
+5 FLAG_SHUTTER_CABLE_UNPLUG_TIMEOUT
+)
+
+(//Data Rom Buffer Addr
+313		BLE_GATT_LIST_SIZE
+487		BT_SDP_LIST_SIZE
+40		BLE_KEY_VALUE_LIST_SIZE
+40		BT_KEY_VALUE_LIST_SIZE
+)
+
+
+(//soft switch power state
+0		SS_STATE_POWER_UP
+1		SS_STATE_POWER_ON
+2		SS_STATE_POWER_OFF
+)
+
+(
+0		SS_POWER_STATE_OFFSET
+1		SS_POWER_ON_TIME
+2		SS_POWER_OFF_TIME
+3		SS_POWER_ON_CB
+5		SS_POWER_OFF_CB
+
+)
+
+(
+
+0x4FFE SIM_IIC_SCL_GPIO_NUM
+0x4FFF SIM_IIC_SDA_GPIO_NUM
+
+)
+
+
+
+
+
+
+(
+0x0d HCI_UART_TX_GPIO_NUM
+0x0e HCI_UART_RX_GPIO_NUM
+0x09 HCI_UART_RTS_GPIO_NUM
+0x0a HCI_UART_CTS_GPIO_NUM
+0x0c HCI_PMW_12MHZ_GPIO_NUM
+)
+
+(
+0x00 COMMAND_SUCCEEDED
+0x01 COMMAND_UNKNOWN
+0x0c COMMAND_DISALLOWED
+)
+
+//HCI H4 Packet TYPE
+(
+0x01 HCI_H4_TYPE_CMD
+0x02 HCI_H4_TYPE_ACL
+0x04 HCI_H4_TYPE_EVENT
+)
+
+(
+0x00 BT_ACL_START_NO_FLUSH
+0x01 BT_ACL_CONT
+0x02 BT_ACL_START
+)
+
+// HCI command opcode group field values
+(
+0x01 HCI_OGF_LINK_CONTROL
+0x02 HCI_OGF_LINK_POLICY
+0x03 HCI_OGF_CONTROLLER_AND_BASEBAND
+0x04 HCI_OGF_INFOMATIONAL_PARAM
+0x05 HCI_OGF_STATUS_PARAM
+0x06 HCI_OGF_TEST
+0x08 HCI_OGF_LE_CONTROLLER
+0x3f HCI_OGF_VENDOR_SPECIFIC_DEBUG
+)
+
+// HCI link control opcode command field values, OGF=1
+(
+0x01 HCI_INQUIRY 
+0x02 HCI_INQUIRY_CANCEL 
+0x03 HCI_PERIODIC_INQUIRY_MODE 
+0x04 HCI_EXIT_PERIODIC_INQUIRY_MODE 
+0x05 HCI_CREATE_CONNECTION 
+0x06 HCI_DISCONNECT 
+0x07 HCI_ADD_SCO_CONNECTION 
+0x08 HCI_CREATE_CONNECTION_CANCEL
+0x09 HCI_ACCEPT_CONNECTION 
+0x0A HCI_REJECT_CONNECTION 
+0x0B HCI_LINK_KEY_REQUEST_REPLY 
+0x0C HCI_LINK_KEY_REQUEST_NEGATIVE_REPLY 
+0x0D HCI_PIN_CODE_REQUEST_REPLY 
+0x0E HCI_PIN_CODE_REQUEST_NEGATIVE_REPLY 
+0x0F HCI_CHANGE_CONNECTION_PACKET_TYPE 
+0x11 HCI_AUTHENTICATION_REQUESTED 
+0x13 HCI_SET_CONNECTION_ENCRYPTION 
+0x15 HCI_CHANGE_CONNECTION_LINK_KEY 
+0x17 HCI_MASTER_LINK_KEY 
+0x19 HCI_REMOTE_NAME_REQUEST 
+0x1A HCI_REMOTE_NAME_REQUEST_CANCEL
+0x1B HCI_READ_REMOTE_SUPPORTED_FEATURES 
+0x1C HCI_READ_REMOTE_EXT_FEATURES 
+0x1D HCI_READ_REMOTE_VERSION_INFORMATION 
+0x1F HCI_READ_CLOCK_OFFSET 
+0x20 HCI_READ_LMP_HANDLE
+0x28 HCI_SETUP_SCO_CONNECTION
+0x29 HCI_ACCEPT_SCO_CONNECTION
+0x2A HCI_REJECT_SCO_CONNECTION
+0x2B HCI_IO_CAP_REQUEST_REPLY
+0x2C HCI_USER_CONFIRMATION_REQUEST_REPLY
+0x2D HCI_USER_CONFIRMATION_REQUEST_NEGATIVE_REPLY
+0x2E HCI_USER_PASSKEY_REQUEST_REPLY
+0x2F HCI_USER_PASSKEY_REQUEST_NEGATIVE_REPLY
+0x30 HCI_REMOTE_OOB_DATA_REQUEST_REPLY
+0x33 HCI_REMOTE_OOB_DATA_REQUEST_NEGATIVE_REPLY
+0x34 HCI_IO_CAPABILITY_REQUEST_NEGATIVE_REPLY
+0x35 HCI_CREATE_PHYSICAL_LINK
+0x36 HCI_ACCEPT_PHYSICAL_LINK
+0x37 HCI_DISCONNECT_PHYSICAL_LINK
+0x38 HCI_CREATE_LOGICAL_LINK
+0x39 HCI_ACCEPT_LOGICAL_LINK
+0x3A HCI_DISCONNECT_LOGICAL_LINK
+0x3B HCI_LOGICAL_LINK_CANCEL
+0x3C HCI_FLOW_SPEC_MODIFY
+0x3D HCI_ENHANCED_SETUP_SYNCHRONOUS_CONNECTION
+0x3E HCI_ENHANCED_ACCEPT_SYNCHRONOUS_CONNECTION_REQUEST
+0x3F HCI_TRUNCATED_PAGE
+0x40 HCI_TRUNCATED_PAGE_CANCEL
+0x41 HCI_SET_CONNECTIONLESS_SLAVE_BROADCAST
+0x42 HCI_SET_CONNECTIONLESS_SLAVE_BROADCAST_RECEIVE
+0x43 HCI_START_SYNCHRONIZATION_TRAIN
+0x44 HCI_RECEIVE_SYNCHRONIZATION_TRAIN
+0x45 HCI_REMOTE_OOB_EXTENDED_DATA_REQUEST_REPLY
+)
+
+
+// HCI link policy commands OCF value, OGF=2
+(
+0x01 HCI_HOLD_MODE 
+0x03 HCI_SNIFF_MODE 
+0x04 HCI_EXIT_SNIFF_MODE 
+0x05 HCI_PARK_MODE 
+0x06 HCI_EXIT_PARK_MODE 
+0x07 HCI_QOS_SETUP 
+0x09 HCI_ROLE_DISCOVERY 
+0x0B HCI_SWITCH_ROLE 
+0x0C HCI_READ_LINK_POLICY_SETTINGS 
+0x0D HCI_WRITE_LINK_POLICY_SETTINGS 
+0x0e HCI_READ_DEFAULT_LINK_POLICY_SETTINGS
+0x0f HCI_WRITE_DEFAULT_LINK_POLICY_SETTINGS
+0x10 HCI_FLOW_SPECIFICATION
+0x11 HCI_SNIFF_SUBRATING
+)
+
+// HCI host controller and baseband commands OCF values, OGF=3
+(
+0x01 HCI_SET_EVENT_MASK 
+0x03 HCI_RESET 
+0x05 HCI_SET_EVENT_FILTER 
+0x08 HCI_FLUSH 
+0x09 HCI_READ_PIN_TYPE 
+0x0A HCI_WRITE_PIN_TYPE 
+0x0B HCI_CREATE_NEW_UNIT_KEY 
+0x0D HCI_READ_STORED_LINK_KEY 
+0x11 HCI_WRITE_STORED_LINK_KEY 
+0x12 HCI_DELETE_STORED_LINK_KEY 
+0x13 HCI_WRITE_LOCAL_NAME 
+0x14 HCI_READ_LOCAL_NAME 
+0x15 HCI_READ_CONN_ACCEPT_TIMEOUT 
+0x16 HCI_WRITE_CONN_ACCEPT_TIMEOUT 
+0x17 HCI_READ_PAGE_TIMEOUT 
+0x18 HCI_WRITE_PAGE_TIMEOUT 
+0x19 HCI_READ_SCAN_ENABLE 
+0x1A HCI_WRITE_SCAN_ENABLE 
+0x1B HCI_READ_PAGE_SCAN_ACTIVITY 
+0x1C HCI_WRITE_PAGE_SCAN_ACTIVITY 
+0x1D HCI_READ_INQUIRY_SCAN_ACTIVITY 
+0x1E HCI_WRITE_INQUIRY_SCAN_ACTIVITY 
+0x1F HCI_READ_AUTHENTICATION_ENABLE 
+0x20 HCI_WRITE_AUTHENTICATION_ENABLE 
+0x21 HCI_READ_ENCRYPTION_MODE 
+0x22 HCI_WRITE_ENCRYPTION_MODE 
+0x23 HCI_READ_CLASS_OF_DEVICE 
+0x24 HCI_WRITE_CLASS_OF_DEVICE 
+0x25 HCI_READ_VOICE_SETTING 
+0x26 HCI_WRITE_VOICE_SETTING 
+0x27 HCI_READ_AUTOMATIC_FLUSH_TIMEOUT 
+0x28 HCI_WRITE_AUTOMATIC_FLUSH_TIMEOUT 
+0x29 HCI_READ_NUM_BROADCAST_RETRANSMISSIONS 
+0x2A HCI_WRITE_NUM_BROADCAST_RETRANSMISSIONS 
+0x2B HCI_READ_HOLD_MODE_ACTIVITY 
+0x2C HCI_WRITE_HOLD_MODE_ACTIVITY 
+0x2D HCI_READ_TRANSMIT_POWER_LEVEL 
+0x2E HCI_READ_SCO_FLOW_CONTROL_ENABLE 
+0x2F HCI_WRITE_SCO_FLOW_CONTROL_ENABLE 
+0x31 HCI_SET_CONTROLLER_TO_HOST_FLOW_CONTROL 
+0x33 HCI_HOST_BUFFER_SIZE 
+0x35 HCI_HOST_NUM_COMPLETED_PACKETS 
+0x36 HCI_READ_LINK_SUPERVISION_TIMEOUT 
+0x37 HCI_WRITE_LINK_SUPERVISION_TIMEOUT 
+0x38 HCI_READ_NUMBER_OF_SUPPORTED_IAC 
+0x39 HCI_READ_CURRENT_IAC_LAP 
+0x3A HCI_WRITE_CURRENT_IAC_LAP 
+0x3B HCI_READ_PAGE_SCAN_PERIOD_MODE 
+0x3C HCI_WRITE_PAGE_SCAN_PERIOD_MODE 
+0x3D HCI_READ_PAGE_SCAN_MODE 
+0x3E HCI_WRITE_PAGE_SCAN_MODE 
+0x3F HCI_SET_AFH_CHANNEL_CLASSIFICATION 
+
+
+0x42 HCI_READ_INQUIRY_SCAN_TYPE 
+0x43 HCI_WRITE_INQUIRY_SCAN_TYPE 
+0x44 HCI_READ_INQUIRY_MODE 
+0x45 HCI_WRITE_INQUIRY_MODE 
+0x46 HCI_READ_PAGE_SCAN_TYPE 
+0x47 HCI_WRITE_PAGE_SCAN_TYPE 
+
+0x48 HCI_READ_AFH_CHANNEL_ACCESSMENT_MODE 
+0x49 HCI_WRITE_AFH_CHANNEL_ACCESSMENT_MODE 
+0x51 HCI_READ_EXTENDED_INQUIRY_RESPONSE
+0x52 HCI_WRITE_EXTENDED_INQUIRY_RESPONSE
+0x53 HCI_REFRESH_ENCRYPTION_KEY
+0x55 HCI_READ_SIMPLE_PAIRING_MODE
+0x56 HCI_WRITE_SIMPLE_PAIRING_MODE
+0x57 HCI_READ_LOCAL_OOB_DATA
+0x58 HCI_READ_INQUIRY_RESPONSE_TRANSMIT_POWER_LEVEL
+0x59 HCI_WRITE_INQUIRY_TRANSMIT_POWER_LEVEL
+0x60 HCI_SEND_KEYPRESS_NOTIFICATION
+0x5A HCI_READ_DEFAULT_ERRONEOUS_DATA_REPORTING
+0x5B HCI_WRITE_DEFAULT_ERRONEOUS_DATA_REPORTING
+0x5F HCI_ENHANCED_FLUSH
+0x61 HCI_READ_LOGICAL_LINK_ACCEPT_TIMEOUT
+0x62 HCI_WRITE_LOGICAL_LINK_ACCEPT_TIMEOUT
+0x63 HCI_SET_EVENT_MASK_PAGE_2
+0x64 HCI_READ_LOCATION_DATA
+0x65 HCI_WRITE_LOCATION_DATA
+0x66 HCI_READ_FLOW_CONTROL_MODE
+0x67 HCI_WRITE_FLOW_CONTROL_MODE
+0x68 HCI_READ_ENHANCE_TRANSMIT_POWER_LEVEL
+0x69 HCI_READ_BEST_EFFORT_FLUSH_TIMEOUT
+0x6A HCI_WRITE_BEST_EFFORT_FLUSH_TIMEOUT
+0x6B HCI_SHORT_RANGE_MODE
+0x6C HCI_READ_LE_HOST_SUPPORT
+0x6D HCI_WRITE_LE_HOST_SUPPORT
+0x6E HCI_SET_MWS_CHANNEL_PARAMETERS
+0x6F HCI_SET_EXTERNAL_FRAME_CONFIGURATION
+0x70 HCI_SET_MWS_SIGNALING
+0x71 HCI_SET_MWS_TRANSPORT_LAYER
+0x72 HCI_SET_MWS_SCAN_FREQUENCY_TABLE
+0x73 HCI_SET_MWS_PATTERN_CONFIGURATION
+0x74 HCI_SET_RESERVED_LT_ADDR
+0x75 HCI_DELETE_RESERVED_LT_ADDR
+0x76 HCI_SET_CONNECTIONLESS_SLAVE_BROADCAST_DATA
+0x77 HCI_READ_SYNCHRONIZATION_TRAIN_PARAMETERS
+0x78 HCI_WRITE_SYNCHRONIZATION_TRAIN_PARAMETERS
+0x79 HCI_READ_SECURE_CONNECTIONS_HOST_SUPPORT
+0x7A HCI_WRITE_SECURE_CONNECTIONS_HOST_SUPPORT
+0x7B HCI_READ_AUTHENTICATED_PAYLOAD_TIMEOUT
+0x7C HCI_WRITE_AUTHENTICATED_PAYLOAD_TIMEOUT
+0x7D HCI_READ_LOCAL_OOB_EXTENDED_DATA
+0x7E HCI_READ_EXTENDED_PAGE_TIMEOUT
+0x7F HCI_WRITE_EXTENDED_PAGE_TIMEOUT
+0x80 HCI_READ_EXTENDED_INQUIRY_LENGTH
+0x81 HCI_WRITE_EXTENDED_INQUIRY_LENGTH
+)
+
+
+// HCI informational parameters OCF values, OGF=4
+(
+0x01 HCI_READ_LOCAL_VERSION_INFORMATION 
+0x02 HCI_READ_LOCAL_SUPPORTED_COMMANDS
+0x03 HCI_READ_LOCAL_SUPPORTED_FEATURES 
+0x04 HCI_READ_LOCAL_EXT_FEATURES 
+0x05 HCI_READ_BUFFER_SIZE 
+0x07 HCI_READ_COUNTRY_CODE 
+0x09 HCI_READ_BD_ADDR 
+0x0A HCI_REJECT_CONNECTION_REQUEST
+0x0B HCI_READ_LOCAL_SUPPORTED_CODECS
+)
+
+// HCI status parameters OCF values, OGF=5
+(
+0x01 HCI_READ_FAILED_CONTACT_COUNTER 
+0x02 HCI_RESET_FAILED_CONTACT_COUNTER 
+0x03 HCI_GET_LINK_QUALITY 
+0x05 HCI_READ_RSSI 
+0x06 HCI_READ_AFH_CHANNEL_MAP
+0x07 HCI_READ_BD_CLOCK
+0x08 HCI_READ_ENCRYPTION_KEY_SIZE
+0x09 HCI_READ_LOCAL_AMP_INFO
+0x0A HCI_READ_LOCAL_AMP_ASSOC
+0x0B HCI_WRITE_REMOTE_AMP_ASSOC
+0x0C HCI_GET_MWS_TRANSPORT_LAYER_CONFIGURATION
+0x0D HCI_SET_TRIGGERED_CLOCK_CAPTURE
+)
+
+// HCI testing command OCF values, OGF=6
+(
+0x01 HCI_READ_LOOPBACK_MODE 
+0x02 HCI_WRITE_LOOPBACK_MODE 
+0x03 HCI_ENABLE_DEVICE_UNDER_TEST_MODE 
+0x04 HCI_WRITE_SIMPLE_PAIRING_DEBUG_MODE
+0x07 HCI_ENABLE_AMP_RECEIVER_REPORTS
+0x08 HCI_AMP_TEST_END
+0x09 HCI_AMP_TEST
+0x0A HCI_WRITE_SECURE_CONNECTIONS_TEST_MODE
+)
+
+// HCI vendor specific command OCF values -OGF=3F
+(
+0x01 HCI_WRITE_BD_ADDR 
+0x02 HCI_READ_INQUIRY_RESPONSE_TIMEOUT 
+0x03 HCI_WRITE_INQUIRY_RESPONSE_TIMEOUT 
+0x04 HCI_READ_PAGE_SCAN_REPETITION_MODE 
+0x05 HCI_WRITE_PAGE_SCAN_REPETITION_MODE 
+0x06 HCI_READ_PAGE_RESPONSE_TIMEOUT 
+0x07 HCI_WRITE_PAGE_RESPONSE_TIMEOUT 
+0x08 HCI_READ_NEW_CONNECTION_TIMEOUT 
+0x09 HCI_WRITE_NEW_CONNECTION_TIMEOUT 
+0x0a HCI_INITIALIZE_BASEBAND 
+0x0b HCI_WRITE_LOCAL_SUPPORTED_FEATURES 
+0x0c HCI_WRITE_PARK_PARAMETERS 
+0x0d HCI_READ_PARK_PARAMETERS 
+0x0e HCI_WRITE_QUALITY_OF_SERVICE 
+0x0f HCI_NOT_USED 
+0x10 HCI_MODIFY_BEACON_PARAMETERS 
+0x11 HCI_UNPARK_USING_PM_ADDR 
+0x12 HCI_WRITE_HOPPING_CHANNELS 
+0x13 HCI_SLEEP_FOREVER_MODE 
+0x14 HCI_WRITE_AUTO_PAGE_SCAN_ENABLE 
+0x15 HCI_READ_AUTO_PAGE_SCAN_ENABLE 
+0x16 HCI_SET_ENCRYPTION_KEY_SIZE 
+0x17 HCI_INVALIDATE_FLASH_AND_REBOOT 
+0x18 HCI_UPDATE_UART_BAUD_RATE 
+0x19 HCI_WRITE_GPIO_1_4_AS_OUTPUT 
+0x1A HCI_WRITE_GPIO_2_LED 
+0x1B HCI_SET_TESTMODE_TYPE 
+0x1C HCI_WRITE_SCO_PCM_INT_PARAM 
+0x1D HCI_READ_SCO_PCM_INT_PARAM 
+0x1E HCI_WRITE_PCM_DATA_FORMAT_PARAM 
+0x1F HCI_READ_PCM_DATA_FORMAT_PARAM 
+0x20 HCI_WRITE_COMFORT_NOISE_PARAM 
+0x21 HCI_READ_COMFORT_NOISE_PARAM 
+0x22 HCI_WRITE_SCO_TS 
+0x23 HCI_READ_SCO_TS 
+0x24 HCI_WRITE_PCM_LOOPBACK_MODE 
+0x25 HCI_READ_PCM_LOOPBACK_MODE 
+0x26 HCI_SET_TRANSMIT_POWER 
+0x27 HCI_SET_SLEEPMODE_PARAM 
+0x28 HCI_READ_SLEEPMODE_PARAM 
+0x29 HCI_SLEEPMODE_CMD 
+0x2A HCI_DELAY_PERIPHERAL_SCO_STARTUP 
+0x2B HCI_WRITE_RECEIVE_ONLY 
+0x2C HCI_WRITE_RATE_CONTROL 
+0x2D HCI_TX_UNMOD_CARRIER 
+0x2E HCI_DOWNLOAD_MINIDRIVER 
+0x2F HCI_CRYSTAL_PPM 
+0x30 HCI_SET_POWER_AMP_BIAS 
+0x31 HCI_SET_HAM_BEHAVIOR 
+0x32 HCI_SET_AFH_BEHAVIOR 
+0x33 HCI_READ_USER_DEFINED_NVRAM 
+0x34 HCI_ENABLE_RADIO 
+0x35 HCI_READ_DIAGNOSTIC_INFO 
+0x36 HCI_GET_HID_DEVICE_LIST 
+0x37 HCI_ADD_HID_DEVICE 
+0x38 HCI_READ_APP_FW_CONFIG_VERSION 
+0x39 HCI_DELETE_HID_DEVICE 
+0x3B HCI_ENABLE_USB_HID_EMULATION 
+// 0x3A available
+// 0x3B available
+0x3C HCI_SEND_LMPDU 
+0x3D HCI_AUTO_PAIR_REQ 
+0x3E HCI_READ_VS_EXTENSION 
+0x3F HCI_WRITE_VS_EXTENSION 
+
+0x77 HCI_OPCODE_FC77
+0x79 HCI_OPCODE_FC79
+0xC4 HCI_DOWNLOAD_PATCH
+0xCC HCI_OPCODE_FCCC
+
+0x00 HCI_VENDOR_CMD_RESET
+0x01 HCI_VENDOR_CMD_CHIPID
+0x02 HCI_VENDOR_CMD_BAUD
+0x03 HCI_VENDOR_CMD_PATCH
+0x04 HCI_VENDOR_CMD_PATCH_DONE
+0x05 HCI_VENDOR_CMD_ECHO
+0x06 HCI_VENDOR_CMD_BDADDR
+
+0x07 HCI_VENDOR_CMD_ENTER_LPM
+0x08 HCI_VENDOR_CMD_COMMU_READY
+
+0x10 HCI_VENDOR_CMD_MEM
+0x11 HCI_VENDOR_CMD_EEP
+
+0X12 HCI_VENDOR_CMD_PATCH_SEC_INIT
+0X13 HCI_VENDOR_CMD_PATCH_SEC
+0x14 HCI_VENDOR_CMD_SET_FLOW_CONTROL
+)
+
+//HCI LE controller command OCF values, OGF=8
+(
+0x01 HCI_LE_SET_EVENT_MASK
+0x02 HCI_LE_READ_BUFFER_SIZE
+0x03 HCI_LE_READ_LOCAL_SUPPORTED_FEATURES
+0x05 HCI_LE_SET_RANDOM_ADDRESS
+0x06 HCI_LE_SET_ADVERTISING_PARAMETERS
+0x07 HCI_LE_READ_ADVERTISING_CHANNEL_TX_POWER
+0x08 HCI_LE_SET_ADVERTISING_DATA
+0x09 HCI_LE_SET_SCAN_RESPONSE_DATA
+0x0A HCI_LE_SET_ADVERTISE_ENABLE
+0x0B HCI_LE_SET_SCAN_PARAMETERS
+0x0C HCI_LE_SET_SCAN_ENABLE
+0x0D HCI_LE_CREATE_CONNECTION
+0x0E HCI_LE_CREATE_CONNECTION_CANCEL
+0x0F HCI_LE_READ_WHITE_LIST_SIZE
+0x10 HCI_LE_CLEAR_WHITE_LIST
+0x11 HCI_LE_ADD_DEVICE_TO_WHITE_LIST
+0x12 HCI_LE_REMOVE_DEVICE_FROM_WHITE_LIST
+0x13 HCI_LE_CONNECTION_UPDATE
+0x14 HCI_LE_SET_HOST_CHANNEL_CLASSIFICATION
+0x15 HCI_LE_READ_CHANNEL_MAP
+0x16 HCI_LE_READ_REMOTE_USED_FEATURES
+0x17 HCI_LE_ENCRYPT
+0x18 HCI_LE_RAND
+0x19 HCI_LE_START_ENCRYPTION
+0x1A HCI_LE_LONG_TERM_KEY_REQUEST_REPLY
+0x1B HCI_LE_LONG_TERM_KEY_REQUEST_NEGATIVE_REPLY
+0x1C HCI_LE_READ_SUPPORTED_STATES
+0x1D HCI_LE_RECEIVER_TEST
+0x1E HCI_LE_TRANSMITTER_TEST
+0x1F HCI_LE_TEST_END
+0x20 HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_REPLY
+0x21 HCI_LE_REMOTE_CONNECTION_PARAMETER_REQUEST_NEGATIVE_REPLY
+)
+// HCI event code
+(
+0x01 HCI_EVENT_INQUIRY_COMPLETE
+0x02 HCI_EVENT_INQUIRY_RESULT
+0x03 HCI_EVENT_CONNECTION_COMPLETE
+0x04 HCI_EVENT_CONNECTION_REQUEST
+0x05 HCI_EVENT_DISCONNECTION_COMPLETE
+0x06 HCI_EVENT_AUTHENTICATION_COMPLETE
+0x07 HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE
+0x08 HCI_EVENT_ENCRYPTION_CHANGE_COMPLETE
+0x09 HCI_EVENT_CHANGE_CONNECTION_LINK_KEY_COMPLETE
+0x0A HCI_EVENT_MASTER_LINK_KEY_COMPLETE
+0x0B HCI_EVENT_READ_REMOTE_FEATURES_COMPLETE
+0x0C HCI_EVENT_READ_REMOTE_VERSION_INFORMATION_COMPLETE
+0x0D HCI_EVENT_QOS_SETUP_COMPLETE
+0x0E HCI_EVENT_COMMAND_COMPLETE
+0x0F HCI_EVENT_COMMAND_STATUS
+0x10 HCI_EVENT_HARDWARE_ERROR
+0x11 HCI_EVENT_FLUSH_OCCURRED
+0x12 HCI_EVENT_ROLE_CHANGE
+0x13 HCI_EVENT_NUM_COMPLETED_PACKETS
+0x14 HCI_EVENT_MODE_CHANGE
+0x15 HCI_EVENT_RETURN_LINK_KEYS
+0x16 HCI_EVENT_PIN_CODE_REQUEST
+0x17 HCI_EVENT_LINK_KEY_REQUEST
+0x18 HCI_EVENT_LINK_KEY_NOTIFICATION
+0x19 HCI_EVENT_LOOPBACK_COMMAND
+0x1A HCI_EVENT_DATA_BUFFER_OVERFLOW
+0x1B HCI_EVENT_MAX_SLOTS_CHANGE
+0x1C HCI_EVENT_READ_CLOCK_OFFSET_COMPLETE
+0x1D HCI_EVENT_CONNECTION_PACKET_TYPE_CHANGED
+0x1E HCI_EVENT_QOS_VIOLATION
+0x1F HCI_EVENT_PAGE_SCAN_MODE_CHANGE
+0x20 HCI_EVENT_PAGE_SCAN_REPETITION_MODE_CHANGE
+0x21 HCI_EVENT_FLOW_SPECIFICATION_COMPLETE
+0x22 HCI_EVENT_INQUIRY_RESULT_WITHRSSI
+0x23 HCI_EVENT_READ_REMOTE_EXT_FEATURES_COMPLETE
+0x2C HCI_EVENT_SCO_CONNECTION_COMPLETE
+0x2D HCI_EVENT_SCO_CONNECTION_CHANGED
+0x2E HCI_EVENT_SNIFF_SUBRATING
+0x2F HCI_EVENT_EXT_INQUIRY_RESULT
+0x30 HCI_EVENT_ENCRYPT_KEY_REFRESH_COMPLETE
+0x31 HCI_EVENT_IO_CAP_REQ
+0x32 HCI_EVENT_IO_CAP_RESPONSE
+0x33 HCI_EVENT_USER_CONFIRMATION_REQUEST
+0x34 HCI_EVENT_UESR_PASSKEY_REQUEST
+0x35 HCI_EVENT_REMOTE_OOB_DATA_REQUEST
+0x36 HCI_EVENT_SIMPLE_PAIRING_COMPLETE
+0x38 HCI_EVENT_LINK_SUPERVISION_TIMEOUT_CHANGED
+0x39 HCI_EVENT_ENHANCED_FLUSH_COMPLETE
+0x3B HCI_EVENT_USER_PASSKEY_NOTIFICATION
+0x3C HCI_EVENT_KEYPRESS_NOTIFICATION
+0x3D HCI_EVENT_REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION 
+0x3E HCI_EVENT_LE_META_EVENT
+0x40 HCI_EVENT_PHYSICAL_LINK_COMPLETE
+0x41 HCI_EVENT_CHANNEL_SELECTED
+0x42 HCI_EVENT_DISCONNECTION_PHYSICAL_LINK_COMPLETE
+0x43 HCI_EVENT_PHYSICAL_LINK_LOSS_EARLY_WARNING
+0x44 HCI_EVENT_PHYSICAL_LINK_RECOVERY
+0x45 HCI_EVENT_LOGICAL_LINK_COMPLETE
+0x46 HCI_EVENT_DISCONNECTION_LOGICAL_LINK_COMPLETE
+0x47 HCI_EVENT_FLOW_SPEC_MODIFY_COMPLETE
+0x48 HCI_EVENT_NUMBER_OF_COMPLETED_DATA_BLOCKS
+0x49 HCI_EVENT_AMP_START_TEST
+0x4A HCI_EVENT_AMP_TEST_END
+0x4B HCI_EVENT_AMP_RECEIVER_REPORT
+0x4C HCI_EVENT_SHORT_RANGE_MODE_CHANGE_COMPLETE
+0x4D HCI_EVENT_AMP_STATUS_CHANGE
+0x4E HCI_EVENT_TRIGGERED_CLOCK_CAPTURE
+0x4F HCI_EVENT_SYNCHRONIZATION_TRAIN_COMPLETE
+0x50 HCI_EVENT_SYNCHRONIZATION_TRAIN_RECEIVED
+0x51 HCI_EVENT_CONNECTIONLESS_SLAVE_BROADCAST_RECEIVE
+0x52 HCI_EVENT_CONNECTIONLESS_SLAVE_BROADCAST_TIMEOUT
+0x53 HCI_EVENT_TRUNCATED_PAGE_COMPLETE
+0x54 HCI_EVENT_SLAVE_PAGE_RESPONSE_TIMEOUT
+0x55 HCI_EVENT_CONNECTIONLESS_SLAVE_BROADCAST_CHANNEL_MAP_CHANGE
+0x56 HCI_EVENT_INQUIRY_RESPONSE_NOTIFICATION
+0x57 HCI_EVENT_AUTHENTICATED_PAYLOAD_TIMEOUT_EXPIRED
+
+0xFE HCI_EVENT_LOGO_TESTING
+0xFF HCI_EVENT_VENDOR_SPECIFIC
+)
+(
+0x01 HCI_VENDOR_EVENT_COMMU_READY
+)
+//HCI LE SUBEVENT CODE
+(
+0x01 HCI_LE_SUBEVENT_CONN_COMPLETE
+0x02 HCI_LE_SUBEVENT_ADV_REPORT
+0x03 HCI_LE_SUBEVENT_CONN_UPDATE_COMPLETE
+0x04 HCI_LE_SUBEVENT_REMOTE_FEATURE_COMPLETE
+0x05 HCI_LE_SUBEVENT_LTK_REQUEST
+0x06 HCI_LE_SUBEVENT_REMOTE_CONN_PARAM_REQ
+)
+
+
+(
+
+0x01 HID_TYPE_CONTROL
+0x04 HID_TYPE_GET_REPORT
+0x05 HID_TYPE_SET_REPORT
+0x07 HID_TYPE_SET_PROTOCOL
+0x09 HID_TYPE_SET_IDLE
+0x0a HID_TYPE_DATA
+
+0x01 HID_REPORT_ID_KB
+
+0x00 HID_CONTROL_P_NOOPERATION
+0x01 HID_CONTROL_P_HARDRESET
+0x02 HID_CONTROL_P_SOFTRESET
+0x03 HID_CONTROL_P_SUSPEND
+0x04 HID_CONTROL_P_EXITSUSPEND
+0x05 HID_CONTROL_P_VIRTUALCABLEUNPLUG
+)
+
+
+
+
+(
+0x01 DEVICE_DATA_TPYE_MOUSE
+0x02 DEVICE_DATA_TPYE_STANDARD_KEYBOARD
+0x03 DEVICE_DATA_TPYE_NONSTARNDARD_KEYBOARD
+0x04 DEVICE_DATA_TPYE_CONSUMER
+0x05 DEVICE_DATA_TPYE_SYSTEM_CONCTOL
+)
+
+(
+0x00 HID_REPORTID_KEY_STANDARD
+0x01 HID_REPORTID_MOUSE
+0x02 HID_REPORTID_SYSTEM_CTRL
+0x03 HID_REPORTID_CONSUMER_KEY
+)
+
+(
+0x04	 HID_KEY_A 	 
+0x05        HID_KEY_B 	 
+0x06        HID_KEY_C 	 
+0x07        HID_KEY_D 	 
+0x08        HID_KEY_E 	 
+0x09        HID_KEY_F 	 
+0x0a        HID_KEY_G 	 
+0x0b        HID_KEY_H 	 
+0x0c        HID_KEY_I  	 
+0x0d        HID_KEY_J 	 
+0x0e        HID_KEY_K 	 
+0x0f        HID_KEY_L 	 
+0x10        HID_KEY_M 	 
+0x11        HID_KEY_N 	 
+0x12        HID_KEY_O	 
+0x13        HID_KEY_P	 
+0x14        HID_KEY_Q	 
+0x15        HID_KEY_R	 
+0x16        HID_KEY_S	 
+0x17        HID_KEY_T	 
+0x18        HID_KEY_U	 
+0x19        HID_KEY_V	 
+0x1a        HID_KEY_W 	 
+0x1b        HID_KEY_X	 
+0x1c        HID_KEY_Y	 
+0x1d        HID_KEY_Z	 
+    
+0x1e        HID_KEY_1	 
+0x1f        HID_KEY_2	 
+0x20        HID_KEY_3	 
+0x21        HID_KEY_4	 
+0x22        HID_KEY_5	 
+0x23        HID_KEY_6	 
+0x24        HID_KEY_7	 
+0x25        HID_KEY_8	 
+0x26        HID_KEY_9	 
+0x27        HID_KEY_0	 
+    
+0x28        HID_KEY_ENTER 				 
+0x29        HID_KEY_ESC				 
+0x2a        HID_KEY_BACKSPACE		 
+0x2b        HID_KEY_TAB				 
+0x2c        HID_KEY_SPACE 				 
+0x2d        HID_KEY_MINUS				 		// -_
+0x2e        HID_KEY_EQUAL				 		// =+
+0x2f        HID_KEY_LEFT_BRACKET 		 	// [{
+0x30        HID_KEY_RIGHT_BRACKET 	 		// ]}
+0x31        HID_KEY_BACK_SLASH 		 		// \|
+    
+0x32        HID_KEY_K42				 
+0x33        HID_KEY_SEMICOLON			 	// ;:
+0x34        HID_KEY_QUOTE				 		// ' "
+0x35        HID_KEY_TILDE				 		// `~
+0x36        HID_KEY_LESS_THAN			 		// ,<
+0x37        HID_KEY_GREAT_THAN		 		// .>
+0x38        HID_KEY_SLASH				 		// /?
+0x39        HID_KEY_CAPS_LOCK			 
+
+0x3a        HID_KEY_F1		 
+0x3b        HID_KEY_F2		 
+0x3c        HID_KEY_F3		 
+0x3d        HID_KEY_F4		 
+0x3e        HID_KEY_F5		 
+0x3f        HID_KEY_F6		 
+0x40        HID_KEY_F7		 
+0x41        HID_KEY_F8		 
+0x42        HID_KEY_F9		 
+0x43        HID_KEY_F10	 
+0x44        HID_KEY_F11	 
+0x45        HID_KEY_F12	 
+    
+0x46        HID_KEY_PRINT_SCREEN	 
+0x47        HID_KEY_SCROLL_LOCK	 
+0x48        HID_KEY_PAUSE			 
+0x49        HID_KEY_INSERT			 
+0x4a        HID_KEY_HOME			 
+0x4b        HID_KEY_PAGE_UP		 
+0x4c        HID_KEY_DELETE		 
+0x4d        HID_KEY_END			 
+0x4e        HID_KEY_PAGE_DOWN	 
+        
+0x4f        HID_KEY_RIGHT_ARROW	 
+0x50        HID_KEY_LEFT_ARROW	 
+0x51        HID_KEY_DOWN_ARROW	 
+0x52        HID_KEY_UP_ARROW		 
+        
+0x53        HID_KEY_NUM_LOCK		 
+0x54        HID_KEY_KP_SLASH		 
+0x55        HID_KEY_KP_ASTERISK	 
+0x56        HID_KEY_KP_MINUS		 
+0x57        HID_KEY_KP_PLUS		 
+0x58        HID_KEY_KP_ENTER		 
+0x59        HID_KEY_KP_1			 
+0x5a        HID_KEY_KP_2			 
+0x5b        HID_KEY_KP_3			 
+0x5c        HID_KEY_KP_4			 
+0x5d        HID_KEY_KP_5			 
+0x5e        HID_KEY_KP_6			 
+0x5f        HID_KEY_KP_7			 
+0x60        HID_KEY_KP_8			 
+0x61        HID_KEY_KP_9			 
+0x62        HID_KEY_KP_0			 
+0x63        HID_KEY_KP_DEL		 
+  
+0x64        HID_KEY_K45			 
+0x65        HID_KEY_APP			 
+0x66        HID_KEY_POWER			 
+0x67        HID_KEY_KP_EQUAL		 
+        
+       
+0x87        HID_KEY_K56				 
+0x88        HID_KEY_K133  				 
+0x89        HID_KEY_K14  				 
+0x8a        HID_KEY_K132  				 
+0x8b        HID_KEY_K131 				 
+    
+0x90        HID_KEY_KR_R  				 
+0x91        HID_KEY_KR_L  				 
+        
+0xe0        HID_KEY_LEFT_CTRL			 
+0xe1        HID_KEY_LEFT_SHIFT			 
+0xe2        HID_KEY_LEFT_ALT 			 
+0xe3        HID_KEY_LEFT_GUI 			 
+0xe4        HID_KEY_RIGHT_CTRL			 
+0xe5        HID_KEY_RIGHT_SHIFT		 
+0xe6        HID_KEY_RIGHT_ALT			 
+0xe7        HID_KEY_RIGHT_GUI			 
+
+0xe8 	HID_KEY_MULTIKEY_MEDIA
+0xe9 	HID_KEY_MULTIKEY_PALY
+0xea 	HID_KEY_MULTIKEY_STOP
+0xeb 	HID_KEY_MULTIKEY_PRE_TRACK
+0xec 	HID_KEY_MULTIKEY_NEXT_TRACK
+0xed 	HID_KEY_MULTIKEY_VOL_DOWN
+0xee 	HID_KEY_MULTIKEY_VOL_UP
+0xef 	HID_KEY_MULTIKEY_MUTE
+0xf0 	HID_KEY_MY_COMPUTER
+0xf1 	HID_KEY_MAIL
+0xf2 	HID_KEY_CALCULATOR
+0xf3 	HID_KEY_LIGHT_DOWN
+0xf4 	HID_KEY_LIGHT_UP
+0xf5 	HID_KEY_AC_FAVORITES
+0xf6 	HID_KEY_AC_FORWARD
+0xf7 	HID_KEY_AC_BACK
+0xf8 	HID_KEY_AC_STOP
+0xf9 	HID_KEY_AC_REFRESH
+0xfa 	HID_KEY_AC_SEARCH
+0xfb 	HID_KEY_AC_HOME
+0xfc 	HID_KEY_IOS_ANDROID_OS_LOCK
+0xfd 	HID_KEY_OS_SOFT_KB
+0xfe 	HID_KEY_OS_LANGUAGE
+0xff 	HID_KEY_SYSTEM_SLEEP
+        // 0xe8~0xff reserved
+0xa5	HID_KEY_SELECT_ALL
+0xa6 	HID_KEY_COPY
+0xa7	HID_KEY_PASTE
+0xa8	HID_KEY_CUT
+0xa9	HID_KEY_ALL_OS_LOCK
+0xaa	HID_KEY_OSK
+0xab	HID_KEY_LANGUAGE
+0xac 	HID_KEY_APP_TILING
+0xad	HID_KEY_SEARCH
+0xae    HID_KEY_DESKTOP
+	 // 0xa5~0xaf reserved
+0x7f     	HID_KEY_FN 					 
+0xde     	HID_KEY_PB
+0x00     	HID_KEY_NULL 				 
+)
+
+(
+0x01 LEFT_CONTROL
+0x02 LEFT_SHIFT
+0x04 LEFT_ALT
+0x08 LEFT_GUI
+0x10 RIGHT_CONTROL
+0x20 RIGHT_SHIFT
+0x40 RIGHT_ALT
+0x80 RIGHT_GUI
+0x09 LEFT_GUI_CONTROL
+0x0a LEFT_SHIFT_GUI
+)
+
+
+(
+0x00 KB_PC_KEYSEL_NUMLOCK
+0x01 KB_PC_KEYSEL_CAPSLOCK
+0x02 KB_PC_KEYSEL_SCROLLLOCK
+)
+
+(
+8 KEYSCAN_COL_NUM
+20 KEYSCAN_ROW_NUM
+)
+
+(
+0 CAMMBINATION_KEY_FREE
+1 CAMMBINATION_KEY_PRESS
+2 CAMMBINATION_KEY_HOLD
+3 CAMMBINATION_KEY_COMPLETE
+4 CAMMBINATION_KEY_WAIT_RELEASE
+5 CAMMBINATION_KEY_RELEASE
+6 CAMMBINATION_KEY_NULL
+)
+
+
+(
+
+0x600 PNP_MICROSOFT
+0x4c00 PNP_IOS
+0x1208 PNP_MAC
+
+
+0 SYSTEM_OS_WINDOWS
+1 SYSTEM_OS_ANDRIOD
+2 SYSTEM_OS_IOS
+3 SYSTEM_OS_MAC
+
+)
+
+(
+0 KEYBOARD_CONSUMER_KEY_STANDBY
+1 KEYBOARD_CONSUMER_KEY_PRESS
+2 KEYBOARD_CONSUMER_KEY_RELEASE
+)
+
+
+
+
+
+
+
+
+//0 mem_kscan_head_ptr
+//1 mem_col_num
+//1 mem_row_num
+//4 mem_col_conf_pin
+//4 mem_row_conf_pin
+//1 mem_row_count
+//1 mem_count_shift
+//2 mem_kscan_value_temp
+//2 mem_kscan_lastvalue
+//2 mem_kscan_value
+//4 mem_btclk_kscan
+//1 mem_btclk_kscan_interval
+
+
+0x00 KEYSCAN_OFFECT_COL_NUM
+0x01 KEYSCAN_OFFECT_ROW_NUM
+0x02 KEYSCAN_OFFECT_COL_CONF_PIN
+0x06 KEYSCAN_OFFECT_ROW_CONF_PIN
+
+0x0a KEYSCAN_OFFECT_ROW_COUNT
+0x0b KEYSCAN_OFFECT_SHIFT_COUNT
+
+0X0C KEYSCAN_OFFECT_VALUE_TEMP
+0X0E KEYSCAN_OFFECT_LASVALUE
+0X10 KEYSCAN_OFFECT_VALUE
+0x12 KEYSCAN_OFFECT_BTCLK
+0x16 KEYSCAN_OFFECT_BTCLK_INTERVAL
+
+
+
+
+
+
+//mem_l2cap_lpm_txbuf
+(
+256 l2cap_lpm_txbuf_len
+)
+
+(
+4 L2CAP_TX_FIFO_SIZE
+8 L2CAP_TX_BUFF_CNT
+
+)
+(
+0x0002 L2CAP_SIG_EXT_FEATRUE
+0x0003 L2CAP_SIG_FIX_FEATRUE
+)
+
+
+(
+0 HS_IDLE
+1 AG_INIT_CALL
+2 HS_INIT_CALL
+)
+(
+0 M_ACL_LINK_ABSENT
+1 M_ACL_LINK_EXIST
+)
+
+(
+0 L2CAP_INUSE_BUFF1
+1 L2CAP_INUSE_BUFF2
+)
+
+(
+1 MAX_NUM_LINKS_ALLOWED
+1 MAX_NUM_SCO_ALLOWED
+1 ACL_LINK_PRESENT
+0 ACL_LINK_ABSENT
+)
+(
+1 L2CAP_RX_DONE 
+0 L2CAP_RX_CLEAR
+)
+
+(
+0 L2CAP_DISCONNECT_INTERRUPT
+1 RFCOMM_wants_service
+2 L2CAP_sig_Tx_buff_full
+3 RFCOMM_Tx_buff_full
+4 SDP_Tx_buff_full
+5 got_complete_L2CAP_pkt	
+6 L2CAP_init_Config_Req
+7 L2CAP_DISCONNECT_CONTROL
+)
+
+
+(
+0 UI_NEED_SERVICE
+)
+
+(
+0x0001 L2CAP_signal_channel
+0x0050 L2CAP_SDP_channel
+0x0051 L2CAP_RFCOMM_channel
+0x0052 L2CAP_HID_Control_channel   
+0x0053 L2CAP_HID_Interrupt_channel
+
+0x0077 L2CAP_AVDTP_signal_channel		//------avdtp
+0x0078 L2CAP_AVDTP_media_channel
+0x0079 L2CAP_AVDTP_report_channel
+0x0080 L2CAP_AVDTP_recovery_channel
+0x00dd L2CAP_AVCTP_Control_channel
+)
+
+(
+0x00 reserved
+0x01 signal_cmd_reject
+0x02 signal_connect_req
+0x03 signal_connect_rsp
+0x04 signal_config_req
+0x05 signal_config_rsp
+0x06 signal_disconnect_req
+0x07 signal_disconnect_rsp
+0x08 signal_echo_req
+0x09 signal_echo_rsp
+0x0a signal_info_req
+0x0b signal_info_rsp
+)
+
+(
+0x0000 cmd_not_understood
+0x0001 signalling_MTU_exceeded
+0x0002 invalid_CID_in_req
+)
+
+(
+0x0001 PSM_SDP
+0x0003 PSM_RFCOMM
+0x0005 PSM_TCS
+0x0011 PSM_HID_control
+0x0013 PSM_HID_interrupt
+0x0017 PSM_AVCTP
+0x0019 PSM_AVDTP
+)
+
+(
+0x0000 L2CAP_connect_successful
+0x0001 L2CAP_connect_pending
+0x0002 L2CAP_connect_refused_PSM_unsupported
+0x0003 L2CAP_connect_refused_security_block
+0x0004 L2CAP_connect_refused_no_resources
+)
+
+(
+0x0000 L2CAP_no_info_available
+0x0001 L2CAP_authentication_pending
+0x0002 L2CAP_authorization_pending
+)
+
+(
+0x0000 L2CAP_config_success
+0x0001 L2CAP_config_failure_bad_parameters
+0x0002 L2CAP_config_failure_no_reason
+0x0003 L2CAP_config_failure_unknown_options
+)
+
+(
+128 L2CAP_Rx_buff_size
+48  L2CAP_signal_Tx_buff_size
+128 SDP_Tx_buff_size
+128 RFCOMM_Tx_buff_size
+1 AM_ADDRESS
+3 DM1TYPE
+4 DH1TYPE
+11 DH3TYPE
+8 DVTYPE
+0 channel_state_closed
+1 channel_state_config
+2 channel_state_open
+0x0030 L2CAP_config_MTU_SDP
+0xffff L2CAP_config_ftimeout_SDP
+0x03e3 L2CAP_config_MTU_RFCOMM
+0xffff L2CAP_config_ftimeout_RFCOMM
+260 l2cap_max_pkt_len
+)
+
+(
+0 FAILURE
+1 SUCCESS
+2 IN_PROGRESS
+)
+(
+0x00	IDLE
+0x01	WAIT_4_BB_PAGE
+0x02	WAIT_4_LMP_CONN
+0x03	WAIT_4_SCO_CONN
+0x04	WAIT_4_SCO_KILLED
+)
+
+
+(
+0 STOP_ENC
+1 SEND_SWITCH_REQ
+)
+(
+0 HF_HS_READY
+1 HF_AG_READY
+)
+
+(
+0 HF_STATE_WAITING_RFCOMM_CONN
+1 HF_STATE_HF_SEND_FEATURE
+2 HF_STATE_WAITING_AG_FEATURE_OK
+3 HF_STATE_HF_SEND_INDICATORS
+4 HF_STATE_WAITING_AG_INDICATORS_OK
+5 HF_STATE_HF_SEND_CURR_STATUS
+6 HF_STATE_WAITING_AG_STATUS_OK
+7 HF_STATE_HF_SEND_UPDATE_STATUS
+8 HF_STATE_WAITING_AG_UPDATE_STATUS_OK
+9 HF_STATE_CONNECTED
+0x0a HF_STATE_HF_SEND_RECEIVE_INFO
+0x0b HF_STATE_WAITING_AG_INFO
+0x0c HF_STATE_HF_SEND_AT_CLIP
+0x0d HF_STATE_WAITING_AT_CLIP
+0x0e HF_STATE_HF_SEND_AT_CCWA
+0x0f HF_STATE_WAITING_AT_CCWA
+)
+
+(
+0 HF_CALL_STATE_INACTIVE
+1 HF_CALL_STATE_SETUP
+2 HF_CALL_STATE_ACTIVE 
+)
+
+(
+0 PAIR_INQUIRY_START
+1 PAIR_INQUIRY_TIME_OUT
+2 PAIR_INQUIRY_FAILED
+3 PAIR_INQUIRY_SUCCESS
+4 PAIR_READY_CONN
+5 PAIR_WAIT_CANCEL_RESPONSE
+6 PAIR_CONN_SUCCESS
+7 PAIR_WAIT_DETACH
+)  
+
+
+(
+0 FORCE_AUTHENTICATION
+)
+
+(
+0 PROTECOL_BOOT 
+1 PROTECOL_REPORT
+)
+
+
+(
+1 UPPERSM_SEND_SDP_CONN_REQ
+2 UPPERSM_SEND_SDP_CFG_REQ
+3 UPPERSM_SEND_SDP_HF_SS
+4 UPPERSM_SEND_SDP_DISC_REQ
+5 UPPERSM_SEND_RFCOMM_CONN_REQ
+6 UPPERSM_SEND_RFCOMM_CFG_REQ
+7 UPPERSM_SEND_SABM_CMD
+8 UPPERSM_SEND_DISC
+9 UPPERSM_SEND_WAIT
+10 UPPERSM_SEND_HID_CONTROL_CONN_REQ
+11 UPPERSM_SEND_HID_CONTROL_CFG_REQ
+12 UPPERSM_SEND_HID_INTERRUPT_CONN_REQ
+13 UPPERSM_SEND_HID_INTERRUPT_CFG_REQ
+14 UPPERSM_SEND_SDP_HS_SS
+15 UPPERSM_SEND_SDP_PBAP_SS
+16 UPPERSM_SEND_SDP_AVTARG_SS
+)
+
+(
+1 UPPERSM_RP_SEND_SDP_CONN_REQ
+2 UPPERSM_RP_SEND_SDP_CFG_REQ
+3 UPPERSM_RP_SEND_SDP_HF_SS
+4 UPPERSM_RP_SEND_SDP_HS_SS
+5 UPPERSM_RP_SEND_SDP_PBAP_SS
+6 UPPERSM_RP_SEND_SDP_AVTARG_SS
+7 UPPERSM_RP_SEND_SDP_DISC_REQ
+8 UPPERSM_RP_SEND_AVCTP_CONN_REQ
+9 UPPERSM_RP_SEND_AVCTP_CFG_REQ
+)
+
+
+(
+0 MSCHEDULER_HID_CONTROL_CONN_DONE
+1 MSCHEDULER_HID_INTERRUPT_CONN_DONE
+2 MSCHEDULER_HID_CONTROL_CFG_REQ_DONE
+3 MSCHEDULER_HID_CONTROL_CFG_RSP_DONE
+4 MSCHEDULER_HID_INTERRUPT_CFG_REQ_DONE
+5 MSCHEDULER_HID_INTERRUPT_CFG_RSP_DONE
+6 MSCHEDULER_HID_CONTROL_DISC_DONE
+7 MSCHEDULER_HID_INTERRUPT_DISC_DONE
+)
+
+(
+0x00 UI_DATA_EVNET_NONE
+0x01 UI_DATA_EVNET_HID
+0x02 UI_DATA_EVNET_AVDTP_S
+0x03 UI_DATA_EVNET_AVDTP_M
+0x04 UI_DATA_EVNET_AVCTP
+0x05 UI_DATA_EVNET_HS
+0x06 UI_DATA_EVNET_HF
+0x07 UI_DATA_EVNET_SPP
+0x08 UI_DATA_EVNET_OBEX
+)
+
+(
+0x00 UI_DATA_TX_NONE
+0x01 UI_DATA_TX_HID
+0x02 UI_DATA_TX_AVDTP_S
+0x03 UI_DATA_TX_AVDTP_M
+0x04 UI_DATA_TX_AVCTP
+0x05 UI_DATA_TX_HS
+0x06 UI_DATA_TX_HF
+0x07 UI_DATA_TX_SPP
+0x08 UI_DATA_TX_OBEX
+0x10 ACL_TX_L2CAP_SIGNAL
+0x11 ACL_TX_SDP
+0x12 ACL_TX_RFCOMM
+
+)
+
+(
+0 L2CAP_SDP_interface_conn
+1 L2CAP_SDP_interface_cfg
+)
+
+(                                   
+0 L2CAP_CHANNEL_STATE_CONN_REQ      
+1 L2CAP_CHANNEL_STATE_CONN_RES      
+2 L2CAP_CHANNEL_STATE_SND_CFG_REQ   
+3 L2CAP_CHANNEL_STATE_SND_CFG_RES   
+4 L2CAP_CHANNEL_STATE_RCV_CFG_REQ   
+5 L2CAP_CHANNEL_STATE_RCV_CFG_RES
+6 L2CAP_CHANNEL_RFCOMM_ONLY_SABM
+7 L2CAP_CHANNEL_RFCOMM_ONLY_UA
+6 L2CAP_CHANNEL_AVDTP_SIGNAL_INIT //set avdtp init complete
+6 L2CAP_CHANNEL_HID_HANDSHAKE_DONE
+0x3f L2CAP_CHANNEL_SETUP_COMPLETE
+0x7f L2CAP_CHANNEL_AVDTP_SIGNAL_COMPLETE
+0xff L2CAP_CHANNEL_RFCOMM_DLCI0_OPENED
+)                                     
+
+
+(
+0 L2CAP_AVDTP_SIGNAL_CONNECT
+1 L2CAP_AVDTP_SIGNAL_CONFIG
+2 L2CAP_AVDTP_MEDIA_CONNECT
+3 L2CAP_AVDTP_MEDIA_CONFIG
+4 L2CAP_AVDTP_REPORT_CONNECT
+5 L2CAP_AVDTP_REPORT_CONFIG
+6 L2CAP_AVDTP_RECOVERY_CONNECT
+7 L2CAP_AVDTP_RECOVERY_CONFIG
+)
+
+(
+0 L2CAP_AVCTP_SIGNAL_CONNECT
+1 L2CAP_AVCTP_SIGNAL_CONFIG
+)
+
+127 L2CAP_SIGNAL_MALLOC_SIZE
+
+//1 mem_rfcomm_malloc_fail_flag
+(
+0 RFCOMM_MALLOC_SUCCEED
+1 RFCOMM_MALLOC_FAIL
+)
+
+//mem_l2cap_flow_ctrl_flag
+(
+0 L2CAP_FLOW_CTRL_DISABLE
+1 L2CAP_FLOW_CTRL_ENABLE
+)
+
+
+
+
+	(
+	//bit flag:mem_classic_bt_flag
+	0 FLAG_SSP_REJECT_JUSTWORK
+	1 SHORT_MULT_FLAG
+	)
+	
+	(
+	//bit map
+	0 pair_state_inrand
+	1 pair_state_inrand_acpt
+	2 pair_state_send_comb
+	3 pair_state_recv_comb
+	4 pair_state_send_aurand
+	5 pair_state_recv_sres
+	6 pair_state_recv_aurand
+	7 pair_state_send_sres	
+	)
+	
+	(
+	1 LMP_NAME_REQ 
+	2 LMP_NAME_RES 
+	3 LMP_ACCEPTED 
+	4 LMP_NOT_ACCEPTED 
+	5 LMP_CLKOFFSET_REQ 
+	6 LMP_CLKOFFSET_RES 
+	7 LMP_DETACH 
+	8 LMP_IN_RAND 
+	9 LMP_COMB_KEY 
+	10 LMP_UNIT_KEY 
+	11 LMP_AU_RAND 
+	12 LMP_SRES 
+	13 LMP_TEMP_RAND 
+	14 LMP_TEMP_KEY 
+	15 LMP_ENCRYPTION_MODE_REQ 
+	16 LMP_ENCRYPTION_KEY_SIZE_REQ 
+	17 LMP_START_ENCRYPTION_REQ 
+	18 LMP_STOP_ENCRYPTION_REQ 
+	19 LMP_SWITCH_REQ 
+	20 LMP_HOLD
+	21 LMP_HOLD_REQ
+	23 LMP_SNIFF_REQ 
+	24 LMP_UNSNIFF_REQ 
+	26 LMP_PARK_REQ 
+	27 LMP_SET_BROADCAST_SCAN_WINDOW 
+	28 LMP_MODIFY_BEACON 
+	29 LMP_UNPARK_BD_ADDR_REQ 
+	30 LMP_UNPARK_PM_ADDR_REQ 
+	31 LMP_INCR_POWER_REQ 
+	32 LMP_DECR_POWER_REQ 
+	33 LMP_MAX_POWER 
+	34 LMP_MIN_POWER 
+	35 LMP_AUTO_RATE 
+	36 LMP_PREFERRED_RATE 
+	37 LMP_VERSION_REQ 
+	38 LMP_VERSION_RES 
+	39 LMP_FEATURES_REQ 
+	40 LMP_FEATURES_RES 
+	41 LMP_QUALITY_OF_SERVICE 
+	42 LMP_QUALITY_OF_SERVICE_REQ 
+	43 LMP_SCO_LINK_REQ 
+	44 LMP_REMOVE_SCO_LINK_REQ 
+	45 LMP_MAX_SLOT 
+	46 LMP_MAX_SLOT_REQ 
+	47 LMP_TIMING_ACCURACY_REQ 
+	48 LMP_TIMING_ACCURACY_RES 
+	49 LMP_SETUP_COMPLETE 
+	50 LMP_USE_SEMI_PERMANENT_KEY 
+	51 LMP_HOST_CONNECTION_REQ 
+	52 LMP_SLOT_OFFSET 
+	53 LMP_PAGE_MODE_REQ 
+	54 LMP_PAGE_SCAN_MODE_REQ 
+	55 LMP_SUPERVISION_TIMEOUT 
+	56 LMP_TEST_ACTIVATE
+	57 LMP_TEST_CONTROL
+	58 LMP_ENC_KEY_SIZE_MASK_REQ
+	59 LMP_ENC_KEY_SIZE_MASK_RES
+	60 LMP_SET_AFH
+
+	
+	61 LMP_ENCAPSULATED_HEADER
+	62 LMP_ENCAPSULATED_PAYLOAD
+	63 LMP_SIMPLE_PAIRING_CONFIRM
+	64 LMP_SIMPLE_PAIRING_NUMBER
+	65 LMP_DHKEY_CHECK
+	127 LMP_ESCAPE
+	127 LMP_ESCAPE_4      
+	)
+	
+	(
+	129 LMP_EXT_ACCEPTED
+	130 LMP_NOT_ACCEPTED_EXT
+	131 LMP_EXT_FEATURES_REQ
+	132 LMP_EXT_FEATURES_RES
+	139 LMP_PACKET_TYPE_TABLE_REQ
+	140 LMP_EXT_ESCO_LINK_REQ
+	141 LMP_EXT_REMOVE_ESCO_REQ
+	144 LMP_EXT_CHN_CLASSIFICATION_REQ
+	145 LMP_EXT_CHN_CLASSIFICATION
+	149 LMP_SNIFF_SUBRATING_REQ
+	150 LMP_SNIFF_SUBRATING_RES
+	151 LMP_PAUSE_ENCRYPTION_REQ
+	152 LMP_RESUME_ENCRYPTION_REQ
+	153 LMP_IO_CAP_REQ
+	154 LMP_IO_CAP_RES
+	161 LMP_PING_REQ
+	162 LMP_PING_RES
+	)
+	
+	(
+	0x05 AUTHENTICATION_FAILURE_ERROR
+	0x06 KEY_MISSING
+	0x0b ACL_CONNECTION_ALREADY_EXISTS
+	0x13 OTHER_END_TERMINATED
+	0x15 ABOUT_TO_POEWR_OFF
+	0x16 LOCAL_HOST
+	0x18 PAIRING_NOT_ALLOWED
+	0x19 UNKNOWN_LMP_PDU
+	0x1A UNSUPPORTED_LMP_FEATURE 
+	0x1F UNSPECIFIED_ERROR
+	0x20 UNSUPPORTED_PARAMETERS
+	0x21 SWITCH_NOT_ALLOWED
+	0x23 TRANSACTION_COLLISION
+	0x24 PDU_NOT_ALLOWED
+	0x25 ENCRYPTION_MODE_NOT_ACCEPTABLE
+	0x2e NOT_SUPPORT_CHN_CLASSIFICATION
+	0x37 NOT_SUPPORT_SSP
+	)
+
+	
+	(
+	0 PAUSE_TEST_MODE
+	1 ZERO_PATTERN
+	2 ONE_PATTERN
+	3 ALT_PATTERN
+	4 PSEUDORANDOM
+	5 CLOSED_LOOP_BACK_ACL
+	6 CLOSED_LOOP_BACK_SCO
+	7 ACL_WITHOUT_WHITENING
+	8 SCO_WITHOUT_WHITENING
+	9 ALT2_PATTERN
+	255 EXIT_TEST_MODE
+	)
+	
+	(
+	0 FIXED_FREQ
+	1 NORMAL_HOP
+	)
+
+	
+	(
+	0 TID_NORM_REPLY
+	1 TID_NORM_SEND
+	2 TID_ONE
+	3 TID_ZERO
+	4 TID_PAIRING
+	5 TID_ENCRYPTION
+	6 TID_VARIABLE
+	7 TID_RX
+	)
+
+	
+	(
+	0 lmp_incoming
+	1 lmp_outgoing
+	2 lmp_reject_msg
+	3 lmp_clear_msg
+	4 upper_reject_msg
+	5 upper_clear_msg
+	)
+
+(
+0x2ee00 TIMER_ONE_MINUTE //96000*2
+80 TIMER_SWITCH_WAITE
+12 TIMER_ENPT_WAITE
+)
+
+(
+0 SWITCH_FLAG_INIT
+1 SWITCH_FLAG_ACCEPT
+2 SWITCH_FLAG_NOT_ACCEPT
+)
+(
+0 NULL_ENCRYP
+1 DONE_ENCRYP
+)
+
+
+(
+3 LMP_FEATURES_EXT_PAGE1_SC_HOST_BIT
+)
+
+(
+8 LMP_FEATURES_EXT_PAGE2_SC_CONTROLLER_BIT
+)
+
+
+//mem_remote_br_sc_support
+(
+0 REMOTE_BR_SC_HOST_BIT
+1 REMOTE_BR_SC_CONTROLLER_BIT
+)
+  
+
+
+//
+//
+//Large memory blocks defined in this file.
+//Blocks Shall be defined with absolute address.
+//Blocks' length Shall be specified in comment following Blocks' names.
+//Different blocks MAY be overlap.
+//Blocks defined in this file Shall NOT be overlap with variable in memmap.format.
+
+// USB C51 exchange area
+(
+0xff0 mem_mcmd
+0xff1 mem_mouse_data
+)
+
+//l2cap RX buffers
+(
+0x1000 mem_le_l2cap_buf		//0x400
+0x1000 mem_l2cap_rxbuff1		//0x400
+0x1400 mem_l2cap_rxbuff2		//0x400
+//end address:0x17ff
+)
+//l2cap TX buffers
+(
+0x1800 mem_tx_buff0		//128
+0x0080 mem_bt_l2cap_tx_buff_size
+0x1400 mem_ble_tx_buff0
+0x0100 mem_ble_l2cap_tx_buff_size
+)
+
+(
+0x1800 mem_le_tx_buffer0
+0x1900 mem_le_tx_buffer1
+0x1a00 mem_le_tx_buffer2
+0x1b00 mem_le_tx_buffer3
+//end addr:0x1dff
+)
+
+
+//uart buffer
+(
+0x1800 mem_h5rx_buf//0x400
+0x1bff mem_h5rx_buf_end
+0x1c00 mem_h5tx_buf
+0x1fff mem_h5tx_buf_end
+)
+
+
+(
+0x1800 mem_ir_record
+0x1c      mem_ir_record_max
+)
+
+0x4c00 mem_savelist
+
+
+(
+7 context_num_new_m1
+8 context_num_new
+96 context_size_new
+)
+
+(
+0x4040 mem_anchor_array
+)
+
+
+(
+	  0 patch00_0
+	  1 patch00_1
+	  2 patch00_2
+	  3 patch00_3
+	  4 patch00_4
+	  5 patch00_5
+	  6 patch00_6
+	  7 patch00_7
+	  8 patch01_0
+	  9 patch01_1
+	 10 patch01_2
+	 11 patch01_3
+	 12 patch01_4
+	 13 patch01_5
+	 14 patch01_6
+	 15 patch01_7
+	 16 patch02_0
+	 17 patch02_1
+	 18 patch02_2
+	 19 patch02_3
+	 20 patch02_4
+	 21 patch02_5
+	 22 patch02_6
+	 23 patch02_7
+	 24 patch03_0
+	 25 patch03_1
+	 26 patch03_2
+	 27 patch03_3
+	 28 patch03_4
+	 29 patch03_5
+	 30 patch03_6
+	 31 patch03_7
+	 32 patch04_0
+	 33 patch04_1
+	 34 patch04_2
+	 35 patch04_3
+	 36 patch04_4
+	 37 patch04_5
+	 38 patch04_6
+	 39 patch04_7
+	 40 patch05_0
+	 41 patch05_1
+	 42 patch05_2
+	 43 patch05_3
+	 44 patch05_4
+	 45 patch05_5
+	 46 patch05_6
+	 47 patch05_7
+	 48 patch06_0
+	 49 patch06_1
+	 50 patch06_2
+	 51 patch06_3
+	 52 patch06_4
+	 53 patch06_5
+	 54 patch06_6
+	 55 patch06_7
+	 56 patch07_0
+	 57 patch07_1
+	 58 patch07_2
+	 59 patch07_3
+	 60 patch07_4
+	 61 patch07_5
+	 62 patch07_6
+	 63 patch07_7
+	 64 patch08_0
+	 65 patch08_1
+	 66 patch08_2
+	 67 patch08_3
+	 68 patch08_4
+	 69 patch08_5
+	 70 patch08_6
+	 71 patch08_7
+	 72 patch09_0
+	 73 patch09_1
+	 74 patch09_2
+	 75 patch09_3
+	 76 patch09_4
+	 77 patch09_5
+	 78 patch09_6
+	 79 patch09_7
+	 80 patch0a_0
+	 81 patch0a_1
+	 82 patch0a_2
+	 83 patch0a_3
+	 84 patch0a_4
+	 85 patch0a_5
+	 86 patch0a_6
+	 87 patch0a_7
+	 88 patch0b_0
+	 89 patch0b_1
+	 90 patch0b_2
+	 91 patch0b_3
+	 92 patch0b_4
+	 93 patch0b_5
+	 94 patch0b_6
+	 95 patch0b_7
+	 96 patch0c_0
+	 97 patch0c_1
+	 98 patch0c_2
+	 99 patch0c_3
+	100 patch0c_4
+	101 patch0c_5
+	102 patch0c_6
+	103 patch0c_7
+	104 patch0d_0
+	105 patch0d_1
+	106 patch0d_2
+	107 patch0d_3
+	108 patch0d_4
+	109 patch0d_5
+	110 patch0d_6
+	111 patch0d_7
+	112 patch0e_0
+	113 patch0e_1
+	114 patch0e_2
+	115 patch0e_3
+	116 patch0e_4
+	117 patch0e_5
+	118 patch0e_6
+	119 patch0e_7
+	120 patch0f_0
+	121 patch0f_1
+	122 patch0f_2
+	123 patch0f_3
+	124 patch0f_4
+	125 patch0f_5
+	126 patch0f_6
+	127 patch0f_7
+	128 patch10_0
+	129 patch10_1
+	130 patch10_2
+	131 patch10_3
+	132 patch10_4
+	133 patch10_5
+	134 patch10_6
+	135 patch10_7
+	136 patch11_0
+	137 patch11_1
+	138 patch11_2
+	139 patch11_3
+	140 patch11_4
+	141 patch11_5
+	142 patch11_6
+	143 patch11_7
+	144 patch12_0
+	145 patch12_1
+	146 patch12_2
+	147 patch12_3
+	148 patch12_4
+	149 patch12_5
+	150 patch12_6
+	151 patch12_7
+	152 patch13_0
+	153 patch13_1
+	154 patch13_2
+	155 patch13_3
+	156 patch13_4
+	157 patch13_5
+	158 patch13_6
+	159 patch13_7
+	160 patch14_0
+	161 patch14_1
+	162 patch14_2
+	163 patch14_3
+	164 patch14_4
+	165 patch14_5
+	166 patch14_6
+	167 patch14_7
+	168 patch15_0
+	169 patch15_1
+	170 patch15_2
+	171 patch15_3
+	172 patch15_4
+	173 patch15_5
+	174 patch15_6
+	175 patch15_7
+	176 patch16_0
+	177 patch16_1
+	178 patch16_2
+	179 patch16_3
+	180 patch16_4
+	181 patch16_5
+	182 patch16_6
+	183 patch16_7
+	184 patch17_0
+	185 patch17_1
+	186 patch17_2
+	187 patch17_3
+	188 patch17_4
+	189 patch17_5
+	190 patch17_6
+	191 patch17_7
+	192 patch18_0
+	193 patch18_1
+	194 patch18_2
+	195 patch18_3
+	196 patch18_4
+	197 patch18_5
+	198 patch18_6
+	199 patch18_7
+	200 patch19_0
+	201 patch19_1
+	202 patch19_2
+	203 patch19_3
+	204 patch19_4
+	205 patch19_5
+	206 patch19_6
+	207 patch19_7
+	208 patch1a_0
+	209 patch1a_1
+	210 patch1a_2
+	211 patch1a_3
+	212 patch1a_4
+	213 patch1a_5
+	214 patch1a_6
+	215 patch1a_7
+	216 patch1b_0
+	217 patch1b_1
+	218 patch1b_2
+	219 patch1b_3
+	220 patch1b_4
+	221 patch1b_5
+	222 patch1b_6
+	223 patch1b_7
+	224 patch1c_0
+	225 patch1c_1
+	226 patch1c_2
+	227 patch1c_3
+	228 patch1c_4
+	229 patch1c_5
+	230 patch1c_6
+	231 patch1c_7
+	232 patch1d_0
+	233 patch1d_1
+	234 patch1d_2
+	235 patch1d_3
+	236 patch1d_4
+	237 patch1d_5
+	238 patch1d_6
+	239 patch1d_7
+	240 patch1e_0
+	241 patch1e_1
+	242 patch1e_2
+	243 patch1e_3
+	244 patch1e_4
+	245 patch1e_5
+	246 patch1e_6
+	247 patch1e_7
+	248 patch1f_0
+	249 patch1f_1
+	250 patch1f_2
+	251 patch1f_3
+	252 patch1f_4
+	253 patch1f_5
+	254 patch1f_6
+	255 patch1f_7
+	  0 patch20_0
+	  1 patch20_1
+	  2 patch20_2
+	  3 patch20_3
+	  4 patch20_4
+	  5 patch20_5
+	  6 patch20_6
+	  7 patch20_7
+	  8 patch21_0
+	  9 patch21_1
+	 10 patch21_2
+	 11 patch21_3
+	 12 patch21_4
+	 13 patch21_5
+	 14 patch21_6
+	 15 patch21_7
+	 16 patch22_0
+	 17 patch22_1
+	 18 patch22_2
+	 19 patch22_3
+	 20 patch22_4
+	 21 patch22_5
+	 22 patch22_6
+	 23 patch22_7
+	 24 patch23_0
+	 25 patch23_1
+	 26 patch23_2
+	 27 patch23_3
+	 28 patch23_4
+	 29 patch23_5
+	 30 patch23_6
+	 31 patch23_7
+	 32 patch24_0
+	 33 patch24_1
+	 34 patch24_2
+	 35 patch24_3
+	 36 patch24_4
+	 37 patch24_5
+	 38 patch24_6
+	 39 patch24_7
+	 40 patch25_0
+	 41 patch25_1
+	 42 patch25_2
+	 43 patch25_3
+	 44 patch25_4
+	 45 patch25_5
+	 46 patch25_6
+	 47 patch25_7
+	 48 patch26_0
+	 49 patch26_1
+	 50 patch26_2
+	 51 patch26_3
+	 52 patch26_4
+	 53 patch26_5
+	 54 patch26_6
+	 55 patch26_7
+	 56 patch27_0
+	 57 patch27_1
+	 58 patch27_2
+	 59 patch27_3
+	 60 patch27_4
+	 61 patch27_5
+	 62 patch27_6
+	 63 patch27_7
+	 64 patch28_0
+	 65 patch28_1
+	 66 patch28_2
+	 67 patch28_3
+	 68 patch28_4
+	 69 patch28_5
+	 70 patch28_6
+	 71 patch28_7
+	 72 patch29_0
+	 73 patch29_1
+	 74 patch29_2
+	 75 patch29_3
+	 76 patch29_4
+	 77 patch29_5
+	 78 patch29_6
+	 79 patch29_7
+	 80 patch2a_0
+	 81 patch2a_1
+	 82 patch2a_2
+	 83 patch2a_3
+	 84 patch2a_4
+	 85 patch2a_5
+	 86 patch2a_6
+	 87 patch2a_7
+	 88 patch2b_0
+	 89 patch2b_1
+	 90 patch2b_2
+	 91 patch2b_3
+	 92 patch2b_4
+	 93 patch2b_5
+	 94 patch2b_6
+	 95 patch2b_7
+	 96 patch2c_0
+	 97 patch2c_1
+	 98 patch2c_2
+	 99 patch2c_3
+	100 patch2c_4
+	101 patch2c_5
+	102 patch2c_6
+	103 patch2c_7
+	104 patch2d_0
+	105 patch2d_1
+	106 patch2d_2
+	107 patch2d_3
+	108 patch2d_4
+	109 patch2d_5
+	110 patch2d_6
+	111 patch2d_7
+	112 patch2e_0
+	113 patch2e_1
+	114 patch2e_2
+	115 patch2e_3
+	116 patch2e_4
+	117 patch2e_5
+	118 patch2e_6
+	119 patch2e_7
+	120 patch2f_0
+	121 patch2f_1
+	122 patch2f_2
+	123 patch2f_3
+	124 patch2f_4
+	125 patch2f_5
+	126 patch2f_6
+	127 patch2f_7
+	128 patch30_0
+	129 patch30_1
+	130 patch30_2
+	131 patch30_3
+	132 patch30_4
+	133 patch30_5
+	134 patch30_6
+	135 patch30_7
+	136 patch31_0
+	137 patch31_1
+	138 patch31_2
+	139 patch31_3
+	140 patch31_4
+	141 patch31_5
+	142 patch31_6
+	143 patch31_7
+	144 patch32_0
+	145 patch32_1
+	146 patch32_2
+	147 patch32_3
+	148 patch32_4
+	149 patch32_5
+	150 patch32_6
+	151 patch32_7
+	152 patch33_0
+	153 patch33_1
+	154 patch33_2
+	155 patch33_3
+	156 patch33_4
+	157 patch33_5
+	158 patch33_6
+	159 patch33_7
+	160 patch34_0
+	161 patch34_1
+	162 patch34_2
+	163 patch34_3
+	164 patch34_4
+	165 patch34_5
+	166 patch34_6
+	167 patch34_7
+	168 patch35_0
+	169 patch35_1
+	170 patch35_2
+	171 patch35_3
+	172 patch35_4
+	173 patch35_5
+	174 patch35_6
+	175 patch35_7
+	176 patch36_0
+	177 patch36_1
+	178 patch36_2
+	179 patch36_3
+	180 patch36_4
+	181 patch36_5
+	182 patch36_6
+	183 patch36_7
+	184 patch37_0
+	185 patch37_1
+	186 patch37_2
+	187 patch37_3
+	188 patch37_4
+	189 patch37_5
+	190 patch37_6
+	191 patch37_7
+	192 patch38_0
+	193 patch38_1
+	194 patch38_2
+	195 patch38_3
+	196 patch38_4
+	197 patch38_5
+	198 patch38_6
+	199 patch38_7
+	200 patch39_0
+	201 patch39_1
+	202 patch39_2
+	203 patch39_3
+	204 patch39_4
+	205 patch39_5
+	206 patch39_6
+	207 patch39_7
+	208 patch3a_0
+	209 patch3a_1
+	210 patch3a_2
+	211 patch3a_3
+	212 patch3a_4
+	213 patch3a_5
+	214 patch3a_6
+	215 patch3a_7
+	216 patch3b_0
+	217 patch3b_1
+	218 patch3b_2
+	219 patch3b_3
+	220 patch3b_4
+	221 patch3b_5
+	222 patch3b_6
+	223 patch3b_7
+	224 patch3c_0
+	225 patch3c_1
+	226 patch3c_2
+	227 patch3c_3
+	228 patch3c_4
+	229 patch3c_5
+	230 patch3c_6
+	231 patch3c_7
+	232 patch3d_0
+	233 patch3d_1
+	234 patch3d_2
+	235 patch3d_3
+	236 patch3d_4
+	237 patch3d_5
+	238 patch3d_6
+	239 patch3d_7
+	240 patch3e_0
+	241 patch3e_1
+	242 patch3e_2
+	243 patch3e_3
+	244 patch3e_4
+	245 patch3e_5
+	246 patch3e_6
+	247 patch3e_7
+	248 patch3f_0
+	249 patch3f_1
+	250 patch3f_2
+	251 patch3f_3
+	252 patch3f_4
+	253 patch3f_5
+	254 patch3f_6
+	255 patch3f_7
+
+)
+(
+	0x8000 core_chipid
+	0x8003 core_kick
+	0x8004 core_write_wdt
+	0x8005 core_lpm_wr
+	0x8006 core_misc_ctrl
+	0x8007 core_otp_rdata
+	0x800a core_ccm_ctrl
+	0x800b core_write_wdt2
+	0x8010 core_reset
+	0x8011 core_encrypt
+	0x8012 core_lpm_wr2
+	0x8022 core_ucode_hi
+	0x8023 core_ucode_ctrl
+	0x8024 core_ucode_low
+	0x8025 core_ucode_data
+
+	0x8040 core_halfslot
+	0x8042 core_clksel
+	0x8043 core_uart_clksel
+	0x8043 core_config
+	0x8044 core_xtal_stable_time
+	0x8045 core_otp_addr
+	0x8046 core_bist_ctrl
+	0x8047 core_otp_ctrl
+	0x8048 core_ac_ctrl
+	0x804a core_ac_saddr
+	0x804c core_lpm_reg
+	0x804f core_lpm_isogate
+	0x8050 core_clkoff
+	0x8052 core_uart_baud
+	0x8053 core_sum_en
+	0x8054 core_uart_rsaddr
+	0x8056 core_uart_readdr
+	0x8058 core_uart_rrptr
+	0x805a core_uart_tsaddr
+	0x805c core_uart_teaddr
+	0x805e core_uart_twptr
+	0x8060 core_uart_ctrl
+	0x8061 core_uartb_ctrl
+	0x8062 core_uartb_baud
+	0x8064 core_uartb_rsaddr
+	0x8066 core_uartb_readdr
+	0x8068 core_uartb_rrptr
+	0x806a core_uartb_tsaddr
+	0x806c core_uartb_teaddr
+	0x806e core_uartb_twptr
+	0x8070 core_gpio_conf
+	0x8084 core_pwm_en
+	0x8085 core_aes_en
+	0x8086 core_spid_ctrl
+	0x8087 core_spid_delay
+	0x8088 core_spid_txlen
+	0x808a core_spid_txaddr
+	0x808c core_spid_rxaddr
+	0x808e core_spid_rxlen
+	0x8090 core_iicd_ctrl
+	0x8091 core_iicd_scl_low
+	0x8092 core_iicd_scl_high
+	0x8093 core_iicd_start_setup
+	0x8094 core_iicd_start_hold
+	0x8095 core_iicd_stop_setup
+	0x8096 core_iicd_data_setup
+	0x8097 core_iicd_data_hold
+	0x8098 core_iicd_txlen
+	0x809a core_iicd_txaddr
+	0x809c core_iicd_rxaddr
+	0x809e core_iicd_rxlen
+	0x80a0 core_pwm_pcnt0
+	0x80a2 core_pwm_ncnt0
+	0x80a4 core_pwm_pcnt1
+	0x80a6 core_pwm_ncnt1
+	0x80a8 core_pwm_pcnt2
+	0x80aa core_pwm_ncnt2
+	0x80ac core_pwm_pcnt3
+	0x80ae core_pwm_ncnt3
+	0x80b0 core_pwm_pcnt4
+	0x80b2 core_pwm_ncnt4
+	0x80b4 core_pwm_pcnt5
+	0x80b6 core_pwm_ncnt5
+	0x80b8 core_pwm_pcnt6
+	0x80ba core_pwm_ncnt6
+	0x80bc core_pwm_pcnt7
+	0x80be core_pwm_ncnt7
+	0x80c0 core_spid2_ctrl
+	0x80c1 core_spid2_delay
+	0x80c2 core_spid2_txlen
+	0x80c4 core_spid2_txaddr
+	0x80c6 core_spid2_rxaddr
+	0x80c8 core_spid2_rxlen
+	0x80ca core_nec_start_addr
+	0x80cc core_nec_end_addr
+	0x80ce core_nec_rptr
+	0x80d0 core_nec_control
+	0x80d1 core_ccm_input_playload_addr
+	0x80d3 core_ccm_output_playload_addr
+	0x80d5 core_ccm_aad0
+	0x80d6 core_ccm_aad1
+	0x80d7 core_ccm_aad2
+	0x80d8 core_pwm_init
+	0x80d9 core_ac_buf_len
+	0x80da core_ccm_inptr
+	0x80dc core_sum_ctrl
+	0x80dc core_otp_din
+	0x80dd core_pwm_sync
+   	0x80df core_otpd_addr
+   	0x80e1 core_otpd_len
+   	0x80e2 core_otpd_ctrl
+   	0x80e4 core_pwm_autoload
+   	0x80e5 core_gpio_conf1
+   	0x80e8 core_keybuf_saddr
+	0x8108 core_misc_status
+	0x8109 core_qdec_cntx
+	0x810a core_watchdog_cnt
+	0x810b core_uart_status
+	0x810c core_uart_rbaud
+	0x810e core_uart_txitems
+	0x8110 core_uart_trptr
+	0x8112 core_uart_rxitems
+	0x8114 core_uart_rdptr
+	0x8116 core_uart_rwptr
+	0x8118 core_debug_baud
+	0x811a core_ccm_outptr
+	0x811c core_gpio_in
+	0x811d core_gpio_in1
+	0x8120 core_ucode_flag
+	0x8121 core_peripheral_lock
+	0x8122 core_nec_wptr
+	0x8124 core_current_efuse_addr
+	0x8124 core_current_otp_addr
+	0x8126 core_spid2_remain
+	0x8128 core_spid_remain
+	0x812a core_iicd_remain
+	0x812c core_dma_status
+	0x812d core_perf_status
+	0x812e core_adc_in
+	0x8130 core_nec_rxitem
+	0x8134 core_lpm_ctrl2
+	0x8138 core_lpm_ctrl
+	0x813c core_lpm_xtalcnt
+	0x813d core_lpm_buckcnt
+	0x813e core_lpm_ldocnt
+	0x813f core_lpm_latch
+	0x8140 core_gpio_wakeup_low
+	0x8144 core_gpio_wakeup_high
+	0x8148 core_aes_decode_key_init
+	0x8149 core_clk_counter
+	0x8150 core_adc_sum
+	0x8152 core_uartb_status
+	0x8152 core_uartb_rbaud
+	0x8154 core_uartb_txitems
+	0x8156 core_uartb_trptr
+	0x8158 core_uartb_rxitems
+	0x815a core_uartb_rdptr
+	0x815c core_uartb_rwptr
+	0x815e core_mpu_s0_saddr
+	0x8160 core_mpu_s0_eaddr
+	0x8162 core_mpu_s1_saddr
+	0x8164 core_mpu_s1_eaddr
+
+	0x8203 core_ice_ctrl
+	0x8204 core_ice_status
+	0x8205 core_ice_break0
+	0x8207 core_ice_break1
+  
+	0x8280 core_docd_ctrl
+	0x8288 core_docd_paddr
+	0x828a core_docd_pdata
+
+	0x8900 modem_en
+	0x8938 mod_value_scale1
+	0x8960 core_rf_rx_agc_ctrl
+	0x8961 core_rf_rx_gain_fix
+	0x8968 core_agc_wb_sat_th
+	0x8969 core_agc_nb_sat_th
+	0x89a0 modem_rssi
+	0x89a1 modem_wb_pow
+	0x89a2 modem_nb_pow
+	0x89a3 modem_gain
+	0x89a4 modem_status
+
+	0x89f0 fpga_rf_gain
+	0x89f1 fpga_rf_gain_ctrl
+	0x89f2 fpga_uart_ctrl
+	0x89f3 fpga_uart_wdata
+	0x89f4 fpga_uart_rdata
+	0x89f5 fpga_uart_status
+
+	0x8a00 core_clkpll_ctrl0              
+	0x8a01 core_clkpll_ctrl1              
+	0x8a02 core_clkpll_ctrl2              
+	0x8a03 core_clkpll_cfg0               
+	0x8a04 core_clkpll_cfg1               
+	0x8a05 core_clkpll_cfg2               
+	0x8a06 core_clkpll_cfg3               
+	0x8a07 core_clkpll_cfg4               
+	0x8a08 core_clkpll_cfg5               
+	0x8a09 core_clkpll_cfg6               
+	0x8a0a core_rf_ldo_en0                
+	0x8a0b core_rf_ldo_en1                
+	0x8a0c core_rf_ldo_cfg0               
+	0x8a0d core_rf_ldo_cfg1               
+	0x8a0e core_rf_ldo_cfg2               
+	0x8a0f core_rf_ldo_cfg3               
+	0x8a10 core_rf_ldo_cfg4               
+	0x8a11 core_rf_ldo_cfg5               
+	0x8a12 core_rf_ldo_cfg6               
+	0x8a13 core_rf_ldo_cfg7               
+	0x8a14 core_rf_ldo_cfg8               
+	0x8a15 core_rf_ldo_cfg9               
+	0x8a16 core_syn_en                    
+	0x8a17 core_rx_en0                    
+	0x8a18 core_rx_en1                    
+	0x8a19 core_tx_en0                    
+	0x8a1a core_tx_en1                    
+	0x8a1b core_force_ctrl                
+	0x8a1c core_rx_lna_gc_gc0             
+	0x8a1d core_rx_lna_gc_gc1             
+	0x8a1e core_rx_lna_gc_gc2             
+	0x8a1f core_rx_lna_gc_gc3             
+	0x8a20 core_rx_lna_gc_gc4             
+	0x8a21 core_rx_lna_gc_gc5             
+	0x8a22 core_rx_lna_gc_gc6             
+	0x8a23 core_rx_lna_gc_gc7             
+	0x8a24 core_rx_lna_gc_gc8             
+	0x8a25 core_rx_lna_hg_isel_gc6        
+	0x8a26 core_rx_lna_hg_isel_gc7        
+	0x8a27 core_rx_lna_hg_isel_gc8        
+	0x8a28 core_rx_lna_lg_isel_gc0        
+	0x8a29 core_rx_lna_lg_isel_gc1        
+	0x8a2a core_rx_lna_lg_isel_gc2        
+	0x8a2b core_rx_lna_lg_isel_gc3        
+	0x8a2c core_rx_lna_lg_isel_gc4        
+	0x8a2d core_rx_lna_lg_isel_gc5        
+	0x8a2e core_rx_bq_gc_gc0              
+	0x8a2f core_rx_bq_gc_gc1              
+	0x8a30 core_rx_bq_gc_gc2              
+	0x8a31 core_rx_bq_gc_gc3              
+	0x8a32 core_rx_bq_gc_gc4              
+	0x8a33 core_rx_bq_gc_gc5              
+	0x8a34 core_rx_bq_gc_gc6              
+	0x8a35 core_rx_bq_gc_gc7              
+	0x8a36 core_rx_bq_gc_gc8              
+	0x8a37 core_rx_gain_force             
+	0x8a38 core_rx_lna_isel_force         
+	0x8a39 core_tx_pwr_ctrl0              
+	0x8a3a core_tx_pwr_ctrl1              
+	0x8a3b core_tx_pwr_ctrl2              
+	0x8a3c core_tx_pwr_ctrl3              
+	0x8a3d core_syn_top_ctrl              
+	0x8a3e core_syn_mmd_cp_ctrl           
+	0x8a3f core_syn_divr_int              
+	0x8a40 core_syn_divr_frac2            
+	0x8a41 core_syn_divr_frac1            
+	0x8a42 core_syn_divr_frac0            
+	0x8a43 core_syn_cal_ctrl              
+	0x8a44 core_rx_tiai_dcoc_gc0          
+	0x8a45 core_rx_tiaq_dcoc_gc0          
+	0x8a46 core_rx_tiai_dcoc_gc1          
+	0x8a47 core_rx_tiaq_dcoc_gc1          
+	0x8a48 core_rx_tiai_dcoc_gc2          
+	0x8a49 core_rx_tiaq_dcoc_gc2          
+	0x8a4a core_rx_tiai_dcoc_gc3          
+	0x8a4b core_rx_tiaq_dcoc_gc3          
+	0x8a4c core_rx_tiai_dcoc_gc4          
+	0x8a4d core_rx_tiaq_dcoc_gc4          
+	0x8a4e core_rx_tiai_dcoc_gc5          
+	0x8a4f core_rx_tiaq_dcoc_gc5          
+	0x8a50 core_rx_tiai_dcoc_gc6          
+	0x8a51 core_rx_tiaq_dcoc_gc6          
+	0x8a52 core_rx_tiai_dcoc_gc7          
+	0x8a53 core_rx_tiaq_dcoc_gc7          
+	0x8a54 core_rx_tiai_dcoc_gc8          
+	0x8a55 core_rx_tiaq_dcoc_gc8          
+	0x8a56 core_rx_bq_daci_gc0            
+	0x8a57 core_rx_bq_dacq_gc0            
+	0x8a58 core_rx_bq_daci_gc1            
+	0x8a59 core_rx_bq_dacq_gc1            
+	0x8a5a core_rx_bq_daci_gc2            
+	0x8a5b core_rx_bq_dacq_gc2            
+	0x8a5c core_rx_bq_daci_gc3            
+	0x8a5d core_rx_bq_dacq_gc3            
+	0x8a5e core_rx_bq_daci_gc4            
+	0x8a5f core_rx_bq_dacq_gc4            
+	0x8a60 core_rx_bq_daci_gc5            
+	0x8a61 core_rx_bq_dacq_gc5            
+	0x8a62 core_rx_bq_daci_gc6            
+	0x8a63 core_rx_bq_dacq_gc6            
+	0x8a64 core_rx_bq_daci_gc7            
+	0x8a65 core_rx_bq_dacq_gc7            
+	0x8a66 core_rx_bq_daci_gc8            
+	0x8a67 core_rx_bq_dacq_gc8            
+	0x8a68 core_rx_tiai_dcoc_force        
+	0x8a69 core_rx_tiaq_dcoc_force        
+	0x8a6a core_rx_bq_daci_force          
+	0x8a6b core_rx_bq_dacq_force          
+	0x8a6c core_rx_bq_bw_cal              
+	0x8a6d core_rx_bq_cfg0                
+	0x8a6e core_rx_bq_cfg1                
+	0x8a6f core_rx_bq_cfg2                
+	0x8a70 core_rx_bq_cfg3                
+	0x8a71 core_rx_bq_cfg4                
+	0x8a72 core_rx_lna_cfg0               
+	0x8a73 core_rx_lna_cfg1               
+	0x8a74 core_rx_lna_cfg2               
+	0x8a75 core_rx_lna_cfg3               
+	0x8a76 core_rx_mixer_cfg0             
+	0x8a77 core_rx_mixer_cfg1             
+	0x8a78 core_rx_mixer_cfg2             
+	0x8a79 core_rx_adc_clk_cfg            
+	0x8a7a core_rx_iqadc_cfg              
+	0x8a7b core_rx_rssiadc_cfg            
+	0x8a7c core_syn_state0                
+	0x8a7d core_syn_state1                
+	0x8a7e core_syn_bias_cfg              
+	0x8a7f core_syn_cdb_cfg0              
+	0x8a80 core_syn_cdb_cfg1              
+	0x8a81 core_syn_cdb_cfg2              
+	0x8a82 core_syn_cdb_cfg3              
+	0x8a83 core_syn_pfd_lkd_cfg           
+	0x8a84 core_syn_cp_lpf_cfg            
+	0x8a85 core_syn_loopdiv_dsm_cfg       
+	0x8a86 core_syn_afc_cfg0              
+	0x8a87 core_syn_afc_cfg1              
+	0x8a88 core_syn_afc_cfg2              
+	0x8a89 core_syn_afc_cfg3              
+	0x8a8a core_syn_aac_cfg0              
+	0x8a8b core_syn_aac_cfg1              
+	0x8a8c core_logen_process_cal0        
+	0x8a8d core_logen_process_cal1        
+	0x8a8e core_logen_process_cal2        
+	0x8a8f core_logen_process_cal3        
+	0x8a90 core_logen_process_cal4        
+	0x8a91 core_logen_process_cal5        
+	0x8a92 core_logen_process_cal6        
+	0x8a93 core_logen_process_cal7        
+	0x8a94 core_logen_process_cal8        
+	0x8a95 core_logen_process_ca9         
+	0x8a96 core_logen_process_ca10        
+	0x8a97 core_gpadc_ctrl                
+	0x8a98 core_tx_abb_cfg                
+	0x8a99 core_tx_mixer_cfg0             
+	0x8a9a core_tx_mixer_cfg1             
+	0x8a9b core_tx_mixer_cfg2             
+	0x8a9c core_tx_pa_cfg                 
+	0x8a9d core_syn_tst_ctrl              
+	0x8a9e core_ana_test_control0         
+	0x8a9f core_ana_test_control1         
+
+
+	0x8c00 core_usb_config
+	0x8c01 core_usb_int_mask
+	0x8c02 core_usb_addr
+	0x8c03 core_usb_rx_saddr
+	0x8c05 core_usb_rx_eaddr
+	0x8c07 core_usb_rxptr
+	0x8c09 core_usb_tx_saddr0
+	0x8c0b core_usb_tx_saddr1
+	0x8c0d core_usb_tx_saddr2
+	0x8c0f core_usb_tx_saddr3
+	0x8c11 core_usb_hmode
+	0x8c18 core_usb_trig
+	0x8c19 core_usb_stall
+	0x8c1a core_usb_clear		//7bit reset   
+	0x8c20 core_usb_rx_wptr
+	0x8c22 core_usb_stall_status
+	0x8c23 core_usb_status
+	0x8c24 core_usb_txbusy
+	0x8c25 core_usb_sof_cntl
+	0x8c26 core_usb_sof_cnth
+	
+)
+
+
+(
+4 rx_freq_offset
+2 tx_freq_offset
+)
+
+(
+
+  4 whiteoff_bit
+  6 clksel_rc
+  1 clksel_dpll_24M
+  5 clksel_dpll
+  4 clksel_xtal
+  5 adc_rccal
+  0 bpf_rccal
+  1 demod_clkoff
+)
+
+(
+  2 reload_code
+  3 gpio_latch
+  4 enable_retmem
+  7 cold_wake
+  0xef isogate_mask
+  0xe0 cs_mask
+)
+
+
+// misc ctrl
+(
+  0x01 spid2_start
+  0x02 spid_start
+  0x04 iicd_start
+  0x08 lock_otp
+  0x10 x_sethi
+  0x20 y_sethi
+  0x40 z_sethi
+  0x80 ccnt_start
+)
+// dma status bit
+(
+  0 otpd_crcok
+  1 otpd_done
+  2 spid_crcok
+  3 spid_done
+  4 iicd_crcok
+  5 iicd_done
+  6 iicd_ack
+)
+
+//bit map of core_uart_status
+(
+1 UART_STATUS_TX_BUSY
+2 UART_STATUS_RX_FIFO_EMPTY
+3 UART_STATUS_RX_FIFO_FULL
+4 UARTB_STATUS_TX_BUSY
+5 UARTB_STATUS_RX_FIFO_EMPTY
+6 UARTB_STATUS_RX_FIFO_FULL
+)
+
+(//core_uart_clksel
+0 UART_CLOCK_SELECT_BIT
+0xFE UART_CLOCK_SELECT_CRYSTAL
+0x01 UART_CLOCK_SELECT_DPLL
+
+24000000 uart_clock_freq_24M
+48000000 uart_clock_freq_48M
+)
+
+
+(//bit map of core_uart_ctrl
+0 BIT_UART_CONTROL_ENABLE
+1 BIT_UART_CONTROL_PARITY
+2 BIT_UART_CONTROL_DATA_LENGTH
+3 BIT_UART_CONTROL_STOP_BIT_SIZE
+4 BIT_UART_CONTROL_FLOW_CONTROL
+5 BIT_UART_CONTROL_7816_SMART_CARD_PROTOCOL
+6 BIT_UART_CONTROL_HALF_DUPLEX_SINGLE_LINE_UART
+7 BIT_UART_CONTROL_RATE_BAUD_SETTING
+)
+(//FUN of core_uart_ctrl
+0x01 FUN_UART_CONTROL_ENABLE
+0x06 FUN_UART_CONTROL_PARITY_ODD
+0x04 FUN_UART_CONTROL_PARITY_EVEN
+0x08 FUN_UART_CONTROL_STOP_2BIT
+0x00 FUN_UART_CONTROL_STOP_1BIT
+0x10 FUN_UART_CONTROL_FLOW_CONTROL_ENABLE
+0x20 FUN_UART_CONTROL_7816_SMART_CARD_PROTOCOL
+0x40 FUN_UART_CONTROL_HALF_DUPLEX_SINGLE_LINE_UART
+0x80 FUN_UART_CONTROL_SETTING_RATE_BAUD
+)
+
+(//bit map of core_nec_control
+0x00 BIT_NEC_ENABLE
+0x01 BIT_NEC_CLK_DIVIDE_NUM
+)
+
+(//FUN  of core_nec_control
+0x01 FUN_NEC_ENABLE
+0x30 FUN_NEC_CLK_DIVIDE_24	//24M , 
+)
+
+0x8b uart_ctrl_default //BCSP
+0x81 uart_ctrl_h4 //H4
+0x81 uart_ctrl_normal
+0x91 uart_ctrl_5line
+0x81 uart_ctrl_57600
+2 uart_baud_len
+0x00 uartclk_crystal
+0x01 uartclk_dpll
+0x1a0 uart_baud_115200
+0xbb uart_baud_256000
+0x340 uart_baud_57600
+0x34 uart_baud_921600
+0x9c4 uart_baud_9600
+
+//core_clkoff
+(
+	0 CLOCK_OFF_AUTH_ROM
+	1 CLOCK_OFF_UC_ROM
+	2 CLOCK_OFF_DEBUG_UART
+	3 CLOCK_OFF_SCHED_RAM
+	4 CLOCK_OFF_TRANCE_FIFO
+	5 CLOCK_OFF_CORDIC
+	6 CLOCK_OFF_OTPD
+	7 CLOCK_OFF_I2C
+	8 CLICK_OFF_8051
+	9 CLOCK_OFF_KEYSCAN
+	0x0a CLOCK_OFF_USB
+	0x0b CLOCK_OFF_QDECODER
+	0x0c CLOCK_OFF_SPI
+	0x0d CLOCK_OFF_PWM
+	0x0e CLOCK_OFF_UARTB
+	0x0f CLOCK_OFF_UART
+)
+
+// gpio config types
+(
+  0 gpcfg_input
+  2 gpcfg_qspi_ncs
+  3 gpcfg_qspi_sck
+  4 gpcfg_qspi_io0
+  5 gpcfg_qspi_io1
+  6 gpcfg_qspi_io2
+  7 gpcfg_qspi_io3
+  8 gpcfg_uart_txd
+  9 gpcfg_uart_rxd
+  10 gpcfg_uart_rts
+  11 gpcfg_uart_cts
+  12 gpcfg_uartb_txd
+  13 gpcfg_uartb_rxd
+  14 gpcfg_uartb_rts
+  15 gpcfg_uartb_cts
+  16 gpcfg_pwm_out0
+  17 gpcfg_pwm_out1
+  18 gpcfg_pwm_out2
+  19 gpcfg_pwm_out3
+  20 gpcfg_pwm_out4
+  21 gpcfg_pwm_out5
+  22 gpcfg_pwm_out6
+  23 gpcfg_pwm_out7
+  24 gpcfg_nec_input
+  25 gpcfg_ac_input
+  31 gpcfg_spid_miso
+  32 gpcfg_spid_ncs
+  33 gpcfg_spid_sck
+  34 gpcfg_spid_mosi
+  35 gpcfg_spid_sdio
+  
+  39 gpcfg_spid2_miso
+  40 gpcfg_spid2_ncs
+  41 gpcfg_spid2_sck
+  42 gpcfg_spid2_mosi
+  43 gpcfg_spid2_sdio
+  44 gpcfg_iic_scl
+  45 gpcfg_iic_sda
+  62 gpcfg_output_low
+  63 gpcfg_output_high
+  
+  0x00 gpcfg_high_impedance
+  0x40 gpcfg_pullup
+  0x80 gpcfg_pulldown
+  0xc0 gpcfg_no_ie
+)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+(
+0 CREDIT_DISABLE
+1 CREDIT_ENABLE
+)
+
+
+
+  
+
+ 
+
+
+
+
+ 
+  (
+    0 RFCOMM_IDLE           
+    1 RFCOMM_W4_DLCI0_OPEN
+    2 RFCOMM_W4_DLCI0_CLOSE
+    3 RFCOMM_START_DLCI0    
+    4 RFCOMM_W4_DLCI_OPEN
+    5 RFCOMM_W4_DLCI_CLOSE
+    6 RFCOMM_DLCI_OPENED    
+   
+  )
+  
+
+  (
+    1000  RFCOMM_T1              
+    1000  RFCOMM_T2         
+    300   RFCOMM_T3_RINGON  
+  
+  )
+
+
+  (
+    0x3F RSP_RX_SABM        
+    0x3F INI_TX_SABM
+	
+    0x73 RSP_TX_UA          
+    0x73 UA_WFBIT_SET	    
+	
+    0xEF RSP_RX_UIH         
+
+    0xEF RSP_TX_UIH         
+     
+    0x1F RSP_TX_DM          
+    0x1F DM_WFBIT_SET       
+    0x0F DM_WFBIT_CLEAR     
+
+    0x53 RSP_RX_DISC        
+    0x53 INI_TX_DISC	    
+     
+    0xFF RSP_RX_UIH_WDATA   
+    
+    
+  )
+
+
+  (
+    0x83 PN_COMMAND           
+    0x81 PN_RESPONSOR         
+    
+    0xE3 MSC_COMMAND          
+    0xE1 MSC_RESPONSOR
+ 
+    0x13 NSC_COMMAND          
+    0x11 NSC_RESPONSOR        
+
+    0x23 TEST_COMMAND         
+    0x21 TEST_RESPONSOR 
+    
+    0x93 RPN_COMMAND          
+    0x91 RPN_RESPONSOR 
+    
+    0x53 RLS_COMMAND          
+    0x51 RLS_RESPONSOR 
+
+    0xA3 FCON_COMMAND         
+    0xA1 FCON_RESPONSOR 
+    
+    0x63 FCOFF_COMMAND        
+    0x61 FCOFF_RESPONSOR 
+    	
+    0x03 RLS_OVERRUN
+    0x05 RLS_PARITY_ERROR
+    0x09 RLS_FRAMING_ERROR
+  )
+
+
+  (
+    0x01 RFCOMM_CREDIT
+  )
+
+  (
+  	0x007f RFCOMM_MAX_FRAME_SIZE
+  )
+
+
+  (
+    0  LENGTH_ZERO
+    
+    6  LENGTH_OK
+    7  LENGTH_HOT
+    8  LENGTH_RING
+    9  LENGTH_ERROR
+    9  LENGTH_AGVOL_ONEBYTE
+    10 LENGTH_AGVOL_TWOBYTE
+    10 LENGTH_VOL_ONEBYTE
+    11 LENGTH_VOL_TWOBYTE
+    12 LENGTH_BRSF
+    13 LENGTH_PLUS_CIEV
+    15 LENGTH_INBANDRING
+    14 LENGTH_CIEV_CALL
+    17 LENGTH_CRING
+    20 LENGTH_BRSF_OK
+    24 LENGTH_CIND0
+    28 LENGTH_CIEV_TWO
+    32 LENGTH_CIND_OK
+    59 LENGTH_CIND_OK2
+    100 LENGTH_DISCARD
+  )
+  
+
+
+
+  
+
+  (
+    0 RFCOMM_TX_W4BUF_FLAG    
+    1 RFCOMM_CLOSE_LINK_FLAG
+  )
+  
+
+    
+
+  (
+    0 MSC_EA_BIT
+    1 MSC_FC_BIT
+    2 MSC_RTC_BIT
+    3 MSC_RTR_BIT
+    6 MSC_IC_BIT
+    7 MSC_DV_BIT
+  )
+
+
+  (
+    0x0C OVERRUN_ERROR
+    0x0A PARITY_ERROR
+    0x09 FRAMING_RERROR
+  )
+  
+
+  (
+    0x00 BITS2400
+    0x01 BITS4800
+    0x02 BITS7200
+    0x03 BITS9600
+    0x04 BITS19200
+    0x05 BITS38400
+    0x06 BITS57600
+    0x07 BITS115200
+    0x08 BITS230400
+  )
+  
+
+  (
+    0x00 DATABITS5
+    0x01 DATABITS6
+    0x02 DATABITS7
+    0x03 DATABITS8
+  )
+  
+
+  (
+    0    ONESTOP
+    1    ONEHALFSTOP
+  )
+  
+
+  (
+    0    ODDPARITY
+    1    EVENPARITY
+    2    MARKPARITY
+    3    SPACEPARITY
+    
+    7    PARITY_ENABLE_BIT
+  )
+
+
+  (
+     0   BIT_RATE_MASK_BIT
+     1   DATA_BITS_MASK_BIT
+     2   STOP_BITS_MASK_BIT
+     3   PARITY_MASK_BIT
+     4   PARITY_TYPE_MASK_BIT
+     5   XON_CHAR_MASK_BIT
+     6   XOFF_CHAR_MASK_BIT
+  )
+  
+
+  (
+     0   XON_XOFF_INPUT_MASK_BIT
+     1   XON_XOFF_OUTPUT_MASK_BIT
+     2	 RTR_INPUT_MASK_BIT
+     3   RTR_OUTPUT_MASK_BIT
+     4   RTC_INPUT_MASK_BIT
+     5   RTC_OUTPUT_MASK_BIT
+
+  )
+
+
+  (
+    0 SEND_MSC_CMD_REQ_FLAG
+    1 SEND_AT_CKPD_REQ_FLAG
+    2 SEND_RING_REQ_FLAG
+    3 SEND_SABM_CMD
+  )
+  
+
+  (
+    0 MSC_CDM_ALREADY_SEND_FLAG
+    1 CREDIT_FLOW_USED_FLAG
+    2 DONT_EMBEDDED_CREDIT_FLAG 
+    3 MSC_EXCHANGE_DONE_FLAG
+    4 FLOW_CONTROL_FCOFF_BIT            
+  )
+  
+
+  (
+    1 FLOW_CONTROL_FC_BIT		
+  
+  )
+
+  (
+    0 ADDR_EA_BIT
+    1 ADDR_CR_BIT
+    2 ADDR_D_BIT
+  )
+//should be same as descripted in SDP
+(
+    1 SPP_SLAVE_CHANNEL
+    7 OBEX_SERVER_CHANNEL
+    8 HF_SERVER_CHANNEL 
+    9 HS_SERVER_CHANNEL
+)
+
+(
+	0 USING_HF_PROFILE
+	1 USING_HS_PROFILE
+	2 USING_SPP_PROFILE
+)
+
+(
+	0x3f RFCOMM_FRAME_TYPE_SABM
+	0x73 RFCOMM_FRAME_TYPE_UA
+	0xEF RFCOMM_FRAME_TYPE_UIH
+	0xFF RFCOMM_FRAME_TYPE_UIH_CREDITS
+	0x53 RFCOMM_FRAME_TYPE_DISCONN
+)
+
+(
+	0x41 UIH_PARAM_NEG_CMD
+	0x40 UIH_PARAM_NEG_RES
+	0x49 UIH_PARAM_CMD_REMOVE_PORT
+	0x71 UIH_MODEM_STATUS_CMD
+	0x70 UIH_MODEM_STATUS_RES
+)
+
+
+(
+	0 RFCOMM_ADDRESS_EXT_LEN
+	1 RFCOMM_ADDRESS_CR
+	2 RFCOMM_ADDRESS_DERECTION
+
+
+)
+
+	(                                   
+	0 RFCOMM_CHANNEL_STATE_PN_CMD
+	1 RFCOMM_CHANNEL_STATE_PN_RES
+	2 RFCOMM_CHANNEL_STATE_SABM
+	3 RFCOMM_CHANNEL_STATE_UA
+	4 RFCOMM_CHANNEL_STATE_SND_MS_CMD
+	5 RFCOMM_CHANNEL_STATE_RCV_MS_CMD
+	6 RFCOMM_CHANNEL_STATE_SND_MS_RES
+	7 RFCOMM_CHANNEL_STATE_RCV_MS_RES
+	0xff RFCOMM_CHANNEL_SETUP_COMPLETE
+	) 
+
+	
+	(
+	1 MORE_PKT_MSC_CMD_HF
+	2 MORE_PKT_MSC_CMD_HS
+	3 MORE_PKT_MSC_CMD_SPP
+	4 MORE_PKT_MSC_CMD_OBEX
+	)
+
+	(
+	127 RFCOMM_MALLOC_SIZE
+	)
+(
+0 AGORHS_SERVICE
+1 GENAUDIO_SERVICE
+2 HANDSFREE_SERVICE
+)
+(
+0 ATTRIBUTEID_0000
+1 ATTRIBUTEID_0001
+2 ATTRIBUTEID_0004
+3 ATTRIBUTEID_0009
+4 ATTRIBUTEID_0100
+5 ATTRIBUTEID_0302
+6 ATTRIBUTEID_0006
+7 ATTRIBUTEID_0311
+)
+
+(
+0x01 SDP_ERROR_RES
+0x02 SDP_SEARCH_REQ
+0x03 SDP_SEARCH_RES
+0x04 SDP_ATTRIBUTE_REQ
+0x05 SDP_ATTRIBUTE_RES
+0x06 SDP_SEARCHATTRIB_REQ
+0x07 SDP_SEARCHATTRIB_RES
+)
+0x2600 sdp_max_amount
+250 SDP_MALLOC_SIZE
+0x6e sdp_tid_spp //any number
+
+(
+0x1f11 SDP_UUID_HS_AUDIO_GATEWAY
+)
+
+(
+0x08 SDP_ATTRIBUTE_INTENGER
+0X09 SDP_ATTRIBUTE_ID
+0x0a SDP_ATTRIBUTE_RANGE
+)
+
+(//mem_sdp_handle_list
+7 SDP_MAX_HANDLE_NUMBER
+)
+
+ 
+
+
+
+
+
+
+
+(
+  0x00   SP_FLAG_STANDBY
+  0x01   SP_FLAG_COMMIT
+  0x02   LE_SP_FLAG_COMMIT_256
+
+)
+
+
+(
+  0x00   SP_CALC_STANDBY
+  0x01   SP_CALC_PUBKEY
+  0x02   SP_CALC_DHKEY
+  0x03   SP_CALC_PUBKEY_256
+  0x04   SP_CALC_DHKEY_256
+)
+
+
+(
+  0x00   SP_STAT_NULL
+  0x01   SP_STAT_KEY_RECV
+  0x02   SP_STAT_KEY_GENERATE
+  0x03   SP_STAT_KEY_SEND
+  0x04   SP_STAT_COMMIT_CALC
+  0x05   SP_STAT_COMMIT_SEND
+  0x06   SP_STAT_RANDOM_RECV
+  0x07   SP_STAT_RANDOM_SEND
+  0x08   SP_STAT_CONFIRM_RECV
+  0x09   SP_STAT_CONFIRM_CHECK
+  0x0A   SP_STAT_CONFIRM_CALC
+  0x0B   SP_STAT_CONFIRM_SEND
+  0x0C   SP_STAT_LINK_KEY_CALC
+  0x0F   SP_STAT_DONE
+  0x10   SP_STAT_FEATURE_EXT_SEND
+  0x11   SP_STAT_GKEY_CALC
+  
+  0x12   SP_MASTER_STAT_START_SKIP
+  0x13   SP_MASTER_STAT_START_DONE
+  0x14   SP_STAT_COMMITMENT_COMPARE
+  0x15   SP_STATE_END
+)
+
+
+
+(
+  0x00   SP_KEY_INVALID
+  0x01   SP_KEY_VALID
+  0x03   SP_KEY_VALID_256
+
+)
+
+
+(
+  0x01  ENCAPSULATED_MAJOR_TYPE
+  0x02  ENCAPSULATED_MINOR_TYPE_P256
+  0x40  ENCAPSULATED_LEN_P256
+)
+
+(
+  0x01  ENCAPSULATED_MAJOR_TYPE_P192
+  0x01  ENCAPSULATED_MINOR_TYPE_P192
+  0x30  ENCAPSULATED_LEN_P192
+)
+
+
+(
+  0x00  SIMPLE_PAIRING_ENABLE
+  0x01  ENCRYPTION_PAUSE_ENABLE
+  0x02  EXTENDED_INQUIRY_RESPOSE_ENABLE
+  0x03  SNIFF_SUBRATING_ENABLE
+)
+
+
+(
+  0x00 DEFAULT_STATEMACHINE
+  0x01 LOCAL_STATEMACHINE
+)
+
+(
+ 0x00 DEFALT_PAIRING_AUTH
+ 0x01 PAIRING_AUTH
+)
+
+//mem_secure_connections_enable
+(
+0 SECURE_CONNECTIONS_LE_BIT
+1 SECURE_CONNECTIONS_BR_BIT
+)
+
+(
+1 SSP_MODE_SSP_PIN_FLAG
+2 SSP_MODE_PASSKEY_ENTRY_FLAG
+3 SSP_MODE_JUST_WORK_FLAG
+)
+
+(
+7 FLAG_MODE_SSP_PIN_REVICEVE_COMPARISON_BIT
+6 FLAG_MODE_SSP_PIN_RECIEVE_DHKEY_BIT
+0 FLAG_MODE_SSP_PIN_COMPARISON_RESULT_BIT
+)
+(
+1 FLAG_PAIRING_STATE_PAIRING
+0 FLAG_PAIRING_STATE_NOT_PAIRING
+)
+(//LMP_IO_CAP_REQ & LMP_IO_CAP_RES
+//IO capability
+0x00 IO_CAPABILITY_DISPLAY_ONLY
+0x01 IO_CAPABILITY_DISPLAY_YESNO
+0x02 IO_CAPABILITY_KEYBOARD_ONLY
+0x03 IO_CAPABILITY_NO_INPUT_NO_OUTPUT
+
+//oob data Present
+0x00 OOB_DATA_PRESENT_NOT_PRESENT
+0x01 OOB_DATA_PRESENT_P192_DATA
+0x02 OOB_DATA_PRESENT_P256_DATA
+0x03 OOB_DATA_PRESENT_P192_P256_DATA
+// authentication requirements
+0x00 AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_NO_BONDING
+0x01 AUTH_REQ_MITM_PROTECTION_REQUIRED_NO_BONDING
+0x02 AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_DEDICATED_BONDING
+0x03 AUTH_REQ_MITM_PROTECTION_REQUIRED_DEDICATED_BONDING
+0x04 AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_GENERAL_BONDING
+0x05 AUTH_REQ_MITM_PROTECTION_REQUIRED_GENERAL_BONDING
+)
+
+  
+
+
+
+
+
+
+
+	
+
+
+
+
+
+//mem_ui_state_map
+(
+0 UI_STATE_BT_CONNECTED
+1 UI_STATE_BT_SETUP_COMPLETE
+2 UI_STATE_BT_HID_CONN
+3 UI_STATE_BT_HID_HANDSHAKE
+4 UI_STATE_BT_SPP_CONN
+5 UI_STATE_BT_SNIFF
+6 UI_STATE_BT_DISCOVERY
+7 UI_STATE_BT_RECONNECT
+8 UI_STATE_BT_SLAVE_ROLE
+9 UI_STATE_BLE_CONNECTED
+10 UI_STATE_BLE_WRITE_RCV
+11 UI_STATE_BLE_ADV
+12 UI_STATE_BTN_DOWN
+)
+
+(
+1 UI_STATE_SPP_NL_AUTO_DISCOVER
+
+)
+
+ 
+   (
+    0 UI_HEADSET_DISCONNECT
+    1 UI_HEADSET_IDLE                   
+    2 UI_HEADSET_W4CONNECT
+    3 UI_HEADSET_RINGING
+    4 UI_HEADSET_CONNECTED
+    5 UI_HEADSET_PARING
+  )
+
+(
+  0 UI_BB_OFF
+  1 UI_BB_IDLE
+  2 UI_BB_DISCOVERY
+  3 UI_BB_CONNECTED_ACTIVE_NO_SCO
+  4 UI_BB_CONNECTED_ACTIVE_WITH_SCO
+  5 UI_BB_CONNECTED_ACTIVE_WAIT_SNIFF
+  6 UI_BB_CONNECTED_SNIFF
+  7 UI_BB_RECONNECT
+  8 UI_BB_CONNECTED_SNIFF_WITH_SCO
+)
+
+
+
+
+  
+
+  (
+    5 NO_IDLE_TURN_OFF
+    7 ANSWER_RING_FLAG               
+  )
+
+
+  (
+    0  UI_HS_PAIRING 
+    2  UI_REQ_CLOSE_RFCOMM
+    3  UI_LINK_LOST
+    4  UI_REQ_OPEN_SCO
+    6  UI_REQ_CLOSE_SCO
+  )
+  
+
+  (
+    0  ANSWER_RING_BIT
+    0  AG_SEND_RING_BIT
+    1  VOL_UP_BIT
+    2  VOL_DOWN_BIT
+    3  INI_CALL_BIT
+    4  DAIL_LAST_CALL
+    5  END_CALL_BIT
+    6  NOKIA_VOICE_ACTIVE 
+    7  REJECT_CALL_BIT
+  )
+  
+
+(
+  0 NO_RECONNECTION
+  1 RECONNECT_HID
+  2 RECONNECT_HF
+  3 RECONNECT_HS
+  4 RECONNECT_HID_HF
+  5 RECONNECT_HID_HS
+)
+
+(
+0 BT_CMD_STANDBY
+1 BT_CMD_START_DISCOVERY
+2 BT_CMD_STOP_DISCOVERY
+3 BT_CMD_RECONNECT
+4 BT_CMD_DISCONNECT
+5 BT_CMD_ENTER_SNIFF
+6 BT_CMD_EXIT_SNIFF
+7 BT_CMD_ENTER_SNIFF_SUBRATING
+8 BT_CMD_EXIT_SNIFF_SUBRATING
+9 BT_CMD_SNIFF_TEST
+10 BT_CMD_SET_PIN_CODE
+11 BT_CMD_START_INQUIRY
+12 BT_CMD_STOP_INQUIRY
+13 BT_CMD_START_ADV
+14 BT_CMD_STOP_ADV
+15 BT_CMD_START_DIRECT_ADV
+16 BT_CMD_STOP_DIRECT_ADV
+17 BT_CMD_LE_DISCONNECT
+18 BT_CMD_LE_UPDATE_CONN
+19 BT_CMD_LED_OFF
+20 BT_CMD_LED_ON
+21 BT_CMD_LED_BLINK
+22 BT_CMD_LE_START_CONN
+23 BT_CMD_LE_START_SCAN
+24 BT_CMD_LE_STOP_SCAN
+25 BT_CMD_ENTER_HIBERNATE
+27 BT_CMD_LE_SMP_SECURITY_REQUEST
+29 BT_CMD_ROLE_SWITCH
+30 BT_CMD_BB_RECONN_CANCEL
+31 BT_CMD_STORE_RECONN_INFO_LE
+32 BT_CMD_STORE_RECONN_INFO_BT
+33 BT_CMD_DHKEY_NOT_ACCEPT
+34 BT_CMD_START_24G
+35 BT_CMD_STOP_24G
+36 BT_CMD_PAIR_24G
+37 BT_CMD_STORE_RECONN_INFO
+)
+
+(
+0x00 BT_EVT_NULL
+0x01 BT_EVT_BB_CONNECTED
+0x02 BT_EVT_BB_DISCONNECTED
+0x03 BT_EVT_RECONN_STARTED
+0x04 BT_EVT_RECONN_FAILED
+0x05 BT_EVT_SETUP_COMPLETE
+0x06 BT_EVT_HID_CONNECTED
+0x07 BT_EVT_HID_DISCONNECTED
+0x08 BT_EVT_SPP_CONNECTED
+0x09 BT_EVT_SPP_DISCONNECTED
+0x0A BT_EVT_PINCODE_REQ
+0x0B BT_EVT_ENTER_SNIFF
+0x0C BT_EVT_EXIT_SNIFF
+0x0D BT_EVT_ENTER_SNIFF_SUB
+0x0E BT_EVT_EXIT_SNIFF_SUB
+0x0F BT_EVT_DISCOVERY_STOPED
+0x10 BT_EVT_BUTTON_LONG_PRESSED
+0x12 BT_EVT_HID_HANDSHAKE
+0X13 BT_EVT_RECONN_PAGE_TIMEOUT
+0x14 BT_EVT_LE_CONNECTED
+0X15 BT_EVT_LE_DISCONNECTED
+0x16 BT_EVT_ML2CAP_CONN_REFUSED
+0x17 BT_EVT_BUTTON_ENTER_HIBERNATE
+0x18 BT_EVT_LINKKEY_GENERATE
+0x19 BT_EVT_SWITCH_NOT_ACCEPT
+0x20 BT_EVT_SWITCH_ACCEPT
+0x21 BT_EVT_SNIFF_NOT_ACCEPT
+0x22 BT_EVT_SNIFF_ACCEPT
+0x23 BT_EVT_UNSNIFF_ACCEPT
+0x24 BT_EVT_UNSNIFF_NOT_ACCEPT
+0x25 BT_EVT_BUTTON_ADJUST_DPI
+0x26 BT_EVT_SEND_UNSNIFF_ACCEPT
+0x27 BT_EVT_VIRTUAL_CABLE_UNPLUG
+0x28 BT_EVT_LE_WRITE_REQUEST
+0x29 BT_EVT_LE_ENC_INFO
+0x2a BT_EVT_SWITCH_FAIL_MASTER
+0x2b BT_EVT_SWITCH_SUCCESS_MASTER
+0x2c BT_EVT_BUTTON_DOWN
+0x2d BT_EVT_BUTTON_UP
+0x2e BT_EVT_REMOTE_UNSNIFF
+0x30 BT_EVT_LE_PAIRING_FAIL
+0x31 BT_EVT_LE_PAIRING_SUCCESS
+0x32 BT_EVT_LE_START_ENC
+0X33 BT_EVT_LE_PAUSE_ENC
+0X34 BT_EVT_LE_TK_GENERATE
+0x35 BT_EVT_BT_GKEY_GENERATE
+0x36 BT_EVT_BT_GET_PASSKEY
+0x37 BT_EVT_BT_PAIRING_FAIL
+0x38 BT_EVT_BT_PAIRING_SUCCESS
+0x39 BT_EVT_24G_PAIRING_COMPLETE
+0x3a BT_EVT_24G_ATTEMPT_FAIL
+0x3b BT_EVT_LE_GKEY_GENERATE
+0x3c BT_EVT_24G_ATTEMPT_SUCCESS
+0x3d BT_EVT_STORE_NVRAM
+0x3e BT_EVT_LE_PAIRING_COMPLETE
+0x3F BT_EVT_LE_RECONNECT_COMPLETE
+0x40 BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP
+0x41 BT_EVT_LE_LTK_LOST
+0x42 BT_EVT_LE_UPDATE_PHY
+0x43 BT_EVT_LE_GET_PASSKEY
+0x44 BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED
+)
+//switch
+(
+0 OFF
+1 ON
+)
+
+(
+    0 MEM_UNLOCK
+    1 MEM_LOCK
+)
+
+(
+    0 UI_USER_DATA_FLAG
+    1 UI_WII_WAITING_SLEEP
+    2 UI_KEYBOARD_SNIFF_SKIP
+)
+
+(
+    0 MTYPE_HID_DEFAULT
+    1 MTYPE_HID_SSP
+    2 MTYPE_SPP
+)
+
+	(	
+	0x01 RECIEVE_SDP_CONN_RES
+	0x02 RECIEVE_SDP_CFG_REQ
+	0x03 RECIEVE_SDP_CFG_RES
+	0x04 RECIEVE_RFCOMM_CONN_RES
+	0x05 RECIEVE_RFCOMM_CFG_REQ
+	0x06 RECIEVE_RFCOMM_CFG_RES
+	0x07 RECIEVE_HID_CTRL_CONN_RES
+	0x08 RECIEVE_HID_CTRL_CFG_REQ
+	0x09 RECIEVE_HID_CTRL_CFG_RES
+	0x0A RECIEVE_HID_INT_CONN_RES
+	0x0B RECIEVE_HID_INT_CFG_REQ
+	0x0C RECIEVE_HID_INT_CFG_RES
+	0x0D RECIEVE_AVCTP_CONN_RES
+	0x0E RECIEVE_AVCTP_CFG_REQ
+	0x0F RECIEVE_AVCTP_CFG_RES
+	0x10 RECIEVE_AVDTP_SIGNAL_CONN_RES
+	0x11 RECIEVE_AVDTP_SIGNAL_CFG_REQ
+	0x12 RECIEVE_AVDTP_SIGNAL_CFG_RES
+	0x13 RECIEVE_AVDTP_MEDIA_CONN_RES
+	0x14 RECIEVE_AVDTP_MEDIA_CFG_REQ
+	0x15 RECIEVE_AVDTP_MEDIA_CFG_RES
+	0x16 RECIEVE_SS_REASULT_HS                  
+	0x17 RECIEVE_SS_REASULT_HF                  
+	0x18 RECIEVE_SS_REASULT_AVTARG		          
+	0x19 RECIEVE_SS_REASULT_OBEX		            
+	0x1A RECIEVE_DLCI0_UA
+	0x1B RECIEVE_HS_PARAM_NEG_RES
+	0x1C RECIEVE_HS_UA
+	0x1D RECIEVE_HS_MODEM_STATUS_RES
+	0x1E RECIEVE_HS_MODEm_STATUS_CMD
+	0x1F RECIEVE_HF_PARAM_NEG_RES   
+	0x20 RECIEVE_HF_UA              
+	0x21 RECIEVE_HF_MODEM_STATUS_RES
+	0x22 RECIEVE_HF_MODEm_STATUS_CMD 
+	0x23 RECIEVE_OBEX_PARAM_NEG_RES     
+	0x24 RECIEVE_OBEX_UA              
+	0x25 RECIEVE_OBEX_MODEM_STATUS_RES
+	0x26 RECIEVE_OBEX_MODEm_STATUS_CMD    
+	0x27 RECIEVE_SPP_PARAM_NEG_RES   
+	0x28 RECIEVE_SPP_UA              
+	0x29 RECIEVE_SPP_MODEM_STATUS_RES
+	0x2A RECIEVE_SPP_MODEm_STATUS_CMD
+	0x2b RECIEVE_SDP_DISCONN_RES
+	)
+
+
+
+	(
+	0 UPPERSM_RP_IDLE
+	1 UPPERSM_RP_SDP_CONN
+	2 UPPERSM_RP_SDP_CONN_WAIT
+	3 UPPERSM_RP_SDP_CFG
+	4 UPPERSM_RP_SDP_CFG_WAIT
+	5 UPPERSM_RP_SS_AVTARG
+	6 UPPERSM_RP_SS_AVTARG_WAIT
+	7 UPPERSM_RP_SS_OBEX
+	8 UPPERSM_RP_SS_OBEX_WAIT
+	9 UPPERSM_RP_SDP_DISCONN
+	10 UPPERSM_RP_SDP_DISCONN_WAIT
+	11 UPPERSM_RP_AVDTP_CONN_WAIT
+	12 UPPERSM_RP_AVCTP_CONN
+	13 UPPERSM_RP_AVCTP_CONN_WAIT
+	14 UPPERSM_RP_AVCTP_CFG
+	15 UPPERSM_RP_AVCTP_CFG_WAIT
+	16 UPPERSM_RP_OBEX_CMD_PN
+	17 UPPERSM_RP_OBEX_CMD_PN_WAIT
+	18 UPPERSM_RP_OBEX_SABM
+	19 UPPERSM_RP_OBEX_SABM_WAIT
+	20 UPPERSM_RP_OBEX_CMD_MS
+	21 UPPERSM_RP_OBEX_CMD_MS_WAIT
+	)
+	(		
+	0 UPPERSM_RECONN_IDLE		
+	1 UPPERSM_RECONN_SDP_CONN		
+	2 UPPERSM_RECONN_SDP_CONN_WAIT		
+	3 UPPERSM_RECONN_SDP_CFG		
+	4 UPPERSM_RECONN_SDP_CFG_WAIT		
+	5 UPPERSM_RECONN_SS_HS
+	6 UPPERSM_RECONN_SS_HS_WAIT
+	7 UPPERSM_RECONN_SS_HF
+	8 UPPERSM_RECONN_SS_HF_WAIT
+	9 UPPERSM_RECONN_SS_AVTARG		
+	10 UPPERSM_RECONN_SS_AVTARG_WAIT		    
+	11 UPPERSM_RECONN_SS_OBEX		            
+	12 UPPERSM_RECONN_SS_OBEX_WAIT		      
+	13 UPPERSM_RECONN_SDP_DISCONN		        
+	14 UPPERSM_RECONN_SDP_DISCONN_WAIT      
+	15 UPPERSM_RECONN_HID_CTRL_CONN		      
+	16 UPPERSM_RECONN_HID_CTRL_CONN_WAIT		
+	17 UPPERSM_RECONN_HID_CTRL_CFG		      
+	18 UPPERSM_RECONN_HID_CTRL_CFG_WAIT     
+	19 UPPERSM_RECONN_HID_INT_CONN		      
+	20 UPPERSM_RECONN_HID_INT_CONN_WAIT		  
+	21 UPPERSM_RECONN_HID_INT_CFG		        
+	22 UPPERSM_RECONN_HID_INT_CFG_WAIT      
+	23 UPPERSM_RECONN_RFCOMM_CONN		        
+	24 UPPERSM_RECONN_RFCOMM_CONN_WAIT		  
+	25 UPPERSM_RECONN_RFCOMM_CFG		        
+	26 UPPERSM_RECONN_RFCOMM_CFG_WAIT       
+	27 UPPERSM_RECONN_RFCOMM_SABM		        
+	28 UPPERSM_RECONN_RFCOMM_SABM_WAIT		  
+	29 UPPERSM_RECONN_SPP_CMD_PN		        
+	30 UPPERSM_RECONN_SPP_CMD_PN_WAIT		    
+	31 UPPERSM_RECONN_SPP_SABM		          
+	32 UPPERSM_RECONN_SPP_SABM_WAIT		      
+	33 UPPERSM_RECONN_SPP_CMD_MS		        
+	34 UPPERSM_RECONN_SPP_CMD_MS_WAIT       
+	35 UPPERSM_RECONN_HF_CMD_PN		          
+	36 UPPERSM_RECONN_HF_CMD_PN_WAIT		    
+	37 UPPERSM_RECONN_HF_SABM		            
+	38 UPPERSM_RECONN_HF_SABM_WAIT		      
+	39 UPPERSM_RECONN_HF_CMD_MS		          
+	40 UPPERSM_RECONN_HF_CMD_MS_WAIT        
+	41 UPPERSM_RECONN_AVDTPs_CONN		        
+	42 UPPERSM_RECONN_AVDTPs_CONN_WAIT		  
+	43 UPPERSM_RECONN_AVDTPs_CFG		        
+	44 UPPERSM_RECONN_AVDTPs_CFG_WAIT       
+	45 UPPERSM_RECONN_AVDTPm_CONN		        
+	46 UPPERSM_RECONN_AVDTPm_CONN_WAIT		  
+	47 UPPERSM_RECONN_AVDTPm_CFG		        
+	48 UPPERSM_RECONN_AVDTPm_CFG_WAIT       
+	49 UPPERSM_RECONN_AVCTP_CONN		        
+	50 UPPERSM_RECONN_AVCTP_CONN_WAIT		    
+	51 UPPERSM_RECONN_AVCTP_CFG		          
+	52 UPPERSM_RECONN_AVCTP_CFG_WAIT		    
+	53 UPPERSM_RECONN_OBEX_CMD_PN		        
+	54 UPPERSM_RECONN_OBEX_CMD_PN_WAIT		  
+	55 UPPERSM_RECONN_OBEX_SABM		          
+	56 UPPERSM_RECONN_OBEX_SABM_WAIT		    
+	57 UPPERSM_RECONN_OBEX_CMD_MS		        
+	58 UPPERSM_RECONN_OBEX_CMD_MS_WAIT     
+	59 UPPERSM_RECONN_SS_SPP
+	60 UPPERSM_RECONN_SS_SPP_WAIT
+	)
+	(
+	0 support_HID
+	1 support_A2DP
+	2 support_AVRCP
+	3 support_HF
+	4 support_HS
+	5 support_PBAP
+	6 support_SPP
+	)
+	
+	(
+	0 UPPERSM_SS_HS
+	1 UPPERSM_SS_HF
+	2 UPPERSM_SS_AVTARG
+	3 UPPERSM_SS_OBEX
+	)
+
+	(
+	160 UI_HUNDRED_MILLISECOND_TIME
+	0XFF UI_BUTTON_GPIO_DISABLE
+	)
+	(
+	0x01 UI_BB_INCONNECT
+	0x10 UI_BB_DISCONNECT
+	)
+(
+0x00 UI_BUTTON_STATE_DOWN
+0x01 UI_BUTTON_STATE_UP
+)
+
+//mem_ipc_skip_continue_proc
+(
+	0 IPC_CONTINUE_PROCESS
+	1 IPC_SKIP_CONTINUE_PROCESS
+)
+
+
+(//led style struct 
+0 		LED_OFFSET_LED_TYPE
+1 		LED_OFFSET_BLINK_COUNT
+2		LED_OFFSET_LED_GPIO
+3		LED_OFFSET_ON_TIME
+5		LED_OFFSET_OFF_TIME
+7 		LED_OFFSET_CB_LEDON
+9		LED_OFFSET_CB_LEDOFF
+11		LED_OFFSET_LENGTH
+)
+
+(//LED state
+0 UI_LED_STATE_BLINK_STOP
+1 UI_LED_STATE_BLINK_START
+2 UI_LED_STATE_LIGHTING
+3 UI_LED_STATE_DARKING
+4 UI_LED_STATE_BLINK_LIGHTING
+5 UI_LED_STATE_BLINK_DARKING
+
+0xFF LED_INFINITE_FLASH_NUM
+
+)
+
+
+
+//class type
+(
+0x00 STANDARD_REQ
+0x01 CLASS_REQ
+0x02 MANUFACTURER_REQ
+)
+//Standard Request Codes
+(
+0x00 GET_STATUS                // Code for Get Status
+0x01 CLEAR_FEATURE             // Code for Clear Feature
+0x03 SET_FEATURE              // Code for Set Feature
+0x05 SET_ADDRESS              // Code for Set Address
+0x06 GET_DESCRIPTOR           // Code for Get Descriptor
+0x07 SET_DESCRIPTOR           // Code for Set Descriptor(not used)
+0x08 GET_CONFIGURATION        // Code for Get Configuration
+0x09 SET_CONFIGURATION        // Code for Set Configuration
+0x0A GET_INTERFACE            // Code for Get Interface
+0x0B SET_INTERFACE            // Code for Set Interface
+0x0C SYNCH_FRAME              // Code for Synch Frame(not used)
+)
+//Standard Descriptor Types
+(
+0x01 DSC_DEVICE               // Device Descriptor
+0x02 DSC_CONFIG               // Configuration Descriptor
+0x03 DSC_STRING               // String Descriptor
+0x04 DSC_INTERFACE            // Interface Descriptor
+0x05 DSC_ENDPOINT             // Endpoint Descriptor
+)
+//HID Descriptor Types
+(
+0x21 DSC_HID			      // HID Class Descriptor
+0x22 DSC_HID_REPORT			  // HID Report Descriptor
+)
+//Define bmRequestType bitmaps
+(
+0x80 IN_DEVICE                // Request made to device,
+                              // direction is IN
+0x00 OUT_DEVICE               // Request made to device,
+                              // direction is OUT
+0x81 IN_INTERFACE             // Request made to interface,
+                              // direction is IN
+0x01 OUT_INTERFACE            // Request made to interface,
+                              // direction is OUT
+0x82 IN_ENDPOINT              // Request made to endpoint,
+                              // direction is IN
+0x02 OUT_ENDPOINT             // Request made to endpoint,
+)
+//HID Request Codes
+(
+0x01 GET_REPORT 		       // Code for Get Report
+0x02 GET_IDLE				   // Code for Get Idle
+0x03 GET_PROTOCOL			   // Code for Get Protocol
+0x09 SET_REPORT				   // Code for Set Report
+0x0A SET_IDLE				   // Code for Set Idle
+0x0B SET_PROTOCOL			   // Code for Set Protocol
+0xF2 HID_REPORT_ID           
+64 EP0_PACKET_SIZE         
+6 EP1_PACKET_SIZE         
+16 HID_REPORT_SIZE         
+0x001B HID_REPORT_DESCRIPTOR_SIZE    
+)
+//math cordic
+(
+0 TYPE_SIN		
+1 TYPE_ATAN	
+2 TYPE_MULT	
+3 TYPE_DIV		
+4 TYPE_ASIN	
+5 TYPE_SQRT	
+6 TYPE_COS		
+7 TYPE_TAN		 
+)
+   
+(
+0 DFIFO0_IN_EMPTY
+1 DFIFO1_IN_EMPTY
+2 DFIFO2_IN_EMPTY
+3 DFIFO3_IN_EMPTY
+4 DFIFO0_OUT_EMPTY
+5 DFIFO1_OUT_EMPTY
+6 DFIFO2_OUT_EMPTY
+7 DFIFO3_OUT_EMPTY
+)
+
+(
+)
+
+(
+0 USB_STATUS_SETUP
+1 USB_STATUS_SUSPEND
+2 USB_STATUS_NAK
+3 USB_STATUS_RESET
+4 USB_STATUS_ACK
+5 USB_STATUS_RXREADY
+6 USB_STATUS_TXEMPTY
+6 USB_STATUS_RXEMPTY
+)
+
+(
+1 USB_GOT_REPORT_REQ
+2 USB_CONNECTED
+3 USB_SLEEP
+4 USB_RESUME
+5 USB_SETIDLE_1
+)
+
+(
+0x10 USB_EP1_KB
+0x20 USB_EP2_MS
+0x21 USB_EP2_MULTIKEY
+0x22 USB_EP2_SYSTEMKEY
+0x01 MAC_BOOT_MODE
+0x02 R_KEY
+0x03 LR_KEY
+)
+
+
+(
+0x01ba PC_GET_REPORT
+0x02ba PC_SET_REPORT
+0x0200 PC_SET_REPORT_bValue
+0x0000 PC_SET_REPORT_wIndex
+0x0001 PC_SET_REPORT_bLength
+0xba PC_REPORT_ID
+
+0x01 PC_GET_DATA
+0x00 PC_GET_NONDATA
+)
+
+(
+//--------------------------------------------------
+// Define device states
+0x00 DEV_ATTACHED	// Device is in Attached State
+0x01 DEV_POWERED	// Device is in Powered State
+0x02 DEV_DEFAULT		// Device is in Default State
+0x03 DEV_ADDRESS	// Device is in Addressed State
+0x04 DEV_CONFIGURED	// Device is in Configured State
+0x05 DEV_SUSPENDED	// Device is in Suspended State
+)
+
+(
+// Define wIndex bitmaps
+0x81 IN_EP1                    // Index values used by Set and Clear
+0x01 OUT_EP1                   // commands for Endpoint_Halt
+0x82 IN_EP2              
+0x02 OUT_EP2             
+0x83 IN_EP3              
+0x03 OUT_EP3             
+)
+
+(
+0 EP0_STALL
+1 EP1_IN_STALL
+2 EP1_OUT_STALL
+3 EP2_IN_STALL
+4 EP2_OUT_STALL
+5 EP3_IN_STALL
+6 EP3_OUT_STALL
+)
+
+(
+// Define wValue bitmaps for Standard Feature Selectors
+0x00 ENDPOINT_HALT             // Endpoint_Halt feature selector
+0x01 DEVICE_REMOTE_WAKEUP      // Remote wakeup feature(not used)
+0x00 BOOT_PROTOCOL
+0x01 REPORT_PROTOCOL
+0x01 USB_MAX_NUM_CFG
+)
+
+(
+0 TIMER_NAK
+640 TIMER_NAK_DELAY
+15 TIMER_WAKEUP
+5000 TIMER_WAKEUP_DELAY
+)
+
+
+
+
+(
+
+    0   UTIL_TIMER_0_USED
+    1   UTIL_TIMER_1_USED
+    2   UTIL_TIMER_2_USED
+    3   UTIL_TIMER_3_USED
+    4   UTIL_TIMER_4_USED
+    5   UTIL_TIMER_5_USED
+    6   UTIL_TIMER_6_USED
+    7   UTIL_TIMER_7_USED
+
+    0   UTIL_TIMER_8_USED
+    1   UTIL_TIMER_9_USED
+    2   UTIL_TIMER_10_USED
+    3   UTIL_TIMER_11_USED
+    4   UTIL_TIMER_12_USED
+    5   UTIL_TIMER_13_USED
+    6   UTIL_TIMER_14_USED
+    7   UTIL_TIMER_15_USED
+)
+
+
+(
+6 dlen_24g
+14 plen_24g
+90 blen_tx_24g
+106 blen_rx_24g
+42 blen_txack_24g
+58 blen_rxack_24g
+0xaaf08e acc_24g
+0x15c4 crc_data_3byte
+0xbb81 crc_data_6byte
+0x4160 crc_ack
+)
+
+//util fifo param
+(
+
+8 UTIL_FIFO_LEN
+-1 UTIL_FIFO_OFFSET
+)
+
+
+(
+	0xAA DEBUGLOG_HEAD
+	0x00 DEBUGLOG_TYPE
+	0x04 DEBUGLOG_LEN
+	0xBB DEBUGLOG_TAIL
+)
+
+(
+	0x1000 DEBUGLOG_DTYPE_CALLBACK
+	0x1001 DEBUGLOG_DTYPE_EVENT
+	0x1002 DEBUGLOG_DTYPE_CMD
+	0x1003 DEBUGLOG_DTYPE_STATUS
+	0x1004 DEBUGLOG_DTYPE_MISC
+	0x1005 DEBUGLOG_DTYPE_PARSE_LMP
+	0x1006 DEBUGLOG_DTYPE_SEND_LMP
+	0x1007 DEBUGLOG_DTYPE_CONN_SM
+	0x1008 DEBUGLOG_DTYPE_UPPER_SM
+)
+
+//DEBUGLOG_DTYPE_CALLBACK
+(
+	0x0000 CALLBACK_24G_DATA
+	0x0001 CALLBACK_LE_PROCESS
+	0x0002 CALLBACK_BT_PROCESS
+	0x0003 CALLBACK_BEFORE_LPM
+	0x0004 CALLBACK_BB_EVENT_PROCESS
+	0x0005 CALLBACK_IDLE_PROCESS
+	0x0006 CALLBACK_BEFORE_HIBERNATE
+	0x0007 CALLBACK_ATT_WRITE
+	0x0008 CALLBACK_EVENT_TIMER
+	0x0009 CALLBACK_SLAVE_LOOP
+	0x000a CALLBACK_SDP_PROCESS
+)
+
+//DEBUGLOG_DTYPE_EVENT
+//(
+
+//)
+
+//DEBUGLOG_DTYPE_CMD
+//(
+
+//)
+
+//DEBUGLOG_DTYPE_STATUS
+(
+	0x0000 STATUS_CODE_WAKE
+	0x0001 STATUS_LPM_WAKE
+	0x0002 STATUS_INQUIRY_SCAN
+	0x0003 STATUS_SEND_EIR
+	0x0004 STATUS_PAGE_SCAN
+	0x0005 STATUS_PAGE_SCAN_RECV_ID_PACK
+	0x0006 STATUS_PAGE_SCAN_WAIT_FHS
+	0x0007 STATUS_PAGE_SCAN_CONNECTED
+	0x0008 STATUS_START_DISCOVER
+	0x0009 STATUS_STOP_DISCOVER
+)
+//DEBUG_DTYPE_MISC
+(
+	0x0000 MISC_LE_RETRANSMIT
+	0x0001 MISC_LOST_MOUSEDATA
+	0x0002 MISC_TXPOWER_0
+	0x0003 MISC_TXPOWER_1
+	0x0004 MISC_TXPOWER_2
+	0x0005 MISC_BT_RETRANSMIT
+	0x0006 MISC_BT_UPPER_SM_ERR
+	0x0007 MISC_BT_CONN_SM_ERR
+)
+
+//mem_creat_mouse_flag
+(
+	0x55 CREAT_MOUSE_DATA_OK
+	0x00 CREAT_MOUSE_DATA_FAIL
+
+
+
+
+
+
+
+
+
+
+(
+  0x02 FHS_PACKET 
+  0x03 DM1_PACKET 
+  0x03 DM1_LMP_PACKET 
+  0x04 DH1_PACKET 
+  0x05 HV1_PACKET 
+  0x06 HV2_PACKET 
+  0x07 HV3_PACKET 
+  0x08 DV_PACKET 
+  0x09 AUX1_PACKET 
+  0x0a DM3_PACKET 
+  0x0b DH3_PACKET 
+  0x0e DM5_PACKET 
+  0x0f DH5_PACKET 
+)
+
+
+
+(
+  0 RESPOND_TO_ALL
+  1 PASS_EVERYTHING
+  2 PASS_ONLY_UNKNOWNS
+  3 RESPOND_TO_LMPS
+)
+
+(
+  0 ULAW
+  1 ALAW
+  2 CVSD
+)
+
+(
+  0 NO_ENCRYPTION
+  1 PT_PT_ENCRYPTION
+  2 PT_BROADCAST_ENCRYPTION
+)
+
+
+(
+  0 LMP_STATE_DETACH
+  1 LMP_STATE_HOLD
+  2 LMP_STATE_SNIFF
+  3 LMP_STATE_PARK
+  4 LMP_STATE_WAIT_SCO_CREATE
+  5 LMP_STATE_WAIT_SCO_KILL
+  6 LMP_STATE_SCO3
+  7 LMP_STATE_WAIT_SCO_START
+)
+
+(
+  0 LMP_WAIT_FOR_SNIFF_ACCEPT
+  1 LMP_WAIT_FOR_PARK_ACCEPT
+  2 LMP_SEND_UNPARK_ACCEPTED
+  3 LMP_SEND_ENCRYPTION_START
+  4 LMP_SEND_ENCRYPTION_STOP
+  5 MESSAGE_QUEUE
+  7 LMP_STATE_WAIT_BEACON
+)
+
+(
+ 0 INQUIRY_STATE_CHECK
+ 1 HOST_DELAY_MESSAGE
+ 2 VARIABLE_DELAY
+ 3 TEST_MODE_START_LOOPBACK
+ 4 TEST_MODE_START_PATTERN
+ 5 PARSE_TEST_CONTROL_MESSAGE
+ 6 H_AUTH_SEND_COMB_KEY
+)
+
+(
+  0 FROM_MASTER
+)
+
+(
+  0 MS_RECEIVE_SWITCH_REQ
+  1 MS_SEND_SETUP_COMPLATE
+)
+
+(
+  0 CONN_SM_STANDBY
+  1 CONN_SM_WAIT_PAGE
+  2 CONN_SM_SEND_FEATURES
+  3 CONN_SM_WAIT_FEATURES_RES
+  4 CONN_SM_SEND_CONN_REQ
+  5 CONN_SM_WAIT_CONN_ACCEPT
+  6 CONN_SM_AUTH_PAIR
+  7 CONN_SM_AUTH_PAIR_WAIT
+  8 CONN_SM_WAIT_MUTAL_AUTH
+  9 CONN_SM_ENCRYPT
+  0xa CONN_SM_ENCRYPT_WAIT
+  0xb CONN_SM_ENCRYPT_WAIT_CLEAR
+  0xc CONN_SM_SEND_SETUP_COMPLETE
+  0xd CONN_SM_WAIT_SETUP_COMPLETE 
+  0xe CONN_SM_SEND_SWITCH
+  0xf CONN_SM_DETACH_DELAY
+  0x10 CONN_SM_WAIT_SWITCH_AFTER_HOST_CONNECTION
+  0x11 CONN_SM_DELAY_RESTART_CONNECTION
+  0x12 CONN_SM_SEND_VERSION
+  0X13 CONN_SM_WAIT_VERSION
+  0x14 CONN_SM_SEND_FEATURES_EXT
+  0x15 CONN_SM_WAIT_FEATURES_EXT
+  0x16 CONN_SM_PAIRING
+  0x17 CONN_SM_AUTH
+  0x18 CONN_SM_PAIRING_WAIT
+  0x19 CONN_SM_AUTH_WAIT
+  0x1a CONN_SM_DONE
+  0x1b CONN_SM_WAIT_DONE
+)
+
+
+(
+  0 CONN_STANDBY
+  1 CONN_MASTER_SEND_CONN_REQ
+  2 CONN_MASTER_WAIT_FOR_CONN_ACCEPTED
+  3 CONN_MASTER_AUTH
+  4 CONN_MASTER_WAIT_FOR_FEATURES
+  5 CONN_MASTER_WAIT_FOR_SETUP_COMPLETE
+  6 CONN_MASTER_WAIT_FOR_MAX_SLOT
+  7 CONN_SLAVE_CONN_REQUESTED
+  8 CONN_SLAVE_WAIT_FOR_SETUP_COMPLETE
+  9 CONN_SLAVE_AUTH
+  10 CONN_USING_HOST_OPCODE
+  11 CONN_SLAVE_AUTH_WAIT
+  12 CONN_SLAVE_ENCRYPT_WAIT
+)
+
+
+(
+  0 RECEIVED_CONN_REQ
+  1 SENT_CONN_REQ
+  2 RECEIVED_SETUP_COMPLETE
+  3 SENT_SETUP_COMPLETE
+  4 HOST_CONNECTION_MADE
+  6 INIT_COMPLETE
+  7 SNIFF_NEGOTIATE
+)
+
+(
+  0 WAIT_FOR_KINIT
+  1 WAIT_FOR_LKA
+  2 WAIT_FOR_LKB
+  3 WAIT_FOR_SRES
+  4 EXAMINE_RECEIVED_SRES
+  5 SEND_AU_RAND
+  6 WAIT_FOR_KC
+  7 DELAYED_ENCRYPT_RESPONSE
+)
+
+(
+  0 SENT_SRES
+  1 RECEIVED_IN_RAND
+  2 SENT_AU_RAND
+  3 AUTHENTICATION_FAILED
+  4 AUTHENTICATION_PASSED
+  5 STARTED_AUTH
+  6 SENT_COMB_KEY
+  7 SENT_IN_RAND
+)
+
+(
+  0 RECEIVED_AU_RAND
+  1 RECEIVED_SRES
+  2 MUTUALLY_AUTHENTICATE
+)
+
+(
+  0 H_AUTH_STARTED
+  2 H_ENCRYPTION_MODE_REQ_PT
+  3 H_ENCRYPTION_KEY_SIZE
+  4 H_ENCRYPTION_START
+  5 H_ENCRYPTION_STOP
+  6 H_AUTH_SECOND_TRY
+)
+
+(
+  0 RECEIVED_ENCRYPT_MODE_REQ_PT
+  1 RECEIVED_ENCRYPT_KEY_SIZE
+  2 RECEIVED_ENCRYPT_START
+  3 RECEIVED_ENCRYPT_STOP
+  4 STARTED_ENCRYPT_START
+)
+
+(
+  0x00 MS_STANDBY
+  0x11 M_MINIT_1
+  0x12 M_MINIT_2
+  0x20 M_SINIT_0
+  0x30 S_MINIT_0
+  0x31 S_MINIT_1
+  0x32 S_MINIT_2
+  0x41 S_SINIT_1
+  0x42 S_SINIT_2
+  0x43 S_SINIT_3
+)
+
+(
+  0 TEST_MODE_ALLOWED
+  1 TEST_MODE_ACTIVE
+)
+
+(
+  0x00 NO_TEST_MODE
+  0x00 CONTINUOUS_TRANSMIT
+  0x10 TRANSMIT_TEST
+  0x08 LOOPBACK
+)
+
+
+(
+  1 SEND_TX_ADDR
+)
+
+(
+  5 PAGE_MODE_END
+)
+
+(
+  0x00 HOST_RETURN_SUCCESS
+  0x01 HOST_RETURN_SLAVE_CANT_ISSUE
+  0x02 HOST_RETURN_NO_CONNECTION
+  0x04 HOST_RETURN_PAGE_TIMEOUT
+  0x05 HOST_RETURN_INQUIRY_TIMEOUT
+  0x08 HOST_RETURN_CONNECTION_TIMEOUT
+  0x09 HOST_RETURN_MAX_NUM_CONNECTIONS
+  0x0a HOST_RETURN_MAX_NUM_SCO
+  0x0b HOST_RETURN_MAX_NUM_ACL
+  0x0c HOST_RETURN_SECURITY_REASONS
+  0x10 HOST_RETURN_HOST_TIMEOUT
+  0x11 HOST_RETURN_UNSUPPORTED_FEATURE_PARAMETER
+  0x13 HOST_RETURN_OTHER_END_USER
+  0x14 HOST_RETURN_OTHER_END_LOW_RESOURCE
+  0x15 HOST_RETURN_OTHER_END_POWER_OFF
+  0x16 HOST_RETURN_LOCAL_HOST
+  0x18 HOST_RETURN_PAIRING_NOT_ALLOWED
+  0x19 HOST_RETURN_UNKNOWN_PDU
+  0x1a HOST_RETURN_UNSUPPORTED_REMOTE_FEATURE
+  0x1d HOST_RETURN_SCO_AIR_MODE_REJECTED
+  0x20 HOST_RETURN_UNSUPPORTED_LMP_VALUE
+  0x21 HOST_RETURN_AUTHENTICATION_FAILURE
+  0x22 HOST_RETURN_CHANGED_EXISTING_SCO
+  0x23 HOST_RETURN_HOST_REJECTED
+  0x24 HOST_RETURN_UNSPECIFIED_ERROR
+  0x25 HOST_RESET
+  0x26 HOST_RETURN_BAD_HANDLE
+
+  0x00 HOST_RETURN_ACCEPT_COMMAND
+  0x01 HOST_RETURN_REJECT_COMMAND
+)
+
+(
+  0 HOST_IS_PRESENT
+  1 BCI_IS_PRESENT
+  2 DONT_INIT_RADIO
+)
+
+(
+  0 MASTER_STATE_STANDBY
+  1 MASTER_INQUIRY
+)
+
+(
+  92 SECOND_SWITCH_REQ
+  93 SLAVE_DELAY_DETACH
+  94 MASTER_DELAY_DETACH
+  95 UNSNIFF_DELAY_DETACH
+  0 WE_STARTED_AS_MASTER
+  1 WE_STARTED_AS_SLAVE
+)
+
+(
+  0x01 HOST_INQUIRY
+  0x02 HOST_INQUIRY_CANCEL
+  0x03 HOST_CREATE_CONNECTION
+  0x04 HOST_DISCONNECT_CONNECTION
+  0x05 HOST_ADD_SCO_REQUEST
+  0x06 HOST_REMOTE_NAME_REQUEST
+  0x07 HOST_WRITE_SUPPORTED_FEATURES
+  0x08 HOST_SET_TX_LEVEL
+  0x09 HOST_SET_RX_LEVEL
+  0x0a HOST_SNIFF_REQUEST
+  0x0b HOST_UNSNIFF_REQUEST
+  0x0c HOST_WRITE_LINK_SUPERVISION_TIMEOUT
+  0x0e HOST_WRITE_SCAN_ENABLE
+  0x0f HOST_READ_AUDIO_QUALITY
+  0x10 HOST_ENABLE_DEVICE_UNDER_TEST
+  0x14 HOST_BUTTON_CONFIGURE
+  0x15 HOST_SET_LOW_BATTERY_LEVEL
+  0x16 HOST_WRITE_LOCAL_NAME
+  0x17 HOST_WRITE_LOCAL_PIN
+  0x18 HOST_KILL_SCO_REQUEST
+  0x19 HOST_QOS_REQ
+
+  0x1a HOST_FEATURES_REQUEST
+  0x1b HOST_VERSION_REQUEST
+  0x1c HOST_TIMING_REQUEST
+  0x1d HOST_CLK_OFFSET_REQUEST
+  0x1e HOST_AUTHENTICATE
+  0x1f HOST_START_ENCRYPTION
+  0x20 HOST_STOP_ENCRYPTION
+  0x21 HOST_HOLD_REQUEST
+  0x22 HOST_HOLD_FORCE
+  0x23 HOST_PARK_REQUEST
+  0x24 HOST_MOD_BEACON
+  0x25 HOST_SET_BROADCAST_SCAN_WINDOW
+  0x26 HOST_UNPARK_PM_REQUEST
+  0x27 HOST_UNPARK_BD_REQUEST
+  0x28 HOST_SLAVE_REQUEST_UNPARK
+  0x29 HOST_DECREASE_POWER_REQUEST
+  0x2a HOST_INCREASE_POWER_REQUEST
+  0x2b HOST_SEND_PREFERRED_RATE
+  0x2c HOST_MAX_SLOT_REQ
+  0x2d HOST_MAX_SLOT_FORCE
+  0x2e HOST_PAGE_MODE_REQUEST
+  0x2f HOST_PAGE_SCAN_MODE_REQUEST
+  0x30 HOST_MASTER_SLAVE_SWITCH
+  0x31 HOST_SEND_AUTO_RATE
+  0x32 HOST_PAGE_CANCEL
+  0x33 HOST_CHANGE_LINK_KEY
+  0x34 HOST_RADIO_READ
+  0x35 HOST_RADIO_WRITE
+  0x36 HOST_REMOTE_SLAVE_INIT_UNPARK_REQUESTED
+
+  0x40 HOST_REMOTE_CONNECTION_REQUESTED
+  0x41 HOST_REMOTE_DETACH
+  0x42 HOST_REMOTE_SCO_CREATE_REQUESTED
+  0x43 HOST_REMOTE_SCO_KILL_REQUESTED
+  0x44 HOST_REMOTE_PARK_REQUESTED
+  0x45 HOST_REMOTE_UNPARK_REQUESTED
+  0x46 HOST_REMOTE_SNIFF_REQUESTED
+  0x47 HOST_REMOTE_UNSNIFF_REQUESTED
+  0x48 HOST_REMOTE_HOLD_REQUESTED
+  0x49 HOST_REMOTE_AUTHENTICATION
+  0x4a HOST_REMOTE_START_ENCRYPTION_REQUESTED
+  0x4b HOST_REMOTE_STOP_ENCRYPTION_REQUESTED
+  0x4c HOST_MODE_CHANGE_EVENT
+  0x4d HOST_REMOTE_TEST_ACTIVATE
+  0x4e HOST_REMOTE_TEST_CONTROL
+  0x4f HOST_REMOTE_TIMING_REQUEST
+)
+
+(
+  0x01 BCI_INQUIRY
+  0x02 BCI_INQUIRY_CANCEL
+  0x03 BCI_CREATE_CONNECTION
+  0x04 BCI_DISCONNECT
+  0x05 BCI_ADD_SCO_CONNECTION
+  0x06 BCI_REMOTE_NAME_REQUEST
+  0x07 BCI_WRITE_SUPPORTED_FEATURES
+  0x08 BCI_SET_TX_POWER_LEVEL
+  0x09 BCI_SET_RX_POWER_LEVEL
+  0x0a BCI_SNIFF_MODE
+  0x0b BCI_EXIT_SNIFF_MODE
+  0x0c BCI_WRITE_LINK_SUPERVISION_TIMEOUT
+  0x0d BCI_WRITE_PAGE_TIMEOUT
+  0x0e BCI_WRITE_SCAN_ENABLE
+  0x0f BCI_GET_AUDIO_QUALITY
+  0x10 BCI_ENABLE_DEVICE_UNDER_TEST
+  0x11 BCI_SEND_DATA
+  0x12 BCI_REGISTER_SERVICE_RECORD
+  0x13 BCI_SERVICE_SEARCH_ATTRIB_REQ
+  0x14 BCI_BUTTON_CONFIGURE
+  0x15 BCI_SET_LOW_BATTERY_LEVEL
+  0x16 BCI_WRITE_LOCAL_NAME
+  0x17 BCI_WRITE_LOCAL_PIN
+  0x18 BCI_REMOVE_SCO_CONNECTION
+  0x19 BCI_QUALITY_OF_SERVICE
+  0x40 BCI_REMOTE_CONNECTION_REQUEST
+  0x41 BCI_REMOTE_DETACH
+  0x42 BCI_REMOTE_ADD_SCO_REQUEST
+  0x43 BCI_REMOTE_REMOVE_SCO_REQUEST
+  0x44 BCI_REMOTE_PARK_REQUEST
+  0x45 BCI_REMOTE_UNPARK_REQUEST
+  0x46 BCI_REMOTE_SNIFF_REQUEST
+  0x47 BCI_REMOTE_UNSNIFF_REQUEST
+  0x48 BCI_REMOTE_HOLD_REQUEST
+  0x49 BCI_REMOTE_AUTHENTICATION_PAIRING_REQUEST
+  0x4a BCI_REMOTE_START_ENCRYPTION_REQUEST
+  0x4b BCI_REMOTE_STOP_ENCRYPTION_REQUEST
+  0x4c BCI_MODE_CHANGE_EVENT
+)
+
+(
+  0 MODE_CHANGE_ACTIVE
+  1 MODE_CHANGE_SNIFFING
+  2 MODE_CHANGE_PARKED
+  3 MODE_CHANGE_HOLDING
+  4 MODE_CHANGE_SCO_ADDED
+  5 MODE_CHANGE_SCO_REMOVED
+  6 MODE_CHANGE_ACL_CONNECTION
+  7 MODE_CHANGE_DISCONNECT
+  8 MODE_CHANGE_SCO_CHANGED
+  9 MODE_CHANGE_ENCRYPTING
+  10 MODE_CHANGE_NOT_ENCRYPTING
+  11 MODE_CHANGE_BUTTON_UP
+  12 MODE_CHANGE_BUTTON_DOWN
+  13 MODE_CHANGE_BATTERY_LOW
+  14 MODE_CHANGE_RESET
+  15 MODE_CHANGE_INQUIRY_CANCELED_RMTCMD
+  16 MODE_ACTIVE_MSSWITCH_PASSED
+  17 MODE_ACTIVE_MSSWITCH_FAILED
+)
+
+(
+  6 BATTERY_CHECK_LEVEL
+  7 BATTERY_SENT_STATUS
+)
+
+(
+  0x02 RADIO_2001
+  0x12 RADIO_2002
+  0x32 RADIO_2002_DDM
+  0x42 RADIO_1008A1
+  0x52 RADIO_1018A0
+)
+
+(
+  0 SLAVE_INIT_AUTHENTICATION
+  1 SLAVE_INIT_ENCRYPTION
+  2 SLAVE_INIT_MASTER_SLAVE_SWITCH
+)
+
+(
+  0 CONNECTION_AUTH
+  1 CONNECTION_ENCRYPT
+  2 CONNECTION_SWITCH
+  3 CONNECTION_ACL
+  4 CONNECTION_FEATURE_EXT
+)
+
+(
+  7 AA_INSERTION
+)
+
+
+
+
+format
+  ! 15 romdat
+  % d0
+  % d1
+  % d2
+  % d3
+  [8] d0
+  [8] d1
+  [8] d2
+  [8] d3
+end
+
+format
+  ! 15 enable   
+  % flag
+  [5] opcode
+  [6] 1
+  [6] flag
+  [6] null
+  [9] 0
+end
+ 
+format
+  ! 15 pulse   
+  % flag
+  [5] opcode
+  [6] 1
+  [6] flag
+  [6] null
+  [9] 0
+end
+
+format
+  ! 15 disable   
+  % flag
+  [5] opcode
+  [6] 2
+  [6] flag
+  [6] null
+  [9] 0
+end
+
+format
+  ! 15 set0  
+  % immediate
+  % reg
+  [5] opcode
+  [6] 9
+  [6] never
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 set1  
+  % immediate
+  % reg
+  [5] opcode
+  [6] 9          
+  [6] always
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 setflag  
+  % flag
+  % immediate
+  % reg
+  [5] opcode
+  [6] 9
+  [6] flag
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 nsetflag  
+  % flag
+  % immediate
+  % reg
+  [5] opcode
+  [6] 0x29
+  [6] flag
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 15 setflip    
+  % immediate
+  % reg
+  [5] opcode
+  [6] 10            
+  [6] always
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 0x1f qset1      
+  % reg             
+  [5] opcode
+  [6] 9
+  [6] always
+  [6] reg
+  [9] 0
+end
+  
+format
+  ! 0x1f qset0      
+  % reg             
+  [5] opcode
+  [6] 9
+  [6] never
+  [6] reg
+  [9] 0
+end
+
+format 
+  ! 0x1f qsetflag   
+  % flag
+  % reg
+  [5] opcode
+  [6] 9
+  [6] flag
+  [6] reg
+  [9] 0
+end
+
+format 
+  ! 0x1f nqsetflag   
+  % flag
+  % reg
+  [5] opcode
+  [6] 0x29
+  [6] flag
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 0x1f qsetflip      
+  % reg
+  [5] opcode
+  [6] 10
+  [6] always
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 1 parse       
+  % source
+  % dest
+  % immediate
+  [5] opcode
+  [4] source      
+  [2] 0
+  [6] 0    
+  [2] 0            
+  [4] dest        
+  [9] immediate   
+end
+
+format
+  ! 1 inject      
+  % destination
+  % immediate
+  [5] opcode
+  [4] 0
+  [2] 0
+  [6] 1
+  [2] 0
+  [4] destination 
+  [9] immediate   
+end
+
+format
+  ! 1 iinject
+  % destination
+  % regr
+  [5] opcode
+  [6] regr       
+  [6] 3
+  [2] 0
+  [4] destination 
+  [9] 0 
+end
+
+format
+  ! 1 stuff  
+  % source
+  % destination
+  [5] opcode
+  [4] source
+  [2] 0
+  [6] 2
+  [2] 0
+  [4] destination
+  [9] 0
+end
+
+format    
+  ! 3 force
+  % immediate
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 0    
+  [6] regw  
+  [9] immediate
+end
+
+format    
+  ! 0x13 iforce
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 0    
+  [6] regw  
+  [9] 0
+end
+
+format    
+  ! 3 increase
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 1    
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 3 pincrease
+  % immediate
+  [5] opcode
+  [6] -1  
+  [6] 1   
+  [6] -1  
+  [9] immediate
+end
+
+format    
+  ! 3 and_into
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 2    
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 3 and
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 2    
+  [6] regw
+  [9] immediate
+end
+  
+format
+  ! 0x13 iand    
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 2    
+  [6] regw
+  [9] 0
+end
+  
+
+format    
+  ! 0x13 iand_into
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 2    
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 3 or_into
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 3    
+  [6] reg
+  [9] immediate
+end
+
+format
+  ! 3 or
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 3    
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 ior
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 3    
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 0x13 ior_into
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 3    
+  [6] reg
+  [9] 0
+end
+
+format
+  ! 3 skip_to   
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 4   
+  [6] rom_addr
+  [9] 0
+end
+
+format
+  ! 3 copy
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 4   
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 deposit   
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 4   
+  [6] -1  
+  [9] 0
+end
+
+format
+  ! 3 icopy     
+  % regw
+  [5] opcode
+  [6] -1  
+  [6]  4  
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 add
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 1
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 iadd       
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 1
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 sub          
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 12
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 isub       
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 12
+  [6] regw
+  [9] 0
+end
+
+
+format
+  ! 3 flip
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 5
+  [6] reg
+  [9] immediate
+end
+  
+format
+  ! 0x13 iflip  
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 5
+  [6] regw
+  [9] 0
+end
+  
+format
+  ! 3 xor
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 5
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 3 xor_into
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 5
+  [6] reg
+  [9] immediate
+end
+  
+format
+  ! 0x13 ixor  
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 5
+  [6] regw
+  [9] 0
+end
+  
+format
+  ! 3 invert
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 8
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 pinvert    
+  [5] opcode
+  [6] -1
+  [6] 8
+  [6] -1
+  [9] 0
+end
+
+format
+  ! 3 div                 
+  % reg
+  % immediate
+  [5] opcode
+  [6] reg
+  [6] 13                   
+  [6] null
+  [9] immediate
+end
+
+format
+  ! 0x13 idiv           
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 13                   
+  [6] null
+  [9] 0
+end
+
+format
+  ! 0x13 idiv48           
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 17                   
+  [6] null
+  [9] 0
+end
+
+format
+  ! 3 remainder            
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 14
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 quotient             
+  % regw
+  [5] opcode
+  [6] 0
+  [6] 15
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 6
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift2
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 22
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift3
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 18
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift4
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 35
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift8
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 25
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift16
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 34
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 rshift32
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 30
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 7
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift2
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 23
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift8
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 26
+  [6] regw
+  [9] 0
+end
+
+  
+format
+  ! 3 lshift3
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 19
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 lshift4
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 36
+  [6] regw
+  [9] 0
+end
+  
+
+format
+  ! 3 lshift16
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 32
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 random               
+  % reg
+  [5] opcode
+  [6] 0
+  [6] 20
+  [6] reg
+  [9] 0
+end
+
+format                     
+  ! 3 reverse
+  % reg
+  % regw
+  [5] opcode
+  [6] reg
+  [6] 27
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 priority    
+  % reg
+  % regw
+  [5] opcode
+  [6] reg
+  [6] 21
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 7 setsect   
+  % section    
+  % set_data
+  [5] opcode
+  [7] 0
+  [2] section
+  [18] set_data
+end
+
+format
+  ! 10 preload   
+  % reg
+  [5] opcode
+  [6] reg
+  [6] 0
+  [6] -1
+  [9] 0
+end
+
+format  
+  ! 10 ialigned   
+  % regw
+  [5] opcode
+  [6] -1
+  [6] 0
+  [6] regw
+  [9] 0
+end
+
+format  
+  ! 10 aligned
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 0
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 4 branch
+  % addr
+  % flag
+  [5] opcode
+  [6] 1
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 call
+  % addr
+  % flag
+  [5] opcode
+  [6] 2
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 rtn
+  % flag
+  [5] opcode
+  [6] 3
+  [6] flag
+  [15] 0
+end
+
+format
+  ! 0x0d fetch          
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 63
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x0d fetcht          
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 2
+  [1] addr
+  [1] 1
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x1d ifetch         
+  % num_bytes
+  % reg
+  [5] opcode
+  [6] 63
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] reg
+end
+
+format
+  ! 0x1d ifetcht         
+  % num_bytes
+  % reg
+  [5] opcode
+  [6] 2
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] reg
+end
+
+format
+  ! 0x0c store          
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 63
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x0c storet          
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] 2
+  [1] addr
+  [1] 1
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x1c istore        
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] 63            
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+format
+  ! 0x1c istoret        
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] 2            
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+format
+  ! 0x0d crc         // read from memory, count from loopcnt, put crc result into pdata 
+  % addr
+  [5] opcode
+  [6] 63
+  [6] 0
+  [15] addr
+end
+
+format
+  ! 0x1d icrc         
+  % reg
+  [5] opcode
+  [6] 63
+  [15] 0
+  [6] reg
+end
+
+
+format
+  ! 0x0c storer          
+  % reg
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] reg               
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+
+format
+  ! 0x1c istorer        
+  % regr
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] regr            
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+
+format
+  ! 0x0d fetchr          
+  % reg
+  % num_bytes
+  % addr
+  [5] opcode
+  [6] reg               
+  [1] addr
+  [1] 0
+  [4] num_bytes
+  [15] addr
+end
+
+format
+  ! 0x1d ifetchr        
+  % regr
+  % num_bytes
+  % regaddr
+  [5] opcode
+  [6] regr
+  [2] 0
+  [4] num_bytes
+  [9] 0
+  [6] regaddr
+end
+
+
+
+
+format
+  ! 0x0e jam
+  % immediate
+  % addr
+  [5] opcode
+  [3] 0
+  [16] addr
+  [8] immediate
+end
+
+format			
+  ! 4 nbranch
+  % addr
+  % flag
+  [5] opcode
+  [1] 1
+  [5] 1
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 ncall
+  % addr
+  % flag
+  [5] opcode
+  [1] 1
+  [5] 2
+  [6] flag
+  [15] addr
+end
+
+format
+  ! 4 nrtn
+  % flag
+  [5] opcode
+  [1] 1
+  [5] 3
+  [6] flag
+  [15] 0
+end
+
+format
+  ! 4 nop
+  % addr  
+  [5] opcode
+  [6] 0     
+  [6] 0      
+  [15] addr
+end
+
+format
+  ! 4 clear_stack
+  [5] opcode
+  [6] 4
+  [6] 0    
+  [15] 0
+end
+
+format
+  ! 6 until
+  % reg
+  % flag
+  [5] opcode
+  [6] reg
+  [6] flag
+  [6] 1
+  [9] 0
+end
+  
+format
+  ! 6 correlate   
+  % reg          
+  % flag
+  [5] opcode
+  [6] reg
+  [6] flag
+  [6] 2           
+  [9] 0           
+end
+
+format
+  ! 5 compare   
+  % immediate
+  % reg
+  % mask
+  [5] opcode
+  [6] reg
+  [3] 0
+  [9] mask
+  [9] immediate
+end
+
+format
+  ! 0x15 icompare   
+  % mask
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 0
+  [9] mask
+  [9] 0
+end
+
+format   
+  ! 5 iverify
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 2
+  [18] 0
+end
+
+format
+  ! 0x15 qisolate1
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [18] -1
+end
+
+format
+  ! 0x15 qisolate0
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [18] 0
+end
+
+	
+format
+  ! 5 isolate1
+  % addr
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [9] -1
+  [9] addr
+end
+
+format
+  ! 5 isolate0
+  % addr
+  % reg
+  [5] opcode
+  [6] reg
+  [3] 3
+  [9] 0
+  [9] addr
+end
+
+format
+  ! 11 setarg
+  % immediate
+  [5] opcode
+  [27] immediate
+end
+
+format
+  ! 0x1b arg
+  % immediate
+  % reg
+  [5] opcode
+  [6] reg
+  [21] immediate
+end
+
+  
+format
+  ! 0 sleep
+  [5] opcode
+  [27] 0
+end
+
+format
+  ! 0 snooze
+  [5] opcode
+  [6] -1
+  [21] 0
+end
+
+format
+  ! 0 revision
+  % rev_num
+  [5] opcode
+  [27] rev_num
+end
+
+format
+  ! 0x18 loop   
+  % addr
+  [5] opcode
+  [4] 4
+  [8] 0
+  [15] addr
+end
+
+format
+  ! 0x18 beq   
+  % imme
+  % addr
+  [5] opcode
+  [4] 0
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bne   
+  % imme
+  % addr
+  [5] opcode
+  [4] 1
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 rtneq   
+  % imme
+  [5] opcode
+  [4] 2
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 rtnne   
+  % imme
+  [5] opcode
+  [4] 3
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 bbit1   
+  % imme
+  % addr
+  [5] opcode
+  [4] 5
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bbit0   
+  % imme
+  % addr
+  [5] opcode
+  [4] 6
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 rtnbit1   
+  % imme
+  [5] opcode
+  [4] 7
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 rtnbit0   
+  % imme
+  [5] opcode
+  [4] 8
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 8	bpatch
+  % imme
+  % addr
+  [5] opcode
+  [4] 9
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 8	bpatchx
+  % imme
+  % addr
+  [5] opcode
+  [4] 14
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bmark1   
+  % imme
+  % addr
+  [5] opcode
+  [4] 10
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 bmark0   
+  % imme
+  % addr
+  [5] opcode
+  [4] 11
+  [8] imme
+  [15] addr
+end
+
+format
+  ! 0x18 rtnmark1   
+  % imme
+  [5] opcode
+  [4] 12
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 0x18 rtnmark0   
+  % imme
+  [5] opcode
+  [4] 13
+  [8] imme
+  [15] 0
+end
+
+format
+  ! 3 mul32                   
+  % regr
+  % immediate                                  
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 31           
+  [6] regw
+  [9] immediate
+end
+
+format
+  ! 0x13 imul32             
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 31                   
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 0x13 imults             
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 16
+  [6] regw
+  [9] 0
+end
+
+
+format
+  ! 3 byteswap
+  % regr
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 33
+  [6] regw
+  [9] 0
+end
+
+format
+  ! 3 shasx          
+  % regr
+  % immediate
+  % regw
+  [5] opcode
+  [6] regr
+  [6] 28
+  [6] regw
+  [9] immediate
+end
+
+
+format
+  ! 0x13 regexrot 	
+  [5] opcode
+  [6] 0
+  [6] 29
+  [6] null
+  [9] 0
+end
+
Index: /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/bt_patch.bin	(added)
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/bt_patch.bin	(revision 0)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/bt_patch.bin	(revision 0)
Index: /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/bt_patch.h	(added)
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/bt_patch.h	(revision 0)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/bt_patch.h	(revision 0)
Index: output/eeprom.dat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/eeprom.dat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/eeprom.dat	(working copy)
@@ -0,0 +1,8192 @@
+00
+02
+aa
+55
+82
+16
+c2
+84
+00
+17
+c0
+00
+00
+21
+c0
+01
+80
+a2
+c0
+41
+00
+3e
+c0
+45
+00
+31
+c0
+45
+80
+3b
+c0
+4f
+80
+4e
+c0
+52
+00
+50
+c0
+56
+80
+5a
+c0
+61
+03
+53
+c0
+62
+bd
+33
+c0
+63
+03
+67
+c0
+63
+83
+69
+c0
+64
+03
+73
+c0
+66
+04
+b0
+c0
+67
+84
+07
+c0
+68
+84
+08
+c0
+69
+04
+08
+c0
+6a
+04
+10
+c0
+6b
+84
+4c
+c0
+6d
+83
+43
+c0
+6e
+04
+09
+20
+20
+13
+7c
+c1
+7f
+80
+00
+c0
+41
+04
+0c
+c0
+6f
+83
+8c
+c0
+70
+03
+9b
+c0
+74
+03
+a5
+c0
+74
+83
+ba
+c0
+75
+03
+e9
+c0
+75
+83
+f4
+c0
+76
+04
+01
+20
+20
+13
+7c
+20
+40
+3c
+fe
+24
+34
+08
+02
+6f
+e0
+cb
+f5
+20
+3a
+08
+02
+6f
+e0
+c9
+24
+c0
+7f
+88
+02
+1f
+e2
+0e
+00
+6f
+e2
+09
+8a
+af
+ec
+00
+00
+20
+40
+82
+fb
+20
+20
+08
+02
+6f
+e0
+80
+4c
+79
+3f
+fe
+05
+79
+3f
+fe
+02
+67
+e0
+80
+4c
+20
+20
+0b
+40
+6f
+e0
+c1
+eb
+c0
+4a
+00
+35
+c0
+4f
+80
+38
+20
+20
+12
+1b
+70
+8a
+39
+10
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+39
+b0
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+75
+03
+70
+8a
+85
+00
+20
+20
+12
+52
+18
+00
+2a
+08
+18
+00
+2a
+00
+78
+50
+fc
+00
+78
+50
+7c
+00
+78
+2f
+7c
+00
+70
+89
+00
+05
+20
+00
+00
+02
+70
+89
+00
+00
+20
+40
+11
+5d
+70
+8a
+16
+00
+70
+8a
+0a
+80
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+70
+8a
+0b
+00
+20
+20
+12
+9c
+70
+00
+7f
+00
+20
+20
+13
+b7
+20
+40
+14
+17
+6f
+e1
+c1
+74
+20
+7a
+00
+00
+6f
+e0
+cd
+4e
+24
+7a
+00
+00
+6f
+e0
+cd
+4f
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+20
+20
+14
+91
+20
+40
+6d
+29
+20
+40
+00
+61
+20
+40
+00
+7e
+20
+40
+00
+9c
+20
+75
+80
+00
+20
+40
+3c
+54
+20
+20
+3c
+50
+20
+75
+80
+00
+20
+40
+31
+46
+20
+40
+25
+f1
+20
+40
+22
+96
+20
+40
+3c
+ac
+20
+40
+00
+6f
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+40
+04
+82
+6f
+e4
+4b
+bd
+c2
+9e
+83
+02
+c2
+89
+c5
+50
+c2
+89
+45
+11
+20
+60
+00
+00
+58
+00
+4d
+77
+67
+e1
+46
+67
+20
+40
+04
+66
+70
+4c
+98
+00
+58
+00
+01
+95
+67
+e1
+48
+eb
+58
+00
+01
+2c
+e7
+e1
+00
+05
+58
+00
+01
+4b
+e7
+e1
+00
+05
+20
+60
+00
+00
+6f
+f0
+81
+21
+58
+00
+00
+00
+67
+f0
+80
+4d
+20
+20
+5b
+9a
+68
+48
+c9
+19
+20
+40
+3e
+71
+68
+48
+c9
+1a
+20
+40
+3e
+71
+68
+48
+c9
+24
+60
+48
+c9
+26
+20
+40
+3e
+71
+58
+00
+4c
+1a
+67
+e1
+4c
+42
+58
+00
+4c
+22
+67
+e1
+4c
+44
+58
+00
+4c
+36
+67
+e1
+4c
+46
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+be
+71
+1a
+40
+a4
+01
+c2
+00
+00
+8e
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+a3
+1a
+40
+a4
+01
+c2
+00
+00
+96
+20
+20
+3d
+48
+58
+5d
+48
+00
+67
+e2
+48
+c0
+6f
+e0
+c4
+a9
+c4
+00
+00
+00
+20
+40
+46
+ed
+20
+60
+00
+00
+20
+40
+00
+a6
+20
+40
+01
+31
+20
+40
+02
+b9
+20
+20
+08
+13
+20
+40
+00
+8b
+20
+40
+01
+2b
+58
+00
+00
+00
+67
+e1
+4c
+95
+d8
+c0
+4c
+48
+d8
+a0
+4c
+5c
+df
+20
+00
+14
+20
+40
+7c
+a1
+58
+00
+4c
+48
+67
+e1
+4c
+8f
+58
+00
+4c
+84
+67
+e1
+4c
+91
+20
+40
+01
+29
+20
+40
+01
+23
+20
+40
+01
+27
+6f
+e1
+4c
+95
+1f
+e0
+fe
+01
+67
+e1
+4c
+95
+c2
+84
+81
+18
+68
+48
+cc
+0f
+20
+40
+5f
+7d
+24
+20
+80
+b5
+20
+40
+00
+df
+20
+40
+00
+f9
+20
+40
+01
+29
+6f
+e1
+4c
+46
+1f
+e2
+24
+00
+70
+4c
+94
+00
+e8
+40
+80
+12
+6f
+e1
+4c
+44
+1f
+e2
+22
+00
+1a
+22
+26
+00
+df
+20
+00
+14
+ef
+e0
+80
+11
+98
+46
+7c
+00
+20
+22
+80
+d3
+1a
+20
+a2
+01
+c2
+00
+00
+c7
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+0a
+20
+21
+00
+c2
+20
+60
+00
+00
+6f
+e1
+4c
+8f
+1f
+e2
+0a
+00
+1a
+22
+7e
+00
+9a
+66
+7e
+00
+98
+a0
+8a
+00
+6f
+e1
+4c
+91
+1f
+e2
+26
+00
+6f
+e0
+cc
+94
+9a
+60
+a6
+00
+ef
+e0
+80
+13
+e7
+e0
+80
+05
+20
+20
+00
+cc
+20
+00
+00
+14
+70
+4c
+97
+00
+20
+40
+01
+2b
+70
+4c
+94
+00
+20
+40
+01
+25
+20
+40
+00
+ec
+20
+40
+01
+23
+20
+40
+00
+ec
+1f
+e6
+7c
+09
+20
+21
+00
+e3
+20
+40
+01
+25
+20
+40
+00
+ec
+20
+20
+01
+27
+70
+4c
+93
+00
+20
+00
+00
+96
+20
+40
+01
+0c
+6f
+e1
+4c
+91
+1f
+e2
+0a
+00
+6f
+e0
+cc
+94
+98
+a0
+8a
+00
+6f
+e0
+cc
+93
+e7
+e0
+80
+05
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+20
+60
+00
+00
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+70
+4c
+94
+00
+70
+4c
+93
+00
+e8
+40
+80
+12
+28
+4f
+fe
+07
+20
+20
+81
+06
+20
+40
+5f
+8d
+20
+40
+01
+0c
+e8
+40
+80
+12
+20
+40
+5f
+89
+e8
+40
+80
+12
+20
+40
+5f
+a3
+1a
+40
+a4
+01
+6f
+e1
+4c
+8f
+20
+40
+00
+f0
+1f
+e6
+7c
+13
+20
+21
+00
+fc
+20
+60
+00
+00
+6f
+e1
+4c
+42
+1f
+e2
+26
+00
+df
+20
+00
+08
+e8
+40
+80
+13
+20
+40
+5f
+7d
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+79
+20
+fe
+07
+67
+e0
+cc
+93
+1a
+60
+a6
+01
+c2
+00
+01
+0f
+20
+60
+00
+00
+68
+48
+cc
+10
+20
+40
+5f
+8d
+20
+00
+00
+14
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+00
+17
+70
+6f
+e0
+cc
+97
+1f
+e0
+fe
+01
+67
+e0
+cc
+97
+c2
+83
+5c
+7b
+20
+20
+00
+a6
+68
+48
+cc
+0f
+20
+20
+5f
+89
+68
+48
+cc
+0f
+20
+20
+5f
+8d
+68
+48
+cc
+0f
+20
+20
+5f
+74
+68
+48
+cc
+0e
+20
+20
+5f
+89
+68
+48
+cc
+0e
+20
+20
+5f
+8d
+70
+4c
+98
+00
+6f
+e1
+4c
+99
+67
+e1
+4c
+9b
+20
+60
+00
+00
+da
+20
+4c
+48
+da
+40
+4c
+5c
+df
+20
+00
+14
+20
+40
+7d
+33
+24
+22
+81
+2d
+20
+40
+01
+6b
+20
+5a
+01
+2d
+20
+40
+01
+77
+6f
+e0
+cb
+ac
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+00
+80
+00
+c1
+01
+00
+00
+c1
+02
+00
+00
+70
+4c
+94
+00
+da
+20
+4c
+48
+da
+40
+4c
+70
+e8
+40
+80
+11
+ef
+e0
+80
+12
+98
+42
+fe
+00
+20
+3a
+01
+63
+67
+e0
+cc
+93
+60
+48
+cc
+a3
+e0
+40
+80
+12
+70
+4c
+a1
+01
+70
+4c
+a4
+00
+6f
+e0
+cc
+93
+c3
+00
+01
+58
+6f
+e0
+cc
+94
+1f
+ef
+fe
+08
+68
+48
+cc
+a4
+98
+40
+fe
+00
+d8
+c0
+4c
+ae
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+67
+e0
+cc
+a2
+20
+40
+01
+a5
+20
+40
+01
+f5
+20
+40
+02
+83
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+67
+e0
+cc
+93
+6f
+e0
+cc
+a3
+1f
+e3
+7e
+00
+67
+e0
+cc
+a3
+6f
+e0
+cc
+a4
+1f
+e0
+fe
+01
+67
+e0
+cc
+a4
+1f
+e6
+7c
+07
+20
+21
+01
+4b
+1a
+20
+a2
+01
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+20
+21
+01
+42
+20
+60
+00
+00
+6f
+e4
+4c
+48
+24
+7a
+00
+00
+6f
+e4
+4c
+50
+24
+7a
+00
+00
+6f
+e2
+4c
+58
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+03
+00
+00
+70
+4d
+70
+00
+20
+60
+00
+00
+70
+4b
+ac
+00
+70
+4c
+9e
+00
+da
+20
+4c
+48
+df
+20
+00
+14
+70
+4c
+9d
+00
+ef
+e0
+80
+11
+20
+3a
+01
+a0
+68
+48
+cc
+9d
+18
+40
+84
+01
+60
+48
+cc
+9d
+1f
+e2
+04
+00
+1f
+e0
+ff
+ff
+98
+41
+7e
+00
+24
+22
+81
+7e
+6f
+e0
+cc
+9d
+68
+48
+cc
+9e
+98
+40
+84
+00
+60
+48
+cc
+9e
+1f
+e6
+7c
+01
+20
+21
+01
+a0
+18
+46
+7c
+02
+20
+21
+01
+a0
+70
+4c
+94
+00
+70
+4c
+9f
+00
+e8
+40
+80
+11
+da
+40
+4c
+48
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+24
+21
+01
+a0
+ef
+e0
+80
+12
+98
+41
+7c
+00
+20
+22
+81
+a3
+6f
+e0
+cc
+9f
+1f
+e0
+fe
+01
+67
+e0
+cc
+9f
+1f
+e6
+7c
+01
+20
+21
+01
+a3
+70
+4b
+ac
+01
+20
+60
+00
+00
+1a
+20
+a2
+01
+c2
+00
+01
+7b
+20
+60
+00
+00
+1a
+40
+a4
+01
+20
+20
+01
+91
+6f
+e0
+cc
+a3
+24
+5a
+02
+0a
+6f
+e0
+cd
+4e
+24
+5a
+01
+bb
+6f
+e0
+cd
+5d
+68
+48
+cd
+4e
+98
+42
+fe
+00
+20
+22
+81
+b8
+6f
+e0
+cc
+a2
+c0
+14
+81
+c6
+1f
+e6
+7c
+45
+24
+61
+00
+00
+d8
+40
+00
+3a
+98
+46
+7e
+00
+24
+61
+00
+00
+d8
+c0
+4d
+5f
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+20
+20
+01
+e5
+6f
+e0
+cc
+a2
+c0
+26
+01
+c8
+20
+60
+00
+00
+6f
+e0
+cc
+a2
+c0
+29
+01
+ca
+c0
+28
+81
+ce
+c0
+28
+01
+d2
+c0
+27
+81
+d6
+c0
+70
+01
+da
+c0
+16
+01
+e2
+c0
+0b
+01
+e7
+c0
+03
+81
+ed
+c0
+02
+01
+f1
+20
+60
+00
+00
+6f
+e0
+cd
+5e
+20
+20
+01
+e5
+6f
+e0
+cd
+6b
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4b
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4e
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4a
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4d
+20
+20
+01
+e5
+6f
+e0
+cd
+6d
+20
+7a
+00
+00
+6f
+e0
+cf
+a9
+c0
+00
+01
+e0
+58
+00
+00
+fd
+20
+20
+01
+e5
+58
+00
+00
+aa
+20
+20
+01
+e5
+6f
+e0
+cd
+6e
+20
+7a
+00
+00
+58
+00
+00
+ab
+67
+e0
+cc
+a2
+20
+60
+00
+00
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+01
+70
+4c
+16
+06
+58
+00
+00
+00
+20
+20
+01
+e5
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+00
+20
+20
+01
+ea
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+02
+20
+20
+01
+ea
+6f
+e0
+cc
+a2
+c0
+23
+02
+0c
+c0
+25
+82
+12
+c0
+27
+02
+18
+c0
+25
+02
+1a
+c0
+26
+82
+1c
+c0
+52
+82
+1e
+c0
+53
+02
+25
+c0
+53
+82
+27
+c0
+54
+02
+29
+c0
+54
+82
+2b
+c0
+55
+02
+36
+c0
+56
+82
+3d
+c0
+55
+82
+44
+c0
+56
+02
+4f
+c0
+7d
+82
+58
+20
+60
+00
+00
+6f
+e0
+cc
+a3
+c4
+00
+00
+00
+70
+4d
+73
+0a
+20
+60
+00
+00
+70
+4d
+73
+00
+20
+60
+00
+00
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+0a
+70
+4d
+72
+20
+20
+20
+02
+5d
+70
+4d
+72
+52
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+51
+20
+20
+02
+13
+70
+4d
+72
+50
+20
+20
+02
+13
+70
+4d
+72
+4f
+20
+20
+02
+13
+70
+4d
+72
+04
+70
+4d
+71
+01
+6f
+e0
+cf
+a9
+c0
+00
+02
+5d
+c0
+00
+82
+5d
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+06
+20
+20
+02
+1f
+70
+4d
+72
+19
+20
+20
+02
+1f
+70
+4d
+72
+1b
+20
+20
+02
+1f
+6f
+e0
+cf
+a9
+c0
+00
+02
+30
+c0
+01
+82
+33
+58
+00
+00
+fc
+20
+20
+01
+e5
+70
+4d
+71
+08
+70
+4d
+72
+0f
+20
+20
+02
+5d
+70
+4d
+71
+09
+70
+4d
+72
+14
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+3a
+58
+00
+00
+fd
+20
+20
+01
+e5
+70
+4d
+71
+09
+70
+4d
+72
+12
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+01
+82
+41
+58
+00
+00
+fa
+20
+20
+01
+e5
+70
+4d
+71
+08
+70
+4d
+72
+2c
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+4b
+c0
+00
+82
+4d
+70
+4d
+71
+01
+70
+4d
+72
+2c
+20
+40
+02
+06
+20
+20
+02
+5d
+70
+4d
+71
+08
+20
+20
+02
+48
+70
+4d
+71
+02
+20
+20
+02
+48
+6f
+e0
+cf
+a9
+c0
+00
+02
+55
+c0
+00
+82
+55
+70
+4d
+71
+01
+70
+4d
+72
+52
+20
+20
+02
+5d
+70
+4d
+71
+08
+70
+4d
+72
+2b
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c1
+80
+00
+00
+70
+4d
+71
+08
+70
+4d
+72
+07
+20
+20
+02
+5d
+70
+4c
+a2
+00
+6f
+e0
+cc
+a3
+c3
+00
+02
+64
+6f
+e0
+cd
+70
+c0
+01
+82
+70
+70
+4d
+70
+01
+20
+60
+00
+00
+70
+4d
+70
+04
+20
+60
+00
+00
+70
+4d
+70
+06
+20
+60
+00
+00
+67
+e0
+cc
+02
+60
+48
+cc
+04
+20
+40
+7d
+92
+70
+4c
+01
+00
+20
+20
+04
+ef
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+70
+4d
+70
+02
+20
+60
+00
+00
+70
+4d
+70
+03
+6f
+e0
+cd
+71
+68
+48
+cd
+72
+20
+20
+02
+68
+70
+4c
+01
+00
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+6f
+e0
+cd
+73
+20
+3a
+02
+66
+70
+4d
+70
+05
+20
+60
+00
+00
+20
+20
+02
+6a
+70
+4d
+70
+00
+df
+e0
+00
+00
+d8
+40
+00
+00
+20
+20
+02
+68
+6f
+e0
+cc
+a2
+d8
+40
+00
+e0
+98
+46
+7c
+00
+24
+21
+02
+95
+1f
+e6
+7c
+e7
+24
+21
+02
+b2
+1f
+e1
+7e
+07
+1f
+e2
+0e
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+91
+6f
+e0
+cc
+a5
+f9
+3f
+fe
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+6f
+e0
+cc
+a5
+f9
+20
+7e
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+70
+4c
+ad
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+a6
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+98
+46
+7c
+00
+24
+22
+82
+a4
+ef
+e0
+80
+06
+18
+c0
+8d
+fe
+e7
+e0
+80
+06
+20
+7a
+00
+00
+18
+c0
+8c
+01
+e0
+40
+80
+06
+c2
+00
+02
+9b
+20
+60
+00
+00
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+20
+3a
+02
+af
+98
+46
+7c
+00
+20
+62
+80
+00
+c2
+00
+02
+a9
+20
+60
+00
+00
+18
+c0
+8d
+ff
+e0
+40
+80
+06
+20
+60
+00
+00
+70
+4d
+74
+01
+6f
+e0
+cc
+a3
+2f
+ec
+00
+00
+20
+40
+82
+b7
+20
+20
+02
+95
+70
+4d
+74
+02
+20
+60
+00
+00
+20
+40
+02
+cd
+70
+4d
+4e
+00
+70
+4d
+4f
+00
+70
+4d
+50
+00
+70
+4f
+eb
+00
+6f
+e0
+cc
+a5
+24
+5a
+02
+f7
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+7f
+20
+42
+82
+f9
+1f
+e6
+7c
+de
+20
+42
+82
+fb
+c2
+00
+02
+c2
+6f
+e0
+cd
+51
+20
+3a
+02
+dd
+6f
+e0
+c9
+3f
+c0
+00
+02
+e2
+20
+60
+00
+00
+6f
+e0
+cd
+51
+24
+7a
+00
+00
+68
+48
+c9
+24
+18
+46
+7c
+ff
+20
+62
+80
+00
+20
+40
+5f
+7d
+24
+20
+82
+d9
+df
+20
+00
+08
+d8
+a0
+4c
+a5
+20
+40
+7c
+68
+70
+4c
+a7
+de
+20
+60
+00
+00
+6f
+e0
+cc
+a7
+c1
+ef
+00
+00
+70
+4c
+a7
+00
+20
+60
+00
+00
+6f
+e0
+cd
+50
+20
+7a
+00
+00
+6f
+e0
+c9
+3f
+c0
+00
+02
+ed
+20
+60
+00
+00
+6f
+e1
+4c
+a7
+68
+49
+4d
+54
+98
+46
+7c
+00
+20
+22
+82
+e9
+18
+50
+84
+00
+98
+46
+7c
+00
+24
+62
+80
+00
+70
+4f
+eb
+01
+20
+60
+00
+00
+70
+4f
+eb
+00
+20
+40
+02
+fb
+70
+4d
+58
+00
+20
+40
+02
+fd
+70
+4c
+a1
+00
+6f
+e1
+48
+8b
+24
+7a
+00
+00
+58
+00
+00
+00
+67
+e1
+4a
+c4
+20
+40
+04
+94
+20
+40
+04
+96
+20
+20
+47
+41
+70
+4d
+4f
+01
+20
+60
+00
+00
+70
+4d
+4e
+01
+20
+60
+00
+00
+70
+4d
+50
+01
+20
+60
+00
+00
+6f
+e1
+4f
+c2
+d8
+40
+05
+28
+98
+46
+7c
+00
+24
+61
+00
+00
+20
+20
+13
+7a
+6f
+e0
+c9
+3f
+c0
+00
+03
+05
+20
+60
+00
+00
+db
+00
+00
+50
+58
+00
+04
+00
+9b
+06
+fc
+00
+20
+40
+7d
+31
+18
+07
+fe
+00
+67
+e1
+09
+5c
+df
+e0
+1f
+cc
+d8
+40
+00
+04
+dd
+60
+00
+04
+20
+20
+03
+0f
+60
+48
+89
+64
+da
+20
+4f
+aa
+da
+60
+00
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+22
+1a
+60
+a6
+01
+6f
+e1
+09
+5c
+9a
+66
+7c
+00
+24
+21
+03
+42
+1a
+42
+7e
+00
+9b
+06
+7e
+00
+20
+20
+03
+12
+1a
+66
+7c
+00
+20
+22
+83
+32
+1a
+42
+7e
+00
+9b
+00
+fe
+00
+9d
+66
+7e
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+34
+1a
+42
+7e
+00
+20
+20
+03
+26
+65
+60
+cf
+c2
+20
+60
+00
+00
+58
+00
+1f
+d0
+9a
+46
+7e
+00
+67
+e1
+4f
+c2
+1a
+42
+7e
+00
+9d
+60
+fe
+00
+68
+48
+89
+64
+da
+20
+4f
+aa
+20
+40
+5d
+c7
+6f
+e0
+c9
+3f
+c0
+00
+03
+3f
+20
+60
+00
+00
+6f
+e3
+4f
+aa
+67
+e2
+49
+9a
+20
+20
+44
+fe
+20
+20
+13
+7a
+6f
+e4
+4b
+bd
+c2
+9e
+83
+46
+20
+20
+45
+0e
+6f
+e0
+c9
+3f
+c0
+00
+03
+49
+20
+60
+00
+00
+68
+49
+4f
+c2
+58
+00
+1f
+d0
+98
+46
+04
+00
+da
+20
+49
+9a
+df
+20
+00
+04
+20
+40
+5d
+82
+68
+49
+4f
+c2
+18
+40
+84
+04
+60
+49
+4f
+c2
+20
+60
+00
+00
+20
+40
+04
+76
+6f
+e4
+4b
+bd
+c3
+0a
+03
+61
+20
+40
+5f
+f1
+20
+40
+60
+18
+68
+49
+44
+9b
+6f
+e1
+44
+a7
+1f
+e6
+fc
+02
+20
+40
+7d
+2e
+98
+46
+7c
+00
+20
+21
+03
+54
+20
+40
+3d
+d4
+6f
+e0
+c4
+a9
+c2
+80
+be
+39
+6f
+e0
+cd
+51
+20
+5a
+02
+dd
+6f
+e0
+cd
+50
+24
+7a
+00
+00
+6f
+e0
+c9
+3f
+c0
+00
+47
+26
+70
+49
+26
+ff
+20
+20
+3d
+35
+20
+40
+7f
+1a
+20
+40
+04
+82
+20
+40
+3d
+43
+6f
+e4
+4b
+bd
+c4
+0a
+00
+00
+6f
+e0
+c9
+05
+c1
+81
+00
+00
+6f
+e0
+c9
+04
+d8
+40
+00
+c0
+20
+20
+5f
+b3
+20
+40
+7f
+1a
+20
+40
+3e
+a3
+68
+48
+c9
+19
+20
+40
+5f
+56
+68
+48
+c9
+1a
+20
+40
+5f
+56
+68
+48
+c9
+24
+20
+40
+5f
+5a
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+8d
+1a
+40
+a4
+01
+c2
+00
+03
+7e
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+df
+56
+1a
+40
+a4
+01
+c2
+00
+03
+86
+20
+60
+00
+00
+70
+48
+93
+00
+6f
+e0
+c8
+87
+c0
+81
+03
+96
+70
+4b
+f8
+00
+6f
+e1
+4b
+f6
+1f
+e0
+fe
+01
+67
+e1
+4b
+f6
+6f
+e0
+cb
+f6
+c0
+00
+22
+d8
+20
+60
+00
+00
+6f
+e0
+cb
+f8
+1f
+e0
+fe
+01
+67
+e0
+cb
+f8
+c0
+7f
+a3
+03
+20
+20
+22
+d8
+6f
+e0
+c8
+87
+c1
+7f
+80
+00
+c0
+01
+03
+9f
+20
+20
+22
+fe
+6f
+e0
+c8
+62
+20
+3a
+23
+0e
+6f
+e2
+48
+13
+20
+7a
+00
+00
+67
+e2
+48
+99
+20
+20
+23
+0e
+6f
+e1
+48
+91
+1f
+e1
+7e
+e0
+20
+3a
+03
+ac
+6f
+e1
+48
+91
+1f
+e0
+fe
+01
+67
+e1
+48
+91
+20
+60
+00
+00
+20
+40
+25
+86
+20
+40
+26
+45
+24
+2c
+25
+8d
+24
+37
+a5
+8d
+20
+40
+03
+b2
+20
+20
+25
+72
+20
+40
+26
+5c
+6f
+e0
+c7
+ac
+2f
+e1
+f0
+08
+24
+60
+80
+00
+6f
+e0
+c7
+ad
+c0
+7f
+84
+3e
+67
+e0
+cd
+59
+20
+60
+00
+00
+20
+40
+26
+1b
+24
+34
+03
+bf
+20
+40
+03
+ce
+20
+40
+26
+d5
+20
+20
+26
+12
+6f
+e4
+4c
+48
+24
+3a
+26
+12
+6f
+e4
+4c
+50
+24
+3a
+26
+12
+6f
+e2
+4c
+58
+24
+3a
+26
+12
+6f
+e0
+c8
+c5
+c1
+00
+80
+00
+20
+40
+26
+89
+20
+40
+26
+a4
+24
+74
+00
+00
+6f
+e0
+cb
+f3
+24
+5a
+3d
+40
+6f
+e2
+48
+63
+20
+20
+26
+a1
+70
+48
+ae
+00
+69
+61
+01
+5f
+34
+73
+02
+00
+20
+40
+26
+45
+6f
+e0
+c8
+33
+c0
+00
+a6
+3b
+24
+2c
+03
+d9
+24
+37
+83
+d9
+20
+40
+03
+b2
+70
+4b
+f3
+00
+20
+20
+26
+3b
+6f
+e0
+c8
+af
+24
+7a
+00
+00
+6f
+e1
+48
+ab
+1f
+e0
+fe
+01
+67
+e1
+48
+ab
+6f
+e0
+c8
+ab
+c0
+7f
+a6
+63
+2f
+ef
+fe
+06
+20
+40
+83
+e4
+20
+40
+26
+68
+20
+20
+03
+cf
+20
+40
+00
+a6
+6f
+e0
+cc
+49
+1f
+e6
+7c
+09
+20
+22
+c5
+d9
+20
+60
+00
+00
+6f
+e0
+c8
+ae
+1f
+e0
+fe
+01
+67
+e0
+c8
+ae
+1f
+e1
+7e
+03
+20
+3a
+03
+ef
+20
+60
+00
+00
+6f
+e2
+48
+43
+68
+4a
+48
+95
+98
+46
+7c
+00
+20
+22
+a2
+62
+20
+20
+26
+86
+78
+34
+7c
+00
+20
+40
+14
+17
+6f
+e1
+c1
+74
+20
+3a
+7d
+94
+6f
+e0
+cd
+4e
+24
+3a
+7d
+94
+6f
+e0
+cd
+4f
+24
+3a
+7d
+94
+6f
+e0
+cd
+73
+24
+3a
+7d
+94
+6f
+e0
+c8
+c5
+c0
+00
+fd
+94
+20
+20
+26
+a9
+6f
+e2
+48
+43
+68
+4a
+48
+95
+98
+46
+7c
+00
+24
+22
+a6
+d6
+70
+41
+eb
+9f
+20
+60
+00
+00
+58
+00
+00
+00
+20
+60
+00
+00
+20
+40
+48
+ba
+20
+40
+78
+6c
+20
+20
+3e
+a3
+6f
+e0
+cb
+f5
+24
+5a
+77
+97
+70
+4b
+f5
+00
+20
+20
+77
+87
+1a
+62
+7e
+00
+c0
+1c
+84
+15
+c0
+1e
+04
+18
+c0
+1d
+04
+31
+20
+20
+42
+51
+20
+40
+04
+2c
+20
+40
+44
+5f
+20
+20
+47
+71
+20
+40
+04
+2c
+6f
+e2
+48
+43
+67
+e2
+48
+99
+67
+e2
+49
+9a
+20
+40
+25
+6a
+20
+40
+47
+f0
+20
+40
+44
+5f
+20
+20
+47
+68
+70
+4c
+0b
+02
+20
+40
+05
+9d
+70
+4b
+e0
+03
+20
+60
+00
+00
+df
+20
+00
+06
+d8
+c0
+4c
+04
+ef
+e0
+80
+06
+c0
+29
+84
+2c
+c0
+1c
+84
+2c
+c0
+23
+84
+2c
+c2
+00
+04
+26
+20
+60
+00
+00
+70
+4d
+5a
+03
+70
+4c
+a1
+01
+20
+60
+00
+00
+70
+4d
+58
+01
+20
+60
+00
+00
+6f
+e0
+c8
+ad
+24
+3a
+04
+3e
+6f
+e0
+c8
+93
+c0
+01
+04
+37
+c0
+01
+c7
+53
+20
+20
+47
+50
+6f
+e4
+4b
+bd
+c2
+97
+c7
+2b
+c2
+98
+47
+2b
+c3
+1d
+47
+20
+6f
+e2
+49
+9a
+20
+3a
+02
+ed
+20
+20
+47
+20
+70
+48
+ad
+00
+20
+40
+26
+3c
+5f
+ff
+ff
+ff
+67
+e4
+48
+63
+58
+00
+00
+00
+67
+e3
+c8
+d8
+70
+4b
+f3
+01
+20
+20
+03
+c8
+6f
+e0
+c9
+02
+20
+3a
+04
+4a
+70
+48
+ef
+4d
+20
+60
+00
+00
+70
+48
+ef
+4b
+20
+60
+00
+00
+20
+40
+3d
+b7
+20
+40
+04
+46
+20
+40
+48
+80
+20
+40
+22
+c2
+20
+40
+25
+42
+20
+40
+46
+e6
+20
+40
+04
+69
+20
+40
+04
+71
+20
+40
+04
+76
+20
+40
+04
+7a
+20
+40
+44
+1a
+20
+40
+44
+50
+20
+40
+3f
+3d
+20
+40
+44
+62
+20
+40
+04
+87
+20
+40
+04
+a2
+20
+40
+04
+a7
+20
+40
+04
+5f
+20
+20
+04
+aa
+6f
+e0
+cf
+eb
+20
+3a
+04
+66
+6f
+e0
+cf
+ea
+1f
+e0
+ff
+ff
+20
+3a
+02
+eb
+67
+e0
+cf
+ea
+20
+60
+00
+00
+6f
+e0
+cf
+e9
+67
+e0
+cf
+ea
+20
+60
+00
+00
+6f
+e0
+cd
+58
+20
+7a
+00
+00
+70
+4d
+58
+00
+6f
+e0
+c8
+a9
+24
+7a
+00
+00
+70
+4c
+a1
+01
+20
+40
+26
+1b
+20
+20
+03
+ce
+da
+60
+4d
+5b
+da
+40
+04
+74
+20
+20
+31
+cf
+70
+4d
+5a
+00
+20
+60
+00
+00
+6f
+e0
+c4
+a9
+c3
+80
+80
+00
+6f
+e0
+c9
+3f
+c0
+00
+47
+e8
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e0
+cc
+16
+20
+7a
+00
+00
+1f
+e0
+ff
+ff
+67
+e0
+cc
+16
+c2
+80
+48
+4a
+20
+20
+48
+3c
+20
+40
+48
+3c
+20
+40
+04
+94
+20
+40
+04
+96
+68
+48
+cc
+13
+20
+20
+48
+55
+6f
+e0
+cc
+11
+c1
+7f
+80
+00
+6f
+e0
+cb
+b9
+24
+7a
+00
+00
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e1
+4b
+d0
+68
+49
+4a
+c4
+98
+46
+04
+00
+6f
+e1
+4c
+14
+98
+46
+7e
+00
+20
+21
+04
+98
+20
+40
+04
+96
+68
+48
+cc
+11
+20
+20
+5f
+89
+68
+48
+cc
+12
+20
+20
+5f
+89
+20
+40
+04
+9d
+6f
+e0
+cd
+59
+c3
+00
+84
+94
+68
+48
+cc
+11
+20
+20
+5f
+8d
+6f
+e0
+cd
+59
+c3
+00
+04
+96
+70
+49
+36
+ff
+68
+48
+cc
+12
+20
+20
+5f
+8d
+da
+60
+4c
+9b
+da
+40
+04
+a5
+20
+20
+31
+d6
+70
+4c
+98
+01
+20
+20
+32
+5c
+da
+60
+4d
+73
+da
+40
+02
+66
+20
+20
+31
+cf
+da
+60
+4a
+c4
+da
+40
+04
+ad
+20
+20
+31
+d6
+6f
+e0
+c9
+3f
+c0
+00
+04
+3e
+20
+20
+42
+36
+78
+54
+7c
+00
+70
+4b
+9d
+00
+70
+4b
+9e
+00
+70
+4b
+9f
+00
+6f
+e0
+cd
+70
+c0
+00
+82
+6d
+c0
+01
+02
+72
+c0
+01
+82
+72
+c0
+02
+02
+76
+c0
+03
+02
+7f
+6f
+e0
+cc
+a1
+20
+3a
+04
+c9
+1f
+e0
+ff
+ff
+67
+e0
+cc
+a1
+20
+40
+04
+d7
+70
+4d
+5b
+0a
+20
+40
+44
+5f
+6f
+e0
+cd
+70
+c0
+02
+82
+7e
+d8
+a0
+4c
+01
+df
+20
+00
+0a
+20
+40
+7c
+68
+20
+40
+04
+da
+70
+4c
+0b
+00
+20
+60
+00
+00
+6f
+e0
+cd
+5a
+20
+7a
+00
+00
+6f
+e0
+cd
+58
+24
+7a
+00
+00
+68
+48
+cd
+5c
+6f
+e0
+cd
+5b
+98
+46
+7c
+00
+67
+e0
+cd
+5c
+20
+62
+80
+00
+d8
+a0
+4c
+01
+df
+20
+00
+0a
+20
+40
+7c
+68
+20
+40
+7d
+92
+20
+20
+04
+ef
+70
+41
+77
+03
+70
+4a
+c1
+0a
+20
+60
+00
+00
+6f
+e0
+cd
+74
+c0
+01
+05
+67
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+e7
+24
+21
+05
+02
+c2
+00
+04
+de
+6f
+e0
+cc
+9e
+20
+5a
+04
+f8
+70
+4c
+01
+00
+6f
+e0
+cc
+a7
+1f
+e6
+7c
+7f
+20
+22
+84
+fb
+d8
+c0
+4c
+a5
+d8
+a0
+4c
+02
+df
+20
+00
+08
+ef
+e0
+80
+06
+c0
+3f
+85
+00
+e7
+e0
+80
+05
+c2
+00
+04
+eb
+20
+40
+05
+72
+6f
+e0
+cc
+0b
+c0
+00
+fd
+92
+c0
+01
+04
+f6
+c0
+01
+84
+f6
+c0
+02
+04
+f6
+c0
+02
+84
+f6
+20
+40
+40
+95
+20
+20
+7d
+92
+d8
+a0
+4c
+a5
+df
+20
+00
+09
+20
+20
+7c
+68
+6f
+e1
+4c
+a5
+67
+e1
+4c
+02
+6f
+e3
+4c
+a8
+67
+e3
+4c
+04
+20
+20
+04
+ef
+58
+00
+00
+00
+20
+20
+04
+ed
+70
+4c
+01
+03
+68
+48
+cc
+9e
+18
+46
+7c
+00
+20
+22
+85
+67
+c0
+74
+05
+1e
+c0
+74
+85
+21
+c0
+75
+05
+24
+c0
+75
+85
+27
+c0
+76
+05
+2a
+c0
+76
+85
+2d
+c0
+77
+05
+30
+c0
+77
+85
+33
+c0
+78
+05
+36
+c0
+78
+85
+39
+c0
+79
+05
+3c
+c0
+79
+85
+3f
+c0
+7a
+05
+42
+c0
+7a
+85
+45
+c0
+7b
+05
+48
+c0
+7b
+85
+4b
+c0
+7c
+05
+4e
+c0
+7c
+85
+51
+c0
+7d
+05
+54
+c0
+7d
+85
+57
+c0
+7e
+05
+5c
+c0
+7e
+85
+5f
+c0
+7f
+85
+6e
+20
+20
+04
+ef
+58
+00
+01
+83
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+cd
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b7
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b6
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b5
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+ea
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+e9
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+e2
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+94
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+8a
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+92
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+70
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+6f
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+2a
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+25
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+24
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+26
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+27
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+21
+67
+e1
+4c
+02
+20
+20
+04
+ef
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+58
+00
+02
+23
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+30
+67
+e1
+4c
+02
+20
+20
+04
+ef
+6f
+e0
+cf
+a9
+c0
+00
+85
+64
+58
+00
+01
+ae
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+03
+07
+67
+e1
+4c
+02
+20
+20
+04
+ef
+70
+4c
+a1
+02
+6f
+e0
+cc
+9e
+20
+5a
+04
+f8
+70
+4d
+74
+00
+58
+00
+00
+03
+67
+e1
+cc
+01
+20
+20
+04
+ef
+70
+4c
+01
+02
+58
+00
+00
+02
+67
+e0
+cc
+02
+20
+20
+04
+ef
+6f
+e0
+c9
+3f
+c0
+80
+05
+79
+70
+4d
+58
+00
+6f
+e1
+4c
+01
+24
+5a
+04
+2f
+6f
+e3
+4c
+04
+24
+5a
+04
+2f
+6f
+e0
+cc
+01
+c0
+00
+05
+84
+c0
+00
+85
+7f
+c0
+01
+85
+8d
+c0
+01
+05
+95
+20
+60
+00
+00
+70
+4c
+0b
+01
+d8
+c0
+4c
+01
+d8
+a0
+48
+d8
+df
+20
+00
+07
+20
+20
+7c
+a1
+70
+4c
+0b
+02
+20
+40
+05
+9d
+20
+40
+04
+24
+6f
+e0
+cd
+5a
+67
+e0
+cc
+03
+d8
+c0
+4c
+01
+d8
+a0
+4b
+de
+df
+20
+00
+09
+20
+20
+7c
+a1
+70
+4c
+0b
+04
+20
+40
+05
+9d
+58
+00
+00
+03
+20
+40
+46
+21
+d8
+c0
+4c
+02
+d8
+a0
+4b
+df
+df
+20
+00
+02
+20
+20
+7c
+a1
+70
+4c
+0b
+05
+20
+40
+05
+9d
+58
+00
+00
+02
+67
+e4
+4b
+de
+67
+e4
+4b
+e7
+6f
+e0
+cc
+02
+67
+e0
+cb
+df
+20
+60
+00
+00
+df
+20
+00
+12
+d8
+a0
+4b
+de
+20
+20
+7c
+68
+62
+40
+aa
+55
+40
+00
+00
+40
+09
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+0c
+00
+80
+10
+20
+00
+00
+e4
+91
+96
+18
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+80
+01
+1f
+00
+00
+aa
+55
+08
+00
+bd
+4b
+04
+09
+32
+00
+03
+00
+01
+2c
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+01
+00
+c6
+4b
+01
+aa
+55
+01
+00
+f5
+4b
+01
+aa
+55
+01
+00
+97
+47
+ff
+aa
+55
+01
+00
+96
+47
+1e
+aa
+55
+03
+00
+91
+44
+01
+34
+49
+aa
+55
+01
+00
+36
+49
+ff
+aa
+55
+01
+00
+eb
+41
+01
+aa
+55
+01
+00
+85
+48
+07
+aa
+55
+02
+00
+a1
+48
+c7
+4a
+aa
+55
+02
+00
+0d
+49
+85
+90
+aa
+55
+02
+00
+10
+49
+75
+80
+aa
+55
+01
+00
+0f
+49
+63
+aa
+55
+01
+00
+d2
+48
+7d
+aa
+55
+01
+00
+58
+0b
+ff
+aa
+55
+0b
+00
+36
+4c
+c2
+c1
+85
+84
+83
+82
+81
+80
+c7
+c6
+c4
+aa
+55
+01
+00
+3d
+48
+02
+aa
+55
+05
+00
+94
+48
+01
+0f
+0f
+0f
+0f
+aa
+55
+01
+00
+6d
+48
+00
+aa
+55
+01
+00
+f4
+4b
+02
+aa
+55
+01
+00
+7e
+48
+00
+aa
+55
+01
+00
+0c
+49
+94
+aa
+55
+03
+00
+63
+48
+00
+48
+60
+aa
+55
+02
+00
+ca
+48
+0a
+00
+aa
+55
+02
+00
+c8
+48
+50
+00
+aa
+55
+04
+00
+cc
+4b
+02
+00
+32
+00
+aa
+55
+01
+00
+c7
+49
+02
+aa
+55
+08
+00
+4f
+44
+fb
+00
+48
+08
+fb
+00
+48
+08
+aa
+55
+01
+00
+99
+40
+01
+aa
+55
+01
+00
+77
+41
+20
+aa
+55
+01
+00
+9c
+4b
+20
+aa
+55
+01
+00
+82
+44
+06
+aa
+55
+06
+00
+a8
+40
+32
+ef
+6d
+ac
+24
+54
+aa
+55
+13
+00
+03
+46
+12
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+05
+00
+58
+44
+0e
+00
+01
+00
+02
+aa
+55
+08
+00
+f9
+4b
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+aa
+55
+01
+00
+48
+46
+0a
+aa
+55
+04
+00
+6b
+47
+01
+03
+00
+04
+aa
+55
+01
+00
+95
+47
+01
+aa
+55
+01
+00
+d8
+40
+01
+aa
+55
+06
+00
+7d
+43
+73
+83
+92
+a1
+b1
+c1
+aa
+55
+01
+00
+35
+44
+07
+aa
+55
+02
+00
+02
+4b
+96
+00
+aa
+55
+02
+00
+f9
+4a
+15
+00
+aa
+55
+02
+00
+5a
+43
+19
+00
+aa
+55
+04
+00
+fb
+4a
+1d
+00
+21
+00
+aa
+55
+02
+00
+d4
+43
+28
+00
+aa
+55
+02
+00
+ff
+4a
+30
+00
+aa
+55
+0c
+00
+ea
+43
+1f
+02
+01
+05
+03
+03
+12
+18
+03
+19
+c1
+03
+aa
+55
+14
+00
+e4
+4a
+13
+09
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+15
+00
+0a
+44
+1f
+13
+09
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+13
+00
+fa
+42
+12
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+08
+00
+75
+43
+07
+00
+07
+00
+20
+00
+2c
+01
+aa
+55
+06
+00
+de
+4a
+03
+12
+18
+ff
+00
+00
+aa
+55
+09
+00
+d7
+4f
+41
+70
+70
+6c
+65
+20
+49
+6e
+63
+aa
+55
+02
+00
+d5
+4f
+0a
+18
+aa
+55
+02
+00
+a7
+4f
+c1
+03
+aa
+55
+02
+00
+75
+4d
+bd
+00
+aa
+55
+08
+00
+e1
+4f
+01
+02
+e8
+04
+21
+70
+01
+00
+aa
+55
+02
+00
+56
+4d
+2a
+10
+aa
+55
+01
+00
+ff
+48
+0a
+aa
+55
+01
+00
+05
+49
+01
+aa
+55
+01
+00
+a6
+44
+00
+aa
+55
+02
+00
+da
+4b
+64
+00
+aa
+55
+02
+00
+d8
+4b
+90
+01
+aa
+55
+02
+00
+d6
+4b
+e8
+03
+aa
+55
+01
+00
+d2
+4b
+1e
+aa
+55
+02
+00
+08
+49
+58
+02
+aa
+55
+02
+00
+06
+49
+58
+02
+aa
+55
+02
+00
+d0
+4b
+70
+17
+aa
+55
+01
+00
+0b
+49
+64
+aa
+55
+01
+00
+0a
+49
+64
+aa
+55
+01
+00
+c9
+4b
+64
+aa
+55
+02
+00
+c7
+4b
+00
+40
+aa
+55
+02
+00
+ca
+4b
+00
+40
+aa
+55
+02
+00
+99
+4c
+b8
+0b
+aa
+55
+02
+00
+14
+4c
+58
+02
+aa
+55
+01
+00
+e9
+4f
+01
+aa
+55
+01
+00
+3f
+49
+00
+aa
+55
+01
+00
+c5
+4b
+01
+aa
+55
+01
+00
+40
+49
+33
+aa
+55
+01
+00
+51
+4d
+00
+aa
+55
+01
+00
+24
+49
+13
+aa
+55
+04
+00
+52
+4d
+7f
+06
+29
+14
+aa
+55
+03
+00
+c6
+44
+ff
+ff
+ff
+aa
+55
+02
+00
+19
+49
+ff
+ff
+aa
+55
+01
+00
+1d
+49
+ff
+aa
+55
+06
+00
+28
+49
+13
+80
+81
+ff
+ff
+ff
+aa
+55
+03
+00
+11
+4c
+82
+ff
+80
+aa
+55
+03
+00
+0e
+4c
+08
+14
+07
+aa
+55
+1c
+00
+1a
+4c
+0d
+0a
+0f
+04
+0e
+03
+0b
+09
+80
+05
+c4
+06
+81
+c7
+84
+82
+85
+c2
+12
+10
+11
+c1
+c6
+83
+ff
+ff
+ff
+ff
+aa
+55
+90
+00
+ae
+4c
+48
+00
+00
+00
+e6
+00
+7f
+3e
+14
+2b
+04
+29
+1d
+00
+35
+1e
+1a
+39
+16
+64
+1b
+e5
+3a
+1f
+08
+3c
+07
+3d
+06
+88
+3b
+20
+15
+17
+09
+0a
+19
+05
+22
+21
+18
+1c
+0d
+0b
+10
+11
+23
+24
+0c
+30
+0e
+3f
+36
+87
+2e
+25
+12
+40
+e0
+e3
+37
+e7
+41
+45
+13
+2f
+33
+34
+32
+38
+2d
+27
+47
+2a
+31
+e2
+28
+e6
+42
+43
+89
+e1
+e5
+44
+28
+45
+42
+43
+5f
+5c
+59
+2c
+44
+51
+4c
+00
+60
+5d
+5a
+62
+54
+4f
+49
+00
+61
+5e
+5b
+52
+55
+50
+4b
+4e
+12
+40
+0f
+52
+37
+50
+41
+26
+00
+e2
+e5
+f6
+f7
+f5
+f4
+f1
+fa
+e3
+d1
+d3
+d2
+d4
+f8
+d5
+91
+d0
+e7
+f9
+f3
+fb
+fb
+90
+aa
+55
+13
+00
+5d
+4d
+01
+fb
+ad
+a5
+a6
+a7
+a8
+eb
+e9
+ec
+ed
+ee
+f3
+f4
+a9
+01
+00
+00
+01
+aa
+55
+08
+00
+9e
+00
+00
+00
+08
+00
+00
+00
+00
+00
+aa
+55
+08
+00
+7a
+41
+88
+12
+ce
+70
+3f
+0c
+37
+07
+aa
+55
+03
+00
+83
+41
+9d
+10
+24
+aa
+55
+01
+00
+5c
+41
+00
+aa
+55
+01
+00
+c5
+40
+18
+aa
+55
+01
+00
+d8
+44
+d3
+aa
+55
+01
+00
+d7
+44
+00
+aa
+55
+01
+00
+d6
+44
+29
+aa
+55
+01
+00
+d5
+44
+00
+aa
+55
+05
+00
+ed
+41
+ff
+88
+66
+44
+00
+aa
+55
+01
+00
+94
+44
+0c
+aa
+55
+08
+00
+b5
+40
+24
+00
+00
+02
+24
+00
+00
+02
+aa
+55
+02
+00
+c3
+40
+20
+00
+aa
+55
+04
+00
+bf
+40
+20
+00
+00
+20
+aa
+55
+04
+00
+c6
+40
+80
+04
+00
+0c
+aa
+55
+05
+00
+fe
+45
+09
+0e
+05
+04
+00
+aa
+55
+01
+00
+d4
+44
+7f
+aa
+55
+01
+00
+f2
+41
+ff
+aa
+55
+02
+00
+ca
+40
+f2
+41
+aa
+55
+02
+00
+db
+44
+06
+07
+55
+aa
+aa
+55
+4a
+88
+2c
+a0
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+95
+d1
Index: output/flash.dat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/flash.dat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/flash.dat	(working copy)
@@ -0,0 +1,8192 @@
+00
+02
+aa
+55
+82
+16
+c2
+84
+00
+17
+c0
+00
+00
+21
+c0
+01
+80
+a2
+c0
+41
+00
+3e
+c0
+45
+00
+31
+c0
+45
+80
+3b
+c0
+4f
+80
+4e
+c0
+52
+00
+50
+c0
+56
+80
+5a
+c0
+61
+03
+53
+c0
+62
+bd
+33
+c0
+63
+03
+67
+c0
+63
+83
+69
+c0
+64
+03
+73
+c0
+66
+04
+b0
+c0
+67
+84
+07
+c0
+68
+84
+08
+c0
+69
+04
+08
+c0
+6a
+04
+10
+c0
+6b
+84
+4c
+c0
+6d
+83
+43
+c0
+6e
+04
+09
+20
+20
+13
+7c
+c1
+7f
+80
+00
+c0
+41
+04
+0c
+c0
+6f
+83
+8c
+c0
+70
+03
+9b
+c0
+74
+03
+a5
+c0
+74
+83
+ba
+c0
+75
+03
+e9
+c0
+75
+83
+f4
+c0
+76
+04
+01
+20
+20
+13
+7c
+20
+40
+3c
+fe
+24
+34
+08
+02
+6f
+e0
+cb
+f5
+20
+3a
+08
+02
+6f
+e0
+c9
+24
+c0
+7f
+88
+02
+1f
+e2
+0e
+00
+6f
+e2
+09
+8a
+af
+ec
+00
+00
+20
+40
+82
+fb
+20
+20
+08
+02
+6f
+e0
+80
+4c
+79
+3f
+fe
+05
+79
+3f
+fe
+02
+67
+e0
+80
+4c
+20
+20
+0b
+40
+6f
+e0
+c1
+eb
+c0
+4a
+00
+35
+c0
+4f
+80
+38
+20
+20
+12
+1b
+70
+8a
+39
+10
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+39
+b0
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+75
+03
+70
+8a
+85
+00
+20
+20
+12
+52
+18
+00
+2a
+08
+18
+00
+2a
+00
+78
+50
+fc
+00
+78
+50
+7c
+00
+78
+2f
+7c
+00
+70
+89
+00
+05
+20
+00
+00
+02
+70
+89
+00
+00
+20
+40
+11
+5d
+70
+8a
+16
+00
+70
+8a
+0a
+80
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+70
+8a
+0b
+00
+20
+20
+12
+9c
+70
+00
+7f
+00
+20
+20
+13
+b7
+20
+40
+14
+17
+6f
+e1
+c1
+74
+20
+7a
+00
+00
+6f
+e0
+cd
+4e
+24
+7a
+00
+00
+6f
+e0
+cd
+4f
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+20
+20
+14
+91
+20
+40
+6d
+29
+20
+40
+00
+61
+20
+40
+00
+7e
+20
+40
+00
+9c
+20
+75
+80
+00
+20
+40
+3c
+54
+20
+20
+3c
+50
+20
+75
+80
+00
+20
+40
+31
+46
+20
+40
+25
+f1
+20
+40
+22
+96
+20
+40
+3c
+ac
+20
+40
+00
+6f
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+40
+04
+82
+6f
+e4
+4b
+bd
+c2
+9e
+83
+02
+c2
+89
+c5
+50
+c2
+89
+45
+11
+20
+60
+00
+00
+58
+00
+4d
+77
+67
+e1
+46
+67
+20
+40
+04
+66
+70
+4c
+98
+00
+58
+00
+01
+95
+67
+e1
+48
+eb
+58
+00
+01
+2c
+e7
+e1
+00
+05
+58
+00
+01
+4b
+e7
+e1
+00
+05
+20
+60
+00
+00
+6f
+f0
+81
+21
+58
+00
+00
+00
+67
+f0
+80
+4d
+20
+20
+5b
+9a
+68
+48
+c9
+19
+20
+40
+3e
+71
+68
+48
+c9
+1a
+20
+40
+3e
+71
+68
+48
+c9
+24
+60
+48
+c9
+26
+20
+40
+3e
+71
+58
+00
+4c
+1a
+67
+e1
+4c
+42
+58
+00
+4c
+22
+67
+e1
+4c
+44
+58
+00
+4c
+36
+67
+e1
+4c
+46
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+be
+71
+1a
+40
+a4
+01
+c2
+00
+00
+8e
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+a3
+1a
+40
+a4
+01
+c2
+00
+00
+96
+20
+20
+3d
+48
+58
+5d
+48
+00
+67
+e2
+48
+c0
+6f
+e0
+c4
+a9
+c4
+00
+00
+00
+20
+40
+46
+ed
+20
+60
+00
+00
+20
+40
+00
+a6
+20
+40
+01
+31
+20
+40
+02
+b9
+20
+20
+08
+13
+20
+40
+00
+8b
+20
+40
+01
+2b
+58
+00
+00
+00
+67
+e1
+4c
+95
+d8
+c0
+4c
+48
+d8
+a0
+4c
+5c
+df
+20
+00
+14
+20
+40
+7c
+a1
+58
+00
+4c
+48
+67
+e1
+4c
+8f
+58
+00
+4c
+84
+67
+e1
+4c
+91
+20
+40
+01
+29
+20
+40
+01
+23
+20
+40
+01
+27
+6f
+e1
+4c
+95
+1f
+e0
+fe
+01
+67
+e1
+4c
+95
+c2
+84
+81
+18
+68
+48
+cc
+0f
+20
+40
+5f
+7d
+24
+20
+80
+b5
+20
+40
+00
+df
+20
+40
+00
+f9
+20
+40
+01
+29
+6f
+e1
+4c
+46
+1f
+e2
+24
+00
+70
+4c
+94
+00
+e8
+40
+80
+12
+6f
+e1
+4c
+44
+1f
+e2
+22
+00
+1a
+22
+26
+00
+df
+20
+00
+14
+ef
+e0
+80
+11
+98
+46
+7c
+00
+20
+22
+80
+d3
+1a
+20
+a2
+01
+c2
+00
+00
+c7
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+0a
+20
+21
+00
+c2
+20
+60
+00
+00
+6f
+e1
+4c
+8f
+1f
+e2
+0a
+00
+1a
+22
+7e
+00
+9a
+66
+7e
+00
+98
+a0
+8a
+00
+6f
+e1
+4c
+91
+1f
+e2
+26
+00
+6f
+e0
+cc
+94
+9a
+60
+a6
+00
+ef
+e0
+80
+13
+e7
+e0
+80
+05
+20
+20
+00
+cc
+20
+00
+00
+14
+70
+4c
+97
+00
+20
+40
+01
+2b
+70
+4c
+94
+00
+20
+40
+01
+25
+20
+40
+00
+ec
+20
+40
+01
+23
+20
+40
+00
+ec
+1f
+e6
+7c
+09
+20
+21
+00
+e3
+20
+40
+01
+25
+20
+40
+00
+ec
+20
+20
+01
+27
+70
+4c
+93
+00
+20
+00
+00
+96
+20
+40
+01
+0c
+6f
+e1
+4c
+91
+1f
+e2
+0a
+00
+6f
+e0
+cc
+94
+98
+a0
+8a
+00
+6f
+e0
+cc
+93
+e7
+e0
+80
+05
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+20
+60
+00
+00
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+70
+4c
+94
+00
+70
+4c
+93
+00
+e8
+40
+80
+12
+28
+4f
+fe
+07
+20
+20
+81
+06
+20
+40
+5f
+8d
+20
+40
+01
+0c
+e8
+40
+80
+12
+20
+40
+5f
+89
+e8
+40
+80
+12
+20
+40
+5f
+a3
+1a
+40
+a4
+01
+6f
+e1
+4c
+8f
+20
+40
+00
+f0
+1f
+e6
+7c
+13
+20
+21
+00
+fc
+20
+60
+00
+00
+6f
+e1
+4c
+42
+1f
+e2
+26
+00
+df
+20
+00
+08
+e8
+40
+80
+13
+20
+40
+5f
+7d
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+79
+20
+fe
+07
+67
+e0
+cc
+93
+1a
+60
+a6
+01
+c2
+00
+01
+0f
+20
+60
+00
+00
+68
+48
+cc
+10
+20
+40
+5f
+8d
+20
+00
+00
+14
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+00
+17
+70
+6f
+e0
+cc
+97
+1f
+e0
+fe
+01
+67
+e0
+cc
+97
+c2
+83
+5c
+7b
+20
+20
+00
+a6
+68
+48
+cc
+0f
+20
+20
+5f
+89
+68
+48
+cc
+0f
+20
+20
+5f
+8d
+68
+48
+cc
+0f
+20
+20
+5f
+74
+68
+48
+cc
+0e
+20
+20
+5f
+89
+68
+48
+cc
+0e
+20
+20
+5f
+8d
+70
+4c
+98
+00
+6f
+e1
+4c
+99
+67
+e1
+4c
+9b
+20
+60
+00
+00
+da
+20
+4c
+48
+da
+40
+4c
+5c
+df
+20
+00
+14
+20
+40
+7d
+33
+24
+22
+81
+2d
+20
+40
+01
+6b
+20
+5a
+01
+2d
+20
+40
+01
+77
+6f
+e0
+cb
+ac
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+00
+80
+00
+c1
+01
+00
+00
+c1
+02
+00
+00
+70
+4c
+94
+00
+da
+20
+4c
+48
+da
+40
+4c
+70
+e8
+40
+80
+11
+ef
+e0
+80
+12
+98
+42
+fe
+00
+20
+3a
+01
+63
+67
+e0
+cc
+93
+60
+48
+cc
+a3
+e0
+40
+80
+12
+70
+4c
+a1
+01
+70
+4c
+a4
+00
+6f
+e0
+cc
+93
+c3
+00
+01
+58
+6f
+e0
+cc
+94
+1f
+ef
+fe
+08
+68
+48
+cc
+a4
+98
+40
+fe
+00
+d8
+c0
+4c
+ae
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+67
+e0
+cc
+a2
+20
+40
+01
+a5
+20
+40
+01
+f5
+20
+40
+02
+83
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+67
+e0
+cc
+93
+6f
+e0
+cc
+a3
+1f
+e3
+7e
+00
+67
+e0
+cc
+a3
+6f
+e0
+cc
+a4
+1f
+e0
+fe
+01
+67
+e0
+cc
+a4
+1f
+e6
+7c
+07
+20
+21
+01
+4b
+1a
+20
+a2
+01
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+20
+21
+01
+42
+20
+60
+00
+00
+6f
+e4
+4c
+48
+24
+7a
+00
+00
+6f
+e4
+4c
+50
+24
+7a
+00
+00
+6f
+e2
+4c
+58
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+03
+00
+00
+70
+4d
+70
+00
+20
+60
+00
+00
+70
+4b
+ac
+00
+70
+4c
+9e
+00
+da
+20
+4c
+48
+df
+20
+00
+14
+70
+4c
+9d
+00
+ef
+e0
+80
+11
+20
+3a
+01
+a0
+68
+48
+cc
+9d
+18
+40
+84
+01
+60
+48
+cc
+9d
+1f
+e2
+04
+00
+1f
+e0
+ff
+ff
+98
+41
+7e
+00
+24
+22
+81
+7e
+6f
+e0
+cc
+9d
+68
+48
+cc
+9e
+98
+40
+84
+00
+60
+48
+cc
+9e
+1f
+e6
+7c
+01
+20
+21
+01
+a0
+18
+46
+7c
+02
+20
+21
+01
+a0
+70
+4c
+94
+00
+70
+4c
+9f
+00
+e8
+40
+80
+11
+da
+40
+4c
+48
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+24
+21
+01
+a0
+ef
+e0
+80
+12
+98
+41
+7c
+00
+20
+22
+81
+a3
+6f
+e0
+cc
+9f
+1f
+e0
+fe
+01
+67
+e0
+cc
+9f
+1f
+e6
+7c
+01
+20
+21
+01
+a3
+70
+4b
+ac
+01
+20
+60
+00
+00
+1a
+20
+a2
+01
+c2
+00
+01
+7b
+20
+60
+00
+00
+1a
+40
+a4
+01
+20
+20
+01
+91
+6f
+e0
+cc
+a3
+24
+5a
+02
+0a
+6f
+e0
+cd
+4e
+24
+5a
+01
+bb
+6f
+e0
+cd
+5d
+68
+48
+cd
+4e
+98
+42
+fe
+00
+20
+22
+81
+b8
+6f
+e0
+cc
+a2
+c0
+14
+81
+c6
+1f
+e6
+7c
+45
+24
+61
+00
+00
+d8
+40
+00
+3a
+98
+46
+7e
+00
+24
+61
+00
+00
+d8
+c0
+4d
+5f
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+20
+20
+01
+e5
+6f
+e0
+cc
+a2
+c0
+26
+01
+c8
+20
+60
+00
+00
+6f
+e0
+cc
+a2
+c0
+29
+01
+ca
+c0
+28
+81
+ce
+c0
+28
+01
+d2
+c0
+27
+81
+d6
+c0
+70
+01
+da
+c0
+16
+01
+e2
+c0
+0b
+01
+e7
+c0
+03
+81
+ed
+c0
+02
+01
+f1
+20
+60
+00
+00
+6f
+e0
+cd
+5e
+20
+20
+01
+e5
+6f
+e0
+cd
+6b
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4b
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4e
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4a
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4d
+20
+20
+01
+e5
+6f
+e0
+cd
+6d
+20
+7a
+00
+00
+6f
+e0
+cf
+a9
+c0
+00
+01
+e0
+58
+00
+00
+fd
+20
+20
+01
+e5
+58
+00
+00
+aa
+20
+20
+01
+e5
+6f
+e0
+cd
+6e
+20
+7a
+00
+00
+58
+00
+00
+ab
+67
+e0
+cc
+a2
+20
+60
+00
+00
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+01
+70
+4c
+16
+06
+58
+00
+00
+00
+20
+20
+01
+e5
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+00
+20
+20
+01
+ea
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+02
+20
+20
+01
+ea
+6f
+e0
+cc
+a2
+c0
+23
+02
+0c
+c0
+25
+82
+12
+c0
+27
+02
+18
+c0
+25
+02
+1a
+c0
+26
+82
+1c
+c0
+52
+82
+1e
+c0
+53
+02
+25
+c0
+53
+82
+27
+c0
+54
+02
+29
+c0
+54
+82
+2b
+c0
+55
+02
+36
+c0
+56
+82
+3d
+c0
+55
+82
+44
+c0
+56
+02
+4f
+c0
+7d
+82
+58
+20
+60
+00
+00
+6f
+e0
+cc
+a3
+c4
+00
+00
+00
+70
+4d
+73
+0a
+20
+60
+00
+00
+70
+4d
+73
+00
+20
+60
+00
+00
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+0a
+70
+4d
+72
+20
+20
+20
+02
+5d
+70
+4d
+72
+52
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+51
+20
+20
+02
+13
+70
+4d
+72
+50
+20
+20
+02
+13
+70
+4d
+72
+4f
+20
+20
+02
+13
+70
+4d
+72
+04
+70
+4d
+71
+01
+6f
+e0
+cf
+a9
+c0
+00
+02
+5d
+c0
+00
+82
+5d
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+06
+20
+20
+02
+1f
+70
+4d
+72
+19
+20
+20
+02
+1f
+70
+4d
+72
+1b
+20
+20
+02
+1f
+6f
+e0
+cf
+a9
+c0
+00
+02
+30
+c0
+01
+82
+33
+58
+00
+00
+fc
+20
+20
+01
+e5
+70
+4d
+71
+08
+70
+4d
+72
+0f
+20
+20
+02
+5d
+70
+4d
+71
+09
+70
+4d
+72
+14
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+3a
+58
+00
+00
+fd
+20
+20
+01
+e5
+70
+4d
+71
+09
+70
+4d
+72
+12
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+01
+82
+41
+58
+00
+00
+fa
+20
+20
+01
+e5
+70
+4d
+71
+08
+70
+4d
+72
+2c
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+4b
+c0
+00
+82
+4d
+70
+4d
+71
+01
+70
+4d
+72
+2c
+20
+40
+02
+06
+20
+20
+02
+5d
+70
+4d
+71
+08
+20
+20
+02
+48
+70
+4d
+71
+02
+20
+20
+02
+48
+6f
+e0
+cf
+a9
+c0
+00
+02
+55
+c0
+00
+82
+55
+70
+4d
+71
+01
+70
+4d
+72
+52
+20
+20
+02
+5d
+70
+4d
+71
+08
+70
+4d
+72
+2b
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c1
+80
+00
+00
+70
+4d
+71
+08
+70
+4d
+72
+07
+20
+20
+02
+5d
+70
+4c
+a2
+00
+6f
+e0
+cc
+a3
+c3
+00
+02
+64
+6f
+e0
+cd
+70
+c0
+01
+82
+70
+70
+4d
+70
+01
+20
+60
+00
+00
+70
+4d
+70
+04
+20
+60
+00
+00
+70
+4d
+70
+06
+20
+60
+00
+00
+67
+e0
+cc
+02
+60
+48
+cc
+04
+20
+40
+7d
+92
+70
+4c
+01
+00
+20
+20
+04
+ef
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+70
+4d
+70
+02
+20
+60
+00
+00
+70
+4d
+70
+03
+6f
+e0
+cd
+71
+68
+48
+cd
+72
+20
+20
+02
+68
+70
+4c
+01
+00
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+6f
+e0
+cd
+73
+20
+3a
+02
+66
+70
+4d
+70
+05
+20
+60
+00
+00
+20
+20
+02
+6a
+70
+4d
+70
+00
+df
+e0
+00
+00
+d8
+40
+00
+00
+20
+20
+02
+68
+6f
+e0
+cc
+a2
+d8
+40
+00
+e0
+98
+46
+7c
+00
+24
+21
+02
+95
+1f
+e6
+7c
+e7
+24
+21
+02
+b2
+1f
+e1
+7e
+07
+1f
+e2
+0e
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+91
+6f
+e0
+cc
+a5
+f9
+3f
+fe
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+6f
+e0
+cc
+a5
+f9
+20
+7e
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+70
+4c
+ad
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+a6
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+98
+46
+7c
+00
+24
+22
+82
+a4
+ef
+e0
+80
+06
+18
+c0
+8d
+fe
+e7
+e0
+80
+06
+20
+7a
+00
+00
+18
+c0
+8c
+01
+e0
+40
+80
+06
+c2
+00
+02
+9b
+20
+60
+00
+00
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+20
+3a
+02
+af
+98
+46
+7c
+00
+20
+62
+80
+00
+c2
+00
+02
+a9
+20
+60
+00
+00
+18
+c0
+8d
+ff
+e0
+40
+80
+06
+20
+60
+00
+00
+70
+4d
+74
+01
+6f
+e0
+cc
+a3
+2f
+ec
+00
+00
+20
+40
+82
+b7
+20
+20
+02
+95
+70
+4d
+74
+02
+20
+60
+00
+00
+20
+40
+02
+cd
+70
+4d
+4e
+00
+70
+4d
+4f
+00
+70
+4d
+50
+00
+70
+4f
+eb
+00
+6f
+e0
+cc
+a5
+24
+5a
+02
+f7
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+7f
+20
+42
+82
+f9
+1f
+e6
+7c
+de
+20
+42
+82
+fb
+c2
+00
+02
+c2
+6f
+e0
+cd
+51
+20
+3a
+02
+dd
+6f
+e0
+c9
+3f
+c0
+00
+02
+e2
+20
+60
+00
+00
+6f
+e0
+cd
+51
+24
+7a
+00
+00
+68
+48
+c9
+24
+18
+46
+7c
+ff
+20
+62
+80
+00
+20
+40
+5f
+7d
+24
+20
+82
+d9
+df
+20
+00
+08
+d8
+a0
+4c
+a5
+20
+40
+7c
+68
+70
+4c
+a7
+de
+20
+60
+00
+00
+6f
+e0
+cc
+a7
+c1
+ef
+00
+00
+70
+4c
+a7
+00
+20
+60
+00
+00
+6f
+e0
+cd
+50
+20
+7a
+00
+00
+6f
+e0
+c9
+3f
+c0
+00
+02
+ed
+20
+60
+00
+00
+6f
+e1
+4c
+a7
+68
+49
+4d
+54
+98
+46
+7c
+00
+20
+22
+82
+e9
+18
+50
+84
+00
+98
+46
+7c
+00
+24
+62
+80
+00
+70
+4f
+eb
+01
+20
+60
+00
+00
+70
+4f
+eb
+00
+20
+40
+02
+fb
+70
+4d
+58
+00
+20
+40
+02
+fd
+70
+4c
+a1
+00
+6f
+e1
+48
+8b
+24
+7a
+00
+00
+58
+00
+00
+00
+67
+e1
+4a
+c4
+20
+40
+04
+94
+20
+40
+04
+96
+20
+20
+47
+41
+70
+4d
+4f
+01
+20
+60
+00
+00
+70
+4d
+4e
+01
+20
+60
+00
+00
+70
+4d
+50
+01
+20
+60
+00
+00
+6f
+e1
+4f
+c2
+d8
+40
+05
+28
+98
+46
+7c
+00
+24
+61
+00
+00
+20
+20
+13
+7a
+6f
+e0
+c9
+3f
+c0
+00
+03
+05
+20
+60
+00
+00
+db
+00
+00
+50
+58
+00
+04
+00
+9b
+06
+fc
+00
+20
+40
+7d
+31
+18
+07
+fe
+00
+67
+e1
+09
+5c
+df
+e0
+1f
+cc
+d8
+40
+00
+04
+dd
+60
+00
+04
+20
+20
+03
+0f
+60
+48
+89
+64
+da
+20
+4f
+aa
+da
+60
+00
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+22
+1a
+60
+a6
+01
+6f
+e1
+09
+5c
+9a
+66
+7c
+00
+24
+21
+03
+42
+1a
+42
+7e
+00
+9b
+06
+7e
+00
+20
+20
+03
+12
+1a
+66
+7c
+00
+20
+22
+83
+32
+1a
+42
+7e
+00
+9b
+00
+fe
+00
+9d
+66
+7e
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+34
+1a
+42
+7e
+00
+20
+20
+03
+26
+65
+60
+cf
+c2
+20
+60
+00
+00
+58
+00
+1f
+d0
+9a
+46
+7e
+00
+67
+e1
+4f
+c2
+1a
+42
+7e
+00
+9d
+60
+fe
+00
+68
+48
+89
+64
+da
+20
+4f
+aa
+20
+40
+5d
+c7
+6f
+e0
+c9
+3f
+c0
+00
+03
+3f
+20
+60
+00
+00
+6f
+e3
+4f
+aa
+67
+e2
+49
+9a
+20
+20
+44
+fe
+20
+20
+13
+7a
+6f
+e4
+4b
+bd
+c2
+9e
+83
+46
+20
+20
+45
+0e
+6f
+e0
+c9
+3f
+c0
+00
+03
+49
+20
+60
+00
+00
+68
+49
+4f
+c2
+58
+00
+1f
+d0
+98
+46
+04
+00
+da
+20
+49
+9a
+df
+20
+00
+04
+20
+40
+5d
+82
+68
+49
+4f
+c2
+18
+40
+84
+04
+60
+49
+4f
+c2
+20
+60
+00
+00
+20
+40
+04
+76
+6f
+e4
+4b
+bd
+c3
+0a
+03
+61
+20
+40
+5f
+f1
+20
+40
+60
+18
+68
+49
+44
+9b
+6f
+e1
+44
+a7
+1f
+e6
+fc
+02
+20
+40
+7d
+2e
+98
+46
+7c
+00
+20
+21
+03
+54
+20
+40
+3d
+d4
+6f
+e0
+c4
+a9
+c2
+80
+be
+39
+6f
+e0
+cd
+51
+20
+5a
+02
+dd
+6f
+e0
+cd
+50
+24
+7a
+00
+00
+6f
+e0
+c9
+3f
+c0
+00
+47
+26
+70
+49
+26
+ff
+20
+20
+3d
+35
+20
+40
+7f
+1a
+20
+40
+04
+82
+20
+40
+3d
+43
+6f
+e4
+4b
+bd
+c4
+0a
+00
+00
+6f
+e0
+c9
+05
+c1
+81
+00
+00
+6f
+e0
+c9
+04
+d8
+40
+00
+c0
+20
+20
+5f
+b3
+20
+40
+7f
+1a
+20
+40
+3e
+a3
+68
+48
+c9
+19
+20
+40
+5f
+56
+68
+48
+c9
+1a
+20
+40
+5f
+56
+68
+48
+c9
+24
+20
+40
+5f
+5a
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+8d
+1a
+40
+a4
+01
+c2
+00
+03
+7e
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+df
+56
+1a
+40
+a4
+01
+c2
+00
+03
+86
+20
+60
+00
+00
+70
+48
+93
+00
+6f
+e0
+c8
+87
+c0
+81
+03
+96
+70
+4b
+f8
+00
+6f
+e1
+4b
+f6
+1f
+e0
+fe
+01
+67
+e1
+4b
+f6
+6f
+e0
+cb
+f6
+c0
+00
+22
+d8
+20
+60
+00
+00
+6f
+e0
+cb
+f8
+1f
+e0
+fe
+01
+67
+e0
+cb
+f8
+c0
+7f
+a3
+03
+20
+20
+22
+d8
+6f
+e0
+c8
+87
+c1
+7f
+80
+00
+c0
+01
+03
+9f
+20
+20
+22
+fe
+6f
+e0
+c8
+62
+20
+3a
+23
+0e
+6f
+e2
+48
+13
+20
+7a
+00
+00
+67
+e2
+48
+99
+20
+20
+23
+0e
+6f
+e1
+48
+91
+1f
+e1
+7e
+e0
+20
+3a
+03
+ac
+6f
+e1
+48
+91
+1f
+e0
+fe
+01
+67
+e1
+48
+91
+20
+60
+00
+00
+20
+40
+25
+86
+20
+40
+26
+45
+24
+2c
+25
+8d
+24
+37
+a5
+8d
+20
+40
+03
+b2
+20
+20
+25
+72
+20
+40
+26
+5c
+6f
+e0
+c7
+ac
+2f
+e1
+f0
+08
+24
+60
+80
+00
+6f
+e0
+c7
+ad
+c0
+7f
+84
+3e
+67
+e0
+cd
+59
+20
+60
+00
+00
+20
+40
+26
+1b
+24
+34
+03
+bf
+20
+40
+03
+ce
+20
+40
+26
+d5
+20
+20
+26
+12
+6f
+e4
+4c
+48
+24
+3a
+26
+12
+6f
+e4
+4c
+50
+24
+3a
+26
+12
+6f
+e2
+4c
+58
+24
+3a
+26
+12
+6f
+e0
+c8
+c5
+c1
+00
+80
+00
+20
+40
+26
+89
+20
+40
+26
+a4
+24
+74
+00
+00
+6f
+e0
+cb
+f3
+24
+5a
+3d
+40
+6f
+e2
+48
+63
+20
+20
+26
+a1
+70
+48
+ae
+00
+69
+61
+01
+5f
+34
+73
+02
+00
+20
+40
+26
+45
+6f
+e0
+c8
+33
+c0
+00
+a6
+3b
+24
+2c
+03
+d9
+24
+37
+83
+d9
+20
+40
+03
+b2
+70
+4b
+f3
+00
+20
+20
+26
+3b
+6f
+e0
+c8
+af
+24
+7a
+00
+00
+6f
+e1
+48
+ab
+1f
+e0
+fe
+01
+67
+e1
+48
+ab
+6f
+e0
+c8
+ab
+c0
+7f
+a6
+63
+2f
+ef
+fe
+06
+20
+40
+83
+e4
+20
+40
+26
+68
+20
+20
+03
+cf
+20
+40
+00
+a6
+6f
+e0
+cc
+49
+1f
+e6
+7c
+09
+20
+22
+c5
+d9
+20
+60
+00
+00
+6f
+e0
+c8
+ae
+1f
+e0
+fe
+01
+67
+e0
+c8
+ae
+1f
+e1
+7e
+03
+20
+3a
+03
+ef
+20
+60
+00
+00
+6f
+e2
+48
+43
+68
+4a
+48
+95
+98
+46
+7c
+00
+20
+22
+a2
+62
+20
+20
+26
+86
+78
+34
+7c
+00
+20
+40
+14
+17
+6f
+e1
+c1
+74
+20
+3a
+7d
+94
+6f
+e0
+cd
+4e
+24
+3a
+7d
+94
+6f
+e0
+cd
+4f
+24
+3a
+7d
+94
+6f
+e0
+cd
+73
+24
+3a
+7d
+94
+6f
+e0
+c8
+c5
+c0
+00
+fd
+94
+20
+20
+26
+a9
+6f
+e2
+48
+43
+68
+4a
+48
+95
+98
+46
+7c
+00
+24
+22
+a6
+d6
+70
+41
+eb
+9f
+20
+60
+00
+00
+58
+00
+00
+00
+20
+60
+00
+00
+20
+40
+48
+ba
+20
+40
+78
+6c
+20
+20
+3e
+a3
+6f
+e0
+cb
+f5
+24
+5a
+77
+97
+70
+4b
+f5
+00
+20
+20
+77
+87
+1a
+62
+7e
+00
+c0
+1c
+84
+15
+c0
+1e
+04
+18
+c0
+1d
+04
+31
+20
+20
+42
+51
+20
+40
+04
+2c
+20
+40
+44
+5f
+20
+20
+47
+71
+20
+40
+04
+2c
+6f
+e2
+48
+43
+67
+e2
+48
+99
+67
+e2
+49
+9a
+20
+40
+25
+6a
+20
+40
+47
+f0
+20
+40
+44
+5f
+20
+20
+47
+68
+70
+4c
+0b
+02
+20
+40
+05
+9d
+70
+4b
+e0
+03
+20
+60
+00
+00
+df
+20
+00
+06
+d8
+c0
+4c
+04
+ef
+e0
+80
+06
+c0
+29
+84
+2c
+c0
+1c
+84
+2c
+c0
+23
+84
+2c
+c2
+00
+04
+26
+20
+60
+00
+00
+70
+4d
+5a
+03
+70
+4c
+a1
+01
+20
+60
+00
+00
+70
+4d
+58
+01
+20
+60
+00
+00
+6f
+e0
+c8
+ad
+24
+3a
+04
+3e
+6f
+e0
+c8
+93
+c0
+01
+04
+37
+c0
+01
+c7
+53
+20
+20
+47
+50
+6f
+e4
+4b
+bd
+c2
+97
+c7
+2b
+c2
+98
+47
+2b
+c3
+1d
+47
+20
+6f
+e2
+49
+9a
+20
+3a
+02
+ed
+20
+20
+47
+20
+70
+48
+ad
+00
+20
+40
+26
+3c
+5f
+ff
+ff
+ff
+67
+e4
+48
+63
+58
+00
+00
+00
+67
+e3
+c8
+d8
+70
+4b
+f3
+01
+20
+20
+03
+c8
+6f
+e0
+c9
+02
+20
+3a
+04
+4a
+70
+48
+ef
+4d
+20
+60
+00
+00
+70
+48
+ef
+4b
+20
+60
+00
+00
+20
+40
+3d
+b7
+20
+40
+04
+46
+20
+40
+48
+80
+20
+40
+22
+c2
+20
+40
+25
+42
+20
+40
+46
+e6
+20
+40
+04
+69
+20
+40
+04
+71
+20
+40
+04
+76
+20
+40
+04
+7a
+20
+40
+44
+1a
+20
+40
+44
+50
+20
+40
+3f
+3d
+20
+40
+44
+62
+20
+40
+04
+87
+20
+40
+04
+a2
+20
+40
+04
+a7
+20
+40
+04
+5f
+20
+20
+04
+aa
+6f
+e0
+cf
+eb
+20
+3a
+04
+66
+6f
+e0
+cf
+ea
+1f
+e0
+ff
+ff
+20
+3a
+02
+eb
+67
+e0
+cf
+ea
+20
+60
+00
+00
+6f
+e0
+cf
+e9
+67
+e0
+cf
+ea
+20
+60
+00
+00
+6f
+e0
+cd
+58
+20
+7a
+00
+00
+70
+4d
+58
+00
+6f
+e0
+c8
+a9
+24
+7a
+00
+00
+70
+4c
+a1
+01
+20
+40
+26
+1b
+20
+20
+03
+ce
+da
+60
+4d
+5b
+da
+40
+04
+74
+20
+20
+31
+cf
+70
+4d
+5a
+00
+20
+60
+00
+00
+6f
+e0
+c4
+a9
+c3
+80
+80
+00
+6f
+e0
+c9
+3f
+c0
+00
+47
+e8
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e0
+cc
+16
+20
+7a
+00
+00
+1f
+e0
+ff
+ff
+67
+e0
+cc
+16
+c2
+80
+48
+4a
+20
+20
+48
+3c
+20
+40
+48
+3c
+20
+40
+04
+94
+20
+40
+04
+96
+68
+48
+cc
+13
+20
+20
+48
+55
+6f
+e0
+cc
+11
+c1
+7f
+80
+00
+6f
+e0
+cb
+b9
+24
+7a
+00
+00
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e1
+4b
+d0
+68
+49
+4a
+c4
+98
+46
+04
+00
+6f
+e1
+4c
+14
+98
+46
+7e
+00
+20
+21
+04
+98
+20
+40
+04
+96
+68
+48
+cc
+11
+20
+20
+5f
+89
+68
+48
+cc
+12
+20
+20
+5f
+89
+20
+40
+04
+9d
+6f
+e0
+cd
+59
+c3
+00
+84
+94
+68
+48
+cc
+11
+20
+20
+5f
+8d
+6f
+e0
+cd
+59
+c3
+00
+04
+96
+70
+49
+36
+ff
+68
+48
+cc
+12
+20
+20
+5f
+8d
+da
+60
+4c
+9b
+da
+40
+04
+a5
+20
+20
+31
+d6
+70
+4c
+98
+01
+20
+20
+32
+5c
+da
+60
+4d
+73
+da
+40
+02
+66
+20
+20
+31
+cf
+da
+60
+4a
+c4
+da
+40
+04
+ad
+20
+20
+31
+d6
+6f
+e0
+c9
+3f
+c0
+00
+04
+3e
+20
+20
+42
+36
+78
+54
+7c
+00
+70
+4b
+9d
+00
+70
+4b
+9e
+00
+70
+4b
+9f
+00
+6f
+e0
+cd
+70
+c0
+00
+82
+6d
+c0
+01
+02
+72
+c0
+01
+82
+72
+c0
+02
+02
+76
+c0
+03
+02
+7f
+6f
+e0
+cc
+a1
+20
+3a
+04
+c9
+1f
+e0
+ff
+ff
+67
+e0
+cc
+a1
+20
+40
+04
+d7
+70
+4d
+5b
+0a
+20
+40
+44
+5f
+6f
+e0
+cd
+70
+c0
+02
+82
+7e
+d8
+a0
+4c
+01
+df
+20
+00
+0a
+20
+40
+7c
+68
+20
+40
+04
+da
+70
+4c
+0b
+00
+20
+60
+00
+00
+6f
+e0
+cd
+5a
+20
+7a
+00
+00
+6f
+e0
+cd
+58
+24
+7a
+00
+00
+68
+48
+cd
+5c
+6f
+e0
+cd
+5b
+98
+46
+7c
+00
+67
+e0
+cd
+5c
+20
+62
+80
+00
+d8
+a0
+4c
+01
+df
+20
+00
+0a
+20
+40
+7c
+68
+20
+40
+7d
+92
+20
+20
+04
+ef
+70
+41
+77
+03
+70
+4a
+c1
+0a
+20
+60
+00
+00
+6f
+e0
+cd
+74
+c0
+01
+05
+67
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+e7
+24
+21
+05
+02
+c2
+00
+04
+de
+6f
+e0
+cc
+9e
+20
+5a
+04
+f8
+70
+4c
+01
+00
+6f
+e0
+cc
+a7
+1f
+e6
+7c
+7f
+20
+22
+84
+fb
+d8
+c0
+4c
+a5
+d8
+a0
+4c
+02
+df
+20
+00
+08
+ef
+e0
+80
+06
+c0
+3f
+85
+00
+e7
+e0
+80
+05
+c2
+00
+04
+eb
+20
+40
+05
+72
+6f
+e0
+cc
+0b
+c0
+00
+fd
+92
+c0
+01
+04
+f6
+c0
+01
+84
+f6
+c0
+02
+04
+f6
+c0
+02
+84
+f6
+20
+40
+40
+95
+20
+20
+7d
+92
+d8
+a0
+4c
+a5
+df
+20
+00
+09
+20
+20
+7c
+68
+6f
+e1
+4c
+a5
+67
+e1
+4c
+02
+6f
+e3
+4c
+a8
+67
+e3
+4c
+04
+20
+20
+04
+ef
+58
+00
+00
+00
+20
+20
+04
+ed
+70
+4c
+01
+03
+68
+48
+cc
+9e
+18
+46
+7c
+00
+20
+22
+85
+67
+c0
+74
+05
+1e
+c0
+74
+85
+21
+c0
+75
+05
+24
+c0
+75
+85
+27
+c0
+76
+05
+2a
+c0
+76
+85
+2d
+c0
+77
+05
+30
+c0
+77
+85
+33
+c0
+78
+05
+36
+c0
+78
+85
+39
+c0
+79
+05
+3c
+c0
+79
+85
+3f
+c0
+7a
+05
+42
+c0
+7a
+85
+45
+c0
+7b
+05
+48
+c0
+7b
+85
+4b
+c0
+7c
+05
+4e
+c0
+7c
+85
+51
+c0
+7d
+05
+54
+c0
+7d
+85
+57
+c0
+7e
+05
+5c
+c0
+7e
+85
+5f
+c0
+7f
+85
+6e
+20
+20
+04
+ef
+58
+00
+01
+83
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+cd
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b7
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b6
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b5
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+ea
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+e9
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+e2
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+94
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+8a
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+92
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+70
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+6f
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+2a
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+25
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+24
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+26
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+27
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+21
+67
+e1
+4c
+02
+20
+20
+04
+ef
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+58
+00
+02
+23
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+30
+67
+e1
+4c
+02
+20
+20
+04
+ef
+6f
+e0
+cf
+a9
+c0
+00
+85
+64
+58
+00
+01
+ae
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+03
+07
+67
+e1
+4c
+02
+20
+20
+04
+ef
+70
+4c
+a1
+02
+6f
+e0
+cc
+9e
+20
+5a
+04
+f8
+70
+4d
+74
+00
+58
+00
+00
+03
+67
+e1
+cc
+01
+20
+20
+04
+ef
+70
+4c
+01
+02
+58
+00
+00
+02
+67
+e0
+cc
+02
+20
+20
+04
+ef
+6f
+e0
+c9
+3f
+c0
+80
+05
+79
+70
+4d
+58
+00
+6f
+e1
+4c
+01
+24
+5a
+04
+2f
+6f
+e3
+4c
+04
+24
+5a
+04
+2f
+6f
+e0
+cc
+01
+c0
+00
+05
+84
+c0
+00
+85
+7f
+c0
+01
+85
+8d
+c0
+01
+05
+95
+20
+60
+00
+00
+70
+4c
+0b
+01
+d8
+c0
+4c
+01
+d8
+a0
+48
+d8
+df
+20
+00
+07
+20
+20
+7c
+a1
+70
+4c
+0b
+02
+20
+40
+05
+9d
+20
+40
+04
+24
+6f
+e0
+cd
+5a
+67
+e0
+cc
+03
+d8
+c0
+4c
+01
+d8
+a0
+4b
+de
+df
+20
+00
+09
+20
+20
+7c
+a1
+70
+4c
+0b
+04
+20
+40
+05
+9d
+58
+00
+00
+03
+20
+40
+46
+21
+d8
+c0
+4c
+02
+d8
+a0
+4b
+df
+df
+20
+00
+02
+20
+20
+7c
+a1
+70
+4c
+0b
+05
+20
+40
+05
+9d
+58
+00
+00
+02
+67
+e4
+4b
+de
+67
+e4
+4b
+e7
+6f
+e0
+cc
+02
+67
+e0
+cb
+df
+20
+60
+00
+00
+df
+20
+00
+12
+d8
+a0
+4b
+de
+20
+20
+7c
+68
+62
+40
+aa
+55
+40
+00
+00
+40
+09
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+0c
+00
+80
+10
+20
+00
+00
+e4
+91
+96
+18
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+80
+01
+1f
+00
+00
+aa
+55
+08
+00
+bd
+4b
+04
+09
+32
+00
+03
+00
+01
+2c
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+01
+00
+c6
+4b
+01
+aa
+55
+01
+00
+f5
+4b
+01
+aa
+55
+01
+00
+97
+47
+ff
+aa
+55
+01
+00
+96
+47
+1e
+aa
+55
+03
+00
+91
+44
+01
+34
+49
+aa
+55
+01
+00
+36
+49
+ff
+aa
+55
+01
+00
+eb
+41
+01
+aa
+55
+01
+00
+85
+48
+07
+aa
+55
+02
+00
+a1
+48
+c7
+4a
+aa
+55
+02
+00
+0d
+49
+85
+90
+aa
+55
+02
+00
+10
+49
+75
+80
+aa
+55
+01
+00
+0f
+49
+63
+aa
+55
+01
+00
+d2
+48
+7d
+aa
+55
+01
+00
+58
+0b
+ff
+aa
+55
+0b
+00
+36
+4c
+c2
+c1
+85
+84
+83
+82
+81
+80
+c7
+c6
+c4
+aa
+55
+01
+00
+3d
+48
+02
+aa
+55
+05
+00
+94
+48
+01
+0f
+0f
+0f
+0f
+aa
+55
+01
+00
+6d
+48
+00
+aa
+55
+01
+00
+f4
+4b
+02
+aa
+55
+01
+00
+7e
+48
+00
+aa
+55
+01
+00
+0c
+49
+94
+aa
+55
+03
+00
+63
+48
+00
+48
+60
+aa
+55
+02
+00
+ca
+48
+0a
+00
+aa
+55
+02
+00
+c8
+48
+50
+00
+aa
+55
+04
+00
+cc
+4b
+02
+00
+32
+00
+aa
+55
+01
+00
+c7
+49
+02
+aa
+55
+08
+00
+4f
+44
+fb
+00
+48
+08
+fb
+00
+48
+08
+aa
+55
+01
+00
+99
+40
+01
+aa
+55
+01
+00
+77
+41
+20
+aa
+55
+01
+00
+9c
+4b
+20
+aa
+55
+01
+00
+82
+44
+06
+aa
+55
+06
+00
+a8
+40
+32
+ef
+6d
+ac
+24
+54
+aa
+55
+13
+00
+03
+46
+12
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+05
+00
+58
+44
+0e
+00
+01
+00
+02
+aa
+55
+08
+00
+f9
+4b
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+aa
+55
+01
+00
+48
+46
+0a
+aa
+55
+04
+00
+6b
+47
+01
+03
+00
+04
+aa
+55
+01
+00
+95
+47
+01
+aa
+55
+01
+00
+d8
+40
+01
+aa
+55
+06
+00
+7d
+43
+73
+83
+92
+a1
+b1
+c1
+aa
+55
+01
+00
+35
+44
+07
+aa
+55
+02
+00
+02
+4b
+96
+00
+aa
+55
+02
+00
+f9
+4a
+15
+00
+aa
+55
+02
+00
+5a
+43
+19
+00
+aa
+55
+04
+00
+fb
+4a
+1d
+00
+21
+00
+aa
+55
+02
+00
+d4
+43
+28
+00
+aa
+55
+02
+00
+ff
+4a
+30
+00
+aa
+55
+0c
+00
+ea
+43
+1f
+02
+01
+05
+03
+03
+12
+18
+03
+19
+c1
+03
+aa
+55
+14
+00
+e4
+4a
+13
+09
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+15
+00
+0a
+44
+1f
+13
+09
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+13
+00
+fa
+42
+12
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+08
+00
+75
+43
+07
+00
+07
+00
+20
+00
+2c
+01
+aa
+55
+06
+00
+de
+4a
+03
+12
+18
+ff
+00
+00
+aa
+55
+09
+00
+d7
+4f
+41
+70
+70
+6c
+65
+20
+49
+6e
+63
+aa
+55
+02
+00
+d5
+4f
+0a
+18
+aa
+55
+02
+00
+a7
+4f
+c1
+03
+aa
+55
+02
+00
+75
+4d
+bd
+00
+aa
+55
+08
+00
+e1
+4f
+01
+02
+e8
+04
+21
+70
+01
+00
+aa
+55
+02
+00
+56
+4d
+2a
+10
+aa
+55
+01
+00
+ff
+48
+0a
+aa
+55
+01
+00
+05
+49
+01
+aa
+55
+01
+00
+a6
+44
+00
+aa
+55
+02
+00
+da
+4b
+64
+00
+aa
+55
+02
+00
+d8
+4b
+90
+01
+aa
+55
+02
+00
+d6
+4b
+e8
+03
+aa
+55
+01
+00
+d2
+4b
+1e
+aa
+55
+02
+00
+08
+49
+58
+02
+aa
+55
+02
+00
+06
+49
+58
+02
+aa
+55
+02
+00
+d0
+4b
+70
+17
+aa
+55
+01
+00
+0b
+49
+64
+aa
+55
+01
+00
+0a
+49
+64
+aa
+55
+01
+00
+c9
+4b
+64
+aa
+55
+02
+00
+c7
+4b
+00
+40
+aa
+55
+02
+00
+ca
+4b
+00
+40
+aa
+55
+02
+00
+99
+4c
+b8
+0b
+aa
+55
+02
+00
+14
+4c
+58
+02
+aa
+55
+01
+00
+e9
+4f
+01
+aa
+55
+01
+00
+3f
+49
+00
+aa
+55
+01
+00
+c5
+4b
+01
+aa
+55
+01
+00
+40
+49
+33
+aa
+55
+01
+00
+51
+4d
+00
+aa
+55
+01
+00
+24
+49
+13
+aa
+55
+04
+00
+52
+4d
+7f
+06
+29
+14
+aa
+55
+03
+00
+c6
+44
+ff
+ff
+ff
+aa
+55
+02
+00
+19
+49
+ff
+ff
+aa
+55
+01
+00
+1d
+49
+ff
+aa
+55
+06
+00
+28
+49
+13
+80
+81
+ff
+ff
+ff
+aa
+55
+03
+00
+11
+4c
+82
+ff
+80
+aa
+55
+03
+00
+0e
+4c
+08
+14
+07
+aa
+55
+1c
+00
+1a
+4c
+0d
+0a
+0f
+04
+0e
+03
+0b
+09
+80
+05
+c4
+06
+81
+c7
+84
+82
+85
+c2
+12
+10
+11
+c1
+c6
+83
+ff
+ff
+ff
+ff
+aa
+55
+90
+00
+ae
+4c
+48
+00
+00
+00
+e6
+00
+7f
+3e
+14
+2b
+04
+29
+1d
+00
+35
+1e
+1a
+39
+16
+64
+1b
+e5
+3a
+1f
+08
+3c
+07
+3d
+06
+88
+3b
+20
+15
+17
+09
+0a
+19
+05
+22
+21
+18
+1c
+0d
+0b
+10
+11
+23
+24
+0c
+30
+0e
+3f
+36
+87
+2e
+25
+12
+40
+e0
+e3
+37
+e7
+41
+45
+13
+2f
+33
+34
+32
+38
+2d
+27
+47
+2a
+31
+e2
+28
+e6
+42
+43
+89
+e1
+e5
+44
+28
+45
+42
+43
+5f
+5c
+59
+2c
+44
+51
+4c
+00
+60
+5d
+5a
+62
+54
+4f
+49
+00
+61
+5e
+5b
+52
+55
+50
+4b
+4e
+12
+40
+0f
+52
+37
+50
+41
+26
+00
+e2
+e5
+f6
+f7
+f5
+f4
+f1
+fa
+e3
+d1
+d3
+d2
+d4
+f8
+d5
+91
+d0
+e7
+f9
+f3
+fb
+fb
+90
+aa
+55
+13
+00
+5d
+4d
+01
+fb
+ad
+a5
+a6
+a7
+a8
+eb
+e9
+ec
+ed
+ee
+f3
+f4
+a9
+01
+00
+00
+01
+aa
+55
+08
+00
+9e
+00
+00
+00
+08
+00
+00
+00
+00
+00
+aa
+55
+08
+00
+7a
+41
+88
+12
+ce
+70
+3f
+0c
+37
+07
+aa
+55
+03
+00
+83
+41
+9d
+10
+24
+aa
+55
+01
+00
+5c
+41
+00
+aa
+55
+01
+00
+c5
+40
+18
+aa
+55
+01
+00
+d8
+44
+d3
+aa
+55
+01
+00
+d7
+44
+00
+aa
+55
+01
+00
+d6
+44
+29
+aa
+55
+01
+00
+d5
+44
+00
+aa
+55
+05
+00
+ed
+41
+ff
+88
+66
+44
+00
+aa
+55
+01
+00
+94
+44
+0c
+aa
+55
+08
+00
+b5
+40
+24
+00
+00
+02
+24
+00
+00
+02
+aa
+55
+02
+00
+c3
+40
+20
+00
+aa
+55
+04
+00
+bf
+40
+20
+00
+00
+20
+aa
+55
+04
+00
+c6
+40
+80
+04
+00
+0c
+aa
+55
+05
+00
+fe
+45
+09
+0e
+05
+04
+00
+aa
+55
+01
+00
+d4
+44
+7f
+aa
+55
+01
+00
+f2
+41
+ff
+aa
+55
+02
+00
+ca
+40
+f2
+41
+aa
+55
+02
+00
+db
+44
+06
+07
+55
+aa
+aa
+55
+4a
+88
+2c
+a0
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+95
+d1
Index: output/memmap.format
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/memmap.format	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/memmap.format	(working copy)
@@ -0,0 +1,2601 @@
+0x0000 mem_le_adv_transmit
+0x0001 mem_le_adv_waitcnt
+0x0002 mem_le_adv_rcv
+0x0003 mem_le_req_rcv
+0x0004 mem_le_scanrsp_rcv
+0x0005 mem_le_conn_rcv
+0x0006 mem_inquiryscan_waitcnt
+0x0007 mem_inquiryscan_rcvcnt
+0x0008 mem_pagescan_waitcnt
+0x0009 mem_pagescan_rcvcnt
+0x000a mem_pagescan_rcvfhscnt
+0x000b mem_slave_rcvcnt
+0x000c mem_page_transmit
+0x000d mem_page_rcv
+0x000e mem_page_rcv_fhs
+0x000f mem_master_rcvcnt
+0x0010 mem_fhs_wait_counter
+0x0011 mem_newconnto_counter
+0x0012 mem_inquiry_transmit
+0x0013 mem_inquiry_rcv
+0x0014 mem_fw_ver
+0x0015 mem_current_context
+0x0016 mem_le_ch_mapped
+0x0017 mem_last_freq
+0x0018 mem_rssi
+0x0019 mem_rx_type
+0x001a mem_rx_hec_err
+0x001c mem_rx_crc_err
+0x001e mem_context_ptr
+0x0020 mem_display
+0x0028 mem_bcd
+0x0030 mem_state
+0x0031 mem_mode
+0x0032 mem_tsniff
+0x0034 mem_sniff_anchor
+0x0038 mem_clk_offset
+0x003e mem_rx_window
+0x0040 mem_plap
+0x0043 mem_puap
+0x0044 mem_pnap
+0x0046 mem_conn_handle
+0x0047 mem_arq
+0x0048 mem_lmp_to_send
+0x0049 mem_lmi_opcode
+0x004a mem_lmo_reason
+0x004b mem_op
+0x004c mem_state_map
+0x004d mem_supervision_timer
+0x0051 mem_supervision_to
+0x0053 mem_name_offset
+0x0054 mem_key_size
+0x0055 mem_conn_sm
+0x0056 mem_aco
+0x0062 mem_kc
+0x0072 mem_conn_timer
+0x0073 mem_sniff_attempt
+0x0074 mem_sniff_timeout
+0x0075 mem_dsniff
+0x0077 mem_amaddr
+0x0078 mem_lmo_opcode1
+0x0079 mem_lmi_opcode1
+0x007a mem_lmo_reason1
+0x007b mem_lmo_tid1
+0x007c mem_lmo_opcode2
+0x007d mem_lmi_opcode2
+0x007e mem_lmo_reason2
+0x007f mem_lmo_tid2
+0x0080 mem_bt_context_reserve
+0x0088 mem_current_sniff_attempt
+0x0089 mem_current_sniff_timeout
+0x008a mem_nfreq_index_inq
+0x008b mem_nfreq_index_page
+0x008c mem_ninqy_index
+0x008d mem_fhs_misc
+0x008e mem_subsniff_instant
+0x0092 mem_subsniff_rate
+0x0093 mem_subsniff_tcmax
+0x0095 mem_subsniff_tsniff
+0x0096 mem_lpm_adjust
+0x0097 mem_sync_clke
+0x009d mem_lpm_current_mult
+0x009e mem_gpio_wakeup_low
+0x00a2 mem_gpio_wakeup_high
+0x00a6 mem_npage_index
+0x00a7 mem_page_mode
+0x00a8 mem_page_clk
+0x00ac mem_temp_am_addr
+0x00ad mem_temp_arq
+0x00ae mem_len
+0x00b0 mem_clkn_bt
+0x00b4 mem_clke_bt
+0x00b8 mem_dpll_clkn
+0x00bc mem_connection_options
+0x00bd mem_nameres_cnt
+0x00be mem_txptr
+0x00c0 mem_slot_offset
+0x00c2 extm_fhs_misc
+0x00c3 extm_newconn_am_addr
+0x00c4 extm_class
+0x00c7 extm_lap
+0x00ca extm_uap
+0x00cb extm_nap
+0x00ce mem_rxbuf
+0x00e3 mem_debug_config
+0x00e4 mem_lch_code
+0x00e5 mem_fhs_am_addr
+0x00e6 mem_select_list_item
+0x00e7 mem_temp_reconn_record
+0x00e7 mem_record_bt_mode
+0x00e8 mem_temp_lap
+0x00ee mem_list_item_ptr
+0x00f0 mem_eir
+0x0154 mem_rssi_hex
+0x0155 mem_param_tx_setup
+0x0157 mem_param_rf_setup
+0x0159 mem_param_conn_access
+0x015b mem_param_clke_cal
+0x015d mem_param_pll_setup
+0x015f mem_param_rx_setup
+0x0161 mem_param_dpll_start_delay
+0x0163 mem_param_rt_rthalfslot
+0x0165 mem_param_clke_cal_le_1m
+0x0167 mem_param_clke_cal_le_2m
+0x0169 mem_param_clke_cal_le_coded
+0x016b mem_le_rxbuf
+0x026f mem_le_mic
+0x0273 mem_le_peer_mic
+0x0277 mem_le_mrand
+0x0287 mem_le_state
+0x0288 mem_le_mode
+0x0289 mem_le_tsniff
+0x028b mem_le_anchor
+0x028f mem_le_clk_offset
+0x0295 mem_le_receive_window
+0x0297 mem_le_plap
+0x029d mem_le_conn_handle
+0x029e mem_le_arq
+0x029f mem_le_ch
+0x02a0 mem_le_hop
+0x02a1 mem_le_event_count
+0x02a3 mem_le_supervision_timer
+0x02a7 mem_le_instant
+0x02a9 mem_le_channels
+0x02aa mem_le_op
+0x02ab mem_le_access
+0x02af mem_le_crcinit
+0x02b2 mem_le_window_size
+0x02b3 mem_le_slave_latency
+0x02b5 mem_le_superto
+0x02b7 mem_le_channel_map
+0x02bc mem_le_rx_phy
+0x02bd mem_le_tx_phy
+0x02be mem_le_update_new_param
+0x02c7 mem_le_sk
+0x02d7 mem_le_peer_sca
+0x02d8 mem_le_err_code
+0x02d9 mem_le_ll_pairing_fail_reason
+0x02da mem_le_context_reserve
+0x02df mem_le_testtype
+0x02e0 mem_cmd_le_create_conn
+0x02e1 mem_ucode_status
+0x02e2 mem_spid_tbuf
+0x02e3 mem_iicd_tbuf
+0x02e3 mem_addr_hi
+0x02e4 mem_addr_mi
+0x02e5 mem_addr_lo
+0x02e6 mem_iicd_addr
+0x02e7 mem_spid_rbuf
+0x02eb mem_ucode_buf
+0x02ed mem_ucode_len
+0x02ef mem_sched_addr
+0x02f1 mem_ucode_ptr
+0x02f3 mem_ucode_keybuf
+0x0303 mem_spid2_tbuf
+0x0304 mem_addr_hi2
+0x0305 mem_addr_mi2
+0x0306 mem_addr_lo2
+0x0307 mem_spid2_rbuf
+0x030b mem_reconnect_flag
+0x030c mem_switch_fail_master_count
+0x030d mem_app_evt_timer_count
+0x030e mem_l2cap_mem_start
+0x030e mem_l2cap_rxbuff1_len
+0x0310 mem_l2cap_rxbuff2_len
+0x0312 mem_l2cap_rxbuff_new
+0x0314 mem_l2cap_rxbuff_inuse
+0x0315 mem_l2cap_payload_ptr
+0x0317 mem_l2cap_rx_pkt_length
+0x0319 mem_l2cap_rx_cid
+0x031b mem_l2cap_rx_done
+0x031c mem_l2cap_signal_tx_buff_ptr
+0x031e mem_l2cap_signal_tx_payload_ptr
+0x0320 mem_l2cap_signal_tx_length
+0x0322 mem_sdp_tx_buff_ptr
+0x0324 mem_sdp_tx_payload_ptr
+0x0326 mem_sdp_tx_pkt_length
+0x0328 mem_rfcomm_tx_buff_ptr
+0x032a mem_rfcomm_tx_payload_ptr
+0x032c mem_rfcomm_tx_pkt_length
+0x032e memL2CAP_T1
+0x0330 mem_CONTROL_tasks
+0x0331 mem_send_config_req
+0x0332 mem_config_identifier
+0x0333 mem_config_req_dest_CID
+0x0335 mem_rfcomm_malloc_fail_flag
+0x0336 mem_message_to_uppersm
+0x0337 mem_upper_sm_remote_page
+0x0338 mem_upper_sm_reconn
+0x0339 mem_upper_sm_ss
+0x033a mem_tx_malloc_log
+0x037a mem_l2cap_mem_end
+0x037a mem_scid
+0x037c mem_cmd_length
+0x037e mem_tt2
+0x0380 mem_tt3
+0x0382 mem_id
+0x0384 mem_psm
+0x0386 mem_l2cap_sdpres_delay_time
+0x038a mem_lmo_header_length
+0x038b mem_lmo_header_opcode
+0x038c mem_lmo_payload
+0x039d mem_lmi_accepted_opcode
+0x039e mem_disconn_reason_send
+0x039f mem_tx_fixed_freq
+0x03a0 mem_rx_fixed_freq
+0x03a1 mem_ext_features_page
+0x03a2 mem_lmpext_ssp_enable
+0x03a4 mem_remote_sppcap
+0x03a5 mem_lmp_conn_state
+0x03a6 mem_soft_timer
+0x03a8 mem_pincode_state
+0x03a9 mem_sres_tid
+0x03aa mem_accptsco_tid
+0x03ab mem_wait_encryption
+0x03ac mem_sniff_payload
+0x03bc mem_aurand_send_delay_time
+0x03c0 memRemoteRPNBitRate
+0x03c1 memRemotePRNDataBits
+0x03c2 memRemotePRNStopBit
+0x03c3 memRemotePRNParity
+0x03c4 memRemotePRNFlowControl
+0x03c5 memRemotePRNXon
+0x03c6 memRemotePRNXoff
+0x03c7 mem_mod2div_temp
+0x03ca mem_contw_temp
+0x03cc mem_attrib_list
+0x03ce mem_current_adss
+0x03cf mem_current_channel
+0x03d0 mem_current_frame_type
+0x03d1 mem_current_fcs
+0x03d2 mem_current_length
+0x03d4 mem_rfcomm_uih_payload_ptr
+0x03d6 mem_uih_cmd_type
+0x03d7 mem_uih_length
+0x03d9 mem_param_payload_ptr
+0x03db mem_ms_param
+0x03dc mem_pn_credit_flow_type_info
+0x03dd mem_pn_priority
+0x03de mem_pn_acknowledg_timer
+0x03df mem_pn_max_retrans
+0x03e0 mem_rfcomm_send_adss
+0x03e1 mem_rfcomm_send_frame_type
+0x03e2 mem_rfcomm_send_fcs
+0x03e3 mem_rfcomm_send_offset
+0x03e4 mem_sdp_mem_start
+0x03e4 mem_sdp_uuid_search_ptr
+0x03ec mem_sdp_continue_byte
+0x03ee mem_sdp_pduid
+0x03ef mem_sdp_transactionid
+0x03f1 mem_sdp_transactionid_local
+0x03f3 mem_sdp_attribute_maxbyte
+0x03f5 mem_sdp_record_maxcnt
+0x03f7 mem_sdp_record_handle
+0x03fb mem_sdp_LACAP_found
+0x03fc mem_sdp_RFCOMM_found
+0x03fd mem_sdp_handle_list
+0x03fd mem_sdp_attrib_list
+0x041d mem_sdp_error_code
+0x041f mem_sdp_all_length
+0x0421 mem_handle_humber
+0x0422 mem_search_uuid
+0x0424 mem_sdp_mem_end
+0x0424 mem_random_number
+0x0434 mem_round_key
+0x0444 mem_kinit
+0x0454 mem_input_store
+0x0464 mem_x
+0x0474 mem_y
+0x0483 mem_y15
+0x0484 mem_key_store
+0x0495 mem_key_store_end
+0x0496 memp_ar_key
+0x0498 memp_ar_input
+0x049a mem_ar_hround
+0x04a4 mem_ec_infinite
+0x04a5 mem_ec_loopc
+0x04a7 mem_aes_cmac_data_length
+0x04a8 memdat
+0x04a8 mem_ax
+0x04c0 mem_ay
+0x04d8 mem_az
+0x04f0 mem_bx
+0x0508 mem_ax_256//32 bytes
+0x0508 mem_by
+0x0520 mem_bz
+0x0528 mem_ay_256// 32 bytes
+0x0538 mem_cx
+0x0548 mem_az_256// 32 bytes
+0x0550 mem_cy
+0x0567 mem_cy5
+0x0568 mem_bx_256// 32 bytes
+0x0568 mem_cz
+0x0580 mem_k
+0x0588 mem_by_256// 31 bytes
+0x0598 mem_align
+0x05a8 mem_bz_256//32 bytes
+0x05a8 mem_tmp1
+0x05a8 memahbak
+0x05c0 mem_tmp5
+0x05c8 mem_cx_256//32 bytes
+0x05c8 memahsave
+0x05d8 mem_tmp2
+0x05e8 mem_cy_256// 32 bytes
+0x05e8 memahsave_end
+0x05e8 mem_addr_padding
+0x05e9 mem_addr_value
+0x05f0 mem_tmp3
+0x05f0 mem_t1
+0x05f5 mem_addr_value_end
+0x05f8 mem_addr_iocap_end
+0x0607 mem_cy5_256// 1 byte
+0x0608 mem_cz_256// 32 bytes
+0x0608 mem_tmp0
+0x0608 mem_t0
+0x0610 mem_tmp0a
+0x0620 mem_t2
+0x0628 mem_k_256//32 bytes
+0x0638 mem_t3
+0x0648 mem_tmp1_256//32 bytes
+0x0650 mem_t7
+0x0668 mem_tmp5_256
+0x0688 mem_tmp2_256
+0x06a8 mem_tmp3_256
+0x06a8 mem_t1_256
+0x06c8 mem_tmp0_256
+0x06c8 mem_t0_256
+0x06e8 mem_t2_256
+0x0708 mem_t3_256
+0x0728 mem_t7_256
+0x0748 mem_p
+0x0760 mem_a
+0x0778 mem_b
+0x0790 mem_gx
+0x07a8 mem_gy
+0x07c0 memh0
+0x07e0 mem_p_256
+0x0800 mem_a_256
+0x0820 mem_gx_256
+0x0840 mem_gy_256
+0x0860 mem_le_slat
+0x0870 mem_sp_state_start
+0x0870 mem_sp_state
+0x0871 mem_master_sp_state
+0x0872 mem_sp_flag
+0x0873 mem_master_sp_flag
+0x0874 mem_sp_calc
+0x0875 mem_sp_dh_ready
+0x0876 mem_sp_localsm
+0x0877 mem_pairing_auth
+0x0878 mem_sp_local_key_send_count
+0x0879 mem_sp_remote_key_recv_count
+0x087a mem_sp_remote_key_invalid
+0x087b mem_sp_dhkey_invalid
+0x087c mem_gkey
+0x0880 mem_sp_state_end
+0x0880 mem_le_pubkey_remote_x_256
+0x0888 mem_sp_pubkey_remote
+0x0888 mem_sp_pubkey_remote_x
+0x08a0 mem_sp_pubkey_remote_x_end
+0x08a0 mem_le_pubkey_remote_y_256
+0x08a8 mem_sp_pubkey_remote_y
+0x08c0 mem_le_dhkey_256
+0x08c8 mem_sp_dhkey
+0x08e0 mem_sp_dhkey_end
+0x08e0 mem_sp_random_local
+0x08f0 mem_sp_random_local_end
+0x08f0 mem_sp_random_remote
+0x0900 mem_sp_random_remote_end
+0x0900 memresult
+0x0900 mem_sp_calc_result
+0x0900 memh
+0x0904 memg
+0x0908 memf
+0x090c meme
+0x0910 mem_sp_calc_result_high
+0x0910 memd
+0x0914 memc
+0x0918 memb
+0x091c mema
+0x0920 mem_sp_check_result
+0x0930 mem_sp_confirm_remote
+0x0940 mem_sp_prarm_stack
+0x0950 mem_UI_data_txbuff_length
+0x0952 mem_ipc_skip_continue_proc
+0x0953 mem_ui_timer_temp//length 4
+0x0953 mem_ipc_rega_temp
+0x0957 mem_hold_contr
+0x0959 mem_hold_contw
+0x095b mem_fifo_temp
+0x095c mem_pdatatemp
+0x0964 mem_temp//8 bytes
+0x096c mem_timeup// 4 bytes
+0x0970 mem_rega//4 bytes
+0x0974 mem_regb//4 bytes
+0x0978 mem_regc//3 bytes
+0x097b mem_contr//2 bytes
+0x097d mem_contw//2 bytes
+0x097f mem_contus
+0x0981 mem_contue
+0x0983 mem_contu
+0x0985 mem_queue
+0x0987 mem_loopcnt
+0x0989 mem_wakup_from_power_flag
+0x098a mem_saved_gpio_in
+0x098e mem_module_rx_error_data_buffer
+0x098e mem_shutter_random_mac_data_temp
+0x098e mem_shutter_config_data_temp
+0x098e mem_le_adv_channel_map_temp
+0x098e mem_le_data_len_temp//1byte
+0x098e mem_tx_fifo_map_temp
+0x098e mem_rpn_dlci//1byte
+0x098e mem_event_cmd_response_content//2byte
+0x098e mem_le_prand//16byte
+0x098e mem_AES_CMAC_k//16 bytes
+0x098e mem_regext_index//1 bytes
+0x098e mem_temp_block0
+0x098f mem_le_data_temp//15bytes
+0x098f mem_temp_block1
+0x099e mem_le_aes_128//16byte
+0x099e mem_regext//64 bytes
+0x099e mem_AES_CMAC_k1//16 bytes
+0x099e mem_temp_block2
+0x09ae mem_AES_CMAC_k2//16 bytes
+0x09ae mem_temp_block3
+0x09be mem_AES_CMAC_temp// 16 bytes
+0x09be mem_temp_block4
+0x09ce mem_AES_CMAC_M_last// 16 bytes
+0x09ce mem_module_uart_cmd
+0x09cf mem_module_uart_opcode
+0x09d0 mem_module_uart_len
+0x09d1 mem_module_temp_nl_discard_packet
+0x09d2 mem_temp_block5
+0x09de mem_le_mackey//16 bytes
+0x09de mem_app_receive_temp
+0x09de mem_key_value_temp
+0x09e0 mem_key_value
+0x09e2 mem_key_value_temp1
+0x09e3 mem_key_value_temp2
+0x09e4 mem_key_value_temp3
+0x09e5 mem_key_value_temp4
+0x09e6 mem_key_value_temp5
+0x09e7 mem_key_value_temp6
+0x09e8 mem_temp_block6
+0x09ee mem_scale_ratio
+0x09f1 mem_xcnt
+0x09f4 mem_scale_ratio_temp
+0x09f6 mem_mesh_receive_model_message_payload_len
+0x09f7 mem_mesh_receive_model_message_payload_opcode
+0x09f8 mem_mesh_receive_model_message_payload
+0x0a0f mem_mesh_access_layer_payload_len
+0x0a10 mem_mesh_access_layer_payload
+0x0a10 mem_mesh_access_payload
+0x0a42 mem_mesh_access_payload_padding//为了透传模块预留
+0x0a74 mem_mesh_queue_ele_temp
+0x0a74 mem_mesh_queue_ele_duration
+0x0a75 mem_mesh_queue_ele_gatt_msg_id
+0x0a76 mem_mesh_queue_ele_len
+0x0a77 mem_mesh_queue_ele_payload
+0x0a96 mem_mesh_queue_ele_padding
+0x0a97 mem_le_txheader_mesh_temp
+0x0abe mem_mesh_sha256_chunk_start
+0x0abe mem_mesh_sha256_chunk1
+0x0afe mem_mesh_sha256_chunk2
+0x0b3e mem_mesh_sha256_chunk3
+0x0b7e mem_mesh_sha256_chunk4
+0x0bbe mem_mesh_Privacy_Plaintext
+0x0bbe mem_mesh_Privacy_Plaintext_Zero_String
+0x0bc3 mem_mesh_Privacy_Plaintext_IV_Index
+0x0bc7 mem_mesh_Privacy_Plaintext_Privacy_Random
+0x0bc7 mem_mesh_Privacy_Plaintext_Privacy_Random_EncDST
+0x0bc9 mem_mesh_Privacy_Plaintext_Privacy_Random_EncTransportPDU_or_NetMIC
+0x0bce mem_mesh_PECB
+0x0bde mem_nonce_ptr
+0x0be0 mem_ccm_data_len
+0x0be1 mem_ccm_data_ptr
+0x0be3 mem_ccm_mic
+0x0beb mem_ccm_type
+0x0bec mem_mesh_Device_UUID
+0x0bfc mem_mesh_receive_VID
+0x0bfd mem_mesh_mic_cache_ptr
+0x0bff mem_mesh_lower_transport_layer_payload_len
+0x0c00 mem_mesh_loopcnt_tmep
+0x0c02 mem_mesh_rega_temp
+0x0c04 mem_mesh_regb_temp
+0x0c06 mem_mesh_regc_temp
+0x0c08 mem_mesh_alarm_temp
+0x0c0a mem_mesh_message_Transport_NetMIC_length
+0x0c0b mem_mesh_message_NID
+0x0c0c mem_mesh_message_TTL
+0x0c0d mem_mesh_message_SEQ
+0x0c10 mem_mesh_message_SRC
+0x0c12 mem_mesh_message_DST
+0x0c14 mem_mesh_message_Transport_NetMIC
+0x0c14 mem_mesh_message_Transport_Head
+0x0c15 mem_mesh_message_Transport_unsegmented_access_messagePDU
+0x0c15 mem_mesh_message_Transport_segmented_access_messagePDU
+0x0c15 mem_mesh_message_segment_access_SZMIC_SeqZero_SegO_SegN
+0x0c18 mem_mesh_message_Transport_segmented_access_messagePDU_Segment
+0x0c18 mem_mesh_message_Transport_NetMIC_end
+0x0c28 mem_mesh_nonce_struct
+0x0c35 mem_mesh_send_message_DST
+0x0c37 mem_mesh_last_message_SEQ
+0x0c3a mem_mesh_network_packet_type
+0x0c3b mem_mesh_upper_transport_layer_payload_ptr
+0x0c3d mem_mesh_segmented_upper_transport_layer_payload_len
+0x0c3e mem_mesh_segmented_lower_transport_layer_SegZero
+0x0c40 mem_mesh_segmented_lower_transport_layer_SegO
+0x0c41 mem_mesh_segmented_lower_transport_layer_SegN
+0x0c42 mem_mesh_segmented_last_packet_upper_teansport_payload_len
+0x0c43 mem_mesh_upper_tran_layer_queue_temp
+0x0c43 mem_mesh_upper_tran_layer_temp_packet_flag
+0x0c44 mem_mesh_upper_tran_layer_temp_packet_transmit_delay
+0x0c46 mem_mesh_upper_tran_layer_temp_packet_TID
+0x0c47 mem_mesh_upper_tran_layer_temp_packet_header_IVI_NID
+0x0c48 mem_mesh_upper_tran_layer_temp_packet_header_CTL_TTL
+0x0c49 mem_mesh_upper_tran_layer_temp_packet_header_SEQ
+0x0c4c mem_mesh_upper_tran_layer_temp_packet_header_SRC
+0x0c4e mem_mesh_upper_tran_layer_temp_packet_header_DST
+0x0c50 mem_mesh_upper_tran_layer_temp_packet_length
+0x0c51 mem_mesh_upper_tran_layer_temp_packet_payload
+0x09f6 mem_hci_opcode_ocf
+0x09f8 mem_hci_opcode_ogf
+0x09f9 mem_hci_event_head_type
+0x09fa mem_hci_event_head_event_code
+0x09fb mem_hci_event_para_total_length
+0x09fc mem_hci_command_complete_num_hci_command_packet
+0x09fd mem_hci_command_complete_command_opcode
+0x09fd mem_hci_opcode
+0x09ff mem_hci_command_complete_return_parameter
+0x09ff mem_hci_command_complete_return_parameter_status
+0x0a00 mem_hci_command_complete_return_parameter_chip_id
+0x09f6 mem_vdk
+0x09f8 mem_vok
+0x09fc mem_omega
+0x0a02 mem_b1
+0x0a06 mem_b2
+0x0a0a mem_u1
+0x0a1a mem_u2
+0x0a2a mem_q
+0x09f6 mem_module_le_rx_data_len
+0x09f8 mem_module_le_rx_data_address
+0x09fa mem_module_le_rx_data_handle
+0x09f6 mem_init_cnt
+0x09f8 mem_data_pre
+0x09fa mem_data_current
+0x09fc mem_data_sum
+0x09ff mem_data_value
+0x09f6 mem_tst_pktcnt_sync
+0x09f8 mem_tst_pktcnt_hec
+0x09fa mem_tst_pktcnt_crc
+0x09fc mem_tst_pktcnt_dmh
+0x09fe mem_tmp_buffer_head
+0x0a01 mem_tmp_buffer
+0x0a51 mem_tester_emulate
+0x0a52 mem_temp_payload
+0x0a52 test_mode_scenario
+0x0a53 test_mode_hopping_mode
+0x0a54 test_mode_tx_freq
+0x0a55 test_mode_rx_freq
+0x0a56 test_mode_power_mode
+0x0a57 test_mode_poll_period
+0x0a58 test_mode_packet_type
+0x0a59 test_mode_data_length
+0x0a5b mem_test_mode_old_debug_config
+0x0a5c mem_tester_cnt
+0x09f6 mem_usb_status
+0x09f7 mem_usb_fifo_empty
+0x09f8 mem_usb_read_len
+0x09fa mem_usb_txbuf
+0x0a3b mem_usb_txbuf1
+0x0a45 mem_usb_txbuf2
+0x0a4f mem_usb_rxbuf
+0x0a8f mem_usb_rxbuf_end
+0x0a90 mem_bufptr
+0x0a92 mem_remain
+0x0a93 mem_hidreportdesc_kb
+0x0a95 mem_hidreportdesc_m
+0x0a97 mem_devicedesc
+0x0aaa mem_confdesc
+0x0ae6 mem_string0
+0x0aeb mem_string1
+0x0b09 mem_string2
+0x0b27 mem_string3
+0x0b45 mem_cb_usb_config
+0x0b47 mem_usb_tx_interval
+0x0b48 mem_usb_vid_pid
+0x0b51 mem_usb_zero_packet
+0x0b53 mem_usb_ones_packet
+0x0b55 mem_usb_two_packet
+0x0b57 mem_usb0_state
+0x0b58 mem_usb_offline_check_gpio
+0x0b59 mem_usb_clear_mem_start
+0x0b59 mem_usb_setup
+0x0b59 mem_usb_setup_bmRequestType
+0x0b5a mem_usb_setup_bRequest
+0x0b5b mem_usb_setup_bValue
+0x0b5c mem_usb_setup_bValueH
+0x0b5d mem_usb_setup_wIndex
+0x0b5f mem_usb_setup_bLength
+0x0b60 mem_usb_setup_bLengthH
+0x0b61 mem_usb0_set_report_data
+0x0ba1 mem_usb0_get_report_data
+0x0be1 mem_usb_setup_bValue_temp
+0x0be3 mem_usb0_get_set_report
+0x0be4 mem_usb0_data_ready_report
+0x0be5 mem_usb_tx_win_enable
+0x0be6 mem_usb_tx_mac_enable
+0x0be7 mem_usb_idle_flag
+0x0be8 mem_usb_idle_rate
+0x0be9 mem_usb_get_protocol_flag
+0x0bea mem_usb_set_protocol_status
+0x0beb mem_usb_set_protocol_value
+0x0bec mem_usb_state
+0x0bed mem_usb_remote_wakeup
+0x0bee mem_usb_clear_remote_wakeup
+0x0bef mem_sdsystem_wakeup_flag
+0x0bf0 mem_usb_ep0_stall_status
+0x0bf1 mem_usb_ep1_stall_status
+0x0bf2 mem_usb_ep2_stall_status
+0x0bf3 mem_usb_ep3_stall_status
+0x0bf4 mem_dsc_info_data_pointer
+0x0bf6 mem_dsc_info_len
+0x0bf7 mem_usb_ep1_data
+0x0bf8 mem_usb_ep2_data
+0x0bf9 mem_usb_tx_enable
+0x0bfa mem_usb_device_enumeration_endflag
+0x0bfb mem_usb_wakestate_onetime_flag
+0x0bfc mem_usb_mac_wakeup_trig
+0x0bfd mem_usb_set_high_addr_flag
+0x0bfe mem_usb_clear_halt
+0x0bff mem_usb_mouse_data
+0x0c0f mem_usb_kb_data
+0x0c1f mem_usb_kb_multikey
+0x0c2f mem_usb_kb_system
+0x0c3f mem_usb_test_cnt
+0x0c41 mem_usb_test_kb
+0x0c4b mem_usb_clear_mem_end
+0x0c4b mem_dg_rssi_noise_buffer
+0x0d4b mem_dg_rssi_noise_dg_buffer
+0x0e4b mem_dg_rssi_noise_ms_buffer
+0x0f4b mem_dg_rssi_noise_kb_buffer
+
+0x02be mem_le_new_param
+0x02be mem_le_new_transmitwindowsize
+0x02bf mem_le_new_transmitwindowoffset
+0x02c1 mem_le_new_conninterval
+0x02c3 mem_le_new_connslavelatency
+0x02c5 mem_le_new_connsupervisiontimeout
+0x02be mem_le_new_map
+0x02be mem_le_new_m2s_phy
+0x02bf mem_le_new_s2m_phy
+0x016b mem_le_rxbuf_data_header
+0x016c mem_le_rxbuf_data_length
+0x016d mem_le_rxbuf_data_payload
+0x016b mem_le_rxbuf_data_ll_header
+0x016c mem_le_rxbuf_data_ll_length
+0x016d mem_le_rxbuf_data_ll_opcode
+0x016e mem_le_rxbuf_data_ll_control_data
+0x016b mem_le_rxbuf_adv_header
+0x016c mem_le_rxbuf_adv_length
+0x016d mem_le_rxbuf_adv_payload
+0x016b mem_le_rxbuf_adv_scan_req_header
+0x016c mem_le_rxbuf_adv_scan_req_length
+0x016d mem_le_rxbuf_adv_scan_req_scan_address
+0x0173 mem_le_rxbuf_adv_scan_req_adv_address
+0x016b mem_le_rxbuf_adv_connect_ind_header
+0x016c mem_le_rxbuf_adv_connect_ind_length
+0x016d mem_le_rxbuf_adv_connect_ind_init_address
+0x0173 mem_le_rxbuf_adv_connect_ind_adv_address
+0x0179 mem_le_rxbuf_adv_connect_ind_access_address
+0x017d mem_le_rxbuf_adv_connect_ind_crc_init
+0x0180 mem_le_rxbuf_adv_connect_ind_win_size
+0x0181 mem_le_rxbuf_adv_connect_ind_win_offset
+0x0183 mem_le_rxbuf_adv_connect_ind_interval
+0x0185 mem_le_rxbuf_adv_connect_ind_latency
+0x0187 mem_le_rxbuf_adv_connect_ind_timeout
+0x0189 mem_le_rxbuf_adv_connect_ind_channel_map
+0x018e mem_le_rxbuf_adv_connect_ind_hop_and_sca
+0x099e mem_le_search_handle_start
+0x09a0 mem_le_search_handle_end
+0x09a2 mem_le_att_offset
+0x09a2 mem_le_search_att_type_length
+0x09a3 mem_le_search_att_type
+0x09b3 mem_le_curr_att_len
+0x09b4 mem_le_cur_attlist_start_ptr
+0x09b6 mem_le_cur_handle_start
+0x09b8 mem_le_cur_handle_end
+0x09ba mem_le_cur_uuid_length
+0x09bb mem_le_cur_uuid
+0x016b mem_le_rxbuf_data_att_header
+0x016c mem_le_rxbuf_data_att_length
+0x016d mem_le_rxbuf_data_att_l2cap_length
+0x016f mem_le_rxbuf_data_att_cid
+0x0171 mem_le_rxbuf_data_att_opcode
+0x0172 mem_le_rxbuf_data_att_payload
+0x016b mem_le_rxbuf_data_continue_header
+0x016c mem_le_rxbuf_data_continue_length
+0x016d mem_le_rxbuf_data_continue_payload
+0x016b mem_le_rxbuf_data_att_write_header
+0x016c mem_le_rxbuf_data_att_write_length
+0x016d mem_le_rxbuf_data_att_write_l2cap_length
+0x016f mem_le_rxbuf_data_att_write_cid
+0x0171 mem_le_rxbuf_data_att_write_opcode
+0x0172 mem_le_rxbuf_data_att_write_handle
+0x0174 mem_le_rxbuf_data_att_write_payload
+0x016b mem_le_rxbuf_data_prepare_att_write_header
+0x016c mem_le_rxbuf_data_prepare_att_write_length
+0x016d mem_le_rxbuf_data_prepare_att_write_l2cap_length
+0x016f mem_le_rxbuf_data_prepare_att_write_cid
+0x0171 mem_le_rxbuf_data_prepare_att_write_opcode
+0x0172 mem_le_rxbuf_data_prepare_att_write_handle
+0x0174 mem_le_rxbuf_data_prepare_att_write_offset
+0x0176 mem_le_rxbuf_data_prepare_att_write_payload
+0x09f8 mem_mesh_NETKeyindex_and_APPKeyindex
+0x09fb mem_mesh_receive_application_key
+0x09f8 mem_mesh_vendor_message_cid
+0x09fa mem_mesh_vendor_message_tid
+0x09fb mem_mesh_vendor_message_attr_type
+0x09f8 mem_mesh_vendor_message_header
+0x09fd mem_mesh_vendor_attr_parameter
+0x09f8 mem_mesh_vendor_message_delay_close_time_header
+0x09fd mem_mesh_vendor_delay_close_time
+0x09f8 mem_mesh_vendor_message_night_light_onoff_header
+0x09fd mem_mesh_vendor_night_light_onoff
+0x09f8 mem_mesh_vendor_message_color_header
+0x09fd mem_mesh_vendor_color_lightness
+0x09ff mem_mesh_vendor_color_hue
+0x0a01 mem_mesh_vendor_color_saturation
+0x09f8 mem_mesh_vendor_message_back_light_onoff_header
+0x09fd mem_mesh_vendor_back_light_onoff
+0x09f8 mem_mesh_vendor_message_main_light_onoff_header
+0x09fd mem_mesh_vendor_main_light_onoff
+0x09f8 mem_mesh_vendor_message_standby_brightness_header
+0x09fd mem_mesh_vendor_standby_brightness
+0x09f8 mem_mesh_vendor_message_current_time_header
+0x09fd mem_mesh_vendor_message_current_time
+0x09f8 mem_mesh_vendor_message_timer_header
+0x09fd mem_mesh_vendor_timer_timing_index
+0x09fe mem_mesh_vendor_timer_timing_index1
+0x09fe mem_mesh_vendor_timer_timing_time
+0x0a02 mem_mesh_vendor_timer_timing_attr_type
+0x0a04 mem_mesh_vendor_timer_timing_attr_para
+0x09f8 mem_mesh_vendor_message_timer_cyclic_header
+0x09fd mem_mesh_vendor_timer_timing_index_cyclic
+0x09fe mem_mesh_vendor_timer_timing_time_cyclic
+0x0a00 mem_mesh_vendor_timer_timing_weekdays_cyclic
+0x0a01 mem_mesh_vendor_timer_timing_attr_type_cyclic
+0x0a03 mem_mesh_vendor_timer_timing_attr_para_cyclic
+0x0a04 mem_mesh_vendor_timer_timing_cyclic_flag
+0x0a10 mem_mesh_access_layer_payload_vendor_command
+0x0a11 mem_mesh_access_layer_payload_vendor_CID
+0x0a13 mem_mesh_access_layer_payload_vendor_tid
+0x0a14 mem_mesh_access_layer_payload_vendor_attr_type
+0x0a16 mem_mesh_access_layer_payload_vendor_attr_parameter
+0x098e mem_mesh_subscription_eep_temp
+0x0a74 mem_mesh_gatt_package_receive_msg_buffer_ptr
+0x0a76 mem_mesh_gatt_package_receive_msg_buffer_temp
+0x0a76 mem_mesh_gatt_package_receive_msg_id
+0x0a78 mem_mesh_gatt_package_receive_MAC
+0x0a78 mem_mesh_gatt_package_receive_msg_num
+0x0a79 mem_mesh_gatt_package_receive_msg_total_length
+0x0a7a mem_mesh_gatt_package_receive_msg_payload
+0x0bec mem_mesh_receive_service_uuid_company_id
+0x0bee mem_mesh_receive_service_uuid_vid
+0x0bef mem_mesh_receive_service_uuid_provisioning_type
+0x0bf0 mem_mesh_receive_service_uuid_mac
+0x0bf2 mem_mesh_receive_service_uuid_msg_id
+0x0bf3 mem_mesh_receive_service_uuid_package_num
+0x0bf4 mem_mesh_receive_service_uuid_length
+0x0bf5 mem_mesh_receive_service_uuid_payload_data
+0x0bec mem_mesh_receive_service_uuid_ios_data_company_id
+0x0bee mem_mesh_receive_service_uuid_ios_data_vid
+0x0bef mem_mesh_receive_service_uuid_ios_data_provisioning_type
+0x0bf0 mem_mesh_receive_service_uuid_ios_data_NID
+0x0bf1 mem_mesh_receive_service_uuid_ios_data_msg_id
+0x0bf2 mem_mesh_receive_service_uuid_ios_data_package_num
+0x0bf3 mem_mesh_receive_service_uuid_ios_data_length
+0x0bf4 mem_mesh_receive_service_uuid_ios_data_payload_data
+0x09f8 mem_mesh_configuration_health_message_opcode
+0x09f8 mem_mesh_configuration_health_message_opcode_config_model_subscription
+0x09f9 mem_mesh_subscription_element_address
+0x09fb mem_mesh_subscription_value_address
+0x09fd mem_mesh_subscription_model_identifier
+0x09f8 mem_mesh_module_message_opcode
+0x09f8 mem_mesh_module_message_opcode_onoff_set
+0x09f9 mem_mesh_generic_onoff_set_payload_OnOff
+0x09fa mem_mesh_generic_onoff_set_payload_TID
+0x09fb mem_mesh_generic_onoff_set_payload_Transition_Time
+0x09fc mem_mesh_generic_onoff_set_payload_Delay
+0x09f8 mem_mesh_module_message_opcode_scene_recall
+0x09f9 mem_mesh_scene_recall_payload_scene_number
+0x09fb mem_mesh_scene_recall_payload_TID
+0x09fc mem_mesh_scene_recall_payload_Transition_Time
+0x09fd mem_mesh_scene_recall_payload_Delay
+0x09f8 mem_mesh_module_message_opcode_set_light_lightness
+0x09f9 mem_mesh_light_lightness_set_payload_lightness
+0x09fb mem_mesh_light_lightness_set_payload_TID
+0x09fc mem_mesh_light_lightness_set_payload_Transition_Time
+0x09fd mem_mesh_light_lightness_set_payload_Delay
+0x09fe mem_mesh_light_lightness_calc_lightness
+0x09f8 mem_mesh_module_message_opcode_set_light_ctl
+0x09f9 mem_mesh_CTL_Lightness
+0x09fb mem_mesh_CTL_Temperature
+0x09fd mem_mesh_CTL_Delta_UV
+0x09ff mem_mesh_CTL_lightness_TID
+0x0a00 mem_mesh_CTL_lightness_Transition_Time
+0x0a01 mem_mesh_CTL_lightness_Delay
+0x0a02 mem_mesh_CTL_calc_lightness
+0x0a03 mem_mesh_CTL_calc_temperature
+0x0a97 mem_mesh_network_packet_type_temp
+0x0a98 mem_mesh_message_NID_temp
+0x0c28 mem_mesh_Network_Nonce
+0x0c28 mem_mesh_Network_Nonce_nonce_type
+0x0c29 mem_mesh_Network_Nonce_CTL_and_TTL
+0x0c2a mem_mesh_Network_Nonce_SEQ
+0x0c2d mem_mesh_Network_Nonce_SRC
+0x0c2f mem_mesh_Network_Nonce_Pad//0x0000
+0x0c31 mem_mesh_Network_Nonce_IV_Index
+0x0c28 mem_mesh_Application_Nonce
+0x0c28 mem_mesh_Application_Nonce_Nonce_Type
+0x0c29 mem_mesh_Application_Nonce_ASZMIC_and_Pad//
+0x0c2a mem_mesh_Application_Nonce_SEQ
+0x0c2d mem_mesh_Application_Nonce_SRC
+0x0c2f mem_mesh_Application_Nonce_DST
+0x0c31 mem_mesh_Application_Nonce_IV_Index
+0x0c28 mem_mesh_Device_Nonce
+0x0c28 mem_mesh_Device_Nonce_Nonce_Type
+0x0c29 mem_mesh_Device_Nonce_ASZMIC_and_Pad//
+0x0c2a mem_mesh_Device_Nonce_SEQ
+0x0c2d mem_mesh_Device_Nonce_SRC
+0x0c2f mem_mesh_Device_Nonce_DST
+0x0c31 mem_mesh_Device_Nonce_IV_Index
+0x0a0f mem_mesh_upper_transport_layer_payload_len
+0x0c51 mem_mesh_upper_tran_layer_temp_pakcet_AKF_AID
+0x0c51 mem_mesh_upper_tran_layer_temp_unsegmented_pakcet_AKF_AID
+0x0c52 mem_mesh_upper_tran_layer_temp_unsegmented_packet_fill
+0x0c56 mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu
+0x0c56 mem_mesh_upper_tran_layer_temp_unsegmented_pakcet_upper_tran_access_pdu
+0x0c51 mem_mesh_upper_tran_layer_temp_segmented_pakcet_AKF_AID
+0x0c52 mem_mesh_upper_tran_layer_temp_segmented_pakcet_SeqZero
+0x0c54 mem_mesh_upper_tran_layer_temp_segmented_pakcet_SegO
+0x0c55 mem_mesh_upper_tran_layer_temp_segmented_pakcet_SegN
+0x0c56 mem_mesh_upper_tran_layer_temp_segmented_pakcet_upper_tran_access_pdu
+0x4000 mem_patch00
+0x4001 mem_patch01
+0x4002 mem_patch02
+0x4003 mem_patch03
+0x4004 mem_patch04
+0x4005 mem_patch05
+0x4006 mem_patch06
+0x4007 mem_patch07
+0x4008 mem_patch08
+0x4009 mem_patch09
+0x400a mem_patch0a
+0x400b mem_patch0b
+0x400c mem_patch0c
+0x400d mem_patch0d
+0x400e mem_patch0e
+0x400f mem_patch0f
+0x4010 mem_patch10
+0x4011 mem_patch11
+0x4012 mem_patch12
+0x4013 mem_patch13
+0x4014 mem_patch14
+0x4015 mem_patch15
+0x4016 mem_patch16
+0x4017 mem_patch17
+0x4018 mem_patch18
+0x4019 mem_patch19
+0x401a mem_patch1a
+0x401b mem_patch1b
+0x401c mem_patch1c
+0x401d mem_patch1d
+0x401e mem_patch1e
+0x401f mem_patch1f
+0x4020 mem_patch20
+0x4021 mem_patch21
+0x4022 mem_patch22
+0x4023 mem_patch23
+0x4024 mem_patch24
+0x4025 mem_patch25
+0x4026 mem_patch26
+0x4027 mem_patch27
+0x4028 mem_patch28
+0x4029 mem_patch29
+0x402a mem_patch2a
+0x402b mem_patch2b
+0x402c mem_patch2c
+0x402d mem_patch2d
+0x402e mem_patch2e
+0x402f mem_patch2f
+0x4030 mem_patch30
+0x4031 mem_patch31
+0x4032 mem_patch32
+0x4033 mem_patch33
+0x4034 mem_patch34
+0x4035 mem_patch35
+0x4036 mem_patch36
+0x4037 mem_patch37
+0x4038 mem_patch38
+0x4039 mem_patch39
+0x403a mem_patch3a
+0x403b mem_patch3b
+0x403c mem_patch3c
+0x403d mem_patch3d
+0x403e mem_patch3e
+0x403f mem_patch3f
+0x4040 mem_context
+0x4098 mem_current_amaddr
+0x4099 mem_lpm_mode
+0x409a mem_device_option
+0x409b mem_scan_mode
+0x409c mem_last_clkn
+0x40a0 mem_features
+0x40a8 mem_lap
+0x40ab mem_uap
+0x40ac mem_nap
+0x40ae mem_npage
+0x40af mem_glap
+0x40b2 mem_class
+0x40b5 mem_iscan_window
+0x40b7 mem_iscan_interval
+0x40b9 mem_pscan_window
+0x40bb mem_pscan_interval
+0x40bd mem_page_interval
+0x40bf mem_page_window
+0x40c1 mem_page_to
+0x40c3 mem_inq_window
+0x40c5 mem_fcomp_div
+0x40c6 mem_rx_window_init
+0x40c8 mem_rx_window_sniff
+0x40ca mem_rf_init_ptr
+0x40cc mem_last_type
+0x40cd mem_last_type_esco
+0x40ce mem_last_type_saved
+0x40cf mem_retransmission_cnt
+0x40d1 mem_next_btclk
+0x40d5 mem_rf_rccal
+0x40d6 mem_handle_num
+0x40d7 mem_max_slot
+0x40d8 mem_eir_enable
+0x40d9 mem_afh_instant
+0x40dd mem_afh_error_total
+0x40df mem_afh_cfg
+0x40e0 mem_afh_new_mod
+0x40e1 mem_afh_map_lo
+0x40e6 mem_afh_map_hi
+0x40eb mem_afh_used
+0x40ec mem_afh_index
+0x40ee mem_afh_map_new
+0x40f9 mem_afh_map
+0x4149 mem_afh_timer
+0x414d mem_afh_classify_channel_map
+0x4157 mem_lpm_wake_lock
+0x4159 mem_lpm_interval
+0x415b mem_lpm_overhead
+0x415c mem_lpm_hibernate_switch
+0x415d mem_esco_addr
+0x415e mem_sniff_unint_lost
+0x415f mem_ptt
+0x4160 mem_sleep_counter//should be 0x41fc in REVC
+0x4164 mem_sleep_counter_all
+0x4168 mem_sleep_clkn
+0x416e mem_sniff_rcv
+0x4171 mem_sniff_lost
+0x4174 mem_clks_per_lpo
+0x4177 mem_lpm_mult
+0x4178 mem_lpm_mult_timeout
+0x4179 mem_lpm_mult_cnt
+0x417a mem_lpm_config
+0x417a mem_lpm_xtal_ib
+0x417b mem_lpm_ctrim
+0x417c mem_lpm_padding
+0x417d mem_lpm_xtalcnt
+0x417e mem_lpm_buckcnt
+0x417f mem_lpm_ldocnt
+0x4180 mem_lpm_isogate
+0x4181 mem_lpm_isogate_final
+0x4182 mem_lpm_ctrl3
+0x4182 mem_lpm_ctrl3_app_vsel
+0x4183 mem_lpm_ctrl3_aon_vsel
+0x4184 mem_lpm_ctrl3_core_byp
+0x4185 mem_lpm_ctrl3_core_vsel
+0x4186 mem_saved_gpio// should be 0x421e in REVC
+0x419d mem_saved_gsel
+0x41a0 mem_saved_mark
+0x41a8 mem_saved_spidctrl
+0x41a9 mem_patch_ptr
+0x41ab mem_patch_len
+0x41ad mem_timers
+0x41cd mem_link_key_exists
+0x41ce mem_link_key
+0x41de mem_hci_cmd
+0x41df mem_hci_conn_handle
+0x41e0 mem_hci_plap
+0x41e3 mem_hci_puap
+0x41e4 mem_hci_pnap
+0x41e6 mem_loadcode_times
+0x41e7 mem_llid
+0x41e8 mem_tx_lch
+0x41e9 mem_tx_len
+0x41eb mem_tx_power
+0x41ec mem_modem_rssi
+0x41ed mem_gain_fix
+0x41ee mem_gain_table
+0x41f1 mem_gain_second_agc_en
+0x41f2 mem_rf_init_data
+0x41f3 mem_system_clk
+0x41f4 mem_le_dsniff
+0x41f6 mem_le_conn_interval
+0x41f8 mem_le_txheader
+0x41f9 mem_le_txlen
+0x41fa mem_le_txpayload
+0x42fa mem_le_name_len
+0x42fb mem_le_name
+0x4319 mem_le_ltk
+0x4329 mem_ltk_exists
+0x432a mem_le_rconfirm
+0x433a mem_le_srand
+0x434a mem_le_iat
+0x434b mem_le_rat
+0x434c mem_le_preq
+0x434d mem_le_preq_iocap
+0x434e mem_le_preq_oob
+0x434f mem_le_preq_auth
+0x4350 mem_le_preq_max_keysize
+0x4351 mem_le_preq_init_key_distribution
+0x4352 mem_le_preq_resp_key_distribution
+0x4353 mem_le_pres
+0x4354 mem_le_pres_iocap
+0x4355 mem_le_pres_oob
+0x4356 mem_le_pres_auth
+0x4357 mem_le_pres_max_keysize
+0x4358 mem_le_pres_init_key_distribution
+0x4359 mem_le_pres_resp_key_distribution
+0x435a mem_le_notify_handle
+0x435c mem_le_search_uuid_length
+0x435d mem_le_search_uuid
+0x436d mem_le_conn_param
+0x436d mem_le_conn_peer_addr_type
+0x436e mem_le_conn_peer_addr
+0x4374 mem_le_conn_own_addr_type
+0x4375 mem_le_interval_min
+0x4377 mem_le_interval_max
+0x4379 mem_le_latency
+0x437b mem_le_timeout
+0x437d mem_le_lap
+0x4380 mem_le_uap
+0x4381 mem_le_nap
+0x4383 mem_le_local_mtu
+0x4385 mem_le_remote_mtu
+0x4387 mem_le_skdm
+0x438f mem_le_skds
+0x4397 mem_le_init_superto
+0x4399 mem_ui_le_uuid_table
+0x439b mem_le_secure_connect_flag
+0x439c mem_le_secure_connect_state
+0x439d mem_le_sc_confirm_gkey_flag
+0x439e mem_le_pairing_state
+0x439f mem_le_enc_state
+0x43a0 mem_le_pairing_mode
+0x43a1 mem_le_tk
+0x43a5 mem_le_ediv
+0x43a7 mem_le_rand
+0x43af mem_le_irk
+0x43bf mem_le_transmit_window
+0x43c3 mem_le_configuration
+0x43c4 mem_le_fixed_ltk
+0x43d4 mem_le_pairing_handle
+0x43d6 mem_le_packet_llid
+0x43d7 mem_le_l2cap_size
+0x43d9 mem_le_packet_len_recved
+0x43db mem_le_payload_ptr
+0x43dd mem_le_signaling_identifier
+0x43de mem_le_l2cap_signaling_conn_param_update_rsp_result
+0x43e0 mem_le_md_count
+0x43e1 mem_ble_l2cap_tx_buff0_ptr
+0x43e3 mem_ble_l2cap_tx_buff_size_ptr
+0x43e5 mem_le_scan_enable
+0x43e6 mem_le_scan_interval
+0x43e8 mem_le_scan_window
+0x43ea mem_le_adv_data_len
+0x43eb mem_le_adv_data
+0x440a mem_le_scan_data_len
+0x440b mem_le_scan_data
+0x442a mem_le_adv_enable
+0x442b mem_le_adv_param
+0x442b mem_le_adv_interval
+0x442d mem_le_adv_type
+0x442e mem_le_adv_own_addr_type
+0x442f mem_le_adv_direct_addr
+0x4435 mem_le_adv_channel_map
+0x4436 mem_le_scan_params
+0x4436 mem_le_scan_type
+0x4437 mem_le_scan_own_addr_type
+0x4438 mem_le_l2cap_att_states
+0x4439 mem_le_att_opcode
+0x443a mem_le_att_handle
+0x443c mem_le_search_res
+0x443d mem_le_local_feature
+0x4445 mem_le_tx_phys
+0x4446 mem_le_rx_phys
+0x4447 mem_remote_rx_max_octets
+0x4449 mem_remote_rx_max_time
+0x444b mem_remote_tx_max_octets
+0x444d mem_remote_tx_max_time
+0x444f mem_local_rx_max_octets
+0x4451 mem_local_rx_max_time
+0x4453 mem_local_tx_max_octets
+0x4455 mem_local_tx_max_time
+0x4457 mem_app_handshake_flag
+0x4458 mem_sniff_param_interval
+0x445a mem_sniff_param_attempt
+0x445c mem_sniff_param_timeout
+0x445e mem_cb_check_wakelock
+0x4460 mem_cb_before_hibernate
+0x4462 mem_cb_before_lpm
+0x4464 mem_cb_le_process
+0x4466 mem_cb_bt_process
+0x4468 mem_cb_idle_process
+0x446a mem_cb_bb_event_process
+0x446c mem_cb_discovry_timeout
+0x446e mem_cb_att_write
+0x4470 mem_cb_ble_transmit
+0x4472 mem_cb_event_timer
+0x4474 mem_cb_bt_set_mult
+0x4476 mem_cb_spi_flash_write_complate
+0x4478 mem_cb_spi2_flash_write_complate
+0x447a mem_cb_bt_slave_match
+0x447c mem_cb_before_lpm_sleep
+0x447e mem_eeprom_base
+0x4480 mem_unsniff2sniff_timer_count
+0x4481 mem_wake_up_delay_timer
+0x4482 mem_app_connection_options
+0x4483 mem_app_disconn_reason
+0x4485 mem_app_disconn_reason_flag
+0x4487 mem_xrecord_mode
+0x4488 mem_eeprom_block_size
+0x4489 mem_spi_init_clk
+0x448a mem_spi_init_delay_time
+0x448b mem_spi_ncs_gpio
+0x448c mem_nv_data_ptr
+0x448e mem_nv_data_number
+0x448f mem_queue_ptr
+0x4491 mem_ui_led_struct_num
+0x4492 mem_ui_led_struct_ptr
+0x4494 mem_adc_wait_count
+0x4495 mem_3v_adc_io_data
+0x4497 mem_2v_adc_hvin_data
+0x4499 mem_2v_adc_vinlpm_data
+0x449b mem_1v_adc_io_data
+0x449d mem_3v_adc_hvin_data
+0x449f mem_3v_adc_vinlpm_data
+0x44a1 mem_app_adc_read_count
+0x44a2 mem_start_adc_clkn
+0x44a3 mem_reference_voltage
+0x44a5 mem_adc_config_flag
+0x44a6 mem_adc_channel
+0x44a7 mem_adc_current_value
+0x44a9 mem_adc_power_flag//bit0:low power falg ; bit1:no power flag
+0x44aa mem_spi_write_addr
+0x44ad mem_spi_write_ptr
+0x44af mem_spi_write_len
+0x44b1 mem_spi_write_flash_sm
+0x44b2 mem_spi2_write_addr
+0x44b5 mem_spi2_write_ptr
+0x44b7 mem_spi2_write_len
+0x44b9 mem_spi2_write_flash_sm
+0x44ba mem_spi_cs_gpio
+0x44bb mem_spi_si_gpio
+0x44bc mem_spi_so_gpio
+0x44bd mem_spi_sclk_gpio
+0x44be mem_spi_wp_gpio
+0x44bf mem_spi_hold_gpio
+0x44c0 mem_spi2_cs_gpio
+0x44c1 mem_spi2_si_gpio
+0x44c2 mem_spi2_so_gpio
+0x44c3 mem_spi2_sclk_gpio
+0x44c4 mem_spi2_wp_gpio
+0x44c5 mem_spi2_hold_gpio
+0x44c6 mem_eeprom_wp_gpio
+0x44c7 mem_eeprom_scl_gpio
+0x44c8 mem_eeprom_sda_gpio
+0x44c9 mem_kscan_ptr
+0x44cb mem_key_num_ptr
+0x44cb mem_keyscan_ptr
+0x44cd mem_key_value_retention
+0x44cf mem_power_param_ptr
+0x44d1 mem_efuse_header
+0x44d4 mem_seqi
+0x44d5 mem_dig_aon_vsel
+0x44d6 mem_syn_afc_cfg1
+0x44d7 mem_rf_ldo_cfg1
+0x44d8 mem_rc_cal
+0x44d9 mem_nec_decode_error_value
+0x44da mem_wdt_always_work
+0x44db mem_rf_debug_rx_gpio
+0x44dc mem_rf_debug_tx_gpio
+0x44dd mem_l2cap_xmem_start
+0x44dd mem_l2cap_tx_multi_offset//0 means single packet
+0x44df mem_sdp_remote_cid
+0x44e1 mem_rfcomm_remote_cid
+0x44e3 mem_hid_ctrl_remote_cid
+0x44e5 mem_hid_int_remote_cid
+0x44e7 mem_sdp_state
+0x44e8 mem_rfcomm_state
+0x44e9 mem_hid_control_state
+0x44ea mem_hid_interrupt_state
+0x44eb mem_spp_state
+0x44ec mem_ML2CAP_comm_id
+0x44ed mem_used_map
+0x44ee mem_tx_fifo0
+0x44ee mem_tx_fifo0_map
+0x44ef mem_tx_fifo0_ptr
+0x44f1 mem_tx_fifo1
+0x44f1 mem_tx_fifo1_map
+0x44f2 mem_tx_fifo1_ptr
+0x44f4 mem_tx_fifo2
+0x44f4 mem_tx_fifo2_map
+0x44f5 mem_tx_fifo2_ptr
+0x44f7 mem_tx_fifo3
+0x44f7 mem_tx_fifo3_map
+0x44f8 mem_tx_fifo3_ptr
+0x44fa mem_tx_fifo_end
+0x44fa mem_l2cap_lpm_txbuf
+0x45fa mem_l2cap_flow_ctrl_flag
+0x45fb mem_l2cap_pending_item
+0x45fc mem_l2cap_rcv_hidtype
+0x45fd mem_l2cap_xmem_end
+0x45fd mem_lmo_header_opcode_x
+0x45fe mem_lmp_version
+0x45ff mem_lmp_compid
+0x4601 mem_lmp_subversion
+0x4603 mem_local_name_length
+0x4604 mem_local_name
+0x4607 mem_local_name2
+0x4647 mem_local_name_end
+0x4648 mem_unsniff2sniff_timer
+0x4649 mem_switch_flag
+0x464a mem_classic_bt_flag
+0x464b mem_encapsulated_major_type
+0x464c mem_encapsulated_minor_type
+0x464d mem_encapsulated_len
+0x464e mem_remote_br_sc_support
+0x464f mem_pn_dlci
+0x4650 mem_pn_max_frame_size
+0x4652 memFCStemp1
+0x4653 memFCStemp2
+0x4654 memFCStemp3
+0x4655 mem_rfcomm_initiator
+0x4656 mem_remote_spp_channel
+0x4657 mem_HIUfcs_SPP
+0x4658 mem_HIUfcs_SPP_WCredits
+0x4659 mem_rfcomm_send_more_pkt
+0x465a mem_remote_credits
+0x465b mem_credit_given
+0x465c mem_ms_channel
+0x465d mem_rfcomm_credit_flag
+0x465e mem_rfcomm_max_frame_size
+0x4660 mem_rfcomm_credit_init_data
+0x4661 mem_cb_receive_spp_data
+0x4663 mem_nl_rx_data_src
+0x4665 mem_nl_rx_len_all
+0x4667 mem_ui_uuid_table
+0x4669 mem_all_uuid_16bits
+0x467f mem_all_uuid_128bits
+0x46a1 mem_sdp_l2capch_ptr
+0x46a3 mem_ccm_pcnt_tx
+0x46a8 mem_ccm_pcnt_rx
+0x46ad mem_ccm_last_mic
+0x46b1 mem_ccm_iv
+0x46b1 mem_ccm_ivm
+0x46b5 mem_ccm_ivs
+0x46b9 mem_ccm_len
+0x46bb mem_ccm_rx_ptr
+0x46bd mem_sc_only_mode
+0x46be mem_sp_debug_mode
+0x46bf mem_secure_connections_enable
+0x46c0 mem_sp_local_key_invalid
+0x46c1 mem_sc_calc
+0x46c2 mem_sc_local_key_invalid
+0x46c3 mem_sc_private_key_256
+0x46e3 mem_sc_pubkey_local_x_256
+0x4703 mem_sc_pubkey_local_y_256
+0x4723 mem_sp_private_key
+0x473b mem_sp_pubkey_local
+0x473b mem_sp_pubkey_local_x
+0x4753 mem_sp_pubkey_local_x_end
+0x4753 mem_sp_pubkey_local_y
+0x476b mem_ssp_enable
+0x476c mem_lmp_io_cap_payload_iocap
+0x476d mem_lmp_io_cap_payload_oob_auth_data
+0x476e mem_lmp_io_cap_payload_auth_req
+0x476f mem_sp_state_xmem
+0x476f mem_sp_iocap_remote
+0x4772 mem_flag_mode_ssp_pin
+0x4773 mem_ssp_mode_flag
+0x4774 mem_authentication_passkey_times
+0x4775 mem_passkey_1bit
+0x4776 mem_flag_pairing_state
+0x4777 mem_sp_state_xmem_end
+0x4777 mem_ipc_lock_bt
+0x4778 mem_ipc_lock_c51
+0x4779 mem_ipc_fifo_bt2c51
+0x4781 mem_ipc_fifo_c512bt
+0x4789 mem_ui_button_timer
+0x478a mem_ui_button_last_state
+0x478b mem_ui_timer_last_btclk
+0x478f mem_discovery_timeout_timer_count
+0x4791 mem_hid_handshake_timer_count
+0x4792 memui_reconnect_mode
+0x4793 mem_ui_state_map
+0x4795 mem_ui_profile_supported
+0x4796 mem_ui_button_timeout
+0x4797 mem_ui_button_gpio
+0x4798 mem_discovery_timeout
+0x479a mem_pin_length
+0x479b mem_pin
+0x47ab mem_dummy
+0x47ae mem_seq
+0x47af mem_context_cnt
+0x47b0 mem_context_map
+0x47b1 mem_context_new
+0x4ab1 mem_att_cmd_len
+0x4ab2 mem_att_cmd
+0x4ac1 mem_att_resp_handle
+0x4ac2 mem_att_resp_len
+0x4ac3 mem_att_resp
+0x4ae1 mem_meter_att_list
+0x47ab mem_mesh_vendor_mesh_receive_tid
+0x47ac mem_mesh_vendor_mesh_send_tid
+0x47ad mem_mesh_vendor_timer_current_time
+0x47b1 mem_system_time
+0x47b5 mem_mesh_adv_data_len
+0x47b6 mem_mesh_adv_data
+0x47d5 mem_mesh_adv_scan_channel
+0x47d6 mem_mesh_advertising_unprovisioned_device_beacon_switch
+0x47d7 mem_mesh_advertising_unprovisioned_device_beacon_timer
+0x47d9 mem_mesh_advertising_unprovisioned_device_beacon_duration
+0x47da mem_mesh_advertising_unprovisioned_device_beacon_interval
+0x47db mem_mesh_calc_ConfirmationCloud_data
+0x47db mem_mesh_ConfirmationCloud_RandomB
+0x47e3 mem_mesh_ConfirmationCloud_RandomA
+0x47eb mem_mesh_AuthValueProv
+0x47fb mem_mesh_ConfirmationCloud
+0x480b mem_mesh_ConfirmationDevice
+0x480b mem_mesh_calc_ConfirmationDevice_data
+0x480b mem_mesh_provisioning_random_A
+0x4813 mem_mesh_provisioning_random_B
+0x481b mem_mesh_AuthValueDevice
+0x482b mem_mesh_Device_Key
+0x483b mem_mesh_Confirmationkey
+0x484b mem_mesh_sha256_ConfirmationKey_ascii
+0x485a mem_mesh_sha256_SessionKey_ascii
+0x4864 mem_mesh_sha256_DeviceKey_ascii
+0x486d mem_mesh_sha256_load_first_data_flag
+0x486e mem_mesh_sha256_data_len_byte
+0x4876 mem_mesh_sha256_data_len_bit
+0x487e mem_mesh_sha256_data_end_addr
+0x4880 mem_mesh_sha256_data_len_addr
+0x4882 mem_mesh_sha256_chunk_count
+0x4883 mem_mesh_sha256_chunk_data_ptr
+0x4885 mem_mesh_sha256_chunk_ptr
+0x4887 mem_k2_P_len
+0x4888 mem_k2_P
+0x4898 mem_k2_N
+0x48a8 mem_k2_SALT
+0x48b8 mem_k2_T
+0x48c8 mem_k2_T0
+0x48c8 mem_k2_T1
+0x48d8 mem_k2_NID
+0x48d9 mem_k2_T3
+0x48e9 mem_k2_T2
+0x48f9 mem_k4_SALT
+0x4909 mem_k4_T
+0x4919 mem_k4_id6_01
+0x4929 mem_k4_k4N
+0x4939 mem_mesh_transport_AID
+0x493a mem_k3_SALT
+0x494a mem_k3_T
+0x495a mem_k3_id64_01
+0x495f mem_k3_k4N
+0x4967 mem_mesh_network_id
+0x496f mem_mesh_provisioned_flag
+0x4970 mem_mesh_Provisioning_State_Flag
+0x4971 mem_mesh_Device_PID
+0x4972 mem_mesh_UUID_FeatureFlag
+0x4973 mem_mesh_PDU_RFU
+0x4975 mem_mesh_OOB_information
+0x4977 mem_mesh_Encrypt_Provisioning_Data
+0x4977 mem_mesh_provisioning_data_Mac_addr
+0x4979 mem_mesh_KeyFresh_and_Update_flag
+0x497a mem_mesh_Network_Key
+0x498a mem_mesh_last_IV_Index_byte
+0x498b mem_mesh_Unicast_Address
+0x498d mem_mesh_adv_last_time
+0x4991 mem_mesh_send_packet_timeout
+0x4993 mem_mesh_gatt_package_send_msg_id
+0x4994 mem_mesh_gatt_receive_msg_timer
+0x4995 mem_mesh_gatt_packet_receive_msg_buffer1
+0x49b6 mem_mesh_gatt_packet_receive_msg_buffer2
+0x49d7 mem_mesh_three_tuple_ProductID
+0x49db mem_mesh_three_tuple_MAC
+0x49e1 mem_mesh_three_tuple_secret
+0x49f1 mem_mesh_cb_receive_advertising
+0x49f3 mem_mesh_cb_receive_access_message
+0x49f5 mem_mesh_cb_receive_config_appkey_add
+0x49f7 mem_mesh_cb_pairing_fail
+0x49f9 mem_mesh_cb_recv_vendor
+0x49fb mem_mesh_scan_selete_next_ch
+0x49fd mem_mesh_cb_generic_onoff_get
+0x49ff mem_mesh_cb_generic_onoff_set
+0x4a01 mem_mesh_cb_scene_recall
+0x4a03 mem_mesh_cb_light_lightness_set
+0x4a05 mem_mesh_cb_light_lightness_get
+0x4a07 mem_mesh_cb_light_ctl_set
+0x4a09 mem_mesh_cb_main_light_onoff_set
+0x4a0b mem_mesh_cb_background_onoff_set
+0x4a0d mem_mesh_cb_color_set
+0x4a0f mem_mesh_cb_network_relay
+0x4a11 mem_mesh_cb_receive_node_reset
+0x4a13 mem_mesh_cb_seq_changed
+0x4a15 mem_mesh_cb_subscriptuion_list_changed
+0x4a17 mem_mesh_cb_vendor_timing_changed
+0x4a19 mem_mesh_core_feature
+0x4a1b mem_mesh_element_number
+0x4a1c mem_mesh_element_device_ptr
+0x4a1e mem_mesh_element_device_length
+0x4a20 mem_mesh_segmented_access_message_SZMIC
+0x4a21 mem_mesh_segmented_access_message_SeqZero
+0x4a23 mem_mesh_segmented_access_message_SegO
+0x4a24 mem_mesh_segmented_access_message_SegN
+0x4a25 mem_mesh_segmented_access_message_BlockAck
+0x4a29 mem_mesh_segmented_access_message_receive_finish
+0x4a2a mem_mesh_segmented_access_message_current_length
+0x4a2b mem_mesh_segmented_access_message_SegN_upper_limit
+0x4a2c mem_mesh_segmented_access_message_Segment_ptr
+0x4a2e mem_mesh_last_CTL_Temperature
+0x4a30 mem_mesh_receive_group_address
+0x4a31 mem_mesh_receive_element_number
+0x4a32 mem_mesh_IV_Index
+0x4a36 mem_mesh_TMALL_cache_start
+0x4a36 mem_mesh_TMALL_SRC1
+0x4a38 mem_mesh_TMALL_SEQ1
+0x4a3b mem_mesh_TMALL_cache
+0x4a68 mem_mesh_TMALL_cache_end
+0x4a68 mem_mesh_transport_message_mic_cache
+0x4a68 mem_mesh_transport_message_mic_cache_buff1
+0x4a6c mem_mesh_transport_message_mic_cache_buff2_10
+0x4a90 mem_mesh_network_relay_queue
+0x4a90 mem_mesh_network_relay_queue_each_size
+0x4a91 mem_mesh_network_relay_queue_length
+0x4a92 mem_mesh_network_relay_queue_current_num
+0x4a93 mem_mesh_network_relay_queue_read_ptr
+0x4a94 mem_mesh_network_relay_queue_write_ptr
+0x4a95 mem_mesh_network_relay_queue_ele
+0x4b1d mem_mesh_application_key
+0x4b2d mem_mesh_ASZMIC
+0x4b2e mem_mesh_access_message_mic_cache
+0x4b2e mem_mesh_access_message_mic_cache_buff1
+0x4b32 mem_mesh_access_message_mic_cache_buff2_10
+0x4b56 mem_mesh_send_message_SEQ
+0x4b59 mem_mesh_send_message_SRC
+0x4b5b mem_mesh_send_message_TTL
+0x4b5c mem_mesh_send_upper_layer_IVI_and_NID
+0x4b5d mem_mesh_send_upper_layer_CTL_and_TTL
+0x4b5e mem_mesh_send_upper_layer_SEQ
+0x4b61 mem_mesh_send_upper_layer_SRC
+0x4b63 mem_mesh_send_upper_layer_DST
+0x4b65 mem_mesh_send_access_lower_transport_layer
+0x4b75 mem_mesh_send_network_layer_NetMIC
+0x4b79 mem_mesh_element_device
+0x4b79 mem_mesh_element_device_group_addr
+0x4b7b mem_mesh_element_device_queue_buffer_ptr
+0x4b7d mem_mesh_element_device_timing_ptr
+0x4b7f mem_mesh_element_device_element_subscription_label
+0x4b8f mem_mesh_element_upper_adv_flag
+0x4b90 mem_mesh_element_upper_queue_buffer_ptr
+0x4b92 mem_mesh_element_tran_package_tid
+0x4b93 mem_mesh_element_tran_package_type
+0x4b94 mem_mesh_element_device1
+0x4baf mem_mesh_element_device2
+0x4bca mem_mesh_segmented_access_message_Segment
+0x4bee mem_mesh_element_device_queue_each_size
+0x4bef mem_mesh_element_device_queue_length
+0x4bf0 mem_mesh_element_device_queue_current_num
+0x4bf1 mem_mesh_element_device_queue_read_ptr
+0x4bf2 mem_mesh_element_device_queue_write_ptr
+0x4bf3 mem_mesh_element_device_queue_ele
+0x4c7b mem_mesh_element_device_upper_queue_each_size
+0x4c7c mem_mesh_element_device_upper_queue_length
+0x4c7d mem_mesh_element_device_upper_queue_current_num
+0x4c7e mem_mesh_element_device_upper_queue_read_ptr
+0x4c7f mem_mesh_element_device_upper_queue_write_ptr
+0x4c80 mem_mesh_element_device_upper_queue_ele
+0x4d3c mem_mesh_le_att_list
+0x47ab mem_antl_lpm_interval
+0x47ad mem_antl_adv_interval
+0x47af mem_antl_slow_adv_lpm_interval
+0x47b1 mem_antl_slow_adv_adv_interval
+0x47b3 mem_antl_led_style
+0x47b3 mem_antl_led_type
+0x47b4 mem_antl_led_blink_count
+0x47b5 mem_antl_led_gpio
+0x47b6 mem_antl_led_on_time
+0x47b8 mem_antl_led_off_time
+0x47ba mem_antl_led_cb_on
+0x47bc mem_antl_led_cb_off
+0x47be mem_antl_buzzer_style
+0x47be mem_antl_buzzer_type
+0x47bf mem_antl_buzzer_blink_count
+0x47c0 mem_antl_buzzer_gpio
+0x47c1 mem_antl_buzzer_on_time
+0x47c3 mem_antl_buzzer_off_time
+0x47c5 mem_antl_buzzer_cb_on
+0x47c7 mem_antl_buzzer_cb_off
+0x47c9 mem_antl_fast_adv_led_style
+0x47c9 mem_antl_fast_adv_led_type
+0x47ca mem_antl_fast_adv_led_blink_count
+0x47cb mem_antl_fast_adv_led_gpio
+0x47cc mem_antl_fast_adv_led_on_time
+0x47ce mem_antl_fast_adv_led_off_time
+0x47d0 mem_antl_slow_adv_led_style
+0x47d0 mem_antl_slow_adv_led_type
+0x47d1 mem_antl_slow_adv_led_blink_count
+0x47d2 mem_antl_slow_adv_led_gpio
+0x47d3 mem_antl_slow_adv_led_on_time
+0x47d5 mem_antl_slow_adv_led_off_time
+0x47d7 mem_antl_power_starting_led_style
+0x47d7 mem_antl_power_starting_led_type
+0x47d8 mem_antl_power_starting_led_blink_count
+0x47d9 mem_antl_power_starting_led_gpio
+0x47da mem_antl_power_starting_led_on_time
+0x47dc mem_antl_power_starting_led_off_time
+0x47de mem_antl_power_starting_buzzer_style
+0x47e5 mem_antl_power_off_led_style
+0x47e5 mem_antl_power_off_led_type
+0x47e6 mem_antl_power_off_led_link_count
+0x47e7 mem_antl_power_off_led_gpio
+0x47e8 mem_antl_power_off_led_on_time
+0x47ea mem_antl_power_off_led_off_time
+0x47ec mem_antl_power_off_buzzer_style
+0x47ec mem_antl_power_off_buzzer_type
+0x47ed mem_antl_power_off_buzzer_link_count
+0x47ee mem_antl_power_off_buzzer_gpio
+0x47ef mem_antl_power_off_buzzer_on_time
+0x47f1 mem_antl_power_off_buzzer_off_time
+0x47f3 mem_antl_alert_led_stlye
+0x47fa mem_antl_alert_buzzer_stlye
+0x47fa mem_antl_alert_buzzer_type
+0x47fb mem_antl_alert_buzzer_blink_count
+0x47fc mem_antl_alert_buzzer_gpio
+0x47fd mem_antl_alert_buzzer_on_time
+0x47ff mem_antl_alert_buzzer_off_time
+0x4801 mem_antl_key_led_style
+0x4801 mem_antl_key_led_type
+0x4802 mem_antl_key_led_blink_count
+0x4803 mem_antl_key_led_gpio
+0x4804 mem_antl_key_led_on_time
+0x4806 mem_antl_key_led_off_time
+0x4808 mem_antl_key_buzzer_style
+0x480f mem_antl_queue_width
+0x4810 mem_antl_queue_depth
+0x4811 mem_antl_queue_curr_num
+0x4812 mem_antl_queue_read_ptr
+0x4813 mem_antl_queue_write_ptr
+0x4814 mem_antl_queue_buff
+0x4864 mem_antl_key_scan_enable
+0x4865 mem_antl_led_num
+0x4866 mem_antl_led_gpio_map
+0x486a mem_antl_power_param
+0x486a mem_antl_power_state
+0x486b mem_antl_power_timer
+0x486c mem_antl_power_off_timeout
+0x486d mem_antl_power_starting_timeout
+0x486e mem_antl_power_off_cb
+0x4870 mem_antl_power_starting_cb
+0x4872 mem_antl_power_standby_cb
+0x4874 mem_event_button_up_cb
+0x4876 mem_antl_key_num
+0x4877 mem_cb_antl_key
+0x4879 mem_antl_key_conf0
+0x487d mem_antl_key0_press
+0x488c mem_antl_key0_release
+0x489b mem_antl_conn_updata_procedure_state
+0x489c mem_client_characteristic_configuration_descriptor
+0x489e mem_adc_timer
+0x48a0 mem_antl_conn_update_timer
+0x48a1 mem_antl_send_updata_le_param_timer
+0x48a2 mem_antl_le_sleep_timer
+0x48a4 mem_antl_fast_adv_timer
+0x48a6 mem_antl_fast_adv_timeout
+0x48a8 mem_antl_le_sleep_timeout
+0x48aa mem_double_click_timer
+0x48ab mem_butten_click_cnt
+0x48ac mem_antl_led_state
+0x48ad mem_antl_buzzer_state
+0x48ae mem_antl_key_state
+0x48af mem_antl_lost_mode
+0x48b0 mem_alarm_config
+0x48b1 mem_alarm_config_notfy_cnt
+0x48b2 mem_buzzer_pwm_conf
+0x48b8 mem_adc_timeout
+0x48ba mem_voltage_remain_percent
+0x48bb mem_battery_calculate_set
+0x48bb mem_battery_full_voltage
+0x48bd mem_battery_empty_voltage
+0x48bf mem_battery_low_voltage
+0x48c1 mem_battery_current_voltage
+0x48c3 mem_rx_window_sniff_inc
+0x48c5 mem_interval_increment
+0x48c7 mem_antl_le_interval_min
+0x48c9 mem_antl_le_interval_max
+0x48cb mem_antl_le_latency
+0x48cd mem_antl_le_timeout
+0x48cf mem_antl_le_unnormal_interval_min
+0x48d1 mem_antl_le_unnormal_interval_max
+0x48d3 mem_antl_le_unnormal_latency
+0x48d5 mem_antl_le_unnormal_timeout
+0x48d7 mem_AntiLost_le_att_list
+0x4a67 mem_lestate_update_param_flag
+0x4a68 mem_antilost_conn_battery_send_timer
+0x4a69 mem_antl_disconn_buzzer_on_timer
+0x4a6b mem_antl_disconn_buzzer_on_timeout
+0x47ab mem_24g_rxbuf
+0x47cd mem_24g_txbuf
+0x47ed mem_24g_txpayload
+0x4811 mem_24g_rxpayload
+0x4831 mem_24g_rxdata_length
+0x4832 mem_24g_pid
+0x4833 mem_24g_no_ack
+0x4834 mem_24g_sta_crc
+0x4837 mem_24g_last_crc
+0x483a mem_24g_sta_pid
+0x483b mem_24g_last_pid
+0x483c mem_24g_datalen
+0x483d mem_24g_data_type
+0x483e mem_24g_txlen
+0x483f mem_24g_rx_window
+0x4841 mem_24g_ch
+0x4842 mem_24g_current_ch_number
+0x4843 mem_24g_addr
+0x4847 mem_24g_ch_map1
+0x484b mem_24g_ch_map2
+0x484f mem_24g_ch_map3
+0x4853 mem_24g_ch_map4
+0x4857 mem_24g_tx_btclk
+0x485b mem_24g_interval
+0x485c mem_24g_interval_min
+0x485d mem_24g_interval_max
+0x485e mem_24g_syncword
+0x4860 mem_24g_syncword_crc8
+0x4861 mem_24g_get_syncword_crc8
+0x4862 mem_24g_pair_switch
+0x4863 mem_24g_enter_hibernate
+0x486b mem_24g_rx_phy
+0x486c mem_24g_tx_phy
+0x486d mem_24g_ch_map_update
+0x486e mem_24g_ch_update_map1
+0x4872 mem_24g_ch_update_map2
+0x4876 mem_24g_ch_update_map3
+0x487a mem_24g_ch_update_map4
+0x487e mem_24g_disable_fec1
+0x487f mem_24g_pair_addr
+0x4883 mem_24g_pair_ch
+0x4884 mem_24g_pair_tx_power
+0x4885 mem_rssi_buff_index
+0x4886 mem_24g_device1_bind_step
+0x4887 mem_24g_device2_bind_step
+0x4888 mem_24g_bind_device_status
+0x4889 mem_24g_bind_payload
+0x4891 mem_cb_24g_receive_process
+0x4893 mem_cb_24g_ackpayload
+0x4895 mem_cb_24g_data_device1
+0x4897 mem_cb_24g_data_device2
+0x4899 mem_24g_rxdata_temp
+0x48bb mem_24g_abort_packet
+0x48bc mem_24g_hop_btclk
+0x48c0 mem_24g_hop_interval
+0x48c1 mem_24g_pair_mode
+0x48c2 mem_24g_ackpayload_enable
+0x48c3 mem_24g_hop_packet
+0x48c4 mem_24g_mode_switch
+0x48c5 mem_24g_nodata_timer_enable
+0x48c6 mem_24g_mode_init
+0x48c7 mem_24g_work_mode
+0x48c8 mem_24g_time_slice
+0x48c9 mem_24g_self_last_ch
+0x48ca mem_24g_self_ch_number
+0x48cb mem_24g_self_config_ch_once
+0x48cc mem_24g_device1_last_ch
+0x48cd mem_24g_device1_ch_number
+0x48ce mem_24g_device1_config_ch_once
+0x48cf mem_24g_device2_last_ch
+0x48d0 mem_24g_device2_ch_number
+0x48d1 mem_24g_device2_config_ch_once
+0x48d2 mem_24g_led_status
+0x48d3 mem_24g_bind_mode_continue
+0x48d4 mem_tx_power_temp
+0x48d5 mem_24g_mode_B_S_switch
+0x48d6 mem_24g_mode_B_S_switch_init
+0x48d7 mem_24g_mode_B_S_switch_cnt
+0x48d9 mem_24g_mode_B_S_switch_exit
+0x48da mem_24g_B_S_time_slice
+0x48db mem_24g_B_S_mode_switch_disable
+0x48dc mem_24g_bind_device_living
+0x48dd mem_24g_transmitter_addr
+0x48e1 mem_24g_device1_addr
+0x48e5 mem_24g_device2_addr
+0x48e9 mem_rssi_noise_avg
+0x48ea mem_rssi_noise_index
+0x48eb mem_rssi_noise_self_avg
+0x48ec mem_rssi_noise_device1_avg
+0x48ed mem_rssi_noise_device2_avg
+0x48ee mem_rssi_noise_self_index
+0x48ef mem_rssi_noise_device1_index
+0x48f0 mem_rssi_noise_device2_index
+0x48f1 mem_rssi_noise_buffer_ptr
+0x48f3 mem_rssi_noise_self_buffer_ptr
+0x48f5 mem_rssi_noise_device1_buffer_ptr
+0x48f7 mem_rssi_noise_device2_buffer_ptr
+0x48f9 mem_car_hard_soft_switch
+0x48fa mem_car_queue_each_size
+0x48fb mem_car__queue_length
+0x48fc mem_car_queue_curr_num
+0x48fd mem_car_queue_read_ptr
+0x48fe mem_car_queue_write_ptr
+0x48ff mem_car_queue_ele
+0x4977 mem_car_pop_queue_buff
+0x498b mem_car_led_num
+0x498c mem_car_led_map
+0x4996 mem_car_style1_led_type
+0x4997 mem_car_style1_blink_count
+0x4998 mem_car_style1_struct_led_gpio
+0x4999 mem_car_style1_on_time
+0x499b mem_car_style1_off_time
+0x499d mem_car_style1_cb_ledon
+0x499f mem_car_style1_cb_ledoff
+0x49a1 mem_car_style2_led_type
+0x49a2 mem_car_style2_blink_count
+0x49a3 mem_car_style2_struct_led_gpio
+0x49a4 mem_car_style2_on_time
+0x49a6 mem_car_style2_off_time
+0x49a8 mem_car_style2_cb_ledon
+0x49aa mem_car_style2_cb_ledoff
+0x49ac mem_le_receive_data
+0x49ac mem_le_receive_packet_head
+0x49ae mem_le_receive_cmd
+0x49af mem_le_receive_length
+0x49b1 mem_le_receive_payload
+0x49bb mem_le_receive_checksum
+0x49bc mem_motor1_status
+0x49bd mem_motor1_speed
+0x49be mem_motor2_status
+0x49bf mem_motor2_speed
+0x49c0 mem_motor3_status
+0x49c1 mem_motor3_speed
+0x49c2 mem_motor1_pwm_set
+0x49c2 mem_motor1_pwm_pin1_set
+0x49c3 mem_motor1_pwm_pin2_set
+0x49c4 mem_motor1_pwm_pin_set
+0x49c5 mem_motor1_pwm_channel_set
+0x49c6 mem_motor1_pwm_freq_set
+0x49c9 mem_motor1_pwm_dute_set
+0x49ca mem_motor2_pwm_set
+0x49ca mem_motor2_pwm_pin1_set
+0x49cb mem_motor2_pwm_pin2_set
+0x49cc mem_motor2_pwm_pin_set
+0x49cd mem_motor2_pwm_channel_set
+0x49ce mem_motor2_pwm_freq_set
+0x49d1 mem_motor2_pwm_dute_set
+0x49d2 mem_motor3_pwm_set
+0x49d2 mem_motor3_pwm_pin1_set
+0x49d3 mem_motor3_pwm_pin2_set
+0x49d4 mem_motor3_pwm_pin_set
+0x49d5 mem_motor3_pwm_channel_set
+0x49d6 mem_motor3_pwm_freq_set
+0x49d9 mem_motor3_pwm_dute_set
+0x49da mem_motor_select_p_n
+0x49db mem_car_motor_status
+0x49dc mem_car_motor_speed
+0x49dd mem_motor_pwm_set
+0x49dd mem_motor_pwm_pin1_set
+0x49de mem_motor_pwm_pin2_set
+0x49df mem_motor_pwm_pin_set
+0x49e0 mem_motor_pwm_channel_set
+0x49e1 mem_motor_pwm_freq_set
+0x49e4 mem_motor_pwm_dute_set
+0x49e5 mem_ir_rx_gpio
+0x49e6 mem_ir_data
+0x49e8 mem_ir_rx_buf
+0x49ea mem_ir_receive_clkn
+0x49ee mem_ir_notify_data
+0x49f1 mem_ir_notify_data_head
+0x49f6 mem_ir_notify_data_payload
+0x49f8 mem_ir_notify_data_check_sum
+0x49f9 mem_car_ir_breakdown_check_timer
+0x49fa mem_car_ir_breakdown_flag
+0x49fb mem_car_led_control
+0x49fb mem_car_led1_status
+0x49fc mem_car_led2_status
+0x49fd mem_car_led3_status
+0x49fe mem_car_led4_status
+0x49ff mem_car_led5_status
+0x4a00 mem_car_led6_status
+0x4a01 mem_car_led7_status
+0x4a02 mem_car_led8_status
+0x4a03 mem_car_led_control_timer
+0x4a04 mem_car_led_blink_status
+0x4a05 mem_car_led_no
+0x4a06 mem_car_info_request
+0x4a09 mem_car_info_request_head
+0x4a0e mem_car_info_request_payload
+0x4a16 mem_car_info_request_checksum
+0x4a17 mem_car_config_param
+0x4a17 mem_car_config_setting_flag
+0x4a18 mem_car_config_device_select
+0x4a19 mem_car_config_motor_layout
+0x4a1a mem_car_config_ir_enable
+0x4a1b mem_car_config_ir_rx_gpio
+0x4a1c mem_car_config_pairing_led_conn_status
+0x4a1d mem_car_config_pairing_led_gpio
+0x4a1e mem_car_config_led_num
+0x4a1f mem_car_config_blood_led_gpio
+0x4a1f mem_car_config_blood_led1_gpio
+0x4a20 mem_car_config_blood_led2_gpio
+0x4a21 mem_car_config_blood_led3_gpio
+0x4a22 mem_car_config_blood_led4_gpio
+0x4a23 mem_car_config_blood_led5_gpio
+0x4a24 mem_car_config_blood_led6_gpio
+0x4a25 mem_car_config_blood_led7_gpio
+0x4a26 mem_car_config_blood_led8_gpio
+0x4a27 mem_car_config_bat_notify_enable
+0x4a28 mem_car_config_low_voltage_led_gpio
+0x4a29 mem_car_config_low_voltage_percent
+0x4a2a mem_car_config_soft_switch_enable
+0x4a2b mem_car_config_soft_switch_gpio
+0x4a2c mem_car_notify_vdd_count
+0x4a2d mem_car_notify_vdd_timer
+0x4a2e mem_car_notify_vdd_value_last
+0x4a2f mem_car_notify_vdd_percent
+0x4a30 mem_car_working_flag
+0x4a31 mem_low_bat_flag
+0x4a32 mem_notify_bat_packet
+0x4a35 mem_notify_bat_head
+0x4a3a mem_notify_bat_payload
+0x4a3b mem_notify_bat_check_sum
+0x4a3c mem_vdd_notify_flag
+0x4a3d mem_car_current_vdd_value_temp
+0x4a3f mem_car_last_vdd_value
+0x4a41 mem_vdd_calculate_set
+0x4a41 mem_vdd_full_vol
+0x4a43 mem_vdd_empty_vol
+0x4a45 mem_vdd_low_vol
+0x4a47 mem_vdd_now_vol
+0x4a49 mem_car_24g_status
+0x4a4a mem_car_24g_no_data_timeout_count
+0x4a4c mem_car_24g_no_data_timeout_timer
+0x4a4e mem_car_24g_ir_receive_attack_count
+0x4a4f mem_car_24g_go_die_flag
+0x4a50 mem_car_attack_shake_timer
+0x4a51 mem_car_attack_shake_flag
+0x4a52 mem_car_soft_power
+0x4a52 mem_car_power_state
+0x4a53 mem_car_power_timer
+0x4a54 mem_car_power_off_timeout
+0x4a55 mem_car_power_starting_timeout
+0x4a56 mem_car_power_off_cb
+0x4a58 mem_car_power_starting_cb
+0x4a5a mem_car_power_standby_cb
+0x4a5c mem_car_ui_button_up_cb
+0x4a5e mem_car_le_att_list
+0x4c52 mem_car_moto1_blank_timer
+0x4c53 mem_car_moto2_blank_timer
+0x4c54 mem_car_moto3_blank_timer
+0x4c55 mem_car_motor_gpio_num
+0x4c56 mem_car_motor_gpio_map
+0x4c56 mem_car_motor_left_gpio
+0x4c57 mem_car_motor_right_gpio
+0x4c58 mem_car_motor_front_gpio
+0x4c59 mem_car_motor_back_gpio
+0x4c5a mem_car_gpio
+0x4c5b mem_car_app_send_speed
+0x4c5c mem_rssi_sum
+0x4c5e mem_check_rssi_high_count
+0x4c60 mem_rssi_data
+0x4c68 mem_car_24g_received_pac
+0x4c69 mem_car_24g_bind_enable_delay_count
+0x4c6a mem_car_keyscan
+0x4c6a mem_car_key_num
+0x4c6b mem_cb_car_keyscan
+0x4c6d mem_car_enter_lpm_timer_count
+0x4c6f mem_car_enter_lpm_timer
+0x4c71 mem_car_enter_lpm_flag
+0x4c72 mem_car_24g_ch_polling
+0x4c73 mem_car_rssi_noise_buffer
+0x4c7b mem_car_rssi_noise_car_buffer
+0x4c83 mem_car_rssi_noise_remote_buffer
+0x48f9 mem_dg_kb_bind_flag
+0x48fa mem_dg_kb_data_sta_data
+0x4902 mem_dg_kb_data_last_data
+0x490a mem_dg_kb_multikey_sta_data
+0x490d mem_dg_kb_multikey_last_data
+0x4910 mem_dg_kb_system_sta_data
+0x4913 mem_dg_kb_system_last_data
+0x4916 mem_dg_kb_blank_data_enable
+0x4917 mem_dg_kb_mul_blank_data_enable
+0x4918 mem_dg_ms_blank_data_enable
+0x4919 mem_dg_sys_config
+0x491a mem_dg_usb_vid_pid
+0x4923 mem_dg_usb_tx_interval
+0x4924 mem_dg_usb_device_name
+0x4942 mem_dg_kb_bind_success
+0x4943 mem_dg_pc_sleep_flag
+0x4886 mem_rssi_hex_received
+0x4887 mem_24g_pair_sm
+0x4888 mem_24g_pair_no_ack
+0x4889 mem_24g_pair_timeout_init
+0x488b mem_24g_pair_timeout
+0x488d mem_24g_reconn_timeout_init
+0x488f mem_24g_reconn_timeout
+0x4891 mem_24g_reconn_count
+0x4893 mem_24g_reconn_type
+0x4894 mem_24g_fast_conn_enable
+0x4895 mem_24g_fast_conn_addr
+0x4899 mem_24g_receiver_addr
+0x489d mem_24g_fast_conn_temp_ch
+0x489e mem_24g_receiver_temp_ch
+0x489f mem_24g_device_temp_ch
+0x48a0 mem_rssi_signal_index
+0x48a1 mem_rssi_signal_buf_ptr
+0x48a3 mem_cb_24g_transmit_data
+0x48a5 mem_cb_24g_search_receiver
+0x48a7 mem_cb_24g_lpm_before
+0x48a9 mem_24g_conn_sm
+0x48aa mem_24g_ensure
+0x48ab mem_24g_txfail_cnt
+0x48ad mem_24g_attempt_fail_flag
+0x48ae mem_24g_retry
+0x48af mem_24g_abort_pac
+0x48b0 mem_24g_max_retry
+0x48b1 mem_24g_device_addr
+0x48b5 mem_24g_short_sleep_set
+0x48b8 mem_24g_long_sleep_set
+0x48c0 mem_24g_long_sleep_set1
+0x48c4 mem_24g_pac_index
+0x48c5 mem_24g_transmit_by_interrupt
+0x48c6 mem_24g_transmit_by_interrupt_exit_count
+0x48c8 mem_24g_transmit_by_interrupt_exit_count_init
+0x48ca mem_24g_long_sleep_param_update_timer_init
+0x48cc mem_24g_long_sleep_param_update_timer
+0x48ce mem_24g_fast_hop_count
+0x48cf mem_rssi_avg_received
+0x48d0 mem_power_ctrl_level
+0x48d1 mem_power_ctrl_pac_succ_cnt
+0x48d2 mem_power_ctrl_pac_succ_cnt_init
+0x48d3 mem_rssi_dis_min_24g
+0x48d4 mem_rssi_dis_max_24g
+0x48d5 mem_rssi_hex_received_max_value
+0x48d6 mem_rssi_dis_min_ble
+0x48d7 mem_rssi_dis_max_ble
+0x48d8 mem_mouse_key
+0x48d9 mem_mouse_x
+0x48db mem_mouse_y
+0x48dd mem_mouse_z
+0x48de mem_mouse_tz
+0x48df mem_mouse_xy_h
+0x48e0 mem_mouse_key_last
+0x48e1 mem_wheel_tb_old_pinlevel
+0x48e2 mem_wheel_tb_new_pinlevel
+0x48e3 mem_wheel_tog
+0x48e4 mem_mouse_tz_data
+0x48e5 mem_mwheel_b_old_pinlevel
+0x48e6 mem_mwheel_b_new_pinlevel
+0x48e7 mem_mwheel_tog
+0x48e8 mem_mouse_z_data
+0x48e9 mem_mouse_wheel_trigger
+0x48ea mem_mouse_wheel_trigger_timer
+0x48eb mem_mouse_vdd_calculate_set
+0x48eb mem_mouse_vdd_full_vol
+0x48ed mem_mouse_vdd_empty_vol
+0x48ef mem_mouse_vdd_low_vol
+0x48f1 mem_mouse_vdd_now_vol
+0x48f3 mem_mouse_vdd_button_press_vol
+0x48f5 mem_mouse_vdd_switch_gnd_24g_vol
+0x48f7 mem_mouse_vdd_switch_gnd_full_vol
+0x48f9 mem_mouse_vdd_switch_gnd_shutdown_voltage
+0x48fb mem_mouse_vdd_switch_gnd_low_voltage
+0x48fd mem_adc_mux_status
+0x48fe mem_adc_read_timer
+0x48ff mem_adc_read_time_init
+0x4900 mem_adc_low_volatage_led_timer_count
+0x4901 mem_adc_low_volatage_led_blink_enable
+0x4902 mem_mouse_adc_last_low_voltage_flag
+0x4903 mem_mouse_adc_button_press_flag
+0x4904 mem_adc_channel_gpio
+0x4905 mem_adc_config_flag_init
+0x4906 mem_mouse_discovery_timeout
+0x4908 mem_mouse_24g_pair_timeout_init
+0x490a mem_mouse_direct_timeout
+0x490b mem_mouse_24g_reconn_timeout_init
+0x490c mem_mouse_24g_pair_tx_power
+0x490d mem_rssi_dis_min_24g_init
+0x490e mem_rssi_dis_max_24g_init
+0x490f mem_rssi_hex_received_max_value_init
+0x4910 mem_rssi_dis_min_ble_init
+0x4911 mem_rssi_dis_max_ble_init
+0x4912 mem_mouse_enable_flag
+0x4913 mem_mouse_param_config
+0x4913 mem_lbutton_gpio
+0x4914 mem_mbutton_gpio
+0x4915 mem_rbutton_gpio
+0x4916 mem_bk_button_gpio
+0x4917 mem_fw_button_gpio
+0x4918 mem_dpi_button_gpio
+0x4919 mem_whee_a_data_gpio
+0x491a mem_whee_b_data_gpio
+0x491b mem_mouse_sensor_sclk_gpio
+0x491c mem_mouse_sensor_sdio_gpio
+0x491d mem_select_sensor_angle_gpio
+0x491e mem_sensor_angle_default
+0x491f mem_sensor_angle_switch
+0x4920 mem_config_sensor_dpi
+0x4921 mem_whee_ta_data_gpio
+0x4922 mem_whee_tb_data_gpio
+0x4923 mem_matrix_public_gpio
+0x4924 mem_config_select_device_button_gpio
+0x4925 mem_customer_key_gpio
+0x4926 mem_sensor_motion_gpio
+0x4927 mem_device_switch_gpio
+0x4928 mem_mouse_reuse_2ice_gpio
+0x4929 mem_config_low_voltage_alarm_gpio
+0x492a mem_config_device_24g_led_gpio
+0x492b mem_config_device_bt1_led_gpio
+0x492c mem_config_device_bt2_led_gpio
+0x492d mem_dpi_led_gpio
+0x492e mem_mouse_param_config_end
+0x492e mem_config_sensor_type
+0x492f mem_config_sensor_angle
+0x4930 mem_wire_usb_interval
+0x4931 mem_usb_addr
+0x4932 mem_mouse_usb_vdd_status
+0x4933 mem_mouse_usb_keyboard_flag
+0x4934 mem_mouse_led_type
+0x4935 mem_mouse_blink_count
+0x4936 mem_mouse_struct_led_gpio
+0x4937 mem_mouse_on_time
+0x4939 mem_mouse_off_time
+0x493b mem_mouse_cb_ledon
+0x493d mem_mouse_cb_ledoff
+0x493f mem_mouse_information_start
+0x493f mem_device_flag
+0x4940 mem_device1_type
+0x4941 mem_device1_addr
+0x4947 mem_device1_link_key
+0x4957 mem_device1_locall_addr
+0x495d mem_device2_type
+0x495e mem_device2_addr
+0x4964 mem_device2_link_key
+0x4974 mem_device2_locall_addr
+0x497a mem_device3_type
+0x497b mem_mouse_compare_addr_ff
+0x497b mem_device3_addr
+0x4981 mem_device3_link_key
+0x4991 mem_device3_locall_addr
+0x4997 mem_store_flag
+0x4999 mem_mouse_dpi
+0x499a mem_mouse_24g_addr
+0x499e mem_random_addr_increase_count
+0x49a0 mem_mouse_retention
+0x49bf mem_mouse_information_end
+0x49bf mem_flash_base
+0x49c2 mem_write_flash_head_temp
+0x49c6 mem_store_information_delay_timer
+0x49c7 mem_store_information_delay_timer_init
+0x49c8 mem_sensor_id1
+0x49c9 mem_sensor_id2
+0x49ca mem_sensor_shutter_hi
+0x49cb mem_sensor_shutter_lo
+0x49cc mem_sensor_smart_flag
+0x49cd mem_sensor_squal_reg
+0x49ce mem_sensor_iqc
+0x49cf mem_mouse_move_flag
+0x49d0 mem_mouse_asm_flag
+0x49d1 mem_mouse_x_pre
+0x49d3 mem_mouse_y_pre
+0x49d5 mem_mouse_data_xtemp
+0x49d6 mem_mouse_data_ytemp
+0x49d7 mem_mouse_dpi_seting
+0x49d7 mem_320x_dpi_0
+0x49d8 mem_320x_dpi_1
+0x49d9 mem_320x_dpi_2
+0x49da mem_320x_dpi_3
+0x49db mem_3212_dpi_0
+0x49dc mem_3212_dpi_1
+0x49dd mem_3212_dpi_2
+0x49de mem_3212_dpi_3
+0x49df mem_ka8g2_dpi_0
+0x49e0 mem_ka8g2_dpi_1
+0x49e1 mem_ka8g2_dpi_2
+0x49e2 mem_ka8g2_dpi_3
+0x49e3 mem_mouse_cpi_count
+0x49e4 mem_mouse_dpi_button_state
+0x49e5 mem_mouse_dpi_long_press_flag
+0x49e6 mem_sensor_3212_init
+0x49f0 mem_sensor_3204_init
+0x49fa mem_sensor_3205_init
+0x4a04 mem_sensor_32xx_init
+0x4a1e mem_sensor_32xx_init_1
+0x4a40 mem_sensor_8650_init
+0x4a66 mem_sensor_ka8ul_init
+0x4a84 mem_sensor_8009_init
+0x4a94 mem_sensor_ka8g2_init
+0x4aaa mem_sensor_p6520_init
+0x4ab6 mem_sensor_poweron_init
+0x4abe mem_mouse_clear_sensor_data_flag
+0x4abf mem_bluetooth_125hz_cnt
+0x4ac0 mem_mouse_long_mult_flag
+0x4ac1 mem_mouse_current_mult_timer
+0x4ac2 mem_reconn_times
+0x4ac3 mem_reconn_times_init
+0x4ac4 mem_mouse_no_data_timer
+0x4ac6 mem_device_flag_temp
+0x4ac7 mem_mouse_rssi_signal_buf
+0x4acf mem_btclk_sensor
+0x4ad3 mem_mouse_bluetooth_fast_conn_flag
+0x4ad4 mem_mouse_discovery_timer
+0x4ad6 mem_mouse_bluetooth_reconnect_timeout
+0x4ad7 mem_mouse_need_soft_reset
+0x4ad8 mem_mouse_le_bb_connected_flag
+0x4ad9 mem_mouse_le_reconnect_flag
+0x4ada mem_mouse_send_secutiry_request_timer
+0x4adb mem_mouse_le_lap_temp
+0x4ade mem_le_adv_ind
+0x4ae1 mem_le_adv_direct_ind
+0x4ae4 mem_le_adv_swift_pair
+0x4af8 mem_le_data_len
+0x4af9 mem_le_keyboard_handle
+0x4afb mem_le_multimedia_handle
+0x4afd mem_le_systemctrl_handle
+0x4aff mem_le_battery_level_handle
+0x4b01 mem_le_battery_level_percentage
+0x4b02 mem_le_battery_level_updata_timer_init
+0x4b04 mem_le_battery_level_updata_timer
+0x4b06 mem_mouse_le_conn_param_reject
+0x4b07 mem_le_tx_buffer0_omemalloc
+0x4b27 mem_le_tx_buffer1_omemalloc
+0x4b47 mem_le_tx_buffer2_omemalloc
+0x4b67 mem_le_tx_buffer3_omemalloc
+0x4b87 mem_le_connect_status_flag
+0x4b88 mem_le_start_encrypt_timer
+0x4b89 mem_mouse_direct_timer
+0x4b8a mem_device_addr_temp
+0x4b91 mem_mouse_enter_sniff_count
+0x4b92 mem_mouse_bt_boot_mode
+0x4b93 mem_mouse_bt_boot_data
+0x4b98 mem_bt_send_max_slot_req_accept_after_switch
+0x4b99 mem_mouse_bt_send_first_package_timer
+0x4b9a mem_mouse_bt_send_first_package_flag
+0x4b9b mem_lmi_opcode_temp
+0x4b9c mem_lpm_mult_init
+0x4b9d mem_customer_key
+0x4b9e mem_customer_data_trigger
+0x4b9f mem_customer_data_trigger_last
+0x4ba0 mem_mouse_lkey_press_status
+0x4ba1 mem_mouse_rkey_press_status
+0x4ba2 mem_mouse_mkey_press_status
+0x4ba3 mem_mouse_bkkey_press_status
+0x4ba4 mem_mouse_fwkey_press_status
+0x4ba5 mem_mouse_dpikey_press_status
+0x4ba6 mem_mouse_pbkey_press_status
+0x4ba7 mem_mouse_customerkey_press_status
+0x4ba8 mem_mouse_key_temp
+0x4ba9 mem_mouse_key_status
+0x4baa mem_mouse_matrix_key_cow_count
+0x4bab mem_mouse_matrix_key_row_count
+0x4bac mem_mouse_ghost_flag
+0x4bad mem_bt_discovery_count
+0x4bae mem_select_device_count
+0x4baf mem_mouse_commbination_key
+0x4bb0 mem_select_device_button_statue
+0x4bb1 mem_commbination_key_statue
+0x4bb2 mem_combination_ui_button_count
+0x4bb3 mem_mouse_search_dongle_interval
+0x4bb4 mem_mouse_search_dongle_ch
+0x4bb5 mem_mouse_search_dongle_count
+0x4bb6 mem_mouse_search_dongle_action
+0x4bb7 mem_24g_enter_lpm_timer
+0x4bb8 mem_mouse_24g_enter_lpm_enable
+0x4bb9 mem_mouse_device_poweron_timer_count
+0x4bba mem_mouse_dpi_led_delay_count
+0x4bbb mem_mouse_led_off_4_led
+0x4bbc mem_24g_device_led_status
+0x4bbd mem_mouse_flag
+0x4bc5 mem_mouse_bluetooth_type
+0x4bc6 mem_device_number
+0x4bc7 mem_mouse_page_to
+0x4bc9 mem_mouse_fast_direct_timeout
+0x4bca mem_mouse_fast_page_to
+0x4bcc mem_mouse_24g_power_on_fast_conn_timer
+0x4bce mem_mouse_24g_search_dongle_time_init
+0x4bd0 mem_mouse_no_data_timeout
+0x4bd2 mem_mouse_device_poweron_timer_count_init
+0x4bd3 mem_mouse_dpi_led_delay_count_init
+0x4bd4 mem_mouse_dpi_led_blink_time
+0x4bd6 mem_mouse_disconvey_led_blink_time
+0x4bd8 mem_mouse_low_v_led_blink_time
+0x4bda mem_adc_low_volatage_led_blink_timer
+0x4bdc mem_mouse_commbination_key_bt
+0x4bdd mem_mouse_commbination_key_24g
+0x4bde mem_customer_key_press
+0x4be7 mem_customer_key_release
+0x4bf0 mem_mouse_set_high_impedance_bit_set
+0x4bf3 mem_sensor_shutdown_flag
+0x4bf4 mem_24g_long_sleep_set_level
+0x4bf5 mem_power_on_flag
+0x4bf6 mem_24g_pair_count
+0x4bf8 mem_24g_pair_time_out
+0x4bf9 mem_mouse_factory_addr
+0x4c01 mem_keyboard_tx_data
+0x4c0b mem_keyboard_data_send_flag
+0x4c0c mem_mouse_le_send_conn_param_update
+0x4c0d mem_mouse_le_send_conn_param_update_timer
+0x4c0e mem_mcu_stb_gpio
+0x4c0f mem_mcu_clk_gpio
+0x4c10 mem_mcu_rstb_gpio
+0x4c11 mem_keyboard_caps_led_gpio
+0x4c12 mem_keyboard_num_led_gpio
+0x4c13 mem_keyboard_power_led_gpio
+0x4c14 mem_keyboard_caps_led_on_timer
+0x4c16 mem_keyboard_mode_led_on_timer
+0x4c17 mem_keyboard_led_r_gpio
+0x4c18 mem_keyboard_led_g_gpio
+0x4c19 mem_keyboard_led_b_gpio
+0x4c1a mem_key_row_gpio
+0x4c22 mem_key_col_gpio
+0x4c36 mem_key_excol_gpio
+0x4c42 mem_kb_row_ptr
+0x4c44 mem_kb_col_ptr
+0x4c46 mem_kb_excol_ptr
+0x4c48 mem_keyscan_value_current
+0x4c5c mem_keyscan_value_check
+0x4c70 mem_keyscan_value_old
+0x4c84 mem_keyscan_exmcu_value
+0x4c8f mem_keyscan_value_ptr
+0x4c91 mem_keyscan_exmcu_value_ptr
+0x4c93 mem_keyscan_value_temp
+0x4c94 mem_keyscan_col_loop_count
+0x4c95 mem_keyscan_exmcu_wait_wake_count
+0x4c97 mem_keyscan_exmcu_reset_count
+0x4c98 mem_same_keyvalue_timerout_flag
+0x4c99 mem_same_keyvalue_timer_init
+0x4c9b mem_same_keyvalue_timer
+0x4c9d mem_keyboard_current_col_press_key_count
+0x4c9e mem_keyboard_all_press_key_count
+0x4c9f mem_keyboard_same_row_press_key_count
+0x4ca0 mem_keyboard_ghost_flag
+0x4ca1 mem_keyboard_data_change_flag
+0x4ca2 mem_keyboard_keyvalue_temp
+0x4ca3 mem_keyboard_press_flag_temp
+0x4ca4 mem_keyboard_keyvalue_bit_loop_count
+0x4ca5 mem_keyboard_keyvalue_buffer
+0x4cae mem_keyboard_keyvalue_map
+0x4d4e mem_keyboard_fn_flag
+0x4d4f mem_keyboard_control_key_flag
+0x4d50 mem_keyboard_bt_button_flag
+0x4d51 mem_keyboard_pairing_type
+0x4d52 mem_keyboard_commbination_key_bt
+0x4d54 mem_keyboard_commbination_key_24g
+0x4d56 mem_keyboard_commbination_fast_conn_bt
+0x4d58 mem_24g_repeat_send_flag
+0x4d59 mem_keyboard_led_status
+0x4d5a mem_keyboard_led_status_get
+0x4d5b mem_keyboard_led_status_get_timer
+0x4d5c mem_keyboard_led_status_get_timer_last
+0x4d5d mem_keyboard_fn_esc_f1_f12
+0x4d5d mem_keyboard_fn_first
+0x4d5e mem_keyboard_fn_esc
+0x4d5f mem_keyboard_fn_f1
+0x4d60 mem_keyboard_fn_f2
+0x4d61 mem_keyboard_fn_f3
+0x4d62 mem_keyboard_fn_f4
+0x4d63 mem_keyboard_fn_f5
+0x4d64 mem_keyboard_fn_f6
+0x4d65 mem_keyboard_fn_f7
+0x4d66 mem_keyboard_fn_f8
+0x4d67 mem_keyboard_fn_f9
+0x4d68 mem_keyboard_fn_f10
+0x4d69 mem_keyboard_fn_f11
+0x4d6a mem_keyboard_fn_f12
+0x4d6b mem_keyboard_fn_del
+0x4d6c mem_keyboard_fn_arrow_enable_flag
+0x4d6d mem_keyboard_fn_left_ctrl_enable_flag
+0x4d6e mem_keyboard_fn_space_enable_flag
+0x4d6f mem_keyboard_fn_system_switch_enable_flag
+0x4d70 mem_keyboard_commbination_key_step
+0x4d71 mem_keyboard_commbination_control_key_value
+0x4d72 mem_keyboard_commbination_standard_key_value
+0x4d73 mem_keyboard_commbination_control_key_delay_release_timer
+0x4d74 mem_keyboard_consumer_key_status
+0x4d75 mem_keyboard_le_map_len
+0x4d77 mem_keyboard_ui_uuid_table
+0x4ecb mem_keyboard_le_hid_map
+0x4fa7 mem_keybord_appearance
+0x4fa9 mem_kb_computer_system
+0x4faa mem_otp_read_retention_memory
+0x4fc2 mem_otp_read_retention_offset
+0x4fc4 mem_le_search_service_uuid
+0x4fd4 mem_le_connect_ios_mac_flag
+0x4fd5 mem_le_search_mac_uuid
+0x4fd7 mem_le_search_mac_manu_name
+0x4fe0 mem_le_start_auto_reco_timer
+0x4fe1 mem_keyboard_change_vid_pid_flag
+0x4fe2 mem_keybaord_pnp_vid_source
+0x4fe3 mem_keyboard_vid
+0x4fe5 mem_keyboard_pid
+0x4fe7 mem_keyboard_product_version
+0x4fe9 mem_keyboard_commbination_long_press_timer_init
+0x4fea mem_keyboard_commbination_long_press_timer
+0x4feb mem_keyboard_commbination_long_press_flag
+0x48d8 mem_remote_car_hard_soft_switch
+0x48d9 mem_remote_car_queue_each_size
+0x48da mem_remote_car_queue_length
+0x48db mem_remote_car_queue_curr_num
+0x48dc mem_remote_car_queue_read_ptr
+0x48dd mem_remote_car_queue_write_ptr
+0x48de mem_remote_car_queue_ele
+0x4938 mem_remote_style_led_type
+0x4939 mem_remote_style_blink_count
+0x493a mem_remote_style_struct_led_gpio
+0x493b mem_remote_style_on_time
+0x493d mem_remote_style_off_time
+0x493f mem_remote_style_cb_ledon
+0x4941 mem_remote_style_cb_ledoff
+0x4943 mem_remote_car_led_num
+0x4944 mem_remote_car_led_map
+0x494c mem_remote_car_keyscan
+0x494c mem_remote_car_key_num
+0x494d mem_cb_remote_car_keyscan
+0x494f mem_remote_car_key_conf0
+0x494f mem_remote_car_key_conf0_pin
+0x4950 mem_remote_car_key_conf1
+0x4950 mem_remote_car_key_conf1_pin
+0x4951 mem_remote_car_key_conf2
+0x4951 mem_remote_car_key_conf2_pin
+0x4952 mem_remote_car_key_conf3
+0x4952 mem_remote_car_key_conf3_pin
+0x4953 mem_remote_car_key_conf4
+0x4953 mem_remote_car_key_conf4_pin
+0x4954 mem_remote_car_key_conf5
+0x4954 mem_remote_car_key_conf5_pin
+0x4955 mem_remote_car_key_conf6
+0x4955 mem_remote_car_key_conf6_pin
+0x4956 mem_rocker_negative_flag
+0x4957 mem_rocker_work_status
+0x4958 mem_current_vdd_value_default_mid_x
+0x495a mem_current_vdd_value_default_mid_y
+0x495c mem_current_vdd_value_default_mid_temp
+0x495e mem_current_vdd_default_range
+0x4960 mem_rocker_last_status
+0x4962 mem_rocker_status
+0x4962 mem_rocker_x_status
+0x4963 mem_rocker_y_status
+0x4964 mem_remote_car_config_param
+0x4964 mem_remote_car_config_setting_flag
+0x4965 mem_remote_car_config_key_map
+0x4966 mem_remote_car_config_layout
+0x4967 mem_remote_car_config_connect_led_gpio
+0x4968 mem_remote_car_config_check_way
+0x4969 mem_remote_car_config_soft_switch_enable
+0x496a mem_remote_car_config_soft_switch_gpio
+0x496b mem_remote_car_config_timeout_shutdown_enable
+0x496c mem_remote_car_24g_motor_packet
+0x496c mem_remote_car_24g_motor_packet_lenght
+0x496d mem_remote_car_24g_motor_send_packet_head
+0x496f mem_remote_car_24g_motor_send_cmd
+0x4970 mem_remote_car_24g_motor_send_length
+0x4972 mem_remote_car_24g_motor_send_payload
+0x4972 mem_remote_car_24g_motor1_payload
+0x4974 mem_remote_car_24g_motor2_payload
+0x4976 mem_remote_car_24g_motor3_payload
+0x4978 mem_remote_car_24g_motor_send_checksum
+0x4979 mem_remote_car_24g_fire_packet
+0x4979 mem_remote_car_24g_fire_packet_lenght
+0x497a mem_remote_car_24g_fire_send_packet_head
+0x497c mem_remote_car_24g_fire_send_cmd
+0x497d mem_remote_car_24g_fire_send_length
+0x497f mem_remote_car_24g_fire_send_payload
+0x4981 mem_remote_car_24g_fire_send_checksum
+0x4982 mem_remote_car_24g_tx_temp
+0x4991 mem_remote_car_no_data_timeout
+0x4993 mem_remote_car_no_data_timer
+0x4995 mem_remote_car_soft_power
+0x4995 mem_remote_car_power_state
+0x4996 mem_remote_car_power_timer
+0x4997 mem_remote_car_power_off_timeout
+0x4998 mem_remote_car_power_starting_timeout
+0x4999 mem_remote_car_power_off_cb
+0x499b mem_remote_car_power_starting_cb
+0x499d mem_remote_car_power_standby_cb
+0x499f mem_remote_key_status
+0x49a0 mem_remote_car_24g_status
+0x49a1 mem_remote_car_24g_auto_work_step
+0x49a2 mem_remote_car_24g_pair_success_flag
+0x49a3 mem_remote_car_empty_packet
+0x49a4 mem_remote_car_motor1_key0_press_state
+0x49a5 mem_remote_car_motor1_key1_press_state
+0x49a6 mem_remote_car_motor2_key2_press_state
+0x49a7 mem_remote_car_motor2_key3_press_state
+0x49a8 mem_remote_car_motor1_rel_state
+0x49a9 mem_remote_car_motor2_rel_state
+0x49aa mem_remote_car_no_data_check
+0x47ab mem_hci_uart_tx_gpio
+0x47ac mem_hci_uart_rx_gpio
+0x47ad mem_hci_uart_rts_gpio
+0x47ae mem_hci_uart_cts_gpio
+0x47af mem_hci_pwm_12mhz_gpio
+0x47ab mem_soft_version_num
+0x47ad mem_module_wake_up_gpio
+0x47ae mem_module_state_gpio
+0x47af mem_module_connect_state_gpio
+0x47b0 mem_current_packet_length
+0x47b2 mem_module_state
+0x47b3 mem_module_mcu_wake_pin
+0x47b4 mem_module_mcu_wake_delay_us
+0x47b8 mem_module_spp_lpm_mult
+0x47b9 mem_module_le_lpm_mult
+0x47ba mem_module_bluetooth_stauts_by_command
+0x47bb mem_module_uart_rx_buffer
+0x47bd mem_module_uart_rx_buffer_end
+0x47bf mem_module_uart_tx_buffer
+0x47c1 mem_module_uart_tx_buffer_end
+0x47c3 mem_module_uarta_baud_rate
+0x47c5 mem_module_read_vdd_flag
+0x47c6 mem_module_read_vdd_count
+0x47c7 mem_module_vdd_quotient
+0x47c8 mem_module_vdd_remainder
+0x47c9 mem_module_ble_data_uart_max_length
+0x47ca mem_module_flag
+0x47cc mem_module_hci_notify_len
+0x47cd mem_module_hci_notify_handle
+0x47cf mem_module_hci_nofiy_addr
+0x47d1 mem_module_hci_notify_type
+0x47d2 mem_last_transmite_clock
+0x47d6 mem_module_uuid_list
+0x4902 mem_module_uuid_list_end
+0x4902 mem_module_le_att_list
+0x4b5a mem_module_le_att_list_end
+0x4b5a mem_module_nv_data
+0x4b5a mem_module_nv_data0
+0x4b7c mem_module_nv_data1
+0x4b9e mem_module_nv_data2
+0x4bc0 mem_module_nv_data3
+0x4be2 mem_module_nv_data4
+0x4c04 mem_module_nv_data_end
+0x47ab mem_shutter_bluetooth_type
+0x47ac mem_shutter_config_eeprom_offset_addr
+0x47ae mem_shutter_config_eeprom_start_flag
+0x47b0 mem_shutter_config_user_size
+0x47b1 mem_shutter_config_label
+0x47b2 mem_shutter_config_otp_addr
+0x47b4 mem_classic_shutter_cable_unplug_conut
+0x47b5 mem_classic_shutter_hid_disconn_count
+0x47b6 mem_classic_shutter_random_mac_offset_addr
+0x47b8 mem_ble_shutter_enable_notify
+0x47b9 mem_ble_shutter_reconn_adv_interval
+0x47bb mem_ble_shutter_discovery_adv_interval
+0x47bd mem_ble_shutter_reconn_timeout
+0x47bf mem_ble_shutter_reconn_timer
+0x47c1 mem_ble_shutter_reconn_blink_on_time
+0x47c3 mem_ble_shutter_reconn_blink_off_time
+0x47c5 mem_ble_shutter_discovery_blink_on_time
+0x47c7 mem_ble_shutter_discovery_blink_off_time
+0x47c9 mem_ble_shutter_interval_min
+0x47cb mem_ble_shutter_interval_max
+0x47cd mem_ble_shutter_latency
+0x47cf mem_ble_shutter_timeout
+0x47d1 mem_ble_shutter_interval_min_new
+0x47d3 mem_ble_shutter_interval_max_new
+0x47d5 mem_ble_shutter_latency_new
+0x47d7 mem_ble_shutter_timeout_new
+0x47d9 mem_classic_shutter_discovery_timeout
+0x47db mem_classic_shutter_connect_timeout
+0x47dd mem_ble_shutter_discovery_timeout
+0x47df mem_ble_shutter_connect_timeout
+0x47e1 mem_shutter_sleep_timeout
+0x47e3 mem_shutter_sleep_timer
+0x47e5 mem_shutter_hard_soft_switch_case
+0x47e6 mem_shutter_soft_switch_button_gpio
+0x47e7 mem_shutter_soft_switch_power_state
+0x47e8 mem_shutter_soft_switch_poweron_time
+0x47e9 mem_shutter_soft_switch_poweroff_time
+0x47ea mem_shutter_soft_switch_poweron_callback_function
+0x47ec mem_shutter_soft_switch_poweroff_callback_function
+0x47ee mem_shutter_keyscan
+0x47ee mem_shutter_key_num
+0x47ef mem_cb_shutter_keycan
+0x47f1 mem_shutter_key_conf0
+0x47f2 mem_shutter_key_conf1
+0x47f3 mem_shutter_key_conf2
+0x47f4 mem_shutter_key_conf3
+0x47f5 mem_shutter_key_conf4
+0x47f6 mem_shutter_key_conf5
+0x47f7 mem_shutter_key_conf6
+0x47f8 mem_shutter_key_conf7
+0x47f9 mem_key0_press
+0x47fe mem_key1_press
+0x4803 mem_key2_press
+0x4808 mem_key3_press
+0x480d mem_key4_press
+0x4812 mem_key5_press
+0x4817 mem_key6_press
+0x481c mem_key7_press
+0x4821 mem_key0_release
+0x4826 mem_key1_release
+0x482b mem_key2_release
+0x4830 mem_key3_release
+0x4835 mem_key4_release
+0x483a mem_key5_release
+0x483f mem_key6_release
+0x4844 mem_key7_release
+0x4849 mem_ble_data_buffer1
+0x484e mem_ble_data_buffer2
+0x4853 mem_ble_data_buffer3
+0x4858 mem_ble_data_buffer4
+0x485d mem_ble_data_buffer5
+0x4862 mem_ble_data_buffer6
+0x4867 mem_ble_data_buffer7
+0x486c mem_ble_data_buffer8
+0x4871 mem_ble_data_buffer9_58
+0x48a3 mem_classic_data_buffer
+0x48a8 mem_classic_data_buffer1
+0x48ad mem_classic_data_buffer2
+0x48b2 mem_classic_data_buffer3
+0x48b7 mem_classic_data_buffer4
+0x48bc mem_classic_data_buffer5
+0x48c1 mem_classic_data_buffer6
+0x48c6 mem_classic_data_buffer7
+0x48cb mem_classic_data_buffer8
+0x48d0 mem_classic_data_buffer9_58
+0x4902 mem_queue_each_size
+0x4903 mem_queue_length
+0x4904 mem_queue_curr_num
+0x4905 mem_queue_read_ptr
+0x4906 mem_queue_write_ptr
+0x4907 mem_queue_ele
+0x4927 mem_shutter_nv_data
+0x49d1 mem_shutter_led_struct_app_led
+0x49d1 mem_shutter_led_struct_app_led_type
+0x49d2 mem_shutter_led_struct_app_led_blink_count
+0x49d3 mem_shutter_led_struct_app_led_gpio
+0x49d4 mem_shutter_led_struct_app_led_on_time
+0x49d6 mem_shutter_led_struct_app_led_off_time
+0x49d8 mem_shutter_led_struct_app_led_on_callback
+0x49da mem_shutter_led_struct_app_led_off_callback
+0x49dc mem_shutter_power_off_led_style
+0x49dc mem_shutter_power_off_led_style_type
+0x49dd mem_shutter_power_off_led_style_blink_count
+0x49de mem_shutter_power_off_led_style_gpio
+0x49df mem_shutter_power_off_led_style_on_time
+0x49e1 mem_shutter_power_off_led_style_off_time
+0x49e3 mem_shutter_power_off_led_style_on_callback
+0x49e5 mem_shutter_power_off_led_style_off_callback
+0x49e7 mem_shutter_soft_swtich_botton_down
+0x49e8 mem_shutter_soft_swtich_led_struct_temp
+0x49f3 mem_shutter_power_off_timeout
+0x49f4 mem_shutter_power_off_timer
+0x49f5 mem_shutter_key_conf0_temp
+0x49f7 mem_shutter_led_struct_app_led_gpio_temp
+0x49f8 mem_shutter_hard_soft_switch_case_temp
+0x49f9 mem_shutter_soft_switch_button_gpio_temp
+
+0x4b65 mem_mesh_unsegmented_access_lower_transport_layer_head
+0x4b66 mem_mesh_unsegmented_access_lower_transport_layer_parameters
+0x4b71 mem_mesh_unsegmented_access_lower_transport_layer_mic
+0x4b65 mem_mesh_segmented_access_lower_transport_layer_head
+0x4b66 mem_mesh_segmented_access_lower_transport_layer_SZMIC_SeqZero_SegO_SegN
+0x4b69 mem_mesh_segmented_access_lower_transport_layer_parameters
+0x4b71 mem_mesh_segmented_access_lower_transport_layer_mic
+0x48e9 mem_k2_EncryptionKey
+0x48d9 mem_k2_PrivacyKey
Index: output/otp.dat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/otp.dat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/otp.dat	(working copy)
@@ -0,0 +1,7086 @@
+60
+01
+aa
+55
+82
+16
+c2
+84
+00
+17
+c0
+00
+00
+21
+c0
+01
+80
+a2
+c0
+41
+00
+3e
+c0
+45
+00
+31
+c0
+45
+80
+3b
+c0
+4f
+80
+4e
+c0
+52
+00
+50
+c0
+56
+80
+5a
+c0
+61
+03
+53
+c0
+62
+bd
+33
+c0
+63
+03
+67
+c0
+63
+83
+69
+c0
+64
+03
+73
+c0
+66
+04
+b0
+c0
+67
+84
+07
+c0
+68
+84
+08
+c0
+69
+04
+08
+c0
+6a
+04
+10
+c0
+6b
+84
+4c
+c0
+6d
+83
+43
+c0
+6e
+04
+09
+20
+20
+13
+7c
+c1
+7f
+80
+00
+c0
+41
+04
+0c
+c0
+6f
+83
+8c
+c0
+70
+03
+9b
+c0
+74
+03
+a5
+c0
+74
+83
+ba
+c0
+75
+03
+e9
+c0
+75
+83
+f4
+c0
+76
+04
+01
+20
+20
+13
+7c
+20
+40
+3c
+fe
+24
+34
+08
+02
+6f
+e0
+cb
+f5
+20
+3a
+08
+02
+6f
+e0
+c9
+24
+c0
+7f
+88
+02
+1f
+e2
+0e
+00
+6f
+e2
+09
+8a
+af
+ec
+00
+00
+20
+40
+82
+fb
+20
+20
+08
+02
+6f
+e0
+80
+4c
+79
+3f
+fe
+05
+79
+3f
+fe
+02
+67
+e0
+80
+4c
+20
+20
+0b
+40
+6f
+e0
+c1
+eb
+c0
+4a
+00
+35
+c0
+4f
+80
+38
+20
+20
+12
+1b
+70
+8a
+39
+10
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+39
+b0
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+75
+03
+70
+8a
+85
+00
+20
+20
+12
+52
+18
+00
+2a
+08
+18
+00
+2a
+00
+78
+50
+fc
+00
+78
+50
+7c
+00
+78
+2f
+7c
+00
+70
+89
+00
+05
+20
+00
+00
+02
+70
+89
+00
+00
+20
+40
+11
+5d
+70
+8a
+16
+00
+70
+8a
+0a
+80
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+70
+8a
+0b
+00
+20
+20
+12
+9c
+70
+00
+7f
+00
+20
+20
+13
+b7
+20
+40
+14
+17
+6f
+e1
+c1
+74
+20
+7a
+00
+00
+6f
+e0
+cd
+4e
+24
+7a
+00
+00
+6f
+e0
+cd
+4f
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+20
+20
+14
+91
+20
+40
+6d
+29
+20
+40
+00
+61
+20
+40
+00
+7e
+20
+40
+00
+9c
+20
+75
+80
+00
+20
+40
+3c
+54
+20
+20
+3c
+50
+20
+75
+80
+00
+20
+40
+31
+46
+20
+40
+25
+f1
+20
+40
+22
+96
+20
+40
+3c
+ac
+20
+40
+00
+6f
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+40
+04
+82
+6f
+e4
+4b
+bd
+c2
+9e
+83
+02
+c2
+89
+c5
+50
+c2
+89
+45
+11
+20
+60
+00
+00
+58
+00
+4d
+77
+67
+e1
+46
+67
+20
+40
+04
+66
+70
+4c
+98
+00
+58
+00
+01
+95
+67
+e1
+48
+eb
+58
+00
+01
+2c
+e7
+e1
+00
+05
+58
+00
+01
+4b
+e7
+e1
+00
+05
+20
+60
+00
+00
+6f
+f0
+81
+21
+58
+00
+00
+00
+67
+f0
+80
+4d
+20
+20
+5b
+9a
+68
+48
+c9
+19
+20
+40
+3e
+71
+68
+48
+c9
+1a
+20
+40
+3e
+71
+68
+48
+c9
+24
+60
+48
+c9
+26
+20
+40
+3e
+71
+58
+00
+4c
+1a
+67
+e1
+4c
+42
+58
+00
+4c
+22
+67
+e1
+4c
+44
+58
+00
+4c
+36
+67
+e1
+4c
+46
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+be
+71
+1a
+40
+a4
+01
+c2
+00
+00
+8e
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+a3
+1a
+40
+a4
+01
+c2
+00
+00
+96
+20
+20
+3d
+48
+58
+5d
+48
+00
+67
+e2
+48
+c0
+6f
+e0
+c4
+a9
+c4
+00
+00
+00
+20
+40
+46
+ed
+20
+60
+00
+00
+20
+40
+00
+a6
+20
+40
+01
+31
+20
+40
+02
+b9
+20
+20
+08
+13
+20
+40
+00
+8b
+20
+40
+01
+2b
+58
+00
+00
+00
+67
+e1
+4c
+95
+d8
+c0
+4c
+48
+d8
+a0
+4c
+5c
+df
+20
+00
+14
+20
+40
+7c
+a1
+58
+00
+4c
+48
+67
+e1
+4c
+8f
+58
+00
+4c
+84
+67
+e1
+4c
+91
+20
+40
+01
+29
+20
+40
+01
+23
+20
+40
+01
+27
+6f
+e1
+4c
+95
+1f
+e0
+fe
+01
+67
+e1
+4c
+95
+c2
+84
+81
+18
+68
+48
+cc
+0f
+20
+40
+5f
+7d
+24
+20
+80
+b5
+20
+40
+00
+df
+20
+40
+00
+f9
+20
+40
+01
+29
+6f
+e1
+4c
+46
+1f
+e2
+24
+00
+70
+4c
+94
+00
+e8
+40
+80
+12
+6f
+e1
+4c
+44
+1f
+e2
+22
+00
+1a
+22
+26
+00
+df
+20
+00
+14
+ef
+e0
+80
+11
+98
+46
+7c
+00
+20
+22
+80
+d3
+1a
+20
+a2
+01
+c2
+00
+00
+c7
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+0a
+20
+21
+00
+c2
+20
+60
+00
+00
+6f
+e1
+4c
+8f
+1f
+e2
+0a
+00
+1a
+22
+7e
+00
+9a
+66
+7e
+00
+98
+a0
+8a
+00
+6f
+e1
+4c
+91
+1f
+e2
+26
+00
+6f
+e0
+cc
+94
+9a
+60
+a6
+00
+ef
+e0
+80
+13
+e7
+e0
+80
+05
+20
+20
+00
+cc
+20
+00
+00
+14
+70
+4c
+97
+00
+20
+40
+01
+2b
+70
+4c
+94
+00
+20
+40
+01
+25
+20
+40
+00
+ec
+20
+40
+01
+23
+20
+40
+00
+ec
+1f
+e6
+7c
+09
+20
+21
+00
+e3
+20
+40
+01
+25
+20
+40
+00
+ec
+20
+20
+01
+27
+70
+4c
+93
+00
+20
+00
+00
+96
+20
+40
+01
+0c
+6f
+e1
+4c
+91
+1f
+e2
+0a
+00
+6f
+e0
+cc
+94
+98
+a0
+8a
+00
+6f
+e0
+cc
+93
+e7
+e0
+80
+05
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+20
+60
+00
+00
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+70
+4c
+94
+00
+70
+4c
+93
+00
+e8
+40
+80
+12
+28
+4f
+fe
+07
+20
+20
+81
+06
+20
+40
+5f
+8d
+20
+40
+01
+0c
+e8
+40
+80
+12
+20
+40
+5f
+89
+e8
+40
+80
+12
+20
+40
+5f
+a3
+1a
+40
+a4
+01
+6f
+e1
+4c
+8f
+20
+40
+00
+f0
+1f
+e6
+7c
+13
+20
+21
+00
+fc
+20
+60
+00
+00
+6f
+e1
+4c
+42
+1f
+e2
+26
+00
+df
+20
+00
+08
+e8
+40
+80
+13
+20
+40
+5f
+7d
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+79
+20
+fe
+07
+67
+e0
+cc
+93
+1a
+60
+a6
+01
+c2
+00
+01
+0f
+20
+60
+00
+00
+68
+48
+cc
+10
+20
+40
+5f
+8d
+20
+00
+00
+14
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+00
+17
+70
+6f
+e0
+cc
+97
+1f
+e0
+fe
+01
+67
+e0
+cc
+97
+c2
+83
+5c
+7b
+20
+20
+00
+a6
+68
+48
+cc
+0f
+20
+20
+5f
+89
+68
+48
+cc
+0f
+20
+20
+5f
+8d
+68
+48
+cc
+0f
+20
+20
+5f
+74
+68
+48
+cc
+0e
+20
+20
+5f
+89
+68
+48
+cc
+0e
+20
+20
+5f
+8d
+70
+4c
+98
+00
+6f
+e1
+4c
+99
+67
+e1
+4c
+9b
+20
+60
+00
+00
+da
+20
+4c
+48
+da
+40
+4c
+5c
+df
+20
+00
+14
+20
+40
+7d
+33
+24
+22
+81
+2d
+20
+40
+01
+6b
+20
+5a
+01
+2d
+20
+40
+01
+77
+6f
+e0
+cb
+ac
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+00
+80
+00
+c1
+01
+00
+00
+c1
+02
+00
+00
+70
+4c
+94
+00
+da
+20
+4c
+48
+da
+40
+4c
+70
+e8
+40
+80
+11
+ef
+e0
+80
+12
+98
+42
+fe
+00
+20
+3a
+01
+63
+67
+e0
+cc
+93
+60
+48
+cc
+a3
+e0
+40
+80
+12
+70
+4c
+a1
+01
+70
+4c
+a4
+00
+6f
+e0
+cc
+93
+c3
+00
+01
+58
+6f
+e0
+cc
+94
+1f
+ef
+fe
+08
+68
+48
+cc
+a4
+98
+40
+fe
+00
+d8
+c0
+4c
+ae
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+67
+e0
+cc
+a2
+20
+40
+01
+a5
+20
+40
+01
+f5
+20
+40
+02
+83
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+67
+e0
+cc
+93
+6f
+e0
+cc
+a3
+1f
+e3
+7e
+00
+67
+e0
+cc
+a3
+6f
+e0
+cc
+a4
+1f
+e0
+fe
+01
+67
+e0
+cc
+a4
+1f
+e6
+7c
+07
+20
+21
+01
+4b
+1a
+20
+a2
+01
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+20
+21
+01
+42
+20
+60
+00
+00
+6f
+e4
+4c
+48
+24
+7a
+00
+00
+6f
+e4
+4c
+50
+24
+7a
+00
+00
+6f
+e2
+4c
+58
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+03
+00
+00
+70
+4d
+70
+00
+20
+60
+00
+00
+70
+4b
+ac
+00
+70
+4c
+9e
+00
+da
+20
+4c
+48
+df
+20
+00
+14
+70
+4c
+9d
+00
+ef
+e0
+80
+11
+20
+3a
+01
+a0
+68
+48
+cc
+9d
+18
+40
+84
+01
+60
+48
+cc
+9d
+1f
+e2
+04
+00
+1f
+e0
+ff
+ff
+98
+41
+7e
+00
+24
+22
+81
+7e
+6f
+e0
+cc
+9d
+68
+48
+cc
+9e
+98
+40
+84
+00
+60
+48
+cc
+9e
+1f
+e6
+7c
+01
+20
+21
+01
+a0
+18
+46
+7c
+02
+20
+21
+01
+a0
+70
+4c
+94
+00
+70
+4c
+9f
+00
+e8
+40
+80
+11
+da
+40
+4c
+48
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+24
+21
+01
+a0
+ef
+e0
+80
+12
+98
+41
+7c
+00
+20
+22
+81
+a3
+6f
+e0
+cc
+9f
+1f
+e0
+fe
+01
+67
+e0
+cc
+9f
+1f
+e6
+7c
+01
+20
+21
+01
+a3
+70
+4b
+ac
+01
+20
+60
+00
+00
+1a
+20
+a2
+01
+c2
+00
+01
+7b
+20
+60
+00
+00
+1a
+40
+a4
+01
+20
+20
+01
+91
+6f
+e0
+cc
+a3
+24
+5a
+02
+0a
+6f
+e0
+cd
+4e
+24
+5a
+01
+bb
+6f
+e0
+cd
+5d
+68
+48
+cd
+4e
+98
+42
+fe
+00
+20
+22
+81
+b8
+6f
+e0
+cc
+a2
+c0
+14
+81
+c6
+1f
+e6
+7c
+45
+24
+61
+00
+00
+d8
+40
+00
+3a
+98
+46
+7e
+00
+24
+61
+00
+00
+d8
+c0
+4d
+5f
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+20
+20
+01
+e5
+6f
+e0
+cc
+a2
+c0
+26
+01
+c8
+20
+60
+00
+00
+6f
+e0
+cc
+a2
+c0
+29
+01
+ca
+c0
+28
+81
+ce
+c0
+28
+01
+d2
+c0
+27
+81
+d6
+c0
+70
+01
+da
+c0
+16
+01
+e2
+c0
+0b
+01
+e7
+c0
+03
+81
+ed
+c0
+02
+01
+f1
+20
+60
+00
+00
+6f
+e0
+cd
+5e
+20
+20
+01
+e5
+6f
+e0
+cd
+6b
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4b
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4e
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4a
+20
+20
+01
+e5
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4d
+20
+20
+01
+e5
+6f
+e0
+cd
+6d
+20
+7a
+00
+00
+6f
+e0
+cf
+a9
+c0
+00
+01
+e0
+58
+00
+00
+fd
+20
+20
+01
+e5
+58
+00
+00
+aa
+20
+20
+01
+e5
+6f
+e0
+cd
+6e
+20
+7a
+00
+00
+58
+00
+00
+ab
+67
+e0
+cc
+a2
+20
+60
+00
+00
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+01
+70
+4c
+16
+06
+58
+00
+00
+00
+20
+20
+01
+e5
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+00
+20
+20
+01
+ea
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+02
+20
+20
+01
+ea
+6f
+e0
+cc
+a2
+c0
+23
+02
+0c
+c0
+25
+82
+12
+c0
+27
+02
+18
+c0
+25
+02
+1a
+c0
+26
+82
+1c
+c0
+52
+82
+1e
+c0
+53
+02
+25
+c0
+53
+82
+27
+c0
+54
+02
+29
+c0
+54
+82
+2b
+c0
+55
+02
+36
+c0
+56
+82
+3d
+c0
+55
+82
+44
+c0
+56
+02
+4f
+c0
+7d
+82
+58
+20
+60
+00
+00
+6f
+e0
+cc
+a3
+c4
+00
+00
+00
+70
+4d
+73
+0a
+20
+60
+00
+00
+70
+4d
+73
+00
+20
+60
+00
+00
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+0a
+70
+4d
+72
+20
+20
+20
+02
+5d
+70
+4d
+72
+52
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+51
+20
+20
+02
+13
+70
+4d
+72
+50
+20
+20
+02
+13
+70
+4d
+72
+4f
+20
+20
+02
+13
+70
+4d
+72
+04
+70
+4d
+71
+01
+6f
+e0
+cf
+a9
+c0
+00
+02
+5d
+c0
+00
+82
+5d
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+06
+20
+20
+02
+1f
+70
+4d
+72
+19
+20
+20
+02
+1f
+70
+4d
+72
+1b
+20
+20
+02
+1f
+6f
+e0
+cf
+a9
+c0
+00
+02
+30
+c0
+01
+82
+33
+58
+00
+00
+fc
+20
+20
+01
+e5
+70
+4d
+71
+08
+70
+4d
+72
+0f
+20
+20
+02
+5d
+70
+4d
+71
+09
+70
+4d
+72
+14
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+3a
+58
+00
+00
+fd
+20
+20
+01
+e5
+70
+4d
+71
+09
+70
+4d
+72
+12
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+01
+82
+41
+58
+00
+00
+fa
+20
+20
+01
+e5
+70
+4d
+71
+08
+70
+4d
+72
+2c
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+4b
+c0
+00
+82
+4d
+70
+4d
+71
+01
+70
+4d
+72
+2c
+20
+40
+02
+06
+20
+20
+02
+5d
+70
+4d
+71
+08
+20
+20
+02
+48
+70
+4d
+71
+02
+20
+20
+02
+48
+6f
+e0
+cf
+a9
+c0
+00
+02
+55
+c0
+00
+82
+55
+70
+4d
+71
+01
+70
+4d
+72
+52
+20
+20
+02
+5d
+70
+4d
+71
+08
+70
+4d
+72
+2b
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c1
+80
+00
+00
+70
+4d
+71
+08
+70
+4d
+72
+07
+20
+20
+02
+5d
+70
+4c
+a2
+00
+6f
+e0
+cc
+a3
+c3
+00
+02
+64
+6f
+e0
+cd
+70
+c0
+01
+82
+70
+70
+4d
+70
+01
+20
+60
+00
+00
+70
+4d
+70
+04
+20
+60
+00
+00
+70
+4d
+70
+06
+20
+60
+00
+00
+67
+e0
+cc
+02
+60
+48
+cc
+04
+20
+40
+7d
+92
+70
+4c
+01
+00
+20
+20
+04
+ef
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+70
+4d
+70
+02
+20
+60
+00
+00
+70
+4d
+70
+03
+6f
+e0
+cd
+71
+68
+48
+cd
+72
+20
+20
+02
+68
+70
+4c
+01
+00
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+6f
+e0
+cd
+73
+20
+3a
+02
+66
+70
+4d
+70
+05
+20
+60
+00
+00
+20
+20
+02
+6a
+70
+4d
+70
+00
+df
+e0
+00
+00
+d8
+40
+00
+00
+20
+20
+02
+68
+6f
+e0
+cc
+a2
+d8
+40
+00
+e0
+98
+46
+7c
+00
+24
+21
+02
+95
+1f
+e6
+7c
+e7
+24
+21
+02
+b2
+1f
+e1
+7e
+07
+1f
+e2
+0e
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+91
+6f
+e0
+cc
+a5
+f9
+3f
+fe
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+6f
+e0
+cc
+a5
+f9
+20
+7e
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+70
+4c
+ad
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+a6
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+98
+46
+7c
+00
+24
+22
+82
+a4
+ef
+e0
+80
+06
+18
+c0
+8d
+fe
+e7
+e0
+80
+06
+20
+7a
+00
+00
+18
+c0
+8c
+01
+e0
+40
+80
+06
+c2
+00
+02
+9b
+20
+60
+00
+00
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+20
+3a
+02
+af
+98
+46
+7c
+00
+20
+62
+80
+00
+c2
+00
+02
+a9
+20
+60
+00
+00
+18
+c0
+8d
+ff
+e0
+40
+80
+06
+20
+60
+00
+00
+70
+4d
+74
+01
+6f
+e0
+cc
+a3
+2f
+ec
+00
+00
+20
+40
+82
+b7
+20
+20
+02
+95
+70
+4d
+74
+02
+20
+60
+00
+00
+20
+40
+02
+cd
+70
+4d
+4e
+00
+70
+4d
+4f
+00
+70
+4d
+50
+00
+70
+4f
+eb
+00
+6f
+e0
+cc
+a5
+24
+5a
+02
+f7
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+7f
+20
+42
+82
+f9
+1f
+e6
+7c
+de
+20
+42
+82
+fb
+c2
+00
+02
+c2
+6f
+e0
+cd
+51
+20
+3a
+02
+dd
+6f
+e0
+c9
+3f
+c0
+00
+02
+e2
+20
+60
+00
+00
+6f
+e0
+cd
+51
+24
+7a
+00
+00
+68
+48
+c9
+24
+18
+46
+7c
+ff
+20
+62
+80
+00
+20
+40
+5f
+7d
+24
+20
+82
+d9
+df
+20
+00
+08
+d8
+a0
+4c
+a5
+20
+40
+7c
+68
+70
+4c
+a7
+de
+20
+60
+00
+00
+6f
+e0
+cc
+a7
+c1
+ef
+00
+00
+70
+4c
+a7
+00
+20
+60
+00
+00
+6f
+e0
+cd
+50
+20
+7a
+00
+00
+6f
+e0
+c9
+3f
+c0
+00
+02
+ed
+20
+60
+00
+00
+6f
+e1
+4c
+a7
+68
+49
+4d
+54
+98
+46
+7c
+00
+20
+22
+82
+e9
+18
+50
+84
+00
+98
+46
+7c
+00
+24
+62
+80
+00
+70
+4f
+eb
+01
+20
+60
+00
+00
+70
+4f
+eb
+00
+20
+40
+02
+fb
+70
+4d
+58
+00
+20
+40
+02
+fd
+70
+4c
+a1
+00
+6f
+e1
+48
+8b
+24
+7a
+00
+00
+58
+00
+00
+00
+67
+e1
+4a
+c4
+20
+40
+04
+94
+20
+40
+04
+96
+20
+20
+47
+41
+70
+4d
+4f
+01
+20
+60
+00
+00
+70
+4d
+4e
+01
+20
+60
+00
+00
+70
+4d
+50
+01
+20
+60
+00
+00
+6f
+e1
+4f
+c2
+d8
+40
+05
+28
+98
+46
+7c
+00
+24
+61
+00
+00
+20
+20
+13
+7a
+6f
+e0
+c9
+3f
+c0
+00
+03
+05
+20
+60
+00
+00
+db
+00
+00
+50
+58
+00
+04
+00
+9b
+06
+fc
+00
+20
+40
+7d
+31
+18
+07
+fe
+00
+67
+e1
+09
+5c
+df
+e0
+1f
+cc
+d8
+40
+00
+04
+dd
+60
+00
+04
+20
+20
+03
+0f
+60
+48
+89
+64
+da
+20
+4f
+aa
+da
+60
+00
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+22
+1a
+60
+a6
+01
+6f
+e1
+09
+5c
+9a
+66
+7c
+00
+24
+21
+03
+42
+1a
+42
+7e
+00
+9b
+06
+7e
+00
+20
+20
+03
+12
+1a
+66
+7c
+00
+20
+22
+83
+32
+1a
+42
+7e
+00
+9b
+00
+fe
+00
+9d
+66
+7e
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+34
+1a
+42
+7e
+00
+20
+20
+03
+26
+65
+60
+cf
+c2
+20
+60
+00
+00
+58
+00
+1f
+d0
+9a
+46
+7e
+00
+67
+e1
+4f
+c2
+1a
+42
+7e
+00
+9d
+60
+fe
+00
+68
+48
+89
+64
+da
+20
+4f
+aa
+20
+40
+5d
+c7
+6f
+e0
+c9
+3f
+c0
+00
+03
+3f
+20
+60
+00
+00
+6f
+e3
+4f
+aa
+67
+e2
+49
+9a
+20
+20
+44
+fe
+20
+20
+13
+7a
+6f
+e4
+4b
+bd
+c2
+9e
+83
+46
+20
+20
+45
+0e
+6f
+e0
+c9
+3f
+c0
+00
+03
+49
+20
+60
+00
+00
+68
+49
+4f
+c2
+58
+00
+1f
+d0
+98
+46
+04
+00
+da
+20
+49
+9a
+df
+20
+00
+04
+20
+40
+5d
+82
+68
+49
+4f
+c2
+18
+40
+84
+04
+60
+49
+4f
+c2
+20
+60
+00
+00
+20
+40
+04
+76
+6f
+e4
+4b
+bd
+c3
+0a
+03
+61
+20
+40
+5f
+f1
+20
+40
+60
+18
+68
+49
+44
+9b
+6f
+e1
+44
+a7
+1f
+e6
+fc
+02
+20
+40
+7d
+2e
+98
+46
+7c
+00
+20
+21
+03
+54
+20
+40
+3d
+d4
+6f
+e0
+c4
+a9
+c2
+80
+be
+39
+6f
+e0
+cd
+51
+20
+5a
+02
+dd
+6f
+e0
+cd
+50
+24
+7a
+00
+00
+6f
+e0
+c9
+3f
+c0
+00
+47
+26
+70
+49
+26
+ff
+20
+20
+3d
+35
+20
+40
+7f
+1a
+20
+40
+04
+82
+20
+40
+3d
+43
+6f
+e4
+4b
+bd
+c4
+0a
+00
+00
+6f
+e0
+c9
+05
+c1
+81
+00
+00
+6f
+e0
+c9
+04
+d8
+40
+00
+c0
+20
+20
+5f
+b3
+20
+40
+7f
+1a
+20
+40
+3e
+a3
+68
+48
+c9
+19
+20
+40
+5f
+56
+68
+48
+c9
+1a
+20
+40
+5f
+56
+68
+48
+c9
+24
+20
+40
+5f
+5a
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+8d
+1a
+40
+a4
+01
+c2
+00
+03
+7e
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+df
+56
+1a
+40
+a4
+01
+c2
+00
+03
+86
+20
+60
+00
+00
+70
+48
+93
+00
+6f
+e0
+c8
+87
+c0
+81
+03
+96
+70
+4b
+f8
+00
+6f
+e1
+4b
+f6
+1f
+e0
+fe
+01
+67
+e1
+4b
+f6
+6f
+e0
+cb
+f6
+c0
+00
+22
+d8
+20
+60
+00
+00
+6f
+e0
+cb
+f8
+1f
+e0
+fe
+01
+67
+e0
+cb
+f8
+c0
+7f
+a3
+03
+20
+20
+22
+d8
+6f
+e0
+c8
+87
+c1
+7f
+80
+00
+c0
+01
+03
+9f
+20
+20
+22
+fe
+6f
+e0
+c8
+62
+20
+3a
+23
+0e
+6f
+e2
+48
+13
+20
+7a
+00
+00
+67
+e2
+48
+99
+20
+20
+23
+0e
+6f
+e1
+48
+91
+1f
+e1
+7e
+e0
+20
+3a
+03
+ac
+6f
+e1
+48
+91
+1f
+e0
+fe
+01
+67
+e1
+48
+91
+20
+60
+00
+00
+20
+40
+25
+86
+20
+40
+26
+45
+24
+2c
+25
+8d
+24
+37
+a5
+8d
+20
+40
+03
+b2
+20
+20
+25
+72
+20
+40
+26
+5c
+6f
+e0
+c7
+ac
+2f
+e1
+f0
+08
+24
+60
+80
+00
+6f
+e0
+c7
+ad
+c0
+7f
+84
+3e
+67
+e0
+cd
+59
+20
+60
+00
+00
+20
+40
+26
+1b
+24
+34
+03
+bf
+20
+40
+03
+ce
+20
+40
+26
+d5
+20
+20
+26
+12
+6f
+e4
+4c
+48
+24
+3a
+26
+12
+6f
+e4
+4c
+50
+24
+3a
+26
+12
+6f
+e2
+4c
+58
+24
+3a
+26
+12
+6f
+e0
+c8
+c5
+c1
+00
+80
+00
+20
+40
+26
+89
+20
+40
+26
+a4
+24
+74
+00
+00
+6f
+e0
+cb
+f3
+24
+5a
+3d
+40
+6f
+e2
+48
+63
+20
+20
+26
+a1
+70
+48
+ae
+00
+69
+61
+01
+5f
+34
+73
+02
+00
+20
+40
+26
+45
+6f
+e0
+c8
+33
+c0
+00
+a6
+3b
+24
+2c
+03
+d9
+24
+37
+83
+d9
+20
+40
+03
+b2
+70
+4b
+f3
+00
+20
+20
+26
+3b
+6f
+e0
+c8
+af
+24
+7a
+00
+00
+6f
+e1
+48
+ab
+1f
+e0
+fe
+01
+67
+e1
+48
+ab
+6f
+e0
+c8
+ab
+c0
+7f
+a6
+63
+2f
+ef
+fe
+06
+20
+40
+83
+e4
+20
+40
+26
+68
+20
+20
+03
+cf
+20
+40
+00
+a6
+6f
+e0
+cc
+49
+1f
+e6
+7c
+09
+20
+22
+c5
+d9
+20
+60
+00
+00
+6f
+e0
+c8
+ae
+1f
+e0
+fe
+01
+67
+e0
+c8
+ae
+1f
+e1
+7e
+03
+20
+3a
+03
+ef
+20
+60
+00
+00
+6f
+e2
+48
+43
+68
+4a
+48
+95
+98
+46
+7c
+00
+20
+22
+a2
+62
+20
+20
+26
+86
+78
+34
+7c
+00
+20
+40
+14
+17
+6f
+e1
+c1
+74
+20
+3a
+7d
+94
+6f
+e0
+cd
+4e
+24
+3a
+7d
+94
+6f
+e0
+cd
+4f
+24
+3a
+7d
+94
+6f
+e0
+cd
+73
+24
+3a
+7d
+94
+6f
+e0
+c8
+c5
+c0
+00
+fd
+94
+20
+20
+26
+a9
+6f
+e2
+48
+43
+68
+4a
+48
+95
+98
+46
+7c
+00
+24
+22
+a6
+d6
+70
+41
+eb
+9f
+20
+60
+00
+00
+58
+00
+00
+00
+20
+60
+00
+00
+20
+40
+48
+ba
+20
+40
+78
+6c
+20
+20
+3e
+a3
+6f
+e0
+cb
+f5
+24
+5a
+77
+97
+70
+4b
+f5
+00
+20
+20
+77
+87
+1a
+62
+7e
+00
+c0
+1c
+84
+15
+c0
+1e
+04
+18
+c0
+1d
+04
+31
+20
+20
+42
+51
+20
+40
+04
+2c
+20
+40
+44
+5f
+20
+20
+47
+71
+20
+40
+04
+2c
+6f
+e2
+48
+43
+67
+e2
+48
+99
+67
+e2
+49
+9a
+20
+40
+25
+6a
+20
+40
+47
+f0
+20
+40
+44
+5f
+20
+20
+47
+68
+70
+4c
+0b
+02
+20
+40
+05
+9d
+70
+4b
+e0
+03
+20
+60
+00
+00
+df
+20
+00
+06
+d8
+c0
+4c
+04
+ef
+e0
+80
+06
+c0
+29
+84
+2c
+c0
+1c
+84
+2c
+c0
+23
+84
+2c
+c2
+00
+04
+26
+20
+60
+00
+00
+70
+4d
+5a
+03
+70
+4c
+a1
+01
+20
+60
+00
+00
+70
+4d
+58
+01
+20
+60
+00
+00
+6f
+e0
+c8
+ad
+24
+3a
+04
+3e
+6f
+e0
+c8
+93
+c0
+01
+04
+37
+c0
+01
+c7
+53
+20
+20
+47
+50
+6f
+e4
+4b
+bd
+c2
+97
+c7
+2b
+c2
+98
+47
+2b
+c3
+1d
+47
+20
+6f
+e2
+49
+9a
+20
+3a
+02
+ed
+20
+20
+47
+20
+70
+48
+ad
+00
+20
+40
+26
+3c
+5f
+ff
+ff
+ff
+67
+e4
+48
+63
+58
+00
+00
+00
+67
+e3
+c8
+d8
+70
+4b
+f3
+01
+20
+20
+03
+c8
+6f
+e0
+c9
+02
+20
+3a
+04
+4a
+70
+48
+ef
+4d
+20
+60
+00
+00
+70
+48
+ef
+4b
+20
+60
+00
+00
+20
+40
+3d
+b7
+20
+40
+04
+46
+20
+40
+48
+80
+20
+40
+22
+c2
+20
+40
+25
+42
+20
+40
+46
+e6
+20
+40
+04
+69
+20
+40
+04
+71
+20
+40
+04
+76
+20
+40
+04
+7a
+20
+40
+44
+1a
+20
+40
+44
+50
+20
+40
+3f
+3d
+20
+40
+44
+62
+20
+40
+04
+87
+20
+40
+04
+a2
+20
+40
+04
+a7
+20
+40
+04
+5f
+20
+20
+04
+aa
+6f
+e0
+cf
+eb
+20
+3a
+04
+66
+6f
+e0
+cf
+ea
+1f
+e0
+ff
+ff
+20
+3a
+02
+eb
+67
+e0
+cf
+ea
+20
+60
+00
+00
+6f
+e0
+cf
+e9
+67
+e0
+cf
+ea
+20
+60
+00
+00
+6f
+e0
+cd
+58
+20
+7a
+00
+00
+70
+4d
+58
+00
+6f
+e0
+c8
+a9
+24
+7a
+00
+00
+70
+4c
+a1
+01
+20
+40
+26
+1b
+20
+20
+03
+ce
+da
+60
+4d
+5b
+da
+40
+04
+74
+20
+20
+31
+cf
+70
+4d
+5a
+00
+20
+60
+00
+00
+6f
+e0
+c4
+a9
+c3
+80
+80
+00
+6f
+e0
+c9
+3f
+c0
+00
+47
+e8
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e0
+cc
+16
+20
+7a
+00
+00
+1f
+e0
+ff
+ff
+67
+e0
+cc
+16
+c2
+80
+48
+4a
+20
+20
+48
+3c
+20
+40
+48
+3c
+20
+40
+04
+94
+20
+40
+04
+96
+68
+48
+cc
+13
+20
+20
+48
+55
+6f
+e0
+cc
+11
+c1
+7f
+80
+00
+6f
+e0
+cb
+b9
+24
+7a
+00
+00
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e1
+4b
+d0
+68
+49
+4a
+c4
+98
+46
+04
+00
+6f
+e1
+4c
+14
+98
+46
+7e
+00
+20
+21
+04
+98
+20
+40
+04
+96
+68
+48
+cc
+11
+20
+20
+5f
+89
+68
+48
+cc
+12
+20
+20
+5f
+89
+20
+40
+04
+9d
+6f
+e0
+cd
+59
+c3
+00
+84
+94
+68
+48
+cc
+11
+20
+20
+5f
+8d
+6f
+e0
+cd
+59
+c3
+00
+04
+96
+70
+49
+36
+ff
+68
+48
+cc
+12
+20
+20
+5f
+8d
+da
+60
+4c
+9b
+da
+40
+04
+a5
+20
+20
+31
+d6
+70
+4c
+98
+01
+20
+20
+32
+5c
+da
+60
+4d
+73
+da
+40
+02
+66
+20
+20
+31
+cf
+da
+60
+4a
+c4
+da
+40
+04
+ad
+20
+20
+31
+d6
+6f
+e0
+c9
+3f
+c0
+00
+04
+3e
+20
+20
+42
+36
+78
+54
+7c
+00
+70
+4b
+9d
+00
+70
+4b
+9e
+00
+70
+4b
+9f
+00
+6f
+e0
+cd
+70
+c0
+00
+82
+6d
+c0
+01
+02
+72
+c0
+01
+82
+72
+c0
+02
+02
+76
+c0
+03
+02
+7f
+6f
+e0
+cc
+a1
+20
+3a
+04
+c9
+1f
+e0
+ff
+ff
+67
+e0
+cc
+a1
+20
+40
+04
+d7
+70
+4d
+5b
+0a
+20
+40
+44
+5f
+6f
+e0
+cd
+70
+c0
+02
+82
+7e
+d8
+a0
+4c
+01
+df
+20
+00
+0a
+20
+40
+7c
+68
+20
+40
+04
+da
+70
+4c
+0b
+00
+20
+60
+00
+00
+6f
+e0
+cd
+5a
+20
+7a
+00
+00
+6f
+e0
+cd
+58
+24
+7a
+00
+00
+68
+48
+cd
+5c
+6f
+e0
+cd
+5b
+98
+46
+7c
+00
+67
+e0
+cd
+5c
+20
+62
+80
+00
+d8
+a0
+4c
+01
+df
+20
+00
+0a
+20
+40
+7c
+68
+20
+40
+7d
+92
+20
+20
+04
+ef
+70
+41
+77
+03
+70
+4a
+c1
+0a
+20
+60
+00
+00
+6f
+e0
+cd
+74
+c0
+01
+05
+67
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+e7
+24
+21
+05
+02
+c2
+00
+04
+de
+6f
+e0
+cc
+9e
+20
+5a
+04
+f8
+70
+4c
+01
+00
+6f
+e0
+cc
+a7
+1f
+e6
+7c
+7f
+20
+22
+84
+fb
+d8
+c0
+4c
+a5
+d8
+a0
+4c
+02
+df
+20
+00
+08
+ef
+e0
+80
+06
+c0
+3f
+85
+00
+e7
+e0
+80
+05
+c2
+00
+04
+eb
+20
+40
+05
+72
+6f
+e0
+cc
+0b
+c0
+00
+fd
+92
+c0
+01
+04
+f6
+c0
+01
+84
+f6
+c0
+02
+04
+f6
+c0
+02
+84
+f6
+20
+40
+40
+95
+20
+20
+7d
+92
+d8
+a0
+4c
+a5
+df
+20
+00
+09
+20
+20
+7c
+68
+6f
+e1
+4c
+a5
+67
+e1
+4c
+02
+6f
+e3
+4c
+a8
+67
+e3
+4c
+04
+20
+20
+04
+ef
+58
+00
+00
+00
+20
+20
+04
+ed
+70
+4c
+01
+03
+68
+48
+cc
+9e
+18
+46
+7c
+00
+20
+22
+85
+67
+c0
+74
+05
+1e
+c0
+74
+85
+21
+c0
+75
+05
+24
+c0
+75
+85
+27
+c0
+76
+05
+2a
+c0
+76
+85
+2d
+c0
+77
+05
+30
+c0
+77
+85
+33
+c0
+78
+05
+36
+c0
+78
+85
+39
+c0
+79
+05
+3c
+c0
+79
+85
+3f
+c0
+7a
+05
+42
+c0
+7a
+85
+45
+c0
+7b
+05
+48
+c0
+7b
+85
+4b
+c0
+7c
+05
+4e
+c0
+7c
+85
+51
+c0
+7d
+05
+54
+c0
+7d
+85
+57
+c0
+7e
+05
+5c
+c0
+7e
+85
+5f
+c0
+7f
+85
+6e
+20
+20
+04
+ef
+58
+00
+01
+83
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+cd
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b7
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b6
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+b5
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+ea
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+e9
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+e2
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+94
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+8a
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+01
+92
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+70
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+6f
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+2a
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+25
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+24
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+26
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+27
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+02
+21
+67
+e1
+4c
+02
+20
+20
+04
+ef
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+58
+00
+02
+23
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+00
+30
+67
+e1
+4c
+02
+20
+20
+04
+ef
+6f
+e0
+cf
+a9
+c0
+00
+85
+64
+58
+00
+01
+ae
+67
+e1
+4c
+02
+20
+20
+04
+ef
+58
+00
+03
+07
+67
+e1
+4c
+02
+20
+20
+04
+ef
+70
+4c
+a1
+02
+6f
+e0
+cc
+9e
+20
+5a
+04
+f8
+70
+4d
+74
+00
+58
+00
+00
+03
+67
+e1
+cc
+01
+20
+20
+04
+ef
+70
+4c
+01
+02
+58
+00
+00
+02
+67
+e0
+cc
+02
+20
+20
+04
+ef
+6f
+e0
+c9
+3f
+c0
+80
+05
+79
+70
+4d
+58
+00
+6f
+e1
+4c
+01
+24
+5a
+04
+2f
+6f
+e3
+4c
+04
+24
+5a
+04
+2f
+6f
+e0
+cc
+01
+c0
+00
+05
+84
+c0
+00
+85
+7f
+c0
+01
+85
+8d
+c0
+01
+05
+95
+20
+60
+00
+00
+70
+4c
+0b
+01
+d8
+c0
+4c
+01
+d8
+a0
+48
+d8
+df
+20
+00
+07
+20
+20
+7c
+a1
+70
+4c
+0b
+02
+20
+40
+05
+9d
+20
+40
+04
+24
+6f
+e0
+cd
+5a
+67
+e0
+cc
+03
+d8
+c0
+4c
+01
+d8
+a0
+4b
+de
+df
+20
+00
+09
+20
+20
+7c
+a1
+70
+4c
+0b
+04
+20
+40
+05
+9d
+58
+00
+00
+03
+20
+40
+46
+21
+d8
+c0
+4c
+02
+d8
+a0
+4b
+df
+df
+20
+00
+02
+20
+20
+7c
+a1
+70
+4c
+0b
+05
+20
+40
+05
+9d
+58
+00
+00
+02
+67
+e4
+4b
+de
+67
+e4
+4b
+e7
+6f
+e0
+cc
+02
+67
+e0
+cb
+df
+20
+60
+00
+00
+df
+20
+00
+12
+d8
+a0
+4b
+de
+20
+20
+7c
+68
+62
+40
+aa
+55
+40
+00
+00
+40
+09
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+0c
+00
+80
+10
+20
+00
+00
+e4
+91
+96
+18
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+80
+01
+1f
+00
+00
+aa
+55
+08
+00
+bd
+4b
+04
+09
+32
+00
+03
+00
+01
+2c
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+01
+00
+c6
+4b
+01
+aa
+55
+01
+00
+f5
+4b
+01
+aa
+55
+01
+00
+97
+47
+ff
+aa
+55
+01
+00
+96
+47
+1e
+aa
+55
+03
+00
+91
+44
+01
+34
+49
+aa
+55
+01
+00
+36
+49
+ff
+aa
+55
+01
+00
+eb
+41
+01
+aa
+55
+01
+00
+85
+48
+07
+aa
+55
+02
+00
+a1
+48
+c7
+4a
+aa
+55
+02
+00
+0d
+49
+85
+90
+aa
+55
+02
+00
+10
+49
+75
+80
+aa
+55
+01
+00
+0f
+49
+63
+aa
+55
+01
+00
+d2
+48
+7d
+aa
+55
+01
+00
+58
+0b
+ff
+aa
+55
+0b
+00
+36
+4c
+c2
+c1
+85
+84
+83
+82
+81
+80
+c7
+c6
+c4
+aa
+55
+01
+00
+3d
+48
+02
+aa
+55
+05
+00
+94
+48
+01
+0f
+0f
+0f
+0f
+aa
+55
+01
+00
+6d
+48
+00
+aa
+55
+01
+00
+f4
+4b
+02
+aa
+55
+01
+00
+7e
+48
+00
+aa
+55
+01
+00
+0c
+49
+94
+aa
+55
+03
+00
+63
+48
+00
+48
+60
+aa
+55
+02
+00
+ca
+48
+0a
+00
+aa
+55
+02
+00
+c8
+48
+50
+00
+aa
+55
+04
+00
+cc
+4b
+02
+00
+32
+00
+aa
+55
+01
+00
+c7
+49
+02
+aa
+55
+08
+00
+4f
+44
+fb
+00
+48
+08
+fb
+00
+48
+08
+aa
+55
+01
+00
+99
+40
+01
+aa
+55
+01
+00
+77
+41
+20
+aa
+55
+01
+00
+9c
+4b
+20
+aa
+55
+01
+00
+82
+44
+06
+aa
+55
+06
+00
+a8
+40
+32
+ef
+6d
+ac
+24
+54
+aa
+55
+13
+00
+03
+46
+12
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+05
+00
+58
+44
+0e
+00
+01
+00
+02
+aa
+55
+08
+00
+f9
+4b
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+aa
+55
+01
+00
+48
+46
+0a
+aa
+55
+04
+00
+6b
+47
+01
+03
+00
+04
+aa
+55
+01
+00
+95
+47
+01
+aa
+55
+01
+00
+d8
+40
+01
+aa
+55
+06
+00
+7d
+43
+73
+83
+92
+a1
+b1
+c1
+aa
+55
+01
+00
+35
+44
+07
+aa
+55
+02
+00
+02
+4b
+96
+00
+aa
+55
+02
+00
+f9
+4a
+15
+00
+aa
+55
+02
+00
+5a
+43
+19
+00
+aa
+55
+04
+00
+fb
+4a
+1d
+00
+21
+00
+aa
+55
+02
+00
+d4
+43
+28
+00
+aa
+55
+02
+00
+ff
+4a
+30
+00
+aa
+55
+0c
+00
+ea
+43
+1f
+02
+01
+05
+03
+03
+12
+18
+03
+19
+c1
+03
+aa
+55
+14
+00
+e4
+4a
+13
+09
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+15
+00
+0a
+44
+1f
+13
+09
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+13
+00
+fa
+42
+12
+42
+6c
+75
+65
+74
+6f
+6f
+74
+68
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+08
+00
+75
+43
+07
+00
+07
+00
+20
+00
+2c
+01
+aa
+55
+06
+00
+de
+4a
+03
+12
+18
+ff
+00
+00
+aa
+55
+09
+00
+d7
+4f
+41
+70
+70
+6c
+65
+20
+49
+6e
+63
+aa
+55
+02
+00
+d5
+4f
+0a
+18
+aa
+55
+02
+00
+a7
+4f
+c1
+03
+aa
+55
+02
+00
+75
+4d
+bd
+00
+aa
+55
+08
+00
+e1
+4f
+01
+02
+e8
+04
+21
+70
+01
+00
+aa
+55
+02
+00
+56
+4d
+2a
+10
+aa
+55
+01
+00
+ff
+48
+0a
+aa
+55
+01
+00
+05
+49
+01
+aa
+55
+01
+00
+a6
+44
+00
+aa
+55
+02
+00
+da
+4b
+64
+00
+aa
+55
+02
+00
+d8
+4b
+90
+01
+aa
+55
+02
+00
+d6
+4b
+e8
+03
+aa
+55
+01
+00
+d2
+4b
+1e
+aa
+55
+02
+00
+08
+49
+58
+02
+aa
+55
+02
+00
+06
+49
+58
+02
+aa
+55
+02
+00
+d0
+4b
+70
+17
+aa
+55
+01
+00
+0b
+49
+64
+aa
+55
+01
+00
+0a
+49
+64
+aa
+55
+01
+00
+c9
+4b
+64
+aa
+55
+02
+00
+c7
+4b
+00
+40
+aa
+55
+02
+00
+ca
+4b
+00
+40
+aa
+55
+02
+00
+99
+4c
+b8
+0b
+aa
+55
+02
+00
+14
+4c
+58
+02
+aa
+55
+01
+00
+e9
+4f
+01
+aa
+55
+01
+00
+3f
+49
+00
+aa
+55
+01
+00
+c5
+4b
+01
+aa
+55
+01
+00
+40
+49
+33
+aa
+55
+01
+00
+51
+4d
+00
+aa
+55
+01
+00
+24
+49
+13
+aa
+55
+04
+00
+52
+4d
+7f
+06
+29
+14
+aa
+55
+03
+00
+c6
+44
+ff
+ff
+ff
+aa
+55
+02
+00
+19
+49
+ff
+ff
+aa
+55
+01
+00
+1d
+49
+ff
+aa
+55
+06
+00
+28
+49
+13
+80
+81
+ff
+ff
+ff
+aa
+55
+03
+00
+11
+4c
+82
+ff
+80
+aa
+55
+03
+00
+0e
+4c
+08
+14
+07
+aa
+55
+1c
+00
+1a
+4c
+0d
+0a
+0f
+04
+0e
+03
+0b
+09
+80
+05
+c4
+06
+81
+c7
+84
+82
+85
+c2
+12
+10
+11
+c1
+c6
+83
+ff
+ff
+ff
+ff
+aa
+55
+90
+00
+ae
+4c
+48
+00
+00
+00
+e6
+00
+7f
+3e
+14
+2b
+04
+29
+1d
+00
+35
+1e
+1a
+39
+16
+64
+1b
+e5
+3a
+1f
+08
+3c
+07
+3d
+06
+88
+3b
+20
+15
+17
+09
+0a
+19
+05
+22
+21
+18
+1c
+0d
+0b
+10
+11
+23
+24
+0c
+30
+0e
+3f
+36
+87
+2e
+25
+12
+40
+e0
+e3
+37
+e7
+41
+45
+13
+2f
+33
+34
+32
+38
+2d
+27
+47
+2a
+31
+e2
+28
+e6
+42
+43
+89
+e1
+e5
+44
+28
+45
+42
+43
+5f
+5c
+59
+2c
+44
+51
+4c
+00
+60
+5d
+5a
+62
+54
+4f
+49
+00
+61
+5e
+5b
+52
+55
+50
+4b
+4e
+12
+40
+0f
+52
+37
+50
+41
+26
+00
+e2
+e5
+f6
+f7
+f5
+f4
+f1
+fa
+e3
+d1
+d3
+d2
+d4
+f8
+d5
+91
+d0
+e7
+f9
+f3
+fb
+fb
+90
+aa
+55
+13
+00
+5d
+4d
+01
+fb
+ad
+a5
+a6
+a7
+a8
+eb
+e9
+ec
+ed
+ee
+f3
+f4
+a9
+01
+00
+00
+01
+aa
+55
+08
+00
+9e
+00
+00
+00
+08
+00
+00
+00
+00
+00
+aa
+55
+08
+00
+7a
+41
+88
+12
+ce
+70
+3f
+0c
+37
+07
+aa
+55
+03
+00
+83
+41
+9d
+10
+24
+aa
+55
+01
+00
+5c
+41
+00
+aa
+55
+01
+00
+c5
+40
+18
+aa
+55
+01
+00
+d8
+44
+d3
+aa
+55
+01
+00
+d7
+44
+00
+aa
+55
+01
+00
+d6
+44
+29
+aa
+55
+01
+00
+d5
+44
+00
+aa
+55
+05
+00
+ed
+41
+ff
+88
+66
+44
+00
+aa
+55
+01
+00
+94
+44
+0c
+aa
+55
+08
+00
+b5
+40
+24
+00
+00
+02
+24
+00
+00
+02
+aa
+55
+02
+00
+c3
+40
+20
+00
+aa
+55
+04
+00
+bf
+40
+20
+00
+00
+20
+aa
+55
+04
+00
+c6
+40
+80
+04
+00
+0c
+aa
+55
+05
+00
+fe
+45
+09
+0e
+05
+04
+00
+aa
+55
+01
+00
+d4
+44
+7f
+aa
+55
+01
+00
+f2
+41
+ff
+aa
+55
+02
+00
+ca
+40
+f2
+41
+aa
+55
+02
+00
+db
+44
+06
+07
+55
+aa
+aa
+55
+4a
+88
+2c
+a0
Index: output/program.lis
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/program.lis	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/program.lis	(working copy)
@@ -0,0 +1,42338 @@
+              include "bt_format "
+              org 0x0000
+0000 c2840017 bbit1 8 ,pf_patch_ext 
+0001 c0000021 beq patch00_0 ,p_soft_reset 
+0002 c00180a2 beq patch00_3 ,p_main_loop 
+0003 c041003e beq patch10_2 ,p_shutdown_radio 
+0004 c0450031 beq patch11_2 ,p_txon 
+0005 c045803b beq patch11_3 ,p_initialize_radio_cont 
+0006 c04f804e beq patch13_7 ,p_init_param 
+0007 c0520050 beq patch14_4 ,p_lpm_dispatch 
+0008 c056805a beq patch15_5 ,p_app_init 
+0009 c0610353 beq patch18_2 ,p_keyboard_start_work 
+000a c062bd33 beq patch18_5 ,mouse_app_enter_hibernate + 3 
+000b c0630367 beq patch18_6 ,p_mouse_before_hibernate 
+000c c0638369 beq patch18_7 ,p_mouse_setgpio_hibernate 
+000d c0640373 beq patch19_0 ,p_mouse_lpm_before_common 
+000e c06604b0 beq patch19_4 ,p_keyboard_motion 
+000f c0678407 beq patch19_7 ,p_mouse_check_key_gpio 
+0010 c0688408 beq patch1a_1 ,p_mouse_init_sunt 
+0011 c0690408 beq patch1a_2 ,p_mouse_sensor_poweron 
+0012 c06a0410 beq patch1a_4 ,p_mouse_priority_bb_event 
+0013 c06b844c beq patch1a_7 ,p_mouse_bb_event_timer 
+0014 c06d8343 beq patch1b_3 ,p_mouse_store_device_info 
+0015 c06e0409 beq patch1b_4 ,p_mouse_idle 
+0016 2020137c branch loop 
+
+pf_patch_ext:
+0017 c17f8000 rtneq patch3f_7 
+0018 c041040c beq patch30_2 ,p_ui_timer_check 
+0019 c06f838c beq patch3b_7 ,p_g24_pair_dispatch 
+001a c070039b beq patch3c_0 ,p_g24_pair_sm_common 
+001b c07403a5 beq patch3d_0 ,p_g24_reconn_dispatch 
+001c c07483ba beq patch3d_1 ,p_g24_transmit_no_interrupt 
+001d c07503e9 beq patch3d_2 ,p_g24_transmit_hop_process 
+001e c07583f4 beq patch3d_3 ,p_g24_lpm_wait 
+001f c0760401 beq patch3d_4 ,p_power_ctrl_start 
+0020 2020137c branch loop 
+
+p_soft_reset:
+0021 20403cfe call mouse_wakeup_from_power_check 
+0022 24340802 nbranch soft_reset + 1 ,user 
+0023 6fe0cbf5 fetch 1 ,mem_power_on_flag 
+0024 203a0802 branch soft_reset + 1 ,blank 
+0025 6fe0c924 fetch 1 ,mem_config_select_device_button_gpio 
+0026 c07f8802 beq ui_button_gpio_disable ,soft_reset + 1 
+0027 1fe20e00 copy pdata ,queue 
+0028 6fe2098a fetch 4 ,mem_saved_gpio_in 
+0029 afec0000 qisolate0 pdata 
+002a 204082fb call p_keyboard_pb_set ,true 
+002b 20200802 branch soft_reset + 1 
+
+p_send_eir:
+002c 6fe0804c fetch 1 ,mem_state_map 
+002d 793ffe05 set0 smap_edr ,pdata 
+002e 793ffe02 set0 smap_encryption ,pdata 
+002f 67e0804c store 1 ,mem_state_map 
+0030 20200b40 branch send_eir + 1 
+
+p_txon:
+0031 6fe0c1eb fetch 1 ,mem_tx_power 
+0032 c04a0035 beq tx_power_f20db ,p_set_tx_power_f20db 
+0033 c04f8038 beq tx_power_f25db ,p_set_tx_power_f25db 
+0034 2020121b branch txon_next + 2 
+
+p_set_tx_power_f20db:
+0035 708a3910 jam 0x10 ,core_tx_pwr_ctrl0 
+0036 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
+0037 20201226 branch set_rf_ldo_cfg89 
+
+p_set_tx_power_f25db:
+0038 708a39b0 jam 0xb0 ,core_tx_pwr_ctrl0 
+0039 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
+003a 20201226 branch set_rf_ldo_cfg89 
+
+p_initialize_radio_cont:
+003b 708a7503 jam 0x03 ,core_rx_lna_cfg3 
+003c 708a8500 jam 0x00 ,core_syn_loopdiv_dsm_cfg 
+003d 20201252 branch initialize_radio_cont + 1 
+
+p_shutdown_radio:
+003e 18002a08 force 0x08 ,radio_ctrl 
+003f 18002a00 force 0 ,radio_ctrl 
+0040 7850fc00 disable is_rx 
+0041 78507c00 disable is_tx 
+0042 782f7c00 pulse packet_end 
+0043 70890005 jam 0x5 ,modem_en 
+0044 20000002 nop 2 
+0045 70890000 jam 0x0 ,modem_en 
+0046 2040115d call set_sync_on 
+0047 708a1600 jam 0 ,core_syn_en 
+0048 708a0a80 jam 0x80 ,core_rf_ldo_en0 
+0049 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+004a 793ffe07 set0 7 ,pdata 
+004b 67f08a09 store 1 ,core_clkpll_cfg6 
+004c 708a0b00 jam 0 ,core_rf_ldo_en1 
+004d 2020129c branch gain_control 
+
+p_init_param:
+004e 70007f00 jam 0 ,mem_lmo_tid2 
+004f 202013b7 branch init_param_next + 1 
+
+p_lpm_dispatch:
+0050 20401417 call lpo_calibration 
+0051 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+0052 207a0000 rtn blank 
+0053 6fe0cd4e fetch 1 ,mem_keyboard_fn_flag 
+0054 247a0000 nrtn blank 
+0055 6fe0cd4f fetch 1 ,mem_keyboard_control_key_flag 
+0056 247a0000 nrtn blank 
+0057 6fe0cd73 fetch 1 ,mem_keyboard_commbination_control_key_delay_release_timer 
+0058 247a0000 nrtn blank 
+0059 20201491 branch lpm_dispatch + 4 
+
+p_app_init:
+
+p_mouse_init:
+005a 20406d29 call enable_authrom 
+005b 20400061 call p_mouse_setting_config 
+005c 2040007e call p_keyboard_gpio_init 
+005d 2040009c call p_keyboard_low_vol_mult_set 
+005e 20758000 rtn wake 
+005f 20403c54 call mouse_cb_fuction 
+0060 20203c50 branch mouse_init_wireless 
+
+p_mouse_setting_config:
+0061 20758000 rtn wake 
+0062 20403146 call app_param_init 
+0063 204025f1 call g24_transmit_init 
+0064 20402296 call g24_chmap_param_init 
+0065 20403cac call mouse_param_init 
+0066 2040006f call p_keyboard_param_init 
+0067 6848cc10 fetcht 1 ,mem_mcu_rstb_gpio 
+0068 20405f89 call gpio_out_inactive 
+0069 20400482 call p_mouse_device_led_off 
+006a 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+006b c29e8302 bbit1 mouse_enable_otp ,p_keyboard_load_otp_info_check 
+006c c289c550 bbit1 mouse_enable_eeprom ,mouse_load_eeprom_info_check 
+006d c2894511 bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
+006e 20600000 rtn 
+
+p_keyboard_param_init:
+006f 58004d77 setarg mem_keyboard_ui_uuid_table 
+0070 67e14667 store 2 ,mem_ui_uuid_table 
+0071 20400466 call p_keyboard_long_prsee_init 
+0072 704c9800 jam 0 ,mem_same_keyvalue_timerout_flag 
+0073 58000195 setarg 0x0195 
+0074 67e148eb store 2 ,mem_mouse_vdd_full_vol 
+0075 5800012c setarg 0x012c 
+0076 e7e10005 istore 2 ,contw 
+0077 5800014b setarg 0x014b 
+0078 e7e10005 istore 2 ,contw 
+0079 20600000 rtn 
+
+p_lpm_otp_option_disable_ice_mode:
+007a 6ff08121 fetch 1 ,core_peripheral_lock 
+007b 58000000 setarg 0x00 
+007c 67f0804d store 1 ,core_lpm_reg + 1 
+007d 20205b9a branch lpm_write2_ctrl_option 
+
+p_keyboard_gpio_init:
+007e 6848c919 fetcht 1 ,mem_whee_a_data_gpio 
+007f 20403e71 call mouse_gpio_config_input_pu 
+0080 6848c91a fetcht 1 ,mem_whee_b_data_gpio 
+0081 20403e71 call mouse_gpio_config_input_pu 
+0082 6848c924 fetcht 1 ,mem_config_select_device_button_gpio 
+0083 6048c926 storet 1 ,mem_sensor_motion_gpio 
+0084 20403e71 call mouse_gpio_config_input_pu 
+0085 58004c1a setarg mem_key_row_gpio 
+0086 67e14c42 store 2 ,mem_kb_row_ptr 
+0087 58004c22 setarg mem_key_col_gpio 
+0088 67e14c44 store 2 ,mem_kb_col_ptr 
+0089 58004c36 setarg mem_key_excol_gpio 
+008a 67e14c46 store 2 ,mem_kb_excol_ptr 
+
+p_keyboard_keyscan_gpio_init:
+008b 6fe14c42 fetch 2 ,mem_kb_row_ptr 
+008c 1fe22400 copy pdata ,regb 
+008d df200008 arg 8 ,loopcnt 
+
+p_keyboard_key_row_init:
+008e e8408012 ifetcht 1 ,regb 
+008f 18467cff sub temp ,ui_button_gpio_disable ,null 
+0090 2442be71 ncall mouse_gpio_config_input_pu ,zero 
+0091 1a40a401 increase 1 ,regb 
+0092 c200008e loop p_keyboard_key_row_init 
+0093 6fe14c44 fetch 2 ,mem_kb_col_ptr 
+0094 1fe22400 copy pdata ,regb 
+0095 df200014 arg 20 ,loopcnt 
+
+p_keyboard_key_cow_init:
+0096 e8408012 ifetcht 1 ,regb 
+0097 284ffe07 isolate1 7 ,temp 
+0098 2440dfa3 ncall gpio_set_high_impedance ,true 
+0099 1a40a401 increase 1 ,regb 
+009a c2000096 loop p_keyboard_key_cow_init 
+009b 20203d48 branch mouse_gpio_pu_idle 
+
+p_keyboard_low_vol_mult_set:
+009c 585d4800 setarg 0x5d4800 
+009d 67e248c0 store 4 ,mem_24g_long_sleep_set1 
+009e 6fe0c4a9 fetch 1 ,mem_adc_power_flag 
+009f c4000000 rtnbit0 0 
+00a0 204046ed call mouse_24g_long_sleep_set 
+00a1 20600000 rtn 
+
+p_main_loop:
+00a2 204000a6 call p_keyboard_keyscan 
+00a3 20400131 call p_keyboard_key_process 
+00a4 204002b9 call p_keyboard_special_key_check 
+00a5 20200813 branch main_loop + 1 
+
+p_keyboard_keyscan:
+00a6 2040008b call p_keyboard_keyscan_gpio_init 
+00a7 2040012b call p_keyboard_stb_state_low 
+00a8 58000000 setarg 0 
+00a9 67e14c95 store 2 ,mem_keyscan_exmcu_wait_wake_count 
+00aa d8c04c48 arg mem_keyscan_value_current ,contr 
+00ab d8a04c5c arg mem_keyscan_value_check ,contw 
+00ac df200014 arg 20 ,loopcnt 
+00ad 20407ca1 call memcpy 
+00ae 58004c48 setarg mem_keyscan_value_current 
+00af 67e14c8f store 2 ,mem_keyscan_value_ptr 
+00b0 58004c84 setarg mem_keyscan_exmcu_value 
+00b1 67e14c91 store 2 ,mem_keyscan_exmcu_value_ptr 
+00b2 20400129 call p_keyboard_stb_state_high 
+00b3 20400123 call p_keyboard_clk_state_high 
+00b4 20400127 call p_keyboard_clk_input 
+
+p_keyboard_keyscan_exmcu_start_check:
+00b5 6fe14c95 fetch 2 ,mem_keyscan_exmcu_wait_wake_count 
+00b6 1fe0fe01 increase 1 ,pdata 
+00b7 67e14c95 store 2 ,mem_keyscan_exmcu_wait_wake_count 
+00b8 c2848118 bbit1 9 ,p_keyboard_keyscan_reset_exmcu 
+00b9 6848cc0f fetcht 1 ,mem_mcu_clk_gpio 
+00ba 20405f7d call gpio_get_bit 
+00bb 242080b5 nbranch p_keyboard_keyscan_exmcu_start_check ,true 
+00bc 204000df call p_keyboard_keyscan_get_exmcu_value 
+00bd 204000f9 call p_keyboard_keyscan_get_mcu_value 
+00be 20400129 call p_keyboard_stb_state_high 
+
+p_keyboard_keyscan_copy_value:
+00bf 6fe14c46 fetch 2 ,mem_kb_excol_ptr 
+00c0 1fe22400 copy pdata ,regb 
+00c1 704c9400 jam 0 ,mem_keyscan_col_loop_count 
+
+p_keyboard_compare_col_excol_gpio_loop:
+00c2 e8408012 ifetcht 1 ,regb 
+00c3 6fe14c44 fetch 2 ,mem_kb_col_ptr 
+00c4 1fe22200 copy pdata ,rega 
+00c5 1a222600 copy rega ,regc 
+00c6 df200014 arg 20 ,loopcnt 
+
+p_keyboard_compare_col_gpio_loop:
+00c7 efe08011 ifetch 1 ,rega 
+00c8 98467c00 isub temp ,null 
+00c9 202280d3 branch p_keyboard_copy_value_exmcu_to_mcu ,zero 
+00ca 1a20a201 increase 1 ,rega 
+00cb c20000c7 loop p_keyboard_compare_col_gpio_loop 
+
+p_keyboard_compare_col_excol_gpio_loop_next:
+00cc 1a40a401 increase 1 ,regb 
+00cd 6fe0cc94 fetch 1 ,mem_keyscan_col_loop_count 
+00ce 1fe0fe01 increase 1 ,pdata 
+00cf 67e0cc94 store 1 ,mem_keyscan_col_loop_count 
+00d0 1fe67c0a sub pdata ,10 ,null 
+00d1 202100c2 branch p_keyboard_compare_col_excol_gpio_loop ,positive 
+00d2 20600000 rtn 
+
+p_keyboard_copy_value_exmcu_to_mcu:
+00d3 6fe14c8f fetch 2 ,mem_keyscan_value_ptr 
+00d4 1fe20a00 copy pdata ,contw 
+00d5 1a227e00 copy rega ,pdata 
+00d6 9a667e00 isub regc ,pdata 
+00d7 98a08a00 iadd contw ,contw 
+00d8 6fe14c91 fetch 2 ,mem_keyscan_exmcu_value_ptr 
+00d9 1fe22600 copy pdata ,regc 
+00da 6fe0cc94 fetch 1 ,mem_keyscan_col_loop_count 
+00db 9a60a600 iadd regc ,regc 
+00dc efe08013 ifetch 1 ,regc 
+00dd e7e08005 istore 1 ,contw 
+00de 202000cc branch p_keyboard_compare_col_excol_gpio_loop_next 
+
+p_keyboard_keyscan_get_exmcu_value:
+00df 20000014 nop 20 
+00e0 704c9700 jam 0 ,mem_keyscan_exmcu_reset_count 
+00e1 2040012b call p_keyboard_stb_state_low 
+00e2 704c9400 jam 0 ,mem_keyscan_col_loop_count 
+
+p_keyboard_keyscan_exmcu_start_loop:
+00e3 20400125 call p_keyboard_clk_state_low 
+00e4 204000ec call p_keyboard_keyscan_exmcu_get_col_value 
+00e5 20400123 call p_keyboard_clk_state_high 
+00e6 204000ec call p_keyboard_keyscan_exmcu_get_col_value 
+00e7 1fe67c09 sub pdata ,9 ,null 
+00e8 202100e3 branch p_keyboard_keyscan_exmcu_start_loop ,positive 
+00e9 20400125 call p_keyboard_clk_state_low 
+00ea 204000ec call p_keyboard_keyscan_exmcu_get_col_value 
+00eb 20200127 branch p_keyboard_clk_input 
+
+p_keyboard_keyscan_exmcu_get_col_value:
+00ec 704c9300 jam 0 ,mem_keyscan_value_temp 
+00ed 20000096 nop 150 
+00ee 2040010c call p_keyboard_keyscan_get_col_value 
+00ef 6fe14c91 fetch 2 ,mem_keyscan_exmcu_value_ptr 
+
+p_keyboard_keyscan_value_store:
+00f0 1fe20a00 copy pdata ,contw 
+00f1 6fe0cc94 fetch 1 ,mem_keyscan_col_loop_count 
+00f2 98a08a00 iadd contw ,contw 
+00f3 6fe0cc93 fetch 1 ,mem_keyscan_value_temp 
+00f4 e7e08005 istore 1 ,contw 
+00f5 6fe0cc94 fetch 1 ,mem_keyscan_col_loop_count 
+00f6 1fe0fe01 increase 1 ,pdata 
+00f7 67e0cc94 store 1 ,mem_keyscan_col_loop_count 
+00f8 20600000 rtn 
+
+p_keyboard_keyscan_get_mcu_value:
+00f9 6fe14c44 fetch 2 ,mem_kb_col_ptr 
+00fa 1fe22400 copy pdata ,regb 
+00fb 704c9400 jam 0 ,mem_keyscan_col_loop_count 
+
+p_keyboard_keyscan_mcu_start:
+00fc 704c9300 jam 0 ,mem_keyscan_value_temp 
+00fd e8408012 ifetcht 1 ,regb 
+00fe 284ffe07 isolate1 7 ,temp 
+00ff 20208106 branch p_keyboard_keyscan_mcu_start_loop ,true 
+0100 20405f8d call gpio_out_active 
+0101 2040010c call p_keyboard_keyscan_get_col_value 
+0102 e8408012 ifetcht 1 ,regb 
+0103 20405f89 call gpio_out_inactive 
+0104 e8408012 ifetcht 1 ,regb 
+0105 20405fa3 call gpio_set_high_impedance 
+
+p_keyboard_keyscan_mcu_start_loop:
+0106 1a40a401 increase 1 ,regb 
+0107 6fe14c8f fetch 2 ,mem_keyscan_value_ptr 
+0108 204000f0 call p_keyboard_keyscan_value_store 
+0109 1fe67c13 sub pdata ,19 ,null 
+010a 202100fc branch p_keyboard_keyscan_mcu_start ,positive 
+010b 20600000 rtn 
+
+p_keyboard_keyscan_get_col_value:
+010c 6fe14c42 fetch 2 ,mem_kb_row_ptr 
+010d 1fe22600 copy pdata ,regc 
+010e df200008 arg 8 ,loopcnt 
+
+p_keyboard_keyscan_get_col_value_loop:
+010f e8408013 ifetcht 1 ,regc 
+0110 20405f7d call gpio_get_bit 
+0111 6fe0cc93 fetch 1 ,mem_keyscan_value_temp 
+0112 1fe37e00 rshift pdata ,pdata 
+0113 7920fe07 setflag true ,7 ,pdata 
+0114 67e0cc93 store 1 ,mem_keyscan_value_temp 
+
+p_keyboard_keyscan_get_col_value_loop_next:
+0115 1a60a601 increase 1 ,regc 
+0116 c200010f loop p_keyboard_keyscan_get_col_value_loop 
+0117 20600000 rtn 
+
+p_keyboard_keyscan_reset_exmcu:
+0118 6848cc10 fetcht 1 ,mem_mcu_rstb_gpio 
+0119 20405f8d call gpio_out_active 
+011a 20000014 nop 20 
+011b 6848cc10 fetcht 1 ,mem_mcu_rstb_gpio 
+011c 20405f89 call gpio_out_inactive 
+011d 20001770 nop 6000 
+011e 6fe0cc97 fetch 1 ,mem_keyscan_exmcu_reset_count 
+011f 1fe0fe01 increase 1 ,pdata 
+0120 67e0cc97 store 1 ,mem_keyscan_exmcu_reset_count 
+0121 c2835c7b bbit1 6 ,soft_reset_chip 
+0122 202000a6 branch p_keyboard_keyscan 
+
+p_keyboard_clk_state_high:
+0123 6848cc0f fetcht 1 ,mem_mcu_clk_gpio 
+0124 20205f89 branch gpio_out_inactive 
+
+p_keyboard_clk_state_low:
+0125 6848cc0f fetcht 1 ,mem_mcu_clk_gpio 
+0126 20205f8d branch gpio_out_active 
+
+p_keyboard_clk_input:
+0127 6848cc0f fetcht 1 ,mem_mcu_clk_gpio 
+0128 20205f74 branch gpio_config_input 
+
+p_keyboard_stb_state_high:
+0129 6848cc0e fetcht 1 ,mem_mcu_stb_gpio 
+012a 20205f89 branch gpio_out_inactive 
+
+p_keyboard_stb_state_low:
+012b 6848cc0e fetcht 1 ,mem_mcu_stb_gpio 
+012c 20205f8d branch gpio_out_active 
+
+p_keyboard_press_change_or_no_key:
+012d 704c9800 jam 0 ,mem_same_keyvalue_timerout_flag 
+012e 6fe14c99 fetch 2 ,mem_same_keyvalue_timer_init 
+012f 67e14c9b store 2 ,mem_same_keyvalue_timer 
+0130 20600000 rtn 
+
+p_keyboard_key_process:
+0131 da204c48 arg mem_keyscan_value_current ,rega 
+0132 da404c5c arg mem_keyscan_value_check ,regb 
+0133 df200014 arg 20 ,loopcnt 
+0134 20407d33 call string_compare 
+0135 2422812d nbranch p_keyboard_press_change_or_no_key ,zero 
+0136 2040016b call p_keyboard_keyscan_value_current_zero_check 
+0137 205a012d call p_keyboard_press_change_or_no_key ,blank 
+0138 20400177 call p_keyboard_ghost_key_check 
+0139 6fe0cbac fetch 1 ,mem_mouse_ghost_flag 
+013a 247a0000 nrtn blank 
+013b 6fe0cd70 fetch 1 ,mem_keyboard_commbination_key_step 
+013c c1008000 rtneq cammbination_key_press 
+013d c1010000 rtneq cammbination_key_hold 
+013e c1020000 rtneq cammbination_key_wait_release 
+013f 704c9400 jam 0 ,mem_keyscan_col_loop_count 
+0140 da204c48 arg mem_keyscan_value_current ,rega 
+0141 da404c70 arg mem_keyscan_value_old ,regb 
+
+p_keyboard_keyvalue_process:
+0142 e8408011 ifetcht 1 ,rega 
+0143 efe08012 ifetch 1 ,regb 
+0144 9842fe00 ixor temp ,pdata 
+0145 203a0163 branch p_keyboard_keyvalue_process_loop ,blank 
+0146 67e0cc93 store 1 ,mem_keyscan_value_temp 
+0147 6048cca3 storet 1 ,mem_keyboard_press_flag_temp 
+0148 e0408012 istoret 1 ,regb 
+0149 704ca101 jam 1 ,mem_keyboard_data_change_flag 
+014a 704ca400 jam 0 ,mem_keyboard_keyvalue_bit_loop_count 
+
+p_keyboard_keyvalue_change:
+014b 6fe0cc93 fetch 1 ,mem_keyscan_value_temp 
+014c c3000158 bbit0 0 ,p_keyboard_keyvalue_change_loop 
+014d 6fe0cc94 fetch 1 ,mem_keyscan_col_loop_count 
+014e 1feffe08 mul32 pdata ,8 ,pdata 
+014f 6848cca4 fetcht 1 ,mem_keyboard_keyvalue_bit_loop_count 
+0150 9840fe00 iadd temp ,pdata 
+0151 d8c04cae arg mem_keyboard_keyvalue_map ,contr 
+0152 98c08c00 iadd contr ,contr 
+0153 efe08006 ifetch 1 ,contr 
+0154 67e0cca2 store 1 ,mem_keyboard_keyvalue_temp 
+0155 204001a5 call p_keyboard_keyvalue_fn_replace 
+0156 204001f5 call p_keyboard_keyvalue_commbination_replace 
+0157 20400283 call p_keyboard_keyvalue_in_out 
+
+p_keyboard_keyvalue_change_loop:
+0158 6fe0cc93 fetch 1 ,mem_keyscan_value_temp 
+0159 1fe37e00 rshift pdata ,pdata 
+015a 67e0cc93 store 1 ,mem_keyscan_value_temp 
+015b 6fe0cca3 fetch 1 ,mem_keyboard_press_flag_temp 
+015c 1fe37e00 rshift pdata ,pdata 
+015d 67e0cca3 store 1 ,mem_keyboard_press_flag_temp 
+015e 6fe0cca4 fetch 1 ,mem_keyboard_keyvalue_bit_loop_count 
+015f 1fe0fe01 increase 1 ,pdata 
+0160 67e0cca4 store 1 ,mem_keyboard_keyvalue_bit_loop_count 
+0161 1fe67c07 sub pdata ,7 ,null 
+0162 2021014b branch p_keyboard_keyvalue_change ,positive 
+
+p_keyboard_keyvalue_process_loop:
+0163 1a20a201 increase 1 ,rega 
+0164 1a40a401 increase 1 ,regb 
+0165 6fe0cc94 fetch 1 ,mem_keyscan_col_loop_count 
+0166 1fe0fe01 increase 1 ,pdata 
+0167 67e0cc94 store 1 ,mem_keyscan_col_loop_count 
+0168 1fe67c13 sub pdata ,19 ,null 
+0169 20210142 branch p_keyboard_keyvalue_process ,positive 
+016a 20600000 rtn 
+
+p_keyboard_keyscan_value_current_zero_check:
+016b 6fe44c48 fetch 8 ,mem_keyscan_value_current 
+016c 247a0000 nrtn blank 
+016d 6fe44c50 fetch 8 ,mem_keyscan_value_current + 8 
+016e 247a0000 nrtn blank 
+016f 6fe24c58 fetch 4 ,mem_keyscan_value_current + 16 
+0170 247a0000 nrtn blank 
+0171 6fe0cd73 fetch 1 ,mem_keyboard_commbination_control_key_delay_release_timer 
+0172 247a0000 nrtn blank 
+0173 6fe0cd70 fetch 1 ,mem_keyboard_commbination_key_step 
+0174 c1030000 rtneq cammbination_key_null 
+0175 704d7000 jam cammbination_key_free ,mem_keyboard_commbination_key_step 
+0176 20600000 rtn 
+
+p_keyboard_ghost_key_check:
+0177 704bac00 jam 0 ,mem_mouse_ghost_flag 
+0178 704c9e00 jam 0 ,mem_keyboard_all_press_key_count 
+0179 da204c48 arg mem_keyscan_value_current ,rega 
+017a df200014 arg 20 ,loopcnt 
+
+p_keyboard_ghost_key_check_loop:
+017b 704c9d00 jam 0 ,mem_keyboard_current_col_press_key_count 
+017c efe08011 ifetch 1 ,rega 
+017d 203a01a0 branch p_keyboard_ghost_key_check_next_loop ,blank 
+
+p_keyboard_current_col_press_key_count_check:
+017e 6848cc9d fetcht 1 ,mem_keyboard_current_col_press_key_count 
+017f 18408401 increase 1 ,temp 
+0180 6048cc9d storet 1 ,mem_keyboard_current_col_press_key_count 
+0181 1fe20400 copy pdata ,temp 
+0182 1fe0ffff increase -1 ,pdata 
+0183 98417e00 iand temp ,pdata 
+0184 2422817e nbranch p_keyboard_current_col_press_key_count_check ,zero 
+0185 6fe0cc9d fetch 1 ,mem_keyboard_current_col_press_key_count 
+0186 6848cc9e fetcht 1 ,mem_keyboard_all_press_key_count 
+0187 98408400 iadd temp ,temp 
+0188 6048cc9e storet 1 ,mem_keyboard_all_press_key_count 
+0189 1fe67c01 sub pdata ,1 ,null 
+018a 202101a0 branch p_keyboard_ghost_key_check_next_loop ,positive 
+018b 18467c02 sub temp ,2 ,null 
+018c 202101a0 branch p_keyboard_ghost_key_check_next_loop ,positive 
+018d 704c9400 jam 0 ,mem_keyscan_col_loop_count 
+018e 704c9f00 jam 0 ,mem_keyboard_same_row_press_key_count 
+018f e8408011 ifetcht 1 ,rega 
+0190 da404c48 arg mem_keyscan_value_current ,regb 
+
+p_keyboard_same_row_key_check:
+0191 6fe0cc94 fetch 1 ,mem_keyscan_col_loop_count 
+0192 1fe0fe01 increase 1 ,pdata 
+0193 67e0cc94 store 1 ,mem_keyscan_col_loop_count 
+0194 1fe67c13 sub pdata ,19 ,null 
+0195 242101a0 nbranch p_keyboard_ghost_key_check_next_loop ,positive 
+0196 efe08012 ifetch 1 ,regb 
+0197 98417c00 iand temp ,null 
+0198 202281a3 branch p_keyboard_same_row_key_check_loop ,zero 
+0199 6fe0cc9f fetch 1 ,mem_keyboard_same_row_press_key_count 
+019a 1fe0fe01 increase 1 ,pdata 
+019b 67e0cc9f store 1 ,mem_keyboard_same_row_press_key_count 
+019c 1fe67c01 sub pdata ,1 ,null 
+019d 202101a3 branch p_keyboard_same_row_key_check_loop ,positive 
+019e 704bac01 jam 1 ,mem_mouse_ghost_flag 
+019f 20600000 rtn 
+
+p_keyboard_ghost_key_check_next_loop:
+01a0 1a20a201 increase 1 ,rega 
+01a1 c200017b loop p_keyboard_ghost_key_check_loop 
+01a2 20600000 rtn 
+
+p_keyboard_same_row_key_check_loop:
+01a3 1a40a401 increase 1 ,regb 
+01a4 20200191 branch p_keyboard_same_row_key_check 
+
+p_keyboard_keyvalue_fn_replace:
+01a5 6fe0cca3 fetch 1 ,mem_keyboard_press_flag_temp 
+01a6 245a020a ncall p_keyboard_commbination_delay_release_clear ,blank 
+01a7 6fe0cd4e fetch 1 ,mem_keyboard_fn_flag 
+01a8 245a01bb ncall p_keyboard_keyvalue_fn_replace_press ,blank 
+01a9 6fe0cd5d fetch 1 ,mem_keyboard_fn_first 
+01aa 6848cd4e fetcht 1 ,mem_keyboard_fn_flag 
+01ab 9842fe00 ixor temp ,pdata 
+01ac 202281b8 branch p_keygoard_delete ,zero 
+01ad 6fe0cca2 fetch 1 ,mem_keyboard_keyvalue_temp 
+01ae c01481c6 beq hid_key_esc ,p_keyboard_keyvalue_fn_esc 
+01af 1fe67c45 sub pdata ,hid_key_f12 ,null 
+01b0 24610000 nrtn positive 
+01b1 d840003a arg hid_key_f1 ,temp 
+01b2 98467e00 isub temp ,pdata 
+01b3 24610000 nrtn positive 
+01b4 d8c04d5f arg mem_keyboard_fn_f1 ,contr 
+01b5 98c08c00 iadd contr ,contr 
+01b6 efe08006 ifetch 1 ,contr 
+01b7 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keygoard_delete:
+01b8 6fe0cca2 fetch 1 ,mem_keyboard_keyvalue_temp 
+01b9 c02601c8 beq hid_key_delete ,p_keyboard_keyvalue_fn_delete 
+01ba 20600000 rtn 
+
+p_keyboard_keyvalue_fn_replace_press:
+01bb 6fe0cca2 fetch 1 ,mem_keyboard_keyvalue_temp 
+01bc c02901ca beq hid_key_up_arrow ,p_keyboard_keyvalue_fn_up_arrow 
+01bd c02881ce beq hid_key_down_arrow ,p_keyboard_keyvalue_fn_down_arrow 
+01be c02801d2 beq hid_key_left_arrow ,p_keyboard_keyvalue_fn_left_arrow 
+01bf c02781d6 beq hid_key_right_arrow ,p_keyboard_keyvalue_fn_right_arrow 
+01c0 c07001da beq hid_key_left_ctrl ,p_keyboard_keyvalue_fn_left_ctrl 
+01c1 c01601e2 beq hid_key_space ,p_keyboard_keyvalue_fn_space 
+01c2 c00b01e7 beq hid_key_s ,p_keyboard_keyvalue_os_andriod 
+01c3 c00381ed beq hid_key_d ,p_keyboard_keyvalue_os_windows 
+01c4 c00201f1 beq hid_key_a ,p_keyboard_keyvalue_os_ios 
+01c5 20600000 rtn 
+
+p_keyboard_keyvalue_fn_esc:
+01c6 6fe0cd5e fetch 1 ,mem_keyboard_fn_esc 
+01c7 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_keyvalue_fn_delete:
+01c8 6fe0cd6b fetch 1 ,mem_keyboard_fn_del 
+01c9 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_keyvalue_fn_up_arrow:
+01ca 6fe0cd6c fetch 1 ,mem_keyboard_fn_arrow_enable_flag 
+01cb 207a0000 rtn blank 
+01cc 5800004b setarg hid_key_page_up 
+01cd 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_keyvalue_fn_down_arrow:
+01ce 6fe0cd6c fetch 1 ,mem_keyboard_fn_arrow_enable_flag 
+01cf 207a0000 rtn blank 
+01d0 5800004e setarg hid_key_page_down 
+01d1 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_keyvalue_fn_left_arrow:
+01d2 6fe0cd6c fetch 1 ,mem_keyboard_fn_arrow_enable_flag 
+01d3 207a0000 rtn blank 
+01d4 5800004a setarg hid_key_home 
+01d5 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_keyvalue_fn_right_arrow:
+01d6 6fe0cd6c fetch 1 ,mem_keyboard_fn_arrow_enable_flag 
+01d7 207a0000 rtn blank 
+01d8 5800004d setarg hid_key_end 
+01d9 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_keyvalue_fn_left_ctrl:
+01da 6fe0cd6d fetch 1 ,mem_keyboard_fn_left_ctrl_enable_flag 
+01db 207a0000 rtn blank 
+01dc 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+01dd c00001e0 beq system_os_windows ,p_keyboard_keyvalue_windows_osk 
+01de 580000fd setarg hid_key_os_soft_kb 
+01df 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_keyvalue_windows_osk:
+01e0 580000aa setarg hid_key_osk 
+01e1 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_keyvalue_fn_space:
+01e2 6fe0cd6e fetch 1 ,mem_keyboard_fn_space_enable_flag 
+01e3 207a0000 rtn blank 
+01e4 580000ab setarg hid_key_language 
+
+p_keyboard_keyvalue_store_temp:
+01e5 67e0cca2 store 1 ,mem_keyboard_keyvalue_temp 
+01e6 20600000 rtn 
+
+p_keyboard_keyvalue_os_andriod:
+01e7 6fe0cd6f fetch 1 ,mem_keyboard_fn_system_switch_enable_flag 
+01e8 207a0000 rtn blank 
+01e9 704fa901 jam system_os_andriod ,mem_kb_computer_system 
+
+p_keyboard_keyvalue_clear_temp:
+01ea 704c1606 jam 6 ,mem_keyboard_mode_led_on_timer 
+01eb 58000000 setarg 0 
+01ec 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_keyvalue_os_windows:
+01ed 6fe0cd6f fetch 1 ,mem_keyboard_fn_system_switch_enable_flag 
+01ee 207a0000 rtn blank 
+01ef 704fa900 jam system_os_windows ,mem_kb_computer_system 
+01f0 202001ea branch p_keyboard_keyvalue_clear_temp 
+
+p_keyboard_keyvalue_os_ios:
+01f1 6fe0cd6f fetch 1 ,mem_keyboard_fn_system_switch_enable_flag 
+01f2 207a0000 rtn blank 
+01f3 704fa902 jam system_os_ios ,mem_kb_computer_system 
+01f4 202001ea branch p_keyboard_keyvalue_clear_temp 
+
+p_keyboard_keyvalue_commbination_replace:
+01f5 6fe0cca2 fetch 1 ,mem_keyboard_keyvalue_temp 
+01f6 c023020c beq hid_key_print_screen ,p_keyboard_commination_screen_shot_replace 
+01f7 c0258212 beq hid_key_page_up ,p_keyboard_commination_pageup_replace 
+01f8 c0270218 beq hid_key_page_down ,p_keyboard_commination_pagedown_replace 
+01f9 c025021a beq hid_key_home ,p_keyboard_commination_home_replace 
+01fa c026821c beq hid_key_end ,p_keyboard_commination_end_replace 
+01fb c052821e beq hid_key_select_all ,p_keyboard_commination_select_all 
+01fc c0530225 beq hid_key_copy ,p_keyboard_commbination_copy 
+01fd c0538227 beq hid_key_paste ,p_keyboard_commbination_paste 
+01fe c0540229 beq hid_key_cut ,p_keyboard_commbination_cut 
+01ff c054822b beq hid_key_all_os_lock ,p_keyboard_commination_os_lock 
+0200 c0550236 beq hid_key_osk ,p_keyboard_commbination_osk 
+0201 c056823d beq hid_key_search ,p_keyboard_commbination_search 
+0202 c0558244 beq hid_key_language ,p_keyboard_commbination_language 
+0203 c056024f beq hid_key_app_tiling ,p_keyboard_commbination_app_tiling 
+0204 c07d8258 beq hid_key_ac_home ,p_keyboard_commination_desktop 
+0205 20600000 rtn 
+
+p_keyboard_commbination_delay_release_set:
+0206 6fe0cca3 fetch 1 ,mem_keyboard_press_flag_temp 
+0207 c4000000 rtnbit0 0 
+0208 704d730a jam 10 ,mem_keyboard_commbination_control_key_delay_release_timer 
+0209 20600000 rtn 
+
+p_keyboard_commbination_delay_release_clear:
+020a 704d7300 jam 0 ,mem_keyboard_commbination_control_key_delay_release_timer 
+020b 20600000 rtn 
+
+p_keyboard_commination_screen_shot_replace:
+020c 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+020d c1000000 rtneq system_os_windows 
+020e c1008000 rtneq system_os_andriod 
+020f 704d710a jam left_shift_gui ,mem_keyboard_commbination_control_key_value 
+0210 704d7220 jam hid_key_3 ,mem_keyboard_commbination_standard_key_value 
+0211 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commination_pageup_replace:
+0212 704d7252 jam hid_key_up_arrow ,mem_keyboard_commbination_standard_key_value 
+
+p_keyboard_commination_ios_mac_command_commiation:
+0213 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+0214 c1000000 rtneq system_os_windows 
+0215 c1008000 rtneq system_os_andriod 
+0216 704d7108 jam left_gui ,mem_keyboard_commbination_control_key_value 
+0217 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commination_pagedown_replace:
+0218 704d7251 jam hid_key_down_arrow ,mem_keyboard_commbination_standard_key_value 
+0219 20200213 branch p_keyboard_commination_ios_mac_command_commiation 
+
+p_keyboard_commination_home_replace:
+021a 704d7250 jam hid_key_left_arrow ,mem_keyboard_commbination_standard_key_value 
+021b 20200213 branch p_keyboard_commination_ios_mac_command_commiation 
+
+p_keyboard_commination_end_replace:
+021c 704d724f jam hid_key_right_arrow ,mem_keyboard_commbination_standard_key_value 
+021d 20200213 branch p_keyboard_commination_ios_mac_command_commiation 
+
+p_keyboard_commination_select_all:
+021e 704d7204 jam hid_key_a ,mem_keyboard_commbination_standard_key_value 
+
+p_keyboard_commbination_text_edit:
+021f 704d7101 jam left_control ,mem_keyboard_commbination_control_key_value 
+0220 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+0221 c000025d beq system_os_windows ,p_keyboard_commbination_keypress 
+0222 c000825d beq system_os_andriod ,p_keyboard_commbination_keypress 
+0223 704d7108 jam left_gui ,mem_keyboard_commbination_control_key_value 
+0224 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commbination_copy:
+0225 704d7206 jam hid_key_c ,mem_keyboard_commbination_standard_key_value 
+0226 2020021f branch p_keyboard_commbination_text_edit 
+
+p_keyboard_commbination_paste:
+0227 704d7219 jam hid_key_v ,mem_keyboard_commbination_standard_key_value 
+0228 2020021f branch p_keyboard_commbination_text_edit 
+
+p_keyboard_commbination_cut:
+0229 704d721b jam hid_key_x ,mem_keyboard_commbination_standard_key_value 
+022a 2020021f branch p_keyboard_commbination_text_edit 
+
+p_keyboard_commination_os_lock:
+022b 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+022c c0000230 beq system_os_windows ,p_keyboard_commination_windows_lock 
+022d c0018233 beq system_os_mac ,p_keyboard_commination_mac_lock 
+022e 580000fc setarg hid_key_ios_android_os_lock 
+022f 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_commination_windows_lock:
+0230 704d7108 jam left_gui ,mem_keyboard_commbination_control_key_value 
+0231 704d720f jam hid_key_l ,mem_keyboard_commbination_standard_key_value 
+0232 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commination_mac_lock:
+0233 704d7109 jam left_gui_control ,mem_keyboard_commbination_control_key_value 
+0234 704d7214 jam hid_key_q ,mem_keyboard_commbination_standard_key_value 
+0235 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commbination_osk:
+0236 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+0237 c000023a beq system_os_windows ,p_keyboard_commbination_windows_osk 
+0238 580000fd setarg hid_key_os_soft_kb 
+0239 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_commbination_windows_osk:
+023a 704d7109 jam left_gui_control ,mem_keyboard_commbination_control_key_value 
+023b 704d7212 jam hid_key_o ,mem_keyboard_commbination_standard_key_value 
+023c 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commbination_search:
+023d 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+023e c0018241 beq system_os_mac ,p_keyboard_commbination_mac_search 
+023f 580000fa setarg hid_key_ac_search 
+0240 202001e5 branch p_keyboard_keyvalue_store_temp 
+
+p_keyboard_commbination_mac_search:
+0241 704d7108 jam left_gui ,mem_keyboard_commbination_control_key_value 
+0242 704d722c jam hid_key_space ,mem_keyboard_commbination_standard_key_value 
+0243 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commbination_language:
+0244 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+0245 c000024b beq system_os_windows ,p_keyboard_commbination_language_windows 
+0246 c000824d beq system_os_andriod ,p_keyboard_commbination_language_andriod 
+0247 704d7101 jam left_control ,mem_keyboard_commbination_control_key_value 
+
+p_keyboard_commbination_language_next:
+0248 704d722c jam hid_key_space ,mem_keyboard_commbination_standard_key_value 
+0249 20400206 call p_keyboard_commbination_delay_release_set 
+024a 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commbination_language_windows:
+024b 704d7108 jam left_gui ,mem_keyboard_commbination_control_key_value 
+024c 20200248 branch p_keyboard_commbination_language_next 
+
+p_keyboard_commbination_language_andriod:
+024d 704d7102 jam left_shift ,mem_keyboard_commbination_control_key_value 
+024e 20200248 branch p_keyboard_commbination_language_next 
+
+p_keyboard_commbination_app_tiling:
+024f 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+0250 c0000255 beq system_os_windows ,p_keyboard_commbination_app_tiling_windows_android 
+0251 c0008255 beq system_os_andriod ,p_keyboard_commbination_app_tiling_windows_android 
+0252 704d7101 jam left_control ,mem_keyboard_commbination_control_key_value 
+0253 704d7252 jam hid_key_up_arrow ,mem_keyboard_commbination_standard_key_value 
+0254 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commbination_app_tiling_windows_android:
+0255 704d7108 jam left_gui ,mem_keyboard_commbination_control_key_value 
+0256 704d722b jam hid_key_tab ,mem_keyboard_commbination_standard_key_value 
+0257 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commination_desktop:
+0258 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+0259 c1800000 rtnne system_os_windows 
+025a 704d7108 jam left_gui ,mem_keyboard_commbination_control_key_value 
+025b 704d7207 jam hid_key_d ,mem_keyboard_commbination_standard_key_value 
+025c 2020025d branch p_keyboard_commbination_keypress 
+
+p_keyboard_commbination_keypress:
+025d 704ca200 jam 0 ,mem_keyboard_keyvalue_temp 
+025e 6fe0cca3 fetch 1 ,mem_keyboard_press_flag_temp 
+025f c3000264 bbit0 0 ,p_keyboard_commbination_key_wait_release_set 
+0260 6fe0cd70 fetch 1 ,mem_keyboard_commbination_key_step 
+0261 c0018270 beq cammbination_key_complete ,p_keyboard_commbination_key_hold_set 
+
+p_keyboard_commbination_key_press_set:
+0262 704d7001 jam cammbination_key_press ,mem_keyboard_commbination_key_step 
+0263 20600000 rtn 
+
+p_keyboard_commbination_key_wait_release_set:
+0264 704d7004 jam cammbination_key_wait_release ,mem_keyboard_commbination_key_step 
+0265 20600000 rtn 
+
+p_keyboard_commbination_key_null_set:
+0266 704d7006 jam cammbination_key_null ,mem_keyboard_commbination_key_step 
+0267 20600000 rtn 
+
+p_keyboard_commbination_key_value_store:
+0268 67e0cc02 store 1 ,mem_keyboard_tx_data + 1 
+0269 6048cc04 storet 1 ,mem_keyboard_tx_data + 3 
+026a 20407d92 call enable_user 
+026b 704c0100 jam hid_reportid_key_standard ,mem_keyboard_tx_data 
+026c 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_commbination_key_press_process:
+026d 6fe0cd71 fetch 1 ,mem_keyboard_commbination_control_key_value 
+026e d8400000 arg 0 ,temp 
+026f 20400268 call p_keyboard_commbination_key_value_store 
+
+p_keyboard_commbination_key_hold_set:
+0270 704d7002 jam cammbination_key_hold ,mem_keyboard_commbination_key_step 
+0271 20600000 rtn 
+
+p_keyboard_commbination_key_hold_process:
+0272 704d7003 jam cammbination_key_complete ,mem_keyboard_commbination_key_step 
+0273 6fe0cd71 fetch 1 ,mem_keyboard_commbination_control_key_value 
+0274 6848cd72 fetcht 1 ,mem_keyboard_commbination_standard_key_value 
+0275 20200268 branch p_keyboard_commbination_key_value_store 
+
+p_keyboard_commbination_key_wait_release_process:
+0276 704c0100 jam hid_reportid_key_standard ,mem_keyboard_tx_data 
+0277 6fe0cd71 fetch 1 ,mem_keyboard_commbination_control_key_value 
+0278 d8400000 arg 0 ,temp 
+0279 20400268 call p_keyboard_commbination_key_value_store 
+027a 6fe0cd73 fetch 1 ,mem_keyboard_commbination_control_key_delay_release_timer 
+027b 203a0266 branch p_keyboard_commbination_key_null_set ,blank 
+
+p_keyboard_commbination_key_release_set:
+027c 704d7005 jam cammbination_key_release ,mem_keyboard_commbination_key_step 
+027d 20600000 rtn 
+
+p_keyboard_commbination_key_release_process:
+027e 2020026a branch p_keyboard_commbination_key_value_store + 2 
+
+p_keyboard_commbination_key_null_process:
+027f 704d7000 jam cammbination_key_free ,mem_keyboard_commbination_key_step 
+0280 dfe00000 arg 0 ,pdata 
+0281 d8400000 arg 0 ,temp 
+0282 20200268 branch p_keyboard_commbination_key_value_store 
+
+p_keyboard_keyvalue_in_out:
+0283 6fe0cca2 fetch 1 ,mem_keyboard_keyvalue_temp 
+0284 d84000e0 arg hid_key_left_ctrl ,temp 
+0285 98467c00 isub temp ,null 
+0286 24210295 nbranch p_keyboard_keyvalue_standard ,positive 
+0287 1fe67ce7 sub pdata ,hid_key_right_gui ,null 
+0288 242102b2 nbranch p_keyboard_keyvalue_consumer ,positive 
+0289 1fe17e07 and_into 0x07 ,pdata 
+028a 1fe20e00 copy pdata ,queue 
+028b 6fe0cca3 fetch 1 ,mem_keyboard_press_flag_temp 
+028c c2800291 bbit1 0 ,p_keyboard_keyvalue_control_key_in 
+
+p_keyboard_keyvalue_control_key_out:
+028d 6fe0cca5 fetch 1 ,mem_keyboard_keyvalue_buffer 
+028e f93ffe00 qset0 pdata 
+028f 67e0cca5 store 1 ,mem_keyboard_keyvalue_buffer 
+0290 20600000 rtn 
+
+p_keyboard_keyvalue_control_key_in:
+0291 6fe0cca5 fetch 1 ,mem_keyboard_keyvalue_buffer 
+0292 f9207e00 qset1 pdata 
+0293 67e0cca5 store 1 ,mem_keyboard_keyvalue_buffer 
+0294 20600000 rtn 
+
+p_keyboard_keyvalue_standard:
+0295 704cad00 jam 0 ,mem_keyboard_keyvalue_buffer + 8 
+0296 6fe0cca3 fetch 1 ,mem_keyboard_press_flag_temp 
+0297 c28002a6 bbit1 0 ,p_keyboard_keyvalue_standard_in 
+
+p_keyboard_keyvalue_standard_out:
+0298 6848cca2 fetcht 1 ,mem_keyboard_keyvalue_temp 
+0299 df200006 arg 6 ,loopcnt 
+029a d8c04ca7 arg mem_keyboard_keyvalue_buffer + 2 ,contr 
+
+p_keyboard_keyvalue_standard_out_loop:
+029b efe08006 ifetch 1 ,contr 
+029c 98467c00 isub temp ,null 
+029d 242282a4 nbranch p_keyboard_keyvalue_standard_out_next ,zero 
+029e efe08006 ifetch 1 ,contr 
+029f 18c08dfe increase -2 ,contr 
+02a0 e7e08006 istore 1 ,contr 
+02a1 207a0000 rtn blank 
+02a2 18c08c01 increase 1 ,contr 
+02a3 e0408006 istoret 1 ,contr 
+
+p_keyboard_keyvalue_standard_out_next:
+02a4 c200029b loop p_keyboard_keyvalue_standard_out_loop 
+02a5 20600000 rtn 
+
+p_keyboard_keyvalue_standard_in:
+02a6 6848cca2 fetcht 1 ,mem_keyboard_keyvalue_temp 
+02a7 df200006 arg 6 ,loopcnt 
+02a8 d8c04ca7 arg mem_keyboard_keyvalue_buffer + 2 ,contr 
+
+p_keyboard_keyvalue_standard_in_loop:
+02a9 efe08006 ifetch 1 ,contr 
+02aa 203a02af branch p_keyboard_keyvalue_standard_in_data ,blank 
+02ab 98467c00 isub temp ,null 
+02ac 20628000 rtn zero 
+02ad c20002a9 loop p_keyboard_keyvalue_standard_in_loop 
+02ae 20600000 rtn 
+
+p_keyboard_keyvalue_standard_in_data:
+02af 18c08dff increase -1 ,contr 
+02b0 e0408006 istoret 1 ,contr 
+02b1 20600000 rtn 
+
+p_keyboard_keyvalue_consumer:
+02b2 704d7401 jam keyboard_consumer_key_press ,mem_keyboard_consumer_key_status 
+02b3 6fe0cca3 fetch 1 ,mem_keyboard_press_flag_temp 
+02b4 2fec0000 isolate0 0 ,pdata 
+02b5 204082b7 call p_keyboard_consumer_key_release ,true 
+02b6 20200295 branch p_keyboard_keyvalue_standard 
+
+p_keyboard_consumer_key_release:
+02b7 704d7402 jam keyboard_consumer_key_release ,mem_keyboard_consumer_key_status 
+02b8 20600000 rtn 
+
+p_keyboard_special_key_check:
+02b9 204002cd call p_keyboard_pairing_button_check 
+02ba 704d4e00 jam 0 ,mem_keyboard_fn_flag 
+02bb 704d4f00 jam 0 ,mem_keyboard_control_key_flag 
+02bc 704d5000 jam 0 ,mem_keyboard_bt_button_flag 
+02bd 704feb00 jam 0 ,mem_keyboard_commbination_long_press_flag 
+02be 6fe0cca5 fetch 1 ,mem_keyboard_keyvalue_buffer 
+02bf 245a02f7 ncall p_keyborad_control_key_set ,blank 
+02c0 d8c04ca7 arg mem_keyboard_keyvalue_buffer + 2 ,contr 
+02c1 df200006 arg 6 ,loopcnt 
+
+p_keyboard_special_key_check_loop:
+02c2 efe08006 ifetch 1 ,contr 
+02c3 1fe67c7f sub pdata ,hid_key_fn ,null 
+02c4 204282f9 call p_keyboard_fn_set ,zero 
+02c5 1fe67cde sub pdata ,hid_key_pb ,null 
+02c6 204282fb call p_keyboard_pb_set ,zero 
+02c7 c20002c2 loop p_keyboard_special_key_check_loop 
+02c8 6fe0cd51 fetch 1 ,mem_keyboard_pairing_type 
+02c9 203a02dd branch p_keyboard_enable_bt_button_pairing ,blank 
+02ca 6fe0c93f fetch 1 ,mem_device_flag 
+02cb c00002e2 beq mode_24g_device ,p_keyboard_commbination_pairing_24g_check 
+02cc 20600000 rtn 
+
+p_keyboard_pairing_button_check:
+02cd 6fe0cd51 fetch 1 ,mem_keyboard_pairing_type 
+02ce 247a0000 nrtn blank 
+02cf 6848c924 fetcht 1 ,mem_config_select_device_button_gpio 
+02d0 18467cff sub temp ,ui_button_gpio_disable ,null 
+02d1 20628000 rtn zero 
+02d2 20405f7d call gpio_get_bit 
+02d3 242082d9 nbranch p_keyboard_pairing_button_release ,true 
+02d4 df200008 arg 8 ,loopcnt 
+02d5 d8a04ca5 arg mem_keyboard_keyvalue_buffer ,contw 
+02d6 20407c68 call clear_mem 
+02d7 704ca7de jam hid_key_pb ,mem_keyboard_keyvalue_buffer + 2 
+02d8 20600000 rtn 
+
+p_keyboard_pairing_button_release:
+02d9 6fe0cca7 fetch 1 ,mem_keyboard_keyvalue_buffer + 2 
+02da c1ef0000 rtnne hid_key_pb 
+02db 704ca700 jam hid_key_null ,mem_keyboard_keyvalue_buffer + 2 
+02dc 20600000 rtn 
+
+p_keyboard_enable_bt_button_pairing:
+02dd 6fe0cd50 fetch 1 ,mem_keyboard_bt_button_flag 
+02de 207a0000 rtn blank 
+02df 6fe0c93f fetch 1 ,mem_device_flag 
+02e0 c00002ed beq mode_24g_device ,p_mouse_24g_start_pair_mode 
+02e1 20600000 rtn 
+
+p_keyboard_commbination_pairing_24g_check:
+02e2 6fe14ca7 fetch 2 ,mem_keyboard_keyvalue_buffer + 2 
+02e3 68494d54 fetcht 2 ,mem_keyboard_commbination_key_24g 
+02e4 98467c00 isub temp ,null 
+02e5 202282e9 branch p_mouse_24g_commbination_long_press_juge ,zero 
+02e6 18508400 byteswap temp ,temp 
+02e7 98467c00 isub temp ,null 
+02e8 24628000 nrtn zero 
+
+p_mouse_24g_commbination_long_press_juge:
+02e9 704feb01 jam 1 ,mem_keyboard_commbination_long_press_flag 
+02ea 20600000 rtn 
+
+p_mouse_24g_start_pair_pb_button_flag_set:
+02eb 704feb00 jam 0 ,mem_keyboard_commbination_long_press_flag 
+02ec 204002fb call p_keyboard_pb_set 
+
+p_mouse_24g_start_pair_mode:
+02ed 704d5800 jam 0 ,mem_24g_repeat_send_flag 
+02ee 204002fd call p_keyboard_pairing_check_otp_offset 
+02ef 704ca100 jam 0 ,mem_keyboard_data_change_flag 
+02f0 6fe1488b fetch 2 ,mem_24g_pair_timeout 
+02f1 247a0000 nrtn blank 
+02f2 58000000 setarg 0 
+02f3 67e14ac4 store 2 ,mem_mouse_no_data_timer 
+02f4 20400494 call p_keyboard_capslock_led_off 
+02f5 20400496 call p_keyboard_numberlock_led_off 
+02f6 20204741 branch mouse_24g_start_pair_mode 
+
+p_keyborad_control_key_set:
+02f7 704d4f01 jam 1 ,mem_keyboard_control_key_flag 
+02f8 20600000 rtn 
+
+p_keyboard_fn_set:
+02f9 704d4e01 jam 1 ,mem_keyboard_fn_flag 
+02fa 20600000 rtn 
+
+p_keyboard_pb_set:
+02fb 704d5001 jam 1 ,mem_keyboard_bt_button_flag 
+02fc 20600000 rtn 
+
+p_keyboard_pairing_check_otp_offset:
+02fd 6fe14fc2 fetch 2 ,mem_otp_read_retention_offset 
+02fe d8400528 arg 0x528 ,temp 
+02ff 98467c00 isub temp ,null 
+0300 24610000 nrtn positive 
+0301 2020137a branch assert 
+
+p_keyboard_load_otp_info_check:
+0302 6fe0c93f fetch 1 ,mem_device_flag 
+0303 c0000305 beq mode_24g_device ,p_keyboard_load_otp_device_info_g24_init 
+0304 20600000 rtn 
+
+p_keyboard_load_otp_device_info_g24_init:
+0305 db000050 arg 80 ,regd 
+0306 58000400 setarg 0x400 
+0307 9b06fc00 idiv regd 
+0308 20407d31 call wait_div_end 
+0309 1807fe00 quotient pdata 
+030a 67e1095c store 2 ,mem_pdatatemp 
+030b dfe01fcc arg 0x1fcc ,pdata 
+030c d8400004 arg 4 ,temp 
+030d dd600004 arg 4 ,rege 
+030e 2020030f branch p_keyboard_load_otp_device_info 
+
+p_keyboard_load_otp_device_info:
+030f 60488964 storet 1 ,mem_temp 
+0310 da204faa arg mem_otp_read_retention_memory ,rega 
+0311 da600000 arg 0 ,regc 
+
+p_keyboard_load_otp_info_check_page_loop:
+0312 1fe22400 copy pdata ,regb 
+0313 68488964 fetcht 1 ,mem_temp 
+0314 20405dc7 call otpd_read_data 
+0315 6fe44faa fetch 8 ,mem_otp_read_retention_memory 
+0316 684c4fb2 fetcht 8 ,mem_otp_read_retention_memory + 8 
+0317 9841fe00 ior temp ,pdata 
+0318 684c4fba fetcht 8 ,mem_otp_read_retention_memory + 16 
+0319 9841fe00 ior temp ,pdata 
+031a 203a0322 branch p_keyboard_load_otp_info_check_first_time ,blank 
+031b 1a60a601 increase 1 ,regc 
+031c 6fe1095c fetch 2 ,mem_pdatatemp 
+031d 9a667c00 isub regc ,null 
+031e 24210342 nbranch p_keyboard_load_otp_info_check_overwise ,positive 
+031f 1a427e00 copy regb ,pdata 
+0320 9b067e00 isub regd ,pdata 
+0321 20200312 branch p_keyboard_load_otp_info_check_page_loop 
+
+p_keyboard_load_otp_info_check_first_time:
+0322 1a667c00 sub regc ,0 ,null 
+0323 20228332 branch p_keyboard_load_otp_info_check_first_time_process ,zero 
+
+p_keyboard_load_otp_info_check_first_time_loop_init:
+0324 1a427e00 copy regb ,pdata 
+0325 9b00fe00 iadd regd ,pdata 
+
+p_keyboard_load_otp_info_check_first_time_loop:
+0326 9d667e00 isub rege ,pdata 
+0327 1fe22400 copy pdata ,regb 
+0328 68488964 fetcht 1 ,mem_temp 
+0329 20405dc7 call otpd_read_data 
+032a 6fe44faa fetch 8 ,mem_otp_read_retention_memory 
+032b 684c4fb2 fetcht 8 ,mem_otp_read_retention_memory + 8 
+032c 9841fe00 ior temp ,pdata 
+032d 684c4fba fetcht 8 ,mem_otp_read_retention_memory + 16 
+032e 9841fe00 ior temp ,pdata 
+032f 203a0334 branch p_keyboard_load_otp_info_check_offset_process ,blank 
+0330 1a427e00 copy regb ,pdata 
+0331 20200326 branch p_keyboard_load_otp_info_check_first_time_loop 
+
+p_keyboard_load_otp_info_check_first_time_process:
+0332 6560cfc2 storer rege ,1 ,mem_otp_read_retention_offset 
+0333 20600000 rtn 
+
+p_keyboard_load_otp_info_check_offset_process:
+0334 58001fd0 setarg 0x1fd0 
+0335 9a467e00 isub regb ,pdata 
+0336 67e14fc2 store 2 ,mem_otp_read_retention_offset 
+0337 1a427e00 copy regb ,pdata 
+0338 9d60fe00 iadd rege ,pdata 
+0339 68488964 fetcht 1 ,mem_temp 
+033a da204faa arg mem_otp_read_retention_memory ,rega 
+033b 20405dc7 call otpd_read_data 
+033c 6fe0c93f fetch 1 ,mem_device_flag 
+033d c000033f beq mode_24g_device ,p_keyboard_load_otp_info_check_offset_process_g24 
+033e 20600000 rtn 
+
+p_keyboard_load_otp_info_check_offset_process_g24:
+033f 6fe34faa fetch 6 ,mem_otp_read_retention_memory 
+0340 67e2499a store 4 ,mem_mouse_24g_addr 
+0341 202044fe branch mouse_load_device_info + 1 
+
+p_keyboard_load_otp_info_check_overwise:
+0342 2020137a branch assert 
+
+p_mouse_store_device_info:
+0343 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+0344 c29e8346 bbit1 mouse_enable_otp ,p_keyboard_store_otp_device_info 
+0345 2020450e branch mouse_store_device_info + 2 
+
+p_keyboard_store_otp_device_info:
+0346 6fe0c93f fetch 1 ,mem_device_flag 
+0347 c0000349 beq mode_24g_device ,p_keyboard_store_otp_device_info_g24 
+0348 20600000 rtn 
+
+p_keyboard_store_otp_device_info_g24:
+0349 68494fc2 fetcht 2 ,mem_otp_read_retention_offset 
+034a 58001fd0 setarg 0x1fd0 
+034b 98460400 isub temp ,temp 
+034c da20499a arg mem_mouse_24g_addr ,rega 
+034d df200004 arg 4 ,loopcnt 
+034e 20405d82 call otp_write 
+034f 68494fc2 fetcht 2 ,mem_otp_read_retention_offset 
+0350 18408404 increase 4 ,temp 
+0351 60494fc2 storet 2 ,mem_otp_read_retention_offset 
+0352 20600000 rtn 
+
+p_keyboard_start_work:
+0353 20400476 call p_mouse_device_poweron_timer 
+0354 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+0355 c30a0361 bbit0 mouse_enable_adc ,p_keyboard_start_work_next 
+0356 20405ff1 call enable_adc 
+0357 20406018 call vdd_calculate_by_mode 
+0358 6849449b fetcht 2 ,mem_1v_adc_io_data 
+0359 6fe144a7 fetch 2 ,mem_adc_current_value 
+035a 1fe6fc02 div pdata ,2 
+035b 20407d2e call get_div_result 
+035c 98467c00 isub temp ,null 
+035d 20210354 branch p_keyboard_start_work + 1 ,positive 
+035e 20403dd4 call mouse_adc_read_start 
+035f 6fe0c4a9 fetch 1 ,mem_adc_power_flag 
+0360 c280be39 bbit1 1 ,mouse_power_down 
+
+p_keyboard_start_work_next:
+0361 6fe0cd51 fetch 1 ,mem_keyboard_pairing_type 
+0362 205a02dd call p_keyboard_enable_bt_button_pairing ,blank 
+0363 6fe0cd50 fetch 1 ,mem_keyboard_bt_button_flag 
+0364 247a0000 nrtn blank 
+0365 6fe0c93f fetch 1 ,mem_device_flag 
+0366 c0004726 beq mode_24g_device ,mouse_24g_reconn_general_dongle 
+
+p_mouse_before_hibernate:
+0367 704926ff jam 0xff ,mem_sensor_motion_gpio 
+0368 20203d35 branch mouse_before_hibernate + 1 
+
+p_mouse_setgpio_hibernate:
+0369 20407f1a call clear_wake 
+036a 20400482 call p_mouse_device_led_off 
+036b 20403d43 call mouse_setgpio_hibernate + 3 
+
+p_keyboard_adc_gpio_set_before_hibernate:
+036c 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+036d c40a0000 rtnbit0 mouse_enable_adc 
+036e 6fe0c905 fetch 1 ,mem_adc_config_flag_init 
+036f c1810000 rtnne adc_config_gpio 
+0370 6fe0c904 fetch 1 ,mem_adc_channel_gpio 
+0371 d84000c0 arg gpcfg_no_ie ,temp 
+0372 20205fb3 branch gpio_config_function_int 
+
+p_mouse_lpm_before_common:
+0373 20407f1a call clear_wake 
+0374 20403ea3 call mouse_wheel_check 
+0375 6848c919 fetcht 1 ,mem_whee_a_data_gpio 
+0376 20405f56 call gpio_set_wake_by_current_state 
+0377 6848c91a fetcht 1 ,mem_whee_b_data_gpio 
+0378 20405f56 call gpio_set_wake_by_current_state 
+0379 6848c924 fetcht 1 ,mem_config_select_device_button_gpio 
+037a 20405f5a call gpio_set_wake 
+037b 6fe14c44 fetch 2 ,mem_kb_col_ptr 
+037c 1fe22400 copy pdata ,regb 
+037d df200014 arg 20 ,loopcnt 
+
+p_keyboard_key_col_wake_init:
+037e e8408012 ifetcht 1 ,regb 
+037f 284ffe07 isolate1 7 ,temp 
+0380 2440df8d ncall gpio_out_active ,true 
+0381 1a40a401 increase 1 ,regb 
+0382 c200037e loop p_keyboard_key_col_wake_init 
+0383 6fe14c42 fetch 2 ,mem_kb_row_ptr 
+0384 1fe22400 copy pdata ,regb 
+0385 df200008 arg 8 ,loopcnt 
+
+p_keyboard_key_row_wake_init:
+0386 e8408012 ifetcht 1 ,regb 
+0387 18467cff sub temp ,ui_button_gpio_disable ,null 
+0388 2442df56 ncall gpio_set_wake_by_current_state ,zero 
+0389 1a40a401 increase 1 ,regb 
+038a c2000386 loop p_keyboard_key_row_wake_init 
+038b 20600000 rtn 
+
+p_g24_pair_dispatch:
+038c 70489300 jam default_24g_device ,mem_24g_reconn_type 
+038d 6fe0c887 fetch 1 ,mem_24g_pair_sm 
+038e c0810396 bne state_24g_pairing_2 ,p_g24_pair_dispatch_next 
+038f 704bf800 jam 0 ,mem_24g_pair_time_out 
+0390 6fe14bf6 fetch 2 ,mem_24g_pair_count 
+0391 1fe0fe01 increase 1 ,pdata 
+0392 67e14bf6 store 2 ,mem_24g_pair_count 
+0393 6fe0cbf6 fetch 1 ,mem_24g_pair_count 
+0394 c00022d8 beq 0 ,g24_pair_dispatch + 1 
+0395 20600000 rtn 
+
+p_g24_pair_dispatch_next:
+0396 6fe0cbf8 fetch 1 ,mem_24g_pair_time_out 
+0397 1fe0fe01 increase 1 ,pdata 
+0398 67e0cbf8 store 1 ,mem_24g_pair_time_out 
+0399 c07fa303 beq 0xff ,g24_pair_sm_reinit 
+039a 202022d8 branch g24_pair_dispatch + 1 
+
+p_g24_pair_sm_common:
+039b 6fe0c887 fetch 1 ,mem_24g_pair_sm 
+039c c17f8000 rtneq state_24g_pairing_success 
+039d c001039f beq state_24g_pairing_2 ,p_g24_pair_sm_2_waiting_ack 
+039e 202022fe branch g24_pair_sm_common + 14 
+
+p_g24_pair_sm_2_waiting_ack:
+039f 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+03a0 203a230e branch g24_pair_sm_2_waiting_ack_skip ,blank 
+03a1 6fe24813 fetch 4 ,mem_24g_rxpayload + 2 
+03a2 207a0000 rtn blank 
+03a3 67e24899 store 4 ,mem_24g_receiver_addr 
+03a4 2020230e branch g24_pair_sm_2_waiting_ack_skip 
+
+p_g24_reconn_dispatch:
+03a5 6fe14891 fetch 2 ,mem_24g_reconn_count 
+03a6 1fe17ee0 and_into 0xe0 ,pdata 
+03a7 203a03ac branch p_g24_reconn_dispatch_next ,blank 
+03a8 6fe14891 fetch 2 ,mem_24g_reconn_count 
+03a9 1fe0fe01 increase 1 ,pdata 
+03aa 67e14891 store 2 ,mem_24g_reconn_count 
+03ab 20600000 rtn 
+
+p_g24_reconn_dispatch_next:
+03ac 20402586 call g24_reconn_data_prep 
+03ad 20402645 call g24_transmit_receive_ack 
+03ae 242c258d nbranch g24_reconn_device_fail ,sync 
+03af 2437a58d nbranch g24_reconn_device_fail ,user3 
+03b0 204003b2 call p_g24_ackpayload_parse 
+03b1 20202572 branch g24_reconn_receiver_succ 
+
+p_g24_ackpayload_parse:
+03b2 2040265c call g24_ackpayload_parse 
+03b3 6fe0c7ac fetch 1 ,mem_24g_rxbuf + 1 
+03b4 2fe1f008 compare 0x08 ,pdata ,0xf8 
+03b5 24608000 nrtn true 
+03b6 6fe0c7ad fetch 1 ,mem_24g_rxbuf + 2 
+03b7 c07f843e beq 0xff ,p_mouse_24g_hibernate_set 
+03b8 67e0cd59 store 1 ,mem_keyboard_led_status 
+03b9 20600000 rtn 
+
+p_g24_transmit_no_interrupt:
+03ba 2040261b call g24_txdata_prep 
+03bb 243403bf nbranch p_g24_nodata_transmit ,user 
+
+p_g24_transmit_start:
+03bc 204003ce call p_g24_transmit_process 
+03bd 204026d5 call power_ctrl_start 
+03be 20202612 branch g24_transmit_start_next 
+
+p_g24_nodata_transmit:
+03bf 6fe44c48 fetch 8 ,mem_keyscan_value_current 
+03c0 243a2612 nbranch g24_transmit_start_next ,blank 
+03c1 6fe44c50 fetch 8 ,mem_keyscan_value_current + 8 
+03c2 243a2612 nbranch g24_transmit_start_next ,blank 
+03c3 6fe24c58 fetch 4 ,mem_keyscan_value_current + 16 
+03c4 243a2612 nbranch g24_transmit_start_next ,blank 
+03c5 6fe0c8c5 fetch 1 ,mem_24g_transmit_by_interrupt 
+03c6 c1008000 rtneq g24_tx_timer_int_enable 
+03c7 20402689 call g24_search_receiver 
+
+p_g24_long_sleep:
+03c8 204026a4 call g24_lpm_wait 
+03c9 24740000 nrtn user 
+03ca 6fe0cbf3 fetch 1 ,mem_sensor_shutdown_flag 
+03cb 245a3d40 ncall mouse_setgpio_hibernate ,blank 
+03cc 6fe24863 fetch 4 ,mem_24g_enter_hibernate 
+03cd 202026a1 branch g24_long_seep2 
+
+p_g24_transmit_process:
+03ce 7048ae00 jam 0 ,mem_24g_retry 
+
+p_g24_transmit_loop:
+03cf 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+03d0 34730200 until clkn_rt ,meet 
+03d1 20402645 call g24_transmit_receive_ack 
+03d2 6fe0c833 fetch 1 ,mem_24g_no_ack 
+03d3 c000a63b beq no_ack_24g ,g24_transmit_no_ack 
+03d4 242c03d9 nbranch p_g24_retransmit ,sync 
+03d5 243783d9 nbranch p_g24_retransmit ,user3 
+03d6 204003b2 call p_g24_ackpayload_parse 
+03d7 704bf300 jam 0 ,mem_sensor_shutdown_flag 
+03d8 2020263b branch g24_transmit_no_ack 
+
+p_g24_retransmit:
+03d9 6fe0c8af fetch 1 ,mem_24g_abort_pac 
+03da 247a0000 nrtn blank 
+03db 6fe148ab fetch 2 ,mem_24g_txfail_cnt 
+03dc 1fe0fe01 increase 1 ,pdata 
+03dd 67e148ab store 2 ,mem_24g_txfail_cnt 
+03de 6fe0c8ab fetch 1 ,mem_24g_txfail_cnt 
+03df c07fa663 beq 0xff ,g24_tx_attempt_fail 
+03e0 2feffe06 isolate1 6 ,pdata 
+03e1 204083e4 call p_keyboard_pair_key_check ,true 
+03e2 20402668 call g24_transmit_hop_process 
+03e3 202003cf branch p_g24_transmit_loop 
+
+p_keyboard_pair_key_check:
+03e4 204000a6 call p_keyboard_keyscan 
+03e5 6fe0cc49 fetch 1 ,mem_keyscan_value_current + 1 
+03e6 1fe67c09 sub pdata ,0x09 ,null 
+03e7 2022c5d9 branch mouse_soft_reset ,zero 
+03e8 20600000 rtn 
+
+p_g24_transmit_hop_process:
+03e9 6fe0c8ae fetch 1 ,mem_24g_retry 
+03ea 1fe0fe01 increase 1 ,pdata 
+03eb 67e0c8ae store 1 ,mem_24g_retry 
+03ec 1fe17e03 and_into 0x03 ,pdata 
+03ed 203a03ef branch p_g24_tx_fast_hop ,blank 
+03ee 20600000 rtn 
+
+p_g24_tx_fast_hop:
+03ef 6fe24843 fetch 4 ,mem_24g_addr 
+03f0 684a4895 fetcht 4 ,mem_24g_fast_conn_addr 
+03f1 98467c00 isub temp ,null 
+03f2 2022a262 branch g24_ch ,zero 
+03f3 20202686 branch g24_tx_fast_hop 
+
+p_g24_lpm_wait:
+03f4 78347c00 enable user 
+03f5 20401417 call lpo_calibration 
+03f6 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+03f7 203a7d94 branch disable_user ,blank 
+03f8 6fe0cd4e fetch 1 ,mem_keyboard_fn_flag 
+03f9 243a7d94 nbranch disable_user ,blank 
+03fa 6fe0cd4f fetch 1 ,mem_keyboard_control_key_flag 
+03fb 243a7d94 nbranch disable_user ,blank 
+03fc 6fe0cd73 fetch 1 ,mem_keyboard_commbination_control_key_delay_release_timer 
+03fd 243a7d94 nbranch disable_user ,blank 
+03fe 6fe0c8c5 fetch 1 ,mem_24g_transmit_by_interrupt 
+03ff c000fd94 beq g24_tx_timer_int_enable ,disable_user 
+0400 202026a9 branch g24_lpm_wait + 5 
+
+p_power_ctrl_start:
+0401 6fe24843 fetch 4 ,mem_24g_addr 
+0402 684a4895 fetcht 4 ,mem_24g_fast_conn_addr 
+0403 98467c00 isub temp ,null 
+0404 2422a6d6 nbranch power_ctrl_start + 1 ,zero 
+0405 7041eb9f jam tx_power_f25db ,mem_tx_power 
+0406 20600000 rtn 
+
+p_mouse_check_key_gpio:
+0407 58000000 setarg 0 
+
+p_mouse_init_sunt:
+
+p_mouse_sensor_poweron:
+0408 20600000 rtn 
+
+p_mouse_idle:
+0409 204048ba call mouse_low_voltage_led_no_enter_lpm 
+040a 2040786c call ui_check_paring_button 
+040b 20203ea3 branch mouse_wheel_check 
+
+p_ui_timer_check:
+040c 6fe0cbf5 fetch 1 ,mem_power_on_flag 
+040d 245a7797 ncall ui_timer_init ,blank 
+040e 704bf500 jam 0 ,mem_power_on_flag 
+040f 20207787 branch ui_timer_check + 1 
+
+p_mouse_priority_bb_event:
+0410 1a627e00 copy regc ,pdata 
+0411 c01c8415 beq bt_evt_24g_pairing_complete ,p_mouse_24g_pairing_complete 
+0412 c01e0418 beq bt_evt_24g_attempt_success ,p_mouse_24g_attempt_success 
+0413 c01d0431 beq bt_evt_24g_attempt_fail ,p_mouse_24g_attempt_fail 
+0414 20204251 branch mouse_priority_bb_event + 2 
+
+p_mouse_24g_pairing_complete:
+0415 2040042c call p_keyboard_get_24g_led_enable 
+0416 2040445f call mouse_no_data_timer_init 
+0417 20204771 branch mouse_24g_pairing_complete 
+
+p_mouse_24g_attempt_success:
+0418 2040042c call p_keyboard_get_24g_led_enable 
+0419 6fe24843 fetch 4 ,mem_24g_addr 
+041a 67e24899 store 4 ,mem_24g_receiver_addr 
+041b 67e2499a store 4 ,mem_mouse_24g_addr 
+041c 2040256a call g24_ch_syncword_crc8_init 
+041d 204047f0 call mouse_device_poweron_timer_init 
+041e 2040445f call mouse_no_data_timer_init 
+041f 20204768 branch mouse_24g_attempt_success 
+
+p_keyboard_24g_get_led:
+0420 704c0b02 jam device_data_tpye_standard_keyboard ,mem_keyboard_data_send_flag 
+0421 2040059d call p_clear_key_data 
+0422 704be003 jam 0x03 ,mem_customer_key_press + 2 
+0423 20600000 rtn 
+
+p_keyboard_24g_led_get_status_check:
+0424 df200006 arg 6 ,loopcnt 
+0425 d8c04c04 arg mem_keyboard_tx_data + 3 ,contr 
+
+p_keyboard_24g_led_data_check:
+0426 efe08006 ifetch 1 ,contr 
+0427 c029842c beq hid_key_num_lock ,p_keyboard_get_24g_led_enable 
+0428 c01c842c beq hid_key_caps_lock ,p_keyboard_get_24g_led_enable 
+0429 c023842c beq hid_key_scroll_lock ,p_keyboard_get_24g_led_enable 
+042a c2000426 loop p_keyboard_24g_led_data_check 
+042b 20600000 rtn 
+
+p_keyboard_get_24g_led_enable:
+042c 704d5a03 jam 0x03 ,mem_keyboard_led_status_get 
+042d 704ca101 jam 1 ,mem_keyboard_data_change_flag 
+042e 20600000 rtn 
+
+p_keyboard_set_repeat_send_flag:
+042f 704d5801 jam 1 ,mem_24g_repeat_send_flag 
+0430 20600000 rtn 
+
+p_mouse_24g_attempt_fail:
+0431 6fe0c8ad fetch 1 ,mem_24g_attempt_fail_flag 
+0432 243a043e nbranch p_mouse_24g_hibernate_set ,blank 
+0433 6fe0c893 fetch 1 ,mem_24g_reconn_type 
+0434 c0010437 beq fast_conn_and_3_0_addr ,p_mouse_24g_fast_conn_attempt_fail 
+0435 c001c753 beq receiver_and_3_0_addr ,mouse_24g_attempt_fail_enter_hibernate 
+0436 20204750 branch mouse_24g_attempt_fail + 3 
+
+p_mouse_24g_fast_conn_attempt_fail:
+0437 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+0438 c297c72b bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
+0439 c298472b bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+043a c31d4720 bbit0 mouse_enable_24g_auto_pair_nerver_been_paired ,mouse_24g_reconn_dongle_start 
+043b 6fe2499a fetch 4 ,mem_mouse_24g_addr 
+043c 203a02ed branch p_mouse_24g_start_pair_mode ,blank 
+043d 20204720 branch mouse_24g_reconn_dongle_start 
+
+p_mouse_24g_hibernate_set:
+043e 7048ad00 jam 0 ,mem_24g_attempt_fail_flag 
+043f 2040263c call g24_transmit_next_packet 
+0440 5fffffff setarg -1 
+0441 67e44863 store 8 ,mem_24g_enter_hibernate 
+0442 58000000 setarg 0 
+0443 67e3c8d8 store 7 ,mem_mouse_key 
+0444 704bf301 jam 1 ,mem_sensor_shutdown_flag 
+0445 202003c8 branch p_g24_long_sleep 
+
+p_keyboard_low_voltage_param_set:
+0446 6fe0c902 fetch 1 ,mem_mouse_adc_last_low_voltage_flag 
+0447 203a044a branch p_keyboard_low_voltage_param_set_33v ,blank 
+0448 7048ef4d jam 0x4d ,mem_mouse_vdd_low_vol 
+0449 20600000 rtn 
+
+p_keyboard_low_voltage_param_set_33v:
+044a 7048ef4b jam 0x4b ,mem_mouse_vdd_low_vol 
+044b 20600000 rtn 
+
+p_mouse_bb_event_timer:
+044c 20403db7 call mouse_adc_read 
+044d 20400446 call p_keyboard_low_voltage_param_set 
+044e 20404880 call mouse_low_voltage_led_timer 
+044f 204022c2 call g24_pair_timeout_timer 
+0450 20402542 call g24_reconn_timeout_timer 
+0451 204046e6 call mouse_24g_long_sleep_param_update_timer 
+0452 20400469 call p_keyboard_24g_repeat_send_data 
+0453 20400471 call p_keyboard_24g_led_status_get_timer 
+0454 20400476 call p_mouse_device_poweron_timer 
+0455 2040047a call p_keyboard_mode_led_timer 
+0456 2040441a call mouse_check_discovery_timeout_timer 
+0457 20404450 call mouse_current_mult_update_timer 
+0458 20403f3d call mouse_wheel_trigger_timer 
+0459 20404462 call mouse_store_information_delay_timer 
+045a 20400487 call p_keyboard_capslock_led_on_timer 
+045b 204004a2 call p_keyboard_long_press_timer 
+045c 204004a7 call p_keyboard_commbination_delay_release_timer 
+045d 2040045f call p_mouse_commbination_long_press_timer 
+045e 202004aa branch p_mouse_check_no_data_timeout_timer 
+
+p_mouse_commbination_long_press_timer:
+045f 6fe0cfeb fetch 1 ,mem_keyboard_commbination_long_press_flag 
+0460 203a0466 branch p_keyboard_long_prsee_init ,blank 
+0461 6fe0cfea fetch 1 ,mem_keyboard_commbination_long_press_timer 
+0462 1fe0ffff increase -1 ,pdata 
+0463 203a02eb branch p_mouse_24g_start_pair_pb_button_flag_set ,blank 
+0464 67e0cfea store 1 ,mem_keyboard_commbination_long_press_timer 
+0465 20600000 rtn 
+
+p_keyboard_long_prsee_init:
+0466 6fe0cfe9 fetch 1 ,mem_keyboard_commbination_long_press_timer_init 
+0467 67e0cfea store 1 ,mem_keyboard_commbination_long_press_timer 
+0468 20600000 rtn 
+
+p_keyboard_24g_repeat_send_data:
+0469 6fe0cd58 fetch 1 ,mem_24g_repeat_send_flag 
+046a 207a0000 rtn blank 
+046b 704d5800 jam 0 ,mem_24g_repeat_send_flag 
+046c 6fe0c8a9 fetch 1 ,mem_24g_conn_sm 
+046d 247a0000 nrtn blank 
+046e 704ca101 jam 1 ,mem_keyboard_data_change_flag 
+046f 2040261b call g24_txdata_prep 
+0470 202003ce branch p_g24_transmit_process 
+
+p_keyboard_24g_led_status_get_timer:
+0471 da604d5b arg mem_keyboard_led_status_get_timer ,regc 
+0472 da400474 arg p_keyboard_24g_led_status_clear ,regb 
+0473 202031cf branch timer_single_step 
+
+p_keyboard_24g_led_status_clear:
+0474 704d5a00 jam 0 ,mem_keyboard_led_status_get 
+0475 20600000 rtn 
+
+p_mouse_device_poweron_timer:
+0476 6fe0c4a9 fetch 1 ,mem_adc_power_flag 
+0477 c3808000 rtnbit1 1 
+0478 6fe0c93f fetch 1 ,mem_device_flag 
+0479 c00047e8 beq mode_24g_device ,mouse_device_poweron_timer 
+
+p_keyboard_mode_led_timer:
+047a 6fe14ac4 fetch 2 ,mem_mouse_no_data_timer 
+047b 207a0000 rtn blank 
+047c 6fe0cc16 fetch 1 ,mem_keyboard_mode_led_on_timer 
+047d 207a0000 rtn blank 
+047e 1fe0ffff increase -1 ,pdata 
+047f 67e0cc16 store 1 ,mem_keyboard_mode_led_on_timer 
+0480 c280484a bbit1 0 ,mouse_device_led_on 
+0481 2020483c branch mouse_device_led_off 
+
+p_mouse_device_led_off:
+0482 2040483c call mouse_device_led_off 
+0483 20400494 call p_keyboard_capslock_led_off 
+0484 20400496 call p_keyboard_numberlock_led_off 
+
+p_keyboard_power_led_off:
+0485 6848cc13 fetcht 1 ,mem_keyboard_power_led_gpio 
+0486 20204855 branch mouse_led_off 
+
+p_keyboard_capslock_led_on_timer:
+0487 6fe0cc11 fetch 1 ,mem_keyboard_caps_led_gpio 
+0488 c17f8000 rtneq gpio_disable 
+0489 6fe0cbb9 fetch 1 ,mem_mouse_device_poweron_timer_count 
+048a 247a0000 nrtn blank 
+048b 6fe14ac4 fetch 2 ,mem_mouse_no_data_timer 
+048c 207a0000 rtn blank 
+048d 6fe14bd0 fetch 2 ,mem_mouse_no_data_timeout 
+048e 68494ac4 fetcht 2 ,mem_mouse_no_data_timer 
+048f 98460400 isub temp ,temp 
+0490 6fe14c14 fetch 2 ,mem_keyboard_caps_led_on_timer 
+0491 98467e00 isub temp ,pdata 
+0492 20210498 branch p_keyboard_num_cap_led_on ,positive 
+0493 20400496 call p_keyboard_numberlock_led_off 
+
+p_keyboard_capslock_led_off:
+0494 6848cc11 fetcht 1 ,mem_keyboard_caps_led_gpio 
+0495 20205f89 branch gpio_out_inactive 
+
+p_keyboard_numberlock_led_off:
+0496 6848cc12 fetcht 1 ,mem_keyboard_num_led_gpio 
+0497 20205f89 branch gpio_out_inactive 
+
+p_keyboard_num_cap_led_on:
+0498 2040049d call p_keyboard_numberlock_led_check_on 
+
+p_keyboard_capslock_led_check_on:
+0499 6fe0cd59 fetch 1 ,mem_keyboard_led_status 
+049a c3008494 bbit0 kb_pc_keysel_capslock ,p_keyboard_capslock_led_off 
+049b 6848cc11 fetcht 1 ,mem_keyboard_caps_led_gpio 
+049c 20205f8d branch gpio_out_active 
+
+p_keyboard_numberlock_led_check_on:
+049d 6fe0cd59 fetch 1 ,mem_keyboard_led_status 
+049e c3000496 bbit0 kb_pc_keysel_numlock ,p_keyboard_numberlock_led_off 
+049f 704936ff jam 0xff ,mem_mouse_struct_led_gpio 
+04a0 6848cc12 fetcht 1 ,mem_keyboard_num_led_gpio 
+04a1 20205f8d branch gpio_out_active 
+
+p_keyboard_long_press_timer:
+04a2 da604c9b arg mem_same_keyvalue_timer ,regc 
+04a3 da4004a5 arg p_keyboard_long_press_timerout ,regb 
+04a4 202031d6 branch timer_single_step_2b 
+
+p_keyboard_long_press_timerout:
+04a5 704c9801 jam 1 ,mem_same_keyvalue_timerout_flag 
+04a6 2020325c branch app_enter_hibernate 
+
+p_keyboard_commbination_delay_release_timer:
+04a7 da604d73 arg mem_keyboard_commbination_control_key_delay_release_timer ,regc 
+04a8 da400266 arg p_keyboard_commbination_key_null_set ,regb 
+04a9 202031cf branch timer_single_step 
+
+p_mouse_check_no_data_timeout_timer:
+04aa da604ac4 arg mem_mouse_no_data_timer ,regc 
+04ab da4004ad arg p_mouse_check_no_data_timeout ,regb 
+04ac 202031d6 branch timer_single_step_2b 
+
+p_mouse_check_no_data_timeout:
+04ad 6fe0c93f fetch 1 ,mem_device_flag 
+04ae c000043e beq mode_24g_device ,p_mouse_24g_hibernate_set 
+04af 20204236 branch mouse_disconnect 
+
+p_keyboard_motion:
+04b0 78547c00 disable user 
+04b1 704b9d00 jam 0 ,mem_customer_key 
+04b2 704b9e00 jam 0 ,mem_customer_data_trigger 
+04b3 704b9f00 jam 0 ,mem_customer_data_trigger_last 
+04b4 6fe0cd70 fetch 1 ,mem_keyboard_commbination_key_step 
+04b5 c000826d beq cammbination_key_press ,p_keyboard_commbination_key_press_process 
+04b6 c0010272 beq cammbination_key_hold ,p_keyboard_commbination_key_hold_process 
+04b7 c0018272 beq cammbination_key_complete ,p_keyboard_commbination_key_hold_process 
+04b8 c0020276 beq cammbination_key_wait_release ,p_keyboard_commbination_key_wait_release_process 
+04b9 c003027f beq cammbination_key_null ,p_keyboard_commbination_key_null_process 
+04ba 6fe0cca1 fetch 1 ,mem_keyboard_data_change_flag 
+04bb 203a04c9 branch p_keyboard_no_key_press ,blank 
+04bc 1fe0ffff increase -1 ,pdata 
+04bd 67e0cca1 store 1 ,mem_keyboard_data_change_flag 
+04be 204004d7 call p_keyboard_current_mult_update 
+04bf 704d5b0a jam 10 ,mem_keyboard_led_status_get_timer 
+04c0 2040445f call mouse_no_data_timer_init 
+04c1 6fe0cd70 fetch 1 ,mem_keyboard_commbination_key_step 
+04c2 c002827e beq cammbination_key_release ,p_keyboard_commbination_key_release_process 
+04c3 d8a04c01 arg mem_keyboard_tx_data ,contw 
+04c4 df20000a arg 10 ,loopcnt 
+04c5 20407c68 call clear_mem 
+04c6 204004da call p_keyboard_motion_data_check 
+04c7 704c0b00 jam 0 ,mem_keyboard_data_send_flag 
+04c8 20600000 rtn 
+
+p_keyboard_no_key_press:
+04c9 6fe0cd5a fetch 1 ,mem_keyboard_led_status_get 
+04ca 207a0000 rtn blank 
+04cb 6fe0cd58 fetch 1 ,mem_24g_repeat_send_flag 
+04cc 247a0000 nrtn blank 
+04cd 6848cd5c fetcht 1 ,mem_keyboard_led_status_get_timer_last 
+04ce 6fe0cd5b fetch 1 ,mem_keyboard_led_status_get_timer 
+04cf 98467c00 isub temp ,null 
+04d0 67e0cd5c store 1 ,mem_keyboard_led_status_get_timer_last 
+04d1 20628000 rtn zero 
+04d2 d8a04c01 arg mem_keyboard_tx_data ,contw 
+04d3 df20000a arg 10 ,loopcnt 
+04d4 20407c68 call clear_mem 
+04d5 20407d92 call enable_user 
+04d6 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_current_mult_update:
+04d7 70417703 jam 3 ,mem_lpm_mult 
+04d8 704ac10a jam 10 ,mem_mouse_current_mult_timer 
+04d9 20600000 rtn 
+
+p_keyboard_motion_data_check:
+04da 6fe0cd74 fetch 1 ,mem_keyboard_consumer_key_status 
+04db c0010567 beq keyboard_consumer_key_release ,p_keyboard_value_consumer_release 
+04dc d8c04ca7 arg mem_keyboard_keyvalue_buffer + 2 ,contr 
+04dd df200006 arg 6 ,loopcnt 
+
+p_keyboard_value_tpye_check:
+04de efe08006 ifetch 1 ,contr 
+04df 1fe67ce7 sub pdata ,hid_key_right_gui ,null 
+04e0 24210502 nbranch p_keyboard_value_tpye_consumer_set ,positive 
+
+p_keyboard_value_tpye_check_loop:
+04e1 c20004de loop p_keyboard_value_tpye_check 
+04e2 6fe0cc9e fetch 1 ,mem_keyboard_all_press_key_count 
+04e3 205a04f8 call p_keyboard_value_release_all_key ,blank 
+04e4 704c0100 jam hid_reportid_key_standard ,mem_keyboard_tx_data 
+04e5 6fe0cca7 fetch 1 ,mem_keyboard_keyvalue_buffer + 2 
+04e6 1fe67c7f sub pdata ,hid_key_fn ,null 
+04e7 202284fb branch p_keyboard_tx_data_skip_fn ,zero 
+04e8 d8c04ca5 arg mem_keyboard_keyvalue_buffer ,contr 
+04e9 d8a04c02 arg mem_keyboard_tx_data + 1 ,contw 
+04ea df200008 arg 8 ,loopcnt 
+
+p_keyboard_tx_data_store:
+04eb efe08006 ifetch 1 ,contr 
+04ec c03f8500 beq hid_key_fn ,p_keyboard_tx_data_clear_fn 
+
+p_keyboard_tx_data_store_loop:
+04ed e7e08005 istore 1 ,contw 
+04ee c20004eb loop p_keyboard_tx_data_store 
+
+p_keyboard_motion_data_check_next:
+04ef 20400572 call p_keyboard_device_data_tpye_check 
+04f0 6fe0cc0b fetch 1 ,mem_keyboard_data_send_flag 
+04f1 c000fd92 beq device_data_tpye_mouse ,enable_user 
+04f2 c00104f6 beq device_data_tpye_standard_keyboard ,p_device_send_keyboard_data 
+04f3 c00184f6 beq device_data_tpye_nonstarndard_keyboard ,p_device_send_keyboard_data 
+04f4 c00204f6 beq device_data_tpye_consumer ,p_device_send_keyboard_data 
+04f5 c00284f6 beq device_data_tpye_system_conctol ,p_device_send_keyboard_data 
+
+p_device_send_keyboard_data:
+04f6 20404095 call mouse_customerkey_press 
+04f7 20207d92 branch enable_user 
+
+p_keyboard_value_release_all_key:
+04f8 d8a04ca5 arg mem_keyboard_keyvalue_buffer ,contw 
+04f9 df200009 arg 9 ,loopcnt 
+04fa 20207c68 branch clear_mem 
+
+p_keyboard_tx_data_skip_fn:
+04fb 6fe14ca5 fetch 2 ,mem_keyboard_keyvalue_buffer 
+04fc 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+04fd 6fe34ca8 fetch 6 ,mem_keyboard_keyvalue_buffer + 3 
+04fe 67e34c04 store 6 ,mem_keyboard_tx_data + 3 
+04ff 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_tx_data_clear_fn:
+0500 58000000 setarg 0 
+0501 202004ed branch p_keyboard_tx_data_store_loop 
+
+p_keyboard_value_tpye_consumer_set:
+0502 704c0103 jam hid_reportid_consumer_key ,mem_keyboard_tx_data 
+0503 6848cc9e fetcht 1 ,mem_keyboard_all_press_key_count 
+0504 18467c00 sub temp ,hid_key_null ,null 
+0505 20228567 branch p_keyboard_value_consumer_all_key_release ,zero 
+0506 c074051e beq hid_key_multikey_media ,p_keyboard_value_media 
+0507 c0748521 beq hid_key_multikey_paly ,p_keyboard_value_play 
+0508 c0750524 beq hid_key_multikey_stop ,p_keyboard_value_stop 
+0509 c0758527 beq hid_key_multikey_pre_track ,p_keyboard_value_pre_track 
+050a c076052a beq hid_key_multikey_next_track ,p_keyboard_value_next_track 
+050b c076852d beq hid_key_multikey_vol_down ,p_keyboard_value_vol_down 
+050c c0770530 beq hid_key_multikey_vol_up ,p_keyboard_value_vol_up 
+050d c0778533 beq hid_key_multikey_mute ,p_keyboard_value_mute 
+050e c0780536 beq hid_key_my_computer ,p_keyboard_value_my_computer 
+050f c0788539 beq hid_key_mail ,p_keyboard_value_mail 
+0510 c079053c beq hid_key_calculator ,p_keyboard_value_calculator 
+0511 c079853f beq hid_key_light_down ,p_keyboard_value_light_down 
+0512 c07a0542 beq hid_key_light_up ,p_keyboard_value_light_up 
+0513 c07a8545 beq hid_key_ac_favorites ,p_keyboard_value_ac_favorites 
+0514 c07b0548 beq hid_key_ac_forward ,p_keyboard_value_ac_forward 
+0515 c07b854b beq hid_key_ac_back ,p_keyboard_value_ac_back 
+0516 c07c054e beq hid_key_ac_stop ,p_keyboard_value_ac_stop 
+0517 c07c8551 beq hid_key_ac_refresh ,p_keyboard_value_ac_refresh 
+0518 c07d0554 beq hid_key_ac_search ,p_keyboard_value_ac_search 
+0519 c07d8557 beq hid_key_ac_home ,p_keyboard_value_ac_home 
+051a c07e055c beq hid_key_ios_android_os_lock ,p_keyboard_value_os_lock 
+051b c07e855f beq hid_key_os_soft_kb ,p_keyboard_value_os_soft_kb 
+051c c07f856e beq hid_key_system_sleep ,p_keyboard_value_system_sleep 
+051d 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_media:
+051e 58000183 setarg 0x0183 
+051f 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0520 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_play:
+0521 580000cd setarg 0x00cd 
+0522 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0523 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_stop:
+0524 580000b7 setarg 0x00b7 
+0525 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0526 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_pre_track:
+0527 580000b6 setarg 0x00b6 
+0528 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0529 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_next_track:
+052a 580000b5 setarg 0x00b5 
+052b 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+052c 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_vol_down:
+052d 580000ea setarg 0x00ea 
+052e 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+052f 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_vol_up:
+0530 580000e9 setarg 0x00e9 
+0531 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0532 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_mute:
+0533 580000e2 setarg 0x00e2 
+0534 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0535 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_my_computer:
+0536 58000194 setarg 0x0194 
+0537 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0538 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_mail:
+0539 5800018a setarg 0x018a 
+053a 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+053b 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_calculator:
+053c 58000192 setarg 0x0192 
+053d 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+053e 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_light_down:
+053f 58000070 setarg 0x0070 
+0540 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0541 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_light_up:
+0542 5800006f setarg 0x006f 
+0543 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0544 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_ac_favorites:
+0545 5800022a setarg 0x022a 
+0546 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0547 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_ac_forward:
+0548 58000225 setarg 0x0225 
+0549 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+054a 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_ac_back:
+054b 58000224 setarg 0x0224 
+054c 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+054d 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_ac_stop:
+054e 58000226 setarg 0x0226 
+054f 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0550 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_ac_refresh:
+0551 58000227 setarg 0x0227 
+0552 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0553 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_ac_search:
+0554 58000221 setarg 0x0221 
+0555 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0556 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_ac_home:
+0557 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+0558 c1000000 rtneq system_os_windows 
+0559 58000223 setarg 0x0223 
+055a 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+055b 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_os_lock:
+055c 58000030 setarg 0x0030 
+055d 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+055e 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_os_soft_kb:
+055f 6fe0cfa9 fetch 1 ,mem_kb_computer_system 
+0560 c0008564 beq system_os_andriod ,p_keyboard_value_os_soft_kb_andriod 
+0561 580001ae setarg 0x01ae 
+0562 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0563 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_os_soft_kb_andriod:
+0564 58000307 setarg 0x0307 
+0565 67e14c02 store 2 ,mem_keyboard_tx_data + 1 
+0566 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_consumer_all_key_release:
+
+p_keyboard_value_consumer_release:
+0567 704ca102 jam 2 ,mem_keyboard_data_change_flag 
+0568 6fe0cc9e fetch 1 ,mem_keyboard_all_press_key_count 
+0569 205a04f8 call p_keyboard_value_release_all_key ,blank 
+056a 704d7400 jam keyboard_consumer_key_standby ,mem_keyboard_consumer_key_status 
+056b 58000003 setarg 0x03 
+056c 67e1cc01 store 3 ,mem_keyboard_tx_data 
+056d 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_value_system_sleep:
+056e 704c0102 jam hid_reportid_system_ctrl ,mem_keyboard_tx_data 
+056f 58000002 setarg 0x02 
+0570 67e0cc02 store 1 ,mem_keyboard_tx_data + 1 
+0571 202004ef branch p_keyboard_motion_data_check_next 
+
+p_keyboard_device_data_tpye_check:
+0572 6fe0c93f fetch 1 ,mem_device_flag 
+0573 c0800579 bne mode_24g_device ,p_keyboard_device_data_tpye_check_next 
+0574 704d5800 jam 0 ,mem_24g_repeat_send_flag 
+0575 6fe14c01 fetch 2 ,mem_keyboard_tx_data 
+0576 245a042f ncall p_keyboard_set_repeat_send_flag ,blank 
+0577 6fe34c04 fetch 6 ,mem_keyboard_tx_data + 3 
+0578 245a042f ncall p_keyboard_set_repeat_send_flag ,blank 
+
+p_keyboard_device_data_tpye_check_next:
+0579 6fe0cc01 fetch 1 ,mem_keyboard_tx_data 
+057a c0000584 beq hid_reportid_key_standard ,p_standard_keyboard_data_send 
+057b c000857f beq hid_reportid_mouse ,p_mouse_data_send 
+057c c001858d beq hid_reportid_consumer_key ,p_consumer_data_send 
+057d c0010595 beq hid_reportid_system_ctrl ,p_system_control_data_send 
+057e 20600000 rtn 
+
+p_mouse_data_send:
+057f 704c0b01 jam device_data_tpye_mouse ,mem_keyboard_data_send_flag 
+0580 d8c04c01 arg mem_keyboard_tx_data ,contr 
+0581 d8a048d8 arg mem_mouse_key ,contw 
+0582 df200007 arg 7 ,loopcnt 
+0583 20207ca1 branch memcpy 
+
+p_standard_keyboard_data_send:
+0584 704c0b02 jam device_data_tpye_standard_keyboard ,mem_keyboard_data_send_flag 
+0585 2040059d call p_clear_key_data 
+0586 20400424 call p_keyboard_24g_led_get_status_check 
+0587 6fe0cd5a fetch 1 ,mem_keyboard_led_status_get 
+0588 67e0cc03 store 1 ,mem_keyboard_tx_data + 2 
+0589 d8c04c01 arg mem_keyboard_tx_data ,contr 
+058a d8a04bde arg mem_customer_key_press ,contw 
+058b df200009 arg 9 ,loopcnt 
+058c 20207ca1 branch memcpy 
+
+p_consumer_data_send:
+058d 704c0b04 jam device_data_tpye_consumer ,mem_keyboard_data_send_flag 
+058e 2040059d call p_clear_key_data 
+058f 58000003 setarg 0x03 
+0590 20404621 call mouse_customer_media_key_set 
+0591 d8c04c02 arg mem_keyboard_tx_data + 1 ,contr 
+0592 d8a04bdf arg mem_customer_key_press + 1 ,contw 
+0593 df200002 arg 2 ,loopcnt 
+0594 20207ca1 branch memcpy 
+
+p_system_control_data_send:
+0595 704c0b05 jam device_data_tpye_system_conctol ,mem_keyboard_data_send_flag 
+0596 2040059d call p_clear_key_data 
+0597 58000002 setarg 0x02 
+0598 67e44bde store 8 ,mem_customer_key_press 
+0599 67e44be7 store 8 ,mem_customer_key_release 
+059a 6fe0cc02 fetch 1 ,mem_keyboard_tx_data + 1 
+059b 67e0cbdf store 1 ,mem_customer_key_press + 1 
+059c 20600000 rtn 
+
+p_clear_key_data:
+059d df200012 arg 18 ,loopcnt 
+059e d8a04bde arg mem_customer_key_press ,contw 
+059f 20207c68 branch clear_mem 
+              org 0x800
+
+start:
+0800 204013c3 call lpmstate 
+
+soft_reset:
+0801 44804000 bpatch patch00_0 ,mem_patch00 
+0802 20800000 clear_stack 
+0803 20403146 call app_param_init 
+0804 20401246 call initialize_radio 
+0805 20405c85 call iic_init_360khz 
+0806 20401384 call init_param 
+0807 20404ce4 call l2cap_init 
+0808 4480c000 bpatch patch00_1 ,mem_patch00 
+0809 204061c5 call rfcomm_init 
+080a 2040529e call init_lmp 
+080b 204076ea call ui_init 
+080c 20403130 call app_init 
+080d 44814000 bpatch patch00_2 ,mem_patch00 
+080e 2055b13d call app_lpm_init ,wake 
+080f 20406dda call publickey_init 
+0810 20406dfc call sp_wait_pubkey_calc_done 
+0811 20559465 call lpm_recover_clk ,wake 
+
+main_loop:
+0812 4481c000 bpatch patch00_3 ,mem_patch00 
+0813 20406fa2 call sp_calc_sequence 
+0814 204074cd call sp_calc_sequence_256 
+0815 20406ddd call sp_calc_sequence_256_check 
+0816 20401b20 call le_advertising_dispatch 
+0817 20400838 call idle_dispatch 
+0818 2040314e call app_process_idle 
+0819 44824000 bpatch patch00_4 ,mem_patch00 
+081a 20400890 call inquiry_dispatch 
+081b 20400b05 call inquiry_scan_dispatch 
+081c 20400b77 call page_scan_dispatch 
+081d 20400821 call connection_dispatch 
+081e 2040215f call g24_dispatch 
+081f 2040148d call lpm_dispatch 
+0820 20200812 branch main_loop 
+
+connection_dispatch:
+0821 20400826 call connection_incontext 
+0822 c6848000 rtnmark0 mark_context 
+0823 793f8009 set0 mark_context ,mark 
+0824 20400a30 call context_save 
+0825 2020163f branch le_disable 
+
+connection_incontext:
+0826 4482c000 bpatch patch00_5 ,mem_patch00 
+0827 20400a6b call context_search_insniff 
+0828 2422882f nbranch connection_nosniff ,zero 
+0829 20400a17 call context_load 
+082a 1a208c01 add rega ,coffset_mode ,contr 
+082b efe08006 ifetch 1 ,contr 
+082c c28015ac bbit1 mode_le ,le_conn_dispatch 
+082d c2808969 bbit1 mode_master ,master_dispatch 
+082e 20200bdc branch slave_dispatch 
+
+connection_nosniff:
+082f 20400a38 call context_get_next 
+0830 1f227c00 copy loopcnt ,null 
+0831 20628000 rtn zero 
+0832 20400a17 call context_load 
+0833 6fe08030 fetch 1 ,mem_state 
+0834 c28188d3 bbit1 state_inpage ,master_page 
+0835 6fe08031 fetch 1 ,mem_mode 
+0836 c2808969 bbit1 mode_master ,master_dispatch 
+0837 20200bdc branch slave_dispatch 
+
+idle_dispatch:
+0838 6fe0c1de fetch 1 ,mem_hci_cmd 
+0839 207a0000 rtn blank 
+083a c0008848 beq hci_cmd_inquiry ,idle_inquiry 
+083b c001084d beq hci_cmd_inquiry_cancel ,idle_inquiry_cancel 
+083c c0018850 beq hci_cmd_remote_name_req ,idle_remote_name_req 
+083d c0028855 beq hci_cmd_create_conn ,idle_create_conn 
+083e c00d8845 beq hci_cmd_le_create_conn ,idle_le_create_conn 
+083f 20400a64 call context_search_conn_handle 
+0840 20628000 rtn zero 
+0841 20400a67 call context_search_plap 
+0842 20628000 rtn zero 
+
+idle_exit:
+0843 7041de00 jam 0 ,mem_hci_cmd 
+0844 20600000 rtn 
+
+idle_le_create_conn:
+0845 7002e01b jam hci_cmd_le_create_conn ,mem_cmd_le_create_conn 
+0846 7041de00 jam 0 ,mem_hci_cmd 
+0847 20600000 rtn 
+
+idle_inquiry:
+0848 7920001c set1 mark_inquiry_on ,mark 
+0849 793f801e set0 mark_inquiry_trainb ,mark 
+084a 70008cff jam param_ninquiry ,mem_ninqy_index 
+084b 70008a1f jam 31 ,mem_nfreq_index_inq 
+084c 20200843 branch idle_exit 
+
+idle_inquiry_cancel:
+084d 793f801c set0 mark_inquiry_on ,mark 
+084e 18003600 force 0 ,stop_watch 
+084f 20200843 branch idle_exit 
+
+idle_remote_name_req:
+0850 20400a67 call context_search_plap 
+0851 20628000 rtn zero 
+0852 18000401 force lmp_name_req ,temp 
+0853 7000bd05 jam 5 ,mem_nameres_cnt 
+0854 2020085c branch idle_start_page 
+
+idle_create_conn:
+0855 44834000 bpatch patch00_6 ,mem_patch00 
+
+idle_create_conn_device:
+0856 6fe341e0 fetch 6 ,mem_hci_plap 
+0857 20000001 nop 1 
+0858 70479201 jam reconnect_hid ,memui_reconnect_mode 
+0859 70005503 jam conn_sm_wait_features_res ,mem_conn_sm 
+085a 2020085b branch idle_create_conn_cont 
+
+idle_create_conn_cont:
+085b 18000425 force lmp_version_req ,temp 
+
+idle_start_page:
+085c 4483c000 bpatch patch00_7 ,mem_patch00 
+085d 6fe080a7 fetch 1 ,mem_page_mode 
+085e 203a0862 branch idle_page_mode_r0 ,blank 
+085f 1fe9fe00 lshift3 pdata ,pdata 
+0860 1ff27e00 lshift4 pdata ,pdata 
+0861 1fe0ffff increase -1 ,pdata 
+
+idle_page_mode_r0:
+0862 67e0c0ae store 1 ,mem_npage 
+0863 67e080a6 store 1 ,mem_npage_index 
+0864 70008b1f jam 31 ,mem_nfreq_index_page 
+0865 793f800c set0 mark_page_trainb ,mark 
+0866 20400a48 call context_new 
+0867 24228884 nbranch idle_page_fail ,zero 
+0868 2040135d call get_free_amaddr 
+0869 67e08077 store 1 ,mem_amaddr 
+086a 6048807c storet 1 ,mem_lmo_opcode2 
+086b 6fe341e0 fetch 6 ,mem_hci_plap 
+086c 67e30040 store 6 ,mem_plap 
+086d 44844001 bpatch patch01_0 ,mem_patch01 
+086e 20407cb5 call timer_reinit 
+086f 6848807c fetcht 1 ,mem_lmo_opcode2 
+0870 18007e00 force 0 ,pdata 
+0871 2841fe01 compare lmp_name_req ,temp ,0xff 
+0872 7d20fe05 nsetflag true ,state_init_seq ,pdata 
+0873 79207e03 set1 state_inpage ,pdata 
+0874 67e08030 store 1 ,mem_state 
+0875 70095b03 jam bt_evt_reconn_started ,mem_fifo_temp 
+0876 204077a7 call ui_ipc_send_event 
+0877 18007e00 force 0 ,pdata 
+0878 7920fe04 setflag true ,smap_name_req ,pdata 
+0879 67e0804c store 1 ,mem_state_map 
+087a 58000000 setarg 0 
+087b 79207e01 set1 mode_master ,pdata 
+087c 67e08031 store 1 ,mem_mode 
+087d 7834fc00 enable master 
+087e 20400a30 call context_save 
+087f 7854fc00 disable master 
+0880 18000e03 force page_length_timer ,queue 
+0881 6fe140c1 fetch 2 ,mem_page_to 
+0882 20407ca8 call timer_init 
+0883 20200843 branch idle_exit 
+
+idle_page_fail:
+0884 4484c001 bpatch patch01_1 ,mem_patch01 
+0885 6fe341e0 fetch 6 ,mem_hci_plap 
+0886 67e30040 store 6 ,mem_plap 
+0887 2841fe01 compare lmp_name_req ,temp ,0xff 
+0888 2020888a branch idle_name_fail ,true 
+0889 20200843 branch idle_exit 
+
+idle_name_fail:
+088a d8a00a01 arg mem_tmp_buffer ,contw 
+088b df200008 arg 8 ,loopcnt 
+088c 20407c59 call memset0 
+088d 70095b04 jam bt_evt_reconn_failed ,mem_fifo_temp 
+088e 204077a7 call ui_ipc_send_event 
+088f 20200843 branch idle_exit 
+
+inquiry_dispatch:
+0890 c68e0000 rtnmark0 mark_inquiry_on 
+0891 18000e01 force inquiry_length_timer ,queue 
+0892 20407cb6 call timer_check 
+0893 7d3a001c nsetflag blank ,mark_inquiry_on ,mark 
+0894 243a0896 nbranch inquiry_start ,blank 
+0895 20600000 rtn 
+
+inquiry_start:
+0896 44854001 bpatch patch01_2 ,mem_patch01 
+0897 684940c3 fetcht 2 ,mem_inq_window 
+0898 18000e04 force 4 ,queue 
+0899 20400f40 call sniff_check_window 
+089a 20740000 rtn user 
+089b 204010f6 call afh_clear 
+089c 18004800 force 0 ,freq_mode 
+
+inquiry_restart:
+089d 20618000 rtn timeout 
+089e 793f800b set0 mark_fhs_already_good ,mark 
+089f 793f8000 set0 mark_fhs_eir ,mark 
+
+inquiry_rx_restart:
+08a0 1c40c201 add clkn_bt ,1 ,bt_clk 
+08a1 280ffe1e isolate1 mark_inquiry_trainb ,mark 
+08a2 7920c802 setflag true ,2 ,freq_mode 
+08a3 2c200400 compare 0x00 ,bt_clk ,0x02 
+08a4 242088bf nbranch inquiry_receive ,true 
+
+inquiry_transmit:
+08a5 4485c001 bpatch patch01_3 ,mem_patch01 
+08a6 6fe08012 fetch 1 ,mem_inquiry_transmit 
+08a7 1fe0fe01 increase 1 ,pdata 
+08a8 67e08012 store 1 ,mem_inquiry_transmit 
+08a9 2040112a call fetch_giac 
+08aa 20401124 call tx_radio_freq 
+08ab 20401144 call fetch_diac 
+08ac 2040133e call start_transmitter 
+08ad 20401343 call start_tx_native 
+08ae 20401351 call send_access_word 
+08af 20400e7c call end_of_packet 
+08b0 204008b2 call inquiry_check_train 
+08b1 2020089d branch inquiry_restart 
+
+inquiry_check_train:
+08b2 44864001 bpatch patch01_4 ,mem_patch01 
+08b3 6fe0808a fetch 1 ,mem_nfreq_index_inq 
+08b4 1fe0ffff increase -1 ,pdata 
+08b5 67e0808a store 1 ,mem_nfreq_index_inq 
+08b6 20610000 rtn positive 
+08b7 70008a1f jam 31 ,mem_nfreq_index_inq 
+08b8 6fe0808c fetch 1 ,mem_ninqy_index 
+08b9 1fe0ffff increase -1 ,pdata 
+08ba 67e0808c store 1 ,mem_ninqy_index 
+08bb 20610000 rtn positive 
+08bc 7940001e setflip mark_inquiry_trainb ,mark 
+08bd 70008cff jam param_ninquiry ,mem_ninqy_index 
+08be 20600000 rtn 
+
+inquiry_receive:
+08bf 4486c001 bpatch patch01_5 ,mem_patch01 
+08c0 2040112a call fetch_giac 
+08c1 2040111e call rx_radio_freq 
+08c2 20401144 call fetch_diac 
+08c3 20401348 call start_rx_native 
+08c4 204012d3 call start_receiver 
+08c5 204012f9 call wait_access_clkn_rt 
+08c6 202c08c9 branch inquiry_sync ,sync 
+08c7 204008b2 call inquiry_check_train 
+08c8 202008a0 branch inquiry_rx_restart 
+
+inquiry_sync:
+08c9 44874001 bpatch patch01_6 ,mem_patch01 
+08ca 2040127d call save_rssi 
+08cb 20401359 call scan_mode_whiten 
+08cc 20400d43 call receive_packet_whitened 
+08cd 793f8001 set0 mark_rxbuf_inuse ,mark 
+08ce c6858000 rtnmark0 mark_fhs_already_good 
+
+inquiry_receive_rtn:
+
+inquiry_receive_eir_rtn:
+08cf 6fe08013 fetch 1 ,mem_inquiry_rcv 
+08d0 1fe0fe01 increase 1 ,pdata 
+08d1 67e08013 store 1 ,mem_inquiry_rcv 
+08d2 20600000 rtn 
+
+master_page:
+08d3 4487c001 bpatch patch01_7 ,mem_patch01 
+08d4 7834fc00 enable master 
+08d5 78387c00 enable clknt 
+08d6 6fe140bd fetch 2 ,mem_page_interval 
+08d7 203a08db branch master_page_no_interval ,blank 
+08d8 18000e08 force page_interval_timer ,queue 
+08d9 20407cb6 call timer_check 
+08da 247a0000 nrtn blank 
+
+master_page_no_interval:
+08db 44884002 bpatch patch02_0 ,mem_patch02 
+08dc 684940bf fetcht 2 ,mem_page_window 
+08dd 18000e28 force 40 ,queue 
+08de 20400f40 call sniff_check_window 
+08df 20340914 branch page_exit ,user 
+08e0 18000e03 force page_length_timer ,queue 
+08e1 20407cb6 call timer_check 
+08e2 243a08f0 nbranch page_start ,blank 
+08e3 6fe0804c fetch 1 ,mem_state_map 
+08e4 c28208e6 bbit1 smap_name_req ,master_npage_timeout 
+08e5 202008e9 branch master_page_timeout 
+
+master_npage_timeout:
+08e6 d8a00a01 arg mem_tmp_buffer ,contw 
+08e7 df200008 arg 8 ,loopcnt 
+08e8 20407c59 call memset0 
+
+master_page_timeout:
+08e9 4488c002 bpatch patch02_1 ,mem_patch02 
+08ea 70003000 jam 0 ,mem_state 
+08eb 2040529f call init_lmp_work 
+08ec 70479200 jam 0 ,memui_reconnect_mode 
+08ed 70095b13 jam bt_evt_reconn_page_timeout ,mem_fifo_temp 
+08ee 204077a7 call ui_ipc_send_event 
+08ef 20200914 branch page_exit 
+
+page_start:
+08f0 44894002 bpatch patch02_2 ,mem_patch02 
+08f1 18001600 force 0 ,timeup 
+08f2 34730200 until clkn_rt ,meet 
+08f3 6fe080a8 fetch 1 ,mem_page_clk 
+08f4 1fe0ffff increase -1 ,pdata 
+08f5 9c42fe00 ixor clkn_bt ,pdata 
+08f6 2fe00600 compare 0 ,pdata ,3 
+08f7 242088f0 nbranch page_start ,true 
+08f8 18827e00 deposit am_addr 
+08f9 67e080e5 store 1 ,mem_fhs_am_addr 
+08fa 18004c00 force 0 ,n_tx_slot 
+08fb 18004800 force 0 ,freq_mode 
+
+page_restart:
+08fc 4489c002 bpatch patch02_3 ,mem_patch02 
+08fd 20218914 branch page_exit ,timeout 
+08fe 2040112e call fetch_page_bt_adr 
+08ff 69610157 fetchr timeup ,2 ,mem_param_rf_setup 
+0900 34730200 until clkn_rt ,meet 
+
+page_rx_restart:
+0901 448a4002 bpatch patch02_4 ,mem_patch02 
+0902 6fe200a8 fetch 4 ,mem_page_clk 
+0903 98004200 iforce bt_clk 
+0904 1fe0fe01 increase 1 ,pdata 
+0905 67e200a8 store 4 ,mem_page_clk 
+0906 280ffe0c isolate1 mark_page_trainb ,mark 
+0907 7920c802 setflag true ,2 ,freq_mode 
+0908 2c200400 compare 0x00 ,bt_clk ,0x02 
+0909 24208928 nbranch page_receive ,true 
+090a 6fe0800c fetch 1 ,mem_page_transmit 
+090b 1fe0fe01 increase 1 ,pdata 
+090c 67e0800c store 1 ,mem_page_transmit 
+090d 20401124 call tx_radio_freq 
+090e 2040133e call start_transmitter 
+090f 20401343 call start_tx_native 
+0910 20401351 call send_access_word 
+0911 20400e7c call end_of_packet 
+0912 2040091a call page_check_train 
+0913 202008fc branch page_restart 
+
+page_exit:
+0914 448ac002 bpatch patch02_5 ,mem_patch02 
+0915 7854fc00 disable master 
+0916 6fe140bd fetch 2 ,mem_page_interval 
+0917 207a0000 rtn blank 
+0918 18000e08 force page_interval_timer ,queue 
+0919 20207ca8 branch timer_init 
+
+page_check_train:
+091a 448b4002 bpatch patch02_6 ,mem_patch02 
+091b 6fe0808b fetch 1 ,mem_nfreq_index_page 
+091c 1fe0ffff increase -1 ,pdata 
+091d 67e0808b store 1 ,mem_nfreq_index_page 
+091e 20610000 rtn positive 
+091f 70008b1f jam 31 ,mem_nfreq_index_page 
+0920 6fe080a6 fetch 1 ,mem_npage_index 
+0921 1fe0ffff increase -1 ,pdata 
+0922 67e080a6 store 1 ,mem_npage_index 
+0923 20610000 rtn positive 
+0924 7940000c setflip mark_page_trainb ,mark 
+0925 6fe0c0ae fetch 1 ,mem_npage 
+0926 67e080a6 store 1 ,mem_npage_index 
+0927 20600000 rtn 
+
+page_receive:
+0928 448bc002 bpatch patch02_7 ,mem_patch02 
+0929 2040111e call rx_radio_freq 
+092a 20401348 call start_rx_native 
+092b 204012d3 call start_receiver 
+092c 204012f9 call wait_access_clkn_rt 
+092d 202c0930 branch page_sync ,sync 
+092e 2040091a call page_check_train 
+092f 20200901 branch page_rx_restart 
+
+page_sync:
+0930 20400e7c call end_of_packet 
+0931 6fe0800d fetch 1 ,mem_page_rcv 
+0932 1fe0fe01 increase 1 ,pdata 
+0933 67e0800d store 1 ,mem_page_rcv 
+0934 18003600 force 0 ,stop_watch 
+0935 6fe200a8 fetch 4 ,mem_page_clk 
+
+page_send_fhs:
+0936 448c4003 bpatch patch03_0 ,mem_patch03 
+0937 2040133c call rf_setup_time_master_slot 
+0938 2040112e call fetch_page_bt_adr 
+0939 1cc0cc01 increase 1 ,n_tx_slot 
+
+page_send_fhs_continue:
+093a 1c2143fd and_into 0x1fd ,bt_clk 
+093b 1c8149fc and_into 0x1fc ,freq_mode 
+093c 20401124 call tx_radio_freq 
+093d 2040133e call start_transmitter 
+093e 20401343 call start_tx_native 
+093f 20401351 call send_access_word 
+0940 1c427e00 deposit clkn_bt 
+0941 67e200b0 store 4 ,mem_clkn_bt 
+0942 18000800 force 0 ,am_addr 
+0943 18000202 force type_fhs ,type 
+0944 20401359 call scan_mode_whiten 
+0945 20400f8a call transmit_packet_whitened 
+
+page_wait_fhs_reply:
+0946 448cc003 bpatch patch03_1 ,mem_patch03 
+0947 2040133a call rf_setup_time_slave_slot 
+0948 1c21c202 or_into 0x02 ,bt_clk 
+0949 1c8149fc and_into 0x1fc ,freq_mode 
+094a 2040111e call rx_radio_freq 
+094b 20401348 call start_rx_native 
+094c 204012d3 call start_receiver 
+094d 204012f9 call wait_access_clkn_rt 
+094e 204c0e7c call end_of_packet ,sync 
+094f 202c0955 branch page_wait_fhs_reply_ok ,sync 
+0950 6fe08010 fetch 1 ,mem_fhs_wait_counter 
+0951 203a08fc branch page_restart ,blank 
+0952 1fe0ffff increase -1 ,pdata 
+0953 67e08010 store 1 ,mem_fhs_wait_counter 
+0954 20200936 branch page_send_fhs 
+
+page_wait_fhs_reply_ok:
+0955 448d4003 bpatch patch03_2 ,mem_patch03 
+0956 6fe0800e fetch 1 ,mem_page_rcv_fhs 
+0957 1fe0fe01 increase 1 ,pdata 
+0958 67e0800e store 1 ,mem_page_rcv_fhs 
+0959 20400c42 call prepare_newconn 
+
+master_newconn_loop:
+095a 79200033 set1 mark_first_packet ,mark 
+095b 20400aff call master_newconn_once 
+095c 202c0961 branch newconn_poll_responded ,sync 
+095d 793f8033 set0 mark_first_packet ,mark 
+095e 20400c62 call new_conn_timeout 
+095f 243a095a nbranch master_newconn_loop ,blank 
+0960 202008fc branch page_restart 
+
+newconn_poll_responded:
+0961 448dc003 bpatch patch03_3 ,mem_patch03 
+0962 793f8033 set0 mark_first_packet ,mark 
+0963 6fe08030 fetch 1 ,mem_state 
+0964 793ffe03 set0 state_inpage ,pdata 
+0965 67e08030 store 1 ,mem_state 
+0966 20400c4d call newconn_init 
+0967 7854fc00 disable master 
+0968 20600000 rtn 
+
+master_dispatch:
+0969 448e4003 bpatch patch03_4 ,mem_patch03 
+096a 7834fc00 enable master 
+096b 78387c00 enable clknt 
+096c 204009e3 call role_switch_master 
+096d 20740000 rtn user 
+096e 2040133c call rf_setup_time_master_slot 
+096f 1c40c201 add clkn_bt ,1 ,bt_clk 
+0970 20401134 call fetch_self_bt_adr 
+0971 18004803 force 0x03 ,freq_mode 
+0972 20406483 call scheduler_tx_l2cap_pkt 
+0973 20400c96 call prepare_tx 
+0974 20401124 call tx_radio_freq 
+0975 2040133e call start_transmitter 
+0976 20401343 call start_tx_native 
+0977 20401351 call send_access_word 
+0978 20400f86 call transmit_packet 
+
+master_loop:
+0979 448ec003 bpatch patch03_5 ,mem_patch03 
+097a 204052b1 call parse_lmp 
+097b 20400af1 call master_conn_recv_packet 
+097c 24368982 nbranch master_notmatch ,match 
+097d 20401376 call supervision_flush 
+097e 20400f4c call parse_l2cap 
+097f 6fe0800f fetch 1 ,mem_master_rcvcnt 
+0980 1fe0fe01 increase 1 ,pdata 
+0981 67e0800f store 1 ,mem_master_rcvcnt 
+
+master_notmatch:
+0982 448f4003 bpatch patch03_6 ,mem_patch03 
+0983 2040646b call scheduler_process 
+0984 2040098d call check_master_disconnect 
+0985 24748000 nrtn master 
+0986 20400f1c call check_attempt 
+0987 243a098a nbranch master_attempt ,blank 
+
+master_exit:
+0988 7854fc00 disable master 
+0989 20600000 rtn 
+
+master_attempt:
+098a 20400c96 call prepare_tx 
+098b 20400ae7 call master_conn_send_packet 
+098c 20200979 branch master_loop 
+
+check_master_disconnect:
+098d 20368990 branch check_master_match ,match 
+098e 2040136d call supervision_update 
+098f 2021099e branch master_disconnect ,positive 
+
+check_master_match:
+0990 204009a9 call check_disconnect_timeout 
+0991 2434099e nbranch master_disconnect ,user 
+0992 6fe0804c fetch 1 ,mem_state_map 
+0993 c4020000 rtnbit0 smap_name_req 
+0994 c3818000 rtnbit1 smap_name_res 
+0995 6fe0804b fetch 1 ,mem_op 
+0996 c3818000 rtnbit1 op_disconn 
+0997 204009b0 call conn_timer_expired 
+0998 247a0000 nrtn blank 
+0999 6fe080bd fetch 1 ,mem_nameres_cnt 
+099a 1fe0ffff increase -1 ,pdata 
+099b 67e080bd store 1 ,mem_nameres_cnt 
+099c 247a0000 nrtn blank 
+099d 20205614 branch lmp_disconnect 
+
+master_disconnect:
+099e 448fc003 bpatch patch03_7 ,mem_patch03 
+099f 20400c6a call quit_connection 
+09a0 7854fc00 disable master 
+09a1 6fe0804c fetch 1 ,mem_state_map 
+09a2 c28209a4 bbit1 smap_name_req ,master_name_disconnect 
+09a3 20600000 rtn 
+
+master_name_disconnect:
+09a4 6fe0804c fetch 1 ,mem_state_map 
+09a5 c3818000 rtnbit1 smap_name_res 
+
+master_name_error:
+09a6 d8a00a01 arg mem_tmp_buffer ,contw 
+09a7 df200008 arg 8 ,loopcnt 
+09a8 20207c59 branch memset0 
+
+check_disconnect_timeout:
+09a9 44904004 bpatch patch04_0 ,mem_patch04 
+09aa 78347c00 enable user 
+09ab 6fe0804b fetch 1 ,mem_op 
+09ac c4018000 rtnbit0 op_disconn 
+09ad 204009b0 call conn_timer_expired 
+09ae 247a0000 nrtn blank 
+09af 20207d94 branch disable_user 
+
+conn_timer_expired:
+09b0 6fe08072 fetch 1 ,mem_conn_timer 
+09b1 1fe0ffff increase -1 ,pdata 
+09b2 67e08072 store 1 ,mem_conn_timer 
+09b3 20600000 rtn 
+
+linkkey_ready:
+09b4 4490c004 bpatch patch04_1 ,mem_patch04 
+09b5 6fe08030 fetch 1 ,mem_state 
+09b6 c28389bd bbit1 state_linkkey ,linkkey_set 
+09b7 6fe08877 fetch 1 ,mem_pairing_auth 
+09b8 203a09bd branch linkkey_set ,blank 
+09b9 70087700 jam defalt_pairing_auth ,mem_pairing_auth 
+09ba 70095b18 jam bt_evt_linkkey_generate ,mem_fifo_temp 
+09bb 204077a7 call ui_ipc_send_event 
+09bc 202009bd branch linkkey_set 
+
+linkkey_set:
+09bd 44914004 bpatch patch04_2 ,mem_patch04 
+09be 20400a61 call context_traverse_linkkey 
+09bf 6fe08030 fetch 1 ,mem_state 
+09c0 79207e07 set1 state_linkkey ,pdata 
+09c1 67e08030 store 1 ,mem_state 
+09c2 7041cd01 jam 1 ,mem_link_key_exists 
+09c3 6fe08055 fetch 1 ,mem_conn_sm 
+09c4 c08b09c5 bne conn_sm_pairing ,linkkey_set_continue 
+
+linkkey_set_continue:
+09c5 20600000 rtn 
+
+generate_linkkey_continue:
+09c6 70087701 jam pairing_auth ,mem_pairing_auth 
+
+clear_linkstate:
+09c7 6fe08030 fetch 1 ,mem_state 
+09c8 793ffe07 set0 state_linkkey ,pdata 
+09c9 67e08030 store 1 ,mem_state 
+09ca 20600000 rtn 
+
+role_switch_check:
+09cb 4491c004 bpatch patch04_3 ,mem_patch04 
+09cc 78547c00 disable user 
+09cd 6fe10032 fetch 2 ,mem_tsniff 
+09ce d840ffff arg 0xffff ,temp 
+09cf 98467c00 isub temp ,null 
+09d0 24628000 nrtn zero 
+09d1 6fe20034 fetch 4 ,mem_sniff_anchor 
+09d2 203809d5 branch role_switch_clkn ,clknt 
+09d3 9d067e00 isub clke_bt ,pdata 
+09d4 202009d6 branch role_switch_clke 
+
+role_switch_clkn:
+09d5 9c467e00 isub clkn_bt ,pdata 
+
+role_switch_clke:
+09d6 1fe67c04 sub pdata ,4 ,null 
+09d7 24610000 nrtn positive 
+09d8 18007e00 force 0 ,pdata 
+09d9 67e10032 store 2 ,mem_tsniff 
+09da 20207d92 branch enable_user 
+
+role_switch_prepare:
+09db 1fe20400 copy pdata ,temp 
+09dc 604a0034 storet 4 ,mem_sniff_anchor 
+
+role_switch_prepare0:
+09dd 44924004 bpatch patch04_4 ,mem_patch04 
+09de 70464901 jam switch_flag_accept ,mem_switch_flag 
+09df 5800ffff setarg 0xffff 
+09e0 67e10032 store 2 ,mem_tsniff 
+09e1 70007301 jam 1 ,mem_sniff_attempt 
+09e2 20600000 rtn 
+
+role_switch_master:
+09e3 4492c004 bpatch patch04_5 ,mem_patch04 
+09e4 204009cb call role_switch_check 
+09e5 24740000 nrtn user 
+09e6 78547c00 disable user 
+09e7 70001120 jam param_newconnto ,mem_newconnto_counter 
+09e8 793f800b set0 mark_fhs_already_good ,mark 
+09e9 793f8031 set0 mark_role_switch_receive_fhs ,mark 
+
+roles_waitfhs_loop:
+09ea 2040133c call rf_setup_time_master_slot 
+09eb 20400af3 call master_recv_packet 
+09ec c50589f8 bmark1 mark_fhs_already_good ,roles_replyto_fhs 
+09ed 20400c62 call new_conn_timeout 
+09ee 243a09ea nbranch roles_waitfhs_loop ,blank 
+09ef c5188a02 bmark1 mark_role_switch_receive_fhs ,roles_replyto_fhs_rcvd 
+
+role_switch_fail_master:
+09f0 44934004 bpatch patch04_6 ,mem_patch04 
+09f1 78547c00 disable user 
+09f2 1c427e00 deposit clkn_bt 
+09f3 67e240d1 store 4 ,mem_next_btclk 
+09f4 78387c00 enable clknt 
+09f5 7834fc00 enable master 
+09f6 70095b2a jam bt_evt_switch_fail_master ,mem_fifo_temp 
+09f7 202077a7 branch ui_ipc_send_event 
+
+roles_replyto_fhs:
+09f8 4493c004 bpatch patch04_7 ,mem_patch04 
+09f9 2040133a call rf_setup_time_slave_slot 
+09fa d8200010 arg type_id ,type 
+09fb 20400ae9 call master_send_packet 
+09fc 79200031 set1 mark_role_switch_receive_fhs ,mark 
+09fd 793f800b set0 mark_fhs_already_good ,mark 
+09fe 6fe08077 fetch 1 ,mem_amaddr 
+09ff 98000800 iforce am_addr 
+0a00 70001102 jam 2 ,mem_newconnto_counter 
+0a01 202009ea branch roles_waitfhs_loop 
+
+roles_replyto_fhs_rcvd:
+0a02 6fe200b4 fetch 4 ,mem_clke_bt 
+0a03 1fe0fe08 pincrease 8 
+0a04 67e200b4 store 4 ,mem_clke_bt 
+0a05 78587c00 disable clknt 
+0a06 7854fc00 disable master 
+0a07 20401035 call apply_switch_clke 
+0a08 20400c42 call prepare_newconn 
+
+roles_newconns_loop:
+0a09 44944005 bpatch patch05_0 ,mem_patch05 
+0a0a 20400c89 call slave_newconn_once 
+0a0b 20368a0f branch roles_newconns_responded ,match 
+0a0c 20400c62 call new_conn_timeout 
+0a0d 243a0a09 nbranch roles_newconns_loop ,blank 
+0a0e 202009f0 branch role_switch_fail_master 
+
+roles_newconns_responded:
+0a0f 6fe08031 fetch 1 ,mem_mode 
+0a10 793ffe01 set0 mode_master ,pdata 
+0a11 67e08031 store 1 ,mem_mode 
+0a12 20401376 call supervision_flush 
+0a13 2040105d call calc_clke_offset 
+0a14 78347c00 enable user 
+0a15 70095b2b jam bt_evt_switch_success_master ,mem_fifo_temp 
+0a16 202077a7 branch ui_ipc_send_event 
+
+context_load:
+0a17 4494c005 bpatch patch05_1 ,mem_patch05 
+0a18 79200009 set1 mark_context ,mark 
+0a19 1a227e00 deposit rega 
+0a1a 67e1001e store 2 ,mem_context_ptr 
+0a1b 18007258 force context_size ,loopcnt 
+0a1c d8a00287 arg mem_le_state ,contw 
+0a1d 1a208c01 add rega ,coffset_mode ,contr 
+0a1e efe08006 ifetch 1 ,contr 
+0a1f 1a220c00 copy rega ,contr 
+0a20 c2807ca1 bbit1 mode_le ,memcpy 
+0a21 d8a00030 arg mem_state ,contw 
+0a22 20407ca1 call memcpy 
+0a23 78577c00 disable attempt 
+0a24 6fe08077 fetch 1 ,mem_amaddr 
+0a25 98000800 iforce am_addr 
+0a26 70008801 jam 1 ,mem_current_sniff_attempt 
+0a27 20348a29 branch context_load_master ,master 
+0a28 70008801 jam 1 ,mem_current_sniff_attempt 
+
+context_load_master:
+0a29 6fe08030 fetch 1 ,mem_state 
+0a2a c4008000 rtnbit0 state_insniff 
+0a2b 6fe08073 fetch 1 ,mem_sniff_attempt 
+0a2c 67e08088 store 1 ,mem_current_sniff_attempt 
+0a2d 6fe08074 fetch 1 ,mem_sniff_timeout 
+0a2e 67e08089 store 1 ,mem_current_sniff_timeout 
+0a2f 20600000 rtn 
+
+context_save:
+0a30 44954005 bpatch patch05_2 ,mem_patch05 
+0a31 6fe1001e fetch 2 ,mem_context_ptr 
+0a32 98000a00 iforce contw 
+0a33 18007258 force context_size ,loopcnt 
+0a34 d8c00287 arg mem_le_state ,contr 
+0a35 203b7ca1 branch memcpy ,le 
+0a36 d8c00030 arg mem_state ,contr 
+0a37 20207ca1 branch memcpy 
+
+context_get_next:
+0a38 df200001 arg context_num ,loopcnt 
+0a39 68488015 fetcht 1 ,mem_current_context 
+
+context_get_next_loop:
+0a3a 18408401 increase 1 ,temp 
+0a3b 2841fe01 compare context_num ,temp ,0xff 
+0a3c 24208a3e nbranch context_get_next_cont ,true 
+0a3d d8400000 arg 0 ,temp 
+
+context_get_next_cont:
+0a3e 60488015 storet 1 ,mem_current_context 
+0a3f 184ffe58 mul32 temp ,context_size ,pdata 
+0a40 da204040 arg mem_context ,rega 
+0a41 9a20a200 iadd rega ,rega 
+0a42 efe08011 ifetch 1 ,rega 
+0a43 c2808a46 bbit1 state_insniff ,context_get_next_sniff 
+0a44 c3800000 rtnbit1 state_inconn 
+0a45 c3818000 rtnbit1 state_inpage 
+
+context_get_next_sniff:
+0a46 c2000a3a loop context_get_next_loop 
+0a47 20600000 rtn 
+
+context_new:
+0a48 4495c005 bpatch patch05_3 ,mem_patch05 
+0a49 da600a77 arg context_search_empty ,regc 
+0a4a 20400a6e call context_search 
+0a4b 24628000 nrtn zero 
+0a4c 1a227e00 deposit rega 
+0a4d 67e1001e store 2 ,mem_context_ptr 
+0a4e 18007c00 force 0 ,null 
+0a4f 20600000 rtn 
+
+context_check_all_wack:
+0a50 20400f49 call check_esco_amaddr 
+0a51 20208a58 branch context_check_esco_wack ,true 
+0a52 6fe1001e fetch 2 ,mem_context_ptr 
+0a53 1fe08a17 add pdata ,coffset_arq ,contw 
+0a54 6fe08047 fetch 1 ,mem_arq 
+0a55 e7e08005 istore 1 ,contw 
+0a56 da600ab7 arg context_check_a_wack ,regc 
+0a57 20200a6e branch context_search 
+
+context_check_esco_wack:
+0a58 6fe08047 fetch 1 ,mem_arq 
+0a59 2feffe03 isolate1 wack ,pdata 
+0a5a 20208a5d branch context_esco_wack ,true 
+0a5b 18007c01 force 1 ,null 
+0a5c 20600000 rtn 
+
+context_esco_wack:
+0a5d 18007c00 force 0 ,null 
+0a5e 20600000 rtn 
+
+context_check_idle:
+0a5f da600ab4 arg context_check_inconn ,regc 
+0a60 20200a6e branch context_search 
+
+context_traverse_linkkey:
+0a61 6849001e fetcht 2 ,mem_context_ptr 
+0a62 da600adc arg context_traverse_clearkey ,regc 
+0a63 20200a6e branch context_search 
+
+context_search_conn_handle:
+0a64 6848c1df fetcht 1 ,mem_hci_conn_handle 
+
+context_search_conn_handle2:
+0a65 da600a82 arg context_search_handle ,regc 
+0a66 20200a6e branch context_search 
+
+context_search_plap:
+0a67 44964005 bpatch patch05_4 ,mem_patch05 
+0a68 684b41e0 fetcht 6 ,mem_hci_plap 
+
+context_search_plap2:
+0a69 da600a7b arg context_search_lap ,regc 
+0a6a 20200a6e branch context_search 
+
+context_search_insniff:
+0a6b da600a88 arg context_search_sniff ,regc 
+0a6c 20200a6e branch context_search 
+
+context_search_sniff_window:
+0a6d da600ad3 arg context_search_window ,regc 
+
+context_search:
+0a6e 4496c005 bpatch patch05_5 ,mem_patch05 
+0a6f da204040 arg mem_context ,rega 
+0a70 df200001 arg context_num ,loopcnt 
+
+context_search_loop:
+0a71 efe08011 ifetch 1 ,rega 
+0a72 1a627a00 copy regc ,pc 
+
+context_search_next:
+0a73 1a20a258 increase context_size ,rega 
+0a74 c2000a71 loop context_search_loop 
+0a75 18007c01 force 1 ,null 
+0a76 20600000 rtn 
+
+context_search_empty:
+0a77 c2800a73 bbit1 state_inconn ,context_search_next 
+0a78 c2818a73 bbit1 state_inpage ,context_search_next 
+0a79 18007c00 force 0 ,null 
+0a7a 20600000 rtn 
+
+context_search_lap:
+0a7b c2818a7d bbit1 state_inpage ,context_search_lap_cont 
+0a7c c3000a73 bbit0 state_inconn ,context_search_next 
+
+context_search_lap_cont:
+0a7d 1a208c10 add rega ,coffset_plap ,contr 
+0a7e efe30006 ifetch 6 ,contr 
+0a7f 98467c00 isub temp ,null 
+0a80 20628000 rtn zero 
+0a81 20200a73 branch context_search_next 
+
+context_search_handle:
+0a82 c3000a73 bbit0 state_inconn ,context_search_next 
+0a83 1a208c16 add rega ,coffset_conn_handle ,contr 
+0a84 efe08006 ifetch 1 ,contr 
+0a85 98467c00 isub temp ,null 
+0a86 20628000 rtn zero 
+0a87 20200a73 branch context_search_next 
+
+context_search_sniff:
+0a88 c3008a73 bbit0 state_insniff ,context_search_next 
+
+context_search_sniff_loop:
+0a89 20400ac0 call context_get_anchor 
+0a8a 20400aa4 call sign_pdata_temp 
+0a8b 98467e00 isub temp ,pdata 
+0a8c 1fe0fe01 increase 1 ,pdata 
+0a8d 20210a9e branch context_search_sniff_miss ,positive 
+0a8e 18c22400 copy contr ,regb 
+0a8f 67e48964 store 9 ,mem_temp 
+0a90 6fe0c6c1 fetch 1 ,mem_sc_calc 
+0a91 243a0a96 nbranch context_search_sniff_sc ,blank 
+0a92 6fe48964 fetch 9 ,mem_temp 
+0a93 1a420c00 copy regb ,contr 
+0a94 1fe0fe05 increase 5 ,pdata 
+0a95 20200a99 branch context_search_meet1 
+
+context_search_sniff_sc:
+0a96 6fe48964 fetch 9 ,mem_temp 
+0a97 1a420c00 copy regb ,contr 
+0a98 1fe0fe14 increase 20 ,pdata 
+
+context_search_meet1:
+0a99 24210a73 nbranch context_search_next ,positive 
+
+context_search_meet:
+0a9a 18424200 copy temp ,bt_clk 
+0a9b 20400acc call context_next_anchor 
+0a9c 18007c00 force 0 ,null 
+0a9d 20600000 rtn 
+
+context_search_sniff_miss:
+0a9e 98002400 iforce regb 
+0a9f 1a208c02 add rega ,coffset_tsniff ,contr 
+0aa0 efe10006 ifetch 2 ,contr 
+0aa1 203a0a9a branch context_search_meet ,blank 
+0aa2 20400acc call context_next_anchor 
+0aa3 20200a89 branch context_search_sniff_loop 
+
+sign_pdata_temp:
+0aa4 1ff11600 rshift16 pdata ,timeup 
+0aa5 196c9600 rshift8 timeup ,timeup 
+0aa6 20228aae branch sign_pdata_temp_p0 ,zero 
+0aa7 29601e0f compare 0xf ,timeup ,0xf 
+0aa8 24608000 nrtn true 
+0aa9 18511600 rshift16 temp ,timeup 
+0aaa 196c9600 rshift8 timeup ,timeup 
+0aab 24628000 nrtn zero 
+0aac 7920041c set1 28 ,temp 
+0aad 20600000 rtn 
+
+sign_pdata_temp_p0:
+0aae 18511600 rshift16 temp ,timeup 
+0aaf 196c9600 rshift8 timeup ,timeup 
+0ab0 29601e0f compare 0xf ,timeup ,0xf 
+0ab1 24608000 nrtn true 
+0ab2 79207e1c set1 28 ,pdata 
+0ab3 20600000 rtn 
+
+context_check_inconn:
+0ab4 c3000a73 bbit0 state_inconn ,context_search_next 
+0ab5 18007c00 force 0 ,null 
+0ab6 20600000 rtn 
+
+context_check_a_wack:
+0ab7 c3000a73 bbit0 state_inconn ,context_search_next 
+0ab8 1a208c01 add rega ,coffset_mode ,contr 
+0ab9 efe08006 ifetch 1 ,contr 
+0aba c2800a73 bbit1 mode_le ,context_search_next 
+0abb 1a208c17 add rega ,coffset_arq ,contr 
+0abc efe08006 ifetch 1 ,contr 
+0abd c3018a73 bbit0 wack ,context_search_next 
+0abe 18007c00 force 0 ,null 
+0abf 20600000 rtn 
+
+context_get_anchor:
+0ac0 1a208c01 add rega ,coffset_mode ,contr 
+0ac1 e8408006 ifetcht 1 ,contr 
+0ac2 1c427e00 deposit clkn_bt 
+0ac3 284ffe01 isolate1 mode_master ,temp 
+0ac4 1a208c04 add rega ,coffset_sniff_anchor ,contr 
+0ac5 e8420006 ifetcht 4 ,contr 
+0ac6 20608000 rtn true 
+0ac7 1a208c08 add rega ,coffset_clk_offset ,contr 
+0ac8 efe30006 ifetch 6 ,contr 
+0ac9 20401073 call calc_clke2 
+0aca 1d027e00 deposit clke_bt 
+0acb 20600000 rtn 
+
+context_next_anchor:
+0acc 1a208c02 add rega ,coffset_tsniff ,contr 
+0acd 1a208a04 add rega ,coffset_sniff_anchor ,contw 
+0ace efe10006 ifetch 2 ,contr 
+0acf 98409600 iadd temp ,timeup 
+0ad0 19627e00 deposit timeup 
+0ad1 e7e20005 istore 4 ,contw 
+0ad2 20201692 branch le_context_nextevent 
+
+context_search_window:
+0ad3 c3008a73 bbit0 state_insniff ,context_search_next 
+0ad4 20400ac0 call context_get_anchor 
+0ad5 9b60fe00 iadd stop_watch ,pdata 
+0ad6 9b60fe00 iadd stop_watch ,pdata 
+0ad7 98e0fe00 iadd queue ,pdata 
+0ad8 98467c00 isub temp ,null 
+0ad9 24210a73 nbranch context_search_next ,positive 
+0ada 18007c00 force 0 ,null 
+0adb 20600000 rtn 
+
+context_traverse_clearkey:
+0adc c3000a73 bbit0 state_inconn ,context_search_next 
+0add 18427e00 deposit temp 
+0ade 9a267c00 isub rega ,null 
+0adf 203f0a73 branch context_search_next ,null 
+0ae0 1a208c01 add rega ,coffset_mode ,contr 
+0ae1 efe08006 ifetch 1 ,contr 
+0ae2 c2800a73 bbit1 mode_le ,context_search_next 
+0ae3 efe08011 ifetch 1 ,rega 
+0ae4 793ffe07 set0 state_linkkey ,pdata 
+0ae5 e7e08011 istore 1 ,rega 
+0ae6 20200a73 branch context_search_next 
+
+master_conn_send_packet:
+0ae7 44974005 bpatch patch05_6 ,mem_patch05 
+0ae8 2040133c call rf_setup_time_master_slot 
+
+master_send_packet:
+0ae9 1c40c201 add clkn_bt ,1 ,bt_clk 
+0aea 20401134 call fetch_self_bt_adr 
+0aeb 18004803 force 0x03 ,freq_mode 
+0aec 20401124 call tx_radio_freq 
+0aed 2040133e call start_transmitter 
+0aee 20401343 call start_tx_native 
+0aef 20401351 call send_access_word 
+0af0 20200f86 branch transmit_packet 
+
+master_conn_recv_packet:
+0af1 4497c005 bpatch patch05_7 ,mem_patch05 
+0af2 2040133a call rf_setup_time_slave_slot 
+
+master_recv_packet:
+0af3 1c40c201 add clkn_bt ,1 ,bt_clk 
+0af4 20401134 call fetch_self_bt_adr 
+0af5 18004803 force 0x03 ,freq_mode 
+0af6 2040111e call rx_radio_freq 
+0af7 20400c37 call init_rx_packet_flags 
+0af8 204012d8 call prep_crypt 
+0af9 20401348 call start_rx_native 
+0afa 204012d3 call start_receiver 
+
+master_rx_conn_finish_packet:
+0afb 204012f9 call wait_access_clkn_rt 
+0afc 246c0000 nrtn sync 
+0afd 2040127d call save_rssi 
+0afe 20200d40 branch receive_packet 
+
+master_newconn_once:
+0aff 44984006 bpatch patch06_0 ,mem_patch06 
+0b00 6fe080e5 fetch 1 ,mem_fhs_am_addr 
+0b01 98000800 iforce am_addr 
+0b02 18000201 force type_poll ,type 
+0b03 20400ae7 call master_conn_send_packet 
+0b04 20200af1 branch master_conn_recv_packet 
+
+inquiry_scan_dispatch:
+0b05 6fe0c09b fetch 1 ,mem_scan_mode 
+0b06 c4000000 rtnbit0 inq_scan_mode 
+0b07 18000e04 force iscan_interval_timer ,queue 
+0b08 20407cb6 call timer_check 
+0b09 247a0000 nrtn blank 
+0b0a 684940b5 fetcht 2 ,mem_iscan_window 
+0b0b 18000e04 force 4 ,queue 
+0b0c 20400f40 call sniff_check_window 
+0b0d 20740000 rtn user 
+0b0e 20400b15 call inquiry_scan_start 
+0b0f 18000e04 force iscan_interval_timer ,queue 
+0b10 6fe140b7 fetch 2 ,mem_iscan_interval 
+0b11 242c7ca8 nbranch timer_init ,sync 
+0b12 180a7e00 random pdata 
+0b13 9ea17e00 iand mask3ff ,pdata 
+0b14 20207ca8 branch timer_init 
+
+inquiry_scan_start:
+0b15 4498c006 bpatch patch06_1 ,mem_patch06 
+0b16 7000e500 jam 0 ,mem_fhs_am_addr 
+0b17 78587c00 disable clknt 
+0b18 78577c00 disable attempt 
+0b19 204010f6 call afh_clear 
+0b1a 1c4143fc and clkn_bt ,0x1fc ,bt_clk 
+0b1b 18004801 force 0x01 ,freq_mode 
+0b1c 2040112a call fetch_giac 
+0b1d 2040111e call rx_radio_freq 
+0b1e 7940001d setflip mark_inquiry_state ,mark 
+0b1f 6fe08006 fetch 1 ,mem_inquiryscan_waitcnt 
+0b20 1fe0fe01 increase 1 ,pdata 
+0b21 67e08006 store 1 ,mem_inquiryscan_waitcnt 
+0b22 20401144 call fetch_diac 
+0b23 204012d3 call start_receiver 
+0b24 20401300 call wait_access_forever 
+0b25 246c0000 nrtn sync 
+0b26 44994006 bpatch patch06_2 ,mem_patch06 
+0b27 18003600 force 0 ,stop_watch 
+0b28 2040114b call shutdown_radio 
+0b29 6fe08007 fetch 1 ,mem_inquiryscan_rcvcnt 
+0b2a 1fe0fe01 increase 1 ,pdata 
+0b2b 67e08007 store 1 ,mem_inquiryscan_rcvcnt 
+0b2c 2040112a call fetch_giac 
+0b2d 2040133a call rf_setup_time_slave_slot 
+0b2e 1c21c202 or_into 0x002 ,bt_clk 
+0b2f 18004801 force 0x01 ,freq_mode 
+0b30 20401124 call tx_radio_freq 
+0b31 20401144 call fetch_diac 
+0b32 2040133e call start_transmitter 
+0b33 2040134c call start_tx_external 
+0b34 1c427e00 deposit clkn_bt 
+0b35 67e200b0 store 4 ,mem_clkn_bt 
+0b36 20401351 call send_access_word 
+0b37 18000202 force type_fhs ,type 
+0b38 18000800 force 0 ,am_addr 
+0b39 20401359 call scan_mode_whiten 
+0b3a 20400f8a call transmit_packet_whitened 
+0b3b 20400b3f call send_eir 
+0b3c 1c2143fd and_into 0x1fd ,bt_clk 
+0b3d 1cc0cc01 increase 1 ,n_tx_slot 
+0b3e 20600000 rtn 
+
+send_eir:
+0b3f 4499c006 bpatch patch06_3 ,mem_patch06 
+0b40 6fe0c0d8 fetch 1 ,mem_eir_enable 
+0b41 207a0000 rtn blank 
+0b42 d8a000f0 arg mem_eir ,contw 
+0b43 6fe0c603 fetch 1 ,mem_local_name_length 
+0b44 1fe27200 copy pdata ,loopcnt 
+0b45 1fe0fe01 increase 1 ,pdata 
+0b46 e7e08005 istore 1 ,contw 
+0b47 18a20400 copy contw ,temp 
+0b48 1fe0fe01 increase 1 ,pdata 
+0b49 67e141e9 store 2 ,mem_tx_len 
+0b4a 18420a00 copy temp ,contw 
+0b4b 58000009 setarg 0x09 
+0b4c e7e08005 istore 1 ,contw 
+0b4d d8c04604 arg mem_local_name ,contr 
+0b4e 20407ca1 call memcpy 
+0b4f da60467f arg mem_all_uuid_128bits ,regc 
+0b50 df200004 arg 4 ,loopcnt 
+0b51 20400b61 call get_all_uuid 
+0b52 da604669 arg mem_all_uuid_16bits ,regc 
+0b53 df200001 arg 1 ,loopcnt 
+0b54 20400b61 call get_all_uuid 
+0b55 1800020a force type_dm3 ,type 
+0b56 7041e802 jam 2 ,mem_tx_lch 
+0b57 580000f0 setarg mem_eir 
+0b58 67e100be store 2 ,mem_txptr 
+0b59 2040133a call rf_setup_time_slave_slot 
+0b5a 20401124 call tx_radio_freq 
+0b5b 2040133e call start_transmitter 
+0b5c 2040134c call start_tx_external 
+0b5d 20401351 call send_access_word 
+0b5e 20401359 call scan_mode_whiten 
+0b5f 20400f8a call transmit_packet_whitened 
+0b60 20600000 rtn 
+
+get_all_uuid:
+0b61 18a20400 copy contw ,temp 
+0b62 1a620c00 copy regc ,contr 
+0b63 efe08006 ifetch 1 ,contr 
+0b64 207a0000 rtn blank 
+
+lshift_loop:
+0b65 1fe3fe00 lshift pdata ,pdata 
+0b66 c2000b65 loop lshift_loop 
+0b67 1fe22200 copy pdata ,rega 
+0b68 1fe0fe02 increase 2 ,pdata 
+0b69 1fe20e00 copy pdata ,queue 
+0b6a 6fe141e9 fetch 2 ,mem_tx_len 
+0b6b 98e0fe00 iadd queue ,pdata 
+0b6c 67e141e9 store 2 ,mem_tx_len 
+0b6d 18420a00 copy temp ,contw 
+0b6e 1a227e00 copy rega ,pdata 
+0b6f 1fe0fe01 increase 1 ,pdata 
+0b70 e7e08005 istore 1 ,contw 
+0b71 1a620c00 copy regc ,contr 
+0b72 efe08006 ifetch 1 ,contr 
+0b73 efe08006 ifetch 1 ,contr 
+0b74 e7e08005 istore 1 ,contw 
+0b75 1a227200 copy rega ,loopcnt 
+0b76 20207ca1 branch memcpy 
+
+page_scan_dispatch:
+0b77 6fe0c09b fetch 1 ,mem_scan_mode 
+0b78 c4008000 rtnbit0 page_scan_mode 
+0b79 18000e05 force pscan_interval_timer ,queue 
+0b7a 20407cb6 call timer_check 
+0b7b 247a0000 nrtn blank 
+0b7c 684940b9 fetcht 2 ,mem_pscan_window 
+0b7d 18000e28 force 40 ,queue 
+0b7e 20400f40 call sniff_check_window 
+0b7f 20740000 rtn user 
+0b80 18000800 force 0 ,am_addr 
+0b81 70001008 jam param_pagerespto ,mem_fhs_wait_counter 
+0b82 793f800b set0 mark_fhs_already_good ,mark 
+0b83 20400b87 call page_scan_start 
+0b84 18000e05 force pscan_interval_timer ,queue 
+0b85 6fe140bb fetch 2 ,mem_pscan_interval 
+0b86 20207ca8 branch timer_init 
+
+page_scan_start:
+0b87 449a4006 bpatch patch06_4 ,mem_patch06 
+0b88 78587c00 disable clknt 
+0b89 204010f6 call afh_clear 
+0b8a 6fe08008 fetch 1 ,mem_pagescan_waitcnt 
+0b8b 1fe0fe01 increase 1 ,pdata 
+0b8c 67e08008 store 1 ,mem_pagescan_waitcnt 
+0b8d 18004c00 force 0 ,n_tx_slot 
+0b8e 20401134 call fetch_self_bt_adr 
+0b8f 1c40c201 add clkn_bt ,1 ,bt_clk 
+0b90 18004802 force 0x02 ,freq_mode 
+0b91 449ac006 bpatch patch06_5 ,mem_patch06 
+0b92 2040111e call rx_radio_freq 
+0b93 204012d3 call start_receiver 
+0b94 20401300 call wait_access_forever 
+0b95 246c0000 nrtn sync 
+0b96 2040114b call shutdown_radio 
+0b97 6fe08009 fetch 1 ,mem_pagescan_rcvcnt 
+0b98 1fe0fe01 increase 1 ,pdata 
+0b99 67e08009 store 1 ,mem_pagescan_rcvcnt 
+0b9a 18003600 force 0 ,stop_watch 
+0b9b 2040133a call rf_setup_time_slave_slot 
+0b9c 1c21c202 or_into 0x002 ,bt_clk 
+0b9d 18004801 force 0x01 ,freq_mode 
+0b9e 20401124 call tx_radio_freq 
+0b9f 2040133e call start_transmitter 
+0ba0 2040134c call start_tx_external 
+0ba1 20401351 call send_access_word 
+0ba2 20400e7c call end_of_packet 
+0ba3 18000800 force 0 ,am_addr 
+0ba4 69610157 fetchr timeup ,2 ,mem_param_rf_setup 
+0ba5 35330200 until clke_rt ,meet 
+0ba6 1d01d003 or_into 0x03 ,clke_bt 
+0ba7 1c2143fd and_into 0x1fd ,bt_clk 
+
+page_scan_wait_fhs_restart:
+0ba8 449b4006 bpatch patch06_6 ,mem_patch06 
+0ba9 1cc0cc01 increase 1 ,n_tx_slot 
+0baa 2040111e call rx_radio_freq 
+0bab 204012d3 call start_receiver 
+0bac 204012f3 call wait_access_mhalfbnd 
+0bad 242c0bb1 nbranch page_scan_wait_fhs_again ,sync 
+0bae 20401359 call scan_mode_whiten 
+0baf 20400d43 call receive_packet_whitened 
+0bb0 c5058bb8 bmark1 mark_fhs_already_good ,page_scan_reply_to_fhs 
+
+page_scan_wait_fhs_again:
+0bb1 449bc006 bpatch patch06_7 ,mem_patch06 
+0bb2 6fe08010 fetch 1 ,mem_fhs_wait_counter 
+0bb3 207a0000 rtn blank 
+0bb4 1fe0ffff increase -1 ,pdata 
+0bb5 67e08010 store 1 ,mem_fhs_wait_counter 
+0bb6 2040133c call rf_setup_time_master_slot 
+0bb7 20200ba8 branch page_scan_wait_fhs_restart 
+
+page_scan_reply_to_fhs:
+0bb8 449c4007 bpatch patch07_0 ,mem_patch07 
+0bb9 793fd001 set0 1 ,clke_bt 
+0bba 79205000 set1 0 ,clke_bt 
+0bbb 6fe0800a fetch 1 ,mem_pagescan_rcvfhscnt 
+0bbc 1fe0fe01 increase 1 ,pdata 
+0bbd 67e0800a store 1 ,mem_pagescan_rcvfhscnt 
+0bbe 2040133a call rf_setup_time_slave_slot 
+0bbf 1c21c202 or_into 0x02 ,bt_clk 
+0bc0 20401124 call tx_radio_freq 
+0bc1 2040133e call start_transmitter 
+0bc2 2040134c call start_tx_external 
+0bc3 20401351 call send_access_word 
+0bc4 20400e7c call end_of_packet 
+
+slave_apply_clke_bt:
+0bc5 2d000603 compare 0x03 ,clke_bt ,0x03 
+0bc6 20208bc9 branch slave_apply_clke_bt_now ,true 
+0bc7 37cb8200 until null ,mhalfbnd 
+0bc8 20200bc5 branch slave_apply_clke_bt 
+
+slave_apply_clke_bt_now:
+0bc9 6fe200b4 fetch 4 ,mem_clke_bt 
+0bca 1fe1fe03 or_into 0x03 ,pdata 
+0bcb 1fe25000 icopy clke_bt 
+
+start_slave_connection:
+0bcc 449cc007 bpatch patch07_1 ,mem_patch07 
+0bcd 6fe300c7 fetch 6 ,extm_lap 
+0bce 67e30040 store 6 ,mem_plap 
+0bcf 20400c42 call prepare_newconn 
+
+slave_newconn_loop:
+0bd0 20400c89 call slave_newconn_once 
+0bd1 20368bd5 branch sconn_successful ,match 
+0bd2 20400c62 call new_conn_timeout 
+0bd3 243a0bd0 nbranch slave_newconn_loop ,blank 
+0bd4 20600000 rtn 
+
+sconn_successful:
+0bd5 449d4007 bpatch patch07_2 ,mem_patch07 
+0bd6 20400c4d call newconn_init 
+0bd7 20400a48 call context_new 
+0bd8 24628000 nrtn zero 
+0bd9 70003100 jam 0 ,mem_mode 
+0bda 2040105d call calc_clke_offset 
+0bdb 20200a30 branch context_save 
+
+slave_dispatch:
+0bdc 449dc007 bpatch patch07_3 ,mem_patch07 
+0bdd 2040106f call calc_clke 
+0bde 20400c01 call role_switch_slave 
+0bdf 20740000 rtn user 
+
+slave_loop:
+0be0 449e4007 bpatch patch07_4 ,mem_patch07 
+0be1 2040646b call scheduler_process 
+0be2 20400d38 call slave_conn_recv_packet 
+0be3 24368bf0 nbranch slave_notmatch ,match 
+0be4 6fe1447a fetch 2 ,mem_cb_bt_slave_match 
+0be5 20407d47 call callback_func 
+0be6 20401376 call supervision_flush 
+0be7 20406483 call scheduler_tx_l2cap_pkt 
+0be8 20400c96 call prepare_tx 
+0be9 20400f7b call slave_conn_send_packet 
+0bea 20400f4c call parse_l2cap 
+0beb 204052b1 call parse_lmp 
+0bec 6fe0800b fetch 1 ,mem_slave_rcvcnt 
+0bed 1fe0fe01 increase 1 ,pdata 
+0bee 67e0800b store 1 ,mem_slave_rcvcnt 
+0bef 2040105d call calc_clke_offset 
+
+slave_notmatch:
+0bf0 449ec007 bpatch patch07_5 ,mem_patch07 
+0bf1 204014d6 call lpm_set_mult 
+0bf2 2040136d call supervision_update 
+0bf3 20210bf9 branch slave_disconnect ,positive 
+0bf4 204009a9 call check_disconnect_timeout 
+0bf5 24340bf9 nbranch slave_disconnect ,user 
+0bf6 20400f1c call check_attempt 
+0bf7 243a0be0 nbranch slave_loop ,blank 
+0bf8 20600000 rtn 
+
+slave_disconnect:
+0bf9 449f4007 bpatch patch07_6 ,mem_patch07 
+0bfa 700a5100 jam 0 ,mem_tester_emulate 
+0bfb 7000e300 jam 0 ,mem_debug_config 
+0bfc 20400c6a call quit_connection 
+0bfd 793f8011 set0 mark_testmode ,mark 
+0bfe 20407d5b call test_enable_white 
+0bff 6fe08030 fetch 1 ,mem_state 
+0c00 20600000 rtn 
+
+role_switch_slave:
+0c01 204009cb call role_switch_check 
+0c02 24740000 nrtn user 
+0c03 18820400 copy am_addr ,temp 
+0c04 2040135d call get_free_amaddr 
+0c05 67e080e5 store 1 ,mem_fhs_am_addr 
+0c06 18420800 copy temp ,am_addr 
+0c07 70001120 jam param_newconnto ,mem_newconnto_counter 
+
+roles_sendfhs_loop:
+0c08 449fc007 bpatch patch07_7 ,mem_patch07 
+0c09 2040133c call rf_setup_time_master_slot 
+0c0a 18000202 force type_fhs ,type 
+0c0b 20400f73 call slave_send_access 
+0c0c 1c427e00 deposit clkn_bt 
+0c0d 67e200b0 store 4 ,mem_clkn_bt 
+0c0e 20400f86 call transmit_packet 
+0c0f 2040133a call rf_setup_time_slave_slot 
+0c10 7837fc00 enable user3 
+0c11 20400d19 call slave_receive_access 
+0c12 202c0c1a branch roles_got_fhs_reply ,sync 
+0c13 2040114b call shutdown_radio 
+0c14 20400c62 call new_conn_timeout 
+0c15 243a0c08 nbranch roles_sendfhs_loop ,blank 
+0c16 c6820000 rtnmark0 mark_accept_switch 
+0c17 70007c34 jam lmp_slot_offset ,mem_lmo_opcode2 
+0c18 79200003 set1 mark_switch_initiated ,mark 
+0c19 20600000 rtn 
+
+roles_got_fhs_reply:
+0c1a 78387c00 enable clknt 
+0c1b 20400c42 call prepare_newconn 
+0c1c 204010f6 call afh_clear 
+
+roles_newconn_loop:
+0c1d 44a04008 bpatch patch08_0 ,mem_patch08 
+0c1e 20400aff call master_newconn_once 
+0c1f 202c0c26 branch roles_newconn_responded ,sync 
+0c20 20400c62 call new_conn_timeout 
+0c21 243a0c1d nbranch roles_newconn_loop ,blank 
+0c22 78587c00 disable clknt 
+0c23 1d027e00 deposit clke_bt 
+0c24 67e240d1 store 4 ,mem_next_btclk 
+0c25 20600000 rtn 
+
+roles_newconn_responded:
+0c26 7834fc00 enable master 
+0c27 c5820c2c bmark0 mark_accept_switch ,roles_newconn_nolmp 
+0c28 793f8004 set0 mark_accept_switch ,mark 
+0c29 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+0c2a 70007d33 jam lmp_host_connection_req ,mem_lmi_opcode2 
+0c2b 2040593a call tid_set_reply 
+
+roles_newconn_nolmp:
+0c2c 18827e00 deposit am_addr 
+0c2d 67e08077 store 1 ,mem_amaddr 
+0c2e 18007e00 force 0 ,pdata 
+0c2f 67e30038 store 6 ,mem_clk_offset 
+0c30 6fe08031 fetch 1 ,mem_mode 
+0c31 79207e01 set1 mode_master ,pdata 
+0c32 67e08031 store 1 ,mem_mode 
+0c33 20401376 call supervision_flush 
+0c34 7854fc00 disable master 
+0c35 78347c00 enable user 
+0c36 20600000 rtn 
+
+init_rx_packet_flags:
+0c37 44a0c008 bpatch patch08_1 ,mem_patch08 
+0c38 7856fc00 disable match 
+0c39 793f8005 set0 mark_loopback ,mark 
+0c3a 793f800a set0 mark_am_addr_broadcast ,mark 
+0c3b 793f8010 set0 mark_longpacket ,mark 
+0c3c 793f800f set0 mark_old_packet ,mark 
+0c3d 6fe08047 fetch 1 ,mem_arq 
+0c3e 793ffe05 set0 arqnx ,pdata 
+0c3f 79207e04 set1 flowx ,pdata 
+0c40 67e08047 store 1 ,mem_arq 
+0c41 20600000 rtn 
+
+prepare_newconn:
+0c42 44a14008 bpatch patch08_2 ,mem_patch08 
+0c43 70001120 jam param_newconnto ,mem_newconnto_counter 
+0c44 70004750 jam param_newconn_arq ,mem_arq 
+0c45 6fe140c6 fetch 2 ,mem_rx_window_init 
+0c46 67e1003e store 2 ,mem_rx_window 
+0c47 1c427e00 deposit clkn_bt 
+0c48 67e240d1 store 4 ,mem_next_btclk 
+0c49 20780000 rtn clknt 
+0c4a 1d027e00 deposit clke_bt 
+0c4b 67e240d1 store 4 ,mem_next_btclk 
+0c4c 20600000 rtn 
+
+newconn_init:
+0c4d 44a1c008 bpatch patch08_3 ,mem_patch08 
+0c4e 204052ad call init_lmp_reinit 
+0c4f 20400c66 call new_conn_handle 
+0c50 67e08046 store 1 ,mem_conn_handle 
+0c51 58000000 setarg 0 
+0c52 67e1030e store 2 ,mem_l2cap_rxbuff1_len 
+0c53 58001c80 setarg param_supervision_to 
+0c54 67e10051 store 2 ,mem_supervision_to 
+0c55 6fe08030 fetch 1 ,mem_state 
+0c56 79207e00 set1 state_inconn ,pdata 
+0c57 67e08030 store 1 ,mem_state 
+0c58 70004b00 jam 0 ,mem_op 
+0c59 70004c00 jam 0 ,mem_state_map 
+0c5a 70009d00 jam 0 ,mem_lpm_current_mult 
+0c5b 20201376 branch supervision_flush 
+
+clear_linkkey:
+0c5c 44a24008 bpatch patch08_4 ,mem_patch08 
+0c5d 18007e00 force 0 ,pdata 
+0c5e 67e441ce store 8 ,mem_link_key 
+0c5f e7e40005 istore 8 ,contw 
+0c60 204009c7 call clear_linkstate 
+0c61 20200a61 branch context_traverse_linkkey 
+
+new_conn_timeout:
+0c62 6fe08011 fetch 1 ,mem_newconnto_counter 
+0c63 1fe0ffff increase -1 ,pdata 
+0c64 67e08011 store 1 ,mem_newconnto_counter 
+0c65 20600000 rtn 
+
+new_conn_handle:
+0c66 6fe0c0d6 fetch 1 ,mem_handle_num 
+0c67 1fe0fe01 increase 1 ,pdata 
+0c68 67e0c0d6 store 1 ,mem_handle_num 
+0c69 20600000 rtn 
+
+quit_connection:
+0c6a 44a2c008 bpatch patch08_5 ,mem_patch08 
+0c6b 6fe0c1de fetch 1 ,mem_hci_cmd 
+0c6c c0018c6f beq hci_cmd_remote_name_req ,quit_connection_name 
+0c6d 6fe08048 fetch 1 ,mem_lmp_to_send 
+0c6e c0808c73 bne lmp_name_req ,quit_connection_cont 
+
+quit_connection_name:
+0c6f 20404ca5 call cmd_check_plap 
+0c70 24228c73 nbranch quit_connection_cont ,zero 
+0c71 204009a6 call master_name_error 
+0c72 7041de00 jam 0 ,mem_hci_cmd 
+
+quit_connection_cont:
+0c73 44a34008 bpatch patch08_6 ,mem_patch08 
+0c74 20403211 call app_disconn_reason_collect_bt 
+0c75 20400f12 call sniff_exit 
+0c76 70095b02 jam bt_evt_bb_disconnected ,mem_fifo_temp 
+0c77 204077a7 call ui_ipc_send_event 
+0c78 2040529f call init_lmp_work 
+0c79 20404ce5 call l2cap_init_work 
+0c7a 20406e02 call sp_clear_flags 
+0c7b 6fe08030 fetch 1 ,mem_state 
+0c7c 793ffe00 set0 state_inconn ,pdata 
+0c7d 67e08030 store 1 ,mem_state 
+0c7e 70479200 jam 0 ,memui_reconnect_mode 
+0c7f 6fe0804c fetch 1 ,mem_state_map 
+0c80 2fe18000 compare 0x0 ,pdata ,0xc0 
+0c81 20208c83 branch quit_connection_not_clear_mark ,true 
+0c82 793f8001 set0 mark_rxbuf_inuse ,mark 
+
+quit_connection_not_clear_mark:
+0c83 6fe08047 fetch 1 ,mem_arq 
+0c84 c3018c85 bbit0 wack ,quit_connection_not_clear_tx 
+
+quit_connection_not_clear_tx:
+0c85 6fe0804b fetch 1 ,mem_op 
+0c86 c4030000 rtnbit0 op_txl2cap 
+0c87 793f8002 set0 mark_tx_l2cap ,mark 
+0c88 20600000 rtn 
+
+slave_newconn_once:
+0c89 44a3c008 bpatch patch08_7 ,mem_patch08 
+0c8a 6fe080c3 fetch 1 ,extm_newconn_am_addr 
+0c8b 207a0000 rtn blank 
+0c8c 1fe20800 icopy am_addr 
+0c8d 20400d38 call slave_conn_recv_packet 
+0c8e 24768000 nrtn match 
+0c8f 18000200 force type_null ,type 
+0c90 20400f7b call slave_conn_send_packet 
+0c91 18827e00 deposit am_addr 
+0c92 67e08077 store 1 ,mem_amaddr 
+0c93 18007e00 force 0 ,pdata 
+0c94 67e080c3 store 1 ,extm_newconn_am_addr 
+0c95 20600000 rtn 
+
+prepare_tx:
+0c96 44a44009 bpatch patch09_0 ,mem_patch09 
+0c97 6fe08030 fetch 1 ,mem_state 
+0c98 c3010ca3 bbit0 state_insco ,prepare_tx_not_sco 
+0c99 18000207 force type_hv3 ,type 
+0c9a c5838ca2 bmark0 mark_esco ,prepare_tx_not_esco 
+0c9b 20400f49 call check_esco_amaddr 
+0c9c 24208ca3 nbranch prepare_tx_not_sco ,true 
+0c9d 20370ca3 branch prepare_tx_not_sco ,attempt 
+0c9e 20400ce4 call set_wait_ack 
+0c9f 58000002 setarg 2 
+0ca0 67e140cf store 2 ,mem_retransmission_cnt 
+0ca1 20600000 rtn 
+
+prepare_tx_not_esco:
+0ca2 24770000 nrtn attempt 
+
+prepare_tx_not_sco:
+0ca3 44a4c009 bpatch patch09_1 ,mem_patch09 
+0ca4 20400a50 call context_check_all_wack 
+0ca5 24228cb4 nbranch prepare_tx_no_retransmit ,zero 
+0ca6 6fe08047 fetch 1 ,mem_arq 
+0ca7 c3018cbd bbit0 wack ,prepare_tx_pollnull 
+
+prepare_tx_retransmit:
+0ca8 c5028cc1 bmark1 mark_loopback ,prepare_tx_loopback 
+0ca9 6fe080e3 fetch 1 ,mem_debug_config 
+0caa c2830cc7 bbit1 debug_tx_pattern ,prepare_tx_txpat 
+0cab 6fe140cf fetch 2 ,mem_retransmission_cnt 
+0cac 1fe0ffff increase -1 ,pdata 
+0cad 67e140cf store 2 ,mem_retransmission_cnt 
+0cae 203a0cb2 branch prepare_tx_nomore_retransmit ,blank 
+0caf 6fe0c0cc fetch 1 ,mem_last_type 
+0cb0 98000200 iforce type 
+0cb1 20600000 rtn 
+
+prepare_tx_nomore_retransmit:
+0cb2 44a54009 bpatch patch09_2 ,mem_patch09 
+0cb3 20400eb7 call clear_got_tx 
+
+prepare_tx_no_retransmit:
+0cb4 20400f49 call check_esco_amaddr 
+0cb5 20208cbd branch prepare_tx_pollnull ,true 
+0cb6 20405618 call send_lmp 
+0cb7 20340ccb branch prepare_tx_sendlmp ,user 
+0cb8 6fe0804b fetch 1 ,mem_op 
+0cb9 c2830cd7 bbit1 op_txl2cap ,prepare_tx_sendl2cap 
+0cba c5028cc1 bmark1 mark_loopback ,prepare_tx_loopback 
+0cbb 6fe080e3 fetch 1 ,mem_debug_config 
+0cbc c2830cc7 bbit1 debug_tx_pattern ,prepare_tx_txpat 
+
+prepare_tx_pollnull:
+0cbd 18000201 force type_poll ,type 
+0cbe 20748000 rtn master 
+0cbf 18000200 force type_null ,type 
+0cc0 20600000 rtn 
+
+prepare_tx_loopback:
+0cc1 44a5c009 bpatch patch09_3 ,mem_patch09 
+0cc2 6fe08019 fetch 1 ,mem_rx_type 
+0cc3 98000200 iforce type 
+0cc4 c1808000 rtnne 1 
+0cc5 18000200 force type_null ,type 
+0cc6 20600000 rtn 
+
+prepare_tx_txpat:
+0cc7 6fe08a58 fetch 1 ,test_mode_packet_type 
+0cc8 1fe1020f and pdata ,0xf ,type 
+0cc9 79200005 set1 mark_loopback ,mark 
+0cca 20600000 rtn 
+
+prepare_tx_sendlmp:
+0ccb 18000213 force type_lmp ,type 
+0ccc 20400ce4 call set_wait_ack 
+
+prepare_tx_ccm_edr_lmp:
+0ccd 20400ddd call check_enc_ccm 
+0cce 207a0000 rtn blank 
+0ccf 7041e703 jam 3 ,mem_llid 
+0cd0 6fe0838a fetch 1 ,mem_lmo_header_length 
+0cd1 1fe17ff8 and pdata ,0x1f8 ,pdata 
+0cd2 1fe97e00 rshift3 pdata ,pdata 
+0cd3 67e146b9 store 2 ,mem_ccm_len 
+0cd4 1fe22200 copy pdata ,rega 
+0cd5 da60038b arg mem_lmo_header_opcode ,regc 
+0cd6 20206ba5 branch ccm_br_enc_new 
+
+prepare_tx_sendl2cap:
+0cd7 20400ced call tx_l2cap_type 
+0cd8 20400ce4 call set_wait_ack 
+
+prepare_tx_ccm_edr:
+0cd9 20400ddd call check_enc_ccm 
+0cda 207a0000 rtn blank 
+0cdb 6fe0c1e8 fetch 1 ,mem_tx_lch 
+0cdc 1fe17e03 and_into 3 ,pdata 
+0cdd 67e0c1e7 store 1 ,mem_llid 
+0cde 6fe141e9 fetch 2 ,mem_tx_len 
+0cdf 1fe22200 copy pdata ,rega 
+0ce0 67e146b9 store 2 ,mem_ccm_len 
+0ce1 6fe100be fetch 2 ,mem_txptr 
+0ce2 1fe22600 copy pdata ,regc 
+0ce3 20206ba5 branch ccm_br_enc_new 
+
+set_wait_ack:
+0ce4 44a64009 bpatch patch09_4 ,mem_patch09 
+0ce5 68488047 fetcht 1 ,mem_arq 
+0ce6 79200403 set1 wack ,temp 
+0ce7 60488047 storet 1 ,mem_arq 
+0ce8 18227e00 deposit type 
+0ce9 67e0c0cc store 1 ,mem_last_type 
+0cea 5800ffff setarg 0xffff 
+0ceb 67e140cf store 2 ,mem_retransmission_cnt 
+0cec 20600000 rtn 
+
+tx_l2cap_type:
+0ced 44a6c009 bpatch patch09_5 ,mem_patch09 
+0cee 6fe0804c fetch 1 ,mem_state_map 
+0cef 2feffe05 isolate1 smap_edr ,pdata 
+0cf0 6fe141e9 fetch 2 ,mem_tx_len 
+0cf1 20208d03 branch tx_l2cap_type_edr ,true 
+0cf2 18000203 force type_dm1 ,type 
+0cf3 1fe67c11 sub pdata ,17 ,null 
+0cf4 20610000 rtn positive 
+0cf5 18000204 force type_dh1 ,type 
+0cf6 1fe67c1b sub pdata ,27 ,null 
+0cf7 20610000 rtn positive 
+0cf8 1800020a force type_dm3 ,type 
+0cf9 1fe67c79 sub pdata ,121 ,null 
+0cfa 20610000 rtn positive 
+0cfb 1800020b force type_dh3 ,type 
+0cfc 1fe67cb7 sub pdata ,183 ,null 
+0cfd 20610000 rtn positive 
+0cfe 1800020e force type_dm5 ,type 
+0cff 1fe67ce0 sub pdata ,224 ,null 
+0d00 20610000 rtn positive 
+0d01 1800020f force type_dh5 ,type 
+0d02 20600000 rtn 
+
+tx_l2cap_type_edr:
+0d03 18000203 force type_dm1 ,type 
+0d04 1fe67c11 sub pdata ,17 ,null 
+0d05 20610000 rtn positive 
+0d06 18000204 force type_dh1 ,type 
+0d07 1fe67c36 sub pdata ,54 ,null 
+0d08 20610000 rtn positive 
+0d09 1800020a force type_dm3 ,type 
+0d0a d840016f arg 367 ,temp 
+0d0b 98467c00 isub temp ,null 
+0d0c 24610000 nrtn positive 
+0d0d 1800020e force type_dm5 ,type 
+0d0e d84002a7 arg 679 ,temp 
+0d0f 98467c00 isub temp ,null 
+0d10 24610000 nrtn positive 
+0d11 1800020f force type_dh5 ,type 
+0d12 20600000 rtn 
+
+slave_receive_master_slot:
+0d13 6fe08030 fetch 1 ,mem_state 
+0d14 c3008d18 bbit0 state_insniff ,slave_receive_notsniff 
+0d15 6fe10032 fetch 2 ,mem_tsniff 
+0d16 203a0d18 branch slave_receive_notsniff ,blank 
+0d17 24370d1a nbranch slave_receive_sniff ,attempt 
+
+slave_receive_notsniff:
+0d18 2040133c call rf_setup_time_master_slot 
+
+slave_receive_access:
+0d19 1d00c201 add clke_bt ,1 ,bt_clk 
+
+slave_receive_sniff:
+0d1a 78287c00 enable swfine 
+0d1b 6fe1003e fetch 2 ,mem_rx_window 
+0d1c 1fe37e00 rshift pdata ,pdata 
+0d1d 6849015d fetcht 2 ,mem_param_pll_setup 
+0d1e 9840fe00 iadd temp ,pdata 
+0d1f 20401311 call ahead_window 
+0d20 2040113c call fetch_extm_bt_adr 
+0d21 18004803 force 0x03 ,freq_mode 
+0d22 2040111e call rx_radio_freq 
+0d23 20400c37 call init_rx_packet_flags 
+0d24 204012d8 call prep_crypt 
+0d25 44a74009 bpatch patch09_6 ,mem_patch09 
+0d26 6fe1003e fetch 2 ,mem_rx_window 
+0d27 1fe37e00 rshift pdata ,pdata 
+0d28 20401311 call ahead_window 
+0d29 204012d3 call start_receiver 
+0d2a 7826fc00 enable decode_fec0 
+0d2b 6fe1003e fetch 2 ,mem_rx_window 
+0d2c 6849015b fetcht 2 ,mem_param_clke_cal 
+0d2d 9840b600 iadd temp ,stop_watch 
+0d2e 37c18400 correlate null ,timeout 
+0d2f 1b420400 copy clke ,temp 
+0d30 604b0097 storet 6 ,mem_sync_clke 
+0d31 7846fc00 disable decode_fec0 
+0d32 246c0000 nrtn sync 
+0d33 6fe1015b fetch 2 ,mem_param_clke_cal 
+0d34 1fe25200 copy pdata ,clke_rt 
+0d35 1c225000 copy bt_clk ,clke_bt 
+0d36 20359425 branch lpm_adjust_clk ,wake 
+0d37 20600000 rtn 
+
+slave_conn_recv_packet:
+0d38 44a7c009 bpatch patch09_7 ,mem_patch09 
+0d39 20400d13 call slave_receive_master_slot 
+0d3a 242c114b nbranch shutdown_radio ,sync 
+0d3b 2040127d call save_rssi 
+0d3c c5888d40 bmark0 mark_testmode ,receive_packet 
+0d3d 6fe109f6 fetch 2 ,mem_tst_pktcnt_sync 
+0d3e 1fe0fe01 increase 1 ,pdata 
+0d3f 67e109f6 store 2 ,mem_tst_pktcnt_sync 
+
+receive_packet:
+0d40 20404bd6 call rf_debug_rx_sync_line 
+0d41 1c230400 rshift bt_clk ,temp 
+0d42 18419c40 or temp ,0x40 ,white_init 
+
+receive_packet_whitened:
+0d43 44a8400a bpatch patch0a_0 ,mem_patch0a 
+0d44 7823fc00 enable enable_white 
+0d45 78257c00 enable enable_hec 
+0d46 7825fc00 enable decode_fec1 
+0d47 09800003 parse demod ,bucket ,3 
+0d48 198cfe00 rshift8 pwindow ,pdata 
+0d49 67e080ac store 1 ,mem_temp_am_addr 
+0d4a 09800004 parse demod ,bucket ,4 
+0d4b 08008007 inject bucket ,7 
+0d4c 19827e00 copy pwindow ,pdata 
+0d4d 67e08019 store 1 ,mem_rx_type 
+0d4e 09800003 parse demod ,bucket ,3 
+0d4f 198cfe00 rshift8 pwindow ,pdata 
+0d50 67e080ad store 1 ,mem_temp_arq 
+0d51 6fe08019 fetch 1 ,mem_rx_type 
+0d52 1fe67c03 sub pdata ,3 ,null 
+0d53 20210d58 branch receive_packet_noedr ,positive 
+0d54 c0038d58 beq 7 ,receive_packet_noedr 
+0d55 6fe0804c fetch 1 ,mem_state_map 
+0d56 2feffe05 isolate1 smap_edr ,pdata 
+0d57 7920aa01 setflag true ,psk ,radio_ctrl 
+
+receive_packet_noedr:
+0d58 44a8c00a bpatch patch0a_1 ,mem_patch0a 
+0d59 09800008 parse demod ,bucket ,8 
+0d5a 7845fc00 disable decode_fec1 
+0d5b 78457c00 disable enable_hec 
+0d5c 20230e5f branch error_header ,crc_failed 
+0d5d c5888d61 bmark0 mark_testmode ,receive_packet_amchk 
+0d5e 6fe109f8 fetch 2 ,mem_tst_pktcnt_hec 
+0d5f 1fe0fe01 increase 1 ,pdata 
+0d60 67e109f8 store 2 ,mem_tst_pktcnt_hec 
+
+receive_packet_amchk:
+0d61 44a9400a bpatch patch0a_2 ,mem_patch0a 
+0d62 6fe080ac fetch 1 ,mem_temp_am_addr 
+0d63 2fe00e00 compare 0 ,pdata ,0x07 
+0d64 7920800a setflag true ,mark_am_addr_broadcast ,mark 
+0d65 20208d6f branch am_addr_ok ,true 
+0d66 a8800e00 icompare 0x07 ,am_addr 
+0d67 20208d6d branch am_addr_match ,true 
+0d68 c5838e7c bmark0 mark_esco ,end_of_packet 
+0d69 6fe08047 fetch 1 ,mem_arq 
+0d6a 793ffe05 set0 arqnx ,pdata 
+0d6b 79207e04 set1 flowx ,pdata 
+0d6c 67e08047 store 1 ,mem_arq 
+
+am_addr_match:
+0d6d 20404bd9 call rf_debug_rx_match_line 
+0d6e 7836fc00 enable match 
+
+am_addr_ok:
+0d6f 44a9c00a bpatch patch0a_3 ,mem_patch0a 
+0d70 6fe08019 fetch 1 ,mem_rx_type 
+0d71 1fe20200 icopy type 
+0d72 c5050d7e bmark1 mark_am_addr_broadcast ,arqn_bypass 
+0d73 684880ad fetcht 1 ,mem_temp_arq 
+0d74 6fe08047 fetch 1 ,mem_arq 
+0d75 793ffe00 set0 flow ,pdata 
+0d76 284ffe00 isolate1 flow ,temp 
+0d77 7920fe00 setflag true ,flow ,pdata 
+0d78 284ffe01 isolate1 arqn ,temp 
+0d79 7920fe01 setflag true ,arqn ,pdata 
+0d7a 67e08047 store 1 ,mem_arq 
+0d7b 284c0001 isolate0 arqn ,temp 
+0d7c 20208d7e branch arqn_bypass ,true 
+0d7d 20400eb7 call clear_got_tx 
+
+arqn_bypass:
+0d7e 44aa400a bpatch patch0a_4 ,mem_patch0a 
+0d7f d8400000 arg 0 ,temp 
+0d80 20401309 call reserve_slot 
+0d81 18217e0f and type ,0xf ,pdata 
+0d82 c0008d9a beq type_poll ,process_poll 
+0d83 c0000e7c beq type_null ,end_of_packet 
+0d84 c0010e88 beq type_fhs ,process_fhs 
+0d85 684880ad fetcht 1 ,mem_temp_arq 
+0d86 6fe08047 fetch 1 ,mem_arq 
+0d87 a8400800 icompare 0x04 ,temp 
+0d88 24208d8c nbranch rx_type_dispatch ,true 
+0d89 c5850d8b bmark0 mark_am_addr_broadcast ,failed_seqn 
+0d8a c3038d8c bbit0 bcast1 ,rx_type_dispatch 
+
+failed_seqn:
+0d8b 7920000f set1 mark_old_packet ,mark 
+
+rx_type_dispatch:
+0d8c 44aac00a bpatch patch0a_5 ,mem_patch0a 
+0d8d 18227e00 deposit type 
+0d8e c0018d9c beq type_dm1 ,process_dm1 
+0d8f c0020da0 beq type_dh1 ,process_dh1 
+0d90 c0040d9f beq type_3dh1 ,process_3dh1 
+0d91 d8400004 arg 4 ,temp 
+0d92 20401309 call reserve_slot 
+0d93 c0050d9b beq type_dm3 ,process_dm3 
+0d94 c0058d9e beq type_dh3 ,process_dh3 
+0d95 d8400008 arg 8 ,temp 
+0d96 20401309 call reserve_slot 
+0d97 c0070d9b beq type_dm5 ,process_dm5 
+0d98 c0078d9e beq type_dh5 ,process_dh5 
+0d99 20600000 rtn 
+
+process_poll:
+0d9a 20200e7c branch end_of_packet 
+
+process_dm3:
+
+process_dm5:
+0d9b 79200010 set1 mark_longpacket ,mark 
+
+process_dm1:
+0d9c 78267c00 enable decode_fec2 
+0d9d 20200da1 branch process_dmh 
+
+process_dh3:
+
+process_dh5:
+0d9e 79200010 set1 mark_longpacket ,mark 
+
+process_3dh1:
+0d9f 79202a02 set1 psk3m ,radio_ctrl 
+
+process_dh1:
+0da0 7826fc00 enable decode_fec0 
+
+process_dmh:
+0da1 44ab400a bpatch patch0a_6 ,mem_patch0a 
+0da2 c5198e7c bmark1 mark_first_packet ,end_of_packet 
+0da3 c5008e7c bmark1 mark_rxbuf_inuse ,end_of_packet 
+0da4 2aac0001 isolate0 psk ,radio_ctrl 
+0da5 20208dae branch process_dmh_noedr ,true 
+0da6 7843fc00 disable enable_white 
+0da7 7826fc00 enable decode_fec0 
+0da8 78467c00 disable decode_fec2 
+0da9 1c409602 add clkn_bt ,2 ,timeup 
+0daa 34530400 correlate clkn_bt ,meet 
+0dab 242c0e6b nbranch error_payload ,sync 
+0dac 79200010 set1 mark_longpacket ,mark 
+0dad 7823fc00 enable enable_white 
+
+process_dmh_noedr:
+0dae 44abc00a bpatch patch0a_7 ,mem_patch0a 
+0daf 78277c00 enable encrypt 
+0db0 7824fc00 enable enable_crc 
+0db1 09800003 parse demod ,bucket ,3 
+0db2 198cfe00 rshift8 pwindow ,pdata 
+0db3 67e080e4 store 1 ,mem_lch_code 
+0db4 09800005 parse demod ,bucket ,5 
+0db5 c5080db9 bmark1 mark_longpacket ,process_dmh_long 
+0db6 19897200 rshift3 pwindow ,loopcnt 
+0db7 1f297200 rshift3 loopcnt ,loopcnt 
+0db8 20200dbc branch process_dmh_common 
+
+process_dmh_long:
+0db9 09800005 parse demod ,bucket ,5 
+0dba 19837200 rshift pwindow ,loopcnt 
+0dbb 09800003 parse demod ,bucket ,3 
+
+process_dmh_common:
+0dbc 44ac400b bpatch patch0b_0 ,mem_patch0b 
+0dbd 1f227e00 deposit loopcnt 
+0dbe 67e100ae store 2 ,mem_len 
+0dbf 203a0dd4 branch process_dmh_data_0 ,blank 
+0dc0 20400ddd call check_enc_ccm 
+0dc1 203a0dc4 branch process_dmh_common2 ,blank 
+
+process_dmh_common2_ccm:
+0dc2 1f20f204 increase 4 ,loopcnt 
+0dc3 1f227e00 deposit loopcnt 
+
+process_dmh_common2:
+0dc4 9ea67c00 isub mask3ff ,null 
+0dc5 20210e6b branch error_payload ,positive 
+0dc6 44acc00b bpatch patch0b_1 ,mem_patch0b 
+0dc7 793f8000 set0 mark_fhs_eir ,mark 
+0dc8 6fe080e4 fetch 1 ,mem_lch_code 
+0dc9 1fe17e03 and_into 0x03 ,pdata 
+0dca d8a000ce arg mem_rxbuf ,contw 
+0dcb c0018de2 beq llid_lmp ,process_lmp 
+0dcc c5088dd2 bmark1 mark_testmode ,process_dmh_common2_testmode 
+0dcd 6fe080e4 fetch 1 ,mem_lch_code 
+0dce 1fe17e03 and_into 0x03 ,pdata 
+0dcf c0010de7 beq llid_l2cap_start ,process_dmh_data_l2cap_start_pkt 
+0dd0 c0008dfb beq llid_l2cap_cont ,process_dmh_data_l2cap_continue_pkt 
+0dd1 20200e6b branch error_payload 
+
+process_dmh_common2_testmode:
+0dd2 d8a01000 arg mem_l2cap_rxbuff1 ,contw 
+0dd3 20200e0c branch process_dmh_data 
+
+process_dmh_data_0:
+0dd4 20400ddd call check_enc_ccm 
+0dd5 203a0e10 branch process_dmh_data_end ,blank 
+0dd6 58000000 setarg 0 
+0dd7 67e146b9 store 2 ,mem_ccm_len 
+0dd8 09800020 parse demod ,bucket ,32 
+0dd9 1fef7e00 rshift32 pdata ,pdata 
+0dda 1fecfe00 rshift8 pdata ,pdata 
+0ddb 67e20273 store 4 ,mem_le_peer_mic 
+0ddc 20200e10 branch process_dmh_data_end 
+
+check_enc_ccm:
+0ddd 6fe0804c fetch 1 ,mem_state_map 
+0dde c3017d9e bbit0 smap_encryption ,enable_blank 
+0ddf 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+0de0 c0817d9e bne encapsulated_minor_type_p256 ,enable_blank 
+0de1 20207d9c branch disable_blank 
+
+process_lmp:
+0de2 6fe100ae fetch 2 ,mem_len 
+0de3 1fe67c11 sub pdata ,17 ,null 
+0de4 24210e6b nbranch error_payload ,positive 
+0de5 c5078e4c bmark1 mark_old_packet ,ack_payload 
+0de6 20200e0c branch process_dmh_data 
+
+process_dmh_data_l2cap_start_pkt:
+0de7 44ad400b bpatch patch0b_2 ,mem_patch0b 
+0de8 c5078e4c bmark1 mark_old_packet ,ack_payload 
+0de9 6fe100ae fetch 2 ,mem_len 
+0dea d84002e0 arg 0x2e0 ,temp 
+0deb 98467c00 isub temp ,null 
+0dec 20210e6b branch error_payload ,positive 
+0ded 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0dee c3000df1 bbit0 l2cap_inuse_buff1 ,process_dmh_data_into_buff1 
+0def c3008df6 bbit0 l2cap_inuse_buff2 ,process_dmh_data_into_buff2 
+0df0 20200e7c branch end_of_packet 
+
+process_dmh_data_into_buff1:
+0df1 70031201 jam 1 ,mem_l2cap_rxbuff_new 
+0df2 6fe1030e fetch 2 ,mem_l2cap_rxbuff1_len 
+0df3 c0800e7c bne 0 ,end_of_packet 
+0df4 d8a01000 arg mem_l2cap_rxbuff1 ,contw 
+0df5 20200e0c branch process_dmh_data 
+
+process_dmh_data_into_buff2:
+0df6 70031202 jam 2 ,mem_l2cap_rxbuff_new 
+0df7 6fe10310 fetch 2 ,mem_l2cap_rxbuff2_len 
+0df8 c0800e7c bne 0 ,end_of_packet 
+0df9 d8a01400 arg mem_l2cap_rxbuff2 ,contw 
+0dfa 20200e0c branch process_dmh_data 
+
+process_dmh_data_l2cap_continue_pkt:
+0dfb 44adc00b bpatch patch0b_3 ,mem_patch0b 
+0dfc c5078e4c bmark1 mark_old_packet ,ack_payload 
+0dfd 6fe100ae fetch 2 ,mem_len 
+0dfe d84002e0 arg 0x2e0 ,temp 
+0dff 98467c00 isub temp ,null 
+0e00 20210e6b branch error_payload ,positive 
+0e01 6fe08312 fetch 1 ,mem_l2cap_rxbuff_new 
+0e02 c0008e05 beq 1 ,process_dmh_data_l2cap_continue_pkt1 
+0e03 c0010e09 beq 2 ,process_dmh_data_l2cap_continue_pkt2 
+0e04 20200e7c branch end_of_packet 
+
+process_dmh_data_l2cap_continue_pkt1:
+0e05 d8a01000 arg mem_l2cap_rxbuff1 ,contw 
+0e06 6fe1030e fetch 2 ,mem_l2cap_rxbuff1_len 
+0e07 98a08a00 iadd contw ,contw 
+0e08 20200e0c branch process_dmh_data 
+
+process_dmh_data_l2cap_continue_pkt2:
+0e09 d8a01400 arg mem_l2cap_rxbuff2 ,contw 
+0e0a 6fe10310 fetch 2 ,mem_l2cap_rxbuff2_len 
+0e0b 98a08a00 iadd contw ,contw 
+
+process_dmh_data:
+0e0c 09800008 parse demod ,bucket ,8 
+0e0d 19897e00 rshift3 pwindow ,pdata 
+0e0e e7e08005 istore 1 ,contw 
+0e0f c2000e0c loop process_dmh_data 
+
+process_dmh_data_end:
+0e10 44ae400b bpatch patch0b_4 ,mem_patch0b 
+0e11 09800010 parse demod ,bucket ,16 
+0e12 20230e65 branch error_payload_crc ,crc_failed 
+0e13 20400ddd call check_enc_ccm 
+0e14 20407d96 call enable_user2 
+0e15 245a6bd6 ncall ccm_br_decrypt_new ,blank 
+0e16 24360e6c nbranch error_mic_error ,user2 
+0e17 20404bd5 call rf_debug_rx_crc_line 
+0e18 6fe0c5fa fetch 1 ,mem_l2cap_flow_ctrl_flag 
+0e19 c0008e6c beq l2cap_flow_ctrl_enable ,flow_ctrl 
+0e1a c5088e39 bmark1 mark_testmode ,process_dmh_cont 
+0e1b c5078e79 bmark1 mark_old_packet ,redundant_payload 
+0e1c 6fe080e4 fetch 1 ,mem_lch_code 
+0e1d 2fe00603 compare 3 ,pdata ,3 
+0e1e 20208e39 branch process_dmh_cont ,true 
+0e1f 6fe100ae fetch 2 ,mem_len 
+0e20 203a0e39 branch process_dmh_cont ,blank 
+0e21 44aec00b bpatch patch0b_5 ,mem_patch0b 
+0e22 6fe08312 fetch 1 ,mem_l2cap_rxbuff_new 
+0e23 c0008e26 beq 1 ,process_l2cap_pass_crc_buff1 
+0e24 c0010e30 beq 2 ,process_l2cap_pass_crc_buff2 
+0e25 2020137a branch assert 
+
+process_l2cap_pass_crc_buff1:
+0e26 6fe1030e fetch 2 ,mem_l2cap_rxbuff1_len 
+0e27 684900ae fetcht 2 ,mem_len 
+0e28 9840fe00 iadd temp ,pdata 
+0e29 67e1030e store 2 ,mem_l2cap_rxbuff1_len 
+0e2a 207a0000 rtn blank 
+0e2b 68491000 fetcht 2 ,mem_l2cap_rxbuff1 
+0e2c 18408404 increase 4 ,temp 
+0e2d 98467c00 isub temp ,null 
+0e2e 20428f6b call l2cap_buff1_inuse ,zero 
+0e2f 20200e39 branch process_dmh_cont 
+
+process_l2cap_pass_crc_buff2:
+0e30 6fe10310 fetch 2 ,mem_l2cap_rxbuff2_len 
+0e31 684900ae fetcht 2 ,mem_len 
+0e32 9840fe00 iadd temp ,pdata 
+0e33 67e10310 store 2 ,mem_l2cap_rxbuff2_len 
+0e34 207a0000 rtn blank 
+0e35 68491400 fetcht 2 ,mem_l2cap_rxbuff2 
+0e36 18408404 add temp ,4 ,temp 
+0e37 98467c00 isub temp ,null 
+0e38 20428f6f call l2cap_buff2_inuse ,zero 
+
+process_dmh_cont:
+0e39 44af400b bpatch patch0b_6 ,mem_patch0b 
+0e3a 6848804c fetcht 1 ,mem_state_map 
+0e3b 6fe080e4 fetch 1 ,mem_lch_code 
+0e3c 2fe00603 compare 3 ,pdata ,0x03 
+0e3d 79208406 setflag true ,smap_rxlmp ,temp 
+0e3e 7d208407 nsetflag true ,smap_rxl2cap ,temp 
+0e3f 6048804c storet 1 ,mem_state_map 
+0e40 24208e42 nbranch process_dmh_cont_rxbuf_not_use ,true 
+0e41 79200001 set1 mark_rxbuf_inuse ,mark 
+
+process_dmh_cont_rxbuf_not_use:
+0e42 c5888e4c bmark0 mark_testmode ,ack_payload 
+0e43 284ffe06 isolate1 smap_rxlmp ,temp 
+0e44 20208e4c branch ack_payload ,true 
+0e45 6fe109fa fetch 2 ,mem_tst_pktcnt_crc 
+0e46 1fe0fe01 increase 1 ,pdata 
+0e47 67e109fa store 2 ,mem_tst_pktcnt_crc 
+0e48 79200005 set1 mark_loopback ,mark 
+0e49 793f8407 set0 smap_rxl2cap ,temp 
+0e4a 793f8001 set0 mark_rxbuf_inuse ,mark 
+0e4b 6048804c storet 1 ,mem_state_map 
+
+ack_payload:
+0e4c 44afc00b bpatch patch0b_7 ,mem_patch0b 
+0e4d 20400ddd call check_enc_ccm 
+0e4e 245a6bfd ncall ccm_br_pcnt_rx_add ,blank 
+0e4f 684880ad fetcht 1 ,mem_temp_arq 
+0e50 6fe08047 fetch 1 ,mem_arq 
+0e51 79207e05 set1 arqnx ,pdata 
+0e52 284ffe02 isolate1 seqn ,temp 
+0e53 7920fe02 setflag true ,seqn ,pdata 
+0e54 280ffe0a isolate1 mark_am_addr_broadcast ,mark 
+0e55 7920fe07 setflag true ,bcast1 ,pdata 
+0e56 67e08047 store 1 ,mem_arq 
+0e57 6fe100ae fetch 2 ,mem_len 
+0e58 243a0e7c nbranch end_of_packet ,blank 
+0e59 6fe0804c fetch 1 ,mem_state_map 
+0e5a 793ffe07 set0 smap_rxl2cap ,pdata 
+0e5b 67e0804c store 1 ,mem_state_map 
+0e5c 6fe080e4 fetch 1 ,mem_lch_code 
+0e5d 2fe00e01 compare 0x01 ,pdata ,0x07 
+0e5e 20200e7c branch end_of_packet 
+
+error_header:
+0e5f 44b0400c bpatch patch0c_0 ,mem_patch0c 
+0e60 7856fc00 disable match 
+0e61 6fe1001a fetch 2 ,mem_rx_hec_err 
+0e62 1fe0fe01 increase 1 ,pdata 
+0e63 67e1001a store 2 ,mem_rx_hec_err 
+0e64 20200e7c branch end_of_packet 
+
+error_payload_crc:
+0e65 6fe1001c fetch 2 ,mem_rx_crc_err 
+0e66 1fe0fe01 increase 1 ,pdata 
+0e67 67e1001c store 2 ,mem_rx_crc_err 
+0e68 20400e6d call discard_pkt 
+0e69 c5888e6b bmark0 mark_testmode ,error_payload 
+0e6a 79200005 set1 mark_loopback ,mark 
+
+error_payload:
+0e6b 20200e7c branch end_of_packet 
+
+flow_ctrl:
+
+error_mic_error:
+0e6c 20200e65 branch error_payload_crc 
+
+discard_pkt:
+0e6d 44b0c00c bpatch patch0c_1 ,mem_patch0c 
+0e6e 6fe080e4 fetch 1 ,mem_lch_code 
+0e6f 2fe00603 compare 3 ,pdata ,0x03 
+0e70 24208e75 nbranch discard_pkt_l2cap ,true 
+
+discard_pkt_lmp:
+0e71 6848804c fetcht 1 ,mem_state_map 
+0e72 793f8406 set0 smap_rxlmp ,temp 
+0e73 6048804c storet 1 ,mem_state_map 
+0e74 20600000 rtn 
+
+discard_pkt_l2cap:
+0e75 6848804c fetcht 1 ,mem_state_map 
+0e76 793f8407 set0 smap_rxl2cap ,temp 
+0e77 6048804c storet 1 ,mem_state_map 
+0e78 20600000 rtn 
+
+redundant_payload:
+0e79 6fe08047 fetch 1 ,mem_arq 
+0e7a 79207e05 set1 arqnx ,pdata 
+0e7b 67e08047 store 1 ,mem_arq 
+
+end_of_packet:
+0e7c 44b1400c bpatch patch0c_2 ,mem_patch0c 
+0e7d 784efc00 disable encode_fec0 
+0e7e 784e7c00 disable encode_fec2 
+0e7f 7846fc00 disable decode_fec0 
+0e80 78467c00 disable decode_fec2 
+0e81 7844fc00 disable enable_crc 
+0e82 78477c00 disable encrypt 
+0e83 7843fc00 disable enable_white 
+0e84 2030914b branch shutdown_radio ,is_rx 
+0e85 37d38200 until null ,tx_clear 
+0e86 20000064 nop 100 
+0e87 2020114b branch shutdown_radio 
+
+process_fhs:
+0e88 44b1c00c bpatch patch0c_3 ,mem_patch0c 
+0e89 7824fc00 enable enable_crc 
+0e8a 78267c00 enable decode_fec2 
+0e8b 09800048 parse demod ,bucket ,72 
+0e8c 2feffe3a isolate1 58 ,pdata 
+0e8d 79208000 setflag true ,mark_fhs_eir ,mark 
+0e8e 1c020400 copy bt_adr ,temp 
+0e8f 57e04000 ialigned bt_adr 
+0e90 57e03c00 ialigned fhs0 
+0e91 782afc00 pulse recalc 
+0e92 380bffff setsect 2 ,0xfffff 
+0e93 380cffff setsect 3 ,0x0ffff 
+0e94 20000020 nop 32 
+0e95 29a80000 iverify fhs_parity 
+0e96 1d827e00 deposit lap 
+0e97 67e180c7 store 3 ,extm_lap 
+0e98 1da27e00 deposit uap 
+0e99 67e080ca store 1 ,extm_uap 
+0e9a 18424000 copy temp ,bt_adr 
+0e9b 20208e9d branch fhs_parity_ok ,true 
+0e9c 20200e6b branch error_payload 
+
+fhs_parity_ok:
+0e9d 44b2400c bpatch patch0c_4 ,mem_patch0c 
+0e9e 09800048 parse demod ,bucket ,72 
+0e9f 57e03e00 ialigned fhs1 
+0ea0 57e00800 ialigned am_addr 
+0ea1 57e05c00 ialigned nap 
+0ea2 57e02400 ialigned regb 
+0ea3 18007e00 force 0 ,pdata 
+0ea4 09800010 parse demod ,bucket ,16 
+0ea5 20230e6b branch error_payload ,crc_failed 
+0ea6 20404bd5 call rf_debug_rx_crc_line 
+0ea7 5ffffffc setarg 0x0ffffffc 
+0ea8 9a417e00 iand regb ,pdata 
+0ea9 67e200b4 store 4 ,mem_clke_bt 
+0eaa 1ba27e00 deposit fhs_class 
+0eab 67e180c4 store 3 ,extm_class 
+0eac 1b827e00 deposit fhs_misc 
+0ead 67e080c2 store 1 ,extm_fhs_misc 
+0eae 18827e00 deposit am_addr 
+0eaf 67e080c3 store 1 ,extm_newconn_am_addr 
+0eb0 1dc27e00 deposit nap 
+0eb1 67e100cb store 2 ,extm_nap 
+0eb2 1c227e00 deposit bt_clk 
+0eb3 08008220 inject rxf ,32 
+0eb4 28201e02 compare type_fhs ,type ,0x0f 
+0eb5 7920800b setflag true ,mark_fhs_already_good ,mark 
+0eb6 20200e7c branch end_of_packet 
+
+clear_got_tx:
+0eb7 44b2c00c bpatch patch0c_5 ,mem_patch0c 
+0eb8 6fe08047 fetch 1 ,mem_arq 
+0eb9 c4018000 rtnbit0 wack 
+0eba 793ffe03 set0 wack ,pdata 
+0ebb 79407e06 setflip seqnx ,pdata 
+0ebc 67e08047 store 1 ,mem_arq 
+0ebd 20400ddd call check_enc_ccm 
+0ebe 245a6bc3 ncall ccm_br_pcnt_tx_add ,blank 
+0ebf 6fe0c0cc fetch 1 ,mem_last_type 
+0ec0 c0098ece beq type_lmp ,clear_got_txlmp 
+0ec1 c1038000 rtneq type_hv3 
+0ec2 6fe0804b fetch 1 ,mem_op 
+0ec3 c4030000 rtnbit0 op_txl2cap ,pdata 
+0ec4 793ffe06 set0 op_txl2cap ,pdata 
+0ec5 79207e07 set1 op_pkt_comp ,pdata 
+0ec6 67e0804b store 1 ,mem_op 
+0ec7 793f8002 set0 mark_tx_l2cap ,mark 
+0ec8 6fe144dd fetch 2 ,mem_l2cap_tx_multi_offset 
+0ec9 247a0000 nrtn blank 
+0eca 6fe0804b fetch 1 ,mem_op 
+0ecb 793ffe07 set0 op_pkt_comp ,pdata 
+0ecc 67e0804b store 1 ,mem_op 
+0ecd 202051fd branch l2cap_malloc_free 
+
+clear_got_txlmp:
+0ece 44b3400c bpatch patch0c_6 ,mem_patch0c 
+0ecf 6fe0c5fd fetch 1 ,mem_lmo_header_opcode_x 
+0ed0 1fe37e00 rshift pdata ,pdata 
+0ed1 c0088ee1 beq lmp_start_encryption_req ,start_encryption 
+0ed2 c0090eeb beq lmp_stop_encryption_req ,stop_encryption 
+0ed3 c00c0f12 beq lmp_unsniff_req ,sniff_exit 
+0ed4 c03f8ed9 beq lmp_escape ,clear_lmp_escape 
+0ed5 c1818000 rtnne lmp_accepted 
+0ed6 6fe0838c fetch 1 ,mem_lmo_payload 
+0ed7 c0088edc beq lmp_start_encryption_req ,clear_send_setup_complete 
+0ed8 20600000 rtn 
+
+clear_lmp_escape:
+0ed9 6fe0838c fetch 1 ,mem_lmo_payload 
+0eda 79207e07 set1 7 ,pdata 
+0edb 20600000 rtn 
+
+clear_send_setup_complete:
+0edc 20748000 rtn master 
+0edd 6fe08030 fetch 1 ,mem_state 
+0ede c3820000 rtnbit1 state_conn_comp 
+0edf 70007c31 jam lmp_setup_complete ,mem_lmo_opcode2 
+0ee0 20600000 rtn 
+
+start_encryption:
+0ee1 44b3c00c bpatch patch0c_7 ,mem_patch0c 
+0ee2 6fe0804c fetch 1 ,mem_state_map 
+0ee3 79207e02 set1 smap_encryption ,pdata 
+0ee4 67e0804c store 1 ,mem_state_map 
+0ee5 70801101 jam 1 ,core_encrypt 
+0ee6 18007e00 force 0 ,pdata 
+0ee7 67e2c6a8 store 5 ,mem_ccm_pcnt_rx 
+0ee8 79207e25 set1 br_ccm_directionbit ,pdata 
+0ee9 67e2c6a3 store 5 ,mem_ccm_pcnt_tx 
+0eea 20600000 rtn 
+
+stop_encryption:
+0eeb 44b4400d bpatch patch0d_0 ,mem_patch0d 
+0eec 6fe0804c fetch 1 ,mem_state_map 
+0eed 793ffe02 set0 smap_encryption ,pdata 
+0eee 67e0804c store 1 ,mem_state_map 
+0eef 70801100 jam 0 ,core_encrypt 
+0ef0 20600000 rtn 
+
+sniff_init:
+0ef1 44b4c00d bpatch patch0d_1 ,mem_patch0d 
+0ef2 1c40a203 add clkn_bt ,3 ,rega 
+0ef3 20348ef5 branch sniff_init_master ,master 
+0ef4 1d00a203 add clke_bt ,3 ,rega 
+
+sniff_init_master:
+0ef5 68490032 fetcht 2 ,mem_tsniff 
+0ef6 1a227e00 deposit rega 
+0ef7 793ffe1b set0 27 ,pdata 
+0ef8 9846fc00 idiv temp 
+0ef9 6fe10075 fetch 2 ,mem_dsniff 
+0efa 20407d31 call wait_div_end 
+0efb 18072600 remainder regc 
+0efc 9a667e00 isub regc ,pdata 
+0efd 20210eff branch sniff_init_nowrap ,positive 
+0efe 9840fe00 iadd temp ,pdata 
+
+sniff_init_nowrap:
+0eff 9a20fe00 iadd rega ,pdata 
+0f00 67e20034 store 4 ,mem_sniff_anchor 
+0f01 70464900 jam switch_flag_init ,mem_switch_flag 
+0f02 6fe08030 fetch 1 ,mem_state 
+0f03 79207e01 set1 state_insniff ,pdata 
+0f04 67e08030 store 1 ,mem_state 
+0f05 6fe08073 fetch 1 ,mem_sniff_attempt 
+0f06 67e08088 store 1 ,mem_current_sniff_attempt 
+0f07 58000000 setarg 0 
+0f08 67e1c16e store 3 ,mem_sniff_rcv 
+0f09 67e1c171 store 3 ,mem_sniff_lost 
+0f0a 67e0c15e store 1 ,mem_sniff_unint_lost 
+0f0b 70095b0b jam bt_evt_enter_sniff ,mem_fifo_temp 
+0f0c 204077a7 call ui_ipc_send_event 
+0f0d 6fe140c8 fetch 2 ,mem_rx_window_sniff 
+0f0e 67e1003e store 2 ,mem_rx_window 
+0f0f 24748000 nrtn master 
+0f10 18808fff add am_addr ,-1 ,queue 
+0f11 20600000 rtn 
+
+sniff_exit:
+0f12 44b5400d bpatch patch0d_2 ,mem_patch0d 
+0f13 6fe08030 fetch 1 ,mem_state 
+0f14 c4008000 rtnbit0 state_insniff 
+0f15 793ffe01 set0 state_insniff ,pdata 
+0f16 67e08030 store 1 ,mem_state 
+0f17 6fe140c6 fetch 2 ,mem_rx_window_init 
+0f18 67e1003e store 2 ,mem_rx_window 
+0f19 7855fc00 disable wake 
+0f1a 70095b0c jam bt_evt_exit_sniff ,mem_fifo_temp 
+0f1b 202077a7 branch ui_ipc_send_event 
+
+check_attempt:
+0f1c 44b5c00d bpatch patch0d_3 ,mem_patch0d 
+0f1d 78377c00 enable attempt 
+0f1e 6fe08030 fetch 1 ,mem_state 
+0f1f c2808f29 bbit1 state_insniff ,check_attempt_sniff 
+0f20 c6088000 rtnmark1 mark_testmode 
+0f21 6fe08047 fetch 1 ,mem_arq 
+0f22 c3818000 rtnbit1 wack 
+0f23 6fe08048 fetch 1 ,mem_lmp_to_send 
+0f24 247a0000 nrtn blank 
+0f25 6fe0804b fetch 1 ,mem_op 
+0f26 c3830000 rtnbit1 op_txl2cap 
+
+check_attempt_nomore:
+0f27 18007e00 force 0 ,pdata 
+0f28 20600000 rtn 
+
+check_attempt_sniff:
+0f29 c3010f33 bbit0 state_insco ,check_attempt_not_sco 
+0f2a 6fe08088 fetch 1 ,mem_current_sniff_attempt 
+0f2b c0010f2f beq 2 ,check_attempt_sniff_restore_sco 
+0f2c 6fe08047 fetch 1 ,mem_arq 
+0f2d c2818f3c bbit1 wack ,check_attempt_notimeout 
+0f2e c5840f3c bmark0 mark_esco_rxok ,check_attempt_notimeout 
+
+check_attempt_sniff_restore_sco:
+0f2f 24348f3c nbranch check_attempt_notimeout ,master 
+0f30 6fe08048 fetch 1 ,mem_lmp_to_send 
+0f31 243a0f3c nbranch check_attempt_notimeout ,blank 
+
+check_attempt_sco_master:
+0f32 20200f27 branch check_attempt_nomore 
+
+check_attempt_not_sco:
+0f33 6fe08088 fetch 1 ,mem_current_sniff_attempt 
+0f34 c0808f3c bne 1 ,check_attempt_notimeout 
+0f35 6fe08089 fetch 1 ,mem_current_sniff_timeout 
+0f36 203a0f3c branch check_attempt_notimeout ,blank 
+0f37 1fe0ffff increase -1 ,pdata 
+0f38 67e08089 store 1 ,mem_current_sniff_timeout 
+0f39 6fe08047 fetch 1 ,mem_arq 
+0f3a c3818000 rtnbit1 wack 
+0f3b 24768000 nrtn match 
+
+check_attempt_notimeout:
+0f3c 6fe08088 fetch 1 ,mem_current_sniff_attempt 
+0f3d 1fe0ffff increase -1 ,pdata 
+0f3e 67e08088 store 1 ,mem_current_sniff_attempt 
+0f3f 20600000 rtn 
+
+sniff_check_window:
+0f40 44b6400d bpatch patch0d_4 ,mem_patch0d 
+0f41 78487c00 disable swfine 
+0f42 18423600 copy temp ,stop_watch 
+0f43 20400a6d call context_search_sniff_window 
+0f44 78547c00 disable user 
+0f45 24628000 nrtn zero 
+0f46 18003600 force 0 ,stop_watch 
+0f47 78347c00 enable user 
+0f48 20600000 rtn 
+
+check_esco_amaddr:
+0f49 6fe0c15d fetch 1 ,mem_esco_addr 
+0f4a a881fe00 icompare 0xff ,am_addr 
+0f4b 20600000 rtn 
+
+parse_l2cap:
+0f4c 44b6c00d bpatch patch0d_5 ,mem_patch0d 
+0f4d 793f8001 set0 mark_rxbuf_inuse ,mark 
+
+parse_l2cap_cont:
+0f4e 70031b00 jam l2cap_rx_clear ,mem_l2cap_rx_done 
+0f4f 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f50 207a0000 rtn blank 
+0f51 2feffe00 isolate1 l2cap_inuse_buff1 ,pdata 
+0f52 d8c01000 arg mem_l2cap_rxbuff1 ,contr 
+0f53 2040ccf3 call process_rx_l2cap_pkt ,true 
+0f54 44b7400d bpatch patch0d_6 ,mem_patch0d 
+0f55 6fe0831b fetch 1 ,mem_l2cap_rx_done 
+0f56 c0008f5f beq l2cap_rx_done ,parse_l2cap_release_buff1 
+0f57 70031b00 jam l2cap_rx_clear ,mem_l2cap_rx_done 
+0f58 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f59 c4008000 rtnbit0 l2cap_inuse_buff2 
+0f5a d8c01400 arg mem_l2cap_rxbuff2 ,contr 
+0f5b 20404cf3 call process_rx_l2cap_pkt 
+0f5c 6fe0831b fetch 1 ,mem_l2cap_rx_done 
+0f5d c0008f65 beq l2cap_rx_done ,parse_l2cap_release_buff2 
+0f5e 20600000 rtn 
+
+parse_l2cap_release_buff1:
+0f5f 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f60 793ffe00 set0 l2cap_inuse_buff1 ,pdata 
+0f61 67e08314 store 1 ,mem_l2cap_rxbuff_inuse 
+0f62 58000000 setarg 0 
+0f63 67e1030e store 2 ,mem_l2cap_rxbuff1_len 
+0f64 20600000 rtn 
+
+parse_l2cap_release_buff2:
+0f65 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f66 793ffe01 set0 l2cap_inuse_buff2 ,pdata 
+0f67 67e08314 store 1 ,mem_l2cap_rxbuff_inuse 
+0f68 58000000 setarg 0 
+0f69 67e10310 store 2 ,mem_l2cap_rxbuff2_len 
+0f6a 20600000 rtn 
+
+l2cap_buff1_inuse:
+0f6b 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f6c 79207e00 set1 l2cap_inuse_buff1 ,pdata 
+0f6d 67e08314 store 1 ,mem_l2cap_rxbuff_inuse 
+0f6e 20600000 rtn 
+
+l2cap_buff2_inuse:
+0f6f 6fe08314 fetch 1 ,mem_l2cap_rxbuff_inuse 
+0f70 79207e01 set1 l2cap_inuse_buff2 ,pdata 
+0f71 67e08314 store 1 ,mem_l2cap_rxbuff_inuse 
+0f72 20600000 rtn 
+
+slave_send_access:
+0f73 44b7c00d bpatch patch0d_7 ,mem_patch0d 
+0f74 1d00c201 add clke_bt ,1 ,bt_clk 
+0f75 2040113c call fetch_extm_bt_adr 
+0f76 18004803 force 0x03 ,freq_mode 
+0f77 20401124 call tx_radio_freq 
+0f78 2040133e call start_transmitter 
+0f79 2040134c call start_tx_external 
+0f7a 20201351 branch send_access_word 
+
+slave_conn_send_packet:
+0f7b 44b8400e bpatch patch0e_0 ,mem_patch0e 
+0f7c 2040133a call rf_setup_time_slave_slot 
+0f7d 1d027e00 deposit clke_bt 
+0f7e 684a40d1 fetcht 4 ,mem_next_btclk 
+0f7f 98467e00 isub temp ,pdata 
+0f80 c1808000 rtnne 1 
+0f81 28203e00 compare type_null ,type ,0x1f 
+0f82 24208f85 nbranch slave_conn_send_access ,true 
+0f83 6fe08019 fetch 1 ,mem_rx_type 
+0f84 207a0000 rtn blank 
+
+slave_conn_send_access:
+0f85 20400f73 call slave_send_access 
+
+transmit_packet:
+0f86 28203e10 compare type_id ,type ,0x1f 
+0f87 20208e7c branch end_of_packet ,true 
+0f88 1c230400 rshift bt_clk ,temp 
+0f89 18419c40 or temp ,0x40 ,white_init 
+
+transmit_packet_whitened:
+0f8a 44b8c00e bpatch patch0e_1 ,mem_patch0e 
+0f8b 7823fc00 enable enable_white 
+0f8c 78257c00 enable enable_hec 
+0f8d 782dfc00 enable encode_fec1 
+0f8e 793f8010 set0 mark_longpacket ,mark 
+0f8f 18827e00 deposit am_addr 
+0f90 08008603 inject mod ,3 
+0f91 18227e00 deposit type 
+0f92 08008604 inject mod ,4 
+0f93 6fe08047 fetch 1 ,mem_arq 
+0f94 08008004 inject bucket ,4 
+0f95 08008603 inject mod ,3 
+0f96 78247c00 enable enable_parity 
+0f97 08008608 inject mod ,8 
+0f98 784dfc00 disable encode_fec1 
+0f99 78447c00 disable enable_parity 
+0f9a 78457c00 disable enable_hec 
+0f9b 793faa02 set0 psk3m ,radio_ctrl 
+0f9c d8400000 arg 0 ,temp 
+0f9d 20401309 call reserve_slot 
+0f9e 44b9400e bpatch patch0e_2 ,mem_patch0e 
+0f9f 18217e1f and type ,0x1f ,pdata 
+0fa0 c0098fce beq type_lmp ,transmit_lmp 
+0fa1 c0000e7c beq type_null ,end_of_packet 
+0fa2 c0008e7c beq type_poll ,end_of_packet 
+0fa3 c0010faf beq type_fhs ,transmit_fhs 
+0fa4 c0018fdd beq type_dm1 ,transmit_dm1 
+0fa5 c0020fe3 beq type_dh1 ,transmit_dh1 
+0fa6 c0040fe2 beq type_3dh1 ,transmit_3dh1 
+0fa7 d8400004 arg 4 ,temp 
+0fa8 20401309 call reserve_slot 
+0fa9 c0050fdf beq type_dm3 ,transmit_dm3 
+0faa c0058fe5 beq type_dh3 ,transmit_dh3 
+0fab d8400008 arg 8 ,temp 
+0fac 20401309 call reserve_slot 
+0fad c0078fe5 beq type_dh5 ,transmit_dh5 
+0fae 20200fdf branch transmit_dm5 
+
+transmit_fhs:
+0faf 44b9c00e bpatch patch0e_3 ,mem_patch0e 
+0fb0 6fe080e5 fetch 1 ,mem_fhs_am_addr 
+0fb1 1fe20800 icopy am_addr 
+0fb2 6fe0808d fetch 1 ,mem_fhs_misc 
+0fb3 1fe23800 icopy fhs_misc 
+0fb4 6fe1c0b2 fetch 3 ,mem_class 
+0fb5 1fe23a00 icopy fhs_class 
+0fb6 6fe140ac fetch 2 ,mem_nap 
+0fb7 1fe25c00 icopy nap 
+0fb8 7824fc00 enable enable_crc 
+0fb9 782e7c00 enable encode_fec2 
+0fba 1c022200 copy bt_adr ,rega 
+0fbb 20401134 call fetch_self_bt_adr 
+0fbc 782afc00 pulse recalc 
+0fbd 20000020 nop 32 
+0fbe 1c221600 copy bt_clk ,timeup 
+0fbf 6fe200b0 fetch 4 ,mem_clkn_bt 
+0fc0 1fe24200 icopy bt_clk 
+0fc1 53c07e00 preload fhs0 
+0fc2 79207e3a set1 58 ,pdata 
+0fc3 08008648 inject mod ,72 
+0fc4 53e07e00 preload fhs1 
+0fc5 08008648 inject mod ,72 
+0fc6 19624200 copy timeup ,bt_clk 
+0fc7 1a224000 copy rega ,bt_adr 
+0fc8 78247c00 enable enable_parity 
+0fc9 08008610 inject mod ,16 
+0fca 78447c00 disable enable_parity 
+0fcb 20200e7c branch end_of_packet 
+
+transmit_lmp_ccm:
+0fcc 78477c00 disable encrypt 
+0fcd 20200fd2 branch transmit_lmp_common 
+
+transmit_lmp:
+0fce 44ba400e bpatch patch0e_4 ,mem_patch0e 
+0fcf 20400ddd call check_enc_ccm 
+0fd0 243a0fcc nbranch transmit_lmp_ccm ,blank 
+0fd1 78277c00 enable encrypt 
+
+transmit_lmp_common:
+0fd2 7824fc00 enable enable_crc 
+0fd3 782e7c00 enable encode_fec2 
+0fd4 6fe0838a fetch 1 ,mem_lmo_header_length 
+0fd5 1fe105f8 and pdata ,0x1f8 ,temp 
+0fd6 d8c0038a arg mem_lmo_header_length ,contr 
+0fd7 18408408 increase 8 ,temp 
+0fd8 18497200 rshift3 temp ,loopcnt 
+
+transmit_lmp_loop:
+0fd9 efe08006 ifetch 1 ,contr 
+0fda 08008608 inject mod ,8 
+0fdb c2000fd9 loop transmit_lmp_loop 
+0fdc 2020100f branch transmit_end 
+
+transmit_dm1:
+0fdd 782e7c00 enable encode_fec2 
+0fde 20200fe8 branch transmit_dmh 
+
+transmit_dm3:
+
+transmit_dm5:
+0fdf 782e7c00 enable encode_fec2 
+0fe0 79200010 set1 mark_longpacket ,mark 
+0fe1 20200fe8 branch transmit_dmh 
+
+transmit_3dh1:
+0fe2 79202a02 set1 psk3m ,radio_ctrl 
+
+transmit_dh1:
+0fe3 782efc00 enable encode_fec0 
+0fe4 20200fe8 branch transmit_dmh 
+
+transmit_dh3:
+
+transmit_dh5:
+0fe5 79202a02 set1 psk3m ,radio_ctrl 
+0fe6 782efc00 enable encode_fec0 
+0fe7 79200010 set1 mark_longpacket ,mark 
+
+transmit_dmh:
+0fe8 44bac00e bpatch patch0e_5 ,mem_patch0e 
+0fe9 6fe0804c fetch 1 ,mem_state_map 
+0fea c3028ffd bbit0 smap_edr ,transmit_noedr 
+0feb 18267c03 sub type ,3 ,null 
+0fec 20210ffd branch transmit_noedr ,positive 
+0fed 78477c00 disable encrypt 
+0fee 784e7c00 disable encode_fec2 
+0fef 782efc00 enable encode_fec0 
+0ff0 7843fc00 disable enable_white 
+0ff1 79202a01 set1 psk ,radio_ctrl 
+0ff2 2aaffe02 isolate1 psk3m ,radio_ctrl 
+0ff3 20208ff7 branch transmit_edr3m ,true 
+0ff4 580abeee setarg 0xabeee 
+0ff5 08008614 inject mod ,20 
+0ff6 20200ffb branch transmit_edr_sync_end 
+
+transmit_edr3m:
+0ff7 585faeba setarg 0x5faeba 
+0ff8 08008618 inject mod ,24 
+0ff9 58000012 setarg 0x12 
+0ffa 08008606 inject mod ,6 
+
+transmit_edr_sync_end:
+0ffb 7823fc00 enable enable_white 
+0ffc 79200010 set1 mark_longpacket ,mark 
+
+transmit_noedr:
+0ffd 78277c00 enable encrypt 
+0ffe 7824fc00 enable enable_crc 
+0fff c502901d bmark1 mark_loopback ,transmit_loopback 
+1000 6fe0c1e8 fetch 1 ,mem_tx_lch 
+1001 08008603 inject mod ,3 
+1002 6fe141e9 fetch 2 ,mem_tx_len 
+1003 98007200 iforce loopcnt 
+1004 c5081007 bmark1 mark_longpacket ,transmit_long 
+1005 08008605 inject mod ,5 
+1006 20201008 branch transmit_stuff 
+
+transmit_long:
+1007 0800860d inject mod ,13 
+
+transmit_stuff:
+1008 1f227e00 deposit loopcnt 
+1009 203a100f branch transmit_end ,blank 
+100a 6fe100be fetch 2 ,mem_txptr 
+100b 98000c00 iforce contr 
+
+transmit_stuff_loop:
+100c efe08006 ifetch 1 ,contr 
+100d 08008608 inject mod ,8 
+100e c200100c loop transmit_stuff_loop 
+
+transmit_end:
+100f 44bb400e bpatch patch0e_6 ,mem_patch0e 
+1010 20400ddd call check_enc_ccm 
+1011 203a1014 branch transmit_end2 ,blank 
+1012 6fe2026f fetch 4 ,mem_le_mic 
+1013 08008620 inject mod ,32 
+
+transmit_end2:
+1014 78247c00 enable enable_parity 
+1015 08008610 inject mod ,16 
+1016 78447c00 disable enable_parity 
+1017 20400ce4 call set_wait_ack 
+1018 6fe0804c fetch 1 ,mem_state_map 
+1019 c3028e7c bbit0 smap_edr ,end_of_packet 
+101a 18007e00 force 0 ,pdata 
+101b 08008606 inject mod ,6 
+101c 20200e7c branch end_of_packet 
+
+transmit_loopback:
+101d 44bbc00e bpatch patch0e_7 ,mem_patch0e 
+101e c5081025 bmark1 mark_longpacket ,transmit_loopback_long 
+
+transmit_loopback_short:
+101f 6fe080e4 fetch 1 ,mem_lch_code 
+1020 08008603 inject mod ,3 
+1021 6fe080ae fetch 1 ,mem_len 
+1022 98002600 iforce regc 
+1023 08008605 inject mod ,5 
+1024 2020102a branch transmit_loopback_cont 
+
+transmit_loopback_long:
+1025 6fe080e4 fetch 1 ,mem_lch_code 
+1026 08008603 inject mod ,3 
+1027 6fe100ae fetch 2 ,mem_len 
+1028 98002600 iforce regc 
+1029 0800860d inject mod ,13 
+
+transmit_loopback_cont:
+102a d8c01000 arg mem_l2cap_rxbuff1 ,contr 
+
+transmit_loopback_loop:
+102b 1a627c00 copy regc ,null 
+102c 20229031 branch transmit_loopback_end ,zero 
+102d efe08006 ifetch 1 ,contr 
+102e 08008608 inject mod ,8 
+102f 1a60a7ff increase -1 ,regc 
+1030 2020102b branch transmit_loopback_loop 
+
+transmit_loopback_end:
+1031 6fe109fc fetch 2 ,mem_tst_pktcnt_dmh 
+1032 1fe0fe01 increase 1 ,pdata 
+1033 67e109fc store 2 ,mem_tst_pktcnt_dmh 
+1034 2020100f branch transmit_end 
+
+apply_switch_clke:
+1035 6fe200b4 fetch 4 ,mem_clke_bt 
+1036 1fe0a207 add pdata ,7 ,rega 
+1037 6fe100c0 fetch 2 ,mem_slot_offset 
+1038 243a103b nbranch apply_switch_nozero ,blank 
+1039 1a20a3fd increase -3 ,rega 
+103a 20201043 branch apply_switch_wait_loop 
+
+apply_switch_nozero:
+103b 1feffe0c mul32 pdata ,12 ,pdata 
+103c 68590040 fetcht 2 ,core_halfslot 
+103d 18408401 increase 1 ,temp 
+
+apply_switch_loop:
+103e 98467e00 isub temp ,pdata 
+103f 24211042 nbranch apply_switch_bt ,positive 
+1040 1a20a3ff increase -1 ,rega 
+1041 2020103e branch apply_switch_loop 
+
+apply_switch_bt:
+1042 1fe67e00 sub pdata ,0 ,pdata 
+
+apply_switch_wait_loop:
+1043 37d18200 until null ,oneslot 
+1044 2c400600 compare 0 ,clkn_bt ,3 
+1045 24209043 nbranch apply_switch_wait_loop ,true 
+1046 98005200 iforce clke_rt 
+1047 1a225000 copy rega ,clke_bt 
+1048 98005200 iforce clke_rt 
+1049 20600000 rtn 
+
+calc_slot_offset:
+104a 44bc400f bpatch patch0f_0 ,mem_patch0f 
+104b 37d10200 until null ,halfslot 
+104c 1b427e00 deposit clke 
+104d 98000c00 iforce contr 
+104e 1ff17e00 rshift16 ,pdata ,pdata 
+104f 9c467200 isub clkn_bt ,loopcnt 
+1050 1f217203 and_into 3 ,loopcnt 
+1051 24229054 nbranch calc_bt_portion ,zero 
+1052 18007e00 force 0 ,pdata 
+1053 20201058 branch calc_skip_bt 
+
+calc_bt_portion:
+1054 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+1055 18007e00 force 0 ,pdata 
+
+calc_slot_offset_loop:
+1056 9840fe00 iadd temp ,pdata 
+1057 c2001056 loop calc_slot_offset_loop 
+
+calc_skip_bt:
+1058 98c0fe00 iadd contr ,pdata 
+1059 1fe6fc0c div pdata ,12 
+105a 20407d2e call get_div_result 
+105b 67e100c0 store 2 ,mem_slot_offset 
+105c 20600000 rtn 
+
+calc_clke_offset:
+105d 44bcc00f bpatch patch0f_1 ,mem_patch0f 
+105e 1b427e00 deposit clke 
+105f 1b220400 copy clkn ,temp 
+1060 98467c00 isub temp ,null 
+1061 7d217e2c nsetflag positive ,44 ,pdata 
+1062 98460400 isub temp ,temp 
+1063 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+1064 284c000f isolate0 15 ,temp 
+1065 2020906b branch calc_clke_pos ,true 
+1066 18426000 copy temp ,alarm 
+1067 d8410000 arg 0x10000 ,temp 
+1068 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+1069 98467e00 isub temp ,pdata 
+106a 9e008400 iadd alarm ,temp 
+
+calc_clke_pos:
+106b 604b028f storet 6 ,mem_le_clk_offset 
+106c 207b0000 rtn le 
+106d 604b0038 storet 6 ,mem_clk_offset 
+106e 20600000 rtn 
+
+calc_clke:
+106f 78587c00 disable clknt 
+1070 6fe3028f fetch 6 ,mem_le_clk_offset 
+1071 203b1073 branch calc_clke2 ,le 
+1072 6fe30038 fetch 6 ,mem_clk_offset 
+
+calc_clke2:
+1073 9b20e000 iadd clkn ,alarm 
+1074 1e00e00a increase 10 ,alarm 
+1075 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+1076 9e067e00 isub alarm ,pdata 
+1077 2fec000f isolate0 15 ,pdata 
+1078 2020907f branch calc_clke_pos_adj ,true 
+1079 58010000 setarg 0x10000 
+107a 6b010163 fetchr regd ,2 ,mem_param_rt_rthalfslot 
+107b 9b067e00 isub regd ,pdata 
+107c 9e00e000 iadd alarm ,alarm 
+
+calc_clke_pos2:
+107d 1e023400 copy alarm ,clke 
+107e 20600000 rtn 
+
+calc_clke_pos_adj:
+107f 18007c00 force 0 ,null 
+1080 2020107d branch calc_clke_pos2 
+
+calc_mod_value_scale:
+1081 203b10a9 branch calc_mod_value_scale_le2 ,le 
+1082 58402c17 setarg 0x402c17 
+1083 67e189ee store 3 ,mem_scale_ratio 
+1084 19317e00 rshift16 access ,pdata 
+1085 1fe90400 rshift3 pdata ,temp 
+1086 df200030 arg 48 ,loopcnt 
+
+calc_mod_value_scale_do:
+1087 58000000 setarg 0 
+1088 67e189f1 store 3 ,mem_xcnt 
+
+calc_mod_vs_loop:
+1089 18437e00 rshift temp ,pdata 
+108a 9842fe00 ixor temp ,pdata 
+108b 1fe17e03 and_into 3 ,pdata 
+108c c300908e bbit0 1 ,calc_mod_vs01 
+108d 1fe0ffff pincrease -1 
+
+calc_mod_vs01:
+108e d8a009f1 arg mem_xcnt ,contw 
+108f 98a08a00 iadd contw ,contw 
+1090 efe08005 ifetch 1 ,contw 
+1091 1fe0fe01 pincrease 1 
+1092 e7e08005 istore 1 ,contw 
+1093 18430400 rshift temp ,temp 
+1094 c2001089 loop calc_mod_vs_loop 
+1095 da2009f3 arg mem_xcnt + 2 ,rega 
+1096 da4009ee arg mem_scale_ratio ,regb 
+1097 da600000 arg 0 ,regc 
+1098 df200003 arg 3 ,loopcnt 
+
+calc_mod_vs_loop2:
+1099 efe08011 ifetch 1 ,rega 
+109a e8408012 ifetcht 1 ,regb 
+109b 984ffe00 imul32 temp ,pdata 
+109c 9a60a600 iadd regc ,regc 
+109d 1a20a3ff increase -1 ,rega 
+109e 1a40a401 increase 1 ,regb 
+109f c2001099 loop calc_mod_vs_loop2 
+10a0 6fe089ef fetch 1 ,mem_scale_ratio + 1 
+10a1 1fed7e00 lshift8 pdata ,pdata 
+10a2 1ff27e00 lshift4 pdata ,pdata 
+10a3 9a66fc00 idiv regc 
+10a4 20407d31 call wait_div_end 
+10a5 1807fe00 quotient pdata 
+10a6 67f10938 store 2 ,mod_value_scale1 
+10a7 67e109f4 store 2 ,mem_scale_ratio_temp 
+10a8 20600000 rtn 
+
+calc_mod_value_scale_le2:
+10a9 6fe109f4 fetch 2 ,mem_scale_ratio_temp 
+10aa 67f10938 store 2 ,mod_value_scale1 
+10ab 20600000 rtn 
+
+calc_mod_value_scale_le:
+10ac 58402d19 setarg 0x402d19 
+10ad 67e189ee store 3 ,mem_scale_ratio 
+10ae 192f7e00 rshift32 access ,pdata 
+10af 1fe90400 rshift3 pdata ,temp 
+10b0 df200020 arg 32 ,loopcnt 
+10b1 20201087 branch calc_mod_value_scale_do 
+
+calc_radio_freq:
+10b2 44bd400f bpatch patch0f_2 ,mem_patch0f 
+10b3 2040115d call set_sync_on 
+10b4 1c227e00 copy bt_clk ,pdata 
+10b5 1fe17f80 and_into 0x180 ,pdata 
+10b6 2c800e03 compare 3 ,freq_mode ,0x07 
+10b7 242090bb nbranch freq_not_connection ,true 
+10b8 1fe97e00 rshift3 pdata ,pdata 
+10b9 9ae0fe00 iadd freq_index ,pdata 
+10ba 202010bc branch do_hop_mod_now 
+
+freq_not_connection:
+10bb 1ae27e00 copy freq_index ,pdata 
+
+do_hop_mod_now:
+10bc 1fe6fc4f div pdata ,79 
+10bd 782afc00 pulse recalc 
+10be 20407d31 call wait_div_end 
+10bf 18072200 remainder rega 
+10c0 1a2085d8 add rega ,-40 ,temp 
+10c1 202110c4 branch odd_half ,positive 
+10c2 1a238400 lshift rega ,temp 
+10c3 202010c6 branch freq_result 
+
+odd_half:
+10c4 18438400 lshift temp ,temp 
+10c5 18408401 increase 1 ,temp 
+
+freq_result:
+10c6 44bdc00f bpatch patch0f_3 ,mem_patch0f 
+10c7 6fe08031 fetch 1 ,mem_mode 
+10c8 c30190d7 bbit0 afh_change ,afh_process_con 
+
+afh_process_0:
+10c9 6fe240d9 fetch 4 ,mem_afh_instant 
+10ca 9c267c00 isub bt_clk ,null 
+10cb 202110d7 branch afh_process_con ,positive 
+10cc 204010f6 call afh_clear 
+10cd 6fe0c0e0 fetch 1 ,mem_afh_new_mod 
+10ce 207a0000 rtn blank 
+10cf 6fe08031 fetch 1 ,mem_mode 
+10d0 79207e02 set1 afh_enable ,pdata 
+10d1 67e08031 store 1 ,mem_mode 
+10d2 6fe2c0ee fetch 5 ,mem_afh_map_new 
+10d3 67e2c0e1 store 5 ,mem_afh_map_lo 
+10d4 efe28006 ifetch 5 ,contr 
+10d5 67e2c0e6 store 5 ,mem_afh_map_hi 
+10d6 204010fb call afh_process_freq_map 
+
+afh_process_con:
+10d7 6fe08031 fetch 1 ,mem_mode 
+10d8 c4010000 rtnbit0 afh_enable 
+10d9 2c2ffe01 isolate1 1 ,bt_clk 
+10da 202090f3 branch afh_same_channel ,true 
+10db 18492200 rshift3 temp ,rega 
+10dc 18410e07 and temp ,7 ,queue 
+10dd 580040e1 setarg mem_afh_map_lo 
+10de 9a20a200 iadd rega ,rega 
+10df efe08011 ifetch 1 ,rega 
+10e0 afec0000 qisolate0 pdata 
+10e1 202090e4 branch afh_process_1 ,true 
+10e2 18427e00 deposit temp 
+10e3 202010f0 branch afh_process_end 
+
+afh_process_1:
+10e4 6fe0c0eb fetch 1 ,mem_afh_used 
+10e5 98002400 iforce regb 
+10e6 1c227e00 deposit bt_clk 
+10e7 1fe17f80 and_into 0x180 ,pdata 
+10e8 1fe97e00 rshift3 pdata ,pdata 
+10e9 9ae0fe00 iadd freq_index ,pdata 
+10ea 9a46fc00 idiv regb 
+10eb 580040f9 setarg mem_afh_map 
+10ec 20407d31 call wait_div_end 
+10ed 18072200 remainder rega 
+10ee 9a208c00 iadd rega ,contr 
+10ef efe08006 ifetch 1 ,contr 
+
+afh_process_end:
+10f0 67e0c0ec store 1 ,mem_afh_index 
+10f1 98000400 iforce temp 
+10f2 20600000 rtn 
+
+afh_same_channel:
+10f3 6fe0c0ec fetch 1 ,mem_afh_index 
+10f4 98000400 iforce temp 
+10f5 20600000 rtn 
+
+afh_clear:
+10f6 6fe08031 fetch 1 ,mem_mode 
+10f7 793ffe02 set0 afh_enable ,pdata 
+10f8 793ffe03 set0 afh_change ,pdata 
+10f9 67e08031 store 1 ,mem_mode 
+10fa 20600000 rtn 
+
+afh_process_freq_map:
+10fb 44be400f bpatch patch0f_4 ,mem_patch0f 
+10fc d8a040f9 arg mem_afh_map ,contw 
+10fd 1800720a force 10 ,loopcnt 
+10fe 20407c59 call memset0 
+10ff d8a040f9 arg mem_afh_map ,contw 
+1100 18002600 force 0 ,regc 
+1101 18000e02 force 2 ,queue 
+
+process_freq_3:
+1102 6fe2c0e1 fetch 5 ,mem_afh_map_lo 
+1103 98000400 iforce temp 
+1104 28e1fe02 compare 2 ,queue ,0xff 
+1105 20209107 branch process_freq_1 ,true 
+1106 18430400 rshift temp ,temp 
+
+process_freq_1:
+1107 284c0000 isolate0 0 ,temp 
+1108 2020910b branch process_freq_0 ,true 
+1109 1a627e00 deposit regc 
+110a e7e08005 istore 1 ,contw 
+
+process_freq_0:
+110b 184b0400 rshift2 temp ,temp 
+110c 1a60a602 increase 2 ,regc 
+110d 2a61fc28 compare 40 ,regc ,0xfe 
+110e 24209114 nbranch process_freq_2 ,true 
+110f 6fe2c0e6 fetch 5 ,mem_afh_map_hi 
+1110 98000400 iforce temp 
+1111 28e1fe02 compare 2 ,queue ,0xff 
+1112 20209114 branch process_freq_2 ,true 
+1113 18430400 rshift temp ,temp 
+
+process_freq_2:
+1114 1a667c4e sub regc ,78 ,null 
+1115 20211107 branch process_freq_1 ,positive 
+1116 18002601 force 1 ,regc 
+1117 18e08fff increase -1 ,queue 
+1118 24229102 nbranch process_freq_3 ,zero 
+1119 da2040f9 arg mem_afh_map ,rega 
+111a 18a27e00 deposit contw 
+111b 9a267e00 isub rega ,pdata 
+111c 67e0c0eb store 1 ,mem_afh_used 
+111d 20600000 rtn 
+
+rx_radio_freq:
+111e 44bec00f bpatch patch0f_5 ,mem_patch0f 
+111f 204010b2 call calc_radio_freq 
+1120 6fe080e3 fetch 1 ,mem_debug_config 
+1121 c3029123 bbit0 debug_rx_fixed_freq ,rx_radio_freq_now 
+1122 684883a0 fetcht 1 ,mem_rx_fixed_freq 
+
+rx_radio_freq_now:
+1123 2020118b branch set_freq_rx 
+
+tx_radio_freq:
+1124 44bf400f bpatch patch0f_6 ,mem_patch0f 
+1125 204010b2 call calc_radio_freq 
+1126 6fe080e3 fetch 1 ,mem_debug_config 
+1127 c3021129 bbit0 debug_tx_fixed_freq ,tx_radio_freq_now 
+1128 6848839f fetcht 1 ,mem_tx_fixed_freq 
+
+tx_radio_freq_now:
+1129 20201201 branch set_freq_tx 
+
+fetch_giac:
+112a 18005a00 force 0 ,uap 
+112b 6fe1c0af fetch 3 ,mem_glap 
+112c 98005800 iforce lap 
+112d 20600000 rtn 
+
+fetch_page_bt_adr:
+112e 44bfc00f bpatch patch0f_7 ,mem_patch0f 
+112f 6fe0c1e3 fetch 1 ,mem_hci_puap 
+1130 1fe25a00 icopy uap 
+1131 6fe1c1e0 fetch 3 ,mem_hci_plap 
+1132 1fe25800 icopy lap 
+1133 20600000 rtn 
+
+fetch_self_bt_adr:
+1134 44c04010 bpatch patch10_0 ,mem_patch10 
+1135 6fe140ac fetch 2 ,mem_nap 
+1136 1fe25c00 icopy nap 
+1137 6fe0c0ab fetch 1 ,mem_uap 
+1138 1fe25a00 icopy uap 
+1139 6fe1c0a8 fetch 3 ,mem_lap 
+113a 1fe25800 icopy lap 
+113b 20600000 rtn 
+
+fetch_extm_bt_adr:
+113c 44c0c010 bpatch patch10_1 ,mem_patch10 
+113d 6fe10044 fetch 2 ,mem_pnap 
+113e 1fe25c00 icopy nap 
+113f 6fe08043 fetch 1 ,mem_puap 
+1140 1fe25a00 icopy uap 
+1141 6fe18040 fetch 3 ,mem_plap 
+1142 1fe25800 icopy lap 
+1143 20600000 rtn 
+
+fetch_diac:
+1144 c5101147 bmark1 mark_all_diac ,fetch_diac_do 
+1145 c68e8000 rtnmark0 mark_inquiry_state 
+1146 c68f8000 rtnmark0 mark_periodical_diac 
+
+fetch_diac_do:
+1147 1d815900 and_into -256 ,lap 
+1148 782afc00 pulse recalc 
+1149 20000020 nop 32 
+114a 20600000 rtn 
+
+shutdown_radio:
+114b 44c14010 bpatch patch10_2 ,mem_patch10 
+114c 20404bd4 call rf_debug_shutdown_radio_line 
+114d 18002a08 force 0x08 ,radio_ctrl 
+114e 18002a00 force 0 ,radio_ctrl 
+114f 7850fc00 disable is_rx 
+1150 78507c00 disable is_tx 
+1151 782f7c00 pulse packet_end 
+1152 70890005 jam 0x5 ,modem_en 
+1153 20000002 nop 2 
+1154 70890000 jam 0x0 ,modem_en 
+1155 2040115d call set_sync_on 
+1156 708a1600 jam 0 ,core_syn_en 
+1157 708a0a10 jam 0x10 ,core_rf_ldo_en0 
+1158 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+1159 793ffe07 set0 7 ,pdata 
+115a 67f08a09 store 1 ,core_clkpll_cfg6 
+115b 708a0b00 jam 0 ,core_rf_ldo_en1 
+115c 2020129c branch gain_control 
+
+set_sync_on:
+115d 44c1c010 bpatch patch10_3 ,mem_patch10 
+115e 70890005 jam 0x5 ,modem_en 
+115f 20000002 nop 2 
+1160 70890000 jam 0x0 ,modem_en 
+1161 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+1162 c00c1164 beq xtal_24m ,set_sync_on_24m 
+1163 c0041179 beq xtal_16m ,set_sync_on_16m 
+
+set_sync_on_24m:
+1164 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+1165 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+1166 708a1215 jam 0x15 ,core_rf_ldo_cfg6 
+1167 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+1168 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+1169 79207e07 set1 7 ,pdata 
+116a 67f08a09 store 1 ,core_clkpll_cfg6 
+116b 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+116c 2000003c nop 60 
+116d 708a167a jam 0x7a ,core_syn_en 
+116e 708a1700 jam 0 ,core_rx_en0 
+116f 708a1800 jam 0 ,core_rx_en1 
+1170 708a1900 jam 0 ,core_tx_en0 
+1171 708a1a00 jam 0 ,core_tx_en1 
+1172 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+1173 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+
+set_sync_on_next:
+1174 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+1175 793ffe07 set0 7 ,pdata 
+1176 67f08a09 store 1 ,core_clkpll_cfg6 
+1177 708a4300 jam 0 ,core_syn_cal_ctrl 
+1178 20600000 rtn 
+
+set_sync_on_16m:
+1179 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+117a 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+117b 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+117c 708a1215 jam 0x15 ,core_rf_ldo_cfg6 
+117d 708a0a78 jam 0x78 ,core_rf_ldo_en0 
+117e 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+117f 79207e07 set1 7 ,pdata 
+1180 67f08a09 store 1 ,core_clkpll_cfg6 
+1181 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+1182 2000003c nop 60 
+1183 708a163a jam 0x3a ,core_syn_en 
+1184 708a1700 jam 0 ,core_rx_en0 
+1185 708a1800 jam 0 ,core_rx_en1 
+1186 708a1900 jam 0 ,core_tx_en0 
+1187 708a1a00 jam 0 ,core_tx_en1 
+1188 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+1189 708a0a38 jam 0x38 ,core_rf_ldo_en0 
+118a 20201174 branch set_sync_on_next 
+
+set_freq_rx:
+118b 44c24010 bpatch patch10_4 ,mem_patch10 
+118c 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+118d 1fe67c18 sub pdata ,xtal_24m ,null 
+118e 20429196 call rf_rx_write_freq_24m ,zero 
+118f 2442919c ncall rf_rx_write_freq_16m ,zero 
+1190 60488017 storet 1 ,mem_last_freq 
+1191 1840fe00 add temp ,0 ,pdata 
+1192 c5169194 bmark1 mark_ble_2m ,set_rxfreq_2m_offset 
+1193 1840fe01 add temp ,1 ,pdata 
+
+set_rxfreq_2m_offset:
+1194 204011c1 call rf_rx_write_freq 
+1195 20201081 branch calc_mod_value_scale 
+
+rf_rx_write_freq_24m:
+1196 708a4300 jam 0 ,core_syn_cal_ctrl 
+1197 708a3d04 jam 0x04 ,core_syn_top_ctrl 
+1198 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+1199 708a8403 jam 0x03 ,core_syn_cp_lpf_cfg 
+119a 708a8940 jam 0x40 ,core_syn_afc_cfg3 
+119b 20600000 rtn 
+
+rf_rx_write_freq_16m:
+119c 708a4330 jam 0x30 ,core_syn_cal_ctrl 
+119d 708a3d06 jam 0x06 ,core_syn_top_ctrl 
+119e 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+119f 708a8420 jam 0x20 ,core_syn_cp_lpf_cfg 
+11a0 708a8915 jam 0x15 ,core_syn_afc_cfg3 
+11a1 20600000 rtn 
+
+rf_rx_enable:
+11a2 44c2c010 bpatch patch10_5 ,mem_patch10 
+11a3 20404bce call rf_debug_rx_gpio_high 
+11a4 6fe0c1ed fetch 1 ,mem_gain_fix 
+11a5 c07f91ab beq 0xff ,rf_rx_enable_no_soft_agc 
+11a6 d8c041ee arg mem_gain_table ,contr 
+11a7 98c08c00 iadd contr ,contr 
+11a8 efe08006 ifetch 1 ,contr 
+11a9 67f08961 store 1 ,core_rf_rx_gain_fix 
+11aa 70896027 jam 0x27 ,core_rf_rx_agc_ctrl 
+
+rf_rx_enable_no_soft_agc:
+11ab 6848c1f1 fetcht 1 ,mem_gain_second_agc_en 
+11ac 6ff08960 fetch 1 ,core_rf_rx_agc_ctrl 
+11ad 9841fe00 ior temp ,pdata 
+11ae 67f08960 store 1 ,core_rf_rx_agc_ctrl 
+11af 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+11b0 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+11b1 708a1213 jam 0x13 ,core_rf_ldo_cfg6 
+11b2 708a0a7f jam 0x7f ,core_rf_ldo_en0 
+11b3 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+11b4 793ffe07 set0 7 ,pdata 
+11b5 67f08a09 store 1 ,core_clkpll_cfg6 
+11b6 2000003c nop 60 
+11b7 708a171f jam 0x1f ,core_rx_en0 
+11b8 708a18f8 jam 0xf8 ,core_rx_en1 
+11b9 708a1918 jam 0x18 ,core_tx_en0 
+11ba 708a1000 jam 0x00 ,core_rf_ldo_cfg4 
+11bb 708a1120 jam 0x20 ,core_rf_ldo_cfg5 
+11bc 2000000a nop 10 
+11bd 70890004 jam 0x04 ,modem_en 
+11be 20000002 nop 2 
+11bf 7089000c jam 0x0c ,modem_en 
+11c0 20600000 rtn 
+
+rf_rx_write_freq:
+11c1 44c34010 bpatch patch10_6 ,mem_patch10 
+11c2 d8c00960 arg 2400 ,contr 
+11c3 98c0fe00 iadd contr ,pdata 
+11c4 6848c0c5 fetcht 1 ,mem_fcomp_div 
+11c5 202011d0 branch rf_write_freq_calc 
+
+rf_tx_write_freq:
+11c6 44c3c010 bpatch patch10_7 ,mem_patch10 
+11c7 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+11c8 1fe67c18 sub pdata ,xtal_24m ,null 
+11c9 204291f3 call rf_tx_write_freq_24m ,zero 
+11ca 244291fa ncall rf_tx_write_freq_16m ,zero 
+11cb 58000960 setarg 2400 
+11cc 9a20fe00 iadd rega ,pdata 
+11cd 1fe3fe00 lshift pdata ,pdata 
+11ce 6848c0c5 fetcht 1 ,mem_fcomp_div 
+11cf 184f8403 mul32 temp ,0x03 ,temp 
+
+rf_write_freq_calc:
+11d0 18438400 lshift temp ,temp 
+11d1 9846fc00 idiv temp 
+11d2 20407d31 call wait_div_end 
+11d3 1807fe00 quotient pdata 
+11d4 67f08a3f store 1 ,core_syn_divr_int 
+11d5 18077e00 remainder pdata 
+11d6 1ff07e00 lshift16 pdata ,pdata 
+11d7 1fed7e00 lshift8 pdata ,pdata 
+11d8 9846fc00 idiv temp 
+11d9 20407d31 call wait_div_end 
+11da 1807fe00 quotient pdata 
+11db 67f08a42 store 1 ,core_syn_divr_int + 3 
+11dc 1fecfe00 rshift8 pdata ,pdata 
+11dd 67f08a41 store 1 ,core_syn_divr_int + 2 
+11de 1fecfe00 rshift8 pdata ,pdata 
+11df 67f08a40 store 1 ,core_syn_divr_int + 1 
+11e0 68588a43 fetcht 1 ,core_syn_cal_ctrl 
+11e1 184104f0 and_into 0xf0 ,temp 
+11e2 60588a43 storet 1 ,core_syn_cal_ctrl 
+11e3 2000000c nop 12 
+11e4 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+11e5 c00c11e7 beq xtal_24m ,rf_write_freq_calc_24m 
+11e6 c00411ed beq xtal_16m ,rf_write_freq_calc_16m 
+
+rf_write_freq_calc_24m:
+11e7 1841840c or_into 0x0c ,temp 
+11e8 60588a43 storet 1 ,core_syn_cal_ctrl 
+11e9 2000000c nop 12 
+11ea 18418403 or_into 0x03 ,temp 
+11eb 60588a43 storet 1 ,core_syn_cal_ctrl 
+11ec 20600000 rtn 
+
+rf_write_freq_calc_16m:
+11ed 1841843c or_into 0x3c ,temp 
+11ee 60588a43 storet 1 ,core_syn_cal_ctrl 
+11ef 2000000c nop 12 
+11f0 18418433 or_into 0x33 ,temp 
+11f1 60588a43 storet 1 ,core_syn_cal_ctrl 
+11f2 20600000 rtn 
+
+rf_tx_write_freq_24m:
+11f3 708a4300 jam 0 ,core_syn_cal_ctrl 
+11f4 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+11f5 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+11f6 708a8403 jam 0x03 ,core_syn_cp_lpf_cfg 
+11f7 708a8ba6 jam 0xa6 ,core_syn_aac_cfg1 
+11f8 708a8940 jam 0x40 ,core_syn_afc_cfg3 
+11f9 20600000 rtn 
+
+rf_tx_write_freq_16m:
+11fa 708a4330 jam 0x30 ,core_syn_cal_ctrl 
+11fb 708a3d15 jam 0x15 ,core_syn_top_ctrl 
+11fc 708a3e00 jam 0 ,core_syn_mmd_cp_ctrl 
+11fd 708a8420 jam 0x20 ,core_syn_cp_lpf_cfg 
+11fe 708a8ba6 jam 0xa6 ,core_syn_aac_cfg1 
+11ff 708a8915 jam 0x15 ,core_syn_afc_cfg3 
+1200 20600000 rtn 
+
+set_freq_tx:
+1201 44c44011 bpatch patch11_0 ,mem_patch11 
+1202 708a3d12 jam 0x12 ,core_syn_top_ctrl 
+1203 60488017 storet 1 ,mem_last_freq 
+1204 1840a202 add temp ,2 ,rega 
+1205 204011c6 call rf_tx_write_freq 
+1206 200003c0 nop 0x3c0 
+
+txon:
+1207 44c4c011 bpatch patch11_1 ,mem_patch11 
+1208 708a10aa jam 0xaa ,core_rf_ldo_cfg4 
+1209 708a112a jam 0x2a ,core_rf_ldo_cfg5 
+120a 708a1210 jam 0x10 ,core_rf_ldo_cfg6 
+120b 708a0a7f jam 0x7f ,core_rf_ldo_en0 
+120c 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+120d 793ffe07 set0 7 ,pdata 
+120e 67f08a09 store 1 ,core_clkpll_cfg6 
+120f 708a0b07 jam 0x07 ,core_rf_ldo_en1 
+1210 2000003c nop 60 
+1211 708a190d jam 0x0d ,core_tx_en0 
+1212 708a1af9 jam 0xf9 ,core_tx_en1 
+1213 708a1000 jam 0x00 ,core_rf_ldo_cfg4 
+1214 708a1120 jam 0x20 ,core_rf_ldo_cfg5 
+1215 2000000a nop 10 
+1216 70890001 jam 0x01 ,modem_en 
+1217 20000002 nop 2 
+1218 70890003 jam 0x03 ,modem_en 
+
+txon_next:
+1219 44c54011 bpatch patch11_2 ,mem_patch11 
+121a 6fe0c1eb fetch 1 ,mem_tx_power 
+121b c0019229 beq tx_power_3db ,set_tx_power_3db 
+121c c002922e beq tx_power_5db ,set_tx_power_5db 
+121d c0031231 beq tx_power_6db ,set_tx_power_6db 
+121e c0039234 beq tx_power_7db ,set_tx_power_7db 
+121f c0051237 beq tx_power_10db ,set_tx_power_10db 
+1220 c041923a beq tx_power_f3db ,set_tx_power_f3db 
+1221 c042923d beq tx_power_f5db ,set_tx_power_f5db 
+1222 c04a1240 beq tx_power_f20db ,set_tx_power_f20db 
+1223 c04f1243 beq tx_power_f30db ,set_tx_power_f30db 
+
+set_tx_power_0db:
+1224 708a396a jam 0x6a ,core_tx_pwr_ctrl0 
+1225 708a3a07 jam 0x07 ,core_tx_pwr_ctrl1 
+
+set_rf_ldo_cfg89:
+1226 708a14a3 jam 0xa3 ,core_rf_ldo_cfg8 
+1227 708a1507 jam 0x07 ,core_rf_ldo_cfg9 
+1228 20600000 rtn 
+
+set_tx_power_3db:
+1229 708a3966 jam 0x66 ,core_tx_pwr_ctrl0 
+122a 708a3a0b jam 0x0b ,core_tx_pwr_ctrl1 
+
+set_rf_ldo_cfg89_2:
+122b 708a14aa jam 0xaa ,core_rf_ldo_cfg8 
+122c 708a150a jam 0x0a ,core_rf_ldo_cfg9 
+122d 20600000 rtn 
+
+set_tx_power_5db:
+122e 708a396c jam 0x6c ,core_tx_pwr_ctrl0 
+122f 708a3a0d jam 0x0d ,core_tx_pwr_ctrl1 
+1230 2020122b branch set_rf_ldo_cfg89_2 
+
+set_tx_power_6db:
+1231 708a396b jam 0x6b ,core_tx_pwr_ctrl0 
+1232 708a3a0f jam 0x0f ,core_tx_pwr_ctrl1 
+1233 2020122b branch set_rf_ldo_cfg89_2 
+
+set_tx_power_7db:
+1234 708a39a7 jam 0xa7 ,core_tx_pwr_ctrl0 
+1235 708a3a0f jam 0x0f ,core_tx_pwr_ctrl1 
+1236 2020122b branch set_rf_ldo_cfg89_2 
+
+set_tx_power_10db:
+1237 708a39b6 jam 0xb6 ,core_tx_pwr_ctrl0 
+1238 708a3a0f jam 0x0f ,core_tx_pwr_ctrl1 
+1239 2020122b branch set_rf_ldo_cfg89_2 
+
+set_tx_power_f3db:
+123a 708a3968 jam 0x68 ,core_tx_pwr_ctrl0 
+123b 708a3a05 jam 0x05 ,core_tx_pwr_ctrl1 
+123c 20201226 branch set_rf_ldo_cfg89 
+
+set_tx_power_f5db:
+123d 708a3960 jam 0x60 ,core_tx_pwr_ctrl0 
+123e 708a3a05 jam 0x05 ,core_tx_pwr_ctrl1 
+123f 20201226 branch set_rf_ldo_cfg89 
+
+set_tx_power_f20db:
+1240 708a3953 jam 0x53 ,core_tx_pwr_ctrl0 
+1241 708a3a01 jam 0x01 ,core_tx_pwr_ctrl1 
+1242 20201226 branch set_rf_ldo_cfg89 
+
+set_tx_power_f30db:
+1243 708a394c jam 0x4c ,core_tx_pwr_ctrl0 
+1244 708a3a00 jam 0x00 ,core_tx_pwr_ctrl1 
+1245 20201226 branch set_rf_ldo_cfg89 
+
+initialize_radio:
+1246 70804206 jam clksel_rc ,core_clksel 
+
+initialize_radio_wait:
+1247 6fe140ca fetch 2 ,mem_rf_init_ptr 
+1248 c3071247 bbit0 14 ,initialize_radio_wait 
+1249 98000c00 iforce contr 
+124a d8408a00 arg 0x8a00 ,temp 
+
+initialize_radio_loop:
+124b efe08006 ifetch 1 ,contr 
+124c c07f9251 beq 0xff ,initialize_radio_cont 
+124d 98418a00 ior temp ,contw 
+124e efe08006 ifetch 1 ,contr 
+124f e7e08005 istore 1 ,contw 
+1250 2020124b branch initialize_radio_loop 
+
+initialize_radio_cont:
+1251 44c5c011 bpatch patch11_3 ,mem_patch11 
+1252 6fe0c4da fetch 1 ,mem_wdt_always_work 
+1253 205a6148 call wdt_set_disable ,blank 
+1254 708a0305 jam 0x05 ,core_clkpll_cfg0 
+1255 708a7a94 jam 0x94 ,core_rx_iqadc_cfg 
+1256 20401278 call initialize_rc_cal 
+1257 20401273 call initialize_rf_ldo_cfg1 
+1258 2040126e call initialize_syn_afc_cfg1 
+1259 708a8be6 jam 0xe6 ,core_syn_aac_cfg1 
+125a 708a8390 jam 0x90 ,core_syn_pfd_lkd_cfg 
+125b 708a0e0b jam 0x0b ,core_rf_ldo_cfg2 
+125c 708a0f05 jam 0x05 ,core_rf_ldo_cfg3 
+125d 70896876 jam 0x76 ,core_agc_wb_sat_th 
+125e 70896976 jam 0x76 ,core_agc_nb_sat_th 
+125f 6fe0c0c5 fetch 1 ,mem_fcomp_div 
+1260 c0841262 bne xtal_16m ,initialize_radio_cont_next 
+1261 708a0834 jam 0x34 ,core_clkpll_cfg5 
+
+initialize_radio_cont_next:
+1262 708a01ff jam 0xff ,core_clkpll_ctrl1 
+1263 20000064 nop 100 
+1264 708a020e jam 0x0e ,core_clkpll_ctrl2 
+1265 708a0003 jam 0x03 ,core_clkpll_ctrl0 
+1266 20401224 call set_tx_power_0db 
+1267 708a9a2b jam 0x2b ,core_tx_mixer_cfg1 
+1268 708a9b13 jam 0x13 ,core_tx_mixer_cfg2 
+1269 204012d1 call init_lpm_ctrl 
+126a 2000000a nop 10 
+126b 70804205 jam clksel_dpll ,core_clksel 
+126c 7041f30c jam system_clk_12m ,mem_system_clk 
+126d 2020163f branch le_disable 
+
+initialize_syn_afc_cfg1:
+126e 6fe0c4d6 fetch 1 ,mem_syn_afc_cfg1 
+126f 243a1271 nbranch initialize_syn_afc_cfg1_set ,blank 
+1270 58000029 setarg 0x29 
+
+initialize_syn_afc_cfg1_set:
+1271 67f08a87 store 1 ,core_syn_afc_cfg1 
+1272 20600000 rtn 
+
+initialize_rf_ldo_cfg1:
+1273 6fe0c4d7 fetch 1 ,mem_rf_ldo_cfg1 
+1274 243a1276 nbranch initialize_rf_ldo_cfg1_set ,blank 
+1275 58000000 setarg 0x00 
+
+initialize_rf_ldo_cfg1_set:
+1276 67f08a0d store 1 ,core_rf_ldo_cfg1 
+1277 20600000 rtn 
+
+initialize_rc_cal:
+1278 6fe0c4d8 fetch 1 ,mem_rc_cal 
+1279 203a127b branch initialize_rc_cal_set ,blank 
+127a 580000d3 setarg 0xd3 
+
+initialize_rc_cal_set:
+127b 67f08a6c store 1 ,core_rx_bq_bw_cal 
+127c 20600000 rtn 
+
+save_rssi:
+127d 44c64011 bpatch patch11_4 ,mem_patch11 
+127e 70015420 jam 0x20 ,mem_rssi_hex 
+127f 6ff089a0 fetch 1 ,modem_rssi 
+1280 67e0c1ec store 1 ,mem_modem_rssi 
+1281 1fe67cfc sub pdata ,0xfc ,null 
+1282 24610000 nrtn positive 
+1283 1fe67c7f sub pdata ,0x7f ,null 
+1284 20610000 rtn positive 
+1285 6ff089a3 fetch 1 ,modem_gain 
+1286 1fe1040f and pdata ,0x0f ,temp 
+1287 18438400 lshift temp ,temp 
+1288 1ff1fe00 rshift4 pdata ,pdata 
+1289 98408400 iadd temp ,temp 
+128a 184f8403 mul32 temp ,3 ,temp 
+128b 6fe0c1ec fetch 1 ,mem_modem_rssi 
+128c 1fe67eff sub pdata ,0xff ,pdata 
+128d 9840fe00 iadd temp ,pdata 
+128e 1fe0fffb increase -5 ,pdata 
+128f 67e08154 store 1 ,mem_rssi_hex 
+1290 20600000 rtn 
+
+rssi_hex2dec:
+1291 6fe08154 fetch 1 ,mem_rssi_hex 
+1292 20401295 call bcd 
+1293 67e08018 store 1 ,mem_rssi 
+1294 20600000 rtn 
+
+bcd:
+1295 1fe17eff and_into 0xff ,pdata 
+1296 1fe6fc0a div pdata ,10 
+1297 20407d2e call get_div_result 
+1298 1ff27e00 lshift4 pdata ,pdata 
+1299 18070400 remainder temp 
+129a 9841fe00 ior temp ,pdata 
+129b 20600000 rtn 
+
+gain_control:
+129c 6fe0c1ed fetch 1 ,mem_gain_fix 
+129d c17f8000 rtneq 0xff 
+129e 242c12c2 nbranch gain_increase ,sync 
+129f 6fe0c1ec fetch 1 ,mem_modem_rssi 
+12a0 1fe67cf0 sub pdata ,0xf0 ,null 
+12a1 242112c6 nbranch gain_descend ,positive 
+12a2 1fe67c7f sub pdata ,0x7f ,null 
+12a3 202112c6 branch gain_descend ,positive 
+12a4 6a308961 fetchr rega ,1 ,core_rf_rx_gain_fix 
+12a5 6fe0c1ed fetch 1 ,mem_gain_fix 
+12a6 c1000000 rtneq 0 
+12a7 d8c041ee arg mem_gain_table ,contr 
+12a8 98c08c00 iadd contr ,contr 
+12a9 efe08006 ifetch 1 ,contr 
+12aa 9a267c00 isub rega ,null 
+12ab 24628000 nrtn zero 
+12ac 18c08dfe increase -2 ,contr 
+12ad e8408006 ifetcht 1 ,contr 
+12ae 1851fe00 rshift4 temp ,pdata 
+12af 1a31a400 rshift4 rega ,regb 
+12b0 9a462400 isub regb ,regb 
+12b1 18417e0f and temp ,0xf ,pdata 
+12b2 1a21220f and rega ,0xf ,rega 
+12b3 9a262200 isub rega ,rega 
+12b4 1a23fe00 lshift rega ,pdata 
+12b5 9a40a400 iadd regb ,regb 
+12b6 1a4fa403 mul32 regb ,3 ,regb 
+12b7 6848c1ec fetcht 1 ,mem_modem_rssi 
+12b8 18417e80 and temp ,0x80 ,pdata 
+12b9 207a0000 rtn blank 
+
+add_negative:
+12ba 58000100 setarg 0x100 
+12bb 98460400 isub temp ,temp 
+12bc 1a427e00 copy regb ,pdata 
+12bd 98467e00 isub temp ,pdata 
+12be 20610000 rtn positive 
+12bf 1fe17eff and pdata ,0xff ,pdata 
+12c0 c17f8000 rtneq 0xff 
+12c1 c17f0000 rtneq 0xfe 
+
+gain_increase:
+12c2 6fe0c1ed fetch 1 ,mem_gain_fix 
+12c3 c00092cb beq 1 ,set_rx_gain0 
+12c4 c00112cd beq 2 ,set_rx_gain1 
+12c5 202012cb branch set_rx_gain0 
+
+gain_descend:
+12c6 6fe0c1ed fetch 1 ,mem_gain_fix 
+12c7 c00012cd beq 0 ,set_rx_gain1 
+12c8 c00092c9 beq 1 ,set_rx_gain2 
+
+set_rx_gain2:
+12c9 7041ed02 jam 2 ,mem_gain_fix 
+12ca 20600000 rtn 
+
+set_rx_gain0:
+12cb 7041ed00 jam 0 ,mem_gain_fix 
+12cc 20600000 rtn 
+
+set_rx_gain1:
+12cd 7041ed01 jam 1 ,mem_gain_fix 
+12ce 20600000 rtn 
+
+xtal_fast_wake:
+12cf 58000f0f setarg 0xf0f 
+12d0 20201524 branch lpm_write_config 
+
+init_lpm_ctrl:
+12d1 5800080f setarg 0x80f 
+12d2 20201524 branch lpm_write_config 
+
+start_receiver:
+12d3 44c6c011 bpatch patch11_5 ,mem_patch11 
+12d4 78507c00 disable is_tx 
+12d5 7830fc00 enable is_rx 
+12d6 782b7c00 pulse init_encrypt 
+12d7 202011a2 branch rf_rx_enable 
+
+prep_crypt:
+12d8 44c74011 bpatch patch11_6 ,mem_patch11 
+12d9 20400ddd call check_enc_ccm 
+12da 243a12e8 nbranch prep_crypt_ccm ,blank 
+12db 6fe0804c fetch 1 ,mem_state_map 
+12dc 2feffe02 isolate1 smap_encryption ,pdata 
+12dd 7920fe00 setflag true ,0 ,pdata 
+12de 67f08011 store 1 ,core_encrypt 
+12df d8c00062 arg mem_kc ,contr 
+12e0 efe48006 ifetch 9 ,contr 
+12e1 98006400 iforce kc_ls 
+12e2 efe38006 ifetch 7 ,contr 
+12e3 98006600 iforce kc_ms 
+12e4 6fe08054 fetch 1 ,mem_key_size 
+12e5 1fe0e9ff add pdata ,-1 ,g1l 
+12e6 782d7c00 pulse kc_p_activate 
+12e7 20600000 rtn 
+
+prep_crypt_ccm:
+12e8 70801100 jam 0 ,core_encrypt 
+12e9 20600000 rtn 
+
+wait_access_end:
+12ea 1b427e00 deposit clke 
+12eb 67e30097 store 6 ,mem_sync_clke 
+12ec 7846fc00 disable decode_fec0 
+12ed 242c114b nbranch shutdown_radio ,sync 
+12ee 6fe1015b fetch 2 ,mem_param_clke_cal 
+12ef 1fe25200 copy pdata ,clke_rt 
+12f0 1d00d001 increase 1 ,clke_bt 
+12f1 1d0151fc and_into 0x1fc ,clke_bt 
+12f2 20600000 rtn 
+
+wait_access_mhalfbnd:
+12f3 7826fc00 enable decode_fec0 
+
+wait_access_mhalfbnd_correlate:
+12f4 37cb8400 correlate null ,mhalfbnd 
+12f5 202c12ea branch wait_access_end ,sync 
+12f6 2d000402 compare 0x02 ,clke_bt ,0x02 
+12f7 242092f4 nbranch wait_access_mhalfbnd_correlate ,true 
+12f8 202012ea branch wait_access_end 
+
+wait_access_clkn_rt:
+12f9 44c7c011 bpatch patch11_7 ,mem_patch11 
+12fa 69610159 fetchr timeup ,2 ,mem_param_conn_access 
+12fb 7826fc00 enable decode_fec0 
+12fc 34730400 correlate clkn_rt ,meet 
+12fd 7846fc00 disable decode_fec0 
+12fe 242c114b nbranch shutdown_radio ,sync 
+12ff 20600000 rtn 
+
+wait_access_forever:
+1300 44c84012 bpatch patch12_0 ,mem_patch12 
+1301 7826fc00 enable decode_fec0 
+1302 37c18400 correlate null ,timeout 
+1303 7846fc00 disable decode_fec0 
+1304 242c114b nbranch shutdown_radio ,sync 
+1305 6fe1015b fetch 2 ,mem_param_clke_cal 
+1306 1fe25200 copy pdata ,clke_rt 
+1307 1d0151fc and_into 0x1fc ,clke_bt 
+1308 20600000 rtn 
+
+reserve_slot:
+1309 44c8c012 bpatch patch12_1 ,mem_patch12 
+130a 98002200 iforce rega 
+130b 1c227e00 deposit bt_clk 
+130c 98409600 iadd temp ,timeup 
+130d 19627e00 copy timeup ,pdata 
+130e 67e240d1 store 4 ,mem_next_btclk 
+130f 1a227e00 deposit rega 
+1310 20600000 rtn 
+
+ahead_window:
+1311 1fe20400 copy pdata ,temp 
+1312 44c94012 bpatch patch12_2 ,mem_patch12 
+1313 18427e00 copy temp ,pdata 
+1314 20407cf3 call clk2bt 
+1315 1c307e00 lshift16 bt_clk ,pdata 
+1316 79207e2c set1 44 ,pdata 
+1317 20407cd9 call clk_diff 
+1318 793ffe2c set0 44 ,pdata 
+1319 20401365 call get_clk 
+131a 20407cd9 call clk_diff 
+131b 20740000 rtn user 
+131c 20407ce6 call clk2rt 
+131d 98003600 iforce stop_watch 
+131e 37c18200 until null ,timeout 
+131f 20600000 rtn 
+
+setup_clk:
+1320 44c9c012 bpatch patch12_3 ,mem_patch12 
+1321 20381325 branch setup_clkn ,clknt 
+1322 35330200 until clke_rt ,meet 
+
+skip_setup_clke:
+1323 1d020400 copy clke_bt ,temp 
+1324 20201328 branch setup_clknbt 
+
+setup_clkn:
+1325 20371327 branch skip_setup_clkn ,attempt 
+1326 34730200 until clkn_rt ,meet 
+
+skip_setup_clkn:
+1327 1c420400 copy clkn_bt ,temp 
+
+setup_clknbt:
+1328 20341334 branch setup_clk11 ,user 
+1329 28400601 compare 1 ,temp ,3 
+132a 24209320 nbranch setup_clk ,true 
+
+setup_complete:
+132b 44ca4012 bpatch patch12_4 ,mem_patch12 
+132c 6fe08030 fetch 1 ,mem_state 
+132d c4000000 rtnbit0 state_inconn 
+132e 6fe240d1 fetch 4 ,mem_next_btclk 
+132f 98467e00 isub temp ,pdata 
+1330 24610000 nrtn positive 
+1331 1fe67cff sub pdata ,0xff ,null 
+1332 20211320 branch setup_clk ,positive 
+1333 20600000 rtn 
+
+setup_clk11:
+1334 28400603 compare 3 ,temp ,3 
+1335 24209320 nbranch setup_clk ,true 
+1336 2020132b branch setup_complete 
+
+rf_setup_time:
+1337 44cac012 bpatch patch12_5 ,mem_patch12 
+1338 69610157 fetchr timeup ,2 ,mem_param_rf_setup 
+1339 20201320 branch setup_clk 
+
+rf_setup_time_slave_slot:
+133a 78547c00 disable user 
+133b 20201337 branch rf_setup_time 
+
+rf_setup_time_master_slot:
+133c 78347c00 enable user 
+133d 20201337 branch rf_setup_time 
+
+start_transmitter:
+133e 44cb4012 bpatch patch12_6 ,mem_patch12 
+133f 204012d8 call prep_crypt 
+1340 7850fc00 disable is_rx 
+1341 78307c00 enable is_tx 
+1342 20600000 rtn 
+
+start_tx_native:
+1343 44cbc012 bpatch patch12_7 ,mem_patch12 
+1344 69610155 fetchr timeup ,2 ,mem_param_tx_setup 
+1345 34730200 until clkn_rt ,meet 
+1346 782b7c00 pulse init_encrypt 
+1347 20600000 rtn 
+
+start_rx_native:
+1348 44cc4013 bpatch patch13_0 ,mem_patch13 
+1349 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+134a 34730200 until clkn_rt ,meet 
+134b 20600000 rtn 
+
+start_tx_external:
+134c 44ccc013 bpatch patch13_1 ,mem_patch13 
+134d 69610155 fetchr timeup ,2 ,mem_param_tx_setup 
+134e 35330200 until clke_rt ,meet 
+134f 782b7c00 pulse init_encrypt 
+1350 20600000 rtn 
+
+send_access_word:
+1351 44cd4013 bpatch patch13_2 ,mem_patch13 
+1352 20404bdc call rf_debug_tx_on_line 
+1353 51207e00 preload access 
+1354 782efc00 enable encode_fec0 
+1355 79202a00 set1 txgfsk ,radio_ctrl 
+1356 08008648 inject mod ,72 
+1357 784efc00 disable encode_fec0 
+1358 20600000 rtn 
+
+scan_mode_whiten:
+1359 1ca20400 copy xin ,temp 
+135a 18418460 or_into 0x60 ,temp 
+135b 18421c00 copy temp ,white_init 
+135c 20600000 rtn 
+
+get_free_amaddr:
+135d 44cdc013 bpatch patch13_3 ,mem_patch13 
+135e 6fe0c098 fetch 1 ,mem_current_amaddr 
+135f 1fe0fe01 increase 1 ,pdata 
+1360 c0839362 bne param_esco_addr ,get_free_amaddr_cont 
+1361 18007e01 force 1 ,pdata 
+
+get_free_amaddr_cont:
+1362 67e0c098 store 1 ,mem_current_amaddr 
+1363 98000800 iforce am_addr 
+1364 20600000 rtn 
+
+get_clk:
+1365 1b220400 copy clkn ,temp 
+1366 20748000 rtn master 
+1367 1b420400 copy clke ,temp 
+1368 20600000 rtn 
+
+get_clkbt:
+1369 1c427e00 deposit clkn_bt 
+136a 20748000 rtn master 
+136b 1d027e00 deposit clke_bt 
+136c 20600000 rtn 
+
+supervision_update:
+136d 44ce4013 bpatch patch13_4 ,mem_patch13 
+136e 684a004d fetcht 4 ,mem_supervision_timer 
+136f 20401369 call get_clkbt 
+1370 98461600 isub temp ,timeup 
+1371 19627e00 deposit timeup 
+1372 68490051 fetcht 2 ,mem_supervision_to 
+1373 18438400 lshift temp ,temp 
+1374 98467e00 isub temp ,pdata 
+1375 20600000 rtn 
+
+supervision_flush:
+1376 44cec013 bpatch patch13_5 ,mem_patch13 
+1377 20401369 call get_clkbt 
+1378 67e2004d store 4 ,mem_supervision_timer 
+1379 20600000 rtn 
+
+assert:
+137a 44cf4013 bpatch patch13_6 ,mem_patch13 
+137b 2020137a branch assert 
+
+loop:
+137c 2020137c branch loop 
+
+sleep:
+137d 207a0000 rtn blank 
+137e 1fe37e00 rshift pdata ,pdata 
+137f 1fe0fffd increase -3 ,pdata 
+
+sleep_loop:
+1380 1fe0ffff increase -1 ,pdata 
+1381 24229380 nbranch sleep_loop ,zero 
+1382 18007e00 force 0 ,pdata 
+1383 20600000 rtn 
+
+init_param:
+1384 df200010 arg 0x10 ,loopcnt 
+1385 d8a00000 arg 0 ,contw 
+1386 20407c59 call memset0 
+1387 d8a00287 arg mem_le_state ,contw 
+1388 df20000a arg 10 ,loopcnt 
+1389 20407c59 call memset0 
+138a 70087400 jam 0 ,mem_sp_calc 
+138b 70095b00 jam 0 ,mem_fifo_temp 
+138c 7002df00 jam 0 ,mem_le_testtype 
+138d 7000e300 jam 0 ,mem_debug_config 
+138e 7003a500 jam 0 ,mem_lmp_conn_state 
+138f 7000bc00 jam 0 ,mem_connection_options 
+1390 700a5100 jam 0 ,mem_tester_emulate 
+1391 700a5c00 jam 0 ,mem_tester_cnt 
+1392 589e8b33 setarg param_glap 
+1393 67e1c0af store 3 ,mem_glap 
+1394 70008d60 jam 0x60 ,mem_fhs_misc 
+1395 7040d705 jam param_max_slot ,mem_max_slot 
+1396 70001402 jam 0x02 ,mem_fw_ver 
+1397 58000e43 setarg param_tx_setup 
+1398 67e10155 store 2 ,mem_param_tx_setup 
+1399 58000600 setarg param_rf_setup 
+139a 67e10157 store 2 ,mem_param_rf_setup 
+139b 58000600 setarg param_conn_access 
+139c 67e10159 store 2 ,mem_param_conn_access 
+139d 58000d00 setarg param_rx_setup 
+139e 67e1015f store 2 ,mem_param_rx_setup 
+139f 580003bb setarg param_clke_cal 
+13a0 67e1015b store 2 ,mem_param_clke_cal 
+13a1 58000500 setarg param_pll_setup 
+13a2 67e1015d store 2 ,mem_param_pll_setup 
+13a3 580007d0 setarg param_dpll_start_delay 
+13a4 67e10161 store 2 ,mem_param_dpll_start_delay 
+13a5 58000ea6 setarg param_rt_rthalfslot 
+13a6 67e10163 store 2 ,mem_param_rt_rthalfslot 
+13a7 580001e0 setarg param_clke_cal_le_1m 
+13a8 67e10165 store 2 ,mem_param_clke_cal_le_1m 
+13a9 58000120 setarg param_clke_cal_le_2m 
+13aa 67e10167 store 2 ,mem_param_clke_cal_le_2m 
+13ab 5800011a setarg param_clke_cal_le_coded 
+13ac 67e10169 store 2 ,mem_param_clke_cal_le_coded 
+13ad 58001400 setarg mem_ble_tx_buff0 
+13ae 67e143e1 store 2 ,mem_ble_l2cap_tx_buff0_ptr 
+13af 58000100 setarg mem_ble_l2cap_tx_buff_size 
+13b0 67e143e3 store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
+13b1 20406d31 call init_memp 
+13b2 58000880 setarg mem_sp_state_end 
+13b3 d8a00870 arg mem_sp_state_start ,contw 
+13b4 98a67200 isub contw ,loopcnt 
+13b5 20407c68 call clear_mem 
+
+init_param_next:
+13b6 44cfc013 bpatch patch13_7 ,mem_patch13 
+13b7 20758000 rtn wake 
+13b8 58000000 setarg 0 
+13b9 67e141e9 store 2 ,mem_tx_len 
+13ba 1c437e00 rshift clkn_bt ,pdata 
+13bb 67e2409c store 4 ,mem_last_clkn 
+13bc 20600000 rtn 
+
+clk24m_init:
+13bd 70804206 jam 6 ,core_clksel 
+13be 70804201 jam 1 ,core_clksel 
+13bf 2000000a nop 10 
+13c0 58001d4a setarg 7498 
+13c1 67f10040 store 2 ,core_halfslot 
+13c2 20600000 rtn 
+
+lpmstate:
+13c3 5800ee21 setarg 0xee21 
+13c4 67f10050 store 2 ,core_clkoff 
+13c5 6ff2011c fetch 4 ,core_gpio_in 
+13c6 67e2098a store 4 ,mem_saved_gpio_in 
+13c7 6ff0813b fetch 1 ,core_lpm_ctrl + 3 
+13c8 67e08989 store 1 ,mem_wakup_from_power_flag 
+13c9 6ff0813e fetch 1 ,core_lpm_ldocnt 
+13ca c301da94 bbit0 gpio_latch ,loadcode 
+13cb 7835fc00 enable wake 
+13cc c30393d4 bbit0 cold_wake ,lpmwake 
+13cd 7855fc00 disable wake 
+13ce 1ce27e00 deposit auxcnt 
+13cf 243a13d4 nbranch lpmwake ,blank 
+13d0 6ff0813b fetch 1 ,core_lpm_ctrl + 3 
+13d1 c28113d4 bbit1 reload_code ,lpmwake 
+13d2 d85fffff arg param_hibernate_clks ,temp 
+13d3 20201460 branch lpm_enter_sleep 
+
+lpmwake:
+13d4 6ff20134 fetch 4 ,core_lpm_ctrl2 
+13d5 67f2004c store 4 ,core_lpm_reg 
+13d6 6ff08135 fetch 1 ,core_lpm_ctrl2 + 1 
+13d7 1fe17ee0 and_into 0xe0 ,pdata 
+13d8 67f0804d store 1 ,core_lpm_reg + 1 
+13d9 2040153c call lpm_write_ctrl3 
+13da 6ff1813c fetch 3 ,core_lpm_xtalcnt 
+13db 67f1804c store 3 ,core_lpm_reg 
+13dc efe08006 ifetch 1 ,contr 
+13dd 1fe1feef or_into isogate_mask ,pdata 
+13de e7e08005 istore 1 ,contw 
+13df 2040152f call lpm_write_ctrl2 
+13e0 6ff0804f fetch 1 ,core_lpm_isogate 
+13e1 79207e04 set1 enable_retmem ,pdata 
+13e2 67f0804f store 1 ,core_lpm_isogate 
+13e3 2040152f call lpm_write_ctrl2 
+13e4 20559401 call lpm_load_context ,wake 
+13e5 6ff0804e fetch 1 ,core_lpm_reg + 2 
+13e6 793ffe03 set0 gpio_latch ,pdata 
+13e7 67f0804e store 1 ,core_lpm_reg + 2 
+13e8 2040152f call lpm_write_ctrl2 
+13e9 2435da94 nbranch loadcode ,wake 
+13ea c6958000 rtnmark0 mark_otp_encrypt 
+13eb 70800608 jam lock_otp ,core_misc_ctrl 
+13ec 20600000 rtn 
+
+lpm_ctrl3_cfg_dig_vsel:
+13ed 6fe0c4d5 fetch 1 ,mem_dig_aon_vsel 
+13ee c00093f5 beq 1 ,lpm_ctrl3_cfg_vsel_108 
+13ef c00113f9 beq 2 ,lpm_ctrl3_cfg_vsel_096 
+13f0 c00193fd beq 3 ,lpm_ctrl3_cfg_vsel_084 
+
+lpm_ctrl3_cfg_vsel_120:
+13f1 6fe0c183 fetch 1 ,mem_lpm_ctrl3_aon_vsel 
+13f2 1fe17ee0 and_into 0xe0 ,pdata 
+
+lpm_ctrl3_cfg_vsel_store:
+13f3 67e0c183 store 1 ,mem_lpm_ctrl3_aon_vsel 
+13f4 20600000 rtn 
+
+lpm_ctrl3_cfg_vsel_108:
+13f5 6fe0c183 fetch 1 ,mem_lpm_ctrl3_aon_vsel 
+13f6 1fe17ee0 and_into 0xe0 ,pdata 
+13f7 1fe1fe1d or_into 0x1d ,pdata 
+13f8 202013f3 branch lpm_ctrl3_cfg_vsel_store 
+
+lpm_ctrl3_cfg_vsel_096:
+13f9 6fe0c183 fetch 1 ,mem_lpm_ctrl3_aon_vsel 
+13fa 1fe17ee0 and_into 0xe0 ,pdata 
+13fb 1fe1fe1b or_into 0x1b ,pdata 
+13fc 202013f3 branch lpm_ctrl3_cfg_vsel_store 
+
+lpm_ctrl3_cfg_vsel_084:
+13fd 6fe0c183 fetch 1 ,mem_lpm_ctrl3_aon_vsel 
+13fe 1fe17ee0 and_into 0xe0 ,pdata 
+13ff 1fe1fe17 or_into 0x17 ,pdata 
+1400 202013f3 branch lpm_ctrl3_cfg_vsel_store 
+
+lpm_load_context:
+1401 6fe0c1a8 fetch 1 ,mem_saved_spidctrl 
+1402 67f08086 store 1 ,core_spid_ctrl 
+1403 d8c04186 arg mem_saved_gpio ,contr 
+1404 d8a08070 arg core_gpio_conf ,contw 
+1405 20407c3f call memcpy20 
+1406 d8a080e5 arg core_gpio_conf1 ,contw 
+1407 20407c43 call memcpy3 
+1408 6fe441a0 fetch 8 ,mem_saved_mark 
+1409 98000000 iforce mark 
+140a 6ff40140 fetch 8 ,core_gpio_wakeup_low 
+140b 67e4009e store 8 ,mem_gpio_wakeup_low 
+140c 20205b2c branch load_ucode 
+
+lpm_save_context:
+140d 18027e00 deposit mark 
+140e 67e441a0 store 8 ,mem_saved_mark 
+140f d8c08070 arg core_gpio_conf ,contr 
+1410 d8a04186 arg mem_saved_gpio ,contw 
+1411 20407c3f call memcpy20 
+1412 d8c080e5 arg core_gpio_conf1 ,contr 
+1413 20407c43 call memcpy3 
+1414 6ff08086 fetch 1 ,core_spid_ctrl 
+1415 67e0c1a8 store 1 ,mem_saved_spidctrl 
+1416 2020153e branch lpm_write_gpio_wakeup 
+
+lpo_calibration:
+1417 6ff08085 fetch 1 ,core_aes_en 
+1418 1ff1fe00 rshift4 pdata ,pdata 
+1419 243a1420 nbranch lpo_cal_inited ,blank 
+141a 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+141b 247a0000 nrtn blank 
+141c 6ff08085 fetch 1 ,core_aes_en 
+141d 1fe1fec0 or_into 0xc0 ,pdata 
+141e 67f08085 store 1 ,core_aes_en 
+141f 70800680 jam ccnt_start ,core_misc_ctrl 
+
+lpo_cal_inited:
+1420 6ff0812d fetch 1 ,core_perf_status 
+1421 c4008000 rtnbit0 1 
+1422 6ff18149 fetch 3 ,core_clk_counter 
+1423 67e1c174 store 3 ,mem_clks_per_lpo 
+1424 20600000 rtn 
+
+lpm_adjust_clk:
+1425 44d04014 bpatch patch14_0 ,mem_patch14 
+1426 1b427e00 deposit clke 
+1427 20407cd7 call clk_diff_rt 
+1428 684a4164 fetcht 4 ,mem_sleep_counter_all 
+1429 18467cff sub temp ,0xff ,null 
+142a 20610000 rtn positive 
+142b 1fed7e00 lshift8 pdata ,pdata 
+142c 1ff27e00 lshift4 pdata ,pdata 
+142d 9846fc00 idiv temp 
+142e 20407d2e call get_div_result 
+142f d84000c8 arg param_lpm_adjmax ,temp 
+1430 20407d3c call ceiling 
+1431 67e08096 store 1 ,mem_lpm_adjust 
+1432 24341434 nbranch lpm_adjust_positive ,user 
+1433 1fe67e00 sub pdata ,0 ,pdata 
+
+lpm_adjust_positive:
+1434 6849c174 fetcht 3 ,mem_clks_per_lpo 
+1435 9840fe00 iadd temp ,pdata 
+1436 67e1c174 store 3 ,mem_clks_per_lpo 
+
+lpm_clear_counter:
+1437 58000000 setarg 0 
+1438 67e24164 store 4 ,mem_sleep_counter_all 
+1439 20600000 rtn 
+
+lpm_hibernate:
+143a d85fffff arg param_hibernate_clks ,temp 
+143b 6fe0c17b fetch 1 ,mem_lpm_config + 1 
+143c 793ffe07 set0 7 ,pdata 
+143d 67e0c17b store 1 ,mem_lpm_config + 1 
+
+lpm_hibernate_normal:
+143e 44d0c014 bpatch patch14_1 ,mem_patch14 
+143f 2040153e call lpm_write_gpio_wakeup 
+1440 6fe0c15c fetch 1 ,mem_lpm_hibernate_switch 
+1441 67e0c181 store 1 ,mem_lpm_xtalcnt + 4 
+1442 6fe0c17f fetch 1 ,mem_lpm_xtalcnt + 2 
+1443 79207e07 set1 cold_wake ,pdata 
+1444 67e0c17f store 1 ,mem_lpm_xtalcnt + 2 
+
+lpm_sleep:
+1445 44d14014 bpatch patch14_2 ,mem_patch14 
+1446 204012cf call xtal_fast_wake 
+1447 6fe1447c fetch 2 ,mem_cb_before_lpm_sleep 
+1448 20407d47 call callback_func 
+
+lpm_sleep_skip_cb_function:
+1449 6fe24164 fetch 4 ,mem_sleep_counter_all 
+144a 9840fe00 iadd temp ,pdata 
+144b 67e24164 store 4 ,mem_sleep_counter_all 
+144c 2040140d call lpm_save_context 
+144d 204013ed call lpm_ctrl3_cfg_dig_vsel 
+144e 6fe24182 fetch 4 ,mem_lpm_ctrl3 
+144f 1fe22400 copy pdata ,regb 
+1450 6fe2c17d fetch 5 ,mem_lpm_xtalcnt 
+1451 67f2004c store 4 ,core_lpm_reg 
+1452 1fef2200 rshift32 pdata ,rega 
+1453 37d98200 until null ,lpo_edge 
+1454 1b227e00 deposit clkn 
+1455 67e34168 store 6 ,mem_sleep_clkn 
+1456 70800502 jam lpmreg_sel_ctrl2 ,core_lpm_wr 
+1457 37d98200 until null ,lpo_edge 
+1458 37d98200 until null ,lpo_edge 
+1459 1a227e00 deposit rega 
+145a 67f0804f store 1 ,core_lpm_isogate 
+145b 70800502 jam lpmreg_sel_ctrl2 ,core_lpm_wr 
+145c 37d98200 until null ,lpo_edge 
+145d 37d98200 until null ,lpo_edge 
+145e 6252004c storer regb ,4 ,core_lpm_reg 
+145f 70800520 jam lpmreg_sel_ctrl3 ,core_lpm_wr 
+
+lpm_enter_sleep:
+1460 37d98200 until null ,lpo_edge 
+1461 37d98200 until null ,lpo_edge 
+1462 605a004c storet 4 ,core_lpm_reg 
+1463 70800510 jam lpmreg_sel_counter ,core_lpm_wr 
+1464 37df8200 until null ,never 
+
+lpm_recover_clk:
+1465 44d1c014 bpatch patch14_3 ,mem_patch14 
+1466 58000000 setarg 0 
+1467 1ce27c00 copy auxcnt ,null 
+1468 20229470 branch lpm_recover_timeout ,zero 
+1469 6ff0813c fetch 1 ,core_lpm_xtalcnt 
+146a 6858813d fetcht 1 ,core_lpm_buckcnt 
+146b 98467c00 isub temp ,null 
+146c 2021146e branch lpm_recover_xtal ,positive 
+146d 18427e00 deposit temp 
+
+lpm_recover_xtal:
+146e 9ce67e00 isub auxcnt ,pdata 
+146f 1fe0fe01 increase 1 ,pdata 
+
+lpm_recover_timeout:
+1470 1fe0fe0a increase 10 ,pdata 
+1471 37d98200 until null ,lpo_edge 
+1472 9e20fe00 iadd lpo_time ,pdata 
+1473 684a4160 fetcht 4 ,mem_sleep_counter 
+1474 9840fe00 iadd temp ,pdata 
+1475 6849c174 fetcht 3 ,mem_clks_per_lpo 
+1476 984ffe00 imul32 temp ,pdata 
+1477 1fecfe00 rshift8 pdata ,pdata 
+1478 1ff1fe00 rshift4 pdata ,pdata 
+1479 1fe0fe6e increase param_lpm_fix ,pdata 
+147a 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+147b 9846fc00 idiv temp 
+147c 20407d2e call get_div_result 
+147d 1ff07e00 lshift16 pdata ,pdata 
+147e 18070400 remainder temp 
+147f 9841fe00 ior temp ,pdata 
+1480 684b4168 fetcht 6 ,mem_sleep_clkn 
+1481 20407ccc call clk_add 
+1482 18423200 copy temp ,clkn 
+1483 6fe34048 fetch 6 ,mem_context + coffset_clk_offset 
+1484 20401073 call calc_clke2 
+1485 1b427e00 deposit clke 
+1486 67e3095c store 6 ,mem_pdatatemp 
+1487 1ce27e00 deposit auxcnt 
+1488 e7e08005 istore 1 ,contw 
+1489 6ff0811d fetch 1 ,core_gpio_in1 
+148a 1fe1fef0 or_into 0xf0 ,pdata 
+148b e7e08005 istore 1 ,contw 
+148c 20600000 rtn 
+
+lpm_dispatch:
+148d 44d24014 bpatch patch14_4 ,mem_patch14 
+148e 20401417 call lpo_calibration 
+148f 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+1490 207a0000 rtn blank 
+1491 6fe0c099 fetch 1 ,mem_lpm_mode 
+1492 207a0000 rtn blank 
+1493 6fe0c76b fetch 1 ,mem_ssp_enable 
+1494 203a1497 branch lpm_dispatch_next ,blank 
+1495 6fe0c6c0 fetch 1 ,mem_sp_local_key_invalid 
+1496 207a0000 rtn blank 
+
+lpm_dispatch_next:
+1497 6fe0c6c1 fetch 1 ,mem_sc_calc 
+1498 247a0000 nrtn blank 
+1499 da600ab7 arg context_check_a_wack ,regc 
+149a 20400a6e call context_search 
+149b 20628000 rtn zero 
+149c 2040154f call lpm_check_wake_lock 
+149d 247a0000 nrtn blank 
+149e 6fe0c040 fetch 1 ,mem_context 
+149f 2fe00e03 compare 3 ,pdata ,0x7 
+14a0 242094c3 nbranch lpm_dispatch_unconn ,true 
+14a1 6fe14042 fetch 2 ,mem_context + coffset_tsniff 
+14a2 207a0000 rtn blank 
+14a3 20758000 rtn wake 
+14a4 44d2c014 bpatch patch14_5 ,mem_patch14 
+
+lpm_dispatch_next2:
+14a5 6848809d fetcht 1 ,mem_lpm_current_mult 
+14a6 6fe14042 fetch 2 ,mem_context + coffset_tsniff 
+14a7 984ffe00 imul32 temp ,pdata 
+14a8 18518400 rshift4 temp ,temp 
+14a9 184b0400 rshift2 temp ,temp 
+14aa 98467e00 isub temp ,pdata 
+14ab 684a4044 fetcht 4 ,mem_context + coffset_sniff_anchor 
+14ac 9840fe00 iadd temp ,pdata 
+14ad 6848c15b fetcht 1 ,mem_lpm_overhead 
+14ae 98467e00 isub temp ,pdata 
+14af 1ff06000 lshift16 pdata ,alarm 
+14b0 44d34014 bpatch patch14_6 ,mem_patch14 
+14b1 6fe1404e fetch 2 ,mem_context + coffset_rx_window 
+14b2 1fe37e00 rshift pdata ,pdata 
+14b3 20407cf3 call clk2bt 
+14b4 1e027e00 deposit alarm 
+14b5 20407cd9 call clk_diff 
+14b6 1b420400 copy clke ,temp 
+14b7 20407cd7 call clk_diff_rt 
+14b8 20740000 rtn user 
+
+lpm_dispatch_sleep:
+14b9 20407cec call clk2lpo 
+
+lpm_dispatch_lpo:
+14ba 44d3c014 bpatch patch14_7 ,mem_patch14 
+14bb 6fe0c17d fetch 1 ,mem_lpm_xtalcnt 
+14bc 98467c00 isub temp ,null 
+14bd 20211437 branch lpm_clear_counter ,positive 
+14be 604a4160 storet 4 ,mem_sleep_counter 
+14bf 20403189 call app_will_enter_lpm 
+14c0 2040526b call l2cap_lpm_save_txbuf 
+14c1 684a4160 fetcht 4 ,mem_sleep_counter 
+14c2 20201445 branch lpm_sleep 
+
+lpm_dispatch_unconn:
+14c3 44d44015 bpatch patch15_0 ,mem_patch15 
+14c4 6fe0c040 fetch 1 ,mem_context 
+14c5 c3800000 rtnbit1 state_inconn 
+14c6 c3818000 rtnbit1 state_inpage 
+14c7 6fe0c76b fetch 1 ,mem_ssp_enable 
+14c8 203a14cb branch lpm_unconn_nossp ,blank 
+14c9 6fe0c6c0 fetch 1 ,mem_sp_local_key_invalid 
+14ca 207a0000 rtn blank 
+
+lpm_unconn_nossp:
+14cb 6fe0c42a fetch 1 ,mem_le_adv_enable 
+14cc 243a14cf nbranch lpm_unconn_cont ,blank 
+14cd 6fe0c09b fetch 1 ,mem_scan_mode 
+14ce 207a0000 rtn blank 
+
+lpm_unconn_cont:
+14cf 6fe14159 fetch 2 ,mem_lpm_interval 
+14d0 207a0000 rtn blank 
+
+lpm_sleep_btclk:
+14d1 6848c15b fetcht 1 ,mem_lpm_overhead 
+14d2 98467e00 isub temp ,pdata 
+14d3 d8401d4c arg 7500 ,temp 
+14d4 984ffe00 imul32 temp ,pdata 
+14d5 202014b9 branch lpm_dispatch_sleep 
+
+lpm_set_mult:
+14d6 44d4c015 bpatch patch15_1 ,mem_patch15 
+14d7 7855fc00 disable wake 
+14d8 6fe08030 fetch 1 ,mem_state 
+14d9 c4008000 rtnbit0 state_insniff 
+14da 243694f8 nbranch lpm_not_match ,match 
+14db 204014f3 call lpm_match 
+14dc 6fe140c8 fetch 2 ,mem_rx_window_sniff 
+14dd 67e1003e store 2 ,mem_rx_window 
+14de 6fe08047 fetch 1 ,mem_arq 
+14df c2819506 bbit1 wack ,lpm_mult_short 
+14e0 c5869506 bmark0 mark_lpm_mult_enable ,lpm_mult_short 
+14e1 20405214 call l2cap_malloc_is_fifo_empty 
+14e2 243a1506 nbranch lpm_mult_short ,blank 
+14e3 6fe0c64a fetch 1 ,mem_classic_bt_flag 
+14e4 c2809506 bbit1 short_mult_flag ,lpm_mult_short 
+
+lpm_mult_wait_timeout:
+14e5 6fe14474 fetch 2 ,mem_cb_bt_set_mult 
+14e6 20407d47 call callback_func 
+14e7 243a1506 nbranch lpm_mult_short ,blank 
+14e8 70009d00 jam 0 ,mem_lpm_current_mult 
+14e9 c5869506 bmark0 mark_lpm_mult_enable ,lpm_mult_short 
+14ea 6fe0c179 fetch 1 ,mem_lpm_mult_cnt 
+14eb 203a150a branch lpm_mult_long ,blank 
+14ec 1fe0ffff increase -1 ,pdata 
+14ed 67e0c179 store 1 ,mem_lpm_mult_cnt 
+14ee 20600000 rtn 
+
+classic_bt_set_mult_short_flag:
+14ef d8e00001 arg short_mult_flag ,queue 
+14f0 20205701 branch classic_bluetooth_set_flag 
+
+classic_bt_clr_mult_short_flag:
+14f1 d8e00001 arg short_mult_flag ,queue 
+14f2 20205705 branch classic_bluetooth_clr_flag 
+
+lpm_match:
+14f3 70415e00 jam 0 ,mem_sniff_unint_lost 
+14f4 6fe1c16e fetch 3 ,mem_sniff_rcv 
+14f5 1fe0fe01 increase 1 ,pdata 
+14f6 67e1c16e store 3 ,mem_sniff_rcv 
+14f7 20600000 rtn 
+
+lpm_not_match:
+14f8 44d54015 bpatch patch15_2 ,mem_patch15 
+14f9 684940c8 fetcht 2 ,mem_rx_window_sniff 
+14fa 18430400 rshift temp ,temp 
+14fb 6fe1003e fetch 2 ,mem_rx_window 
+14fc 9840fe00 iadd temp ,pdata 
+14fd 67e1003e store 2 ,mem_rx_window 
+
+lpm_lost:
+14fe 70009d00 jam 0 ,mem_lpm_current_mult 
+14ff 6fe1c171 fetch 3 ,mem_sniff_lost 
+1500 1fe0fe01 increase 1 ,pdata 
+1501 67e1c171 store 3 ,mem_sniff_lost 
+1502 6fe0c15e fetch 1 ,mem_sniff_unint_lost 
+1503 1fe0fe01 increase 1 ,pdata 
+1504 67e0c15e store 1 ,mem_sniff_unint_lost 
+1505 20600000 rtn 
+
+lpm_mult_short:
+1506 70009d00 jam 0 ,mem_lpm_current_mult 
+1507 6fe0c178 fetch 1 ,mem_lpm_mult_timeout 
+1508 67e0c179 store 1 ,mem_lpm_mult_cnt 
+1509 20600000 rtn 
+
+lpm_mult_long:
+150a 6848c177 fetcht 1 ,mem_lpm_mult 
+150b 6048809d storet 1 ,mem_lpm_current_mult 
+150c 20600000 rtn 
+
+lpm_cal_xtal_startup:
+150d 6fe0c17d fetch 1 ,mem_lpm_xtalcnt 
+150e 247a0000 nrtn blank 
+150f 70804206 jam clksel_rc ,core_clksel 
+1510 58000f0c setarg 0xf0c 
+1511 20401524 call lpm_write_config 
+1512 58030d40 setarg 200000 
+1513 2040137d call sleep 
+1514 37d98200 until null ,lpo_edge 
+1515 1e226000 copy lpo_time ,alarm 
+1516 204012cf call xtal_fast_wake 
+1517 70804204 jam clksel_xtal ,core_clksel 
+1518 2000000a nop 10 
+1519 37d98200 until null ,lpo_edge 
+151a 1e227e00 deposit lpo_time 
+151b 9e067e00 isub alarm ,pdata 
+151c 1fe0fe30 increase 0x30 ,pdata 
+151d d84000ff arg 0xff ,temp 
+151e 20407d3c call ceiling 
+151f 67e0c17d store 1 ,mem_lpm_xtalcnt 
+1520 20007530 nop 30000 
+1521 20007530 nop 30000 
+1522 20007530 nop 30000 
+1523 20600000 rtn 
+
+lpm_write_config:
+1524 d8a00fff arg 0xfff ,contw 
+1525 98a10a00 iand contw ,contw 
+1526 6fe0c17a fetch 1 ,mem_lpm_config 
+1527 1fe17ef0 and_into 0xf0 ,pdata 
+1528 1fed7e00 lshift8 pdata ,pdata 
+1529 98a1fe00 ior contw ,pdata 
+152a 67f1004c store 2 ,core_lpm_reg 
+152b efe10006 ifetch 2 ,contr 
+152c e7e10005 istore 2 ,contw 
+
+lpm_write_ctrl:
+152d 58000001 setarg lpmreg_sel_ctrl 
+152e 20201530 branch lpm_write 
+
+lpm_write_ctrl2:
+152f 58000002 setarg lpmreg_sel_ctrl2 
+
+lpm_write:
+1530 37d98200 until null ,lpo_edge 
+1531 67f08005 store 1 ,core_lpm_wr 
+1532 37d98200 until null ,lpo_edge 
+1533 37d98200 until null ,lpo_edge 
+1534 20600000 rtn 
+
+lpm_write_sel_vdd:
+1535 6ff20134 fetch 4 ,core_lpm_ctrl2 
+1536 67f2004c store 4 ,core_lpm_reg 
+1537 6ff08134 fetch 1 ,core_lpm_ctrl2 
+1538 1fe17e41 and_into 0x41 ,pdata 
+1539 6848c182 fetcht 1 ,mem_lpm_ctrl3_app_vsel 
+153a 9841fe00 ior temp ,pdata 
+153b 67f0804c store 1 ,core_lpm_reg 
+
+lpm_write_ctrl3:
+153c 58000020 setarg lpmreg_sel_ctrl3 
+153d 20201530 branch lpm_write 
+
+lpm_write_gpio_wakeup:
+153e 44d5c015 bpatch patch15_3 ,mem_patch15 
+153f 6fe2009e fetch 4 ,mem_gpio_wakeup_low 
+1540 67f2004c store 4 ,core_lpm_reg 
+1541 58000004 setarg lpmreg_sel_gpiolow 
+1542 20401530 call lpm_write 
+1543 6fe200a2 fetch 4 ,mem_gpio_wakeup_high 
+1544 67f2004c store 4 ,core_lpm_reg 
+1545 58000008 setarg lpmreg_sel_gpiohigh 
+1546 20201530 branch lpm_write 
+
+lpm_get_wake_lock:
+1547 6fe14157 fetch 2 ,mem_lpm_wake_lock 
+1548 f9207e00 qset1 pdata 
+1549 67e14157 store 2 ,mem_lpm_wake_lock 
+154a 20600000 rtn 
+
+lpm_put_wake_lock:
+154b 6fe14157 fetch 2 ,mem_lpm_wake_lock 
+154c f93ffe00 qset0 pdata 
+154d 67e14157 store 2 ,mem_lpm_wake_lock 
+154e 20600000 rtn 
+
+lpm_check_wake_lock:
+154f 44d64015 bpatch patch15_4 ,mem_patch15 
+1550 20403187 call app_check_wake_lock 
+1551 6fe14157 fetch 2 ,mem_lpm_wake_lock 
+1552 1fe22200 copy pdata ,rega 
+1553 6fe0804c fetch 1 ,mem_state_map 
+1554 2feffe06 isolate1 smap_rxlmp ,pdata 
+1555 7920a20b setflag true ,wake_lock_lmp_rx ,rega 
+1556 6fe08078 fetch 1 ,mem_lmo_opcode1 
+1557 6848807c fetcht 1 ,mem_lmo_opcode2 
+1558 9840fe00 iadd temp ,pdata 
+1559 68488048 fetcht 1 ,mem_lmp_to_send 
+155a 9840fe00 iadd temp ,pdata 
+155b 7d3a220a nsetflag blank ,wake_lock_lmp_tx ,rega 
+155c 6fe1c4f7 fetch 3 ,mem_tx_fifo3 
+155d 7d3a2201 nsetflag blank ,wake_lock_ble_tx ,rega 
+155e 6fe1030e fetch 2 ,mem_l2cap_rxbuff1_len 
+155f 68490310 fetcht 2 ,mem_l2cap_rxbuff2_len 
+1560 9840fe00 iadd temp ,pdata 
+1561 7d3a220d nsetflag blank ,wake_lock_l2cap_rx ,rega 
+1562 6fe44779 fetch util_fifo_len ,mem_ipc_fifo_bt2c51 
+1563 7d3a220f nsetflag blank ,wake_lock_ipc_bt2c51 ,rega 
+1564 6fe44781 fetch util_fifo_len ,mem_ipc_fifo_c512bt 
+1565 7d3a220e nsetflag blank ,wake_lock_ipc_c512bt ,rega 
+1566 6fe0c1de fetch 1 ,mem_hci_cmd 
+1567 7d3a2208 nsetflag blank ,wake_lock_cmd ,rega 
+1568 6fe0c09a fetch 1 ,mem_device_option 
+1569 2fe1fe0a compare dvc_op_module ,pdata ,0xff 
+156a 2040956e call lpm_uart_wake_lock ,true 
+156b 1a227e00 copy rega ,pdata 
+156c 67e14157 store 2 ,mem_lpm_wake_lock 
+156d 20600000 rtn 
+
+lpm_uart_wake_lock:
+156e 6ff10112 fetch 2 ,core_uart_rxitems 
+156f 7d3a2206 nsetflag blank ,wake_lock_uart_rx ,rega 
+1570 6ff1010e fetch 2 ,core_uart_txitems 
+1571 7d3a2205 nsetflag blank ,wake_lock_uart_tx ,rega 
+1572 20600000 rtn 
+
+lpm_shut_down:
+1573 6ff20138 fetch 4 ,core_lpm_ctrl 
+1574 793ffe1b set0 27 ,pdata 
+1575 67f2004c store 4 ,core_lpm_reg 
+1576 2040152d call lpm_write_ctrl 
+1577 2020137a branch assert 
+
+lpm_disable_exen_output:
+1578 6ff2013c fetch 4 ,core_lpm_xtalcnt 
+1579 793ffe14 set0 20 ,pdata 
+157a 67f2004c store 4 ,core_lpm_reg 
+157b 2020152f branch lpm_write_ctrl2 
+
+le_init_conn:
+157c 474b4032 bpatchx patch32_6 ,mem_patch32 
+157d 7855fc00 disable wake 
+157e 70029d01 jam 1 ,mem_le_conn_handle 
+157f 70028703 jam 3 ,mem_le_state 
+1580 70029e01 jam 1 ,mem_le_arq 
+1581 5fffffff setarg -1 
+1582 67e102a1 store 2 ,mem_le_event_count 
+1583 18007e00 force 0 ,pdata 
+1584 67e0829f store 1 ,mem_le_ch 
+1585 67e082aa store 1 ,mem_le_op 
+1586 67e1c16e store 3 ,mem_sniff_rcv 
+1587 67e1c171 store 3 ,mem_sniff_lost 
+1588 204018e2 call le_clear_enc 
+1589 7041f801 jam 1 ,mem_le_txheader 
+158a 7041f900 jam 0 ,mem_le_txlen 
+158b 7002bc01 jam fun_rx_ll_1m_phy ,mem_le_rx_phy 
+158c 7002bd01 jam fun_tx_ll_1m_phy ,mem_le_tx_phy 
+158d 70443800 jam 0 ,mem_le_l2cap_att_states 
+158e 202019bd branch le_supervision_flush 
+
+le_init_master:
+158f 474bc032 bpatchx patch32_7 ,mem_patch32 
+1590 7834fc00 enable master 
+1591 70028803 jam lemode_master ,mem_le_mode 
+1592 70443a01 jam 1 ,mem_le_att_handle 
+1593 70099e01 jam 1 ,mem_le_search_handle_start 
+1594 5800ffff setarg 0xffff 
+1595 67e109a0 store 2 ,mem_le_search_handle_end 
+1596 18007e00 force 0 ,pdata 
+1597 67e2c6a8 store 5 ,mem_ccm_pcnt_rx 
+1598 79207e27 set1 le_ccm_directionbit ,pdata 
+1599 67e2c6a3 store 5 ,mem_ccm_pcnt_tx 
+159a 2020157c branch le_init_conn 
+
+le_init_slave:
+159b 474c4033 bpatchx patch33_0 ,mem_patch33 
+159c 7854fc00 disable master 
+159d 58000017 setarg 0x17 
+159e 67e14385 store 2 ,mem_le_remote_mtu 
+159f 1fe0fe04 increase 4 ,pdata 
+15a0 67e14447 store 2 ,mem_remote_rx_max_octets 
+15a1 70028801 jam lemode_slave ,mem_le_mode 
+15a2 70442a00 jam 0 ,mem_le_adv_enable 
+15a3 70009d00 jam 0 ,mem_lpm_current_mult 
+15a4 20401607 call le_clear_pairing_state 
+15a5 6fe102b5 fetch 2 ,mem_le_superto 
+15a6 67e14397 store 2 ,mem_le_init_superto 
+15a7 6fe10289 fetch 2 ,mem_le_tsniff 
+15a8 1feffe05 mul32 pdata ,5 ,pdata 
+15a9 1ff1fe00 rshift4 pdata ,pdata 
+15aa 67e102b5 store 2 ,mem_le_superto 
+15ab 2020157c branch le_init_conn 
+
+le_conn_dispatch:
+15ac 474cc033 bpatchx patch33_1 ,mem_patch33 
+15ad 20401632 call le_enable 
+15ae 6fe08287 fetch 1 ,mem_le_state 
+15af 2feffe04 isolate1 lestate_encryption ,pdata 
+15b0 79208032 setflag true ,mark_ble_encryption ,mark 
+15b1 20403155 call app_process_ble 
+15b2 6fe08288 fetch 1 ,mem_le_mode 
+15b3 c28095b5 bbit1 mode_master ,le_master_dispatch 
+15b4 202015c7 branch le_slave_dispatch 
+
+le_master_dispatch:
+15b5 474d4033 bpatchx patch33_2 ,mem_patch33 
+15b6 7834fc00 enable master 
+15b7 204019b4 call le_supervision_update 
+15b8 202115c4 branch le_master_disconn ,positive 
+15b9 20401683 call le_setup 
+15ba 204018f7 call le_prepare_tx 
+15bb 7856fc00 disable match 
+15bc 204017b5 call le_transmit_receive_sifs 
+15bd 24768000 nrtn match 
+15be 6fe08005 fetch 1 ,mem_le_conn_rcv 
+15bf 1fe0fe01 increase 1 ,pdata 
+15c0 67e08005 store 1 ,mem_le_conn_rcv 
+15c1 204018a8 call le_acknowledge 
+15c2 7854fc00 disable master 
+15c3 20600000 rtn 
+
+le_master_disconn:
+15c4 204015fb call le_disconnect 
+15c5 7854fc00 disable master 
+15c6 20600000 rtn 
+
+le_slave_dispatch:
+15c7 474dc033 bpatchx patch33_3 ,mem_patch33 
+15c8 7043e000 jam 0 ,mem_le_md_count 
+15c9 793f8030 set0 mark_ble_crc_fail ,mark 
+15ca 204074cd call sp_calc_sequence_256 
+15cb 20402045 call le_secure_connect_sm 
+15cc 78577c00 disable attempt 
+15cd 204019b4 call le_supervision_update 
+15ce 202115fb branch le_slave_disconn ,positive 
+15cf 6fe082bc fetch 1 ,mem_le_rx_phy 
+15d0 20401618 call le_enable_phy_by_pdata 
+15d1 20401683 call le_setup 
+15d2 204016db call le_receive_slave 
+15d3 242c15ed nbranch le_slave_unsync ,sync 
+15d4 2040160b call le_got_first_packet 
+15d5 203695d8 branch le_slave_match ,match 
+15d6 c51815d8 bmark1 mark_ble_crc_fail ,le_slave_crc_fail 
+15d7 202015e7 branch le_slave_cont 
+
+le_slave_crc_fail:
+
+le_slave_match:
+15d8 474e4033 bpatchx patch33_4 ,mem_patch33 
+15d9 6fe0c3e0 fetch 1 ,mem_le_md_count 
+15da 1fe0fe01 pincrease 1 
+15db 67e0c3e0 store 1 ,mem_le_md_count 
+15dc c00615e7 beq le_md_max_count ,le_slave_cont 
+15dd 204018a8 call le_acknowledge 
+15de 204018f7 call le_prepare_tx 
+15df 6fe082bd fetch 1 ,mem_le_tx_phy 
+15e0 20401618 call le_enable_phy_by_pdata 
+15e1 204017c3 call le_transmit_norx 
+15e2 2040195a call le_parse 
+15e3 6fe14470 fetch 2 ,mem_cb_ble_transmit 
+15e4 20407d47 call callback_func 
+15e5 204015f0 call le_check_md 
+15e6 203415f5 branch le_slave_more_data ,user 
+
+le_slave_cont:
+15e7 474ec033 bpatchx patch33_5 ,mem_patch33 
+15e8 2040200b call le_pairing_sm 
+15e9 20402002 call le_check_paring_time 
+15ea 204077bd call check_51cmd 
+15eb 6fe082aa fetch 1 ,mem_le_op 
+15ec c28195fb bbit1 op_disconn ,le_slave_disconn 
+
+le_slave_unsync:
+15ed 474f4033 bpatchx patch33_6 ,mem_patch33 
+15ee 20401a87 call le_lpm_set_mult 
+15ef 2020105d branch calc_clke_offset 
+
+le_check_md:
+15f0 78547c00 disable user 
+15f1 c5157d92 bmark1 mark_ble_rx_md ,enable_user 
+15f2 c514fd92 bmark1 mark_ble_tx_md ,enable_user 
+15f3 c5187d92 bmark1 mark_ble_crc_fail ,enable_user 
+15f4 20600000 rtn 
+
+le_slave_more_data:
+15f5 474fc033 bpatchx patch33_7 ,mem_patch33 
+15f6 78377c00 enable attempt 
+15f7 204017b9 call le_transmit_receive_sifs_notx 
+15f8 203695d8 branch le_slave_match ,match 
+15f9 c51815d8 bmark1 mark_ble_crc_fail ,le_slave_crc_fail 
+15fa 202015e7 branch le_slave_cont 
+
+le_slave_disconn:
+
+le_disconnect:
+15fb 47504034 bpatchx patch34_0 ,mem_patch34 
+15fc 20401602 call le_clear_connection_info 
+15fd 20403216 call app_disconn_reason_collect_ble 
+15fe 20401607 call le_clear_pairing_state 
+15ff 20402053 call le_sc_state_clear 
+1600 70095b15 jam bt_evt_le_disconnected ,mem_fifo_temp 
+1601 202077a7 branch ui_ipc_send_event 
+
+le_clear_connection_info:
+1602 d8a044ed arg mem_used_map ,contw 
+1603 20407c5d call memset0_16 
+1604 70029d00 jam 0 ,mem_le_conn_handle 
+1605 70028800 jam lemode_idle ,mem_le_mode 
+1606 70028700 jam 0 ,mem_le_state 
+
+le_clear_pairing_state:
+1607 4750c034 bpatchx patch34_1 ,mem_patch34 
+1608 70439f00 jam flag_le_enc_null ,mem_le_enc_state 
+1609 70439e00 jam flag_le_pairing_null ,mem_le_pairing_state 
+160a 20206e02 branch sp_clear_flags 
+
+le_got_first_packet:
+160b 47514034 bpatchx patch34_2 ,mem_patch34 
+160c 6fe08005 fetch 1 ,mem_le_conn_rcv 
+160d 1fe0fe01 increase 1 ,pdata 
+160e 67e08005 store 1 ,mem_le_conn_rcv 
+160f 6fe08287 fetch 1 ,mem_le_state 
+1610 c3818000 rtnbit1 lestate_got_first_packet 
+1611 79207e03 set1 lestate_got_first_packet ,pdata 
+1612 67e08287 store 1 ,mem_le_state 
+1613 6fe14397 fetch 2 ,mem_le_init_superto 
+1614 67e102b5 store 2 ,mem_le_superto 
+1615 58000000 setarg 0 
+1616 67e243bf store 4 ,mem_le_transmit_window 
+1617 20600000 rtn 
+
+le_enable_phy_by_pdata:
+1618 1fe20400 copy pdata ,temp 
+1619 4751c034 bpatchx patch34_3 ,mem_patch34 
+161a 18427e00 copy temp ,pdata 
+161b c2801632 bbit1 bit_le_1m_phy ,le_enable 
+161c c2809621 bbit1 bit_le_2m_phy ,le_enable_2m 
+161d c3011632 bbit0 bit_le_coded_phy ,le_enable 
+161e c283962f bbit1 bit_le_coded_phy_s8 ,le_enable_coded_s8 
+161f c2811627 bbit1 bit_le_coded_phy_s2 ,le_enable_coded_s2 
+1620 20201632 branch le_enable 
+
+le_enable_2m:
+1621 20401632 call le_enable 
+1622 7920002d set1 mark_ble_2m ,mark 
+1623 793f802f set0 mark_ble_lr ,mark 
+1624 70890103 jam 0x03 ,0x8901 
+1625 70892084 jam 0x84 ,0x8920 
+1626 20600000 rtn 
+
+le_enable_coded_s2:
+
+le_enable_coded:
+1627 20401632 call le_enable 
+1628 7920002f set1 mark_ble_lr ,mark 
+1629 793f802e set0 mark_ble_lr_s8 ,mark 
+162a 70890105 jam 0x05 ,0x8901 
+162b 70892080 jam 0x80 ,0x8920 
+162c 70893020 jam 0x20 ,0x8930 
+162d 7089340a jam 0x0a ,0x8934 
+162e 20600000 rtn 
+
+le_enable_coded_s8:
+162f 20401627 call le_enable_coded 
+1630 7920002e set1 mark_ble_lr_s8 ,mark 
+1631 20600000 rtn 
+
+le_enable:
+1632 47524034 bpatchx patch34_4 ,mem_patch34 
+1633 783b7c00 enable le 
+1634 793f802d set0 mark_ble_2m ,mark 
+1635 793f802f set0 mark_ble_lr ,mark 
+1636 70890101 jam 0x01 ,0x8901 
+1637 70892080 jam 0x80 ,0x8920 
+1638 708925a7 jam 0xa7 ,0x8925 
+1639 70893003 jam 0x03 ,0x8930 
+163a 70893358 jam 0x58 ,0x8933 
+163b 7089340a jam 0x0a ,0x8934 
+163c 70893740 jam 0x40 ,0x8937 
+163d 708a6d09 jam 9 ,core_rx_bq_cfg0 
+163e 20600000 rtn 
+
+le_disable:
+163f 4752c034 bpatchx patch34_5 ,mem_patch34 
+1640 785b7c00 disable le 
+1641 793f8032 set0 mark_ble_encryption ,mark 
+1642 70890100 jam 0x00 ,0x8901 
+1643 70892080 jam 0x80 ,0x8920 
+1644 708925a3 jam 0xa3 ,0x8925 
+1645 70893003 jam 0x03 ,0x8930 
+1646 70893368 jam 0x68 ,0x8933 
+1647 70893409 jam 0x09 ,0x8934 
+1648 70893728 jam 0x28 ,0x8937 
+1649 708a6d09 jam 9 ,core_rx_bq_cfg0 
+164a 20600000 rtn 
+
+le_prep:
+164b 7844fc00 disable enable_crc 
+164c 7843fc00 disable enable_white 
+164d 6fe182af fetch 3 ,mem_le_crcinit 
+164e 98001e00 iforce crc24_init 
+164f 6fe08016 fetch 1 ,mem_le_ch_mapped 
+1650 1fed8400 reverse pdata ,temp 
+1651 79200401 set1 1 ,temp 
+1652 18431c00 rshift temp ,white_init 
+1653 20600000 rtn 
+
+le_rx_setfreq:
+1654 2040165d call le_setfreq 
+
+le_rf_rx_enable:
+1655 2040118b call set_freq_rx 
+1656 6fe1015d fetch 2 ,mem_param_pll_setup 
+1657 2040137d call sleep 
+1658 202011a2 branch rf_rx_enable 
+
+le_tx_setfreq:
+1659 20369207 branch txon ,match 
+165a c5181207 bmark1 mark_ble_crc_fail ,txon 
+
+le_tx_setfreq0:
+165b 2040165d call le_setfreq 
+165c 20201201 branch set_freq_tx 
+
+le_setfreq:
+165d 47534034 bpatchx patch34_6 ,mem_patch34 
+165e 2040115d call set_sync_on 
+165f 6fe082df fetch 1 ,mem_le_testtype 
+1660 243a1670 nbranch le_ctf_test ,blank 
+1661 6fe08016 fetch 1 ,mem_le_ch_mapped 
+1662 1fe67c24 sub pdata ,36 ,null 
+1663 2021166a branch le_ctf_normal ,positive 
+1664 18000400 force 0 ,temp 
+1665 c1128000 rtneq 37 
+1666 18000418 force 24 ,temp 
+1667 c1130000 rtneq 38 
+1668 1800044e force 78 ,temp 
+1669 20600000 rtn 
+
+le_ctf_normal:
+166a 1fe67c0a sub pdata ,10 ,null 
+166b 2021166d branch le_ctf_low ,positive 
+166c 1fe0fe01 increase 1 ,pdata 
+
+le_ctf_low:
+166d 1fe3fe00 lshift pdata ,pdata 
+166e 1fe08402 add pdata ,2 ,temp 
+166f 20600000 rtn 
+
+le_ctf_test:
+1670 6fe08016 fetch 1 ,mem_le_ch_mapped 
+1671 1fe38400 lshift pdata ,temp 
+1672 20600000 rtn 
+
+le_sca_map:
+1673 d84001f4 arg 500 ,temp 
+1674 207a0000 rtn blank 
+1675 d84000fa arg 250 ,temp 
+1676 c1008000 rtneq 1 
+1677 d8400096 arg 150 ,temp 
+1678 c1010000 rtneq 2 
+1679 d8400064 arg 100 ,temp 
+167a c1018000 rtneq 3 
+167b d840004b arg 75 ,temp 
+167c c1020000 rtneq 4 
+167d d8400032 arg 50 ,temp 
+167e c1028000 rtneq 5 
+167f d8400028 arg 40 ,temp 
+1680 c1030000 rtneq 6 
+1681 d8400014 arg 20 ,temp 
+1682 20600000 rtn 
+
+le_setup:
+1683 4753c034 bpatchx patch34_7 ,mem_patch34 
+1684 78287c00 enable swfine 
+1685 6fe202ab fetch 4 ,mem_le_access 
+1686 98001200 iforce access 
+1687 204010ac call calc_mod_value_scale_le 
+1688 204016b9 call le_map_channel 
+1689 58000200 setarg 0x200 
+168a 2034968d branch le_setup_master ,master 
+168b 6fe10295 fetch 2 ,mem_le_receive_window 
+168c 1fe37e00 rshift pdata ,pdata 
+
+le_setup_master:
+168d 6849015d fetcht 2 ,mem_param_pll_setup 
+168e 9840fe00 iadd temp ,pdata 
+168f 20401311 call ahead_window 
+1690 1b427e00 deposit clke 
+1691 20600000 rtn 
+
+le_context_nextevent:
+1692 47544035 bpatchx patch35_0 ,mem_patch35 
+1693 20407c0e call push_stack_rega_b_c 
+1694 67210987 storer loopcnt ,2 ,mem_loopcnt 
+1695 1a208c01 add rega ,coffset_mode ,contr 
+1696 efe08006 ifetch 1 ,contr 
+1697 c4000000 rtnbit0 mode_le 
+1698 1a208a1a add rega ,coffset_le_event_cnt ,contw 
+1699 efe10005 ifetch 2 ,contw 
+169a 1fe0fe01 increase 1 ,pdata 
+169b e7e10005 istore 2 ,contw 
+169c 20401825 call le_update_param 
+169d 2040184a call le_update_channel_map 
+169e 20401853 call le_update_phy 
+169f 204016a3 call le_context_nexthop 
+16a0 20407c1c call pop_stack_rega_b_c 
+16a1 6f210987 fetchr loopcnt ,2 ,mem_loopcnt 
+16a2 20600000 rtn 
+
+le_context_nexthop:
+16a3 1a208c19 add rega ,coffset_le_hop ,contr 
+16a4 efe08006 ifetch 1 ,contr 
+16a5 1a208a18 add rega ,coffset_le_ch ,contw 
+16a6 e8408005 ifetcht 1 ,contw 
+16a7 9840fe00 iadd temp ,pdata 
+16a8 1fe67c24 sub pdata ,36 ,null 
+16a9 202116ab branch le_nexthop_nowrap ,positive 
+16aa 1fe0ffdb increase -37 ,pdata 
+
+le_nexthop_nowrap:
+16ab e7e08005 istore 1 ,contw 
+16ac 20600000 rtn 
+
+le_calc_channel_map:
+16ad 1a208c30 add rega ,coffset_le_channel_map ,contr 
+16ae efe28006 ifetch 5 ,contr 
+16af 18000400 force 0 ,temp 
+16b0 18007225 force 37 ,loopcnt 
+
+le_count_channels_loop:
+16b1 c30016b3 bbit0 0 ,le_count_channels_notused 
+16b2 18408401 increase 1 ,temp 
+
+le_count_channels_notused:
+16b3 1fe37e00 rshift pdata ,pdata 
+16b4 c20016b1 loop le_count_channels_loop 
+16b5 1840ffff add temp ,-1 ,pdata 
+16b6 1a208a22 add rega ,coffset_le_channels ,contw 
+16b7 e7e08005 istore 1 ,contw 
+16b8 20600000 rtn 
+
+le_map_channel:
+16b9 4754c035 bpatchx patch35_1 ,mem_patch35 
+16ba 6fe0829f fetch 1 ,mem_le_ch 
+16bb 98000e00 iforce queue 
+16bc 684a82b7 fetcht 5 ,mem_le_channel_map 
+16bd a84fffff qisolate1 temp 
+16be 202096ce branch le_map_channel_end ,true 
+
+le_map_channel_next:
+16bf 6fe082a9 fetch 1 ,mem_le_channels 
+16c0 98e67e00 isub queue ,pdata 
+16c1 202116c4 branch le_map_channel_cont ,positive 
+16c2 1fe60fff sub pdata ,-1 ,queue 
+16c3 202016bf branch le_map_channel_next 
+
+le_map_channel_cont:
+16c4 18e27200 copy queue ,loopcnt 
+16c5 18000e00 force 0 ,queue 
+
+le_map_channel_loop:
+16c6 a84fffff qisolate1 temp 
+16c7 202096c9 branch le_map_channel_skip ,true 
+16c8 1f20f201 increase 1 ,loopcnt 
+
+le_map_channel_skip:
+16c9 1f227e00 deposit loopcnt 
+16ca 203a16ce branch le_map_channel_end ,blank 
+16cb 18e08e01 increase 1 ,queue 
+16cc 1f20f3ff increase -1 ,loopcnt 
+16cd 202016c6 branch le_map_channel_loop 
+
+le_map_channel_end:
+16ce 18e27e00 deposit queue 
+16cf 67e08016 store 1 ,mem_le_ch_mapped 
+16d0 20600000 rtn 
+
+le_wait_tx:
+16d1 203496d4 branch le_wait_master ,master 
+16d2 37c18200 until null ,timeout 
+16d3 20600000 rtn 
+
+le_wait_master:
+16d4 d9600ea0 arg 0xea0 ,timeup 
+16d5 34730200 until clkn_rt ,meet 
+16d6 20600000 rtn 
+
+le_receive_adv:
+16d7 78487c00 disable swfine 
+16d8 6fe143e8 fetch 2 ,mem_le_scan_window 
+16d9 1fe21600 copy pdata ,timeup 
+16da 202016e1 branch le_receive_packet 
+
+le_receive_slave:
+16db 47554035 bpatchx patch35_2 ,mem_patch35 
+16dc 20401745 call le_dec_init 
+16dd 78287c00 enable swfine 
+16de 6fe10295 fetch 2 ,mem_le_receive_window 
+16df 684a43bf fetcht 4 ,mem_le_transmit_window 
+16e0 98409600 iadd temp ,timeup 
+
+le_receive_packet:
+16e1 20401654 call le_rx_setfreq 
+
+le_receive_rxon:
+16e2 4755c035 bpatchx patch35_3 ,mem_patch35 
+16e3 2040164b call le_prep 
+16e4 c59796e9 bmark0 mark_ble_lr ,le_receive_nolr 
+16e5 783cfc00 pulse dewhiten_code_calc 
+16e6 2000001e nop 30 
+16e7 2040164b call le_prep 
+16e8 19699600 lshift3 timeup ,timeup 
+
+le_receive_nolr:
+16e9 7856fc00 disable match 
+16ea 7826fc00 enable decode_fec0 
+16eb 7830fc00 enable is_rx 
+16ec 78507c00 disable is_tx 
+16ed 19623600 copy timeup ,stop_watch 
+16ee 37c18400 correlate null ,timeout 
+16ef 203716f2 branch le_receive_on_attempt ,attempt 
+16f0 1b420400 copy clke ,temp 
+16f1 604b0097 storet 6 ,mem_sync_clke 
+
+le_receive_on_attempt:
+16f2 242c1780 nbranch le_unsync_end ,sync 
+16f3 47564035 bpatchx patch35_4 ,mem_patch35 
+16f4 78287c00 enable swfine 
+16f5 d8404ea9 arg param_t_ifs_150us + param_20ms_init + param_sync_time_difference ,temp 
+16f6 6fe0c1f3 fetch 1 ,mem_system_clk 
+16f7 984fb600 imul32 temp ,stop_watch 
+16f8 20404bd6 call rf_debug_rx_sync_line 
+16f9 203716ff branch le_receive_skip ,attempt 
+16fa 20401784 call calc_clke_all_modem 
+16fb 6fe08287 fetch 1 ,mem_le_state 
+16fc c30196ff bbit0 lestate_got_first_packet ,le_receive_skip 
+16fd 684b0097 fetcht 6 ,mem_sync_clke 
+16fe 20559425 call lpm_adjust_clk ,wake 
+
+le_receive_skip:
+16ff 2040127d call save_rssi 
+1700 7823fc00 enable enable_white 
+1701 7824fc00 enable enable_crc 
+1702 09800008 parse demod ,bucket ,8 
+1703 19897e00 rshift3 pwindow ,pdata 
+1704 67e0816b store 1 ,mem_le_rxbuf_data_header 
+1705 09800008 parse demod ,bucket ,8 
+1706 19897e00 rshift3 pwindow ,pdata 
+1707 67e0816c store 1 ,mem_le_rxbuf_data_length 
+1708 1fe27200 copy pdata ,loopcnt 
+1709 20229724 branch le_rx_nopayload ,zero 
+170a c5191710 bmark1 mark_ble_encryption ,le_rx_dec 
+
+le_rx_loop:
+170b 09800008 parse demod ,bucket ,8 
+170c 19897e00 rshift3 pwindow ,pdata 
+170d e7e08005 istore 1 ,contw 
+170e c200170b loop le_rx_loop 
+170f 20201724 branch le_rx_nopayload 
+
+le_rx_dec:
+1710 18a22400 copy contw ,regb 
+1711 204018a1 call le_check_retransmit 
+1712 6a20816c fetchr rega ,1 ,mem_le_rxbuf_data_length 
+1713 1a20a3fc increase -4 ,rega 
+1714 24211778 nbranch le_mic_error ,positive 
+1715 2040174a call le_dec_start 
+1716 1a420a00 copy regb ,contw 
+1717 d8400000 arg 0 ,temp 
+1718 6f20816c fetchr loopcnt ,1 ,mem_le_rxbuf_data_length 
+1719 1f20f3fc increase -4 ,loopcnt 
+171a 20229722 branch le_rx_dec_loop_end ,zero 
+
+le_rx_dec_loop:
+171b 09800008 parse demod ,bucket ,8 
+171c 19897e00 rshift3 pwindow ,pdata 
+171d e7e08005 istore 1 ,contw 
+171e 18408401 increase 1 ,temp 
+171f 18417c0f and temp ,0xf ,null 
+1720 20429767 call le_dec ,zero 
+1721 c200171b loop le_rx_dec_loop 
+
+le_rx_dec_loop_end:
+1722 2040176f call le_dec_end 
+1723 1a420a00 copy regb ,contw 
+
+le_rx_nopayload:
+1724 4756c035 bpatchx patch35_5 ,mem_patch35 
+1725 09800018 parse demod ,bucket ,24 
+1726 1fef7e00 rshift32 pdata ,pdata 
+1727 1ff17e00 rshift16 pdata ,pdata 
+1728 e7e18005 istore 3 ,contw 
+1729 78287c00 enable swfine 
+172a 20401792 call le_set_until_tx_timer 
+172b 2023177c branch le_crc_fail ,crc_failed 
+172c c5991736 bmark0 mark_ble_encryption ,le_rx_match 
+172d 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+172e 203a1736 branch le_rx_match ,blank 
+172f 1fe0fffc increase -4 ,pdata 
+1730 67e0816c store 1 ,mem_le_rxbuf_data_length 
+1731 20406c5d call wait_ccm_done 
+1732 6ff08108 fetch 1 ,core_misc_status 
+1733 c3039778 bbit0 7 ,le_mic_error 
+1734 1800700c force regidx_result ,regext_index 
+1735 65e20273 storer regext ,4 ,mem_le_peer_mic 
+
+le_rx_match:
+1736 20404bd5 call rf_debug_rx_crc_line 
+1737 7836fc00 enable match 
+1738 793f8030 set0 mark_ble_crc_fail ,mark 
+
+le_crc_fail_tx:
+1739 20406c5f call ccm_ctrl_clr 
+173a 6fe082bc fetch 1 ,mem_le_rx_phy 
+173b 7d3e7e07 nsetflag ble_coded_info ,bit_le_coded_phy_s8 ,pdata 
+173c 67e082bc store 1 ,mem_le_rx_phy 
+
+le_match_set_txfreq:
+173d 47574035 bpatchx patch35_6 ,mem_patch35 
+173e 68488017 fetcht 1 ,mem_last_freq 
+173f 1840a202 add temp ,2 ,rega 
+1740 c5169742 bmark1 mark_ble_2m ,le_match_set_txfreq_offset 
+1741 1840a202 add temp ,2 ,rega 
+
+le_match_set_txfreq_offset:
+1742 7846fc00 disable decode_fec0 
+1743 2040115d call set_sync_on 
+1744 202011c6 branch rf_tx_write_freq 
+
+le_dec_init:
+1745 c6990000 rtnmark0 mark_ble_encryption 
+1746 20406cfa call load_sk 
+1747 1800700c force regidx_result ,regext_index 
+1748 20406d02 call aes_clear 
+1749 20206d01 branch aes_clear_data 
+
+le_dec_start:
+174a 7080d500 jam 0 ,core_ccm_aad0 
+174b 7080d601 jam 1 ,core_ccm_aad1 
+174c 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+174d 1fe17e03 and_into 0x3 ,pdata 
+174e 67f080d7 store 1 ,core_ccm_aad2 
+174f 5800016d setarg mem_le_rxbuf_data_payload 
+1750 67f100d1 store 2 ,core_ccm_input_playload_addr 
+1751 67f100d3 store 2 ,core_ccm_output_playload_addr 
+1752 6a20816c fetchr rega ,1 ,mem_le_rxbuf_data_length 
+1753 1a20a3fc increase -4 ,rega 
+1754 684ac6a8 fetcht 5 ,mem_ccm_pcnt_rx 
+1755 280ffe0f isolate1 mark_old_packet ,mark 
+1756 2040975d call le_pcnt_rx_sub1 ,true 
+1757 20406b6b call ccm_b0 
+1758 58000000 setarg 0 
+1759 67f100da store 2 ,core_ccm_inptr 
+175a 70800a06 jam 6 ,core_ccm_ctrl 
+175b 70800a07 jam 7 ,core_ccm_ctrl 
+175c 20600000 rtn 
+
+le_pcnt_rx_sub1:
+175d 18467c00 sub temp ,0 ,null 
+175e 20229762 branch le_pcnt_rx_sub1_0 ,zero 
+175f 184085ff increase -1 ,temp 
+1760 79200427 set1 le_ccm_directionbit ,temp 
+1761 20600000 rtn 
+
+le_pcnt_rx_sub1_0:
+1762 58ffffff setarg 0xffffff 
+1763 1ff07e00 lshift16 pdata ,pdata 
+1764 d840ffff arg 0xffff ,temp 
+1765 98418400 ior temp ,temp 
+1766 20600000 rtn 
+
+le_dec:
+1767 18a22400 copy contw ,regb 
+1768 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+1769 1fe0fffc increase -4 ,pdata 
+176a 98467c00 isub temp ,null 
+176b 20628000 rtn zero 
+176c 605900da storet 2 ,core_ccm_inptr 
+176d 1a420a00 copy regb ,contw 
+176e 20600000 rtn 
+
+le_dec_end:
+176f 09800020 parse demod ,bucket ,32 
+1770 1fef7e00 rshift32 pdata ,pdata 
+1771 1fecfe00 rshift8 pdata ,pdata 
+1772 e7e20005 istore 4 ,contw 
+1773 18a22400 copy contw ,regb 
+1774 18007000 force regidx_data ,regext_index 
+1775 1fe25e00 copy pdata ,regext 
+1776 605900da storet 2 ,core_ccm_inptr 
+1777 20600000 rtn 
+
+le_mic_error:
+1778 20201782 branch le_end_of_packet 
+
+le_retransmit_end_of_packet:
+1779 20401792 call le_set_until_tx_timer 
+177a 20400e7c call end_of_packet 
+177b 20201736 branch le_rx_match 
+
+le_crc_fail:
+177c 20404bd7 call rf_debug_rx_crc_fail_line 
+177d c5181780 bmark1 mark_ble_crc_fail ,le_crc_fail_consecutive 
+177e 79200030 set1 mark_ble_crc_fail ,mark 
+177f 20201739 branch le_crc_fail_tx 
+
+le_unsync_end:
+
+le_crc_fail_consecutive:
+1780 793f8030 set0 mark_ble_crc_fail ,mark 
+1781 20201782 branch le_end_of_packet 
+
+le_end_of_packet:
+1782 20406c5f call ccm_ctrl_clr 
+1783 20200e7c branch end_of_packet 
+
+calc_clke_all_modem:
+1784 c517978a bmark1 mark_ble_lr ,calc_clke_modem_coded 
+1785 c516978e bmark1 mark_ble_2m ,calc_clke_modem_2m 
+1786 6fe10165 fetch 2 ,mem_param_clke_cal_le_1m 
+1787 1fe25200 copy pdata ,clke_rt 
+1788 1c225000 copy bt_clk ,clke_bt 
+1789 20600000 rtn 
+
+calc_clke_modem_coded:
+178a 6fe10169 fetch 2 ,mem_param_clke_cal_le_coded 
+178b 1fe25200 copy pdata ,clke_rt 
+178c 1c20d001 add bt_clk ,1 ,clke_bt 
+178d 20600000 rtn 
+
+calc_clke_modem_2m:
+178e 6fe10167 fetch 2 ,mem_param_clke_cal_le_2m 
+178f 1fe25200 copy pdata ,clke_rt 
+1790 1c225000 copy bt_clk ,clke_bt 
+1791 20600000 rtn 
+
+le_set_until_tx_timer:
+1792 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+1793 1fe08405 add pdata ,5 ,temp 
+1794 18498400 lshift3 temp ,temp 
+1795 6fe082bc fetch 1 ,mem_le_rx_phy 
+1796 c5179799 bmark1 mark_ble_lr ,le_set_until_tx_timer_rx_lr 
+1797 c280179b bbit1 bit_le_1m_phy ,le_set_until_tx_timer_rx_1m 
+1798 c280979c bbit1 bit_le_2m_phy ,le_set_until_tx_timer_rx_2m 
+
+le_set_until_tx_timer_rx_lr:
+1799 203e179e branch le_set_until_tx_timer_rx_coded_s2 ,ble_coded_info 
+179a 202017a1 branch le_set_until_tx_timer_rx_coded_s8 
+
+le_set_until_tx_timer_rx_1m:
+179b 202017a6 branch le_calc_stop_watch 
+
+le_set_until_tx_timer_rx_2m:
+179c 18430400 rshift temp ,temp 
+179d 202017a6 branch le_calc_stop_watch 
+
+le_set_until_tx_timer_rx_coded_s2:
+179e 18408403 add temp ,3 ,temp 
+179f 18438400 lshift temp ,temp 
+17a0 202017a3 branch le_set_until_tx_timer_rx_coded 
+
+le_set_until_tx_timer_rx_coded_s8:
+17a1 18408403 add temp ,3 ,temp 
+17a2 18498400 lshift3 temp ,temp 
+
+le_set_until_tx_timer_rx_coded:
+17a3 58000028 setarg param_coded_c1_term1_time_40us 
+17a4 98408400 iadd temp ,temp 
+17a5 202017a6 branch le_calc_stop_watch 
+
+le_calc_stop_watch:
+17a6 6fe0c1f3 fetch 1 ,mem_system_clk 
+17a7 984f8400 imul32 temp ,temp 
+17a8 da204e20 arg param_20ms_init ,rega 
+17a9 9a2ffe00 imul32 rega ,pdata 
+17aa 98460400 isub temp ,temp 
+17ab 1b627e00 copy stop_watch ,pdata 
+17ac 98463600 isub temp ,stop_watch 
+17ad 20600000 rtn 
+
+le_transmit_receive_sifs_without_change_mode:
+17ae 204017c5 call le_transmit 
+17af 68488017 fetcht 1 ,mem_last_freq 
+17b0 2040118b call set_freq_rx 
+17b1 204011a2 call rf_rx_enable 
+17b2 78287c00 enable swfine 
+17b3 d960157c arg 5500 ,timeup 
+17b4 202016e2 branch le_receive_rxon 
+
+le_transmit_receive_sifs:
+17b5 4757c035 bpatchx patch35_7 ,mem_patch35 
+17b6 6fe082bd fetch 1 ,mem_le_tx_phy 
+17b7 20401618 call le_enable_phy_by_pdata 
+17b8 204017c5 call le_transmit 
+
+le_transmit_receive_sifs_notx:
+17b9 6fe082bc fetch 1 ,mem_le_rx_phy 
+17ba 20401618 call le_enable_phy_by_pdata 
+17bb 68488017 fetcht 1 ,mem_last_freq 
+17bc 2040118b call set_freq_rx 
+17bd 204011a2 call rf_rx_enable 
+17be 78287c00 enable swfine 
+17bf d960157c arg 5500 ,timeup 
+17c0 c59796e2 bmark0 mark_ble_lr ,le_receive_rxon 
+17c1 d9602134 arg 8500 ,timeup 
+17c2 202016e2 branch le_receive_rxon 
+
+le_transmit_norx:
+17c3 204017c5 call le_transmit 
+17c4 20200e7c branch end_of_packet 
+
+le_transmit:
+17c5 47584036 bpatchx patch36_0 ,mem_patch36 
+17c6 2040164b call le_prep 
+17c7 20401659 call le_tx_setfreq 
+17c8 20404bdc call rf_debug_tx_on_line 
+17c9 79202a00 set1 txgfsk ,radio_ctrl 
+17ca 782efc00 enable encode_fec0 
+17cb 78307c00 enable is_tx 
+17cc 7850fc00 disable is_rx 
+17cd 204016d1 call le_wait_tx 
+17ce 785d7c00 disable lr_s2en 
+17cf c5179807 bmark1 mark_ble_lr ,le_transmit_lr 
+17d0 c5169819 bmark1 mark_ble_2m ,le_transmit_2m 
+17d1 19317e00 rshift16 access ,pdata 
+17d2 1fecfe00 rshift8 pdata ,pdata 
+17d3 1ff1fe00 rshift4 pdata ,pdata 
+17d4 08008628 inject mod ,40 
+
+le_transmit_packet:
+17d5 7823fc00 enable enable_white 
+17d6 7824fc00 enable enable_crc 
+17d7 4758c036 bpatchx patch36_1 ,mem_patch36 
+17d8 6fe0c1f8 fetch 1 ,mem_le_txheader 
+17d9 08008608 inject mod ,8 
+17da efe08006 ifetch 1 ,contr 
+17db 1fe27200 copy pdata ,loopcnt 
+17dc 08008608 inject mod ,8 
+17dd 1f267c00 sub loopcnt ,0 ,null 
+17de 202297e6 branch le_tr_nopayload ,zero 
+17df 6ff0800a fetch 1 ,core_ccm_ctrl 
+17e0 203a17e2 branch le_transmit_packet_not_enc ,blank 
+17e1 c51917fc bmark1 mark_ble_encryption ,le_transmit_packet_enc 
+
+le_transmit_packet_not_enc:
+17e2 d8c041fa arg mem_le_txpayload ,contr 
+
+le_tr_loop:
+17e3 efe08006 ifetch 1 ,contr 
+17e4 08008608 inject mod ,8 
+17e5 c20017e3 loop le_tr_loop 
+
+le_tr_nopayload:
+17e6 78247c00 enable enable_parity 
+17e7 08008618 inject mod ,24 
+17e8 78447c00 disable enable_parity 
+17e9 c59797ed bmark0 mark_ble_lr ,le_transmit_skip 
+17ea 7843fc00 disable enable_white 
+17eb 58000000 setarg 0 
+17ec 08008603 inject mod ,3 
+
+le_transmit_skip:
+17ed 37d38200 until null ,tx_clear 
+17ee 20000064 nop 100 
+17ef 784efc00 disable encode_fec0 
+17f0 785c7c00 disable encode_fec3 
+17f1 2040115d call set_sync_on 
+17f2 20404bda call rf_debug_tx_off_line 
+
+le_check_start_pause_enc:
+17f3 6fe0c1f8 fetch 1 ,mem_le_txheader 
+17f4 1fe17e03 and pdata ,llid_le_ll ,pdata 
+17f5 c1818000 rtnne llid_le_ll 
+17f6 6fe0c39f fetch 1 ,mem_le_enc_state 
+17f7 c00118e2 beq flag_le_enc_pause ,le_clear_enc 
+17f8 c1828000 rtnne flag_le_send_start_enc_req 
+17f9 6fe0c1fa fetch 1 ,mem_le_txpayload 
+17fa c00298dd beq ll_start_enc_req ,le_set_enc 
+17fb 20600000 rtn 
+
+le_transmit_packet_enc:
+17fc 1f20f3fc increase -4 ,loopcnt 
+17fd 1f220400 copy loopcnt ,temp 
+17fe 20406c4a call ccm_wait_enc 
+17ff d8c041fa arg mem_le_txpayload ,contr 
+
+le_transmit_packet_enc_loop:
+1800 efe08006 ifetch 1 ,contr 
+1801 08008608 inject mod ,8 
+1802 c2001800 loop le_transmit_packet_enc_loop 
+1803 20406c4f call ccm_check_enc_done 
+1804 1de27e00 copy regext ,pdata 
+1805 08008620 inject mod ,32 
+1806 202017e6 branch le_tr_nopayload 
+
+le_transmit_lr:
+1807 df20000a arg 10 ,loopcnt 
+
+le_transmit_lr_preamble_loop:
+1808 5800003c setarg 0x3c 
+1809 08008608 inject mod ,8 
+180a c2001808 loop le_transmit_lr_preamble_loop 
+180b 784efc00 disable encode_fec0 
+180c 783c7c00 enable encode_fec3 
+180d 19317e00 rshift16 access ,pdata 
+180e 1ff17e00 rshift16 pdata ,pdata 
+180f 1ff1fe00 rshift4 pdata ,pdata 
+1810 08008620 inject mod ,32 
+1811 c5171816 bmark1 mark_ble_lr_s8 ,le_transmit_lr_s8 
+
+le_transmit_lr_s2:
+1812 58000001 setarg 1 
+1813 08008605 inject mod ,5 
+1814 783d7c00 enable lr_s2en 
+1815 202017d5 branch le_transmit_packet 
+
+le_transmit_lr_s8:
+1816 58000000 setarg 0 
+1817 08008605 inject mod ,5 
+1818 202017d5 branch le_transmit_packet 
+
+le_transmit_2m:
+1819 6fe0c1f3 fetch 1 ,mem_system_clk 
+181a 1fe37200 rshift pdata ,loopcnt 
+
+le_transmit_2m_dealy:
+181b 20000002 nop 2 
+181c c200181b loop le_transmit_2m_dealy 
+181d 19317e00 rshift16 access ,pdata 
+181e 1fecfe00 rshift8 pdata ,pdata 
+181f 1ff18400 rshift4 pdata ,temp 
+1820 18427e00 copy temp ,pdata 
+1821 08008608 inject mod ,8 
+1822 18427e00 copy temp ,pdata 
+1823 08008628 inject mod ,40 
+1824 202017d5 branch le_transmit_packet 
+
+le_update_param:
+1825 da601829 arg le_update_param_ahead1_cb ,regc 
+1826 da40183d arg le_update_param_cb ,regb 
+1827 d8e00005 arg lestate_update_param ,queue 
+1828 20201881 branch le_check_update_flag 
+
+le_update_param_ahead1_cb:
+1829 1a208c04 add rega ,coffset_sniff_anchor ,contr 
+182a e8420006 ifetcht 4 ,contr 
+182b 1a208c37 add rega ,coffest_le_new_transmitwindowsize ,contr 
+182c efe08006 ifetch 1 ,contr 
+182d 1a208a2b add rega ,coffset_le_window_size ,contw 
+182e e7e08005 istore 1 ,contw 
+182f efe10006 ifetch 2 ,contr 
+1830 1febfe00 lshift2 pdata ,pdata 
+1831 98409600 iadd temp ,timeup 
+1832 1a208a04 add rega ,coffset_sniff_anchor ,contw 
+1833 19627e00 deposit timeup 
+1834 e7e20005 istore 4 ,contw 
+1835 efe10006 ifetch 2 ,contr 
+1836 1febfe00 lshift2 pdata ,pdata 
+1837 1a208a02 add rega ,coffset_tsniff ,contw 
+1838 e7e10005 istore 2 ,contw 
+1839 efe20006 ifetch 4 ,contr 
+183a 1a208a2c add rega ,coffset_le_slave_latency ,contw 
+183b e7e20005 istore 4 ,contw 
+183c 202019c0 branch le_receive_window_size 
+
+le_update_param_cb:
+183d efe08011 ifetch 1 ,rega 
+183e 793ffe03 set0 lestate_got_first_packet ,pdata 
+183f e7e08011 istore 1 ,rega 
+1840 6fe102b5 fetch 2 ,mem_le_superto 
+1841 67e14397 store 2 ,mem_le_init_superto 
+1842 62210970 storer rega ,2 ,mem_rega 
+1843 70095b44 jam bt_evt_le_parse_conn_param_accepted ,mem_fifo_temp 
+1844 204077a7 call ui_ipc_send_event 
+1845 6a210970 fetchr rega ,2 ,mem_rega 
+1846 1a208c2e add rega ,coffset_le_slave_superto ,contr 
+1847 efe10006 ifetch 2 ,contr 
+1848 67e14397 store 2 ,mem_le_init_superto 
+1849 20600000 rtn 
+
+le_update_channel_map:
+184a da600000 arg 0 ,regc 
+184b da40184e arg le_update_channel_map_cb ,regb 
+184c d8e00006 arg lestate_update_map ,queue 
+184d 20201881 branch le_check_update_flag 
+
+le_update_channel_map_cb:
+184e 1a208c37 add rega ,coffset_le_new_map ,contr 
+184f efe28006 ifetch 5 ,contr 
+1850 1a208a30 add rega ,coffset_le_channel_map ,contw 
+1851 e7e28005 istore 5 ,contw 
+1852 202016ad branch le_calc_channel_map 
+
+le_update_phy:
+1853 da600000 arg 0 ,regc 
+1854 da401857 arg le_update_phy_cb ,regb 
+1855 d8e00007 arg lestate_update_phy ,queue 
+1856 20201881 branch le_check_update_flag 
+
+le_update_phy_cb:
+1857 1a208c37 add rega ,coffset_le_new_m2s_phy ,contr 
+1858 efe08006 ifetch 1 ,contr 
+1859 20401864 call le_update_phy_cb_m2s 
+185a e7e08005 istore 1 ,contw 
+185b 1a208c38 add rega ,coffset_le_new_s2m_phy ,contr 
+185c efe08006 ifetch 1 ,contr 
+185d 20401872 call le_update_phy_cb_s2m 
+185e e7e08005 istore 1 ,contw 
+185f 62210970 storer rega ,2 ,mem_rega 
+1860 70095b42 jam bt_evt_le_update_phy ,mem_fifo_temp 
+1861 204077a7 call ui_ipc_send_event 
+1862 6a210970 fetchr rega ,2 ,mem_rega 
+1863 20600000 rtn 
+
+le_update_phy_cb_m2s:
+1864 205a186c call le_update_phy_cb_m2s_no_change ,blank 
+1865 1a208a35 add rega ,coffset_le_rx_phy ,contw 
+1866 24748000 nrtn master 
+1867 6848c445 fetcht 1 ,mem_le_tx_phys 
+1868 284ffe07 isolate1 bit_le_coded_phy_s8 ,temp 
+1869 7920fe07 setflag true ,bit_le_coded_phy_s8 ,pdata 
+186a 1a208a36 add rega ,coffset_le_tx_phy ,contw 
+186b 20600000 rtn 
+
+le_update_phy_cb_m2s_no_change:
+186c 1a208c35 add rega ,coffset_le_rx_phy ,contr 
+186d efe08006 ifetch 1 ,contr 
+186e 24748000 nrtn master 
+186f 1a208c36 add rega ,coffset_le_tx_phy ,contr 
+1870 efe08006 ifetch 1 ,contr 
+1871 20600000 rtn 
+
+le_update_phy_cb_s2m:
+1872 205a187b call le_update_phy_cb_s2m_no_change ,blank 
+1873 6848c445 fetcht 1 ,mem_le_tx_phys 
+1874 284ffe07 isolate1 bit_le_coded_phy_s8 ,temp 
+1875 7920fe07 setflag true ,bit_le_coded_phy_s8 ,pdata 
+1876 1a208a36 add rega ,coffset_le_tx_phy ,contw 
+1877 24748000 nrtn master 
+1878 793ffe07 set0 bit_le_coded_phy_s8 ,pdata 
+1879 1a208a35 add rega ,coffset_le_rx_phy ,contw 
+187a 20600000 rtn 
+
+le_update_phy_cb_s2m_no_change:
+187b 1a208c36 add rega ,coffset_le_tx_phy ,contr 
+187c efe08006 ifetch 1 ,contr 
+187d 24748000 nrtn master 
+187e 1a208c35 add rega ,coffset_le_rx_phy ,contr 
+187f efe08006 ifetch 1 ,contr 
+1880 20600000 rtn 
+
+le_check_update_flag:
+1881 efe08011 ifetch 1 ,rega 
+1882 afec0000 qisolate0 pdata 
+1883 20608000 rtn true 
+1884 1a208c1a add rega ,coffset_le_event_cnt ,contr 
+1885 e8410006 ifetcht 2 ,contr 
+1886 1a208c20 add rega ,coffset_le_instant ,contr 
+1887 efe10006 ifetch 2 ,contr 
+1888 98467e00 isub temp ,pdata 
+1889 20229890 branch le_update ,zero 
+188a 24211895 nbranch le_check_update_small ,positive 
+188b 1fe67c01 sub pdata ,1 ,null 
+188c 2022988e branch le_update_ahead1 ,zero 
+188d 20600000 rtn 
+
+le_update_ahead1:
+188e 1a627e00 copy regc ,pdata 
+188f 20207d47 branch callback_func 
+
+le_update:
+1890 efe08011 ifetch 1 ,rega 
+1891 f93ffe00 qset0 pdata 
+1892 e7e08011 istore 1 ,rega 
+1893 1a427e00 copy regb ,pdata 
+1894 20207d47 branch callback_func 
+
+le_check_update_small:
+1895 1a208c1a add rega ,coffset_le_event_cnt ,contr 
+1896 efe10006 ifetch 2 ,contr 
+1897 1a208c20 add rega ,coffset_le_instant ,contr 
+1898 efe10006 ifetch 2 ,contr 
+1899 98467e00 isub temp ,pdata 
+189a d840ffff arg 0xffff ,temp 
+189b 98467c00 isub temp ,null 
+189c 20229890 branch le_update ,zero 
+189d d840f000 arg 0xf000 ,temp 
+189e 98467c00 isub temp ,null 
+189f 24211890 nbranch le_update ,positive 
+18a0 20600000 rtn 
+
+le_check_retransmit:
+18a1 6848829e fetcht 1 ,mem_le_arq 
+18a2 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+18a3 1fe37e00 rshift pdata ,pdata 
+18a4 9842fe00 ixor temp ,pdata 
+18a5 2feffe02 isolate1 nesn ,pdata 
+18a6 7920800f setflag true ,mark_old_packet ,mark 
+18a7 20600000 rtn 
+
+le_acknowledge:
+18a8 47594036 bpatchx patch36_2 ,mem_patch36 
+18a9 204019bd call le_supervision_flush 
+18aa c6180000 rtnmark1 mark_ble_crc_fail 
+18ab 204018cf call le_check_wak 
+18ac 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+18ad 2feffe04 isolate1 md ,pdata 
+18ae 7920802a setflag true ,mark_ble_rx_md ,mark 
+18af 1fe37e00 rshift pdata ,pdata 
+18b0 9842fe00 ixor temp ,pdata 
+18b1 2feffe02 isolate1 nesn ,pdata 
+18b2 7920800f setflag true ,mark_old_packet ,mark 
+18b3 c6078000 rtnmark1 mark_old_packet 
+18b4 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+18b5 203a18c1 branch le_ack_unenc ,blank 
+18b6 6fe08287 fetch 1 ,mem_le_state 
+18b7 c30218c1 bbit0 lestate_encryption ,le_ack_unenc 
+18b8 684a0273 fetcht 4 ,mem_le_peer_mic 
+18b9 6fe246ad fetch 4 ,mem_ccm_last_mic 
+18ba 98467c00 isub temp ,null 
+18bb 2022937a branch assert ,zero 
+18bc 604a46ad storet 4 ,mem_ccm_last_mic 
+18bd 6fe2c6a8 fetch 5 ,mem_ccm_pcnt_rx 
+18be 1fe0fe01 increase 1 ,pdata 
+18bf 79207e27 set1 le_ccm_directionbit ,pdata 
+18c0 67e2c6a8 store 5 ,mem_ccm_pcnt_rx 
+
+le_ack_unenc:
+18c1 6848829e fetcht 1 ,mem_le_arq 
+18c2 79400402 setflip nesn ,temp 
+18c3 6048829e storet 1 ,mem_le_arq 
+18c4 6fe0c3c3 fetch 1 ,mem_le_configuration 
+18c5 c4030000 rtnbit0 bit_ble_deal_bb_packet 
+18c6 4759c036 bpatchx patch36_3 ,mem_patch36 
+18c7 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+18c8 207a0000 rtn blank 
+18c9 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+18ca 2fe00601 compare llid_continue ,pdata ,3 
+18cb 20209eb8 branch le_parse_writing_attribute_continue ,true 
+18cc 2fe00602 compare llid_start ,pdata ,3 
+18cd 20209ea6 branch le_parse_writing_attribute_start ,true 
+18ce 20600000 rtn 
+
+le_check_wak:
+18cf 475a4036 bpatchx patch36_4 ,mem_patch36 
+18d0 6848829e fetcht 1 ,mem_le_arq 
+18d1 284c0005 isolate0 wak ,temp 
+18d2 20608000 rtn true 
+18d3 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+18d4 1fe3fe00 lshift pdata ,pdata 
+18d5 9842fe00 ixor temp ,pdata 
+18d6 c4018000 rtnbit0 sn 
+18d7 793f8405 set0 wak ,temp 
+18d8 79400403 setflip sn ,temp 
+18d9 6048829e storet 1 ,mem_le_arq 
+18da 28400603 compare 3 ,temp ,3 
+18db 24608000 nrtn true 
+18dc 20600000 rtn 
+
+le_set_enc:
+18dd 6fe08287 fetch 1 ,mem_le_state 
+18de 79207e04 set1 lestate_encryption ,pdata 
+18df 67e08287 store 1 ,mem_le_state 
+18e0 79200032 set1 mark_ble_encryption ,mark 
+18e1 20600000 rtn 
+
+le_clear_enc:
+18e2 475ac036 bpatchx patch36_5 ,mem_patch36 
+18e3 70439f00 jam flag_le_enc_null ,mem_le_enc_state 
+18e4 dfe00000 arg 0 ,pdata 
+18e5 67e246ad store 4 ,mem_ccm_last_mic 
+18e6 67e2c6a3 store 5 ,mem_ccm_pcnt_tx 
+18e7 79207e27 set1 le_ccm_directionbit ,pdata 
+18e8 67e2c6a8 store 5 ,mem_ccm_pcnt_rx 
+18e9 6fe08287 fetch 1 ,mem_le_state 
+18ea 793ffe04 set0 lestate_encryption ,pdata 
+18eb 67e08287 store 1 ,mem_le_state 
+18ec 793f8032 set0 mark_ble_encryption ,mark 
+18ed 20600000 rtn 
+
+le_scan_check_sender_addr_type:
+18ee da200001 arg 1 ,rega 
+18ef 6fe0816b fetch 1 ,mem_le_rxbuf_adv_connect_ind_header 
+18f0 c3830000 rtnbit1 le_sender_addr_bit 
+18f1 da200000 arg 0 ,rega 
+18f2 20600000 rtn 
+
+le_get_master_rx_max:
+18f3 18c20a00 copy contr ,contw 
+18f4 68494447 fetcht 2 ,mem_remote_rx_max_octets 
+18f5 18a20c00 copy contw ,contr 
+18f6 20600000 rtn 
+
+le_prepare_tx:
+18f7 475b4036 bpatchx patch36_6 ,mem_patch36 
+18f8 6fe0829e fetch 1 ,mem_le_arq 
+18f9 c3828000 rtnbit1 wak 
+18fa 20401918 call le_check_tx_md 
+18fb 20401aee call le_fifo_get_first_tx_ptr 
+18fc 203a193c branch le_send_empty ,blank 
+18fd efe10006 ifetch 2 ,contr 
+18fe e8410006 ifetcht 2 ,contr 
+18ff 18422200 copy temp ,rega 
+1900 9a267e00 isub rega ,pdata 
+1901 204018f3 call le_get_master_rx_max 
+1902 20407d88 call not_greater_than 
+1903 1fe20400 copy pdata ,temp 
+1904 e8208006 ifetchr type ,1 ,contr 
+1905 1a227e00 copy rega ,pdata 
+1906 98c0fe00 iadd contr ,pdata 
+1907 67e1097b store 2 ,mem_contr 
+1908 2040192c call le_update_tx_type 
+1909 2040193e call le_send_packet 
+190a 20401aee call le_fifo_get_first_tx_ptr 
+190b efe10006 ifetch 2 ,contr 
+190c 1fe22200 copy pdata ,rega 
+190d 18c22600 copy contr ,regc 
+190e e8410006 ifetcht 2 ,contr 
+190f 18422400 copy temp ,regb 
+1910 9a467e00 isub regb ,pdata 
+1911 204018f3 call le_get_master_rx_max 
+1912 20407d88 call not_greater_than 
+1913 9a40fe00 iadd regb ,pdata 
+1914 e7e10013 istore 2 ,regc 
+1915 9a267c00 isub rega ,null 
+1916 24628000 nrtn zero 
+1917 20201b07 branch le_fifo_release_first_node 
+
+le_check_tx_md:
+1918 2040191f call le_check_continue 
+1919 c6148000 rtnmark1 mark_ble_tx_md 
+191a 6fe0c3c3 fetch 1 ,mem_le_configuration 
+191b c301192a bbit0 bit_ble_transmit_packet_by_md ,le_clear_md 
+191c 20401af1 call le_fifo_get_second_tx_ptr 
+191d 203a192a branch le_clear_md ,blank 
+191e 20201928 branch le_set_md 
+
+le_check_continue:
+191f 20401aee call le_fifo_get_first_tx_ptr 
+1920 203a192a branch le_clear_md ,blank 
+1921 efe10006 ifetch 2 ,contr 
+1922 e8410006 ifetcht 2 ,contr 
+1923 98462200 isub temp ,rega 
+1924 204018f3 call le_get_master_rx_max 
+1925 18427e00 copy temp ,pdata 
+1926 9a267c00 isub rega ,null 
+1927 2021192a branch le_clear_md ,positive 
+
+le_set_md:
+1928 79200029 set1 mark_ble_tx_md ,mark 
+1929 20600000 rtn 
+
+le_clear_md:
+192a 793f8029 set0 mark_ble_tx_md ,mark 
+192b 20600000 rtn 
+
+le_update_tx_type:
+192c 1a227e00 copy rega ,pdata 
+192d 207a0000 rtn blank 
+192e d8200001 arg llid_continue ,type 
+192f 20600000 rtn 
+
+le_att_check_notification_enable:
+1930 475bc036 bpatchx patch36_7 ,mem_patch36 
+1931 18408401 increase 1 ,temp 
+1932 204019ef call le_att_get_handle_ptr 
+1933 18c08dfe increase -2 ,contr 
+1934 efe10006 ifetch 2 ,contr 
+1935 d8402902 arg client_charactertic_configuration ,temp 
+1936 98467c00 isub temp ,null 
+1937 24628000 nrtn zero 
+1938 18c08c01 increase 1 ,contr 
+1939 18c22200 copy contr ,rega 
+193a efe08006 ifetch 1 ,contr 
+193b 20600000 rtn 
+
+le_send_empty:
+193c 18000400 force 0 ,temp 
+193d 18000201 force 1 ,type 
+
+le_send_packet:
+193e 475c4037 bpatchx patch37_0 ,mem_patch37 
+193f 6048c1f9 storet 1 ,mem_le_txlen 
+1940 6848829e fetcht 1 ,mem_le_arq 
+1941 79200405 set1 wak ,temp 
+1942 18417efc and temp ,0xfc ,pdata 
+1943 9821fe00 ior type ,pdata 
+1944 67e0829e store 1 ,mem_le_arq 
+1945 1fe17e1f and_into 0x1f ,pdata 
+1946 280ffe29 isolate1 mark_ble_tx_md ,mark 
+1947 7920fe04 setflag true ,md ,pdata 
+1948 67e0c1f8 store 1 ,mem_le_txheader 
+1949 6fe0c1f8 fetch 1 ,mem_le_txheader 
+194a 28200601 compare 1 ,type ,3 
+194b 2420994e nbranch le_send_no_txlen ,true 
+194c 6fe0c1f9 fetch 1 ,mem_le_txlen 
+194d 207a0000 rtn blank 
+
+le_send_no_txlen:
+194e c5191954 bmark1 mark_ble_encryption ,le_send_packet_enc 
+194f 6f20c1f9 fetchr loopcnt ,1 ,mem_le_txlen 
+1950 6fe1097b fetch 2 ,mem_contr 
+1951 1fe20c00 copy pdata ,contr 
+1952 d8a041fa arg mem_le_txpayload ,contw 
+1953 20207c94 branch memcpy_fast 
+
+le_send_packet_enc:
+1954 20406cfa call load_sk 
+1955 20206c31 branch le_encrypt_new_start 
+
+get_lpm_wake_ble_rx_lock:
+1956 d8e00000 arg wake_lock_ble_rx ,queue 
+1957 20201547 branch lpm_get_wake_lock 
+
+put_lpm_wake_ble_rx_lock:
+1958 d8e00000 arg wake_lock_ble_rx ,queue 
+1959 2020154b branch lpm_put_wake_lock 
+
+le_parse:
+195a 475cc037 bpatchx patch37_1 ,mem_patch37 
+195b c6078000 rtnmark1 mark_old_packet 
+195c c6180000 rtnmark1 mark_ble_crc_fail 
+195d 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+195e 1fe17e03 and pdata ,0x3 ,pdata 
+195f 67e0c3d6 store 1 ,mem_le_packet_llid 
+1960 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+1961 207a0000 rtn blank 
+1962 5800016d setarg mem_le_rxbuf_data_payload 
+1963 67e143db store 2 ,mem_le_payload_ptr 
+1964 475d4037 bpatchx patch37_2 ,mem_patch37 
+1965 6fe0c3d6 fetch 1 ,mem_le_packet_llid 
+1966 c001a099 beq llid_le_ll ,le_parse_ll 
+
+le_parse_l2cap:
+1967 20401974 call le_check_l2cap_complete 
+1968 24341956 nbranch get_lpm_wake_ble_rx_lock ,user 
+1969 20401958 call put_lpm_wake_ble_rx_lock 
+196a 58000000 setarg 0 
+196b 67e143d9 store 2 ,mem_le_packet_len_recved 
+196c 6fe143db fetch 2 ,mem_le_payload_ptr 
+196d 1fe08c02 add pdata ,2 ,contr 
+196e 475dc037 bpatchx patch37_3 ,mem_patch37 
+196f efe10006 ifetch 2 ,contr 
+1970 c0021c5e beq le_l2cap_cid_att ,le_parse_att 
+1971 c0031f1a beq le_l2cap_cid_smp ,le_parse_smp 
+1972 c0029edc beq le_l2cap_cid_signal ,le_parse_signaling 
+1973 20600000 rtn 
+
+le_check_l2cap_complete:
+1974 6fe0c3d6 fetch 1 ,mem_le_packet_llid 
+1975 c0011983 beq llid_start ,le_check_l2cap_llid_start 
+1976 c000999a beq llid_continue ,le_check_l2cap_llid_continue 
+1977 20600000 rtn 
+
+le_check_l2cap_cid_legal:
+1978 20407d92 call enable_user 
+1979 d8400004 arg le_l2cap_cid_att ,temp 
+197a 9fe67c00 isub pdata ,null 
+197b 20628000 rtn zero 
+197c d8400005 arg le_l2cap_cid_signal ,temp 
+197d 9fe67c00 isub pdata ,null 
+197e 20628000 rtn zero 
+197f d8400006 arg le_l2cap_cid_smp ,temp 
+1980 9fe67c00 isub pdata ,null 
+1981 20628000 rtn zero 
+1982 20207d94 branch disable_user 
+
+le_check_l2cap_llid_start:
+1983 6fe143db fetch 2 ,mem_le_payload_ptr 
+1984 1fe20c00 copy pdata ,contr 
+1985 efe10006 ifetch 2 ,contr 
+1986 67e143d7 store 2 ,mem_le_l2cap_size 
+1987 efe10006 ifetch 2 ,contr 
+1988 20401978 call le_check_l2cap_cid_legal 
+1989 24740000 nrtn user 
+198a 6848816c fetcht 1 ,mem_le_rxbuf_data_length 
+198b 604943d9 storet 2 ,mem_le_packet_len_recved 
+198c 6fe143d7 fetch 2 ,mem_le_l2cap_size 
+198d 1fe0fe04 increase 4 ,pdata 
+198e 98467c00 isub temp ,null 
+198f 2022fd92 branch enable_user ,zero 
+1990 6f20816c fetchr loopcnt ,1 ,mem_le_rxbuf_data_length 
+1991 d8a01000 arg mem_le_l2cap_buf ,contw 
+1992 6fe143db fetch 2 ,mem_le_payload_ptr 
+1993 1fe20c00 copy pdata ,contr 
+1994 20407c94 call memcpy_fast 
+1995 20207d94 branch disable_user 
+
+le_check_l2cap_continue_legal:
+1996 20407d92 call enable_user 
+1997 6fe143d9 fetch 2 ,mem_le_packet_len_recved 
+1998 247a0000 nrtn blank 
+1999 20207d94 branch disable_user 
+
+le_check_l2cap_llid_continue:
+199a 20401996 call le_check_l2cap_continue_legal 
+199b 24740000 nrtn user 
+199c 6fe143d9 fetch 2 ,mem_le_packet_len_recved 
+199d d8a01000 arg mem_le_l2cap_buf ,contw 
+199e 98a0a200 iadd contw ,rega 
+199f 6848816c fetcht 1 ,mem_le_rxbuf_data_length 
+19a0 9840fe00 iadd temp ,pdata 
+19a1 67e143d9 store 2 ,mem_le_packet_len_recved 
+19a2 6f20816c fetchr loopcnt ,1 ,mem_le_rxbuf_data_length 
+19a3 1a220a00 copy rega ,contw 
+19a4 6fe143db fetch 2 ,mem_le_payload_ptr 
+19a5 1fe20c00 copy pdata ,contr 
+19a6 20407c94 call memcpy_fast 
+19a7 58001000 setarg mem_le_l2cap_buf 
+19a8 67e143db store 2 ,mem_le_payload_ptr 
+19a9 6fe143d7 fetch 2 ,mem_le_l2cap_size 
+19aa 1fe0fe04 increase 4 ,pdata 
+19ab 684943d9 fetcht 2 ,mem_le_packet_len_recved 
+19ac 98467c00 isub temp ,null 
+19ad 2022fd92 branch enable_user ,zero 
+19ae 20207d94 branch disable_user 
+
+le_get_search_att_uuid:
+19af 20407c29 call store_contr 
+19b0 d8a0435c arg mem_le_search_uuid_length ,contw 
+19b1 20201ea0 branch le_get_search_common 
+
+le_writeatt_cb:
+19b2 6fe1446e fetch 2 ,mem_cb_att_write 
+19b3 20207d47 branch callback_func 
+
+le_supervision_update:
+19b4 684a02a3 fetcht 4 ,mem_le_supervision_timer 
+19b5 20401369 call get_clkbt 
+19b6 98461600 isub temp ,timeup 
+19b7 19627e00 deposit timeup 
+19b8 684902b5 fetcht 2 ,mem_le_superto 
+19b9 18520400 lshift4 temp ,temp 
+19ba 18438400 lshift temp ,temp 
+19bb 98467e00 isub temp ,pdata 
+19bc 20600000 rtn 
+
+le_supervision_flush:
+19bd 20401369 call get_clkbt 
+19be 67e202a3 store 4 ,mem_le_supervision_timer 
+19bf 20600000 rtn 
+
+le_receive_window_size:
+19c0 475e4037 bpatchx patch37_4 ,mem_patch37 
+19c1 1a208c50 add rega ,coffset_le_peer_sca ,contr 
+19c2 efe08006 ifetch 1 ,contr 
+19c3 20401673 call le_sca_map 
+19c4 1a208c02 add rega ,coffset_tsniff ,contr 
+19c5 efe10006 ifetch 2 ,contr 
+19c6 984ffe00 imul32 temp ,pdata 
+19c7 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+19c8 984ffe00 imul32 temp ,pdata 
+19c9 d84f4240 arg 1000000 ,temp 
+19ca 9846fc00 idiv temp 
+19cb d8400682 arg param_windown_size ,temp 
+19cc 6fe0c1f3 fetch 1 ,mem_system_clk 
+19cd 984f8400 imul32 temp ,temp 
+19ce 1a208c2b add rega ,coffset_le_window_size ,contr 
+19cf efe08006 ifetch 1 ,contr 
+19d0 984ffe00 imul32 temp ,pdata 
+19d1 9840fe00 iadd temp ,pdata 
+19d2 67e243bf store 4 ,mem_le_transmit_window 
+19d3 6fe140c8 fetch 2 ,mem_rx_window_sniff 
+19d4 20407d31 call wait_div_end 
+19d5 18078400 quotient temp 
+19d6 9840fe00 iadd temp ,pdata 
+19d7 1a208a0e add rega ,coffset_rx_window ,contw 
+19d8 e7e10005 istore 2 ,contw 
+19d9 20600000 rtn 
+
+le_init_attlist_search:
+19da 475ec037 bpatchx patch37_5 ,mem_patch37 
+19db 6fe1099e fetch 2 ,mem_le_search_handle_start 
+19dc 98002400 iforce regb 
+19dd 6fe109a0 fetch 2 ,mem_le_search_handle_end 
+19de 98002600 iforce regc 
+19df 6fe14399 fetch 2 ,mem_ui_le_uuid_table 
+19e0 98000c00 iforce contr 
+19e1 78347c00 enable user 
+19e2 20600000 rtn 
+
+le_att_handle_inrange:
+19e3 efe10006 ifetch 2 ,contr 
+19e4 1fe17eff and_into 0xff ,pdata 
+19e5 207a0000 rtn blank 
+19e6 9a467c00 isub regb ,null 
+19e7 24610000 nrtn positive 
+19e8 9a667c00 isub regc ,null 
+19e9 20628000 rtn zero 
+19ea 202119ed branch le_att_handle_blank ,positive 
+19eb 18007c01 force 1 ,null 
+19ec 20600000 rtn 
+
+le_att_handle_blank:
+19ed 18007e00 force 0 ,pdata 
+19ee 20600000 rtn 
+
+le_att_get_handle_ptr:
+19ef 204019f2 call le_att_get_handle_ptr2 
+19f0 202299ff branch le_att_get_handle_ptr_found ,zero 
+19f1 20600000 rtn 
+
+le_att_get_handle_ptr2:
+19f2 475f4037 bpatchx patch37_6 ,mem_patch37 
+19f3 6fe14399 fetch 2 ,mem_ui_le_uuid_table 
+19f4 98000c00 iforce contr 
+
+le_att_get_handle_loop1:
+19f5 efe10006 ifetch 2 ,contr 
+19f6 1fe17eff and_into 0xff ,pdata 
+19f7 207a0000 rtn blank 
+19f8 98467c00 isub temp ,null 
+19f9 20628000 rtn zero 
+19fa efe08006 ifetch 1 ,contr 
+19fb 98c08c00 iadd contr ,contr 
+19fc efe08006 ifetch 1 ,contr 
+19fd 98c08c00 iadd contr ,contr 
+19fe 202019f5 branch le_att_get_handle_loop1 
+
+le_att_get_handle_ptr_found:
+19ff efe08006 ifetch 1 ,contr 
+1a00 98c08c00 iadd contr ,contr 
+1a01 20600000 rtn 
+
+le_att_get_short_uuid_ptr:
+1a02 475fc037 bpatchx patch37_7 ,mem_patch37 
+1a03 6fe14399 fetch 2 ,mem_ui_le_uuid_table 
+1a04 98000c00 iforce contr 
+
+le_att_get_short_uuid_loop:
+1a05 efe10006 ifetch 2 ,contr 
+1a06 1fe17eff and_into 0xff ,pdata 
+1a07 207a0000 rtn blank 
+1a08 efe08006 ifetch 1 ,contr 
+1a09 98c08c00 iadd contr ,contr 
+1a0a 18c08dfe increase -2 ,contr 
+1a0b efe10006 ifetch 2 ,contr 
+1a0c 98467c00 isub temp ,null 
+1a0d 20628000 rtn zero 
+1a0e efe08006 ifetch 1 ,contr 
+1a0f 98c08c00 iadd contr ,contr 
+1a10 20201a05 branch le_att_get_short_uuid_loop 
+
+le_att_get_last_handle:
+1a11 6fe14399 fetch 2 ,mem_ui_le_uuid_table 
+1a12 98000c00 iforce contr 
+
+le_att_get_last_handle_loop:
+1a13 efe10006 ifetch 2 ,contr 
+1a14 1fe17eff and_into 0xff ,pdata 
+1a15 207a0000 rtn blank 
+1a16 1fe08401 add pdata ,1 ,temp 
+1a17 efe08006 ifetch 1 ,contr 
+1a18 98c08c00 iadd contr ,contr 
+1a19 efe08006 ifetch 1 ,contr 
+1a1a 98c08c00 iadd contr ,contr 
+1a1b 18c20a00 copy contr ,contw 
+1a1c 20201a13 branch le_att_get_last_handle_loop 
+
+le_att_get_handle_info_from_ptr:
+1a1d 6fe109b4 fetch 2 ,mem_le_cur_attlist_start_ptr 
+1a1e 20201a21 branch le_att_get_handle_info_fast 
+
+le_att_get_handle_info:
+1a1f 47604038 bpatchx patch38_0 ,mem_patch38 
+1a20 6fe14399 fetch 2 ,mem_ui_le_uuid_table 
+
+le_att_get_handle_info_fast:
+1a21 98000c00 iforce contr 
+
+le_att_get_handle_loop:
+1a22 efe10006 ifetch 2 ,contr 
+1a23 1fe17eff and_into 0xff ,pdata 
+1a24 203a1a2c branch le_att_unfind_handle ,blank 
+1a25 98467c00 isub temp ,null 
+1a26 20229a2d branch le_att_finded_handle ,zero 
+1a27 efe08006 ifetch 1 ,contr 
+1a28 98c08c00 iadd contr ,contr 
+1a29 efe08006 ifetch 1 ,contr 
+1a2a 98c08c00 iadd contr ,contr 
+1a2b 20201a22 branch le_att_get_handle_loop 
+
+le_att_unfind_handle:
+1a2c 20207d9c branch disable_blank 
+
+le_att_finded_handle:
+1a2d efe08006 ifetch 1 ,contr 
+1a2e 67e089ba store 1 ,mem_le_cur_uuid_length 
+1a2f 1fe27200 copy pdata ,loopcnt 
+1a30 d8a009bb arg mem_le_cur_uuid ,contw 
+1a31 20407c94 call memcpy_fast 
+1a32 efe08006 ifetch 1 ,contr 
+1a33 67e089b3 store 1 ,mem_le_curr_att_len 
+1a34 20407c29 call store_contr 
+1a35 20207d9e branch enable_blank 
+
+le_modified_name:
+1a36 4760c038 bpatchx patch38_1 ,mem_patch38 
+1a37 20401a39 call le_modified_name_att_list 
+1a38 20201a4b branch le_modified_name_adv 
+
+le_modified_name_att_list:
+1a39 d8402a00 arg uuid_chrctr_device_name ,temp 
+1a3a 20401a02 call le_att_get_short_uuid_ptr 
+1a3b 207a0000 rtn blank 
+1a3c efe08006 ifetch 1 ,contr 
+1a3d 18c20a00 copy contr ,contw 
+1a3e 6848c2fa fetcht 1 ,mem_le_name_len 
+1a3f 18427200 copy temp ,loopcnt 
+1a40 98467c00 isub temp ,null 
+1a41 24211a48 nbranch le_name_length_longer_than_att ,positive 
+1a42 98460400 isub temp ,temp 
+1a43 d8c042fb arg mem_le_name ,contr 
+1a44 20407c94 call memcpy_fast 
+1a45 18427200 copy temp ,loopcnt 
+1a46 24429a83 ncall memcpy_empty ,zero 
+1a47 20600000 rtn 
+
+le_name_length_longer_than_att:
+1a48 1fe27200 copy pdata ,loopcnt 
+1a49 d8c042fb arg mem_le_name ,contr 
+1a4a 20207c94 branch memcpy_fast 
+
+le_modified_name_adv:
+1a4b da60440a arg mem_le_adv_data_len + 32 ,regc 
+1a4c da2043eb arg mem_le_adv_data ,rega 
+1a4d 20401a58 call le_modified_name_adv_and_scan 
+1a4e 58000000 setarg 0 
+1a4f 79347e00 setflag user ,0 ,pdata 
+1a50 67e0895c store 1 ,mem_pdatatemp 
+1a51 da60442a arg mem_le_scan_data_len + 32 ,regc 
+1a52 da20440b arg mem_le_scan_data ,rega 
+1a53 20401a58 call le_modified_name_adv_and_scan 
+1a54 20740000 rtn user 
+1a55 6fe0895c fetch 1 ,mem_pdatatemp 
+1a56 203a137a branch assert ,blank 
+1a57 20600000 rtn 
+
+le_modified_name_adv_and_scan:
+1a58 47614038 bpatchx patch38_2 ,mem_patch38 
+1a59 20407d92 call enable_user 
+1a5a 20407c6e call clear_temp_block 
+1a5b da400000 arg 0 ,regb 
+1a5c d8a0098f arg mem_le_data_temp ,contw 
+1a5d 20401a72 call le_modified_name_adv_loop 
+1a5e 6fe0c2fa fetch 1 ,mem_le_name_len 
+1a5f 1fe08401 add pdata ,1 ,temp 
+1a60 9a40a200 iadd regb ,rega 
+1a61 1a20a202 increase 2 ,rega 
+1a62 1a267c1f sub rega ,0x1f ,null 
+1a63 24211a70 nbranch le_modified_name_adv_and_scan_name_overflow ,positive 
+1a64 e0408005 istoret 1 ,contw 
+1a65 d8400009 arg gap_adtype_local_name_complete ,temp 
+1a66 e0408005 istoret 1 ,contw 
+1a67 98007200 iforce loopcnt 
+1a68 20407c94 call memcpy_fast 
+1a69 1a222400 copy rega ,regb 
+
+le_modified_name_adv_and_scan_store_data:
+1a6a 1a427e00 deposit regb 
+1a6b 67e0898e store 1 ,mem_le_data_len_temp 
+1a6c d8c0098e arg mem_le_data_len_temp ,contr 
+1a6d 5fffffe0 setarg -32 
+1a6e 9a608a00 iadd regc ,contw 
+1a6f 20207c4a branch memcpy32 
+
+le_modified_name_adv_and_scan_name_overflow:
+1a70 20407d94 call disable_user 
+1a71 20201a6a branch le_modified_name_adv_and_scan_store_data 
+
+le_modified_name_adv_loop:
+1a72 efe08011 ifetch 1 ,rega 
+1a73 207a0000 rtn blank 
+1a74 1fe0fe01 pincrease 1 
+1a75 e8408006 ifetcht 1 ,contr 
+1a76 18467c09 sub temp ,gap_adtype_local_name_complete ,null 
+1a77 20229a81 branch le_modified_name_adv_found_name ,zero 
+1a78 9a40a400 iadd regb ,regb 
+1a79 1a220c00 copy rega ,contr 
+1a7a 98007200 iforce loopcnt 
+1a7b 20407c94 call memcpy_fast 
+1a7c 18c22200 copy contr ,rega 
+
+le_modified_name_adv_loop2:
+1a7d 1a227e00 deposit rega 
+1a7e 9a667c00 isub regc ,null 
+1a7f 20610000 rtn positive 
+1a80 20201a72 branch le_modified_name_adv_loop 
+
+le_modified_name_adv_found_name:
+1a81 9a20a200 iadd rega ,rega 
+1a82 20201a7d branch le_modified_name_adv_loop2 
+
+memcpy_empty:
+1a83 58000020 setarg space 
+1a84 e7e08005 istore 1 ,contw 
+1a85 c2001a83 loop memcpy_empty 
+1a86 20600000 rtn 
+
+le_lpm_set_mult:
+1a87 4761c038 bpatchx patch38_3 ,mem_patch38 
+1a88 7855fc00 disable wake 
+1a89 20371a8b branch le_lpm_set_mult_attempt ,attempt 
+1a8a 24369a99 nbranch le_lpm_lost ,match 
+
+le_lpm_set_mult_attempt:
+1a8b 204014f3 call lpm_match 
+1a8c 6fe140c8 fetch 2 ,mem_rx_window_sniff 
+1a8d 67e10295 store 2 ,mem_le_receive_window 
+
+le_lpm_set_mult_attempt_match:
+1a8e 24369506 nbranch lpm_mult_short ,match 
+1a8f c5079506 bmark1 mark_old_packet ,lpm_mult_short 
+1a90 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+1a91 243a1506 nbranch lpm_mult_short ,blank 
+1a92 6fe0c1f9 fetch 1 ,mem_le_txlen 
+1a93 243a1506 nbranch lpm_mult_short ,blank 
+1a94 6fe0c3c3 fetch 1 ,mem_le_configuration 
+1a95 c2829506 bbit1 bit_ble_short_mult ,lpm_mult_short 
+1a96 6fe08287 fetch 1 ,mem_le_state 
+1a97 c2829506 bbit1 lestate_update_param ,lpm_mult_short 
+1a98 202014e5 branch lpm_mult_wait_timeout 
+
+le_lpm_lost:
+1a99 684940c8 fetcht 2 ,mem_rx_window_sniff 
+1a9a 18430400 rshift temp ,temp 
+1a9b 6fe10295 fetch 2 ,mem_le_receive_window 
+1a9c 9840fe00 iadd temp ,pdata 
+1a9d 67e10295 store 2 ,mem_le_receive_window 
+1a9e 202014fe branch lpm_lost 
+
+le_set_config_fixed_tk:
+1a9f d8e00000 arg bit_ble_passkey_fixed_key ,queue 
+1aa0 20201ab7 branch le_set_config 
+
+le_clr_config_fixed_tk:
+1aa1 d8e00000 arg bit_ble_passkey_fixed_key ,queue 
+1aa2 20201abb branch le_clr_config 
+
+le_set_config_fixed_ltk:
+1aa3 d8e00001 arg bit_ble_pairing_fixed_ltk ,queue 
+1aa4 20201ab7 branch le_set_config 
+
+le_clr_config_fixed_ltk:
+1aa5 d8e00001 arg bit_ble_pairing_fixed_ltk ,queue 
+1aa6 20201abb branch le_clr_config 
+
+le_set_config_more_data:
+1aa7 d8e00002 arg bit_ble_transmit_packet_by_md ,queue 
+1aa8 20201ab7 branch le_set_config 
+
+le_clr_config_more_data:
+1aa9 d8e00002 arg bit_ble_transmit_packet_by_md ,queue 
+1aaa 20201abb branch le_clr_config 
+
+le_set_config_read_authentication:
+1aab d8e00003 arg bit_ble_read_auth ,queue 
+1aac 20201ab7 branch le_set_config 
+
+le_clr_config_read_authentication:
+1aad d8e00003 arg bit_ble_read_auth ,queue 
+1aae 20201abb branch le_clr_config 
+
+le_set_config_write_authentication:
+1aaf d8e00004 arg bit_ble_write_auth ,queue 
+1ab0 20201ab7 branch le_set_config 
+
+le_clr_config_write_authentication:
+1ab1 d8e00004 arg bit_ble_write_auth ,queue 
+1ab2 20201abb branch le_clr_config 
+
+le_set_config_short_mult:
+1ab3 d8e00005 arg bit_ble_short_mult ,queue 
+1ab4 20201ab7 branch le_set_config 
+
+le_clr_config_short_mult:
+1ab5 d8e00005 arg bit_ble_short_mult ,queue 
+1ab6 20201abb branch le_clr_config 
+
+le_set_config:
+1ab7 6fe0c3c3 fetch 1 ,mem_le_configuration 
+1ab8 f9207e00 qset1 pdata 
+1ab9 67e0c3c3 store 1 ,mem_le_configuration 
+1aba 20600000 rtn 
+
+le_clr_config:
+1abb 6fe0c3c3 fetch 1 ,mem_le_configuration 
+1abc f93ffe00 qset0 pdata 
+1abd 67e0c3c3 store 1 ,mem_le_configuration 
+1abe 20600000 rtn 
+
+le_set_fixed_ltk:
+1abf 58112233 setarg 0x112233 
+1ac0 67e1c3c4 store 3 ,mem_le_fixed_ltk 
+1ac1 58445566 setarg 0x445566 
+1ac2 e7e18005 istore 3 ,contw 
+1ac3 58778899 setarg 0x778899 
+1ac4 e7e18005 istore 3 ,contw 
+1ac5 58001122 setarg 0x001122 
+1ac6 e7e18005 istore 3 ,contw 
+1ac7 58334455 setarg 0x334455 
+1ac8 e7e18005 istore 3 ,contw 
+1ac9 58000066 setarg 0x66 
+1aca e7e08005 istore 1 ,contw 
+1acb 20600000 rtn 
+
+le_set_justwork:
+1acc 59000302 setarg 0x01000302 
+1acd 67e24353 store 4 ,mem_le_pres 
+1ace 58010010 setarg 0x010010 
+1acf 67e1c357 store 3 ,mem_le_pres_max_keysize 
+1ad0 7043a001 jam 1 ,mem_le_pairing_mode 
+1ad1 20600000 rtn 
+
+le_fifo_malloc_tx_empty:
+1ad2 da200000 arg 0 ,rega 
+1ad3 d8200001 arg llid_empty ,type 
+1ad4 20201ae3 branch le_fifo_malloc_tx 
+
+le_fifo_malloc_tx_ll:
+1ad5 d8200003 arg llid_le_ll ,type 
+1ad6 20401ae3 call le_fifo_malloc_tx 
+1ad7 1a427e00 copy regb ,pdata 
+1ad8 e7e08005 istore 1 ,contw 
+1ad9 20600000 rtn 
+
+le_fifo_malloc_tx_l2cap:
+1ada 18000202 force llid_start ,type 
+1adb 1a20a204 increase 4 ,rega 
+1adc 20401ae3 call le_fifo_malloc_tx 
+1add 1a20a3fc increase -4 ,rega 
+1ade 1a227e00 copy rega ,pdata 
+1adf e7e10005 istore 2 ,contw 
+1ae0 1a427e00 copy regb ,pdata 
+1ae1 e7e10005 istore 2 ,contw 
+1ae2 20600000 rtn 
+
+le_fifo_malloc_tx:
+1ae3 47624038 bpatchx patch38_4 ,mem_patch38 
+1ae4 1a20a205 increase 5 ,rega 
+1ae5 204051be call ble_l2cap_malloc 
+1ae6 1a20a3fb increase -5 ,rega 
+1ae7 1a227e00 copy rega ,pdata 
+1ae8 e7e10005 istore 2 ,contw 
+1ae9 58000000 setarg 0 
+1aea e7e10005 istore 2 ,contw 
+1aeb 18227e00 copy type ,pdata 
+1aec e7e08005 istore 1 ,contw 
+1aed 20600000 rtn 
+
+le_fifo_get_first_tx_ptr:
+1aee 204051f8 call l2cap_malloc_fifo_out 
+1aef 1fe20c00 copy pdata ,contr 
+1af0 20600000 rtn 
+
+le_fifo_get_second_tx_ptr:
+1af1 6fe144f5 fetch 2 ,mem_tx_fifo2_ptr 
+1af2 20600000 rtn 
+
+le_fifo_get_last_tx_ptr:
+1af3 20401af6 call le_fifo_get_last_tx_ptr0 
+1af4 1fe20c00 copy pdata ,contr 
+1af5 20600000 rtn 
+
+le_fifo_get_last_tx_ptr0:
+1af6 6fe144f8 fetch 2 ,mem_tx_fifo3_ptr 
+1af7 20600000 rtn 
+
+le_fifo_get_first_l2cap_ptr:
+1af8 20401aee call le_fifo_get_first_tx_ptr 
+1af9 18c08c05 increase 5 ,contr 
+1afa 20600000 rtn 
+
+le_fifo_get_first_att_ptr:
+1afb 20401aee call le_fifo_get_first_tx_ptr 
+1afc 18c08c09 increase 9 ,contr 
+1afd 20600000 rtn 
+
+le_fifo_get_last_att_ptr:
+1afe 20401af3 call le_fifo_get_last_tx_ptr 
+1aff 18c08c09 increase 9 ,contr 
+1b00 20600000 rtn 
+
+le_fifo_get_last_l2cap_ptr:
+1b01 20401af3 call le_fifo_get_last_tx_ptr 
+1b02 18c08c05 increase 5 ,contr 
+1b03 20600000 rtn 
+
+le_fifo_check_full:
+1b04 2020520e branch l2cap_malloc_is_fifo_full 
+
+le_fifo_check_nearly_full:
+1b05 20205211 branch l2cap_malloc_is_fifo_nearly_full 
+
+le_fifo_check_empty:
+1b06 20205214 branch l2cap_malloc_is_fifo_empty 
+
+le_fifo_release_first_node:
+1b07 202051fd branch l2cap_malloc_free 
+
+le_set_dle:
+1b08 67e4444f store 8 ,mem_local_rx_max_octets 
+1b09 20201b1a branch le_set_feature_data_packet_length_extension 
+
+le_set_phys:
+1b0a 184122ff and temp ,0xff ,rega 
+1b0b 20401b0e call le_set_tx_phy 
+1b0c 184ca200 rshift8 temp ,rega 
+1b0d 20201b14 branch le_set_rx_phy 
+
+le_set_tx_phy:
+1b0e 6220c445 storer rega ,1 ,mem_le_tx_phys 
+1b0f 2a2ffe01 isolate1 bit_le_2m_phy ,rega 
+1b10 20409b16 call le_set_feature_2m_phy ,true 
+1b11 2a2ffe02 isolate1 bit_le_coded_phy ,rega 
+1b12 20409b18 call le_set_feature_coded_phy ,true 
+1b13 20600000 rtn 
+
+le_set_rx_phy:
+1b14 6220c446 storer rega ,1 ,mem_le_rx_phys 
+1b15 20201b0f branch le_set_tx_phy + 1 
+
+le_set_feature_2m_phy:
+1b16 d8e00008 arg bit_ll_feature_le_2m_phy ,queue 
+1b17 20201b1c branch le_set_feature 
+
+le_set_feature_coded_phy:
+1b18 d8e0000b arg bit_ll_feature_le_coded_phy ,queue 
+1b19 20201b1c branch le_set_feature 
+
+le_set_feature_data_packet_length_extension:
+1b1a d8e00005 arg bit_ll_feature_le_data_packet_length_extension ,queue 
+1b1b 20201b1c branch le_set_feature 
+
+le_set_feature:
+1b1c 6fe4443d fetch 8 ,mem_le_local_feature 
+1b1d f9207e00 qset1 pdata 
+1b1e 67e4443d store 8 ,mem_le_local_feature 
+1b1f 20600000 rtn 
+
+le_advertising_dispatch:
+1b20 7002bc01 jam fun_rx_ll_1m_phy ,mem_le_rx_phy 
+1b21 7002bd01 jam fun_tx_ll_1m_phy ,mem_le_tx_phy 
+1b22 20401632 call le_enable 
+1b23 20401b26 call le_scan 
+1b24 20401ba4 call le_adv 
+1b25 2020163f branch le_disable 
+
+le_scan:
+1b26 4762c038 bpatchx patch38_5 ,mem_patch38 
+1b27 6fe0c3e5 fetch 1 ,mem_le_scan_enable 
+1b28 c1808000 rtnne le_scan_enable 
+1b29 d8e00002 arg le_scan_interval_timer ,queue 
+1b2a 20407cb6 call timer_check 
+1b2b 247a0000 nrtn blank 
+1b2c 6fe143e6 fetch 2 ,mem_le_scan_interval 
+1b2d 684943e8 fetcht 2 ,mem_le_scan_window 
+1b2e 98467e00 isub temp ,pdata 
+1b2f d8e00002 arg le_scan_interval_timer ,queue 
+1b30 20407ca8 call timer_init 
+1b31 7854fc00 disable master 
+1b32 20401bc5 call le_init_adv 
+1b33 20401b45 call le_wait_adv 
+1b34 24768000 nrtn match 
+1b35 47634038 bpatchx patch38_6 ,mem_patch38 
+1b36 6fe3016d fetch 6 ,mem_le_rxbuf + 2 
+1b37 67e30297 store 6 ,mem_le_plap 
+1b38 6fe08002 fetch 1 ,mem_le_adv_rcv 
+1b39 1fe0fe01 increase 1 ,pdata 
+1b3a 67e08002 store 1 ,mem_le_adv_rcv 
+1b3b 20401b4c call le_create_conn 
+1b3c 20748000 rtn master 
+1b3d 20401bec call le_send_scan_request 
+1b3e 24768000 nrtn match 
+1b3f 6fe08004 fetch 1 ,mem_le_scanrsp_rcv 
+1b40 1fe0fe01 increase 1 ,pdata 
+1b41 67e08004 store 1 ,mem_le_scanrsp_rcv 
+1b42 6fe48173 fetch 9 ,mem_le_rxbuf + 8 
+1b43 67e48a01 store 9 ,mem_tmp_buffer 
+1b44 20600000 rtn 
+
+le_wait_adv:
+1b45 4763c038 bpatchx patch38_7 ,mem_patch38 
+1b46 20401c37 call le_next_adv_channel 
+1b47 204016d7 call le_receive_adv 
+1b48 6fe08001 fetch 1 ,mem_le_adv_waitcnt 
+1b49 1fe0fe01 increase 1 ,pdata 
+1b4a 67e08001 store 1 ,mem_le_adv_waitcnt 
+1b4b 20600000 rtn 
+
+le_create_conn:
+1b4c 47644039 bpatchx patch39_0 ,mem_patch39 
+1b4d 6fe082e0 fetch 1 ,mem_cmd_le_create_conn 
+1b4e c18d8000 rtnne hci_cmd_le_create_conn 
+1b4f 6fe30297 fetch 6 ,mem_le_plap 
+1b50 684b436e fetcht 6 ,mem_le_conn_peer_addr 
+1b51 98467c00 isub temp ,null 
+1b52 24628000 nrtn zero 
+1b53 20400a48 call context_new 
+1b54 24628000 nrtn zero 
+1b55 20401b5c call le_connect_request 
+1b56 2040158f call le_init_master 
+1b57 7041de00 jam 0 ,mem_hci_cmd 
+1b58 7002d700 jam 0 ,mem_le_peer_sca 
+1b59 7043e500 jam 0 ,mem_le_scan_enable 
+1b5a 7002e000 jam 0 ,mem_cmd_le_create_conn 
+1b5b 20200a30 branch context_save 
+
+le_connect_request:
+1b5c 4764c039 bpatchx patch39_1 ,mem_patch39 
+1b5d 18007fff force -1 ,pdata 
+1b5e 38080001 setsect 2 ,1 
+1b5f 67e282b7 store 5 ,mem_le_channel_map 
+1b60 da200287 arg mem_le_state ,rega 
+1b61 204016ad call le_calc_channel_map 
+1b62 18007204 force 4 ,loopcnt 
+1b63 d8a002ab arg mem_le_access ,contw 
+1b64 2040594f call generate_random_loop 
+1b65 6fe1437b fetch 2 ,mem_le_timeout 
+1b66 67e102b5 store 2 ,mem_le_superto 
+
+le_con_req_hop_retry:
+1b67 180a7e00 random pdata 
+1b68 1fe17e0f and_into 0xf ,pdata 
+1b69 1fe67c04 sub pdata ,4 ,null 
+1b6a 20211b67 branch le_con_req_hop_retry ,positive 
+1b6b 67e082a0 store 1 ,mem_le_hop 
+1b6c 67e085a8 store 1 ,mem_tmp1 
+1b6d 47654039 bpatchx patch39_2 ,mem_patch39 
+1b6e 684941f6 fetcht 2 ,mem_le_conn_interval 
+1b6f 60490289 storet 2 ,mem_le_tsniff 
+1b70 18422600 copy temp ,regc 
+1b71 1c40fe07 add clkn_bt ,7 ,pdata 
+1b72 9a66fc00 idiv regc 
+1b73 20407d31 call wait_div_end 
+1b74 18072200 remainder rega 
+1b75 9a267e00 isub rega ,pdata 
+1b76 9a60fe00 iadd regc ,pdata 
+1b77 684941f4 fetcht 2 ,mem_le_dsniff 
+1b78 9840fe00 iadd temp ,pdata 
+1b79 67e2028b store 4 ,mem_le_anchor 
+1b7a 9c462200 isub clkn_bt ,rega 
+1b7b 1a20a3fa increase -6 ,rega 
+1b7c da402205 arg 0x2205 ,regb 
+1b7d 6fe0c374 fetch 1 ,mem_le_conn_own_addr_type 
+1b7e 7d3a2406 nsetflag blank ,le_sender_addr_bit ,regb 
+1b7f 6fe0c36d fetch 1 ,mem_le_conn_peer_addr_type 
+1b80 7d3a2407 nsetflag blank ,le_receiver_addr_bit ,regb 
+1b81 1a427e00 copy regb ,pdata 
+1b82 67e141f8 store 2 ,mem_le_txheader 
+1b83 6fe3437d fetch 6 ,mem_le_lap 
+1b84 e7e30005 istore 6 ,contw 
+1b85 6fe30297 fetch 6 ,mem_le_plap 
+1b86 e7e30005 istore 6 ,contw 
+1b87 6fe202ab fetch 4 ,mem_le_access 
+1b88 e7e20005 istore 4 ,contw 
+1b89 180a7e00 random pdata 
+1b8a e7e10005 istore 2 ,contw 
+1b8b 180a7e00 random pdata 
+1b8c e7e08005 istore 1 ,contw 
+1b8d 18007e02 force 2 ,pdata 
+1b8e e7e08005 istore 1 ,contw 
+1b8f 1a2b7e00 rshift2 rega ,pdata 
+1b90 e7e10005 istore 2 ,contw 
+1b91 1a6b7e00 rshift2 regc ,pdata 
+1b92 e7e10005 istore 2 ,contw 
+1b93 4765c039 bpatchx patch39_3 ,mem_patch39 
+1b94 58000000 setarg 0 
+1b95 e7e10005 istore 2 ,contw 
+1b96 6fe1437b fetch 2 ,mem_le_timeout 
+1b97 e7e10005 istore 2 ,contw 
+1b98 6fe282b7 fetch 5 ,mem_le_channel_map 
+1b99 e7e28005 istore 5 ,contw 
+1b9a 6fe082a0 fetch 1 ,mem_le_hop 
+1b9b d84000a0 arg param_le_sca ,temp 
+1b9c 9841fe00 ior temp ,pdata 
+1b9d e7e08005 istore 1 ,contw 
+1b9e 204017c3 call le_transmit_norx 
+1b9f 580041f8 setarg mem_le_txheader 
+1ba0 1fe08c12 add pdata ,18 ,contr 
+1ba1 efe18006 ifetch 3 ,contr 
+1ba2 67e182af store 3 ,mem_le_crcinit 
+1ba3 20600000 rtn 
+
+le_adv:
+1ba4 70001624 jam 36 ,mem_le_ch_mapped 
+1ba5 70098e00 jam 0 ,mem_le_adv_channel_map_temp 
+
+le_adv_loop:
+1ba6 6fe0c42a fetch 1 ,mem_le_adv_enable 
+1ba7 207a0000 rtn blank 
+1ba8 d8e00000 arg le_adv_interval_timer ,queue 
+1ba9 20407cb6 call timer_check 
+1baa 247a0000 nrtn blank 
+1bab 47664039 bpatchx patch39_4 ,mem_patch39 
+
+le_adv_loop_tx:
+1bac 78287c00 enable swfine 
+1bad 20401bc5 call le_init_adv 
+1bae 20401c37 call le_next_adv_channel 
+1baf 20401bce call le_send_adv_ind 
+1bb0 24369bb8 nbranch le_adv_not_match ,match 
+1bb1 6fe08003 fetch 1 ,mem_le_req_rcv 
+1bb2 1fe0fe01 increase 1 ,pdata 
+1bb3 67e08003 store 1 ,mem_le_req_rcv 
+1bb4 6fe0816b fetch 1 ,mem_le_rxbuf_adv_header 
+1bb5 1fe17e0f and pdata ,0x0f ,pdata 
+1bb6 c0019bfd beq scan_req ,le_send_scan_response 
+1bb7 c0029c0f beq connect_req ,le_parse_connect_req 
+
+le_adv_not_match:
+1bb8 4766c039 bpatchx patch39_5 ,mem_patch39 
+1bb9 6fe0898e fetch 1 ,mem_le_adv_channel_map_temp 
+1bba 6848c435 fetcht 1 ,mem_le_adv_channel_map 
+1bbb 98467c00 isub temp ,null 
+1bbc 24229ba6 nbranch le_adv_loop ,zero 
+1bbd 180a7e00 random pdata 
+1bbe d84001ff arg 0x1ff ,temp 
+1bbf 98417e00 iand temp ,pdata 
+1bc0 1fe0fefa add pdata ,250 ,pdata 
+1bc1 20407c4e call delay 
+1bc2 d8e00000 arg le_adv_interval_timer ,queue 
+1bc3 6fe1442b fetch 2 ,mem_le_adv_interval 
+1bc4 20207ca8 branch timer_init 
+
+le_init_adv:
+1bc5 47674039 bpatchx patch39_6 ,mem_patch39 
+1bc6 7854fc00 disable master 
+
+le_adv_access:
+1bc7 588e89be setarg 0x8e89be 
+1bc8 1fed7e00 lshift8 pdata ,pdata 
+1bc9 1fe1fed6 or_into 0xd6 ,pdata 
+1bca 98001200 iforce access 
+1bcb 58555555 setarg 0x555555 
+1bcc 67e182af store 3 ,mem_le_crcinit 
+1bcd 202010ac branch calc_mod_value_scale_le 
+
+le_send_adv_ind:
+1bce 4767c039 bpatchx patch39_7 ,mem_patch39 
+1bcf 6fe0c42d fetch 1 ,mem_le_adv_type 
+1bd0 6848c42e fetcht 1 ,mem_le_adv_own_addr_type 
+1bd1 18520400 lshift4 temp ,temp 
+1bd2 184b8400 lshift2 temp ,temp 
+1bd3 98408400 iadd temp ,temp 
+1bd4 6048c1f8 storet 1 ,mem_le_txheader 
+1bd5 c0009bdf beq adv_direct_ind ,le_send_adv_direct_ind 
+1bd6 6848c3ea fetcht 1 ,mem_le_adv_data_len 
+1bd7 1840fe06 add temp ,6 ,pdata 
+1bd8 67e0c1f9 store 1 ,mem_le_txlen 
+1bd9 6fe3437d fetch 6 ,mem_le_lap 
+1bda 67e341fa store 6 ,mem_le_txpayload 
+1bdb 18427200 copy temp ,loopcnt 
+1bdc d8c043eb arg mem_le_adv_data ,contr 
+1bdd 20407c94 call memcpy_fast 
+1bde 20201be5 branch le_send_adv_transmit 
+
+le_send_adv_direct_ind:
+1bdf 5800000c setarg 12 
+1be0 67e0c1f9 store 1 ,mem_le_txlen 
+1be1 6fe3437d fetch 6 ,mem_le_lap 
+1be2 67e341fa store 6 ,mem_le_txpayload 
+1be3 6fe341e0 fetch 6 ,mem_hci_plap 
+1be4 e7e30005 istore 6 ,contw 
+
+le_send_adv_transmit:
+1be5 4768403a bpatchx patch3a_0 ,mem_patch3a 
+1be6 6fe08000 fetch 1 ,mem_le_adv_transmit 
+1be7 1fe0fe01 increase 1 ,pdata 
+1be8 67e08000 store 1 ,mem_le_adv_transmit 
+1be9 db600708 arg 1800 ,stop_watch 
+1bea 7856fc00 disable match 
+1beb 202017ae branch le_transmit_receive_sifs_without_change_mode 
+
+le_send_scan_request:
+1bec 4768c03a bpatchx patch3a_1 ,mem_patch3a 
+1bed 6fe0c436 fetch 1 ,mem_le_scan_type 
+1bee c1808000 rtnne le_scan_type_active 
+1bef 6fe08000 fetch 1 ,mem_le_adv_transmit 
+1bf0 1fe0fe01 increase 1 ,pdata 
+1bf1 67e08000 store 1 ,mem_le_adv_transmit 
+1bf2 d8400c03 arg 0x0c03 ,temp 
+1bf3 6fe0c437 fetch 1 ,mem_le_scan_own_addr_type 
+1bf4 7d3a0406 nsetflag blank ,le_sender_addr_bit ,temp 
+1bf5 1a227e00 copy rega ,pdata 
+1bf6 7d3a0407 nsetflag blank ,le_receiver_addr_bit ,temp 
+1bf7 604941f8 storet 2 ,mem_le_txheader 
+1bf8 6fe3437d fetch 6 ,mem_le_lap 
+1bf9 e7e30005 istore 6 ,contw 
+1bfa 6fe30297 fetch 6 ,mem_le_plap 
+1bfb e7e30005 istore 6 ,contw 
+1bfc 202017ae branch le_transmit_receive_sifs_without_change_mode 
+
+le_send_scan_response:
+1bfd 6fe30173 fetch 6 ,mem_le_rxbuf_adv_scan_req_adv_address 
+1bfe 684b437d fetcht 6 ,mem_le_lap 
+1bff 98467c00 isub temp ,null 
+1c00 24628000 nrtn zero 
+1c01 d8400004 arg scan_rsp ,temp 
+1c02 6fe0c42e fetch 1 ,mem_le_adv_own_addr_type 
+1c03 7d3a0406 nsetflag blank ,le_sender_addr_bit ,temp 
+1c04 6048c1f8 storet 1 ,mem_le_txheader 
+1c05 6848c40a fetcht 1 ,mem_le_scan_data_len 
+1c06 1840fe06 add temp ,6 ,pdata 
+1c07 67e0c1f9 store 1 ,mem_le_txlen 
+1c08 6fe3437d fetch 6 ,mem_le_lap 
+1c09 67e341fa store 6 ,mem_le_txpayload 
+1c0a d8c0440b arg mem_le_scan_data ,contr 
+1c0b 18427200 copy temp ,loopcnt 
+1c0c 20407c94 call memcpy_fast 
+1c0d 204017c3 call le_transmit_norx 
+1c0e 20201bb8 branch le_adv_not_match 
+
+le_parse_connect_req:
+1c0f 6fe30173 fetch 6 ,mem_le_rxbuf_adv_connect_ind_adv_address 
+1c10 684b437d fetcht 6 ,mem_le_lap 
+1c11 98467c00 isub temp ,null 
+1c12 24628000 nrtn zero 
+1c13 204018ee call le_scan_check_sender_addr_type 
+1c14 6220c36d storer rega ,1 ,mem_le_conn_peer_addr_type 
+1c15 6fe3016d fetch 6 ,mem_le_rxbuf_adv_connect_ind_init_address 
+1c16 67e30297 store 6 ,mem_le_plap 
+1c17 6fe40179 fetch 8 ,mem_le_rxbuf_adv_connect_ind_access_address 
+1c18 67e402ab store 8 ,mem_le_access 
+1c19 68490181 fetcht 2 ,mem_le_rxbuf_adv_connect_ind_win_offset 
+1c1a 4769403a bpatchx patch3a_2 ,mem_patch3a 
+1c1b 184b8400 lshift2 temp ,temp 
+1c1c 6fe10183 fetch 2 ,mem_le_rxbuf_adv_connect_ind_interval 
+1c1d 1febfe00 lshift2 pdata ,pdata 
+1c1e 67e10289 store 2 ,mem_le_tsniff 
+1c1f 67e2028b store 4 ,mem_le_anchor 
+1c20 98467e00 isub temp ,pdata 
+1c21 1fe0d1fe add pdata ,-2 ,clke_bt 
+1c22 6fe48185 fetch 9 ,mem_le_rxbuf_adv_connect_ind_latency 
+1c23 67e482b3 store 9 ,mem_le_slave_latency 
+1c24 6fe0818e fetch 1 ,mem_le_rxbuf_adv_connect_ind_hop_and_sca 
+1c25 1fe1041f and pdata ,0x1f ,temp 
+1c26 604882a0 storet 1 ,mem_le_hop 
+1c27 1ff18400 rshift4 pdata ,temp 
+1c28 18430400 rshift temp ,temp 
+1c29 604882d7 storet 1 ,mem_le_peer_sca 
+1c2a da200287 arg mem_le_state ,rega 
+1c2b 204019c0 call le_receive_window_size 
+1c2c da200287 arg mem_le_state ,rega 
+1c2d 204016ad call le_calc_channel_map 
+1c2e 2040159b call le_init_slave 
+1c2f 20400a48 call context_new 
+1c30 24628000 nrtn zero 
+1c31 4769c03a bpatchx patch3a_3 ,mem_patch3a 
+1c32 2040105d call calc_clke_offset 
+1c33 20401ef9 call le_l2cap_reset_signaling_identifier 
+1c34 70095b14 jam bt_evt_le_connected ,mem_fifo_temp 
+1c35 204077a7 call ui_ipc_send_event 
+1c36 20200a30 branch context_save 
+
+le_next_adv_channel:
+1c37 476a403a bpatchx patch3a_4 ,mem_patch3a 
+1c38 6fe08016 fetch 1 ,mem_le_ch_mapped 
+1c39 c0129c3d beq 37 ,le_next_adv_channel_curr_channel_37 
+1c3a c0131c43 beq 38 ,le_next_adv_channel_curr_channel_38 
+1c3b c0139c49 beq 39 ,le_next_adv_channel_curr_channel_39 
+1c3c 20201c49 branch le_next_adv_channel_curr_channel_39 
+
+le_next_adv_channel_curr_channel_37:
+1c3d 6848c435 fetcht 1 ,mem_le_adv_channel_map 
+1c3e 284ffe01 isolate1 bit_adv_channel_map_38 ,temp 
+1c3f 20209c54 branch set_le_next_adv_channel_38 ,true 
+1c40 284ffe02 isolate1 bit_adv_channel_map_39 ,temp 
+1c41 20209c59 branch set_le_next_adv_channel_39 ,true 
+1c42 20201c4f branch set_le_next_adv_channel_37 
+
+le_next_adv_channel_curr_channel_38:
+1c43 6848c435 fetcht 1 ,mem_le_adv_channel_map 
+1c44 284ffe02 isolate1 bit_adv_channel_map_39 ,temp 
+1c45 20209c59 branch set_le_next_adv_channel_39 ,true 
+1c46 284ffe00 isolate1 bit_adv_channel_map_37 ,temp 
+1c47 20209c4f branch set_le_next_adv_channel_37 ,true 
+1c48 20201c54 branch set_le_next_adv_channel_38 
+
+le_next_adv_channel_curr_channel_39:
+1c49 6848c435 fetcht 1 ,mem_le_adv_channel_map 
+1c4a 284ffe00 isolate1 bit_adv_channel_map_37 ,temp 
+1c4b 20209c4f branch set_le_next_adv_channel_37 ,true 
+1c4c 284ffe01 isolate1 bit_adv_channel_map_38 ,temp 
+1c4d 20209c54 branch set_le_next_adv_channel_38 ,true 
+1c4e 20201c59 branch set_le_next_adv_channel_39 
+
+set_le_next_adv_channel_37:
+1c4f 70001625 jam 37 ,mem_le_ch_mapped 
+1c50 6fe0898e fetch 1 ,mem_le_adv_channel_map_temp 
+1c51 79207e00 set1 bit_adv_channel_map_37 ,pdata 
+1c52 67e0898e store 1 ,mem_le_adv_channel_map_temp 
+1c53 20600000 rtn 
+
+set_le_next_adv_channel_38:
+1c54 70001626 jam 38 ,mem_le_ch_mapped 
+1c55 6fe0898e fetch 1 ,mem_le_adv_channel_map_temp 
+1c56 79207e01 set1 bit_adv_channel_map_38 ,pdata 
+1c57 67e0898e store 1 ,mem_le_adv_channel_map_temp 
+1c58 20600000 rtn 
+
+set_le_next_adv_channel_39:
+1c59 70001627 jam 39 ,mem_le_ch_mapped 
+1c5a 6fe0898e fetch 1 ,mem_le_adv_channel_map_temp 
+1c5b 79207e02 set1 bit_adv_channel_map_39 ,pdata 
+1c5c 67e0898e store 1 ,mem_le_adv_channel_map_temp 
+1c5d 20600000 rtn 
+
+le_parse_att:
+1c5e efe18006 ifetch 3 ,contr 
+1c5f 67e1c439 store 3 ,mem_le_att_opcode 
+1c60 c0011c75 beq attop_exchange_mtu_request ,le_parse_att_exchange_mtu_request 
+1c61 c0019c7d beq attop_exchange_mtu_response ,le_parse_att_exchange_mtu_response 
+1c62 c0021c80 beq attop_find_information_request ,le_parse_att_find_information_request 
+1c63 c0031ca9 beq attop_find_by_type_value_request ,le_parse_att_find_by_type_value_request 
+1c64 c0041cf6 beq attop_read_by_type_request ,le_parse_att_read_by_type_request 
+1c65 c0051d74 beq attop_read_request ,le_parse_att_read_request 
+1c66 c0061da3 beq attop_read_blob_request ,le_parse_att_read_blob_request 
+1c67 c0081db9 beq attop_read_by_group_type_request ,le_parse_att_read_by_group_type_request 
+1c68 c0091dfc beq attop_write_request ,le_parse_att_write_request 
+1c69 c00b1e20 beq attop_prepare_write_request ,le_parse_att_prepare_write_request 
+1c6a c00c1e33 beq attop_execute_write_request ,le_parse_att_execute_write_request 
+1c6b c00f1e38 beq attop_handle_value_confirmation ,le_parse_handle_value_confirmation 
+1c6c c0291e3c beq attop_write_command ,le_parse_att_write_command 
+1c6d 20600000 rtn 
+
+le_send_att_exchange_mtu_requset:
+1c6e 18002203 force 3 ,rega 
+1c6f 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1c70 58000002 setarg attop_exchange_mtu_request 
+1c71 e7e08005 istore 1 ,contw 
+1c72 6fe14383 fetch 2 ,mem_le_local_mtu 
+1c73 e7e10005 istore 2 ,contw 
+1c74 20600000 rtn 
+
+le_parse_att_exchange_mtu_request:
+1c75 20401c7d call le_parse_att_exchange_mtu_response 
+
+le_send_att_exchange_mtu_response:
+1c76 18002203 force 3 ,rega 
+1c77 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1c78 58000003 setarg attop_exchange_mtu_response 
+1c79 e7e08005 istore 1 ,contw 
+1c7a 6fe14383 fetch 2 ,mem_le_local_mtu 
+1c7b e7e10005 istore 2 ,contw 
+1c7c 20600000 rtn 
+
+le_parse_att_exchange_mtu_response:
+1c7d 1fecfe00 rshift8 pdata ,pdata 
+1c7e 67e14385 store 2 ,mem_le_remote_mtu 
+1c7f 20600000 rtn 
+
+le_parse_att_find_information_request:
+1c80 20401e91 call le_get_search_handle_start_end_common 
+1c81 20407d92 call enable_user 
+1c82 20201c83 branch le_send_att_find_information_response 
+
+le_send_att_find_information_response:
+1c83 d9600003 arg 3 ,timeup 
+1c84 204019da call le_init_attlist_search 
+
+le_send_att_find_information_res_loop:
+1c85 204019e3 call le_att_handle_inrange 
+1c86 203a1ca7 branch le_send_att_find_information_res_end ,blank 
+1c87 24211ca4 nbranch le_send_att_find_information_res_next ,positive 
+1c88 18c08dfe increase -2 ,contr 
+1c89 20407c29 call store_contr 
+1c8a 20407c20 call get_contw 
+1c8b 24341c97 nbranch le_send_att_find_information_res_store_info ,user 
+1c8c 20407c0e call push_stack_rega_b_c 
+1c8d 20407d94 call disable_user 
+1c8e 6162096c storer timeup ,4 ,mem_timeup 
+1c8f 18002214 force 20 ,rega 
+1c90 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1c91 6962096c fetchr timeup ,4 ,mem_timeup 
+1c92 20407c1c call pop_stack_rega_b_c 
+1c93 58000005 setarg attop_find_information_response 
+1c94 e7e08005 istore 1 ,contw 
+1c95 58000001 setarg uuid_size_16bit 
+1c96 e7e08005 istore 1 ,contw 
+
+le_send_att_find_information_res_store_info:
+1c97 20407c23 call get_contr 
+1c98 efe10006 ifetch 2 ,contr 
+1c99 1fe17eff and_into 0xff ,pdata 
+1c9a e7e10005 istore 2 ,contw 
+1c9b efe08006 ifetch 1 ,contr 
+1c9c 1fe27200 copy pdata ,loopcnt 
+1c9d 20407ca1 call memcpy 
+1c9e 20407c26 call store_contw 
+1c9f 196097ff increase -1 ,timeup 
+1ca0 20229ca7 branch le_send_att_find_information_res_end ,zero 
+
+le_send_att_find_information_res_cont:
+1ca1 efe08006 ifetch 1 ,contr 
+1ca2 98c08c00 iadd contr ,contr 
+1ca3 20201c85 branch le_send_att_find_information_res_loop 
+
+le_send_att_find_information_res_next:
+1ca4 efe08006 ifetch 1 ,contr 
+1ca5 98c08c00 iadd contr ,contr 
+1ca6 20201ca1 branch le_send_att_find_information_res_cont 
+
+le_send_att_find_information_res_end:
+1ca7 20341e55 branch le_send_att_error_response_notfound ,user 
+1ca8 20201e84 branch le_send_auto_len_by_mem 
+
+le_parse_att_find_by_type_value_request:
+1ca9 20401e91 call le_get_search_handle_start_end_common 
+1caa efe10006 ifetch 2 ,contr 
+1cab 67e1435d store 2 ,mem_le_search_uuid 
+1cac 20407c29 call store_contr 
+1cad d8a009a2 arg mem_le_search_att_type_length ,contw 
+1cae 6fe143d7 fetch 2 ,mem_le_l2cap_size 
+1caf 1fe0fff9 increase -7 ,pdata 
+1cb0 20401ea2 call le_get_search_common2 
+1cb1 20201cbc branch le_send_att_find_by_type_value_response 
+
+le_start_end_handle_check_1:
+1cb2 78547c00 disable user 
+1cb3 6849099e fetcht 2 ,mem_le_search_handle_start 
+1cb4 6fe109a0 fetch 2 ,mem_le_search_handle_end 
+1cb5 98467c00 isub temp ,null 
+1cb6 24211cb9 nbranch le_start_end_handle_check_1_fail ,positive 
+1cb7 18427e00 deposit temp 
+1cb8 c1800000 rtnne 0 
+
+le_start_end_handle_check_1_fail:
+1cb9 78347c00 enable user 
+1cba 7002d801 jam att_err_invalid_handle ,mem_le_err_code 
+1cbb 20201e56 branch le_send_att_error_response 
+
+le_send_att_find_by_type_value_response:
+1cbc 20401cb2 call le_start_end_handle_check_1 
+1cbd 20740000 rtn user 
+1cbe 6849435d fetcht 2 ,mem_le_search_uuid 
+1cbf 58002800 setarg uuid_gatt_primary_service 
+1cc0 98467c00 isub temp ,null 
+1cc1 20229cc3 branch le_send_att_find_by_type_value_res_primary ,zero 
+1cc2 20201e55 branch le_send_att_error_response_notfound 
+
+le_send_att_find_by_type_value_res_primary:
+1cc3 70443c00 jam le_find_by_type_val_res_not_found ,mem_le_search_res 
+1cc4 6849099e fetcht 2 ,mem_le_search_handle_start 
+1cc5 60490964 storet 2 ,mem_temp 
+1cc6 20401a1f call le_att_get_handle_info 
+1cc7 243a1e55 nbranch le_send_att_error_response_notfound ,blank 
+
+le_send_att_find_primary_search_loop:
+1cc8 68490964 fetcht 2 ,mem_temp 
+1cc9 20401a1f call le_att_get_handle_info 
+1cca 243a1cdc nbranch le_send_att_error_response_notfound2 ,blank 
+1ccb 18c22200 copy contr ,rega 
+1ccc 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+1ccd 1fe27200 copy pdata ,loopcnt 
+1cce 684889a2 fetcht 1 ,mem_le_search_att_type_length 
+1ccf 98467c00 isub temp ,null 
+1cd0 24229cd8 nbranch le_send_att_find_primary_search_loop1 ,zero 
+1cd1 da4009a3 arg mem_le_search_att_type ,regb 
+1cd2 20407d33 call string_compare 
+1cd3 20229cdf branch le_send_att_find_primary_search_end_start_handle_found ,zero 
+1cd4 6fe109bb fetch 2 ,mem_le_cur_uuid 
+1cd5 6849435d fetcht 2 ,mem_le_search_uuid 
+1cd6 98467c00 isub temp ,null 
+1cd7 20229ce7 branch le_send_att_find_primary_search_end_ending_handle_found ,zero 
+
+le_send_att_find_primary_search_loop1:
+1cd8 6fe10964 fetch 2 ,mem_temp 
+1cd9 1fe0fe01 increase 1 ,pdata 
+1cda 67e10964 store 2 ,mem_temp 
+1cdb 20201cc8 branch le_send_att_find_primary_search_loop 
+
+le_send_att_error_response_notfound2:
+1cdc 6fe0c43c fetch 1 ,mem_le_search_res 
+1cdd c0009ce7 beq le_find_by_type_val_res_found_starting_handle ,le_send_att_find_primary_search_end_ending_handle_found 
+1cde 20201e55 branch le_send_att_error_response_notfound 
+
+le_send_att_find_primary_search_end_start_handle_found:
+1cdf 6fe109bb fetch 2 ,mem_le_cur_uuid 
+1ce0 6849435d fetcht 2 ,mem_le_search_uuid 
+1ce1 98467c00 isub temp ,null 
+1ce2 24229cd8 nbranch le_send_att_find_primary_search_loop1 ,zero 
+1ce3 70443c01 jam le_find_by_type_val_res_found_starting_handle ,mem_le_search_res 
+1ce4 68490964 fetcht 2 ,mem_temp 
+1ce5 604909b6 storet 2 ,mem_le_cur_handle_start 
+1ce6 20201cd8 branch le_send_att_find_primary_search_loop1 
+
+le_send_att_find_primary_search_end_ending_handle_found:
+1ce7 6fe0c43c fetch 1 ,mem_le_search_res 
+1ce8 c0001cd8 beq le_find_by_type_val_res_not_found ,le_send_att_find_primary_search_loop1 
+1ce9 70443c02 jam le_find_by_type_val_res_found_ending_handle ,mem_le_search_res 
+1cea 68490964 fetcht 2 ,mem_temp 
+1ceb 184085ff increase -1 ,temp 
+1cec 604909b8 storet 2 ,mem_le_cur_handle_end 
+
+le_send_att_find_primary_search_end:
+1ced da200005 arg 5 ,rega 
+1cee 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1cef 58000007 setarg attop_find_by_type_value_response 
+1cf0 e7e08005 istore 1 ,contw 
+1cf1 6fe109b6 fetch 2 ,mem_le_cur_handle_start 
+1cf2 e7e10005 istore 2 ,contw 
+1cf3 6fe109b8 fetch 2 ,mem_le_cur_handle_end 
+1cf4 e7e10005 istore 2 ,contw 
+1cf5 20600000 rtn 
+
+le_parse_att_read_by_type_request:
+1cf6 20401e91 call le_get_search_handle_start_end_common 
+1cf7 20401e9e call le_get_search_att_type 
+1cf8 20201cf9 branch le_send_att_read_by_type_response 
+
+le_send_att_read_by_type_response:
+1cf9 6849099e fetcht 2 ,mem_le_search_handle_start 
+1cfa 60490964 storet 2 ,mem_temp 
+1cfb 204019da call le_init_attlist_search 
+1cfc 204019f2 call le_att_get_handle_ptr2 
+1cfd 18c08dfe increase -2 ,contr 
+1cfe 18c27e00 copy contr ,pdata 
+1cff 67e109b4 store 2 ,mem_le_cur_attlist_start_ptr 
+1d00 684909a3 fetcht 2 ,mem_le_search_att_type 
+1d01 58002a00 setarg uuid_chrctr_device_name 
+1d02 98467c00 isub temp ,null 
+1d03 20229d60 branch le_send_att_read_by_type_res_device_name ,zero 
+1d04 58002803 setarg uuid_gatt_characteristic 
+1d05 98467c00 isub temp ,null 
+1d06 24229d4c nbranch le_send_att_read_by_type_res_not_characteristic ,zero 
+1d07 d9600002 arg 2 ,timeup 
+
+le_send_att_read_by_type_response_loop:
+1d08 20401e67 call le_att_check_handle_end 
+1d09 24211d29 nbranch le_send_att_read_by_type_response_end ,positive 
+1d0a 68490964 fetcht 2 ,mem_temp 
+1d0b 20401a1d call le_att_get_handle_info_from_ptr 
+1d0c 243a1d29 nbranch le_send_att_read_by_type_response_end ,blank 
+1d0d 20401e6b call le_att_same_type 
+1d0e 24229d27 nbranch le_send_att_read_by_type_response_next_handle ,zero 
+1d0f 24341d2b nbranch le_send_att_read_by_type_res_found_next ,user 
+1d10 78547c00 disable user 
+1d11 da200014 arg 20 ,rega 
+1d12 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1d13 58000009 setarg attop_read_by_type_response 
+1d14 e7e08005 istore 1 ,contw 
+1d15 18a26000 copy contw ,alarm 
+1d16 18a08a01 increase 1 ,contw 
+1d17 20401d39 call le_send_att_read_by_type_write_properties 
+1d18 20401e63 call le_att_next_handle 
+1d19 20401a1d call le_att_get_handle_info_from_ptr 
+1d1a 20401d40 call le_send_att_read_by_type_write_uuid 
+1d1b 6fe089ba fetch 1 ,mem_le_cur_uuid_length 
+1d1c 1fe0a205 add pdata ,5 ,rega 
+1d1d e2208030 istorer rega ,1 ,alarm 
+1d1e 1a267c07 sub rega ,7 ,null 
+1d1f 2442fd96 ncall enable_user2 ,zero 
+1d20 2042fd98 call disable_user2 ,zero 
+1d21 20401e96 call le_get_search_max_mtu_data 
+1d22 9a26fc00 idiv rega 
+1d23 20407d31 call wait_div_end 
+1d24 18079600 quotient timeup 
+1d25 196097ff increase -1 ,timeup 
+1d26 20229d29 branch le_send_att_read_by_type_response_end ,zero 
+
+le_send_att_read_by_type_response_next_handle:
+1d27 20401e63 call le_att_next_handle 
+1d28 20201d08 branch le_send_att_read_by_type_response_loop 
+
+le_send_att_read_by_type_response_end:
+1d29 20341e55 branch le_send_att_error_response_notfound ,user 
+1d2a 20201e84 branch le_send_auto_len_by_mem 
+
+le_send_att_read_by_type_res_found_next:
+1d2b 20401e76 call le_store_att_record 
+1d2c 20401e63 call le_att_next_handle 
+1d2d 20401a1d call le_att_get_handle_info_from_ptr 
+1d2e 20401dea call le_send_att_read_by_type_res_check_pair_length_type 
+1d2f 243a1d29 nbranch le_send_att_read_by_type_response_end ,blank 
+1d30 20407c20 call get_contw 
+1d31 6fe10964 fetch 2 ,mem_temp 
+1d32 1fe0ffff increase -1 ,pdata 
+1d33 e7e10005 istore 2 ,contw 
+1d34 20401e80 call le_write_att_record_common 
+1d35 20401d40 call le_send_att_read_by_type_write_uuid 
+1d36 196097ff increase -1 ,timeup 
+1d37 20229d29 branch le_send_att_read_by_type_response_end ,zero 
+1d38 20201d27 branch le_send_att_read_by_type_response_next_handle 
+
+le_send_att_read_by_type_write_properties:
+1d39 6fe10964 fetch 2 ,mem_temp 
+1d3a e7e10005 istore 2 ,contw 
+1d3b 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+1d3c 1fe27200 copy pdata ,loopcnt 
+1d3d 20407c23 call get_contr 
+1d3e 20407c94 call memcpy_fast 
+1d3f 20207c26 branch store_contw 
+
+le_send_att_read_by_type_write_uuid:
+1d40 20407c20 call get_contw 
+1d41 6fe10964 fetch 2 ,mem_temp 
+1d42 e7e10005 istore 2 ,contw 
+1d43 20407c26 call store_contw 
+1d44 6fe089ba fetch 1 ,mem_le_cur_uuid_length 
+1d45 1fe27200 copy pdata ,loopcnt 
+1d46 20407c20 call get_contw 
+1d47 20407c23 call get_contr 
+1d48 9f260c00 isub loopcnt ,contr 
+1d49 18c08dff increase -1 ,contr 
+1d4a 20407c94 call memcpy_fast 
+1d4b 20207c26 branch store_contw 
+
+le_send_att_read_by_type_res_not_characteristic:
+1d4c 20401a02 call le_att_get_short_uuid_ptr 
+1d4d 203a1e55 branch le_send_att_error_response_notfound ,blank 
+1d4e 18c22600 copy contr ,regc 
+1d4f 18c08dfb increase -5 ,contr 
+1d50 efe10006 ifetch 2 ,contr 
+1d51 67e10964 store 2 ,mem_temp 
+1d52 da200014 arg 20 ,rega 
+1d53 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1d54 58000009 setarg attop_read_by_type_response 
+1d55 e7e08005 istore 1 ,contw 
+1d56 efe08013 ifetch 1 ,regc 
+1d57 1fe27200 copy pdata ,loopcnt 
+1d58 1fe0fe02 increase 2 ,pdata 
+1d59 e7e08005 istore 1 ,contw 
+1d5a 6fe10964 fetch 2 ,mem_temp 
+1d5b e7e10005 istore 2 ,contw 
+1d5c 1a608c01 add regc ,1 ,contr 
+1d5d 20407c94 call memcpy_fast 
+1d5e 20407c26 call store_contw 
+1d5f 20201e84 branch le_send_auto_len_by_mem 
+
+le_send_att_read_by_type_res_device_name:
+1d60 d8402a00 arg uuid_chrctr_device_name ,temp 
+1d61 20401a02 call le_att_get_short_uuid_ptr 
+1d62 207a0000 rtn blank 
+1d63 18c08dfb increase -5 ,contr 
+1d64 efe10006 ifetch 2 ,contr 
+1d65 67e10964 store 2 ,mem_temp 
+1d66 da200014 arg 20 ,rega 
+1d67 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1d68 58000009 setarg attop_read_by_type_response 
+1d69 e7e08005 istore 1 ,contw 
+1d6a 6fe0c2fa fetch 1 ,mem_le_name_len 
+1d6b 1fe27200 copy pdata ,loopcnt 
+1d6c 1fe0fe02 increase 2 ,pdata 
+1d6d e7e08005 istore 1 ,contw 
+1d6e 6fe10964 fetch 2 ,mem_temp 
+1d6f e7e10005 istore 2 ,contw 
+1d70 d8c042fb arg mem_le_name ,contr 
+1d71 20407c94 call memcpy_fast 
+1d72 20407c26 call store_contw 
+1d73 20201e84 branch le_send_auto_len_by_mem 
+
+le_parse_att_read_request:
+1d74 20401e1a call le_check_encrypt_state 
+1d75 6849443a fetcht 2 ,mem_le_att_handle 
+1d76 6fe0c3c3 fetch 1 ,mem_le_configuration 
+1d77 c2819d99 bbit1 bit_ble_read_auth ,le_send_att_read_response_check_auth 
+
+le_send_att_read_response:
+1d78 204019f2 call le_att_get_handle_ptr2 
+1d79 24229e55 nbranch le_send_att_error_response_notfound ,zero 
+1d7a 20541d9f call le_send_att_read_response_check_handle ,user 
+1d7b 20740000 rtn user 
+1d7c 204019ff call le_att_get_handle_ptr_found 
+1d7d 18c08dfe increase -2 ,contr 
+1d7e efe10006 ifetch 2 ,contr 
+1d7f d8402a00 arg uuid_chrctr_device_name ,temp 
+1d80 98467c00 isub temp ,null 
+1d81 20229d8f branch le_send_device_name ,zero 
+1d82 efe08006 ifetch 1 ,contr 
+1d83 1fe67c16 sub pdata ,22 ,null 
+1d84 20211d86 branch le_send_att_read_response_less ,positive 
+1d85 18007e16 force 22 ,pdata 
+
+le_send_att_read_response_less:
+1d86 1fe22600 copy pdata ,regc 
+1d87 20407c29 call store_contr 
+1d88 1a60a201 add regc ,1 ,rega 
+1d89 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1d8a 5800000b setarg attop_read_response 
+1d8b e7e08005 istore 1 ,contw 
+1d8c 1a627200 copy regc ,loopcnt 
+1d8d 20407c23 call get_contr 
+1d8e 20207ca1 branch memcpy 
+
+le_send_device_name:
+1d8f 20407c29 call store_contr 
+1d90 6fe0c2fa fetch 1 ,mem_le_name_len 
+1d91 1fe0a201 add pdata ,1 ,rega 
+1d92 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1d93 5800000b setarg attop_read_response 
+1d94 e7e08005 istore 1 ,contw 
+1d95 6fe0c2fa fetch 1 ,mem_le_name_len 
+1d96 1fe27200 copy pdata ,loopcnt 
+1d97 d8c042fb arg mem_le_name ,contr 
+1d98 20207ca1 branch memcpy 
+
+le_send_att_read_response_check_auth:
+1d99 6fe143d4 fetch 2 ,mem_le_pairing_handle 
+1d9a 98467c00 isub temp ,null 
+1d9b 24229d78 nbranch le_send_att_read_response ,zero 
+1d9c 24341d78 nbranch le_send_att_read_response ,user 
+
+le_send_att_read_response_error_insufficient_auth:
+1d9d 7002d805 jam att_err_insufficient_authentication ,mem_le_err_code 
+1d9e 20201e56 branch le_send_att_error_response 
+
+le_send_att_read_response_check_handle:
+1d9f 18c08dfe increase -2 ,contr 
+1da0 efe10006 ifetch 2 ,contr 
+1da1 c2871d9d bbit1 bit_of_att_handle_read_authenticated ,le_send_att_read_response_error_insufficient_auth 
+1da2 20207d94 branch disable_user 
+
+le_parse_att_read_blob_request:
+1da3 efe10006 ifetch 2 ,contr 
+1da4 67e109a2 store 2 ,mem_le_att_offset 
+
+le_send_att_read_blob_response:
+1da5 da200014 arg 20 ,rega 
+1da6 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1da7 5800000d setarg attop_read_blob_response 
+1da8 e7e08005 istore 1 ,contw 
+1da9 6fe109a2 fetch 2 ,mem_le_att_offset 
+1daa 98002200 iforce rega 
+1dab 6849443a fetcht 2 ,mem_le_att_handle 
+1dac 204019ef call le_att_get_handle_ptr 
+1dad 203a1e55 branch le_send_att_error_response_notfound ,blank 
+1dae efe08006 ifetch 1 ,contr 
+1daf 9a267200 isub rega ,loopcnt 
+1db0 24211e55 nbranch le_send_att_error_response_notfound ,positive 
+1db1 1f267c16 sub loopcnt ,22 ,null 
+1db2 20211db4 branch le_send_att_read_blob_response_less ,positive 
+1db3 18007216 force 22 ,loopcnt 
+
+le_send_att_read_blob_response_less:
+1db4 1a227e00 deposit rega 
+1db5 98c08c00 iadd contr ,contr 
+1db6 20407c94 call memcpy_fast 
+1db7 20407c26 call store_contw 
+1db8 20201e84 branch le_send_auto_len_by_mem 
+
+le_parse_att_read_by_group_type_request:
+1db9 20401e91 call le_get_search_handle_start_end_common 
+1dba 20401e9e call le_get_search_att_type 
+1dbb 20201dbc branch le_send_att_read_by_group_type_response 
+
+le_send_att_read_by_group_type_response:
+1dbc d9600002 arg 2 ,timeup 
+1dbd 6849099e fetcht 2 ,mem_le_search_handle_start 
+1dbe 60490964 storet 2 ,mem_temp 
+1dbf 204019f2 call le_att_get_handle_ptr2 
+1dc0 18c08dfe increase -2 ,contr 
+1dc1 18c27e00 copy contr ,pdata 
+1dc2 67e109b4 store 2 ,mem_le_cur_attlist_start_ptr 
+
+le_send_att_read_by_group_type_response_loop:
+1dc3 20401e67 call le_att_check_handle_end 
+1dc4 24211df2 nbranch le_send_att_read_by_group_type_end0 ,positive 
+1dc5 68490964 fetcht 2 ,mem_temp 
+1dc6 20401a1d call le_att_get_handle_info_from_ptr 
+1dc7 243a1df5 nbranch le_send_att_read_by_group_type_end1 ,blank 
+1dc8 20401e6b call le_att_same_type 
+1dc9 24229de8 nbranch le_send_att_read_by_group_type_next_handle ,zero 
+1dca 19627e00 copy timeup ,pdata 
+1dcb c0001df5 beq 0 ,le_send_att_read_by_group_type_end1 
+1dcc 24341dde nbranch le_send_att_read_by_group_type_store_write_record ,user 
+1dcd 78547c00 disable user 
+1dce da200014 arg 20 ,rega 
+1dcf 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1dd0 58000011 setarg attop_read_by_group_type_response 
+1dd1 e7e08005 istore 1 ,contw 
+1dd2 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+1dd3 1fe0a204 add pdata ,4 ,rega 
+1dd4 e2208005 istorer rega ,1 ,contw 
+1dd5 20407c26 call store_contw 
+1dd6 1a267c06 sub rega ,6 ,null 
+1dd7 2442fd96 ncall enable_user2 ,zero 
+1dd8 2042fd98 call disable_user2 ,zero 
+1dd9 20401e96 call le_get_search_max_mtu_data 
+1dda 9a26fc00 idiv rega 
+1ddb 20407d31 call wait_div_end 
+1ddc 18079600 quotient timeup 
+1ddd 20201de4 branch le_send_att_read_by_group_type_store_record 
+
+le_send_att_read_by_group_type_store_write_record:
+1dde 20401dec call le_send_att_read_by_group_type_check_pair_length_type 
+1ddf 243a1df5 nbranch le_send_att_read_by_group_type_end1 ,blank 
+1de0 6fe10964 fetch 2 ,mem_temp 
+1de1 1fe0ffff increase -1 ,pdata 
+1de2 67e109b8 store 2 ,mem_le_cur_handle_end 
+1de3 20401e7b call le_write_att_record 
+
+le_send_att_read_by_group_type_store_record:
+1de4 6fe10964 fetch 2 ,mem_temp 
+1de5 67e109b6 store 2 ,mem_le_cur_handle_start 
+1de6 20401e76 call le_store_att_record 
+1de7 196097ff increase -1 ,timeup 
+
+le_send_att_read_by_group_type_next_handle:
+1de8 20401e63 call le_att_next_handle 
+1de9 20201dc3 branch le_send_att_read_by_group_type_response_loop 
+
+le_send_att_read_by_type_res_check_pair_length_type:
+1dea 6fe089ba fetch 1 ,mem_le_cur_uuid_length 
+1deb 20201ded branch le_send_att_read_by_group_type_check_pair_length_type + 1 
+
+le_send_att_read_by_group_type_check_pair_length_type:
+1dec 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+1ded 20361df0 branch le_send_att_read_by_group_type_check_pair_length_type_16byte ,user2 
+1dee 1fe0fffe increase -2 ,pdata 
+1def 20600000 rtn 
+
+le_send_att_read_by_group_type_check_pair_length_type_16byte:
+1df0 1fe0fff0 increase -16 ,pdata 
+1df1 20600000 rtn 
+
+le_send_att_read_by_group_type_end0:
+1df2 6fe10964 fetch 2 ,mem_temp 
+1df3 67e109b8 store 2 ,mem_le_cur_handle_end 
+1df4 20201df9 branch le_send_att_read_by_group_type_end_common 
+
+le_send_att_read_by_group_type_end1:
+1df5 6fe10964 fetch 2 ,mem_temp 
+1df6 1fe0ffff increase -1 ,pdata 
+1df7 67e109b8 store 2 ,mem_le_cur_handle_end 
+1df8 20201df9 branch le_send_att_read_by_group_type_end_common 
+
+le_send_att_read_by_group_type_end_common:
+1df9 20341e55 branch le_send_att_error_response_notfound ,user 
+1dfa 20401e7b call le_write_att_record 
+1dfb 20201e84 branch le_send_auto_len_by_mem 
+
+le_parse_att_write_request:
+1dfc 18c22200 copy contr ,rega 
+1dfd 6fe143d7 fetch 2 ,mem_le_l2cap_size 
+1dfe 1fe0a5fd add pdata ,-3 ,regb 
+1dff 204019b2 call le_writeatt_cb 
+
+le_send_att_write_response_check_auth:
+1e00 20401e1a call le_check_encrypt_state 
+1e01 6849443a fetcht 2 ,mem_le_att_handle 
+1e02 204019f2 call le_att_get_handle_ptr2 
+1e03 24229e18 nbranch le_send_att_write_response_error_invalid_handle ,zero 
+1e04 20541e14 call le_send_att_write_response_check_handle ,user 
+1e05 20740000 rtn user 
+1e06 6fe0c3c3 fetch 1 ,mem_le_configuration 
+1e07 c3021e0f bbit0 bit_ble_write_auth ,le_send_att_write_response 
+1e08 6849443a fetcht 2 ,mem_le_att_handle 
+1e09 6fe143d4 fetch 2 ,mem_le_pairing_handle 
+1e0a 98467c00 isub temp ,null 
+1e0b 24229e0f nbranch le_send_att_write_response ,zero 
+1e0c 20401e1a call le_check_encrypt_state 
+1e0d 24341e0f nbranch le_send_att_write_response ,user 
+1e0e 20201d9d branch le_send_att_read_response_error_insufficient_auth 
+
+le_send_att_write_response:
+1e0f 18002201 force 1 ,rega 
+1e10 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1e11 58000013 setarg attop_write_response 
+1e12 e7e08005 istore 1 ,contw 
+1e13 20600000 rtn 
+
+le_send_att_write_response_check_handle:
+1e14 18c08dfe increase -2 ,contr 
+1e15 efe10006 ifetch 2 ,contr 
+1e16 c2879d9d bbit1 bit_of_att_handle_write_authenticated ,le_send_att_read_response_error_insufficient_auth 
+1e17 20207d94 branch disable_user 
+
+le_send_att_write_response_error_invalid_handle:
+1e18 7002d801 jam att_err_invalid_handle ,mem_le_err_code 
+1e19 20201e56 branch le_send_att_error_response 
+
+le_check_encrypt_state:
+1e1a 20407d94 call disable_user 
+1e1b 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1e1c c1000000 rtneq le_pairing_mode_none 
+1e1d 6fe0c040 fetch 1 ,mem_context 
+1e1e c3820000 rtnbit1 lestate_encryption 
+1e1f 20207d92 branch enable_user 
+
+le_parse_att_prepare_write_request:
+1e20 18c0a202 add contr ,2 ,rega 
+1e21 6fe143d7 fetch 2 ,mem_le_l2cap_size 
+1e22 1fe0a5fb add pdata ,-5 ,regb 
+1e23 204019b2 call le_writeatt_cb 
+1e24 20201e25 branch le_send_att_prepare_write_response 
+
+le_send_att_prepare_write_response:
+1e25 6fe143d7 fetch 2 ,mem_le_l2cap_size 
+1e26 1fe22200 copy pdata ,rega 
+1e27 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1e28 58000017 setarg attop_prepare_write_response 
+1e29 e7e08005 istore 1 ,contw 
+1e2a 6fe1443a fetch 2 ,mem_le_att_handle 
+1e2b e7e10005 istore 2 ,contw 
+1e2c 6fe143d7 fetch 2 ,mem_le_l2cap_size 
+1e2d 1fe0f3fb add pdata ,-5 ,loopcnt 
+1e2e 6fe143db fetch 2 ,mem_le_payload_ptr 
+1e2f 1fe08c07 add pdata ,7 ,contr 
+1e30 efe10006 ifetch 2 ,contr 
+1e31 e7e10005 istore 2 ,contw 
+1e32 20207c94 branch memcpy_fast 
+
+le_parse_att_execute_write_request:
+
+le_send_att_execute_write_response:
+1e33 18002201 force 1 ,rega 
+1e34 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1e35 58000019 setarg attop_execute_write_response 
+1e36 e7e08005 istore 1 ,contw 
+1e37 20600000 rtn 
+
+le_parse_handle_value_confirmation:
+1e38 6fe0c438 fetch 1 ,mem_le_l2cap_att_states 
+1e39 793ffe00 set0 ble_l2cap_recv_confirmation_packet ,pdata 
+1e3a 67e0c438 store 1 ,mem_le_l2cap_att_states 
+1e3b 20600000 rtn 
+
+le_parse_att_write_command:
+1e3c 18c22200 copy contr ,rega 
+1e3d 6fe143d7 fetch 2 ,mem_le_l2cap_size 
+1e3e 1fe0a5fd add pdata ,-3 ,regb 
+1e3f 202019b2 branch le_writeatt_cb 
+
+le_att_malloc_tx_notify:
+1e40 18422600 copy temp ,regc 
+1e41 1a20a203 increase 3 ,rega 
+1e42 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1e43 1a20a3fd increase -3 ,rega 
+1e44 5800001b setarg attop_handle_value_notification 
+1e45 e7e08005 istore 1 ,contw 
+1e46 1a620400 copy regc ,temp 
+1e47 e0410005 istoret 2 ,contw 
+1e48 20600000 rtn 
+
+le_att_malloc_tx_indication:
+1e49 6fe0c438 fetch 1 ,mem_le_l2cap_att_states 
+1e4a 79207e00 set1 ble_l2cap_send_indication_packet ,pdata 
+1e4b 67e0c438 store 1 ,mem_le_l2cap_att_states 
+1e4c 18422600 copy temp ,regc 
+1e4d 1a20a203 increase 3 ,rega 
+1e4e 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1e4f 1a20a3fd increase -3 ,rega 
+1e50 5800001d setarg attop_handle_value_indication 
+1e51 e7e08005 istore 1 ,contw 
+1e52 1a620400 copy regc ,temp 
+1e53 e0410005 istoret 2 ,contw 
+1e54 20600000 rtn 
+
+le_send_att_error_response_notfound:
+1e55 7002d80a jam att_err_attribute_not_found ,mem_le_err_code 
+
+le_send_att_error_response:
+1e56 18002205 force 5 ,rega 
+1e57 20401e61 call le_fifo_malloc_tx_l2cap_gatt 
+1e58 58000001 setarg attop_error_response 
+1e59 e7e08005 istore 1 ,contw 
+1e5a 6fe0c439 fetch 1 ,mem_le_att_opcode 
+1e5b e7e08005 istore 1 ,contw 
+1e5c 6fe1443a fetch 2 ,mem_le_att_handle 
+1e5d e7e10005 istore 2 ,contw 
+1e5e 6fe082d8 fetch 1 ,mem_le_err_code 
+1e5f e7e08005 istore 1 ,contw 
+1e60 20600000 rtn 
+
+le_fifo_malloc_tx_l2cap_gatt:
+1e61 18002404 force le_l2cap_cid_att ,regb 
+1e62 20201ada branch le_fifo_malloc_tx_l2cap 
+
+le_att_next_handle:
+1e63 68490964 fetcht 2 ,mem_temp 
+1e64 18408401 increase 1 ,temp 
+1e65 60490964 storet 2 ,mem_temp 
+1e66 20600000 rtn 
+
+le_att_check_handle_end:
+1e67 68490964 fetcht 2 ,mem_temp 
+1e68 6fe109a0 fetch 2 ,mem_le_search_handle_end 
+1e69 98467c00 isub temp ,null 
+1e6a 20600000 rtn 
+
+le_att_same_type:
+1e6b 684889a2 fetcht 1 ,mem_le_search_att_type_length 
+1e6c da2009a3 arg mem_le_search_att_type ,rega 
+
+le_att_check_same_common:
+1e6d 6fe089ba fetch 1 ,mem_le_cur_uuid_length 
+1e6e 1fe27200 copy pdata ,loopcnt 
+1e6f 98467c00 isub temp ,null 
+1e70 24628000 nrtn zero 
+1e71 da4009bb arg mem_le_cur_uuid ,regb 
+1e72 20207d33 branch string_compare 
+
+le_att_same_uuid:
+1e73 6848c35c fetcht 1 ,mem_le_search_uuid_length 
+1e74 da20435d arg mem_le_search_uuid ,rega 
+1e75 20201e6d branch le_att_check_same_common 
+
+le_store_att_record:
+1e76 6fe089b3 fetch 1 ,mem_le_curr_att_len 
+1e77 67e08a01 store 1 ,mem_tmp_buffer 
+1e78 1fe27200 copy pdata ,loopcnt 
+1e79 20407c23 call get_contr 
+1e7a 20207c94 branch memcpy_fast 
+
+le_write_att_record:
+1e7b 20407c20 call get_contw 
+1e7c 6fe109b6 fetch 2 ,mem_le_cur_handle_start 
+1e7d e7e10005 istore 2 ,contw 
+1e7e 6fe109b8 fetch 2 ,mem_le_cur_handle_end 
+1e7f e7e10005 istore 2 ,contw 
+
+le_write_att_record_common:
+1e80 6fe08a01 fetch 1 ,mem_tmp_buffer 
+1e81 1fe27200 copy pdata ,loopcnt 
+1e82 20407c94 call memcpy_fast 
+1e83 20207c26 branch store_contw 
+
+le_send_auto_len_by_mem:
+1e84 476ac03a bpatchx patch3a_5 ,mem_patch3a 
+1e85 20407c20 call get_contw 
+1e86 20401afe call le_fifo_get_last_att_ptr 
+1e87 18a27e00 copy contw ,pdata 
+1e88 98c62200 isub contr ,rega 
+1e89 20401b01 call le_fifo_get_last_l2cap_ptr 
+1e8a 1a227e00 copy rega ,pdata 
+1e8b e7e10006 istore 2 ,contr 
+1e8c 1a20a204 increase 4 ,rega 
+1e8d 20401af3 call le_fifo_get_last_tx_ptr 
+1e8e 1a227e00 copy rega ,pdata 
+1e8f e7e08006 istore 1 ,contr 
+1e90 20600000 rtn 
+
+le_get_search_handle_start_end_common:
+1e91 1fecfe00 rshift8 pdata ,pdata 
+1e92 67e1099e store 2 ,mem_le_search_handle_start 
+1e93 efe10006 ifetch 2 ,contr 
+1e94 67e109a0 store 2 ,mem_le_search_handle_end 
+1e95 20600000 rtn 
+
+le_get_search_max_mtu_data:
+1e96 6fe14385 fetch 2 ,mem_le_remote_mtu 
+1e97 1fe0fffe increase -2 ,pdata 
+1e98 68494383 fetcht 2 ,mem_le_local_mtu 
+1e99 184085fe increase -2 ,temp 
+1e9a 20407d88 call not_greater_than 
+1e9b d84000f0 arg 240 ,temp 
+1e9c 20407d88 call not_greater_than 
+1e9d 20600000 rtn 
+
+le_get_search_att_type:
+1e9e 20407c29 call store_contr 
+1e9f d8a009a2 arg mem_le_search_att_type_length ,contw 
+
+le_get_search_common:
+1ea0 6fe143d7 fetch 2 ,mem_le_l2cap_size 
+1ea1 1fe0fffb increase -5 ,pdata 
+
+le_get_search_common2:
+1ea2 e7e08005 istore 1 ,contw 
+1ea3 1fe27200 copy pdata ,loopcnt 
+1ea4 20407c23 call get_contr 
+1ea5 20207c94 branch memcpy_fast 
+
+le_parse_writing_attribute_start:
+1ea6 6fe1016f fetch 2 ,mem_le_rxbuf_data_att_cid 
+1ea7 c1820000 rtnne le_l2cap_cid_att 
+1ea8 6fe0c438 fetch 1 ,mem_le_l2cap_att_states 
+1ea9 79207e01 set1 ble_l2cap_deal_with_continue_packet ,pdata 
+1eaa 67e0c438 store 1 ,mem_le_l2cap_att_states 
+1eab 6fe18171 fetch 3 ,mem_le_rxbuf_data_att_opcode 
+1eac 67e1c439 store 3 ,mem_le_att_opcode 
+1ead 7920000f set1 mark_old_packet ,mark 
+1eae c0091ec1 beq attop_write_request ,le_parse_attribute_write_request 
+1eaf c0291ec6 beq attop_write_command ,le_parse_attribute_write_command 
+1eb0 c00c1e33 beq attop_execute_write_request ,le_parse_att_execute_write_request 
+1eb1 c0011c75 beq attop_exchange_mtu_request ,le_parse_att_exchange_mtu_request 
+1eb2 c00f1e38 beq attop_handle_value_confirmation ,le_parse_handle_value_confirmation 
+1eb3 793f800f set0 mark_old_packet ,mark 
+
+le_clear_l2cap_att_states_deal_with_contiune_packet:
+1eb4 6fe0c438 fetch 1 ,mem_le_l2cap_att_states 
+1eb5 793ffe01 set0 ble_l2cap_deal_with_continue_packet ,pdata 
+1eb6 67e0c438 store 1 ,mem_le_l2cap_att_states 
+1eb7 20600000 rtn 
+
+le_parse_writing_attribute_continue:
+1eb8 6fe0c438 fetch 1 ,mem_le_l2cap_att_states 
+1eb9 c4008000 rtnbit0 ble_l2cap_deal_with_continue_packet 
+1eba 7920000f set1 mark_old_packet ,mark 
+1ebb 20401ed0 call le_parse_l2cap_continue_common 
+1ebc 20401ed6 call le_parse_attribute_check_complete_packet 
+1ebd 20541eb4 call le_clear_l2cap_att_states_deal_with_contiune_packet ,user 
+1ebe 6fe0c439 fetch 1 ,mem_le_att_opcode 
+1ebf c0091e00 beq attop_write_request ,le_send_att_write_response_check_auth 
+1ec0 20600000 rtn 
+
+le_parse_attribute_write_request:
+1ec1 20401ec6 call le_parse_attribute_write_command 
+1ec2 20201ec3 branch le_send_attribute_write_response_check_auth 
+
+le_send_attribute_write_response_check_auth:
+1ec3 20401ed6 call le_parse_attribute_check_complete_packet 
+1ec4 24740000 nrtn user 
+1ec5 20201e00 branch le_send_att_write_response_check_auth 
+
+le_parse_attribute_write_command:
+1ec6 20401ec9 call le_parse_attribute_check_complete_packet_init 
+1ec7 da200174 arg mem_le_rxbuf_data_att_write_payload ,rega 
+1ec8 202019b2 branch le_writeatt_cb 
+
+le_parse_attribute_check_complete_packet_init:
+1ec9 6fe0816c fetch 1 ,mem_le_rxbuf_data_att_write_length 
+1eca 1fe0a5f9 add pdata ,-7 ,regb 
+1ecb 1fe0fffc increase -4 ,pdata 
+1ecc 67e143d9 store 2 ,mem_le_packet_len_recved 
+1ecd 6849016d fetcht 2 ,mem_le_rxbuf_data_att_write_l2cap_length 
+1ece 604943d7 storet 2 ,mem_le_l2cap_size 
+1ecf 20600000 rtn 
+
+le_parse_l2cap_continue_common:
+1ed0 6a40816c fetchr regb ,1 ,mem_le_rxbuf_data_continue_length 
+1ed1 6fe143d9 fetch 2 ,mem_le_packet_len_recved 
+1ed2 9a408400 iadd regb ,temp 
+1ed3 604943d9 storet 2 ,mem_le_packet_len_recved 
+1ed4 da20016d arg mem_le_rxbuf_data_continue_payload ,rega 
+1ed5 202019b2 branch le_writeatt_cb 
+
+le_parse_attribute_check_complete_packet:
+1ed6 20407d94 call disable_user 
+1ed7 6fe143d9 fetch 2 ,mem_le_packet_len_recved 
+1ed8 684943d7 fetcht 2 ,mem_le_l2cap_size 
+1ed9 98467c00 isub temp ,null 
+1eda 24628000 nrtn zero 
+1edb 20207d92 branch enable_user 
+
+le_parse_signaling:
+1edc efe08006 ifetch 1 ,contr 
+1edd e8408006 ifetcht 1 ,contr 
+1ede e8410006 ifetcht 2 ,contr 
+1edf c0099ee1 beq l2cap_connection_parameter_update_response ,le_l2cap_parse_conn_parameter_update_rsp 
+1ee0 20600000 rtn 
+
+le_l2cap_parse_conn_parameter_update_rsp:
+1ee1 efe10006 ifetch 2 ,contr 
+1ee2 67e143de store 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+1ee3 70095b40 jam bt_evt_le_parse_conn_papa_update_rsp ,mem_fifo_temp 
+1ee4 202077a7 branch ui_ipc_send_event 
+
+le_l2cap_tx_update_req:
+1ee5 da20000c arg 0x0c ,rega 
+1ee6 da600012 arg l2cap_connection_parameter_update_request ,regc 
+1ee7 20401eed call le_fifo_malloc_tx_l2cap_signaling 
+1ee8 58000008 setarg 0x08 
+1ee9 e7e10005 istore 2 ,contw 
+1eea 6fe44375 fetch 8 ,mem_le_interval_min 
+1eeb e7e40005 istore 8 ,contw 
+1eec 20600000 rtn 
+
+le_fifo_malloc_tx_l2cap_signaling:
+1eed 20401ef5 call le_l2cap_update_signaling_identifier 
+1eee da400005 arg le_l2cap_cid_signal ,regb 
+1eef 20401ada call le_fifo_malloc_tx_l2cap 
+1ef0 1a627e00 copy regc ,pdata 
+1ef1 e7e08005 istore 1 ,contw 
+1ef2 6fe0c3dd fetch 1 ,mem_le_signaling_identifier 
+1ef3 e7e08005 istore 1 ,contw 
+1ef4 20600000 rtn 
+
+le_l2cap_update_signaling_identifier:
+1ef5 6fe0c3dd fetch 1 ,mem_le_signaling_identifier 
+1ef6 1fe0fe01 pincrease 1 
+1ef7 67e0c3dd store 1 ,mem_le_signaling_identifier 
+1ef8 c1800000 rtnne 0 
+
+le_l2cap_reset_signaling_identifier:
+1ef9 7043dd01 jam 1 ,mem_le_signaling_identifier 
+1efa 20600000 rtn 
+
+le_pairing_mode_init:
+1efb 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1efc c0001f0a beq le_pairing_mode_none ,le_set_no_pairing 
+1efd c0009f0d beq le_pairing_mode_lagacy_justwork ,le_set_pairing_mode_lagacy_just_work 
+1efe c0011f0f beq le_pairing_mode_lagacy_passkey ,le_set_pairing_mode_lagacy_passkey 
+1eff c0409f03 beq le_pairing_mode_secure_connect_justwork ,le_set_pairing_mode_secure_justwork 
+1f00 c0411f05 beq le_pairing_mode_secure_connect_numeric ,le_set_pairing_mode_secure_numeric 
+1f01 c0419f08 beq le_pairing_mode_secure_connect_passkey ,le_set_pairing_mode_secure_passkey 
+1f02 20600000 rtn 
+
+le_set_pairing_mode_secure_justwork:
+1f03 7043560d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+1f04 20201f0b branch le_set_noinputnooutput 
+
+le_set_pairing_mode_secure_numeric:
+1f05 7043560d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+1f06 70435401 jam flag_iocap_displayyesno ,mem_le_pres_iocap 
+1f07 20600000 rtn 
+
+le_set_pairing_mode_secure_passkey:
+1f08 7043560d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+1f09 20201f10 branch le_set_displayonly 
+
+le_set_no_pairing:
+1f0a 70435600 jam flag_le_no_bonding_no_mitm ,mem_le_pres_auth 
+
+le_set_noinputnooutput:
+1f0b 70435403 jam flag_iocap_noinputnooutput ,mem_le_pres_iocap 
+1f0c 20600000 rtn 
+
+le_set_pairing_mode_lagacy_just_work:
+1f0d 70435605 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+1f0e 20201f0b branch le_set_noinputnooutput 
+
+le_set_pairing_mode_lagacy_passkey:
+1f0f 70435605 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+
+le_set_displayonly:
+1f10 70435400 jam flag_iocap_displayonly ,mem_le_pres_iocap 
+1f11 20600000 rtn 
+
+le_secure_connection_enable:
+1f12 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+1f13 79207e00 set1 secure_connections_le_bit ,pdata 
+1f14 67e0c6bf store 1 ,mem_secure_connections_enable 
+1f15 20600000 rtn 
+
+le_secure_connection_disable:
+1f16 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+1f17 793ffe00 set0 secure_connections_le_bit ,pdata 
+1f18 67e0c6bf store 1 ,mem_secure_connections_enable 
+1f19 20600000 rtn 
+
+le_parse_smp:
+1f1a efe08006 ifetch 1 ,contr 
+1f1b c0009f2e beq smp_pairing_request ,le_parse_smp_pairing_request 
+1f1c c0019f55 beq smp_pairing_confirm ,le_parse_smp_pairing_confirm 
+1f1d c0021f76 beq smp_pairing_random ,le_parse_smp_pairing_random 
+1f1e c0029f83 beq smp_pairing_failed ,le_parse_smp_pairing_failed 
+1f1f c0039feb beq smp_master_identification ,le_parse_smp_master_identification 
+1f20 c0041fd7 beq smp_identity_information ,le_parse_smp_identity_information 
+1f21 c0049fe7 beq smp_identity_address_information ,le_parse_smp_identity_address_information 
+1f22 c0051feb beq smp_signing_information ,le_parse_smp_signing_information 
+1f23 c0059feb beq smp_security_request ,le_parse_smp_security_request 
+1f24 c0061fec beq smp_pairing_public_key ,le_parse_smp_public_key 
+1f25 c0069ff1 beq smp_pairing_dhkey_check ,le_parse_smp_dhkey_check 
+1f26 20600000 rtn 
+
+le_send_smp_security_request:
+1f27 18002202 force 2 ,rega 
+1f28 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1f29 5800000b setarg smp_security_request 
+1f2a e7e08005 istore 1 ,contw 
+1f2b 6fe0c356 fetch 1 ,mem_le_pres_auth 
+1f2c e7e08005 istore 1 ,contw 
+1f2d 20600000 rtn 
+
+le_parse_smp_pairing_request:
+1f2e 67e0c34c store 1 ,mem_le_preq 
+1f2f efe30006 ifetch 6 ,contr 
+1f30 e7e30005 istore 6 ,contw 
+1f31 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1f32 c0001f88 beq le_pairing_mode_none ,le_smp_pairing_fail_reason_not_support_pairing 
+1f33 20401f50 call le_send_smp_pairing_response 
+1f34 6fe0c6bd fetch 1 ,mem_sc_only_mode 
+1f35 203a1f3a branch le_parse_smp_pairing_request2 ,blank 
+1f36 6fe0c34f fetch 1 ,mem_le_preq_auth 
+1f37 c301b254 bbit0 le_auth_secure_connection_pairing_bit ,app_ble_disconnect 
+1f38 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1f39 c303b254 bbit0 le_pairing_mode_secure_connect_bit ,app_ble_disconnect 
+
+le_parse_smp_pairing_request2:
+1f3a 70439e03 jam flag_le_pairing_rcv_pairing_req ,mem_le_pairing_state 
+1f3b 6fe0c34d fetch 1 ,mem_le_preq_iocap 
+1f3c c0001f42 beq flag_iocap_displayonly ,le_set_tk_0 
+1f3d c0009f42 beq flag_iocap_displayyesno ,le_set_tk_0 
+1f3e c0019f42 beq flag_iocap_noinputnooutput ,le_set_tk_0 
+1f3f 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1f40 c0011f45 beq le_pairing_mode_lagacy_passkey ,le_parse_smp_pairing_req_passkey 
+1f41 c1418000 rtneq le_pairing_mode_secure_connect_passkey 
+
+le_set_tk_0:
+1f42 dfe00000 arg 0 ,pdata 
+1f43 67e243a1 store 4 ,mem_le_tk 
+1f44 20600000 rtn 
+
+le_parse_smp_pairing_req_passkey:
+1f45 6fe0c3c3 fetch 1 ,mem_le_configuration 
+1f46 c2801f4e bbit1 bit_ble_passkey_fixed_key ,le_parse_smp_pairing_req_fixed_passkey 
+
+le_genernate_tk:
+1f47 da2043a1 arg mem_le_tk ,rega 
+1f48 1a220a00 copy rega ,contw 
+1f49 df200003 arg 3 ,loopcnt 
+1f4a 2040594f call generate_random_loop 
+1f4b 6fe143a3 fetch 2 ,mem_le_tk + 2 
+1f4c 1fe17e07 and_into 0x7 ,pdata 
+1f4d 67e143a3 store 2 ,mem_le_tk + 2 
+
+le_parse_smp_pairing_req_fixed_passkey:
+1f4e 70095b34 jam bt_evt_le_tk_generate ,mem_fifo_temp 
+1f4f 202077a7 branch ui_ipc_send_event 
+
+le_send_smp_pairing_response:
+1f50 18002207 force 7 ,rega 
+1f51 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1f52 6fe3c353 fetch 7 ,mem_le_pres 
+1f53 e7e38005 istore 7 ,contw 
+1f54 20600000 rtn 
+
+le_parse_smp_pairing_confirm:
+1f55 70439e05 jam flag_le_pairing_receive_pairing_confirm ,mem_le_pairing_state 
+1f56 d8a0432a arg mem_le_rconfirm ,contw 
+1f57 20407c4c call memcpy16 
+1f58 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1f59 c0419f5d beq le_pairing_mode_secure_connect_passkey ,le_parse_smp_pairing_confirm_secure_passkey 
+1f5a c0021f60 beq le_pairing_mode_lagacy_passkey_res_input ,le_parse_smp_pairing_confirm_passkey_res_input 
+1f5b c0421f62 beq le_pairing_mode_secure_connect_passkey_res_input ,le_parse_smp_pairing_confirm_sc_passkey_res_input 
+1f5c 20201f65 branch le_send_smp_pairing_confirm 
+
+le_parse_smp_pairing_confirm_secure_passkey:
+1f5d 70439b02 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+1f5e 70439c08 jam le_sc_stat_passkey_wait_confirm ,mem_le_secure_connect_state 
+1f5f 20600000 rtn 
+
+le_parse_smp_pairing_confirm_passkey_res_input:
+1f60 70095b43 jam bt_evt_le_get_passkey ,mem_fifo_temp 
+1f61 202077a7 branch ui_ipc_send_event 
+
+le_parse_smp_pairing_confirm_sc_passkey_res_input:
+1f62 6fe243a1 fetch 4 ,mem_le_tk 
+1f63 203a1f60 branch le_parse_smp_pairing_confirm_passkey_res_input ,blank 
+1f64 20201f5d branch le_parse_smp_pairing_confirm_secure_passkey 
+
+le_send_smp_pairing_confirm:
+1f65 70439e06 jam flag_le_pairing_send_pairing_confirm ,mem_le_pairing_state 
+1f66 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1f67 c2839f6e bbit1 le_pairing_mode_secure_connect_bit ,le_send_smp_pairing_confirm_sc 
+1f68 20406b5c call generate_confirm 
+1f69 18002211 force 17 ,rega 
+1f6a 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1f6b 58000003 setarg smp_pairing_confirm 
+1f6c e7e08005 istore 1 ,contw 
+1f6d 20206d07 branch store_aes_result 
+
+le_send_smp_pairing_confirm_sc:
+1f6e d8a0433a arg mem_le_srand ,contw 
+1f6f 2040594e call generate_random 
+1f70 20406985 call function_f4_cb 
+1f71 18002211 force 17 ,rega 
+1f72 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1f73 58000003 setarg smp_pairing_confirm 
+1f74 e7e08005 istore 1 ,contw 
+1f75 202069c1 branch load_inverse_result 
+
+le_parse_smp_pairing_random:
+1f76 18c22200 copy contr ,rega 
+1f77 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1f78 c2839f8a bbit1 le_pairing_mode_secure_connect_bit ,le_parse_smp_pairing_random_sc 
+1f79 1a220c00 copy rega ,contr 
+1f7a 20406b54 call authenticate_rconfirm 
+1f7b 20229f9f branch le_parse_smp_pairing_random_success ,zero 
+
+le_send_pairing_confirm_value_failed:
+1f7c 7002d904 jam pairing_failed_confirm_value_failed ,mem_le_ll_pairing_fail_reason 
+
+le_send_pairing_failed:
+1f7d 18002202 force 2 ,rega 
+1f7e 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1f7f 58000005 setarg smp_pairing_failed 
+1f80 e7e08005 istore 1 ,contw 
+1f81 6fe082d9 fetch 1 ,mem_le_ll_pairing_fail_reason 
+1f82 e7e08005 istore 1 ,contw 
+
+le_parse_smp_pairing_failed:
+1f83 18000e0a force smp_pairing_timer ,queue 
+1f84 20407ca7 call timer_stop 
+1f85 70439e00 jam flag_le_pairing_null ,mem_le_pairing_state 
+1f86 70095b30 jam bt_evt_le_pairing_fail ,mem_fifo_temp 
+1f87 202077a7 branch ui_ipc_send_event 
+
+le_smp_pairing_fail_reason_not_support_pairing:
+1f88 7002d905 jam pairing_failed_pairing_not_supported ,mem_le_ll_pairing_fail_reason 
+1f89 20201f7d branch le_send_pairing_failed 
+
+le_parse_smp_pairing_random_sc:
+1f8a d8a00277 arg mem_le_mrand ,contw 
+1f8b 1a220c00 copy rega ,contr 
+1f8c 20407c4c call memcpy16 
+1f8d 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1f8e c0419f96 beq le_pairing_mode_secure_connect_passkey ,le_parse_smp_pairing_random_sc_passkey 
+1f8f c0421f96 beq le_pairing_mode_secure_connect_passkey_res_input ,le_parse_smp_pairing_random_sc_passkey 
+1f90 2040690f call function_g2 
+1f91 20401fa4 call le_send_smp_pairing_random 
+1f92 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+1f93 c1c10000 rtnne le_pairing_mode_secure_connect_numeric 
+1f94 70095b3b jam bt_evt_le_gkey_generate ,mem_fifo_temp 
+1f95 202077a7 branch ui_ipc_send_event 
+
+le_parse_smp_pairing_random_sc_passkey:
+1f96 2040697a call function_f4_ca 
+1f97 d8a009be arg mem_aes_cmac_temp ,contw 
+1f98 204069c1 call load_inverse_result 
+1f99 da2009be arg mem_aes_cmac_temp ,rega 
+1f9a da40432a arg mem_le_rconfirm ,regb 
+1f9b df200010 arg 16 ,loopcnt 
+1f9c 20407d33 call string_compare 
+1f9d 24229f7c nbranch le_send_pairing_confirm_value_failed ,zero 
+1f9e 20201fa4 branch le_send_smp_pairing_random 
+
+le_parse_smp_pairing_random_success:
+1f9f 20406b50 call generate_stk 
+1fa0 70095b31 jam bt_evt_le_pairing_success ,mem_fifo_temp 
+1fa1 204077a7 call ui_ipc_send_event 
+1fa2 70432901 jam 1 ,mem_ltk_exists 
+1fa3 70439e09 jam flag_le_pairing_after_auth ,mem_le_pairing_state 
+
+le_send_smp_pairing_random:
+1fa4 18002211 force 17 ,rega 
+1fa5 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1fa6 58000004 setarg smp_pairing_random 
+1fa7 e7e08005 istore 1 ,contw 
+1fa8 d8c0433a arg mem_le_srand ,contr 
+1fa9 20207c4c branch memcpy16 
+
+le_send_smp_encryption_information:
+1faa 18002211 force 17 ,rega 
+1fab 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1fac 58000006 setarg smp_encryption_information 
+1fad e7e08005 istore 1 ,contw 
+1fae 6fe0c3c3 fetch 1 ,mem_le_configuration 
+1faf c2809fb2 bbit1 bit_ble_pairing_fixed_ltk ,le_send_fixed_ltk 
+1fb0 d8c04319 arg mem_le_ltk ,contr 
+1fb1 20207c4c branch memcpy16 
+
+le_send_fixed_ltk:
+1fb2 d8c043c4 arg mem_le_fixed_ltk ,contr 
+1fb3 20207c4c branch memcpy16 
+
+le_send_smp_master_identification:
+1fb4 d8a043a5 arg mem_le_ediv ,contw 
+1fb5 1800720a force 10 ,loopcnt 
+1fb6 2040594f call generate_random_loop 
+1fb7 1800220b force 11 ,rega 
+1fb8 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1fb9 58000007 setarg smp_master_identification 
+1fba e7e08005 istore 1 ,contw 
+1fbb 6fe143a5 fetch 2 ,mem_le_ediv 
+1fbc e7e10005 istore 2 ,contw 
+1fbd 6fe443a7 fetch 8 ,mem_le_rand 
+1fbe e7e40005 istore 8 ,contw 
+1fbf 20600000 rtn 
+
+le_send_smp_identity_information:
+1fc0 18002211 force 17 ,rega 
+1fc1 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1fc2 58000008 setarg smp_identity_information 
+1fc3 e7e08005 istore 1 ,contw 
+1fc4 58000000 setarg 0 
+1fc5 e7e40005 istore 8 ,contw 
+1fc6 e7e40005 istore 8 ,contw 
+1fc7 20600000 rtn 
+
+le_send_smp_identity_address_information:
+1fc8 18002208 force 8 ,rega 
+1fc9 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1fca 58000009 setarg smp_identity_address_information 
+1fcb e7e08005 istore 1 ,contw 
+1fcc 6fe0c374 fetch 1 ,mem_le_conn_own_addr_type 
+1fcd e7e08005 istore 1 ,contw 
+1fce 6fe3437d fetch 6 ,mem_le_lap 
+1fcf e7e30005 istore 6 ,contw 
+1fd0 20600000 rtn 
+
+le_send_pairing_fail_unspecified_reason:
+1fd1 7002d908 jam pairing_failed_unspecified_reason ,mem_le_ll_pairing_fail_reason 
+1fd2 20201f7d branch le_send_pairing_failed 
+
+le_check_init_key_distribution:
+1fd3 6fe0c358 fetch 1 ,mem_le_pres_init_key_distribution 
+1fd4 6848c358 fetcht 1 ,mem_le_pres_init_key_distribution 
+1fd5 98417e00 iand temp ,pdata 
+1fd6 20600000 rtn 
+
+le_parse_smp_identity_information:
+1fd7 d8a043af arg mem_le_irk ,contw 
+1fd8 20407c4c call memcpy16 
+1fd9 20401fd3 call le_check_init_key_distribution 
+1fda 2fec0001 isolate0 le_initator_irk_bit ,pdata 
+1fdb 20209fd1 branch le_send_pairing_fail_unspecified_reason ,true 
+1fdc 6fe0c09a fetch 1 ,mem_device_option 
+1fdd c1850000 rtnne dvc_op_module 
+1fde 20401fe1 call le_check_master_addr_type 
+1fdf 24740000 nrtn user 
+1fe0 20203262 branch app_ble_store_reconn_info 
+
+le_check_master_addr_type:
+1fe1 20407d94 call disable_user 
+1fe2 6fe0c36d fetch 1 ,mem_le_conn_peer_addr_type 
+1fe3 c1000000 rtneq master_public_addr 
+1fe4 6fe0c351 fetch 1 ,mem_le_preq_init_key_distribution 
+1fe5 c4008000 rtnbit0 le_initator_irk_bit 
+1fe6 20207d92 branch enable_user 
+
+le_parse_smp_identity_address_information:
+1fe7 20401fd3 call le_check_init_key_distribution 
+1fe8 2fec0001 isolate0 le_initator_irk_bit ,pdata 
+1fe9 20209fd1 branch le_send_pairing_fail_unspecified_reason ,true 
+1fea 20600000 rtn 
+
+le_parse_smp_master_identification:
+
+le_parse_smp_signing_information:
+
+le_parse_smp_security_request:
+1feb 20600000 rtn 
+
+le_parse_smp_public_key:
+1fec d8a00880 arg mem_le_pubkey_remote_x_256 ,contw 
+1fed 20407c3d call memcpy64 
+1fee 70439b02 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+1fef 70439c01 jam le_sc_stat_receive_public_key ,mem_le_secure_connect_state 
+1ff0 20600000 rtn 
+
+le_parse_smp_dhkey_check:
+1ff1 d8a00930 arg mem_sp_confirm_remote ,contw 
+1ff2 20407c4c call memcpy16 
+1ff3 70439c06 jam le_sc_stat_receive_dhkey ,mem_le_secure_connect_state 
+1ff4 70439b02 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+1ff5 20600000 rtn 
+
+le_send_smp_pairing_public_key:
+1ff6 18002241 force 65 ,rega 
+1ff7 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1ff8 5800000c setarg smp_pairing_public_key 
+1ff9 e7e08005 istore 1 ,contw 
+1ffa d8c046e3 arg mem_sc_pubkey_local_x_256 ,contr 
+1ffb 20207c3d branch memcpy64 
+
+le_send_smp_pairing_dhkey_check:
+1ffc 20406926 call function_f6_eb 
+1ffd 18002211 force 17 ,rega 
+1ffe 20402097 call le_fifo_malloc_tx_l2cap_smp 
+1fff 5800000d setarg smp_pairing_dhkey_check 
+2000 e7e08005 istore 1 ,contw 
+2001 202069c1 branch load_inverse_result 
+
+le_check_paring_time:
+2002 6fe0c39e fetch 1 ,mem_le_pairing_state 
+2003 c17f8000 rtneq flag_le_pairing_end 
+2004 d8400003 arg flag_le_pairing_rcv_pairing_req ,temp 
+2005 98467c00 isub temp ,null 
+2006 24610000 nrtn positive 
+2007 d8e0000a arg smp_pairing_timer ,queue 
+2008 20407cb6 call timer_check 
+2009 247a0000 nrtn blank 
+200a 20201fd1 branch le_send_pairing_fail_unspecified_reason 
+
+le_pairing_sm:
+200b 476b403a bpatchx patch3a_6 ,mem_patch3a 
+200c 20401b05 call le_fifo_check_nearly_full 
+200d 247a0000 nrtn blank 
+200e 6fe0c39e fetch 1 ,mem_le_pairing_state 
+200f c0002018 beq flag_le_pairing_null ,le_pairing_sm_null 
+2010 c000a01e beq flag_le_pairing_start ,le_pairing_sm_start 
+2011 c0012018 beq flag_le_pairing_send_recurity_req ,le_pairing_sm_send_sec_req 
+2012 c001a020 beq flag_le_pairing_rcv_pairing_req ,le_pairing_sm_rcv_pairing_req 
+2013 c004a024 beq flag_le_pairing_after_auth ,le_pairing_sm_after_auth 
+2014 c005a034 beq flag_le_paring_send_enc_information ,le_pairng_sm_send_enc_information 
+2015 c0062036 beq flag_le_paring_send_master_identification ,le_pairng_sm_send_master_indentification 
+2016 c006a03d beq flag_le_paring_send_indentity_information ,le_pairng_sm_send_indentity_information 
+2017 20600000 rtn 
+
+le_pairing_sm_null:
+
+le_pairing_sm_send_sec_req:
+2018 6fe0c39f fetch 1 ,mem_le_enc_state 
+2019 c1820000 rtnne flag_le_send_start_enc_rsp 
+201a 70439fff jam flag_le_enc_end ,mem_le_enc_state 
+201b 70439eff jam flag_le_pairing_end ,mem_le_pairing_state 
+201c 70095b3f jam bt_evt_le_reconnect_complete ,mem_fifo_temp 
+201d 202077a7 branch ui_ipc_send_event 
+
+le_pairing_sm_start:
+201e 70439e02 jam flag_le_pairing_send_recurity_req ,mem_le_pairing_state 
+201f 20201f27 branch le_send_smp_security_request 
+
+le_pairing_sm_rcv_pairing_req:
+2020 70439e04 jam flag_le_pairing_wait_stk_generation ,mem_le_pairing_state 
+2021 58017700 setarg timer_smp_pairing_timeout 
+2022 d8e0000a arg smp_pairing_timer ,queue 
+2023 20207ca8 branch timer_init 
+
+le_pairing_sm_after_auth:
+2024 6fe0c39f fetch 1 ,mem_le_enc_state 
+2025 c0022027 beq flag_le_send_start_enc_rsp ,le_pairing_sm_after_auth_start_enc 
+2026 20600000 rtn 
+
+le_pairing_sm_after_auth_start_enc:
+2027 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+2028 c283a032 bbit1 le_pairing_mode_secure_connect_bit ,le_pairing_sm_after_auth_start_enc_sc 
+2029 70439e0b jam flag_le_paring_send_enc_information ,mem_le_pairing_state 
+202a 20401faa call le_send_smp_encryption_information 
+
+le_pairing_sm_after_auth_start_enc_common:
+202b 70095b29 jam bt_evt_le_enc_info ,mem_fifo_temp 
+202c 204077a7 call ui_ipc_send_event 
+202d 6fe0c09a fetch 1 ,mem_device_option 
+202e c1850000 rtnne dvc_op_module 
+202f 20401fe1 call le_check_master_addr_type 
+2030 20740000 rtn user 
+2031 20203262 branch app_ble_store_reconn_info 
+
+le_pairing_sm_after_auth_start_enc_sc:
+2032 70439e0c jam flag_le_paring_send_master_identification ,mem_le_pairing_state 
+2033 2020202b branch le_pairing_sm_after_auth_start_enc_common 
+
+le_pairng_sm_send_enc_information:
+2034 70439e0c jam flag_le_paring_send_master_identification ,mem_le_pairing_state 
+2035 20201fb4 branch le_send_smp_master_identification 
+
+le_pairng_sm_send_master_indentification:
+2036 6fe0c352 fetch 1 ,mem_le_preq_resp_key_distribution 
+2037 6848c359 fetcht 1 ,mem_le_pres_resp_key_distribution 
+2038 98417e00 iand temp ,pdata 
+2039 2fec0001 isolate0 le_initator_irk_bit ,pdata 
+203a 2020a03f branch le_parse_start_enc_rsp_after_auth_end ,true 
+203b 70439e0d jam flag_le_paring_send_indentity_information ,mem_le_pairing_state 
+203c 20201fc0 branch le_send_smp_identity_information 
+
+le_pairng_sm_send_indentity_information:
+203d 20401fc8 call le_send_smp_identity_address_information 
+203e 2020203f branch le_parse_start_enc_rsp_after_auth_end 
+
+le_parse_start_enc_rsp_after_auth_end:
+203f 18000e0a force smp_pairing_timer ,queue 
+2040 20407ca7 call timer_stop 
+2041 70439fff jam flag_le_enc_end ,mem_le_enc_state 
+2042 70439eff jam flag_le_pairing_end ,mem_le_pairing_state 
+2043 70095b3e jam bt_evt_le_pairing_complete ,mem_fifo_temp 
+2044 202077a7 branch ui_ipc_send_event 
+
+le_secure_connect_sm:
+2045 476bc03a bpatchx patch3a_7 ,mem_patch3a 
+2046 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+2047 c4038000 rtnbit0 le_pairing_mode_secure_connect_bit 
+2048 6fe0c39b fetch 1 ,mem_le_secure_connect_flag 
+2049 c1810000 rtnne le_sp_flag_commit_256 
+204a 70439b00 jam sp_flag_standby ,mem_le_secure_connect_flag 
+204b 6fe0c39c fetch 1 ,mem_le_secure_connect_state 
+204c c000a08d beq le_sc_stat_receive_public_key ,le_sc_sm_receive_public_key 
+204d c0012094 beq le_sc_stat_wait_send_public_key ,le_sc_sm_wait_send_public_key 
+204e c001a085 beq le_sc_stat_send_public_key ,le_sc_sm_send_public_key 
+204f c003206a beq le_sc_stat_receive_dhkey ,le_sc_sm_receive_dhkey 
+2050 c003a061 beq le_sc_stat_wait_confirm_gkey ,le_sc_sm_wait_confirm_gkey 
+2051 c0042057 beq le_sc_stat_passkey_wait_confirm ,le_sc_sm_passkey_wait_confirm 
+2052 20600000 rtn 
+
+le_sc_state_clear:
+2053 70439b00 jam sp_flag_standby ,mem_le_secure_connect_flag 
+2054 70439c00 jam le_sc_stat_null ,mem_le_secure_connect_state 
+2055 70439d00 jam flag_le_sc_confrim_null ,mem_le_sc_confirm_gkey_flag 
+2056 20600000 rtn 
+
+le_sc_sm_passkey_wait_confirm:
+2057 6fe0c774 fetch 1 ,mem_authentication_passkey_times 
+2058 1fe20e00 copy pdata ,queue 
+2059 1fe0fe01 increase 1 ,pdata 
+205a 67e0c774 store 1 ,mem_authentication_passkey_times 
+205b 6fe243a1 fetch 4 ,mem_le_tk 
+205c afefffff qisolate1 pdata 
+205d 58000080 setarg 0x80 
+205e 7920fe00 setflag true ,0 ,pdata 
+205f 67e0c775 store 1 ,mem_passkey_1bit 
+2060 20202089 branch le_sc_sm_ready_send_pairing_confirm 
+
+le_sc_sm_wait_confirm_gkey:
+2061 6fe0c39d fetch 1 ,mem_le_sc_confirm_gkey_flag 
+2062 70439d00 jam flag_le_sc_confrim_null ,mem_le_sc_confirm_gkey_flag 
+2063 c000a066 beq flag_le_sc_confrim_gkey_ok ,le_sc_confirm_gkey_ok 
+2064 70439b02 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+2065 20600000 rtn 
+
+le_sc_confirm_gkey_ok:
+2066 70095b31 jam bt_evt_le_pairing_success ,mem_fifo_temp 
+2067 204077a7 call ui_ipc_send_event 
+2068 70439e09 jam flag_le_pairing_after_auth ,mem_le_pairing_state 
+2069 20201ffc branch le_send_smp_pairing_dhkey_check 
+
+le_sc_sm_receive_dhkey:
+206a 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+206b c001a06e beq sp_key_valid_256 ,le_dhkey_ready 
+206c 70439b02 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+206d 20600000 rtn 
+
+le_dhkey_ready:
+206e 2040694d call function_f5 
+206f 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+2070 c041a073 beq le_pairing_mode_secure_connect_passkey ,le_dhkey_ready_common 
+2071 c0422073 beq le_pairing_mode_secure_connect_passkey_res_input ,le_dhkey_ready_common 
+2072 20401f42 call le_set_tk_0 
+
+le_dhkey_ready_common:
+2073 2040693a call function_f6_ea 
+2074 da2009be arg mem_aes_cmac_temp ,rega 
+2075 da400930 arg mem_sp_confirm_remote ,regb 
+2076 df200010 arg 16 ,loopcnt 
+2077 20407d33 call string_compare 
+2078 2022a07b branch le_dhkey_check_ok ,zero 
+
+le_dhkey_check_fail:
+2079 7002d90b jam pairing_failed_dhkey_check_failed ,mem_le_ll_pairing_fail_reason 
+207a 20201f7d branch le_send_pairing_failed 
+
+le_dhkey_check_ok:
+207b 20406e23 call sp_calc_check_publickey_256 
+207c 2422a079 nbranch le_dhkey_check_fail ,zero 
+207d 70432901 jam 1 ,mem_ltk_exists 
+207e 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+207f c040a066 beq le_pairing_mode_secure_connect_justwork ,le_sc_confirm_gkey_ok 
+2080 c041a066 beq le_pairing_mode_secure_connect_passkey ,le_sc_confirm_gkey_ok 
+2081 c0422066 beq le_pairing_mode_secure_connect_passkey_res_input ,le_sc_confirm_gkey_ok 
+2082 70439b02 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+2083 70439c07 jam le_sc_stat_wait_confirm_gkey ,mem_le_secure_connect_state 
+2084 20600000 rtn 
+
+le_sc_sm_send_public_key:
+2085 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+2086 c041a08a beq le_pairing_mode_secure_connect_passkey ,le_sc_sm_send_public_key_passkey 
+2087 c042208a beq le_pairing_mode_secure_connect_passkey_res_input ,le_sc_sm_send_public_key_passkey 
+2088 70477500 jam 0 ,mem_passkey_1bit 
+
+le_sc_sm_ready_send_pairing_confirm:
+2089 20201f65 branch le_send_smp_pairing_confirm 
+
+le_sc_sm_send_public_key_passkey:
+208a 70477400 jam 0 ,mem_authentication_passkey_times 
+208b c1420000 rtneq le_pairing_mode_secure_connect_passkey_res_input 
+208c 20201f45 branch le_parse_smp_pairing_req_passkey 
+
+le_sc_sm_receive_public_key:
+208d 70439b02 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+208e 6fe0c6c2 fetch 1 ,mem_sc_local_key_invalid 
+208f c001a091 beq sp_key_valid_256 ,le_public_key_ready 
+2090 20600000 rtn 
+
+le_public_key_ready:
+2091 70439c02 jam le_sc_stat_wait_send_public_key ,mem_le_secure_connect_state 
+2092 70087b00 jam sp_key_invalid ,mem_sp_dhkey_invalid 
+2093 202074b7 branch sp_dhkey_calc_256 
+
+le_sc_sm_wait_send_public_key:
+2094 70439b02 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+2095 70439c03 jam le_sc_stat_send_public_key ,mem_le_secure_connect_state 
+2096 20201ff6 branch le_send_smp_pairing_public_key 
+
+le_fifo_malloc_tx_l2cap_smp:
+2097 18002406 force le_l2cap_cid_smp ,regb 
+2098 20201ada branch le_fifo_malloc_tx_l2cap 
+
+le_parse_ll:
+2099 6fe0816d fetch 1 ,mem_le_rxbuf_data_ll_opcode 
+209a c00020b0 beq ll_connection_update_ind ,le_parse_connection_update_ind 
+209b c000a0b8 beq ll_channel_map_ind ,le_parse_channel_map_ind 
+209c c00120c0 beq ll_terminate_ind ,le_parse_terminate_ind 
+209d c001a0c4 beq ll_enc_req ,le_parse_enc_req 
+209e c00220e3 beq ll_enc_rsp ,le_parse_enc_rsp 
+209f c002a0e8 beq ll_start_enc_req ,le_parse_start_enc_req 
+20a0 c00320ec beq ll_start_enc_rsp ,le_parse_start_enc_rsp 
+20a1 c003a0f1 beq ll_unknown_rsp ,le_parse_unknown_rsp 
+20a2 c00420f2 beq ll_feature_req ,le_parse_feature_req 
+20a3 c004a0f3 beq ll_feature_rsp ,le_parse_feature_rsp 
+20a4 c00520f4 beq ll_pause_enc_req ,le_parse_pause_enc_req 
+20a5 c005a0f8 beq ll_pause_enc_rsp ,le_parse_pause_enc_rsp 
+20a6 c00620f9 beq ll_version_ind ,le_parse_version_ind 
+20a7 c006a0fb beq ll_reject_ind ,le_parse_reject_ind 
+20a8 c00920fc beq ll_ping_req ,le_parse_ping_req 
+20a9 c009a0fd beq ll_ping_rsp ,le_parse_ping_rsp 
+20aa c00a20fe beq ll_length_req ,le_parse_length_req 
+20ab c00aa100 beq ll_length_rsp ,le_parse_length_rsp 
+20ac c00b210b beq ll_phy_req ,le_parse_phy_req 
+20ad c00c210c beq ll_phy_update_ind ,le_parse_phy_update_ind 
+20ae 6a60816d fetchr regc ,1 ,mem_le_rxbuf_data_ll_opcode 
+20af 2020212f branch le_send_unknown_rsp 
+
+le_parse_connection_update_ind:
+20b0 efe48006 ifetch 9 ,contr 
+20b1 67e482be store 9 ,mem_le_new_param 
+20b2 efe10006 ifetch 2 ,contr 
+20b3 67e102a7 store 2 ,mem_le_instant 
+20b4 6fe08287 fetch 1 ,mem_le_state 
+20b5 79207e05 set1 lestate_update_param ,pdata 
+20b6 67e08287 store 1 ,mem_le_state 
+20b7 20600000 rtn 
+
+le_parse_channel_map_ind:
+20b8 efe28006 ifetch 5 ,contr 
+20b9 67e282be store 5 ,mem_le_new_map 
+20ba efe10006 ifetch 2 ,contr 
+20bb 67e102a7 store 2 ,mem_le_instant 
+
+le_update_map_enable:
+20bc 6fe08287 fetch 1 ,mem_le_state 
+20bd 79207e06 set1 lestate_update_map ,pdata 
+20be 67e08287 store 1 ,mem_le_state 
+20bf 20600000 rtn 
+
+le_parse_terminate_ind:
+20c0 58000014 setarg 20 
+20c1 67e102b5 store 2 ,mem_le_superto 
+20c2 67e14397 store 2 ,mem_le_init_superto 
+20c3 20600000 rtn 
+
+le_parse_enc_req:
+20c4 efe40006 ifetch 8 ,contr 
+20c5 67e443a7 store 8 ,mem_le_rand 
+20c6 efe10006 ifetch 2 ,contr 
+20c7 67e143a5 store 2 ,mem_le_ediv 
+20c8 efe40006 ifetch 8 ,contr 
+20c9 67e44387 store 8 ,mem_le_skdm 
+20ca efe20006 ifetch 4 ,contr 
+20cb 67e246b1 store 4 ,mem_ccm_ivm 
+20cc 2040211c call le_send_enc_rsp 
+20cd 476c403b bpatchx patch3b_0 ,mem_patch3b 
+20ce 6fe0c39e fetch 1 ,mem_le_pairing_state 
+20cf c004a0d6 beq flag_le_pairing_after_auth ,le_parse_enc_req_after_auth 
+20d0 6fe0c3c3 fetch 1 ,mem_le_configuration 
+20d1 c280a0d9 bbit1 bit_ble_pairing_fixed_ltk ,le_parse_enc_req_fixed_ltk 
+20d2 6fe0c48e fetch 1 ,mem_nv_data_number 
+20d3 245a5f3c ncall load_device_list_mode_4 ,blank 
+20d4 6fe0c329 fetch 1 ,mem_ltk_exists 
+20d5 c00020de beq 0 ,le_ltk_lost 
+
+le_parse_enc_req_after_auth:
+20d6 70439f01 jam flag_le_rcv_enc_start ,mem_le_enc_state 
+20d7 2040212a call le_send_start_enc_req 
+20d8 20206b62 branch generate_sk 
+
+le_parse_enc_req_fixed_ltk:
+20d9 70432901 jam 1 ,mem_ltk_exists 
+20da d8c043c4 arg mem_le_fixed_ltk ,contr 
+20db d8a04319 arg mem_le_ltk ,contw 
+20dc 20407c4c call memcpy16 
+20dd 202020d6 branch le_parse_enc_req_after_auth 
+
+le_ltk_lost:
+20de 476cc03b bpatchx patch3b_1 ,mem_patch3b 
+20df 70439f00 jam flag_le_enc_null ,mem_le_enc_state 
+20e0 70439e00 jam flag_le_enc_null ,mem_le_pairing_state 
+20e1 70095b41 jam bt_evt_le_ltk_lost ,mem_fifo_temp 
+20e2 202077a7 branch ui_ipc_send_event 
+
+le_parse_enc_rsp:
+20e3 efe40006 ifetch 8 ,contr 
+20e4 67e4438f store 8 ,mem_le_skds 
+20e5 efe20006 ifetch 4 ,contr 
+20e6 67e246b5 store 4 ,mem_ccm_ivs 
+20e7 20206b62 branch generate_sk 
+
+le_parse_start_enc_req:
+20e8 6fe08287 fetch 1 ,mem_le_state 
+20e9 79207e04 set1 lestate_encryption ,pdata 
+20ea 67e08287 store 1 ,mem_le_state 
+20eb 20600000 rtn 
+
+le_parse_start_enc_rsp:
+20ec 20748000 rtn master 
+20ed 70095b32 jam bt_evt_le_start_enc ,mem_fifo_temp 
+20ee 204077a7 call ui_ipc_send_event 
+20ef 70439f04 jam flag_le_send_start_enc_rsp ,mem_le_enc_state 
+20f0 2020212d branch le_send_start_enc_rsp 
+
+le_parse_unknown_rsp:
+20f1 20600000 rtn 
+
+le_parse_feature_req:
+20f2 20202134 branch le_send_feature_rsp 
+
+le_parse_feature_rsp:
+20f3 20600000 rtn 
+
+le_parse_pause_enc_req:
+20f4 70439f02 jam flag_le_enc_pause ,mem_le_enc_state 
+20f5 2040213b call le_send_pause_enc_rsp 
+20f6 70095b33 jam bt_evt_le_pause_enc ,mem_fifo_temp 
+20f7 202077a7 branch ui_ipc_send_event 
+
+le_parse_pause_enc_rsp:
+20f8 20600000 rtn 
+
+le_parse_version_ind:
+20f9 20748000 rtn master 
+20fa 2020213d branch le_send_version_ind 
+
+le_parse_reject_ind:
+20fb 20600000 rtn 
+
+le_parse_ping_req:
+20fc 20202149 branch le_send_ping_rsp 
+
+le_parse_ping_rsp:
+20fd 20600000 rtn 
+
+le_parse_length_req:
+20fe 20402100 call le_parse_length_rsp 
+20ff 2020214d branch le_send_data_length_res 
+
+le_parse_length_rsp:
+2100 efe40006 ifetch 8 ,contr 
+2101 67e44447 store 8 ,mem_remote_rx_max_octets 
+2102 6fe14447 fetch 2 ,mem_remote_rx_max_octets 
+2103 68494453 fetcht 2 ,mem_local_tx_max_octets 
+2104 20407d88 call not_greater_than 
+2105 67e14447 store 2 ,mem_remote_rx_max_octets 
+2106 6fe1444b fetch 2 ,mem_remote_tx_max_octets 
+2107 6849444f fetcht 2 ,mem_local_rx_max_octets 
+2108 20407d88 call not_greater_than 
+2109 67e1444b store 2 ,mem_remote_tx_max_octets 
+210a 20600000 rtn 
+
+le_parse_phy_req:
+210b 20202153 branch le_send_phy_rsp 
+
+le_parse_phy_update_ind:
+210c efe10006 ifetch 2 ,contr 
+210d 67e102be store 2 ,mem_le_new_m2s_phy 
+210e efe10006 ifetch 2 ,contr 
+210f 67e102a7 store 2 ,mem_le_instant 
+2110 207a0000 rtn blank 
+2111 6fe08287 fetch 1 ,mem_le_state 
+2112 79207e07 set1 lestate_update_phy ,pdata 
+2113 67e08287 store 1 ,mem_le_state 
+2114 20600000 rtn 
+
+le_send_terminate_ind_user_terminated:
+2115 da600013 arg error_remote_user_terminated_connection ,regc 
+
+le_send_terminate_ind:
+2116 da200002 arg 2 ,rega 
+2117 da400002 arg ll_terminate_ind ,regb 
+2118 20401ad5 call le_fifo_malloc_tx_ll 
+2119 1a627e00 copy regc ,pdata 
+211a e7e08005 istore 1 ,contw 
+211b 20600000 rtn 
+
+le_send_enc_rsp:
+211c d8a0438f arg mem_le_skds ,contw 
+211d 18007208 force 8 ,loopcnt 
+211e 2040594f call generate_random_loop 
+211f d8a046b5 arg mem_ccm_ivs ,contw 
+2120 18007204 force 4 ,loopcnt 
+2121 2040594f call generate_random_loop 
+2122 da20000d arg 13 ,rega 
+2123 da400004 arg ll_enc_rsp ,regb 
+2124 20401ad5 call le_fifo_malloc_tx_ll 
+2125 6fe4438f fetch 8 ,mem_le_skds 
+2126 e7e40005 istore 8 ,contw 
+2127 6fe246b5 fetch 4 ,mem_ccm_ivs 
+2128 e7e20005 istore 4 ,contw 
+2129 20600000 rtn 
+
+le_send_start_enc_req:
+212a 70439f05 jam flag_le_send_start_enc_req ,mem_le_enc_state 
+212b da400005 arg ll_start_enc_req ,regb 
+212c 2020215d branch le_send_ll_one_lenth 
+
+le_send_start_enc_rsp:
+212d da400006 arg ll_start_enc_rsp ,regb 
+212e 2020215d branch le_send_ll_one_lenth 
+
+le_send_unknown_rsp:
+212f da200002 arg 2 ,rega 
+2130 da400007 arg ll_unknown_rsp ,regb 
+2131 20401ad5 call le_fifo_malloc_tx_ll 
+2132 e2608005 istorer regc ,1 ,contw 
+2133 20600000 rtn 
+
+le_send_feature_rsp:
+2134 da200009 arg 9 ,rega 
+2135 da400009 arg ll_feature_rsp ,regb 
+2136 20401ad5 call le_fifo_malloc_tx_ll 
+2137 6fe4443d fetch 8 ,mem_le_local_feature 
+2138 1fe1fe01 or pdata ,fun_ll_feature_le_encryption ,pdata 
+2139 e7e40005 istore 8 ,contw 
+213a 20600000 rtn 
+
+le_send_pause_enc_rsp:
+213b da40000b arg ll_pause_enc_rsp ,regb 
+213c 2020215d branch le_send_ll_one_lenth 
+
+le_send_version_ind:
+213d da200006 arg 6 ,rega 
+213e da40000c arg ll_version_ind ,regb 
+213f 20401ad5 call le_fifo_malloc_tx_ll 
+2140 6fe2c5fe fetch 5 ,mem_lmp_version 
+2141 e7e28005 istore 5 ,contw 
+2142 20600000 rtn 
+
+le_send_reject_ind:
+2143 da200002 arg 2 ,rega 
+2144 da40000d arg ll_reject_ind ,regb 
+2145 20401ad5 call le_fifo_malloc_tx_ll 
+2146 58000006 setarg le_err_pin_or_key_missing 
+2147 e7e08005 istore 1 ,contw 
+2148 20600000 rtn 
+
+le_send_ping_rsp:
+2149 da400013 arg ll_ping_rsp ,regb 
+214a 2020215d branch le_send_ll_one_lenth 
+
+le_send_data_length_req:
+214b da400014 arg ll_length_req ,regb 
+214c 2020214e branch le_send_data_length 
+
+le_send_data_length_res:
+214d da400015 arg ll_length_rsp ,regb 
+
+le_send_data_length:
+214e da200009 arg 9 ,rega 
+214f 20401ad5 call le_fifo_malloc_tx_ll 
+2150 6fe4444f fetch 8 ,mem_local_rx_max_octets 
+2151 e7e40005 istore 8 ,contw 
+2152 20600000 rtn 
+
+le_send_phy_rsp:
+2153 da200003 arg 3 ,rega 
+2154 da400017 arg ll_phy_rsp ,regb 
+2155 20401ad5 call le_fifo_malloc_tx_ll 
+2156 6fe0c445 fetch 1 ,mem_le_tx_phys 
+2157 1fe17e07 and pdata ,0x07 ,pdata 
+2158 e7e08005 istore 1 ,contw 
+2159 6fe0c446 fetch 1 ,mem_le_rx_phys 
+215a 1fe17e07 and pdata ,0x07 ,pdata 
+215b e7e08005 istore 1 ,contw 
+215c 20600000 rtn 
+
+le_send_ll_one_lenth:
+215d da200001 arg 1 ,rega 
+215e 20201ad5 branch le_fifo_malloc_tx_ll 
+
+g24_dispatch:
+215f 476d403b bpatchx patch3b_2 ,mem_patch3b 
+2160 c513a3c3 bmark1 mark_24g_rxmode ,g24_receive_dispatch 
+2161 20202605 branch g24_transmit_dispatch 
+
+g24_prep:
+2162 7844fc00 disable enable_crc 
+2163 7843fc00 disable enable_white 
+2164 58555555 setarg 0x555555 
+2165 98001e00 iforce crc24_init 
+2166 6fe0c841 fetch 1 ,mem_24g_ch 
+2167 20201650 branch le_prep + 5 
+
+g24_receive_packet:
+2168 476dc03b bpatchx patch3b_3 ,mem_patch3b 
+2169 6fe0c86b fetch 1 ,mem_24g_rx_phy 
+216a 20401618 call le_enable_phy_by_pdata 
+216b 6fe24843 fetch 4 ,mem_24g_addr 
+216c 98001200 iforce access 
+216d 204010ac call calc_mod_value_scale_le 
+216e 2040115d call set_sync_on 
+216f 6848c841 fetcht 1 ,mem_24g_ch 
+2170 20401655 call le_rf_rx_enable 
+
+g24_receive_rxon:
+2171 20402162 call g24_prep 
+2172 c597a176 bmark0 mark_ble_lr ,g24_receive_nolr 
+2173 783cfc00 pulse dewhiten_code_calc 
+2174 2000001e nop 30 
+2175 20402162 call g24_prep 
+
+g24_receive_nolr:
+2176 7857fc00 disable user3 
+2177 7826fc00 enable decode_fec0 
+2178 7830fc00 enable is_rx 
+2179 78507c00 disable is_tx 
+217a 78287c00 enable swfine 
+217b 6fe1483f fetch 2 ,mem_24g_rx_window 
+217c 98003600 iforce stop_watch 
+217d 37c18400 correlate null ,timeout 
+217e 242c21d0 nbranch g24_sync_timeout ,sync 
+217f 20404bd6 call rf_debug_rx_sync_line 
+2180 c517a185 bmark1 mark_ble_lr ,g24_receive_skip_fec1 
+2181 6fe0c87e fetch 1 ,mem_24g_disable_fec1 
+2182 243a2185 nbranch g24_receive_skip_fec1 ,blank 
+2183 7846fc00 disable decode_fec0 
+2184 7825fc00 enable decode_fec1 
+
+g24_receive_skip_fec1:
+2185 7823fc00 enable enable_white 
+2186 7824fc00 enable enable_crc 
+2187 204021cd call g24_receive_byte 
+2188 67e0c861 store 1 ,mem_24g_get_syncword_crc8 
+2189 6848c860 fetcht 1 ,mem_24g_syncword_crc8 
+218a 98467c00 isub temp ,null 
+218b 2422a1d2 nbranch g24_end_of_packet ,zero 
+218c 476e403b bpatchx patch3b_4 ,mem_patch3b 
+218d 7858fc00 disable user7 
+218e 280ffe2f isolate1 mark_ble_lr ,mark 
+218f 2040a1bf call g24_lr_receive_pdu_len ,true 
+2190 2038a1d2 branch g24_end_of_packet ,user7 
+2191 204021cd call g24_receive_byte 
+2192 67e0c7ab store 1 ,mem_24g_rxbuf 
+2193 c513a198 bmark1 mark_24g_rxmode ,g24_receive_skip 
+2194 6fe0c7ab fetch 1 ,mem_24g_rxbuf 
+2195 6848c83d fetcht 1 ,mem_24g_data_type 
+2196 a8400e00 icompare bits_data ,temp 
+2197 2420a1d2 nbranch g24_end_of_packet ,true 
+
+g24_receive_skip:
+2198 204021cd call g24_receive_byte 
+2199 280ffe2f isolate1 mark_ble_lr ,mark 
+219a 2040a1c8 call g24_lr_receive_payload_len ,true 
+219b e7e08005 istore 1 ,contw 
+219c 1fe97e00 rshift3 pdata ,pdata 
+219d 1fe67c1f sub pdata ,0x1f ,null 
+219e 242121d2 nbranch g24_end_of_packet ,positive 
+219f 1fe27200 copy pdata ,loopcnt 
+21a0 2022a1a4 branch g24rx_nopayload ,zero 
+
+g24rx_loop:
+21a1 204021cd call g24_receive_byte 
+21a2 e7e08005 istore 1 ,contw 
+21a3 c20021a1 loop g24rx_loop 
+
+g24rx_nopayload:
+21a4 c513a1a9 bmark1 mark_24g_rxmode ,g24_receive_skip_rssi 
+21a5 18a22200 copy contw ,rega 
+21a6 204021cd call g24_receive_byte 
+21a7 67e0c886 store 1 ,mem_rssi_hex_received 
+21a8 1a220a00 copy rega ,contw 
+
+g24_receive_skip_rssi:
+21a9 09800018 parse demod ,bucket ,24 
+21aa 1fef7e00 rshift32 pdata ,pdata 
+21ab 1ff17e00 rshift16 pdata ,pdata 
+21ac e7e18005 istore 3 ,contw 
+21ad 6fe0c87e fetch 1 ,mem_24g_disable_fec1 
+21ae 243a21bd nbranch g24_receive_skip_disable_fec1 ,blank 
+21af 7845fc00 disable decode_fec1 
+
+g24_receive_skip_next:
+21b0 280ffe27 isolate1 mark_24g_rxmode ,mark 
+21b1 2040a5c8 call save_rssi_dec ,true 
+21b2 202321d2 branch g24_end_of_packet ,crc_failed 
+21b3 20404bd5 call rf_debug_rx_crc_line 
+21b4 7837fc00 enable user3 
+21b5 2040173d call le_match_set_txfreq 
+21b6 476ec03b bpatchx patch3b_5 ,mem_patch3b 
+21b7 c6138000 rtnmark1 mark_24g_rxmode 
+21b8 6fe0c886 fetch 1 ,mem_rssi_hex_received 
+21b9 6848c8d5 fetcht 1 ,mem_rssi_hex_received_max_value 
+21ba 98467c00 isub temp ,null 
+21bb 20417d8a call copy_temp2pdata ,positive 
+21bc 202025cc branch rssi_signal 
+
+g24_receive_skip_disable_fec1:
+21bd 7846fc00 disable decode_fec0 
+21be 202021b0 branch g24_receive_skip_next 
+
+g24_lr_receive_pdu_len:
+21bf 204021cd call g24_receive_byte 
+21c0 1fe67c01 sub pdata ,1 ,null 
+21c1 20217d9a branch enable_user7 ,positive 
+21c2 1fe0fffe increase -2 ,pdata 
+21c3 c513a1c6 bmark1 mark_24g_rxmode ,g24_lr_receive_pdu_norssi 
+21c4 203a7d9a branch enable_user7 ,blank 
+21c5 1fe0ffff increase -1 ,pdata 
+
+g24_lr_receive_pdu_norssi:
+21c6 67e08964 store 1 ,mem_temp 
+21c7 20600000 rtn 
+
+g24_lr_receive_payload_len:
+21c8 1fe17e07 and_into 0x07 ,pdata 
+21c9 68488964 fetcht 1 ,mem_temp 
+21ca 18498400 lshift3 temp ,temp 
+21cb 9841fe00 ior temp ,pdata 
+21cc 20600000 rtn 
+
+g24_receive_byte:
+21cd 09800008 parse demod ,bucket ,8 
+21ce 19897e00 rshift3 pwindow ,pdata 
+21cf 20600000 rtn 
+
+g24_sync_timeout:
+21d0 280ffe27 isolate1 mark_24g_rxmode ,mark 
+21d1 2040a5e4 call rssi_noise ,true 
+
+g24_end_of_packet:
+21d2 2040163f call le_disable 
+21d3 784dfc00 disable encode_fec1 
+21d4 7845fc00 disable decode_fec1 
+21d5 20200e7c branch end_of_packet 
+
+g24_set_freq_tx:
+21d6 2040115d call set_sync_on 
+21d7 6848c841 fetcht 1 ,mem_24g_ch 
+21d8 20201201 branch set_freq_tx 
+
+g24_transmit:
+21d9 476f403b bpatchx patch3b_6 ,mem_patch3b 
+21da 6fe0c86c fetch 1 ,mem_24g_tx_phy 
+21db 20401618 call le_enable_phy_by_pdata 
+21dc 6fe24843 fetch 4 ,mem_24g_addr 
+21dd 98001200 iforce access 
+21de 20402162 call g24_prep 
+21df 204021d6 call g24_set_freq_tx 
+21e0 79202a00 set1 txgfsk ,radio_ctrl 
+21e1 782efc00 enable encode_fec0 
+21e2 78307c00 enable is_tx 
+21e3 7850fc00 disable is_rx 
+21e4 20404bdc call rf_debug_tx_on_line 
+21e5 785d7c00 disable lr_s2en 
+21e6 c517a20a bmark1 mark_ble_lr ,g24_transmit_lr 
+21e7 c516a21c bmark1 mark_ble_2m ,g24_transmit_2m 
+21e8 19317e00 rshift16 access ,pdata 
+21e9 1fecfe00 rshift8 pdata ,pdata 
+21ea 1ff1fe00 rshift4 pdata ,pdata 
+21eb 08008628 inject mod ,40 
+
+g24_transmit_packet:
+21ec c517a1f1 bmark1 mark_ble_lr ,g24_transmit_nolr 
+21ed 6fe0c87e fetch 1 ,mem_24g_disable_fec1 
+21ee 243a21f1 nbranch g24_transmit_nolr ,blank 
+21ef 784efc00 disable encode_fec0 
+21f0 782dfc00 enable encode_fec1 
+
+g24_transmit_nolr:
+21f1 7823fc00 enable enable_white 
+21f2 7824fc00 enable enable_crc 
+21f3 6fe0c83e fetch 1 ,mem_24g_txlen 
+21f4 98007200 iforce loopcnt 
+21f5 d8c047ed arg mem_24g_txpayload ,contr 
+
+g24tr_loop:
+21f6 efe08006 ifetch 1 ,contr 
+21f7 08008608 inject mod ,8 
+21f8 c20021f6 loop g24tr_loop 
+21f9 78247c00 enable enable_parity 
+21fa 08008618 inject mod ,24 
+21fb 78447c00 disable enable_parity 
+21fc c597a200 bmark0 mark_ble_lr ,g24_transmit_skip 
+21fd 7843fc00 disable enable_white 
+21fe 58000000 setarg 0 
+21ff 08008603 inject mod ,3 
+
+g24_transmit_skip:
+2200 37d38200 until null ,tx_clear 
+2201 20000064 nop 100 
+2202 785d7c00 disable lr_s2en 
+2203 784efc00 disable encode_fec0 
+2204 6fe0c87e fetch 1 ,mem_24g_disable_fec1 
+2205 243a2207 nbranch g24_transmit_skip_disable_fec1 ,blank 
+2206 784dfc00 disable encode_fec1 
+
+g24_transmit_skip_disable_fec1:
+2207 785c7c00 disable encode_fec3 
+2208 2040115d call set_sync_on 
+2209 20204bda branch rf_debug_tx_off_line 
+
+g24_transmit_lr:
+220a df20000a arg 10 ,loopcnt 
+
+g24_transmit_lr_preamble_loop:
+220b 5800003c setarg 0x3c 
+220c 08008608 inject mod ,8 
+220d c200220b loop g24_transmit_lr_preamble_loop 
+220e 784efc00 disable encode_fec0 
+220f 783c7c00 enable encode_fec3 
+2210 19317e00 rshift16 access ,pdata 
+2211 1ff17e00 rshift16 pdata ,pdata 
+2212 1ff1fe00 rshift4 pdata ,pdata 
+2213 08008620 inject mod ,32 
+2214 c5172219 bmark1 mark_ble_lr_s8 ,g24_transmit_lr_s8 
+
+g24_transmit_lr_s2:
+2215 58000001 setarg 1 
+2216 08008605 inject mod ,5 
+2217 783d7c00 enable lr_s2en 
+2218 202021ec branch g24_transmit_packet 
+
+g24_transmit_lr_s8:
+2219 58000000 setarg 0 
+221a 08008605 inject mod ,5 
+221b 202021ec branch g24_transmit_packet 
+
+g24_transmit_2m:
+221c 6fe0c1f3 fetch 1 ,mem_system_clk 
+221d 1fe37200 rshift pdata ,loopcnt 
+
+g24_transmit_2m_dealy:
+221e 20000002 nop 2 
+221f c200221e loop g24_transmit_2m_dealy 
+2220 19317e00 rshift16 access ,pdata 
+2221 1fecfe00 rshift8 pdata ,pdata 
+2222 1ff18400 rshift4 pdata ,temp 
+2223 18427e00 copy temp ,pdata 
+2224 08008608 inject mod ,8 
+2225 18427e00 copy temp ,pdata 
+2226 08008628 inject mod ,40 
+2227 202021ec branch g24_transmit_packet 
+
+g24_transmit_prep:
+2228 6fe0c86c fetch 1 ,mem_24g_tx_phy 
+2229 c2812247 bbit1 bit_le_coded_phy ,g24_lr_transmit_prep 
+222a 6fe0c83c fetch 1 ,mem_24g_datalen 
+222b 1fe0fe03 increase 3 ,pdata 
+222c 67e0c83e store 1 ,mem_24g_txlen 
+222d 6fe0c860 fetch 1 ,mem_24g_syncword_crc8 
+222e 67e0c7ed store 1 ,mem_24g_txpayload 
+222f 6fe0c83d fetch 1 ,mem_24g_data_type 
+2230 e7e08005 istore 1 ,contw 
+2231 6fe0c83c fetch 1 ,mem_24g_datalen 
+
+g24_transmit_prep_pdu:
+2232 1fe9fe00 lshift3 pdata ,pdata 
+2233 6848c832 fetcht 1 ,mem_24g_pid 
+2234 18410403 and temp ,0x03 ,temp 
+2235 18438400 lshift temp ,temp 
+2236 9841fe00 ior temp ,pdata 
+2237 6848c833 fetcht 1 ,mem_24g_no_ack 
+2238 9840fe00 iadd temp ,pdata 
+2239 e7e08005 istore 1 ,contw 
+223a 6fe0c83c fetch 1 ,mem_24g_datalen 
+223b 98007200 iforce loopcnt 
+223c d8c047cd arg mem_24g_txbuf ,contr 
+223d 20407ca1 call memcpy 
+223e c6938000 rtnmark0 mark_24g_rxmode 
+223f 6fe08154 fetch 1 ,mem_rssi_hex 
+2240 e7e08005 istore 1 ,contw 
+2241 6fe0c86c fetch 1 ,mem_24g_tx_phy 
+2242 c3810000 rtnbit1 bit_le_coded_phy 
+2243 6fe0c83e fetch 1 ,mem_24g_txlen 
+2244 1fe0fe01 increase 1 ,pdata 
+2245 67e0c83e store 1 ,mem_24g_txlen 
+2246 20600000 rtn 
+
+g24_lr_transmit_prep:
+2247 6fe0c83c fetch 1 ,mem_24g_datalen 
+2248 1fe0fe04 increase 4 ,pdata 
+2249 c593a24b bmark0 mark_24g_rxmode ,g24_lr_transmit_prep_skip 
+224a 1fe0fe01 increase 1 ,pdata 
+
+g24_lr_transmit_prep_skip:
+224b 67e0c83e store 1 ,mem_24g_txlen 
+224c 6fe0c860 fetch 1 ,mem_24g_syncword_crc8 
+224d 67e0c7ed store 1 ,mem_24g_txpayload 
+224e 6fe0c83e fetch 1 ,mem_24g_txlen 
+224f 1fe0fffe increase -2 ,pdata 
+2250 e7e08005 istore 1 ,contw 
+2251 6fe0c83d fetch 1 ,mem_24g_data_type 
+2252 e7e08005 istore 1 ,contw 
+2253 58000000 setarg 0 
+2254 20202232 branch g24_transmit_prep_pdu 
+
+g24_read_len_pid_crc:
+2255 6fe0c7ac fetch 1 ,mem_24g_rxbuf + 1 
+2256 1fe97e00 rshift3 pdata ,pdata 
+2257 67e0c831 store 1 ,mem_24g_rxdata_length 
+2258 1fe0fe01 increase 1 ,pdata 
+2259 d8c047ac arg mem_24g_rxbuf + 1 ,contr 
+225a 98c08c00 iadd contr ,contr 
+225b efe18006 ifetch 3 ,contr 
+225c 67e1c834 store 3 ,mem_24g_sta_crc 
+225d 6fe0c7ac fetch 1 ,mem_24g_rxbuf + 1 
+225e 1fe37e00 rshift pdata ,pdata 
+225f 1fe17e03 and pdata ,0x03 ,pdata 
+2260 67e0c83a store 1 ,mem_24g_sta_pid 
+2261 20600000 rtn 
+
+g24_ch:
+2262 6848c842 fetcht 1 ,mem_24g_current_ch_number 
+2263 20402266 call g24_ch_map_size 
+2264 6048c842 storet 1 ,mem_24g_current_ch_number 
+2265 20600000 rtn 
+
+g24_ch_map_size:
+2266 2040226a call g24_ch_calc 
+2267 18408401 increase 1 ,temp 
+2268 18410403 and_into 3 ,temp 
+2269 20600000 rtn 
+
+g24_ch_calc:
+226a 6fe0c843 fetch 1 ,mem_24g_addr 
+226b 1fe17e03 and_into 0x03 ,pdata 
+226c 1fefa204 mul32 pdata ,4 ,rega 
+226d 58004847 setarg mem_24g_ch_map1 
+226e 9a20fe00 iadd rega ,pdata 
+226f 98408c00 iadd temp ,contr 
+2270 efe08006 ifetch 1 ,contr 
+2271 67e0c841 store 1 ,mem_24g_ch 
+2272 20600000 rtn 
+
+g24_update_addr_and_synccrc8:
+2273 67e24843 store 4 ,mem_24g_addr 
+
+g24_syncword_crc8:
+2274 da200000 arg 0 ,rega 
+2275 df200004 arg 4 ,loopcnt 
+2276 d8c04843 arg mem_24g_addr ,contr 
+
+g24_syncword_crc8_loop:
+2277 efe08006 ifetch 1 ,contr 
+2278 9a20a200 iadd rega ,rega 
+2279 c2002277 loop g24_syncword_crc8_loop 
+227a 1a227e00 copy rega ,pdata 
+227b 67e1485e store 2 ,mem_24g_syncword 
+227c 6fe0c85e fetch 1 ,mem_24g_syncword 
+227d 6848c85f fetcht 1 ,mem_24g_syncword + 1 
+227e 9840fe00 iadd temp ,pdata 
+227f 67e0c860 store 1 ,mem_24g_syncword_crc8 
+2280 20600000 rtn 
+
+g24_timer_check:
+2281 20407d94 call disable_user 
+2282 684a4857 fetcht 4 ,mem_24g_tx_btclk 
+2283 1c427e00 copy clkn_bt ,pdata 
+2284 98467c00 isub temp ,null 
+2285 24412290 ncall g24_timer_timeout ,positive 
+2286 1fe22400 copy pdata ,regb 
+2287 6fe24857 fetch 4 ,mem_24g_tx_btclk 
+2288 6848c85b fetcht 1 ,mem_24g_interval 
+2289 98408400 iadd temp ,temp 
+228a 1a427e00 copy regb ,pdata 
+228b 98467c00 isub temp ,null 
+228c 24610000 nrtn positive 
+228d 793ffe1c set0 28 ,pdata 
+228e 67e24857 store 4 ,mem_24g_tx_btclk 
+228f 20207d92 branch enable_user 
+
+g24_timer_timeout:
+2290 20628000 rtn zero 
+2291 79207e1c set1 28 ,pdata 
+2292 20600000 rtn 
+
+g24_timer_init:
+2293 58000000 setarg 0 
+2294 67e24857 store 4 ,mem_24g_tx_btclk 
+2295 20600000 rtn 
+
+g24_chmap_param_init:
+2296 38001300 setsect 0 ,0x1300 
+2297 3805908b setsect 1 ,0x1908b 
+2298 380b6150 setsect 2 ,0x36150 
+2299 380c3d20 setsect 3 ,0x3d20 
+229a 67e4c847 store 9 ,mem_24g_ch_map1 
+229b 38003a1a setsect 0 ,0x3a1a 
+229c 3804c453 setsect 1 ,0xc453 
+229d 3808d312 setsect 2 ,0xd312 
+229e 380c0001 setsect 3 ,0x1 
+229f e7e38005 istore 7 ,contw 
+22a0 6fe0c86d fetch 1 ,mem_24g_ch_map_update 
+22a1 207a0000 rtn blank 
+22a2 d8c0486e arg mem_24g_ch_update_map1 ,contr 
+22a3 d8a04847 arg mem_24g_ch_map1 ,contw 
+22a4 20207c4c branch memcpy16 
+
+g24_chamap_param_update:
+22a5 584e001e setarg 0x4e001e 
+22a6 67e1c86f store 3 ,mem_24g_ch_update_map1 + 1 
+22a7 58032303 setarg 0x032303 
+22a8 e7e18005 istore 3 ,contw 
+22a9 58250642 setarg 0x250642 
+22aa e7e18005 istore 3 ,contw 
+22ab 58094c06 setarg 0x094c06 
+22ac e7e18005 istore 3 ,contw 
+22ad 583c0927 setarg 0x3c0927 
+22ae e7e18005 istore 3 ,contw 
+22af 70486d01 jam 1 ,mem_24g_ch_map_update 
+22b0 20600000 rtn 
+
+g24_rx_window_init:
+22b1 d8406978 arg 0x6978 ,temp 
+22b2 c513a2b7 bmark1 mark_24g_rxmode ,g24_rx_window_store 
+22b3 d84012c0 arg 0x12c0 ,temp 
+22b4 6fe0c86b fetch 1 ,mem_24g_rx_phy 
+22b5 c30122b7 bbit0 2 ,g24_rx_window_store 
+22b6 d8402ee0 arg 0x2ee0 ,temp 
+
+g24_rx_window_store:
+22b7 6049483f storet 2 ,mem_24g_rx_window 
+22b8 20600000 rtn 
+
+g24_enable_1m:
+22b9 70486b01 jam 0x01 ,mem_24g_rx_phy 
+22ba 70486c01 jam 0x01 ,mem_24g_tx_phy 
+22bb 20600000 rtn 
+
+g24_pair_param_init:
+22bc 7048834e jam 0x4e ,mem_24g_pair_ch 
+22bd 58101520 setarg 0x101520 
+22be 67e1c87f store 3 ,mem_24g_pair_addr 
+22bf 58000005 setarg 0x05 
+22c0 e7e08005 istore 1 ,contw 
+22c1 20600000 rtn 
+
+g24_pair_timeout_timer:
+22c2 da60488b arg mem_24g_pair_timeout ,regc 
+22c3 da402666 arg g24_stop_24g_mode ,regb 
+22c4 202031d6 branch timer_single_step_2b 
+
+g24_pair_start:
+22c5 79200026 set1 mark_24g ,mark 
+22c6 6fe0c8a9 fetch 1 ,mem_24g_conn_sm 
+22c7 793ffe02 set0 state_24g_reconn ,pdata 
+22c8 79207e01 set1 state_24g_pair ,pdata 
+22c9 67e0c8a9 store 1 ,mem_24g_conn_sm 
+22ca 58000000 setarg 0 
+22cb 67e1488f store 2 ,mem_24g_reconn_timeout 
+22cc 6fe14889 fetch 2 ,mem_24g_pair_timeout_init 
+22cd 67e1488b store 2 ,mem_24g_pair_timeout 
+22ce 70488800 jam 0 ,mem_24g_pair_no_ack 
+22cf 20402303 call g24_pair_sm_reinit 
+
+g24_pair_init_param:
+22d0 70483200 jam 0 ,mem_24g_pid 
+22d1 6fe0c883 fetch 1 ,mem_24g_pair_ch 
+22d2 67e0c841 store 1 ,mem_24g_ch 
+22d3 6fe0c884 fetch 1 ,mem_24g_pair_tx_power 
+22d4 67e0c1eb store 1 ,mem_tx_power 
+22d5 6fe2487f fetch 4 ,mem_24g_pair_addr 
+22d6 20202273 branch g24_update_addr_and_synccrc8 
+
+g24_pair_dispatch:
+22d7 476fc03b bpatchx patch3b_7 ,mem_patch3b 
+22d8 6fe0c887 fetch 1 ,mem_24g_pair_sm 
+22d9 c07fa325 beq state_24g_pairing_success ,g24_pair_exit 
+22da c000a2df beq state_24g_pairing_1 ,g24_pair_sm_1 
+22db c00122e1 beq state_24g_pairing_2 ,g24_pair_sm_2 
+22dc c001a2e7 beq state_24g_pairing_3 ,g24_pair_sm_3 
+22dd c00222ed beq state_24g_pairing_4 ,g24_pair_sm_4 
+22de 20600000 rtn 
+
+g24_pair_sm_1:
+22df 7047cdff jam datatype_attemp ,mem_24g_txbuf 
+22e0 202022ee branch g24_pair_sm_prep 
+
+g24_pair_sm_2:
+22e1 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+22e2 203a22e5 branch g24_pair_sm_2_skip ,blank 
+22e3 6fe248b1 fetch 4 ,mem_24g_device_addr 
+22e4 20402273 call g24_update_addr_and_synccrc8 
+
+g24_pair_sm_2_skip:
+22e5 7047cdaa jam datatype_bind ,mem_24g_txbuf 
+22e6 202022ee branch g24_pair_sm_prep 
+
+g24_pair_sm_3:
+22e7 7047cd55 jam datatype_config ,mem_24g_txbuf 
+22e8 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+22e9 203a22ee branch g24_pair_sm_prep ,blank 
+22ea 6fe24899 fetch 4 ,mem_24g_receiver_addr 
+22eb 67e247cf store 4 ,mem_24g_txbuf + 2 
+22ec 202022f0 branch g24_pair_sm_common 
+
+g24_pair_sm_4:
+22ed 7047cd22 jam datatype_ok ,mem_24g_txbuf 
+
+g24_pair_sm_prep:
+22ee 6fe248b1 fetch 4 ,mem_24g_device_addr 
+22ef 67e247cf store 4 ,mem_24g_txbuf + 2 
+
+g24_pair_sm_common:
+22f0 6fe0c83d fetch 1 ,mem_24g_data_type 
+22f1 1fe17e07 and_into bits_data ,pdata 
+22f2 67e0c7ce store 1 ,mem_24g_txbuf + 1 
+22f3 7047d300 jam 0 ,mem_24g_txbuf + 6 
+22f4 70483c07 jam 7 ,mem_24g_datalen 
+22f5 20402228 call g24_transmit_prep 
+22f6 20402645 call g24_transmit_receive_ack 
+22f7 246c0000 nrtn sync 
+22f8 24778000 nrtn user3 
+22f9 20402583 call g24_txbuf_clear 
+22fa 2040265c call g24_ackpayload_parse 
+22fb 4770403c bpatchx patch3c_0 ,mem_patch3c 
+22fc 6fe0c887 fetch 1 ,mem_24g_pair_sm 
+22fd c17f8000 rtneq state_24g_pairing_success 
+22fe c000a308 beq state_24g_pairing_1 ,g24_pair_sm_1_waiting_ack 
+22ff c001230a beq state_24g_pairing_2 ,g24_pair_sm_2_waiting_ack 
+2300 c001a310 beq state_24g_pairing_3 ,g24_pair_sm_3_waiting_ack 
+2301 c0022318 beq state_24g_pairing_4 ,g24_pair_sm_4_waiting_ack 
+2302 20600000 rtn 
+
+g24_pair_sm_reinit:
+2303 70488702 jam state_24g_pairing_2 ,mem_24g_pair_sm 
+2304 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+2305 207a0000 rtn blank 
+2306 70488701 jam state_24g_pairing_1 ,mem_24g_pair_sm 
+2307 20600000 rtn 
+
+g24_pair_sm_1_waiting_ack:
+2308 70488702 jam state_24g_pairing_2 ,mem_24g_pair_sm 
+2309 20202641 branch g24_transmit_abandon 
+
+g24_pair_sm_2_waiting_ack:
+230a 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+230b 203a230e branch g24_pair_sm_2_waiting_ack_skip ,blank 
+230c 6fe24813 fetch 4 ,mem_24g_rxpayload + 2 
+230d 67e24899 store 4 ,mem_24g_receiver_addr 
+
+g24_pair_sm_2_waiting_ack_skip:
+230e 70488703 jam state_24g_pairing_3 ,mem_24g_pair_sm 
+230f 20202641 branch g24_transmit_abandon 
+
+g24_pair_sm_3_waiting_ack:
+2310 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+2311 203a2316 branch g24_pair_sm_3_waiting_ack_skip ,blank 
+2312 6fe24813 fetch 4 ,mem_24g_rxpayload + 2 
+2313 684a48b1 fetcht 4 ,mem_24g_device_addr 
+2314 98467c00 isub temp ,null 
+2315 24628000 nrtn zero 
+
+g24_pair_sm_3_waiting_ack_skip:
+2316 70488704 jam state_24g_pairing_4 ,mem_24g_pair_sm 
+2317 20202641 branch g24_transmit_abandon 
+
+g24_pair_sm_4_waiting_ack:
+2318 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+2319 203a231e branch g24_pair_sm_4_waiting_ack_skip ,blank 
+231a 6fe24813 fetch 4 ,mem_24g_rxpayload + 2 
+231b 684a4899 fetcht 4 ,mem_24g_receiver_addr 
+231c 98467c00 isub temp ,null 
+231d 24628000 nrtn zero 
+
+g24_pair_sm_4_waiting_ack_skip:
+231e 704887ff jam state_24g_pairing_success ,mem_24g_pair_sm 
+231f 70095b39 jam bt_evt_24g_pairing_complete ,mem_fifo_temp 
+2320 204077a7 call ui_ipc_send_event 
+2321 58000000 setarg 0 
+2322 67e1488b store 2 ,mem_24g_pair_timeout 
+2323 6fe24813 fetch 4 ,mem_24g_rxpayload + 2 
+2324 20402273 call g24_update_addr_and_synccrc8 
+
+g24_pair_exit:
+2325 6fe0c8a9 fetch 1 ,mem_24g_conn_sm 
+2326 793ffe01 set0 state_24g_pair ,pdata 
+2327 67e0c8a9 store 1 ,mem_24g_conn_sm 
+2328 20202641 branch g24_transmit_abandon 
+
+g24_bind_mode_enable:
+2329 7048c701 jam dongle_bind ,mem_24g_work_mode 
+232a 7048c600 jam clear_init ,mem_24g_mode_init 
+232b 20600000 rtn 
+
+g24_bind_init:
+232c 6fe0c8c6 fetch 1 ,mem_24g_mode_init 
+232d c3808000 rtnbit1 dongle_bind 
+232e 79207e01 set1 dongle_bind ,pdata 
+232f 67e0c8c6 store 1 ,mem_24g_mode_init 
+2330 58000000 setarg 0 
+2331 67e1c886 store 3 ,mem_24g_device1_bind_step 
+2332 67e248dd store 4 ,mem_24g_transmitter_addr 
+2333 7048c201 jam 1 ,mem_24g_ackpayload_enable 
+2334 202022d0 branch g24_pair_init_param 
+
+g24_bind_ackpayload_prep:
+2335 7048c201 jam 1 ,mem_24g_ackpayload_enable 
+2336 70483c08 jam 0x08 ,mem_24g_datalen 
+2337 d8c04889 arg mem_24g_bind_payload ,contr 
+2338 d8a047cd arg mem_24g_txbuf ,contw 
+2339 20207c46 branch memcpy8 
+
+g24_bind_data_process:
+233a 4770c03c bpatchx patch3c_1 ,mem_patch3c 
+233b 204023dd call g24_rx_interrupt_clear 
+233c 20402168 call g24_receive_packet 
+233d 2437a3dd nbranch g24_rx_interrupt_clear ,user3 
+233e 20402349 call g24_bind_data_parse 
+233f 2040240f call g24_transmit_ack 
+2340 204023b8 call g24_bind_device_status_check 
+2341 204037d6 call dongle_kb_bind_soft_reset 
+2342 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+2343 207a0000 rtn blank 
+2344 6fe248dd fetch 4 ,mem_24g_transmitter_addr 
+2345 207a0000 rtn blank 
+2346 20202273 branch g24_update_addr_and_synccrc8 
+
+g24_bind_data_error:
+2347 204023dd call g24_rx_interrupt_clear 
+2348 202021d2 branch g24_end_of_packet 
+
+g24_bind_data_parse:
+2349 7048d305 jam bind_mode_continue ,mem_24g_bind_mode_continue 
+234a d8c047ab arg mem_24g_rxbuf ,contr 
+234b d8a04899 arg mem_24g_rxdata_temp ,contw 
+234c 20407c46 call memcpy8 
+234d 4771403c bpatchx patch3c_2 ,mem_patch3c 
+234e 6fe0c89b fetch 1 ,mem_24g_rxdata_temp + 2 
+234f c0552354 beq datatype_bind ,g24_bind_first_step 
+2350 c02aa361 beq datatype_config ,g24_bind_second_step 
+2351 c011237e beq datatype_ok ,g24_bind_third_step 
+2352 c07fa5a1 beq datatype_attemp ,g24_data_attemp 
+2353 20600000 rtn 
+
+g24_bind_first_step:
+2354 6fe0c89c fetch 1 ,mem_24g_rxdata_temp + 3 
+2355 c000a358 beq datatype_device1 ,g24_bind_first_step_device1 
+2356 c001235e beq datatype_device2 ,g24_bind_first_step_device2 
+2357 20600000 rtn 
+
+g24_bind_first_step_device1:
+2358 70488601 jam 1 ,mem_24g_device1_bind_step 
+
+g24_bind_dvc1_payload_cfg:
+2359 70488901 jam datatype_device1 ,mem_24g_bind_payload 
+
+g24_bind_payload_cfg:
+235a 70488a80 jam 0x80 ,mem_24g_bind_payload + 1 
+235b 6fe340a8 fetch 6 ,mem_lap 
+235c 67e3488b store 6 ,mem_24g_bind_payload + 2 
+235d 20600000 rtn 
+
+g24_bind_first_step_device2:
+235e 70488701 jam 1 ,mem_24g_device2_bind_step 
+
+g24_bind_dvc2_payload_cfg:
+235f 70488902 jam datatype_device2 ,mem_24g_bind_payload 
+2360 2020235a branch g24_bind_payload_cfg 
+
+g24_bind_second_step:
+2361 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+2362 203a2367 branch g24_bind_second_step_skip ,blank 
+2363 6fe2489d fetch 4 ,mem_24g_rxdata_temp + 4 
+2364 684a40a8 fetcht 4 ,mem_lap 
+2365 98467c00 isub temp ,null 
+2366 24628000 nrtn zero 
+
+g24_bind_second_step_skip:
+2367 6fe0c89c fetch 1 ,mem_24g_rxdata_temp + 3 
+2368 c000a36b beq datatype_device1 ,g24_bind_second_step_device1 
+2369 c0012376 beq datatype_device2 ,g24_bind_second_step_device2 
+236a 20600000 rtn 
+
+g24_bind_second_step_device1:
+236b 6fe0c886 fetch 1 ,mem_24g_device1_bind_step 
+236c c000a36e beq 1 ,g24_bind_dvc1_step_set2 
+236d 20600000 rtn 
+
+g24_bind_dvc1_step_set2:
+236e 70488602 jam 2 ,mem_24g_device1_bind_step 
+236f 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+2370 203a2359 branch g24_bind_dvc1_payload_cfg ,blank 
+
+g24_bind_dvc1_payload_cfg_transmitter_addr:
+2371 70488901 jam datatype_device1 ,mem_24g_bind_payload 
+
+g24_bind_payload_cfg_transmitter_addr:
+2372 70488a80 jam 0x80 ,mem_24g_bind_payload + 1 
+2373 6fe248dd fetch 4 ,mem_24g_transmitter_addr 
+2374 67e2488b store 4 ,mem_24g_bind_payload + 2 
+2375 20207d92 branch enable_user 
+
+g24_bind_second_step_device2:
+2376 6fe0c887 fetch 1 ,mem_24g_device2_bind_step 
+2377 c000a379 beq 1 ,g24_bind_dvc2_step_set2 
+2378 20600000 rtn 
+
+g24_bind_dvc2_step_set2:
+2379 70488702 jam 2 ,mem_24g_device2_bind_step 
+237a 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+237b 203a235f branch g24_bind_dvc2_payload_cfg ,blank 
+237c 70488902 jam datatype_device2 ,mem_24g_bind_payload 
+237d 20202372 branch g24_bind_payload_cfg_transmitter_addr 
+
+g24_bind_third_step:
+237e 6fe0c862 fetch 1 ,mem_24g_pair_switch 
+237f 203a2384 branch g24_bind_third_step_skip ,blank 
+2380 6fe2489d fetch 4 ,mem_24g_rxdata_temp + 4 
+2381 684a48dd fetcht 4 ,mem_24g_transmitter_addr 
+2382 98467c00 isub temp ,null 
+2383 24628000 nrtn zero 
+
+g24_bind_third_step_skip:
+2384 6fe0c89c fetch 1 ,mem_24g_rxdata_temp + 3 
+2385 c000a388 beq datatype_device1 ,g24_bind_third_step_device1 
+2386 c0012393 beq datatype_device2 ,g24_bind_third_step_device2 
+2387 20600000 rtn 
+
+g24_bind_third_step_device1:
+2388 6fe0c886 fetch 1 ,mem_24g_device1_bind_step 
+2389 c001238b beq 2 ,g24_bind_dvc1_step_success 
+238a 20600000 rtn 
+
+g24_bind_dvc1_step_success:
+238b 204023ac call g24_binding_dvc1_living 
+238c 20402359 call g24_bind_dvc1_payload_cfg 
+238d 6fe0c888 fetch 1 ,mem_24g_bind_device_status 
+238e 1fe1fe01 or_into 0x01 ,pdata 
+238f 67e0c888 store 1 ,mem_24g_bind_device_status 
+
+g24_bind_exit:
+2390 58000000 setarg 0 
+2391 67e14886 store 2 ,mem_24g_device1_bind_step 
+2392 20600000 rtn 
+
+g24_bind_third_step_device2:
+2393 6fe0c887 fetch 1 ,mem_24g_device2_bind_step 
+2394 c0802396 bne 0 ,g24_bind_dvc2_step_success 
+2395 20600000 rtn 
+
+g24_bind_dvc2_step_success:
+2396 204023b2 call g24_binding_dvc2_living 
+2397 2040235f call g24_bind_dvc2_payload_cfg 
+2398 6fe0c888 fetch 1 ,mem_24g_bind_device_status 
+2399 1fe1fe02 or_into 0x02 ,pdata 
+239a 67e0c888 store 1 ,mem_24g_bind_device_status 
+239b 20402390 call g24_bind_exit 
+239c 202037d0 branch dongle_g24_store_dvc2_bind_flag 
+
+g24_binding_device_check:
+239d 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+239e c1808000 rtnne dongle_bind 
+239f 6fe0c8c1 fetch 1 ,mem_24g_pair_mode 
+23a0 247a0000 nrtn blank 
+23a1 6fe0c7ae fetch 1 ,mem_24g_rxbuf + 3 
+23a2 c000a3a5 beq datatype_device1 ,g24_binding_dvc1_status 
+23a3 c00123a9 beq datatype_device2 ,g24_binding_dvc2_status 
+23a4 20600000 rtn 
+
+g24_binding_dvc1_status:
+23a5 6fe0c8dc fetch 1 ,mem_24g_bind_device_living 
+23a6 c4000000 rtnbit0 0 
+
+disable_user3:
+23a7 7857fc00 disable user3 
+23a8 20600000 rtn 
+
+g24_binding_dvc2_status:
+23a9 6fe0c8dc fetch 1 ,mem_24g_bind_device_living 
+23aa c4008000 rtnbit0 1 
+23ab 202023a7 branch disable_user3 
+
+g24_binding_dvc1_living:
+23ac 6fe0c8c1 fetch 1 ,mem_24g_pair_mode 
+23ad 247a0000 nrtn blank 
+23ae 6fe0c8dc fetch 1 ,mem_24g_bind_device_living 
+23af 1fe1fe01 or_into 0x01 ,pdata 
+23b0 67e0c8dc store 1 ,mem_24g_bind_device_living 
+23b1 20600000 rtn 
+
+g24_binding_dvc2_living:
+23b2 6fe0c8c1 fetch 1 ,mem_24g_pair_mode 
+23b3 247a0000 nrtn blank 
+23b4 6fe0c8dc fetch 1 ,mem_24g_bind_device_living 
+23b5 1fe1fe02 or_into 0x02 ,pdata 
+23b6 67e0c8dc store 1 ,mem_24g_bind_device_living 
+23b7 20600000 rtn 
+
+g24_bind_device_status_check:
+23b8 6fe0c888 fetch 1 ,mem_24g_bind_device_status 
+23b9 207a0000 rtn blank 
+
+g24_bind_device_status:
+23ba 6fe0c89c fetch 1 ,mem_24g_rxdata_temp + 3 
+23bb c000a3ac beq datatype_device1 ,g24_binding_dvc1_living 
+23bc c00123b2 beq datatype_device2 ,g24_binding_dvc2_living 
+23bd 20600000 rtn 
+
+g24_receive_init:
+23be 79200027 set1 mark_24g_rxmode ,mark 
+23bf 6fe0c1eb fetch 1 ,mem_tx_power 
+23c0 67e0c8d4 store 1 ,mem_tx_power_temp 
+23c1 204022b1 call g24_rx_window_init 
+23c2 202025d7 branch rssi_receiver_buff_init 
+
+g24_receive_dispatch:
+23c3 6fe14891 fetch 2 ,mem_cb_24g_receive_process 
+23c4 20207d47 branch callback_func 
+
+g24_ackpayload_prep:
+23c5 70483c00 jam 0 ,mem_24g_datalen 
+23c6 6fe0c8c2 fetch 1 ,mem_24g_ackpayload_enable 
+23c7 207a0000 rtn blank 
+23c8 6fe14893 fetch 2 ,mem_cb_24g_ackpayload 
+23c9 20207d47 branch callback_func 
+
+g24_receive_packet_start:
+23ca 2040240c call g24_receive_transmit_ack 
+23cb 2437a3dd nbranch g24_rx_interrupt_clear ,user3 
+
+g24_receive_packet_parse:
+23cc 204023fe call g24_receive_packet_parse_pid_crc 
+23cd 243423dd nbranch g24_rx_interrupt_clear ,user 
+23ce 6fe0c831 fetch 1 ,mem_24g_rxdata_length 
+23cf 203a23dd branch g24_rx_interrupt_clear ,blank 
+23d0 1fe0fe02 increase 2 ,pdata 
+23d1 98007200 iforce loopcnt 
+23d2 d8c047ab arg mem_24g_rxbuf ,contr 
+23d3 d8a04899 arg mem_24g_rxdata_temp ,contw 
+23d4 20407ca1 call memcpy 
+23d5 7048c400 jam 0 ,mem_24g_mode_switch 
+23d6 6fe0c8c1 fetch 1 ,mem_24g_pair_mode 
+23d7 205a2419 call g24_enable_nodata_timer ,blank 
+23d8 4771c03c bpatchx patch3c_3 ,mem_patch3c 
+23d9 6fe0c89b fetch 1 ,mem_24g_rxdata_temp + 2 
+23da c000a3e2 beq datatype_device1 ,g24_data_device1 
+23db c00123f1 beq datatype_device2 ,g24_data_device2 
+23dc c07fa3e0 beq datatype_attemp ,g24_data_receive_attemp 
+
+g24_rx_interrupt_clear:
+23dd d8a047ab arg mem_24g_rxbuf ,contw 
+23de df200042 arg 66 ,loopcnt 
+23df 20207c68 branch clear_mem 
+
+g24_data_receive_attemp:
+23e0 204023ba call g24_bind_device_status 
+23e1 202025a1 branch g24_data_attemp 
+
+g24_data_device1:
+23e2 204023ac call g24_binding_dvc1_living 
+23e3 2040253f call g24_ch_timer_reinit 
+23e4 6fe0c8bb fetch 1 ,mem_24g_abort_packet 
+23e5 6848c899 fetcht 1 ,mem_24g_rxdata_temp 
+23e6 284ffe03 isolate1 bit_abort ,temp 
+23e7 7920fe00 setflag true ,0 ,pdata 
+23e8 67e0c8bb store 1 ,mem_24g_abort_packet 
+23e9 c000a3f7 beq 1 ,g24_data_attemp_device1_abort 
+23ea 6fe0c8c3 fetch 1 ,mem_24g_hop_packet 
+23eb 6848c899 fetcht 1 ,mem_24g_rxdata_temp 
+23ec 284ffe04 isolate1 bit_hop ,temp 
+23ed 7920fe00 setflag true ,0 ,pdata 
+23ee 67e0c8c3 store 1 ,mem_24g_hop_packet 
+23ef 6fe14895 fetch 2 ,mem_cb_24g_data_device1 
+23f0 20207d47 branch callback_func 
+
+g24_data_device2:
+23f1 204023b2 call g24_binding_dvc2_living 
+23f2 6848c899 fetcht 1 ,mem_24g_rxdata_temp 
+23f3 284ffe03 isolate1 bit_abort ,temp 
+23f4 2020a3fc branch g24_data_attemp_device2_abort ,true 
+23f5 6fe14897 fetch 2 ,mem_cb_24g_data_device2 
+23f6 20207d47 branch callback_func 
+
+g24_data_attemp_device1_abort:
+23f7 6fe0c09a fetch 1 ,mem_device_option 
+23f8 1fe67c0e sub pdata ,dvc_op_car ,null 
+23f9 2042b4c3 call car_stop_blink ,zero 
+23fa 6fe248a3 fetch 4 ,mem_24g_rxdata_temp + 10 
+23fb 202025a7 branch g24_store_device1_addr 
+
+g24_data_attemp_device2_abort:
+23fc 6fe248a3 fetch 4 ,mem_24g_rxdata_temp + 10 
+23fd 202025ab branch g24_store_device2_addr 
+
+g24_receive_packet_parse_pid_crc:
+23fe 20407d94 call disable_user 
+23ff 6fe0c83a fetch 1 ,mem_24g_sta_pid 
+2400 6848c83b fetcht 1 ,mem_24g_last_pid 
+2401 98467c00 isub temp ,null 
+2402 2442fd92 ncall enable_user ,zero 
+2403 6fe0c83a fetch 1 ,mem_24g_sta_pid 
+2404 67e0c83b store 1 ,mem_24g_last_pid 
+2405 6fe1c834 fetch 3 ,mem_24g_sta_crc 
+2406 6849c837 fetcht 3 ,mem_24g_last_crc 
+2407 98467c00 isub temp ,null 
+2408 2442fd92 ncall enable_user ,zero 
+2409 6fe1c834 fetch 3 ,mem_24g_sta_crc 
+240a 67e1c837 store 3 ,mem_24g_last_crc 
+240b 20600000 rtn 
+
+g24_receive_transmit_ack:
+240c 204023dd call g24_rx_interrupt_clear 
+240d 20402168 call g24_receive_packet 
+240e 24778000 nrtn user3 
+
+g24_transmit_ack:
+240f 6fe0c7ab fetch 1 ,mem_24g_rxbuf 
+2410 67e0c83d store 1 ,mem_24g_data_type 
+2411 20402255 call g24_read_len_pid_crc 
+2412 6fe0c7ac fetch 1 ,mem_24g_rxbuf + 1 
+2413 2feffe00 isolate1 bit_ack_24g ,pdata 
+2414 2020a418 branch g24tx_no_ack ,true 
+
+g24tx_with_ack:
+2415 204023c5 call g24_ackpayload_prep 
+2416 20402228 call g24_transmit_prep 
+2417 204021d9 call g24_transmit 
+
+g24tx_no_ack:
+2418 202021d2 branch g24_end_of_packet 
+
+g24_enable_nodata_timer:
+2419 7048c501 jam 1 ,mem_24g_nodata_timer_enable 
+
+g24_enable_nodata_timer_init:
+241a 58000280 setarg timer_nodata_delay 
+241b d8e00008 arg timer_nodata ,queue 
+241c 20207ca8 branch timer_init 
+
+g24_mode_switch_init:
+241d 7048c401 jam 1 ,mem_24g_mode_switch 
+241e 7048c800 jam 0 ,mem_24g_time_slice 
+241f 70485bff jam 0xff ,mem_24g_interval 
+2420 20202293 branch g24_timer_init 
+
+g24_mode_switch_bind_work:
+2421 4772403c bpatchx patch3c_4 ,mem_patch3c 
+2422 6fe0c8c4 fetch 1 ,mem_24g_mode_switch 
+2423 207a0000 rtn blank 
+2424 20402281 call g24_timer_check 
+2425 24740000 nrtn user 
+2426 2040242e call g24_bind_mode_continue 
+2427 6fe0c8c8 fetch 1 ,mem_24g_time_slice 
+2428 1fe0fe01 increase 1 ,pdata 
+2429 1fe17e01 and_into 1 ,pdata 
+242a 67e0c8c8 store 1 ,mem_24g_time_slice 
+242b c0002433 beq 0 ,g24_work_mode_switch 
+242c c000a436 beq 1 ,g24_bind_mode_switch 
+242d 20600000 rtn 
+
+g24_bind_mode_continue:
+242e 6fe0c8d3 fetch 1 ,mem_24g_bind_mode_continue 
+242f 207a0000 rtn blank 
+2430 1fe0ffff increase -1 ,pdata 
+2431 67e0c8d3 store 1 ,mem_24g_bind_mode_continue 
+2432 20600000 rtn 
+
+g24_work_mode_switch:
+2433 6fe0c8d3 fetch 1 ,mem_24g_bind_mode_continue 
+2434 247a0000 nrtn blank 
+2435 20202476 branch g24_switch_work_mode 
+
+g24_bind_mode_switch:
+2436 6fe0c8d3 fetch 1 ,mem_24g_bind_mode_continue 
+2437 247a0000 nrtn blank 
+2438 20202329 branch g24_bind_mode_enable 
+
+g24_mode_b_s_switch_init:
+2439 6fe0c8db fetch 1 ,mem_24g_b_s_mode_switch_disable 
+243a 247a0000 nrtn blank 
+243b 6fe0c8d9 fetch 1 ,mem_24g_mode_b_s_switch_exit 
+243c 205a2466 call g24_mode_b_s_switch_start ,blank 
+243d 6fe0c8d6 fetch 1 ,mem_24g_mode_b_s_switch_init 
+243e c3800000 rtnbit1 0 
+243f 79207e00 set1 0 ,pdata 
+2440 67e0c8d6 store 1 ,mem_24g_mode_b_s_switch_init 
+2441 7048d501 jam 1 ,mem_24g_mode_b_s_switch 
+2442 7048da00 jam 0 ,mem_24g_b_s_time_slice 
+2443 58000000 setarg 0 
+2444 67e148d7 store 2 ,mem_24g_mode_b_s_switch_cnt 
+2445 70485b60 jam 0x60 ,mem_24g_interval 
+2446 20202293 branch g24_timer_init 
+
+g24_mode_switch_bind_search:
+2447 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+2448 c1000000 rtneq dongle_work 
+2449 6fe0c8db fetch 1 ,mem_24g_b_s_mode_switch_disable 
+244a 247a0000 nrtn blank 
+244b 6fe0c8d9 fetch 1 ,mem_24g_mode_b_s_switch_exit 
+244c 247a0000 nrtn blank 
+244d 6fe0c8d5 fetch 1 ,mem_24g_mode_b_s_switch 
+244e 207a0000 rtn blank 
+244f 20402281 call g24_timer_check 
+2450 24740000 nrtn user 
+2451 6fe148d7 fetch 2 ,mem_24g_mode_b_s_switch_cnt 
+2452 1fe0fe01 increase 1 ,pdata 
+2453 67e148d7 store 2 ,mem_24g_mode_b_s_switch_cnt 
+2454 d84007d0 arg 0x7d0 ,temp 
+2455 98467c00 isub temp ,null 
+2456 20212462 branch g24_mode_b_s_switch_exit ,positive 
+2457 2040242e call g24_bind_mode_continue 
+2458 6fe0c8da fetch 1 ,mem_24g_b_s_time_slice 
+2459 1fe0fe01 increase 1 ,pdata 
+245a 1fe17e01 and_into 1 ,pdata 
+245b 67e0c8da store 1 ,mem_24g_b_s_time_slice 
+245c c000245f beq 0 ,g24_mode_switch_search 
+245d c000a329 beq 1 ,g24_bind_mode_enable 
+245e 20600000 rtn 
+
+g24_mode_switch_search:
+245f 6fe0c8d3 fetch 1 ,mem_24g_bind_mode_continue 
+2460 243a2329 nbranch g24_bind_mode_enable ,blank 
+2461 20202527 branch g24_search_mode_enable 
+
+g24_mode_b_s_switch_exit:
+2462 7048d901 jam 1 ,mem_24g_mode_b_s_switch_exit 
+2463 20202527 branch g24_search_mode_enable 
+
+g24_mode_b_s_switch_stop:
+2464 7048d500 jam 0 ,mem_24g_mode_b_s_switch 
+2465 20600000 rtn 
+
+g24_mode_b_s_switch_start:
+2466 7048d501 jam 1 ,mem_24g_mode_b_s_switch 
+2467 20600000 rtn 
+
+g24_work_init:
+2468 6fe0c8c6 fetch 1 ,mem_24g_mode_init 
+2469 c3800000 rtnbit1 dongle_work 
+246a 79207e00 set1 dongle_work ,pdata 
+246b 67e0c8c6 store 1 ,mem_24g_mode_init 
+246c 6fe0c8d4 fetch 1 ,mem_tx_power_temp 
+246d 67e0c1eb store 1 ,mem_tx_power 
+246e 7048c200 jam 0 ,mem_24g_ackpayload_enable 
+246f 700bf900 jam 0 ,mem_usb_tx_enable 
+2470 7048bb01 jam 1 ,mem_24g_abort_packet 
+2471 70483200 jam 0 ,mem_24g_pid 
+2472 6fe240a8 fetch 4 ,mem_lap 
+2473 20402273 call g24_update_addr_and_synccrc8 
+2474 20402262 call g24_ch 
+2475 202023dd branch g24_rx_interrupt_clear 
+
+g24_switch_work_mode:
+2476 7048c200 jam 0 ,mem_24g_ackpayload_enable 
+
+g24_work_mode_enable:
+2477 7048c700 jam dongle_work ,mem_24g_work_mode 
+2478 7048c600 jam clear_init ,mem_24g_mode_init 
+2479 20600000 rtn 
+
+g24_work_mode_start:
+247a 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+247b c1800000 rtnne dongle_work 
+247c 20402468 call g24_work_init 
+247d 2040252a call g24_ch_process 
+247e 202023ca branch g24_receive_packet_start 
+
+g24_bind_mode_auto:
+247f 4772c03c bpatchx patch3c_5 ,mem_patch3c 
+2480 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+2481 c1808000 rtnne dongle_bind 
+2482 2040232c call g24_bind_init 
+2483 2040233a call g24_bind_data_process 
+2484 6fe0c8c1 fetch 1 ,mem_24g_pair_mode 
+2485 247a0000 nrtn blank 
+2486 6fe0c888 fetch 1 ,mem_24g_bind_device_status 
+2487 207a0000 rtn blank 
+2488 7048c400 jam 0 ,mem_24g_mode_switch 
+2489 20402476 call g24_switch_work_mode 
+248a 20402419 call g24_enable_nodata_timer 
+248b 20202293 branch g24_timer_init 
+
+g24_search_mode_init:
+248c 6fe0c8c6 fetch 1 ,mem_24g_mode_init 
+248d c3838000 rtnbit1 dongle_search 
+248e 79207e07 set1 dongle_search ,pdata 
+248f 67e0c8c6 store 1 ,mem_24g_mode_init 
+2490 7048c800 jam 0 ,mem_24g_time_slice 
+2491 7048c201 jam 1 ,mem_24g_ackpayload_enable 
+2492 58000000 setarg 0 
+2493 67e1c8ee store 3 ,mem_rssi_noise_self_index 
+2494 67e3c8cb store 7 ,mem_24g_self_config_ch_once 
+2495 20402519 call g24_receiver_addr_check 
+2496 24628000 nrtn zero 
+2497 6fe0c842 fetch 1 ,mem_24g_current_ch_number 
+2498 67e0c8ca store 1 ,mem_24g_self_ch_number 
+2499 6fe0c841 fetch 1 ,mem_24g_ch 
+249a 67e0c8c9 store 1 ,mem_24g_self_last_ch 
+249b 20600000 rtn 
+
+g24_search_mode_auto:
+249c 4773403c bpatchx patch3c_6 ,mem_patch3c 
+249d 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+249e c1838000 rtnne dongle_search 
+249f 2040248c call g24_search_mode_init 
+24a0 204024c2 call g24_auto_addr_ch_search 
+24a1 2040240c call g24_receive_transmit_ack 
+24a2 2437a3dd nbranch g24_rx_interrupt_clear ,user3 
+24a3 20402519 call g24_receiver_addr_check 
+24a4 2042a3cc call g24_receive_packet_parse ,zero 
+24a5 6fe0c8bb fetch 1 ,mem_24g_abort_packet 
+24a6 205a2464 call g24_mode_b_s_switch_stop ,blank 
+24a7 7048c700 jam dongle_work ,mem_24g_work_mode 
+24a8 6fe0c8c6 fetch 1 ,mem_24g_mode_init 
+24a9 79207e00 set1 dongle_work ,pdata 
+24aa 67e0c8c6 store 1 ,mem_24g_mode_init 
+24ab 6fe0c8c2 fetch 1 ,mem_24g_ackpayload_enable 
+24ac 1fe67c02 sub pdata ,2 ,null 
+24ad 2442a517 ncall g24_ackpayload_disable ,zero 
+24ae 204023dd call g24_rx_interrupt_clear 
+24af 20402419 call g24_enable_nodata_timer 
+24b0 20402519 call g24_receiver_addr_check 
+24b1 2022a4bb branch g24_self_ch_num_reinit ,zero 
+24b2 6fe24843 fetch 4 ,mem_24g_addr 
+24b3 684a48e5 fetcht 4 ,mem_24g_device2_addr 
+24b4 98467c00 isub temp ,null 
+24b5 2022a4be branch g24_device2_ch_num_reinit ,zero 
+24b6 6fe24843 fetch 4 ,mem_24g_addr 
+24b7 684a48e1 fetcht 4 ,mem_24g_device1_addr 
+24b8 98467c00 isub temp ,null 
+24b9 2022a4c0 branch g24_device1_ch_num_reinit ,zero 
+24ba 20600000 rtn 
+
+g24_self_ch_num_reinit:
+24bb 6fe0c8ca fetch 1 ,mem_24g_self_ch_number 
+
+g24_current_ch_num_reinit:
+24bc 67e0c842 store 1 ,mem_24g_current_ch_number 
+24bd 20600000 rtn 
+
+g24_device2_ch_num_reinit:
+24be 6fe0c8d0 fetch 1 ,mem_24g_device2_ch_number 
+24bf 202024bc branch g24_current_ch_num_reinit 
+
+g24_device1_ch_num_reinit:
+24c0 6fe0c8cd fetch 1 ,mem_24g_device1_ch_number 
+24c1 202024bc branch g24_current_ch_num_reinit 
+
+g24_auto_addr_ch_search:
+24c2 6fe0c8c8 fetch 1 ,mem_24g_time_slice 
+24c3 1fe0fe01 increase 1 ,pdata 
+24c4 1fe17e03 and_into 3 ,pdata 
+24c5 67e0c8c8 store 1 ,mem_24g_time_slice 
+24c6 c00024e5 beq 0 ,g24_auto_bind_config_device2 
+24c7 c000a4ff beq 1 ,g24_auto_bind_config_self 
+24c8 c00124cb beq 2 ,g24_auto_bind_config_device1 
+24c9 c001a4ff beq 3 ,g24_auto_bind_config_self 
+24ca 20600000 rtn 
+
+g24_auto_bind_config_device1:
+24cb 20402359 call g24_bind_dvc1_payload_cfg 
+24cc 6fe248e1 fetch 4 ,mem_24g_device1_addr 
+24cd 203a24c2 branch g24_auto_addr_ch_search ,blank 
+24ce 20402273 call g24_update_addr_and_synccrc8 
+24cf 6fe0c8ce fetch 1 ,mem_24g_device1_config_ch_once 
+24d0 205a24e0 call g24_device1_config_ch_once ,blank 
+24d1 6fe0c8cc fetch 1 ,mem_24g_device1_last_ch 
+24d2 67e0c841 store 1 ,mem_24g_ch 
+24d3 6848c8ef fetcht 1 ,mem_rssi_noise_device1_index 
+24d4 6a2148f5 fetchr rega ,2 ,mem_rssi_noise_device1_buffer_ptr 
+24d5 204025ad call rssi_store 
+24d6 6048c8ef storet 1 ,mem_rssi_noise_device1_index 
+24d7 204025b5 call rssi_average 
+24d8 6048c8ec storet 1 ,mem_rssi_noise_device1_avg 
+24d9 18467c50 sub temp ,rssi_thresh_noise ,null 
+24da 24610000 nrtn positive 
+24db 6848c8cd fetcht 1 ,mem_24g_device1_ch_number 
+24dc 20402266 call g24_ch_map_size 
+24dd 6048c8cd storet 1 ,mem_24g_device1_ch_number 
+24de 67e0c8cc store 1 ,mem_24g_device1_last_ch 
+24df 20600000 rtn 
+
+g24_device1_config_ch_once:
+24e0 7048ce01 jam 1 ,mem_24g_device1_config_ch_once 
+24e1 d8400000 arg 0 ,temp 
+24e2 2040226a call g24_ch_calc 
+24e3 67e0c8cc store 1 ,mem_24g_device1_last_ch 
+24e4 20600000 rtn 
+
+g24_auto_bind_config_device2:
+24e5 2040235f call g24_bind_dvc2_payload_cfg 
+24e6 6fe248e5 fetch 4 ,mem_24g_device2_addr 
+24e7 203a24c2 branch g24_auto_addr_ch_search ,blank 
+24e8 20402273 call g24_update_addr_and_synccrc8 
+24e9 6fe0c8d1 fetch 1 ,mem_24g_device2_config_ch_once 
+24ea 205a24fa call g24_device2_config_ch_once ,blank 
+24eb 6fe0c8cf fetch 1 ,mem_24g_device2_last_ch 
+24ec 67e0c841 store 1 ,mem_24g_ch 
+24ed 6848c8f0 fetcht 1 ,mem_rssi_noise_device2_index 
+24ee 6a2148f7 fetchr rega ,2 ,mem_rssi_noise_device2_buffer_ptr 
+24ef 204025ad call rssi_store 
+24f0 6048c8f0 storet 1 ,mem_rssi_noise_device2_index 
+24f1 204025b5 call rssi_average 
+24f2 6048c8ed storet 1 ,mem_rssi_noise_device2_avg 
+24f3 18467c50 sub temp ,rssi_thresh_noise ,null 
+24f4 24610000 nrtn positive 
+24f5 6848c8d0 fetcht 1 ,mem_24g_device2_ch_number 
+24f6 20402266 call g24_ch_map_size 
+24f7 6048c8d0 storet 1 ,mem_24g_device2_ch_number 
+24f8 67e0c8cf store 1 ,mem_24g_device2_last_ch 
+24f9 20600000 rtn 
+
+g24_device2_config_ch_once:
+24fa 7048d101 jam 1 ,mem_24g_device2_config_ch_once 
+24fb d8400000 arg 0 ,temp 
+24fc 2040226a call g24_ch_calc 
+24fd 67e0c8cf store 1 ,mem_24g_device2_last_ch 
+24fe 20600000 rtn 
+
+g24_auto_bind_config_self:
+24ff 20402359 call g24_bind_dvc1_payload_cfg 
+2500 6fe240a8 fetch 4 ,mem_lap 
+2501 20402273 call g24_update_addr_and_synccrc8 
+2502 6fe0c8cb fetch 1 ,mem_24g_self_config_ch_once 
+2503 205a2513 call g24_self_config_ch_once ,blank 
+2504 6fe0c8c9 fetch 1 ,mem_24g_self_last_ch 
+2505 67e0c841 store 1 ,mem_24g_ch 
+2506 6848c8ee fetcht 1 ,mem_rssi_noise_self_index 
+2507 6a2148f3 fetchr rega ,2 ,mem_rssi_noise_self_buffer_ptr 
+2508 204025ad call rssi_store 
+2509 6048c8ee storet 1 ,mem_rssi_noise_self_index 
+250a 204025b5 call rssi_average 
+250b 6048c8eb storet 1 ,mem_rssi_noise_self_avg 
+250c 18467c50 sub temp ,rssi_thresh_noise ,null 
+250d 24610000 nrtn positive 
+250e 6848c8ca fetcht 1 ,mem_24g_self_ch_number 
+250f 20402266 call g24_ch_map_size 
+2510 6048c8ca storet 1 ,mem_24g_self_ch_number 
+2511 67e0c8c9 store 1 ,mem_24g_self_last_ch 
+2512 20600000 rtn 
+
+g24_self_config_ch_once:
+2513 7048cb01 jam 1 ,mem_24g_self_config_ch_once 
+2514 6fe0c8c9 fetch 1 ,mem_24g_self_last_ch 
+2515 67e0c841 store 1 ,mem_24g_ch 
+2516 20600000 rtn 
+
+g24_ackpayload_disable:
+2517 7048c200 jam 0 ,mem_24g_ackpayload_enable 
+2518 20600000 rtn 
+
+g24_receiver_addr_check:
+2519 6fe24843 fetch 4 ,mem_24g_addr 
+251a 684a40a8 fetcht 4 ,mem_lap 
+251b 98467c00 isub temp ,null 
+251c 20600000 rtn 
+
+g24_nodata_process:
+251d 6fe0c8c2 fetch 1 ,mem_24g_ackpayload_enable 
+251e c1010000 rtneq 2 
+251f 6fe0c8c5 fetch 1 ,mem_24g_nodata_timer_enable 
+2520 207a0000 rtn blank 
+2521 d8e00008 arg timer_nodata ,queue 
+2522 20407cb6 call timer_check 
+2523 247a0000 nrtn blank 
+2524 7048c500 jam 0 ,mem_24g_nodata_timer_enable 
+2525 7048d300 jam 0 ,mem_24g_bind_mode_continue 
+2526 20402439 call g24_mode_b_s_switch_init 
+
+g24_search_mode_enable:
+2527 7048c707 jam dongle_search ,mem_24g_work_mode 
+2528 7048c600 jam clear_init ,mem_24g_mode_init 
+2529 202023dd branch g24_rx_interrupt_clear 
+
+g24_ch_process:
+252a 6fe0c8bb fetch 1 ,mem_24g_abort_packet 
+252b c000a5eb beq 1 ,rssi_noise_monitor 
+252c 6fe0c8c3 fetch 1 ,mem_24g_hop_packet 
+252d c000a53d beq 1 ,g24_ch_receive_hop_pac 
+252e 684a48bc fetcht 4 ,mem_24g_hop_btclk 
+252f 1c427e00 copy clkn_bt ,pdata 
+2530 98467c00 isub temp ,null 
+2531 24412290 ncall g24_timer_timeout ,positive 
+2532 1fe22400 copy pdata ,regb 
+2533 6fe248bc fetch 4 ,mem_24g_hop_btclk 
+2534 6848c8c0 fetcht 1 ,mem_24g_hop_interval 
+2535 98408400 iadd temp ,temp 
+2536 1a427e00 copy regb ,pdata 
+2537 98467c00 isub temp ,null 
+2538 24610000 nrtn positive 
+2539 793ffe1c set0 28 ,pdata 
+253a 67e248bc store 4 ,mem_24g_hop_btclk 
+253b 7048bb01 jam 1 ,mem_24g_abort_packet 
+253c 20202262 branch g24_ch 
+
+g24_ch_receive_hop_pac:
+253d 7048c300 jam 0 ,mem_24g_hop_packet 
+253e 20202262 branch g24_ch 
+
+g24_ch_timer_reinit:
+253f 1c427e00 copy clkn_bt ,pdata 
+2540 67e248bc store 4 ,mem_24g_hop_btclk 
+2541 20600000 rtn 
+
+g24_reconn_timeout_timer:
+2542 da60488f arg mem_24g_reconn_timeout ,regc 
+2543 da402666 arg g24_stop_24g_mode ,regb 
+2544 202031d6 branch timer_single_step_2b 
+
+g24_reconn_start:
+2545 4773c03c bpatchx patch3c_7 ,mem_patch3c 
+2546 79200026 set1 mark_24g ,mark 
+2547 6fe0c8a9 fetch 1 ,mem_24g_conn_sm 
+2548 793ffe01 set0 state_24g_pair ,pdata 
+2549 79207e02 set1 state_24g_reconn ,pdata 
+254a 67e0c8a9 store 1 ,mem_24g_conn_sm 
+254b 6fe0c894 fetch 1 ,mem_24g_fast_conn_enable 
+254c 203a255a branch g24_reconn_receiver_addr ,blank 
+254d 6fe0c893 fetch 1 ,mem_24g_reconn_type 
+254e c000a552 beq fast_conn_and_receiver ,g24_reconn_fast_conn 
+254f c0012552 beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn 
+2550 c001a561 beq receiver_and_3_0_addr ,g24_reconn_device_3_0_addr 
+2551 c0022561 beq pair_and_3_0_addr ,g24_reconn_device_3_0_addr 
+
+g24_reconn_fast_conn:
+2552 6fe0c884 fetch 1 ,mem_24g_pair_tx_power 
+2553 67e0c1eb store 1 ,mem_tx_power 
+2554 6848c89d fetcht 1 ,mem_24g_fast_conn_temp_ch 
+2555 6048c842 storet 1 ,mem_24g_current_ch_number 
+2556 6fe24895 fetch 4 ,mem_24g_fast_conn_addr 
+2557 2040256a call g24_ch_syncword_crc8_init 
+2558 6048c89d storet 1 ,mem_24g_fast_conn_temp_ch 
+2559 20600000 rtn 
+
+g24_reconn_receiver_addr:
+255a 7041eb03 jam tx_power_3db ,mem_tx_power 
+255b 6848c89e fetcht 1 ,mem_24g_receiver_temp_ch 
+255c 6048c842 storet 1 ,mem_24g_current_ch_number 
+255d 6fe24899 fetch 4 ,mem_24g_receiver_addr 
+255e 2040256a call g24_ch_syncword_crc8_init 
+255f 6048c89e storet 1 ,mem_24g_receiver_temp_ch 
+2560 20600000 rtn 
+
+g24_reconn_device_3_0_addr:
+2561 7041eb03 jam tx_power_3db ,mem_tx_power 
+2562 6848c89f fetcht 1 ,mem_24g_device_temp_ch 
+2563 6048c842 storet 1 ,mem_24g_current_ch_number 
+2564 6fe248b1 fetch 4 ,mem_24g_device_addr 
+2565 2040256a call g24_ch_syncword_crc8_init 
+2566 6048c89f storet 1 ,mem_24g_device_temp_ch 
+2567 20600000 rtn 
+
+g24_store_receiver_addr:
+2568 6fe24813 fetch 4 ,mem_24g_rxpayload + 2 
+2569 67e24899 store 4 ,mem_24g_receiver_addr 
+
+g24_ch_syncword_crc8_init:
+256a 20402273 call g24_update_addr_and_synccrc8 
+256b 20202262 branch g24_ch 
+
+g24_reconn_dispatch:
+256c 4774403d bpatchx patch3d_0 ,mem_patch3d 
+256d 20402586 call g24_reconn_data_prep 
+256e 20402645 call g24_transmit_receive_ack 
+256f 242c258d nbranch g24_reconn_device_fail ,sync 
+2570 2437a58d nbranch g24_reconn_device_fail ,user3 
+2571 2040265c call g24_ackpayload_parse 
+
+g24_reconn_receiver_succ:
+2572 6fe0c8a9 fetch 1 ,mem_24g_conn_sm 
+2573 793ffe02 set0 state_24g_reconn ,pdata 
+2574 67e0c8a9 store 1 ,mem_24g_conn_sm 
+2575 58000000 setarg 0 
+2576 67e1488b store 2 ,mem_24g_pair_timeout 
+2577 67e14891 store 2 ,mem_24g_reconn_count 
+2578 67e1488f store 2 ,mem_24g_reconn_timeout 
+2579 6fe2487f fetch 4 ,mem_24g_pair_addr 
+257a 684a4843 fetcht 4 ,mem_24g_addr 
+257b 98467c00 isub temp ,null 
+257c 2022a2c5 branch g24_pair_start ,zero 
+257d 6fe248b1 fetch 4 ,mem_24g_device_addr 
+257e 684a4843 fetcht 4 ,mem_24g_addr 
+257f 98467c00 isub temp ,null 
+2580 2042a568 call g24_store_receiver_addr ,zero 
+
+g24_reconn_attempt_success:
+2581 70095b3c jam bt_evt_24g_attempt_success ,mem_fifo_temp 
+2582 204077a7 call ui_ipc_send_event 
+
+g24_txbuf_clear:
+2583 df200004 arg 4 ,loopcnt 
+2584 d8a047cd arg mem_24g_txbuf ,contw 
+2585 20207c59 branch memset0 
+
+g24_reconn_data_prep:
+2586 7047cdff jam datatype_attemp ,mem_24g_txbuf 
+2587 6fe0c83d fetch 1 ,mem_24g_data_type 
+2588 67e0c7ce store 1 ,mem_24g_txbuf + 1 
+2589 6fe248b1 fetch 4 ,mem_24g_device_addr 
+258a 67e247cf store 4 ,mem_24g_txbuf + 2 
+258b 70483c06 jam 6 ,mem_24g_datalen 
+258c 20202228 branch g24_transmit_prep 
+
+g24_reconn_device_fail:
+258d 6fe0c894 fetch 1 ,mem_24g_fast_conn_enable 
+258e 203a2262 branch g24_ch ,blank 
+258f 6fe14891 fetch 2 ,mem_24g_reconn_count 
+2590 1fe0fe01 increase 1 ,pdata 
+2591 67e14891 store 2 ,mem_24g_reconn_count 
+2592 2feffe03 isolate1 3 ,pdata 
+2593 6fe0c893 fetch 1 ,mem_24g_reconn_type 
+2594 c000a599 beq fast_conn_and_receiver ,g24_reconn_fast_conn_and_receiver 
+2595 c001259b beq fast_conn_and_3_0_addr ,g24_reconn_fast_conn_and_3_0 
+2596 c001a59d beq receiver_and_3_0_addr ,g24_reconn_receiver_and_3_0 
+2597 c002259f beq pair_and_3_0_addr ,g24_reconn_pair_and_3_0 
+2598 2020255a branch g24_reconn_receiver_addr 
+
+g24_reconn_fast_conn_and_receiver:
+2599 2020a55a branch g24_reconn_receiver_addr ,true 
+259a 20202552 branch g24_reconn_fast_conn 
+
+g24_reconn_fast_conn_and_3_0:
+259b 2020a561 branch g24_reconn_device_3_0_addr ,true 
+259c 20202552 branch g24_reconn_fast_conn 
+
+g24_reconn_receiver_and_3_0:
+259d 2020a561 branch g24_reconn_device_3_0_addr ,true 
+259e 2020255a branch g24_reconn_receiver_addr 
+
+g24_reconn_pair_and_3_0:
+259f 2020a2d0 branch g24_pair_init_param ,true 
+25a0 20202561 branch g24_reconn_device_3_0_addr 
+
+g24_data_attemp:
+25a1 6fe0c89c fetch 1 ,mem_24g_rxdata_temp + 3 
+25a2 c000a5a5 beq datatype_device1 ,g24_data_attemp_device1 
+25a3 c00125a9 beq datatype_device2 ,g24_data_attemp_device2 
+25a4 20600000 rtn 
+
+g24_data_attemp_device1:
+25a5 6fe2489d fetch 4 ,mem_24g_rxdata_temp + 4 
+25a6 67e248dd store 4 ,mem_24g_transmitter_addr 
+
+g24_store_device1_addr:
+25a7 67e248e1 store 4 ,mem_24g_device1_addr 
+25a8 20600000 rtn 
+
+g24_data_attemp_device2:
+25a9 6fe2489d fetch 4 ,mem_24g_rxdata_temp + 4 
+25aa 67e248dd store 4 ,mem_24g_transmitter_addr 
+
+g24_store_device2_addr:
+25ab 67e248e5 store 4 ,mem_24g_device2_addr 
+25ac 20600000 rtn 
+
+rssi_store:
+25ad 1a227e00 copy rega ,pdata 
+25ae 98408a00 iadd temp ,contw 
+25af 6fe08018 fetch 1 ,mem_rssi 
+25b0 e7e08005 istore 1 ,contw 
+25b1 18408401 increase 1 ,temp 
+25b2 6fe0c885 fetch 1 ,mem_rssi_buff_index 
+25b3 98410400 iand temp ,temp 
+25b4 20600000 rtn 
+
+rssi_average:
+25b5 6fe0c885 fetch 1 ,mem_rssi_buff_index 
+25b6 1fe0fe01 increase 1 ,pdata 
+25b7 67e10987 store 2 ,mem_loopcnt 
+25b8 1fe27200 copy pdata ,loopcnt 
+25b9 1a220c00 copy rega ,contr 
+25ba dfe00000 arg 0 ,pdata 
+
+rssi_average_loop:
+25bb e8408006 ifetcht 1 ,contr 
+25bc 9840fe00 iadd temp ,pdata 
+25bd c20025bb loop rssi_average_loop 
+25be 68490987 fetcht 2 ,mem_loopcnt 
+25bf 9846fc00 idiv temp 
+25c0 20407d31 call wait_div_end 
+25c1 18078400 quotient temp 
+25c2 c6138000 rtnmark1 mark_24g_rxmode 
+25c3 18427e00 copy temp ,pdata 
+25c4 c6930000 rtnmark0 mark_24g 
+25c5 20401295 call bcd 
+25c6 1fe20400 copy pdata ,temp 
+25c7 20600000 rtn 
+
+save_rssi_dec:
+25c8 2040127d call save_rssi 
+25c9 20201291 branch rssi_hex2dec 
+
+rssi_transmitter_buff_init:
+25ca 6fe148a1 fetch 2 ,mem_rssi_signal_buf_ptr 
+25cb 202025de branch rssi_buff_clear 
+
+rssi_signal:
+25cc 1fe22200 copy pdata ,rega 
+25cd 6848c8a0 fetcht 1 ,mem_rssi_signal_index 
+25ce 6fe148a1 fetch 2 ,mem_rssi_signal_buf_ptr 
+25cf 98408a00 iadd temp ,contw 
+25d0 1a227e00 copy rega ,pdata 
+25d1 e7e08005 istore 1 ,contw 
+25d2 18408401 increase 1 ,temp 
+25d3 6fe0c885 fetch 1 ,mem_rssi_buff_index 
+25d4 98410400 iand temp ,temp 
+25d5 6048c8a0 storet 1 ,mem_rssi_signal_index 
+25d6 20600000 rtn 
+
+rssi_receiver_buff_init:
+25d7 6fe148f1 fetch 2 ,mem_rssi_noise_buffer_ptr 
+25d8 204025de call rssi_buff_clear 
+25d9 6fe148f3 fetch 2 ,mem_rssi_noise_self_buffer_ptr 
+25da 204025de call rssi_buff_clear 
+25db 6fe148f5 fetch 2 ,mem_rssi_noise_device1_buffer_ptr 
+25dc 204025de call rssi_buff_clear 
+25dd 6fe148f7 fetch 2 ,mem_rssi_noise_device2_buffer_ptr 
+
+rssi_buff_clear:
+25de 207a0000 rtn blank 
+25df 1fe20a00 copy pdata ,contw 
+25e0 6fe0c885 fetch 1 ,mem_rssi_buff_index 
+25e1 1fe0fe01 increase 1 ,pdata 
+25e2 1fe27200 copy pdata ,loopcnt 
+25e3 20207c68 branch clear_mem 
+
+rssi_noise:
+25e4 204025c8 call save_rssi_dec 
+25e5 207a0000 rtn blank 
+25e6 6848c8ea fetcht 1 ,mem_rssi_noise_index 
+25e7 6a2148f1 fetchr rega ,2 ,mem_rssi_noise_buffer_ptr 
+25e8 204025ad call rssi_store 
+25e9 6048c8ea storet 1 ,mem_rssi_noise_index 
+25ea 20600000 rtn 
+
+rssi_noise_monitor:
+25eb 6a2148f1 fetchr rega ,2 ,mem_rssi_noise_buffer_ptr 
+25ec 204025b5 call rssi_average 
+25ed 6048c8e9 storet 1 ,mem_rssi_noise_avg 
+25ee 18467c50 sub temp ,rssi_thresh_noise ,null 
+25ef 24610000 nrtn positive 
+25f0 20202262 branch g24_ch 
+
+g24_transmit_init:
+25f1 6fe240a8 fetch 4 ,mem_lap 
+25f2 67e248b1 store 4 ,mem_24g_device_addr 
+25f3 204022b1 call g24_rx_window_init 
+25f4 202025ca branch rssi_transmitter_buff_init 
+
+g24_interval_param_4ms:
+25f5 58002fb2 setarg g24_4ms_interval_param 
+25f6 67e1c8b5 store 3 ,mem_24g_short_sleep_set 
+25f7 58100c0c setarg 0x100c0c 
+25f8 67e1c85b store 3 ,mem_24g_interval 
+25f9 5800bb80 setarg 0x00bb80 
+25fa 67e1c8b8 store 3 ,mem_24g_long_sleep_set 
+25fb 7048ce05 jam 5 ,mem_24g_fast_hop_count 
+25fc 20600000 rtn 
+
+g24_interval_param_8ms:
+25fd 5800f80c setarg g24_8ms_interval_param 
+25fe 67e1c8b5 store 3 ,mem_24g_short_sleep_set 
+25ff 581c1919 setarg 0x1c1919 
+2600 67e1c85b store 3 ,mem_24g_interval 
+2601 58017700 setarg 0x017700 
+2602 67e1c8b8 store 3 ,mem_24g_long_sleep_set 
+2603 7048ce0b jam 11 ,mem_24g_fast_hop_count 
+2604 20600000 rtn 
+
+g24_transmit_dispatch:
+2605 c6930000 rtnmark0 mark_24g 
+2606 6fe0c8a9 fetch 1 ,mem_24g_conn_sm 
+2607 c280a2d7 bbit1 state_24g_pair ,g24_pair_dispatch 
+2608 c281256c bbit1 state_24g_reconn ,g24_reconn_dispatch 
+2609 6fe0c8c5 fetch 1 ,mem_24g_transmit_by_interrupt 
+260a c000a6ad beq g24_tx_timer_int_enable ,g24_transmit_by_interrupt 
+
+g24_transmit_no_interrupt:
+260b 4774c03d bpatchx patch3d_1 ,mem_patch3d 
+260c 2040261b call g24_txdata_prep 
+260d 2434268b nbranch g24_nodata_transmit ,user 
+
+g24_transmit_start:
+260e 20402630 call g24_transmit_process 
+260f 204026d5 call power_ctrl_start 
+2610 6fe0c09a fetch 1 ,mem_device_option 
+2611 c0044709 beq dvc_op_mouse ,mouse_24g_transmit_start 
+
+g24_transmit_start_next:
+2612 6fe448b8 fetch 8 ,mem_24g_long_sleep_set 
+2613 67e44863 store 8 ,mem_24g_enter_hibernate 
+2614 6fe148ca fetch 2 ,mem_24g_long_sleep_param_update_timer_init 
+2615 67e148cc store 2 ,mem_24g_long_sleep_param_update_timer 
+
+g24_short_sleep:
+2616 204026a4 call g24_lpm_wait 
+2617 24740000 nrtn user 
+2618 20407f1a call clear_wake 
+2619 6fe1c8b5 fetch 3 ,mem_24g_short_sleep_set 
+261a 202026a1 branch g24_long_seep2 
+
+g24_txdata_prep:
+261b 2040261e call g24_package_data 
+261c 24740000 nrtn user 
+261d 20202228 branch g24_transmit_prep 
+
+g24_package_data:
+261e 6fe148a3 fetch 2 ,mem_cb_24g_transmit_data 
+261f 20407d47 call callback_func 
+2620 20342624 branch g24_accumulate_data ,user 
+2621 6fe3c7ce fetch 7 ,mem_24g_txbuf + 1 
+2622 207a0000 rtn blank 
+2623 20207d92 branch enable_user 
+
+g24_accumulate_data:
+2624 7048af00 jam 0 ,mem_24g_abort_pac 
+2625 1a20fe01 add rega ,1 ,pdata 
+2626 67e0c83c store 1 ,mem_24g_datalen 
+2627 2040262c call g24_transmit_rf_ctrl_clear 
+2628 67e0c7cd store 1 ,mem_24g_txbuf 
+2629 1a420c00 copy regb ,contr 
+262a 1a227200 copy rega ,loopcnt 
+262b 20207ca1 branch memcpy 
+
+g24_transmit_rf_ctrl_clear:
+262c 6fe0c83d fetch 1 ,mem_24g_data_type 
+262d 1fe17e07 and_into bits_data ,pdata 
+262e 67e0c83d store 1 ,mem_24g_data_type 
+262f 20600000 rtn 
+
+g24_transmit_process:
+2630 7048ae00 jam 0 ,mem_24g_retry 
+
+g24_transmit_loop:
+2631 6961015f fetchr timeup ,2 ,mem_param_rx_setup 
+2632 34730200 until clkn_rt ,meet 
+2633 20402645 call g24_transmit_receive_ack 
+2634 6fe0c833 fetch 1 ,mem_24g_no_ack 
+2635 c000a63b beq no_ack_24g ,g24_transmit_no_ack 
+2636 242c2653 nbranch g24_retransmit ,sync 
+2637 2437a653 nbranch g24_retransmit ,user3 
+2638 2040265c call g24_ackpayload_parse 
+2639 6fe0c09a fetch 1 ,mem_device_option 
+263a c0044705 beq dvc_op_mouse ,mouse_wakeup_24g 
+
+g24_transmit_no_ack:
+263b 20402707 call power_ctrl_pac_succ_incrs 
+
+g24_transmit_next_packet:
+263c 20402583 call g24_txbuf_clear 
+263d 6fe0c832 fetch 1 ,mem_24g_pid 
+263e 1fe0fe01 increase 1 ,pdata 
+263f 67e0c832 store 1 ,mem_24g_pid 
+2640 2040267e call g24_hop_enable_packet 
+
+g24_transmit_abandon:
+2641 58000000 setarg 0 
+2642 67e0c8aa store 1 ,mem_24g_ensure 
+2643 67e148ab store 2 ,mem_24g_txfail_cnt 
+2644 20600000 rtn 
+
+g24_transmit_receive_ack:
+2645 7857fc00 disable user3 
+2646 204021d9 call g24_transmit 
+2647 6fe0c833 fetch 1 ,mem_24g_no_ack 
+2648 c000a1d2 beq no_ack_24g ,g24_end_of_packet 
+2649 18002a00 force 0 ,radio_ctrl 
+264a 6fe24843 fetch 4 ,mem_24g_addr 
+264b 98001200 iforce access 
+264c 204010ac call calc_mod_value_scale_le 
+264d 68488017 fetcht 1 ,mem_last_freq 
+264e 2040118b call set_freq_rx 
+264f 204011a2 call rf_rx_enable 
+2650 20402171 call g24_receive_rxon 
+2651 2057a1d2 call g24_end_of_packet ,user3 
+2652 20600000 rtn 
+
+g24_retransmit:
+2653 6fe0c8af fetch 1 ,mem_24g_abort_pac 
+2654 247a0000 nrtn blank 
+2655 6fe148ab fetch 2 ,mem_24g_txfail_cnt 
+2656 1fe0fe01 increase 1 ,pdata 
+2657 67e148ab store 2 ,mem_24g_txfail_cnt 
+2658 6fe0c8ac fetch 1 ,mem_24g_txfail_cnt + 1 
+2659 c2822663 bbit1 4 ,g24_tx_attempt_fail 
+265a 20402668 call g24_transmit_hop_process 
+265b 20202631 branch g24_transmit_loop 
+
+g24_ackpayload_parse:
+265c 20402255 call g24_read_len_pid_crc 
+265d 6fe0c831 fetch 1 ,mem_24g_rxdata_length 
+265e 207a0000 rtn blank 
+265f 98007200 iforce loopcnt 
+2660 d8c047ad arg mem_24g_rxbuf + 2 ,contr 
+2661 d8a04811 arg mem_24g_rxpayload ,contw 
+2662 20207ca1 branch memcpy 
+
+g24_tx_attempt_fail:
+2663 58000000 setarg 0 
+2664 67e148ab store 2 ,mem_24g_txfail_cnt 
+2665 7048ad01 jam 1 ,mem_24g_attempt_fail_flag 
+
+g24_stop_24g_mode:
+2666 70095b3a jam bt_evt_24g_attempt_fail ,mem_fifo_temp 
+2667 202077a7 branch ui_ipc_send_event 
+
+g24_transmit_hop_process:
+2668 4775403d bpatchx patch3d_2 ,mem_patch3d 
+2669 6848c8ae fetcht 1 ,mem_24g_retry 
+266a 6fe0c8ce fetch 1 ,mem_24g_fast_hop_count 
+266b 98467c00 isub temp ,null 
+266c 24212686 nbranch g24_tx_fast_hop ,positive 
+266d 18408401 increase 1 ,temp 
+266e 6048c8ae storet 1 ,mem_24g_retry 
+266f 6fe0c8ce fetch 1 ,mem_24g_fast_hop_count 
+2670 c002a675 beq 5 ,g24_transmit_hop_process_4ms 
+2671 6fe0c8ae fetch 1 ,mem_24g_retry 
+2672 c0032680 beq 6 ,g24_hop_ch_disable 
+2673 c0062680 beq 12 ,g24_hop_ch_disable 
+2674 20600000 rtn 
+
+g24_transmit_hop_process_4ms:
+2675 6fe0c8ae fetch 1 ,mem_24g_retry 
+2676 c001a680 beq 3 ,g24_hop_ch_disable 
+2677 c0032680 beq 6 ,g24_hop_ch_disable 
+2678 20600000 rtn 
+
+g24_hop_ch_enable:
+
+g24_txpayload_type_update:
+2679 c517a67c bmark1 mark_ble_lr ,g24_lr_type_update 
+267a 67e0c7ee store 1 ,mem_24g_txpayload + offset_data_type 
+267b 20600000 rtn 
+
+g24_lr_type_update:
+267c 67e0c7ef store 1 ,mem_24g_txpayload + offset_lr_data_type 
+267d 20600000 rtn 
+
+g24_hop_enable_packet:
+267e 6fe0c83d fetch 1 ,mem_24g_data_type 
+267f c4020000 rtnbit0 bit_hop 
+
+g24_hop_ch_disable:
+2680 6fe0c83d fetch 1 ,mem_24g_data_type 
+2681 793ffe04 set0 bit_hop ,pdata 
+2682 67e0c83d store 1 ,mem_24g_data_type 
+2683 20402679 call g24_txpayload_type_update 
+2684 2040270b call power_ctrl_pac_succ_decrs 
+2685 20202262 branch g24_ch 
+
+g24_tx_fast_hop:
+2686 204026fb call power_ctrl_txpower_incrs 
+2687 2040270b call power_ctrl_pac_succ_decrs 
+2688 20202262 branch g24_ch 
+
+g24_search_receiver:
+2689 6fe148a5 fetch 2 ,mem_cb_24g_search_receiver 
+268a 20207d47 branch callback_func 
+
+g24_nodata_transmit:
+268b 6fe0c8af fetch 1 ,mem_24g_abort_pac 
+268c 205a2690 call g24_send_abort_packet ,blank 
+268d 204026b7 call g24_transmit_by_interrupt_exit 
+268e 20402689 call g24_search_receiver 
+268f 2020269e branch g24_long_sleep 
+
+g24_send_abort_packet:
+2690 70483d01 jam type_ms ,mem_24g_data_type 
+2691 7048af01 jam 1 ,mem_24g_abort_pac 
+2692 2040262c call g24_transmit_rf_ctrl_clear 
+2693 67e0c7cd store 1 ,mem_24g_txbuf 
+2694 58000000 setarg 0 
+2695 67e3c7ce store 7 ,mem_24g_txbuf + 1 
+2696 6fe248b1 fetch 4 ,mem_24g_device_addr 
+2697 67e247d5 store 4 ,mem_24g_txbuf + 8 
+2698 70483c0c jam 12 ,mem_24g_datalen 
+2699 6fe0c83d fetch 1 ,mem_24g_data_type 
+269a 79207e03 set1 bit_abort ,pdata 
+269b 67e0c83d store 1 ,mem_24g_data_type 
+269c 20402228 call g24_transmit_prep 
+269d 2020260e branch g24_transmit_start 
+
+g24_long_sleep:
+269e 204026a4 call g24_lpm_wait 
+269f 24740000 nrtn user 
+26a0 6fe44863 fetch 8 ,mem_24g_enter_hibernate 
+
+g24_long_seep2:
+26a1 20407cec call clk2lpo 
+26a2 604a4160 storet 4 ,mem_sleep_counter 
+26a3 20201445 branch lpm_sleep 
+
+g24_lpm_wait:
+26a4 4775c03d bpatchx patch3d_3 ,mem_patch3d 
+26a5 78347c00 enable user 
+26a6 20401417 call lpo_calibration 
+26a7 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+26a8 203a7d94 branch disable_user ,blank 
+26a9 6fe0c099 fetch 1 ,mem_lpm_mode 
+26aa 203a7d94 branch disable_user ,blank 
+
+g24_setgpio_lpm_before:
+26ab 6fe148a7 fetch 2 ,mem_cb_24g_lpm_before 
+26ac 20207d47 branch callback_func 
+
+g24_transmit_by_interrupt:
+26ad 20402281 call g24_timer_check 
+26ae 24740000 nrtn user 
+26af 204026c2 call g24_interval_calibrate 
+26b0 6fe148c6 fetch 2 ,mem_24g_transmit_by_interrupt_exit_count 
+26b1 1fe0fe01 increase 1 ,pdata 
+26b2 67e148c6 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+26b3 684948c8 fetcht 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+26b4 98467c00 isub temp ,null 
+26b5 2042a6b7 call g24_transmit_by_interrupt_exit ,zero 
+26b6 2020260b branch g24_transmit_no_interrupt 
+
+g24_transmit_by_interrupt_exit:
+26b7 7048c500 jam g24_tx_timer_int_disable ,mem_24g_transmit_by_interrupt 
+26b8 58000000 setarg 0 
+26b9 67e148c6 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+26ba 58000064 setarg 100 
+26bb 67e148c8 store 2 ,mem_24g_transmit_by_interrupt_exit_count_init 
+
+g24_interval_min:
+26bc 7048c400 jam 0 ,mem_24g_pac_index 
+26bd 6fe0c85c fetch 1 ,mem_24g_interval_min 
+
+g24_interval_store:
+26be 67e0c85b store 1 ,mem_24g_interval 
+26bf 20600000 rtn 
+
+g24_interval_max:
+26c0 6fe0c85d fetch 1 ,mem_24g_interval_max 
+26c1 202026be branch g24_interval_store 
+
+g24_interval_calibrate:
+26c2 6fe0c8c4 fetch 1 ,mem_24g_pac_index 
+26c3 1fe0fe01 increase 1 ,pdata 
+26c4 67e0c8c4 store 1 ,mem_24g_pac_index 
+26c5 c00226c0 beq 4 ,g24_interval_max 
+26c6 c002a6bc beq 5 ,g24_interval_min 
+26c7 20600000 rtn 
+
+g24_transmit_by_interrupt_enable:
+26c8 7048c501 jam g24_tx_timer_int_enable ,mem_24g_transmit_by_interrupt 
+26c9 58000000 setarg 0 
+26ca 67e148c6 store 2 ,mem_24g_transmit_by_interrupt_exit_count 
+26cb 20600000 rtn 
+
+g24_factory_check:
+26cc df200002 arg 2 ,loopcnt 
+26cd d8c04843 arg mem_24g_addr ,contr 
+
+pdata_0xff_check:
+26ce 20407d92 call enable_user 
+26cf 5800ffff setarg 0xffff 
+
+pdata_0xff_check_loop:
+26d0 e8410006 ifetcht 2 ,contr 
+26d1 98467c00 isub temp ,null 
+26d2 2442fd94 ncall disable_user ,zero 
+26d3 c20026d0 loop pdata_0xff_check_loop 
+26d4 20600000 rtn 
+
+power_ctrl_start:
+26d5 4776403d bpatchx patch3d_4 ,mem_patch3d 
+26d6 6fe14793 fetch 2 ,mem_ui_state_map 
+26d7 c3858000 rtnbit1 ui_state_ble_adv 
+26d8 c3838000 rtnbit1 ui_state_bt_reconnect 
+26d9 c3830000 rtnbit1 ui_state_bt_discovery 
+26da 6a2148a1 fetchr rega ,2 ,mem_rssi_signal_buf_ptr 
+26db 204025b5 call rssi_average 
+26dc 6048c8cf storet 1 ,mem_rssi_avg_received 
+26dd 6fe0c8d4 fetch 1 ,mem_rssi_dis_max_24g 
+26de c51326e0 bmark1 mark_24g ,power_ctrl_start_next 
+26df 6fe0c8d7 fetch 1 ,mem_rssi_dis_max_ble 
+
+power_ctrl_start_next:
+26e0 98467c00 isub temp ,null 
+26e1 242126fa nbranch power_ctrl_txpower_incrs_force ,positive 
+26e2 6fe0c8d1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+26e3 1fe67c02 sub pdata ,2 ,null 
+26e4 242126e8 nbranch power_ctrl_txpower_decrs_check ,positive 
+26e5 6fe0c8d1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+26e6 c00026fb beq 0 ,power_ctrl_txpower_incrs 
+26e7 20600000 rtn 
+
+power_ctrl_txpower_decrs_check:
+26e8 6fe0c8d1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+26e9 6848c8d2 fetcht 1 ,mem_power_ctrl_pac_succ_cnt_init 
+26ea 98467c00 isub temp ,null 
+26eb 24628000 nrtn zero 
+26ec 7048d100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+power_ctrl_txpower_decrs:
+26ed 6848c8cf fetcht 1 ,mem_rssi_avg_received 
+26ee 6fe0c8d3 fetch 1 ,mem_rssi_dis_min_24g 
+26ef c51326f1 bmark1 mark_24g ,power_ctrl_txpower_decrs_next 
+26f0 6fe0c8d6 fetch 1 ,mem_rssi_dis_min_ble 
+
+power_ctrl_txpower_decrs_next:
+26f1 98467c00 isub temp ,null 
+26f2 24610000 nrtn positive 
+26f3 6fe0c8d0 fetch 1 ,mem_power_ctrl_level 
+26f4 c0002702 beq 0 ,power_ctrl_decrs_level0 
+26f5 1fe0ffff increase -1 ,pdata 
+26f6 67e0c8d0 store 1 ,mem_power_ctrl_level 
+26f7 c0002702 beq 0 ,power_ctrl_decrs_level0 
+
+power_ctrl_decrs_level1:
+
+power_ctrl_incrs_level1:
+26f8 7041eb00 jam tx_power_0db ,mem_tx_power 
+26f9 20600000 rtn 
+
+power_ctrl_txpower_incrs_force:
+26fa 7048d100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+
+power_ctrl_txpower_incrs:
+26fb 6fe0c8d0 fetch 1 ,mem_power_ctrl_level 
+26fc c0012700 beq 2 ,power_ctrl_incrs_level2 
+26fd 1fe0fe01 increase 1 ,pdata 
+26fe 67e0c8d0 store 1 ,mem_power_ctrl_level 
+26ff c000a6f8 beq 1 ,power_ctrl_incrs_level1 
+
+power_ctrl_incrs_level2:
+2700 7041eb06 jam tx_power_6db ,mem_tx_power 
+2701 20600000 rtn 
+
+power_ctrl_decrs_level0:
+2702 7041eb85 jam tx_power_f5db ,mem_tx_power 
+2703 20600000 rtn 
+
+power_ctrl_pac_succ_cnt_init:
+2704 7048d001 jam 1 ,mem_power_ctrl_level 
+2705 7048d100 jam 0 ,mem_power_ctrl_pac_succ_cnt 
+2706 20600000 rtn 
+
+power_ctrl_pac_succ_incrs:
+2707 6fe0c8d1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+2708 1fe0fe01 increase 1 ,pdata 
+2709 67e0c8d1 store 1 ,mem_power_ctrl_pac_succ_cnt 
+270a 20600000 rtn 
+
+power_ctrl_pac_succ_decrs:
+270b 6fe0c8d1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+270c 1fe67c02 sub pdata ,2 ,null 
+270d 24412713 ncall power_ctrl_pac_succ_cnt_reinit ,positive 
+270e 6fe0c8d1 fetch 1 ,mem_power_ctrl_pac_succ_cnt 
+270f c1000000 rtneq 0 
+2710 1fe0ffff increase -1 ,pdata 
+2711 67e0c8d1 store 1 ,mem_power_ctrl_pac_succ_cnt 
+2712 20600000 rtn 
+
+power_ctrl_pac_succ_cnt_reinit:
+2713 7048d103 jam 3 ,mem_power_ctrl_pac_succ_cnt 
+2714 20600000 rtn 
+
+ali_mesh_access_layer_resolve_message:
+2715 6fe08be0 fetch 1 ,mem_ccm_data_len 
+2716 67e089f6 store 1 ,mem_mesh_receive_model_message_payload_len 
+2717 1e020c00 copy alarm ,contr 
+2718 20407c4b call memcpy24 
+2719 2040276d call logging_tx_info_receive_access_message 
+271a 6fe149f3 fetch 2 ,mem_mesh_cb_receive_access_message 
+271b 20207d47 branch callback_func 
+
+ali_mesh_access_layer_check_access_message_opcode:
+271c 6fe089f7 fetch 1 ,mem_mesh_receive_model_message_payload_opcode 
+271d c0002724 beq mesh_message_opcode_config_appkey_add ,ali_mesh_access_layer_message_opcode_config_appkey_add 
+271e c0402d75 beq mesh_configuration_and_health_message_opcode_header ,ali_mesh_access_layer_config_or_health_message_opcode 
+271f c0412e75 beq mesh_module_message_opcode_header ,ali_mesh_model_layer_check_model_message_opcode 
+2720 c068a771 beq vendor_message_attr_set ,ali_mesh_ali_vendor_message_attribute_set 
+2721 c068278b beq vendor_message_attr_get ,ali_mesh_ali_vendor_message_opcode_attr_get 
+2722 c06aa78b beq vendor_message_attr_confirmation ,ali_mesh_ali_vendor_message_opcode_attr_confrimation 
+2723 20600000 rtn 
+
+ali_mesh_access_layer_message_opcode_config_appkey_add:
+2724 d8c009fb arg mem_mesh_receive_application_key ,contr 
+2725 d8a04b1d arg mem_mesh_application_key ,contw 
+2726 20407c4c call memcpy16 
+2727 70496f00 jam paired_status ,mem_mesh_provisioned_flag 
+2728 20402aee call ali_mesh_encrypt_base_function_k3 
+2729 20402ae0 call ali_mesh_encrypt_base_function_k4 
+272a 2040273f call ali_mesh_access_layer_finish_pairing_init_subscription_list 
+272b 20402730 call ali_mesh_accesss_layer_check_message_type 
+272c 20402735 call ali_mesh_access_layer_send_config_appkey_status 
+272d 70496f00 jam paired_status ,mem_mesh_provisioned_flag 
+272e 6fe149f5 fetch 2 ,mem_mesh_cb_receive_config_appkey_add 
+272f 20207d47 branch callback_func 
+
+ali_mesh_accesss_layer_check_message_type:
+2730 6fe08c3a fetch 1 ,mem_mesh_network_packet_type 
+2731 70496f04 jam received_config_appkey_add ,mem_mesh_provisioned_flag 
+2732 c1008000 rtneq mesh_message_app 
+2733 70496f00 jam paired_status ,mem_mesh_provisioned_flag 
+2734 20600000 rtn 
+
+ali_mesh_access_layer_send_config_appkey_status:
+2735 58000080 setarg mesh_configuration_and_health_message_opcode_header 
+2736 67e08a10 store 1 ,mem_mesh_access_layer_payload 
+2737 58000003 setarg mesh_message_opcode_config_config_model_publication_set 
+2738 e7e08005 istore 1 ,contw 
+2739 58000000 setarg status_code_success 
+273a e7e08005 istore 1 ,contw 
+273b 6fe189f8 fetch 3 ,mem_mesh_netkeyindex_and_appkeyindex 
+273c e7e18005 istore 3 ,contw 
+273d 700a0f06 jam 6 ,mem_mesh_access_layer_payload_len 
+273e 2020303d branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_access_layer_finish_pairing_init_subscription_list:
+273f 6fe14a19 fetch 2 ,mem_mesh_core_feature 
+2740 c3810000 rtnbit1 mesh_feature_disable_subscription 
+2741 20402df4 call mesh_get_element_info_config 
+
+ali_mesh_access_layer_finish_pairing_init_subscription_list_loop:
+2742 1a20a606 add rega ,element_device_subscription_label ,regc 
+2743 5fffffff setarg -1 
+2744 e7e40013 istore subscription_max_count ,regc 
+2745 e7e40005 istore subscription_max_count ,contw 
+2746 efe10011 ifetch 2 ,rega 
+2747 e7e10013 istore 2 ,regc 
+2748 1a427e00 copy regb ,pdata 
+2749 9a20a200 iadd rega ,rega 
+274a c2002742 loop ali_mesh_access_layer_finish_pairing_init_subscription_list_loop 
+274b 6fe14a15 fetch 2 ,mem_mesh_cb_subscriptuion_list_changed 
+274c 20207d47 branch callback_func 
+
+ali_mesh_access_layer_send_generic_onoff_status:
+274d 58000082 setarg mesh_module_message_opcode_header 
+274e 67e08a10 store 1 ,mem_mesh_access_layer_payload 
+274f 58000004 setarg mesh_module_message_opcode_generic_onoff_status_no_head 
+2750 e7e08005 istore 1 ,contw 
+2751 6fe089f9 fetch 1 ,mem_mesh_generic_onoff_set_payload_onoff 
+2752 e7e08005 istore 1 ,contw 
+2753 700a0f03 jam 3 ,mem_mesh_access_layer_payload_len 
+2754 2020303d branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_access_layer_send_light_lightness_status:
+2755 58000082 setarg mesh_module_message_opcode_header 
+2756 67e08a10 store 1 ,mem_mesh_access_layer_payload 
+2757 5800004e setarg mesh_module_message_opcode_light_lightness_status_no_head 
+2758 e7e08005 istore 1 ,contw 
+2759 6fe109f9 fetch 2 ,mem_mesh_light_lightness_set_payload_lightness 
+275a e7e10005 istore 2 ,contw 
+275b 700a0f04 jam 4 ,mem_mesh_access_layer_payload_len 
+275c 2020303d branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_access_layer_send_light_ctl_stauts:
+275d 58000082 setarg mesh_module_message_opcode_header 
+275e 67e08a10 store 1 ,mem_mesh_access_layer_payload 
+275f 58000060 setarg mesh_module_message_opcode_light_ctl_status_no_head 
+2760 e7e08005 istore 1 ,contw 
+2761 6fe209f9 fetch 4 ,mem_mesh_ctl_lightness 
+2762 e7e20005 istore 4 ,contw 
+2763 700a0f06 jam 6 ,mem_mesh_access_layer_payload_len 
+2764 2020303d branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_access_layer_send_scene_status:
+2765 5800005e setarg mesh_module_message_opcode_scene_status 
+2766 67e08a10 store 1 ,mem_mesh_access_layer_payload 
+2767 58000000 setarg mesh_success 
+2768 e7e08005 istore 1 ,contw 
+2769 6fe109f9 fetch 2 ,mem_mesh_scene_recall_payload_scene_number 
+276a e7e10005 istore 2 ,contw 
+276b 700a0f04 jam 4 ,mem_mesh_access_layer_payload_len 
+276c 2020303d branch ali_mesh_upper_transport_layer_send_access_message 
+
+logging_tx_info_receive_access_message:
+276d 6f208be0 fetchr loopcnt ,1 ,mem_ccm_data_len 
+276e 1e022200 copy alarm ,rega 
+276f da400050 arg mesh_access_receive_message ,regb 
+2770 202029c6 branch logging_tx_info 
+
+ali_mesh_ali_vendor_message_attribute_set:
+2771 2040278c call ali_mesh_ali_vendor_message_attrbute_check_company_id_and_tid 
+2772 24740000 nrtn user 
+2773 6fe109fb fetch 2 ,mem_mesh_vendor_message_attr_type 
+2774 d840f01f arg vendor_message_attr_type_time ,temp 
+2775 98467c00 isub temp ,null 
+2776 2022a7a0 branch ali_mesh_ali_vendor_message_opcode_timer_set_curr_time ,zero 
+2777 d840f010 arg vendor_message_attr_type_timing ,temp 
+2778 98467c00 isub temp ,null 
+2779 2022a7a4 branch ali_mesh_ali_vendor_message_opcode_timer_set_timing ,zero 
+277a d840f011 arg vendor_message_attr_type_cycle_timing ,temp 
+277b 98467c00 isub temp ,null 
+277c 2022a7ad branch ali_mesh_ali_vendor_message_opcode_timer_set_timing_cyclically ,zero 
+277d d840f012 arg vendor_message_attr_type_delete_timing ,temp 
+277e 98467c00 isub temp ,null 
+277f 2022a7b6 branch ali_mesh_ali_vendor_message_opcode_timer_delete_timing ,zero 
+2780 d8400534 arg vendor_message_attr_type_main_light ,temp 
+2781 98467c00 isub temp ,null 
+2782 2022a797 branch ali_mesh_ali_vendor_message_attribute_set_main_light ,zero 
+2783 d8400533 arg vendor_message_attr_type_background_light ,temp 
+2784 98467c00 isub temp ,null 
+2785 2022a79a branch ali_mesh_ali_vendor_message_attribute_set_background_light ,zero 
+2786 d8400123 arg vendor_message_attr_type_color ,temp 
+2787 98467c00 isub temp ,null 
+2788 2022a79d branch ali_mesh_ali_vendor_message_attribute_set_color ,zero 
+2789 6fe149f9 fetch 2 ,mem_mesh_cb_recv_vendor 
+278a 20207d47 branch callback_func 
+
+ali_mesh_ali_vendor_message_opcode_attr_get:
+
+ali_mesh_ali_vendor_message_opcode_attr_confrimation:
+278b 20600000 rtn 
+
+ali_mesh_ali_vendor_message_attrbute_check_company_id_and_tid:
+278c 20407d94 call disable_user 
+278d 6fe109f8 fetch 2 ,mem_mesh_vendor_message_cid 
+278e d84001a8 arg vendor_message_opcode_company_id ,temp 
+278f 98467c00 isub temp ,null 
+2790 24628000 nrtn zero 
+2791 6848c7ab fetcht 1 ,mem_mesh_vendor_mesh_receive_tid 
+2792 6fe089fa fetch 1 ,mem_mesh_vendor_message_tid 
+2793 98467c00 isub temp ,null 
+2794 20628000 rtn zero 
+2795 67e0c7ab store 1 ,mem_mesh_vendor_mesh_receive_tid 
+2796 20207d92 branch enable_user 
+
+ali_mesh_ali_vendor_message_attribute_set_main_light:
+2797 20402808 call ali_mesh_ali_vendor_message_ack_attr_status_uint8 
+2798 6fe14a09 fetch 2 ,mem_mesh_cb_main_light_onoff_set 
+2799 20207d47 branch callback_func 
+
+ali_mesh_ali_vendor_message_attribute_set_background_light:
+279a 20402808 call ali_mesh_ali_vendor_message_ack_attr_status_uint8 
+279b 6fe14a0b fetch 2 ,mem_mesh_cb_background_onoff_set 
+279c 20207d47 branch callback_func 
+
+ali_mesh_ali_vendor_message_attribute_set_color:
+279d 20402802 call ali_mesh_ali_vendor_message_ack_attr_status_uint48 
+279e 6fe14a0d fetch 2 ,mem_mesh_cb_color_set 
+279f 20207d47 branch callback_func 
+
+ali_mesh_ali_vendor_message_opcode_timer_set_curr_time:
+27a0 20402804 call ali_mesh_ali_vendor_message_ack_attr_status_uint32 
+27a1 6fe209fd fetch 4 ,mem_mesh_vendor_message_current_time 
+27a2 67e247ad store 4 ,mem_mesh_vendor_timer_current_time 
+27a3 20202839 branch ali_mesh_time_init_system_time 
+
+ali_mesh_ali_vendor_message_opcode_timer_set_timing:
+27a4 204027fe call ali_mesh_ali_vendor_message_ack_attr_status_uint64 
+27a5 204027cf call ali_mesh_ali_vendor_message_calc_timing_address 
+27a6 207a0000 rtn blank 
+27a7 6fe089fd fetch 1 ,mem_mesh_vendor_timer_timing_index 
+27a8 204027cb call ali_mesh_vendor_timer_buffer_offset_cal 
+27a9 684c09fd fetcht 8 ,mem_mesh_vendor_timer_timing_index 
+27aa e0440005 istoret 8 ,contw 
+
+ali_mesh_ali_vendor_message_cb_timing_changed:
+27ab 6fe14a17 fetch 2 ,mem_mesh_cb_vendor_timing_changed 
+27ac 20207d47 branch callback_func 
+
+ali_mesh_ali_vendor_message_opcode_timer_set_timing_cyclically:
+27ad 20402800 call ali_mesh_ali_vendor_message_ack_attr_status_uint56 
+27ae 204027cf call ali_mesh_ali_vendor_message_calc_timing_address 
+27af 207a0000 rtn blank 
+27b0 700a0459 jam timer_cyclical_falg ,mem_mesh_vendor_timer_timing_cyclic_flag 
+27b1 6fe089fd fetch 1 ,mem_mesh_vendor_timer_timing_index_cyclic 
+27b2 204027cb call ali_mesh_vendor_timer_buffer_offset_cal 
+27b3 6fe409fd fetch 8 ,mem_mesh_vendor_timer_timing_index_cyclic 
+27b4 e7e40005 istore 8 ,contw 
+27b5 202027ab branch ali_mesh_ali_vendor_message_cb_timing_changed 
+
+ali_mesh_ali_vendor_message_opcode_timer_delete_timing:
+27b6 204027c8 call ali_mesh_ali_vendor_message_opcode_timer_delete_timing_ack 
+27b7 204027cf call ali_mesh_ali_vendor_message_calc_timing_address 
+27b8 207a0000 rtn blank 
+27b9 6fe089fd fetch 1 ,mem_mesh_vendor_timer_timing_index 
+27ba 207a0000 rtn blank 
+27bb 204027cb call ali_mesh_vendor_timer_buffer_offset_cal 
+27bc d8400000 arg 0 ,temp 
+27bd e0408005 istoret 1 ,contw 
+27be 6fe089f6 fetch 1 ,mem_mesh_receive_model_message_payload_len 
+27bf 1fe67c08 sub pdata ,8 ,null 
+27c0 2042a7c2 call ali_mesh_ali_vendor_message_opcode_timer_delete_timing_delete_second ,zero 
+27c1 202027ab branch ali_mesh_ali_vendor_message_cb_timing_changed 
+
+ali_mesh_ali_vendor_message_opcode_timer_delete_timing_delete_second:
+27c2 204027cf call ali_mesh_ali_vendor_message_calc_timing_address 
+27c3 6fe089fe fetch 1 ,mem_mesh_vendor_timer_timing_index1 
+27c4 204027cb call ali_mesh_vendor_timer_buffer_offset_cal 
+27c5 d8400000 arg 0 ,temp 
+27c6 e0408005 istoret 1 ,contw 
+27c7 20600000 rtn 
+
+ali_mesh_ali_vendor_message_opcode_timer_delete_timing_ack:
+27c8 6fe089f6 fetch 1 ,mem_mesh_receive_model_message_payload_len 
+27c9 c003a808 beq 7 ,ali_mesh_ali_vendor_message_ack_attr_status_uint8 
+27ca 20202806 branch ali_mesh_ali_vendor_message_ack_attr_status_uint16 
+
+ali_mesh_vendor_timer_buffer_offset_cal:
+27cb 1fe0ffff pincrease -1 
+27cc 1fe9fe00 lshift3 pdata ,pdata 
+27cd 98a08a00 iadd contw ,contw 
+27ce 20600000 rtn 
+
+ali_mesh_ali_vendor_message_calc_timing_address:
+27cf 20402df4 call mesh_get_element_info_config 
+27d0 1a20a204 add rega ,element_device_vendor_time_ptr ,rega 
+27d1 6fe0ca31 fetch 1 ,mem_mesh_receive_element_number 
+27d2 9a4ffe00 imul32 regb ,pdata 
+27d3 9a20a200 iadd rega ,rega 
+27d4 efe10011 ifetch 2 ,rega 
+27d5 1fe20a00 copy pdata ,contw 
+27d6 20600000 rtn 
+
+ali_mesh_ali_vendor_message_status_add_head:
+27d7 580000d3 setarg vendor_message_attr_status 
+27d8 67e08a10 store 1 ,mem_mesh_access_layer_payload 
+27d9 580001a8 setarg vendor_message_opcode_company_id 
+27da e7e10005 istore 2 ,contw 
+27db 6fe0c7ab fetch 1 ,mem_mesh_vendor_mesh_receive_tid 
+27dc e7e08005 istore 1 ,contw 
+27dd e0410005 istoret 2 ,contw 
+27de 20600000 rtn 
+
+ali_mesh_ali_vendor_message_opcode_device_power_on:
+27df d8e00000 arg 0 ,queue 
+27e0 d8400003 arg vendor_message_event_device_power_on ,temp 
+27e1 da20f009 arg vendor_attr_type_event_trigger ,rega 
+27e2 20202810 branch ali_mesh_ali_vendor_message_opcode_para_uint8 
+
+ali_mesh_ali_vendor_message_opcode_generic_onoff:
+27e3 da200100 arg vendor_attr_generic_onoff_server ,rega 
+27e4 20202810 branch ali_mesh_ali_vendor_message_opcode_para_uint8 
+
+ali_mesh_ali_vendor_message_opcode_scene_server_first_element:
+27e5 d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_scene_server:
+27e6 da20f004 arg vendor_attr_scene_server ,rega 
+27e7 20202815 branch ali_mesh_ali_vendor_message_opcode_para_uint16 
+
+ali_mesh_ali_vendor_message_opcode_main_light_onoff_first_element:
+27e8 d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_main_light_onoff:
+27e9 da200534 arg vendor_attr_main_light_server ,rega 
+27ea 20202810 branch ali_mesh_ali_vendor_message_opcode_para_uint8 
+
+ali_mesh_ali_vendor_message_opcode_background_light_onoff_first_element:
+27eb d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_background_light_onoff:
+27ec da200533 arg vendor_attr_background_light_onoff_server ,rega 
+27ed 20202810 branch ali_mesh_ali_vendor_message_opcode_para_uint8 
+
+ali_mesh_ali_vendor_message_opcode_brightness_first_element:
+27ee d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_brightness:
+27ef 20402eab call ali_mesh_model_layer_message_calc_actual_lightness 
+27f0 da200121 arg vendor_attr_lightness_level_server ,rega 
+27f1 20202815 branch ali_mesh_ali_vendor_message_opcode_para_uint16 
+
+ali_mesh_ali_vendor_message_opcode_color_temperature_first_element:
+27f2 d8e00000 arg 0 ,queue 
+
+ali_mesh_ali_vendor_message_opcode_color_temperature:
+27f3 20402eb9 call ali_mesh_model_layer_message_calc_actual_temperature 
+27f4 da200122 arg vendor_attr_color_temperature_server ,rega 
+27f5 20202815 branch ali_mesh_ali_vendor_message_opcode_para_uint16 
+
+ali_mesh_ali_vendor_message_opcode_timing_finish:
+27f6 18438400 lshift temp ,temp 
+27f7 18418411 or temp ,vendor_message_event_finish_timing ,temp 
+27f8 da20f009 arg vendor_attr_type_event_trigger ,rega 
+27f9 20202815 branch ali_mesh_ali_vendor_message_opcode_para_uint16 
+
+ali_mesh_ali_vendor_message_indication_info_add_head_event_trigger:
+27fa 2040281c call ali_mesh_ali_vendor_message_indication_info_add_head 
+27fb 5800f009 setarg vendor_attr_type_event_trigger 
+27fc e7e10005 istore 2 ,contw 
+27fd 20600000 rtn 
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint64:
+27fe df200008 arg 8 ,loopcnt 
+27ff 2020280a branch ali_mesh_ali_vendor_message_ack_attr_status 
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint56:
+2800 df200008 arg 8 ,loopcnt 
+2801 2020280a branch ali_mesh_ali_vendor_message_ack_attr_status 
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint48:
+2802 df200006 arg 6 ,loopcnt 
+2803 2020280a branch ali_mesh_ali_vendor_message_ack_attr_status 
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint32:
+2804 df200004 arg 4 ,loopcnt 
+2805 2020280a branch ali_mesh_ali_vendor_message_ack_attr_status 
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint16:
+2806 df200002 arg 2 ,loopcnt 
+2807 2020280a branch ali_mesh_ali_vendor_message_ack_attr_status 
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint8:
+2808 df200001 arg 1 ,loopcnt 
+2809 2020280a branch ali_mesh_ali_vendor_message_ack_attr_status 
+
+ali_mesh_ali_vendor_message_ack_attr_status:
+280a 1f20fe06 add loopcnt ,6 ,pdata 
+280b 67e08a0f store 1 ,mem_mesh_access_layer_payload_len 
+280c 204027d7 call ali_mesh_ali_vendor_message_status_add_head 
+280d d8c009fd arg mem_mesh_vendor_attr_parameter ,contr 
+280e 20407ca1 call memcpy 
+280f 2020303d branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_ali_vendor_message_opcode_para_uint8:
+2810 2040281c call ali_mesh_ali_vendor_message_indication_info_add_head 
+2811 e2210005 istorer rega ,2 ,contw 
+2812 e0408005 istoret 1 ,contw 
+2813 700a0f07 jam 7 ,mem_mesh_access_layer_payload_len 
+2814 2020281a branch ali_mesh_ali_vendor_message_send_message 
+
+ali_mesh_ali_vendor_message_opcode_para_uint16:
+2815 2040281c call ali_mesh_ali_vendor_message_indication_info_add_head 
+2816 e2210005 istorer rega ,2 ,contw 
+2817 e0410005 istoret 2 ,contw 
+2818 700a0f08 jam 8 ,mem_mesh_access_layer_payload_len 
+2819 2020281a branch ali_mesh_ali_vendor_message_send_message 
+
+ali_mesh_ali_vendor_message_send_message:
+281a 20402f0f call ali_mesh_more_element_calc_queue_address 
+281b 2020303d branch ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer 
+
+ali_mesh_ali_vendor_message_indication_info_add_head:
+281c 6fe0c939 fetch 1 ,mem_mesh_transport_aid 
+281d 67e08c14 store 1 ,mem_mesh_message_transport_head 
+281e 580000f0 setarg vendor_message_tmall_dst 
+281f 67e10c35 store 2 ,mem_mesh_send_message_dst 
+2820 6fe0c7ac fetch 1 ,mem_mesh_vendor_mesh_send_tid 
+2821 1fe0fe01 pincrease 1 
+2822 67e0c7ac store 1 ,mem_mesh_vendor_mesh_send_tid 
+2823 c060282b beq vendor_message_send_tid_max ,ali_mesh_ali_vendor_message_indication_info_reset_tid 
+2824 580000d4 setarg vendor_message_attr_indication 
+2825 67e08a10 store 1 ,mem_mesh_access_layer_payload 
+2826 580001a8 setarg vendor_message_opcode_company_id 
+2827 e7e10005 istore 2 ,contw 
+2828 6fe0c7ac fetch 1 ,mem_mesh_vendor_mesh_send_tid 
+2829 e7e08005 istore 1 ,contw 
+282a 20600000 rtn 
+
+ali_mesh_ali_vendor_message_indication_info_reset_tid:
+282b 7047ac80 jam vendor_message_send_tid_min ,mem_mesh_vendor_mesh_send_tid 
+282c 20600000 rtn 
+
+ali_mesh_time_function:
+282d 1c420400 copy clkn_bt ,temp 
+282e 6fe247b1 fetch 4 ,mem_system_time 
+282f 98467c00 isub temp ,null 
+2830 2041283f call ali_mesh_timer_timeout ,positive 
+2831 20402846 call ali_mesh_clkn_bt_add_1s 
+2832 98467c00 isub temp ,null 
+2833 20610000 rtn positive 
+2834 2040283a call ali_mesh_time_init_system_time_without_clk 
+2835 6fe247ad fetch 4 ,mem_mesh_vendor_timer_current_time 
+2836 1fe0fe01 pincrease 1 
+2837 67e247ad store 4 ,mem_mesh_vendor_timer_current_time 
+2838 2020284a branch ali_mesh_ali_vendor_check_time 
+
+ali_mesh_time_init_system_time:
+2839 1c427e00 copy clkn_bt ,pdata 
+
+ali_mesh_time_init_system_time_without_clk:
+283a 67e247b1 store 4 ,mem_system_time 
+283b 6fe0c7b4 fetch 1 ,mem_system_time + 3 
+283c 1fe17e0f and_into 0x0f ,pdata 
+283d 67e0c7b4 store 1 ,mem_system_time + 3 
+283e 20600000 rtn 
+
+ali_mesh_timer_timeout:
+283f 20628000 rtn zero 
+2840 1fe22400 copy pdata ,regb 
+2841 58100000 setarg 0x100000 
+2842 1fed7e00 lshift8 pdata ,pdata 
+2843 98408400 iadd temp ,temp 
+2844 1a427e00 copy regb ,pdata 
+2845 20600000 rtn 
+
+ali_mesh_clkn_bt_add_1s:
+2846 df200014 arg 20 ,loopcnt 
+
+ali_mesh_time_loop:
+2847 1fe0fea0 pincrease 160 
+2848 c2002847 loop ali_mesh_time_loop 
+2849 20600000 rtn 
+
+ali_mesh_ali_vendor_check_time:
+284a 20402df4 call mesh_get_element_info_config 
+284b 1a20a204 add rega ,element_device_vendor_time_ptr ,rega 
+284c 704a3100 jam 0 ,mem_mesh_receive_element_number 
+
+ali_mesh_ali_vendor_check_time_loop:
+284d 20402f05 call ali_mesh_more_element_push_stack 
+284e efe10011 ifetch 2 ,rega 
+284f 203a2852 branch ali_mesh_ali_vendor_check_time_next_element ,blank 
+2850 1fe26000 copy pdata ,alarm 
+2851 2040285c call ali_mesh_ali_vendor_check_time_one_element 
+
+ali_mesh_ali_vendor_check_time_next_element:
+2852 20402f0a call ali_mesh_more_element_pop_stack 
+2853 6fe0ca31 fetch 1 ,mem_mesh_receive_element_number 
+2854 1fe0fe01 pincrease 1 
+2855 67e0ca31 store 1 ,mem_mesh_receive_element_number 
+2856 6848ca1b fetcht 1 ,mem_mesh_element_number 
+2857 98467e00 isub temp ,pdata 
+2858 20628000 rtn zero 
+2859 1a427e00 copy regb ,pdata 
+285a 9a20a200 iadd rega ,rega 
+285b 2020284d branch ali_mesh_ali_vendor_check_time_loop 
+
+ali_mesh_ali_vendor_check_time_one_element:
+285c df200028 arg 40 ,loopcnt 
+
+ali_mesh_ali_vendor_check_time_one_element_loop:
+285d 1f227e00 copy loopcnt ,pdata 
+285e 67e08c00 store 1 ,mem_mesh_loopcnt_tmep 
+285f efe08030 ifetch 1 ,alarm 
+2860 245a2866 ncall ali_mesh_ali_vendor_had_timing ,blank 
+2861 1e00e008 increase 8 ,alarm 
+2862 6fe08c00 fetch 1 ,mem_mesh_loopcnt_tmep 
+2863 1fe27200 copy pdata ,loopcnt 
+2864 c200285d loop ali_mesh_ali_vendor_check_time_one_element_loop 
+2865 20600000 rtn 
+
+ali_mesh_ali_vendor_had_timing:
+2866 e8440030 ifetcht 8 ,alarm 
+2867 604c09fd storet 8 ,mem_mesh_vendor_timer_timing_index_cyclic 
+2868 6fe08a04 fetch 1 ,mem_mesh_vendor_timer_timing_attr_para 
+2869 c02ca880 beq timer_cyclical_falg ,ali_mesh_ali_vendor_had_timing_cyclically 
+286a 684a47ad fetcht 4 ,mem_mesh_vendor_timer_current_time 
+286b 6fe209fe fetch 4 ,mem_mesh_vendor_timer_timing_time 
+286c 98467c00 isub temp ,null 
+286d 6fe08a04 fetch 1 ,mem_mesh_vendor_timer_timing_attr_para 
+286e 2022a870 branch ali_mesh_ali_vendor_time_timeout ,zero 
+286f 20600000 rtn 
+
+ali_mesh_ali_vendor_time_timeout:
+2870 67e089f9 store 1 ,mem_mesh_generic_onoff_set_payload_onoff 
+2871 6fe149ff fetch 2 ,mem_mesh_cb_generic_onoff_set 
+2872 20407d47 call callback_func 
+2873 1e027e00 copy alarm ,pdata 
+2874 67e10c08 store 2 ,mem_mesh_alarm_temp 
+2875 68e0ca31 fetchr queue ,1 ,mem_mesh_receive_element_number 
+2876 e8408030 ifetcht 1 ,alarm 
+2877 204027f6 call ali_mesh_ali_vendor_message_opcode_timing_finish 
+2878 684889f9 fetcht 1 ,mem_mesh_generic_onoff_set_payload_onoff 
+2879 68e0ca31 fetchr queue ,1 ,mem_mesh_receive_element_number 
+287a 204027e3 call ali_mesh_ali_vendor_message_opcode_generic_onoff 
+287b 6fe10c08 fetch 2 ,mem_mesh_alarm_temp 
+287c 1fe26000 copy pdata ,alarm 
+287d 58000000 setarg 0 
+287e e7e08030 istore 1 ,alarm 
+287f 202027ab branch ali_mesh_ali_vendor_message_cb_timing_changed 
+
+ali_mesh_ali_vendor_had_timing_cyclically:
+2880 6fe247ad fetch 4 ,mem_mesh_vendor_timer_current_time 
+2881 d840003c arg seconds_of_min ,temp 
+2882 9846fc00 idiv temp 
+2883 20407d31 call wait_div_end 
+2884 18077e00 remainder pdata 
+2885 247a0000 nrtn blank 
+2886 6fe247ad fetch 4 ,mem_mesh_vendor_timer_current_time 
+2887 d8454600 arg seconds_of_four_days ,temp 
+2888 98467e00 isub temp ,pdata 
+2889 d8493a80 arg seconds_of_week ,temp 
+288a 9846fc00 idiv temp 
+288b 20407d31 call wait_div_end 
+288c 18077e00 remainder pdata 
+288d d8415180 arg seconds_of_day ,temp 
+288e 9846fc00 idiv temp 
+288f 20407d31 call wait_div_end 
+2890 18072200 remainder rega 
+2891 18078e00 quotient queue 
+2892 58000000 setarg 0 
+2893 f9207e00 qset1 pdata 
+2894 68488a00 fetcht 1 ,mem_mesh_vendor_timer_timing_weekdays_cyclic 
+2895 98417e00 iand temp ,pdata 
+2896 207a0000 rtn blank 
+2897 1a227e00 deposit rega 
+2898 d840003c arg seconds_of_min ,temp 
+2899 9846fc00 idiv temp 
+289a 20407d31 call wait_div_end 
+289b 18078400 quotient temp 
+289c 580001e0 setarg eight_hours_time_zone_offset 
+289d 98408400 iadd temp ,temp 
+289e 6fe109fe fetch 2 ,mem_mesh_vendor_timer_timing_time_cyclic 
+289f 98467c00 isub temp ,null 
+28a0 24628000 nrtn zero 
+28a1 6fe08a03 fetch 1 ,mem_mesh_vendor_timer_timing_attr_para_cyclic 
+28a2 20202870 branch ali_mesh_ali_vendor_time_timeout 
+
+ali_mesh_bearer_layer_send_packet_by_network_layer:
+28a3 4776c03d bpatchx patch3d_5 ,mem_patch3d 
+28a4 700a7414 jam adv_pairing_mesh_message_duration ,mem_mesh_queue_ele_duration 
+28a5 6fe0c993 fetch 1 ,mem_mesh_gatt_package_send_msg_id 
+28a6 67e08a75 store 1 ,mem_mesh_queue_ele_gatt_msg_id 
+28a7 6fe08bff fetch 1 ,mem_mesh_lower_transport_layer_payload_len 
+28a8 1fe0fe0b pincrease 11 
+28a9 1fe0f3fe add pdata ,-2 ,loopcnt 
+28aa 67e08a76 store 1 ,mem_mesh_queue_ele_len 
+28ab 1fe0ffff pincrease -1 
+28ac e7e08005 istore 1 ,contw 
+28ad 5800002a setarg gap_adtype_mesh_message 
+28ae e7e08005 istore 1 ,contw 
+28af d8c04b5c arg mem_mesh_send_upper_layer_ivi_and_nid ,contr 
+28b0 20407c94 call memcpy_fast 
+28b1 6fe14793 fetch 2 ,mem_ui_state_map 
+28b2 2feffe09 isolate1 ui_state_ble_connected ,pdata 
+28b3 2040aff7 call ali_mesh_send_ble_data ,true 
+28b4 6a210c02 fetchr rega ,2 ,mem_mesh_rega_temp 
+28b5 204028b7 call ali_mesh_advertising_bearer_layer_init_queue_param 
+28b6 20207875 branch queue_push 
+
+ali_mesh_advertising_bearer_layer_init_queue_param:
+28b7 1a208c02 add rega ,element_device_queue_buffer_ptr ,contr 
+28b8 efe10006 ifetch 2 ,contr 
+28b9 67e1448f store 2 ,mem_queue_ptr 
+28ba da200a74 arg mem_mesh_queue_ele_temp ,rega 
+28bb 20600000 rtn 
+
+ali_mesh_advertising_bearer_layer_load_packet_from_advertising_queue:
+28bc da6028be arg ali_mesh_advertising_bearer_layer_load_packet_from_advertising_queue_deal ,regc 
+28bd 20202dff branch ali_mesh_check_all_element_info 
+
+ali_mesh_advertising_bearer_layer_load_packet_from_advertising_queue_deal:
+28be 1a208c16 add rega ,element_device_upper_adv_flag ,contr 
+28bf efe08006 ifetch 1 ,contr 
+28c0 c1808000 rtnne packet_in_bearer 
+28c1 58000002 setarg packet_in_adverting 
+28c2 1a208a16 add rega ,element_device_upper_adv_flag ,contw 
+28c3 e7e08005 istore 1 ,contw 
+28c4 202029fa branch ali_mesh_control_ble_advertising_on_advertising 
+
+ali_mesh_advertising_bearer_layer_send_packet_by_app_bearer:
+28c5 204028d3 call ali_mesh_advertising_bearer_layer_generate_header 
+28c6 1840fe0d add temp ,13 ,pdata 
+28c7 67e0c7b5 store 1 ,mem_mesh_adv_data_len 
+28c8 204028ea call ali_mesh_advertising_add_adtype_flags 
+28c9 1840fe09 add temp ,9 ,pdata 
+28ca e7e08005 istore 1 ,contw 
+28cb 580000ff setarg gap_adtype_manufacturer_specific 
+28cc e7e08005 istore 1 ,contw 
+28cd 6fe40bec fetch 8 ,mem_mesh_receive_service_uuid_ios_data_company_id 
+28ce e7e40005 istore 8 ,contw 
+28cf 1a220c00 copy rega ,contr 
+28d0 18427200 copy temp ,loopcnt 
+28d1 20407ca1 call memcpy 
+28d2 20202931 branch mesh_le_send_adv 
+
+ali_mesh_advertising_bearer_layer_generate_header:
+28d3 580ea801 setarg company_id_alibaba_and_vid_gatt 
+28d4 67e18bec store 3 ,mem_mesh_receive_service_uuid_ios_data_company_id 
+28d5 58000007 setarg provisioning_send_ios_data 
+28d6 67e08bef store 1 ,mem_mesh_receive_service_uuid_ios_data_provisioning_type 
+28d7 6fe0c8d8 fetch 1 ,mem_k2_nid 
+28d8 67e08bf0 store 1 ,mem_mesh_receive_service_uuid_ios_data_nid 
+28d9 6fe08a75 fetch 1 ,mem_mesh_queue_ele_gatt_msg_id 
+28da 67e08bf1 store 1 ,mem_mesh_receive_service_uuid_ios_data_msg_id 
+28db 6fe08a74 fetch 1 ,mem_mesh_queue_ele_duration 
+28dc 2feffe07 isolate1 bit_of_app_package_num ,pdata 
+28dd 204028e1 call ali_mesh_advertising_bearer_layer_send_packet_by_app_bearer_calc_param 
+28de 67e08bf2 store 1 ,mem_mesh_receive_service_uuid_ios_data_package_num 
+28df 60488bf3 storet 1 ,mem_mesh_receive_service_uuid_ios_data_length 
+28e0 20600000 rtn 
+
+ali_mesh_advertising_bearer_layer_send_packet_by_app_bearer_calc_param:
+28e1 da200a79 arg mem_mesh_queue_ele_payload + 2 ,rega 
+28e2 d8400012 arg max_app_mssage_payload_length ,temp 
+28e3 58000021 setarg 0x21 
+28e4 24608000 nrtn true 
+28e5 da200a8b arg mem_mesh_queue_ele_payload + 20 ,rega 
+28e6 68488a76 fetcht 1 ,mem_mesh_queue_ele_len 
+28e7 184085ee increase -18 ,temp 
+28e8 58000022 setarg 0x22 
+28e9 20600000 rtn 
+
+ali_mesh_advertising_add_adtype_flags:
+28ea d8a047b6 arg mem_mesh_adv_data ,contw 
+28eb 58000002 setarg 0x02 
+28ec e7e08005 istore 1 ,contw 
+28ed 58000001 setarg gap_adtype_flags 
+28ee e7e08005 istore 1 ,contw 
+28ef 58000002 setarg 0x02 
+28f0 e7e08005 istore 1 ,contw 
+28f1 20600000 rtn 
+
+ali_mesh_advertising_add_adtype_16bit_complete:
+28f2 d8401827 arg mesh_provisioning_uuid ,temp 
+28f3 58000003 setarg 0x03 
+28f4 e7e08005 istore 1 ,contw 
+28f5 58000003 setarg gap_adtype_16bit_complete 
+28f6 e7e08005 istore 1 ,contw 
+28f7 e0410005 istoret 2 ,contw 
+28f8 20600000 rtn 
+
+mesh_receive_advertising:
+28f9 202028fa branch mesh_le_scan_adv 
+
+mesh_le_scan_adv:
+28fa 20401632 call le_enable 
+28fb 20401bc5 call le_init_adv 
+28fc 20402904 call mesh_le_wait_adv 
+28fd 24768000 nrtn match 
+28fe 6fe08002 fetch 1 ,mem_le_adv_rcv 
+28ff 1fe0fe01 pincrease 1 
+2900 67e08002 store 1 ,mem_le_adv_rcv 
+2901 6fe149f1 fetch 2 ,mem_mesh_cb_receive_advertising 
+2902 20407d47 call callback_func 
+2903 2020163f branch le_disable 
+
+mesh_le_wait_adv:
+2904 6fe149fb fetch 2 ,mem_mesh_scan_selete_next_ch 
+2905 20207d47 branch callback_func 
+
+mesh_le_wait_adv_cb:
+2906 20402908 call mesh_le_calc_next_scan_channel 
+2907 202016d7 branch le_receive_adv 
+
+mesh_le_calc_next_scan_channel:
+2908 6fe0c7d5 fetch 1 ,mem_mesh_adv_scan_channel 
+2909 1fe0fe01 pincrease 1 
+290a 67e0c7d5 store 1 ,mem_mesh_adv_scan_channel 
+290b 67e08016 store 1 ,mem_le_ch_mapped 
+290c c1940000 rtnne 40 
+290d 7047d525 jam 37 ,mem_mesh_adv_scan_channel 
+290e 70001625 jam 37 ,mem_le_ch_mapped 
+290f 20600000 rtn 
+
+mesh_check_ble_rx_packet:
+2910 6fe0816b fetch 1 ,mem_le_rxbuf 
+2911 1fe17e0f and pdata ,0x0f ,pdata 
+2912 c0002915 beq adv_ind ,ali_mesh_match_advertising_packet 
+2913 c0012915 beq adv_nonconn_ind ,ali_mesh_match_advertising_packet 
+2914 20600000 rtn 
+
+ali_mesh_match_advertising_packet:
+2915 e8408006 ifetcht 1 ,contr 
+2916 18467c06 sub temp ,adv_packet_min_length ,null 
+2917 20610000 rtn positive 
+2918 18467c25 sub temp ,adv_packet_max_length ,null 
+2919 24610000 nrtn positive 
+291a 1840a3fa add temp ,-6 ,rega 
+291b 18c0a406 add contr ,6 ,regb 
+
+ali_mesh_find_adv_ind_packet:
+291c e8408012 ifetcht 1 ,regb 
+291d 18467c01 sub temp ,ad_type_min_length ,null 
+291e 20610000 rtn positive 
+291f 18467c1e sub temp ,ad_type_max_length ,null 
+2920 24610000 nrtn positive 
+2921 18427e00 copy temp ,pdata 
+2922 207a0000 rtn blank 
+2923 4777403d bpatchx patch3d_6 ,mem_patch3d 
+2924 efe08006 ifetch 1 ,contr 
+2925 c07fac4a beq gap_adtype_manufacturer_specific ,ali_mesh_receive_adtype_manufacturer_specific 
+2926 c0152f1d beq gap_adtype_mesh_message ,ali_mesh_receive_adtype_mesh_message 
+2927 c003acc2 beq gap_adtype_128bit_complete ,ali_mesh_receive_adtype_128bit_uuid_complete 
+2928 1840fe01 add temp ,1 ,pdata 
+2929 9a267c00 isub rega ,null 
+292a 20610000 rtn positive 
+292b 9a40a400 iadd regb ,regb 
+292c 18467fff sub temp ,-1 ,pdata 
+292d 9a20a200 iadd rega ,rega 
+292e 1a227e00 copy rega ,pdata 
+292f 207a0000 rtn blank 
+2930 2020291c branch ali_mesh_find_adv_ind_packet 
+
+mesh_le_send_adv:
+2931 6fe08000 fetch 1 ,mem_le_adv_transmit 
+2932 1fe0fe01 pincrease 1 
+2933 67e08000 store 1 ,mem_le_adv_transmit 
+2934 4777c03d bpatchx patch3d_7 ,mem_patch3d 
+2935 20401632 call le_enable 
+2936 df200027 arg 39 ,loopcnt 
+2937 d8c041f8 arg mem_le_txheader ,contr 
+2938 d8a00a97 arg mem_le_txheader_mesh_temp ,contw 
+2939 20407c94 call memcpy_fast 
+293a 70001625 jam 37 ,mem_le_ch_mapped 
+293b db600708 arg 1800 ,stop_watch 
+293c 7856fc00 disable match 
+
+mesh_le_send_adv_loop:
+293d 20401bc5 call le_init_adv 
+293e 2040294d call mesh_le_send_adv_nonconn_ind 
+293f 180a7e00 random pdata 
+2940 d84001ff arg 0x1ff ,temp 
+2941 98417e00 iand temp ,pdata 
+2942 1fe0fe64 add pdata ,100 ,pdata 
+2943 20407c4e call delay 
+2944 6fe08016 fetch 1 ,mem_le_ch_mapped 
+2945 1fe0fe01 pincrease 1 
+2946 67e08016 store 1 ,mem_le_ch_mapped 
+2947 c094293d bne 40 ,mesh_le_send_adv_loop 
+2948 df200027 arg 39 ,loopcnt 
+2949 d8a041f8 arg mem_le_txheader ,contw 
+294a d8c00a97 arg mem_le_txheader_mesh_temp ,contr 
+294b 20407c94 call memcpy_fast 
+294c 2020163f branch le_disable 
+
+mesh_le_send_adv_nonconn_ind:
+294d d8400002 arg adv_nonconn_ind ,temp 
+294e 6048c1f8 storet 1 ,mem_le_txheader 
+294f 6848c7b5 fetcht 1 ,mem_mesh_adv_data_len 
+2950 1840fe06 add temp ,6 ,pdata 
+2951 67e0c1f9 store 1 ,mem_le_txlen 
+2952 6fe3437d fetch 6 ,mem_le_lap 
+2953 67e341fa store 6 ,mem_le_txpayload 
+2954 18427200 copy temp ,loopcnt 
+2955 d8c047b6 arg mem_mesh_adv_data ,contr 
+2956 20407c94 call memcpy_fast 
+2957 202017c3 branch le_transmit_norx 
+
+ali_mesh_base_adt_cache:
+2958 4778403e bpatchx patch3e_0 ,mem_patch3e 
+2959 68490be1 fetcht 2 ,mem_ccm_data_ptr 
+295a 6fe08be0 fetch 1 ,mem_ccm_data_len 
+295b 18420c00 copy temp ,contr 
+295c da2048f9 arg mem_k4_salt ,rega 
+295d de004909 arg mem_k4_t ,alarm 
+295e 20402b91 call ali_mesh_encrypt_base_function_aes_cmac 
+295f 20407d94 call disable_user 
+2960 1a627e00 copy regc ,pdata 
+2961 9e008c00 iadd alarm ,contr 
+2962 684a4909 fetcht 4 ,mem_k4_t 
+2963 6fe10bfd fetch 2 ,mem_mesh_mic_cache_ptr 
+2964 1fe22200 copy pdata ,rega 
+2965 df20000a arg transport_mic_cache_space_num ,loopcnt 
+
+ali_mesh_base_adt_cache_loop:
+2966 efe20011 ifetch 4 ,rega 
+2967 203a2973 branch ali_mesh_base_adt_cache_empty_space ,blank 
+2968 98467c00 isub temp ,null 
+2969 20628000 rtn zero 
+296a 1a20a204 increase transport_mic_cache_space_size ,rega 
+296b c2002966 loop ali_mesh_base_adt_cache_loop 
+296c 6fe10bfd fetch 2 ,mem_mesh_mic_cache_ptr 
+296d 1fe20a00 copy pdata ,contw 
+296e 1fe08c04 add pdata ,transport_mic_cache_space_size ,contr 
+296f df200024 arg transport_mic_cache_total_size ,loopcnt 
+2970 20407c94 call memcpy_fast 
+2971 e0420005 istoret 4 ,contw 
+2972 20207d92 branch enable_user 
+
+ali_mesh_base_adt_cache_empty_space:
+2973 e0420011 istoret 4 ,rega 
+2974 20207d92 branch enable_user 
+
+ali_mesh_chip_peripherals_load_data_from_eep:
+2975 2040297c call ali_mesh_chip_peripherals_load_three_tuple_from_eep 
+2976 20402980 call ali_mesh_chip_peripherals_load_network_key_from_eep 
+2977 20402987 call ali_mesh_chip_peripherals_load_application_key_from_eep 
+2978 2040298b call ali_mesh_chip_peripherals_load_device_key_from_eep 
+2979 2040298f call ali_mesh_chip_peripherals_load_reset_count_from_eep 
+297a 20402990 call ali_mesh_chip_peripherals_load_seq_from_eep 
+297b 20202994 branch ali_mesh_chip_peripherals_load_subscription_from_eep 
+
+ali_mesh_chip_peripherals_load_three_tuple_from_eep:
+297c d840001a arg mesh_eep_three_tuple_length ,temp 
+297d da2049d7 arg mem_mesh_three_tuple_productid ,rega 
+297e da400000 arg mesh_eep_three_tuple_offset ,regb 
+297f 20205ccb branch iicd_read_eep_data 
+
+ali_mesh_chip_peripherals_load_network_key_from_eep:
+2980 d8400013 arg mesh_eep_network_key_length ,temp 
+2981 da20497a arg mem_mesh_network_key ,rega 
+2982 da40001a arg mesh_eep_network_key_offset ,regb 
+2983 20405ccb call iicd_read_eep_data 
+2984 6fe0c98a fetch 1 ,mem_mesh_last_iv_index_byte 
+2985 67e0ca35 store 1 ,mem_mesh_iv_index + 3 
+2986 20600000 rtn 
+
+ali_mesh_chip_peripherals_load_application_key_from_eep:
+2987 d8400010 arg mesh_eep_application_key_length ,temp 
+2988 da204b1d arg mem_mesh_application_key ,rega 
+2989 da40002d arg mesh_eep_application_key_offset ,regb 
+298a 20205ccb branch iicd_read_eep_data 
+
+ali_mesh_chip_peripherals_load_device_key_from_eep:
+298b d8400010 arg mesh_eep_device_key_length ,temp 
+298c da20482b arg mem_mesh_device_key ,rega 
+298d da40003d arg mesh_eep_device_key_offset ,regb 
+298e 20205ccb branch iicd_read_eep_data 
+
+ali_mesh_chip_peripherals_load_reset_count_from_eep:
+298f 20600000 rtn 
+
+ali_mesh_chip_peripherals_load_seq_from_eep:
+2990 d8400003 arg mesh_eep_seq_length ,temp 
+2991 da204b56 arg mem_mesh_send_message_seq ,rega 
+2992 da40004e arg mesh_eep_seq_offset ,regb 
+2993 20205ccb branch iicd_read_eep_data 
+
+ali_mesh_chip_peripherals_load_subscription_from_eep:
+2994 6fe14a19 fetch 2 ,mem_mesh_core_feature 
+2995 c3810000 rtnbit1 mesh_feature_disable_subscription 
+2996 d8400040 arg mesh_eep_subscription_total_length ,temp 
+2997 da20098e arg mem_mesh_subscription_eep_temp ,rega 
+2998 da400051 arg mesh_eep_subscription_offset ,regb 
+2999 20405ccb call iicd_read_eep_data 
+299a 20402df4 call mesh_get_element_info_config 
+299b d8c0098e arg mem_mesh_subscription_eep_temp ,contr 
+299c 1a20a206 add rega ,element_device_subscription_label ,rega 
+
+ali_mesh_chip_peripherals_load_subscription_from_eep_loop:
+299d 1a220a00 copy rega ,contw 
+299e 20407c4c call memcpy16 
+299f 1a427e00 copy regb ,pdata 
+29a0 9a20a200 iadd rega ,rega 
+29a1 c200299d loop ali_mesh_chip_peripherals_load_subscription_from_eep_loop 
+29a2 20600000 rtn 
+
+mesh_receive_config_appkey_add_cb:
+29a3 204029a6 call ali_mesh_chip_peripherals_save_network_key_from_eep 
+29a4 204029aa call ali_mesh_chip_peripherals_save_application_key_from_eep 
+29a5 202029ae branch ali_mesh_chip_peripherals_save_device_key_from_eep 
+
+ali_mesh_chip_peripherals_save_network_key_from_eep:
+29a6 d8400013 arg mesh_eep_network_key_length ,temp 
+29a7 da20497a arg mem_mesh_network_key ,rega 
+29a8 da40001a arg mesh_eep_network_key_offset ,regb 
+29a9 20205cbd branch iicd_write_protect_eep_data 
+
+ali_mesh_chip_peripherals_save_application_key_from_eep:
+29aa d8400010 arg mesh_eep_application_key_length ,temp 
+29ab da204b1d arg mem_mesh_application_key ,rega 
+29ac da40002d arg mesh_eep_application_key_offset ,regb 
+29ad 20205cbd branch iicd_write_protect_eep_data 
+
+ali_mesh_chip_peripherals_save_device_key_from_eep:
+29ae d8400010 arg mesh_eep_device_key_length ,temp 
+29af da20482b arg mem_mesh_device_key ,rega 
+29b0 da40003d arg mesh_eep_device_key_offset ,regb 
+29b1 20205cbd branch iicd_write_protect_eep_data 
+
+mesh_store_new_seq_data:
+
+ali_mesh_chip_peripherals_save_seq_from_eep:
+29b2 d8400003 arg mesh_eep_seq_length ,temp 
+29b3 da204b56 arg mem_mesh_send_message_seq ,rega 
+29b4 da40004e arg mesh_eep_seq_offset ,regb 
+29b5 20205cbd branch iicd_write_protect_eep_data 
+
+mesh_store_new_subscriptuion_list_data:
+29b6 204029bb call ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep 
+29b7 d8400040 arg mesh_eep_subscription_total_length ,temp 
+29b8 da20098e arg mem_mesh_subscription_eep_temp ,rega 
+29b9 da400051 arg mesh_eep_subscription_offset ,regb 
+29ba 20205cbd branch iicd_write_protect_eep_data 
+
+ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep:
+29bb 20402df4 call mesh_get_element_info_config 
+29bc d8a0098e arg mem_mesh_subscription_eep_temp ,contw 
+29bd 1a20a206 add rega ,element_device_subscription_label ,rega 
+
+ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep_loop:
+29be 1a220c00 copy rega ,contr 
+29bf 20407c4c call memcpy16 
+29c0 1a427e00 copy regb ,pdata 
+29c1 9a20a200 iadd rega ,rega 
+29c2 c20029be loop ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep_loop 
+29c3 20600000 rtn 
+
+logging_tx_debug:
+29c4 d8400000 arg logging_debug ,temp 
+29c5 202029ce branch logging_tx_common 
+
+logging_tx_info:
+29c6 d8400001 arg logging_info ,temp 
+29c7 202029ce branch logging_tx_common 
+
+logging_tx_warning:
+29c8 d8400002 arg logging_warning ,temp 
+29c9 202029ce branch logging_tx_common 
+
+logging_tx_error:
+29ca d8400003 arg logging_error ,temp 
+29cb 202029ce branch logging_tx_common 
+
+logging_tx_critical:
+29cc d8400004 arg logging_critical ,temp 
+29cd 202029ce branch logging_tx_common 
+
+logging_tx_common:
+29ce 4778c03e bpatchx patch3e_1 ,mem_patch3e 
+29cf 20407c06 call push_stack 
+29d0 6fe0ca19 fetch 1 ,mem_mesh_core_feature 
+29d1 c2807c12 bbit1 mesh_feature_disable_log ,pop_stack 
+29d2 20405e37 call uartb_prepare_tx_register_push 
+29d3 580000aa setarg lua_log_packet_header 
+29d4 e7e08003 istore 1 ,contwu 
+29d5 58000003 setarg lua_log_pakcet_type 
+29d6 e7e08003 istore 1 ,contwu 
+29d7 1f20fe04 add loopcnt ,4 ,pdata 
+29d8 e7e08003 istore 1 ,contwu 
+29d9 e0410003 istorer temp ,2 ,contwu 
+29da e2410003 istorer regb ,2 ,contwu 
+29db 1a220c00 copy rega ,contr 
+29dc 20405e45 call uart_copy_tx_bytes_fast 
+29dd 580000bb setarg lua_log_packet_trail 
+29de e7e08003 istore 1 ,contwu 
+29df 20405e3b call uartb_send_register_pop 
+29e0 20207c12 branch pop_stack 
+
+mesh_uart_init:
+29e1 6fe0ca19 fetch 1 ,mem_mesh_core_feature 
+29e2 c3800000 rtnbit1 mesh_feature_disable_log 
+29e3 70807b0c jam gpcfg_uartb_txd ,core_gpio_conf + 11 
+29e4 70807c4d jam gpcfg_uartb_rxd | gpcfg_pullup ,core_gpio_conf + 12 
+29e5 204029ec call mesh_uart_init_buffer 
+29e6 d84e1000 arg 921600 ,temp 
+29e7 20405df0 call uartb_calc_baud_rate_config 
+29e8 20405dfd call uart_clock_select_main_freq_crystal 
+29e9 d8400081 arg fun_uart_control_enable | fun_uart_control_setting_rate_baud ,temp 
+29ea 60588061 storet 1 ,core_uartb_ctrl 
+29eb 20600000 rtn 
+
+mesh_uart_init_buffer:
+29ec 58001c00 setarg mem_mesh_uart_log_rx_buff 
+29ed 67e1095c store 2 ,mem_pdatatemp 
+29ee 58001c01 setarg mem_mesh_uart_log_rx_buff_end 
+29ef e7e10005 istore 2 ,contw 
+29f0 58001c02 setarg mem_mesh_uart_log_tx_buff 
+29f1 e7e10005 istore 2 ,contw 
+29f2 58001fff setarg mem_mesh_uart_log_tx_buff_end 
+29f3 e7e10005 istore 2 ,contw 
+29f4 6fe4095c fetch 8 ,mem_pdatatemp 
+29f5 20205dd8 branch uartb_init_dma_mem 
+
+ali_mesh_control_ble_adv_process:
+29f6 20402a06 call ali_mesh_control_ble_adv_tmall_packet 
+29f7 202029fe branch ali_mesh_control_ble_adv_app_packet 
+
+ali_mesh_control_ble_adv_timer_process:
+29f8 20402a6d call ali_mesh_advertising_unprovisioned_timer_interval_timer 
+29f9 20202a63 branch ali_mesh_advertising_unprovisioned_timer 
+
+ali_mesh_control_ble_advertising_on_advertising:
+29fa 7047d601 jam device_beacon_on ,mem_mesh_advertising_unprovisioned_device_beacon_switch 
+29fb 20600000 rtn 
+
+ali_mesh_control_ble_advertising_off_advertising:
+29fc 7047d600 jam device_beacon_off ,mem_mesh_advertising_unprovisioned_device_beacon_switch 
+29fd 20600000 rtn 
+
+ali_mesh_control_ble_adv_app_packet:
+29fe da402a02 arg ali_mesh_control_ble_adv_app_packet_paired ,regb 
+29ff da200015 arg mesh_adv_app_message_interval ,rega 
+2a00 d8e0000d arg mesh_ble_adv_app ,queue 
+2a01 20202a58 branch ali_mesh_chip_timer_check_with_random_timer 
+
+ali_mesh_control_ble_adv_app_packet_paired:
+2a02 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2a03 c1800000 rtnne paired_status 
+2a04 da602a0a arg ali_mesh_control_ble_adv_app_packet_paired_deal ,regc 
+2a05 20202dff branch ali_mesh_check_all_element_info 
+
+ali_mesh_control_ble_adv_tmall_packet:
+2a06 da402a17 arg ali_mesh_control_ble_adv_tmall_packet_send_package ,regb 
+2a07 da20001d arg mesh_adv_tmall_message_interval ,rega 
+2a08 d8e0000e arg mesh_ble_adv_tmall ,queue 
+2a09 20202a58 branch ali_mesh_chip_timer_check_with_random_timer 
+
+ali_mesh_control_ble_adv_app_packet_paired_deal:
+2a0a 1a208c1a add rega ,element_device_tran_package_type ,contr 
+2a0b efe08006 ifetch 1 ,contr 
+2a0c c4008000 rtnbit0 bit_upper_tran_app_message 
+2a0d 204028b7 call ali_mesh_advertising_bearer_layer_init_queue_param 
+2a0e 2040789d call queue_get_new_ele 
+2a0f 24740000 nrtn user 
+2a10 6fe08a76 fetch 1 ,mem_mesh_queue_ele_len 
+2a11 1fe0fffe pincrease -2 
+2a12 67e08a76 store 1 ,mem_mesh_queue_ele_len 
+2a13 6fe08a74 fetch 1 ,mem_mesh_queue_ele_duration 
+2a14 79407e07 setflip bit_of_app_package_num ,pdata 
+2a15 e7e08012 istore 1 ,regb 
+2a16 202028c5 branch ali_mesh_advertising_bearer_layer_send_packet_by_app_bearer 
+
+ali_mesh_control_ble_adv_tmall_packet_send_package:
+2a17 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2a18 c0002a1b beq paired_status ,ali_mesh_control_ble_advertising_send_paired_packet 
+2a19 c0012a56 beq pairing_status ,ali_mesh_control_ble_advertising_send_pairing_packet 
+2a1a 20202a45 branch ali_mesh_control_ble_advertising_send_device_beacon_packet 
+
+ali_mesh_control_ble_advertising_send_paired_packet:
+2a1b da602a1d arg ali_mesh_control_ble_advertising_send_paired_packet_deal ,regc 
+2a1c 20202dff branch ali_mesh_check_all_element_info 
+
+ali_mesh_control_ble_advertising_send_paired_packet_deal:
+2a1d 204028b7 call ali_mesh_advertising_bearer_layer_init_queue_param 
+2a1e 2040789d call queue_get_new_ele 
+2a1f 24740000 nrtn user 
+2a20 6fe08a74 fetch 1 ,mem_mesh_queue_ele_duration 
+2a21 1fe0ffff pincrease -1 
+2a22 e7e08012 istore 1 ,regb 
+2a23 c2832a38 bbit1 bit_of_adv_in_off ,ali_mesh_control_ble_advertising_send_paired_packet_adv_in_off 
+2a24 1fe17e3f and pdata ,0x3f ,pdata 
+2a25 205a2a3f call ali_mesh_control_ble_advertising_send_paired_packet_end_duration ,blank 
+2a26 6a210c02 fetchr rega ,2 ,mem_mesh_rega_temp 
+2a27 1a208c1a add rega ,element_device_tran_package_type ,contr 
+2a28 efe08006 ifetch 1 ,contr 
+2a29 c2812a2f bbit1 bit_uuper_tran_proxy_message ,ali_mesh_control_ble_advertising_send_paired_packet_end_duration_proxy 
+2a2a c4000000 rtnbit0 bit_upper_tran_tmall_message 
+2a2b d8a047b5 arg mem_mesh_adv_data_len ,contw 
+2a2c d8c00a76 arg mem_mesh_queue_ele_len ,contr 
+2a2d 20407c4a call memcpy32 
+2a2e 20202931 branch mesh_le_send_adv 
+
+ali_mesh_control_ble_advertising_send_paired_packet_end_duration_proxy:
+2a2f da200a74 arg mem_mesh_queue_ele_duration ,rega 
+2a30 2040788c call queue_pop 
+2a31 204078bb call queue_empty 
+2a32 247a0000 nrtn blank 
+2a33 6a210c02 fetchr rega ,2 ,mem_mesh_rega_temp 
+2a34 1a208a16 add rega ,element_device_upper_adv_flag ,contw 
+2a35 58000000 setarg null_packet_advertising 
+2a36 e7e08005 istore 1 ,contw 
+2a37 202029fc branch ali_mesh_control_ble_advertising_off_advertising 
+
+ali_mesh_control_ble_advertising_send_paired_packet_adv_in_off:
+2a38 1fe17e3f and pdata ,0x3f ,pdata 
+2a39 247a0000 nrtn blank 
+2a3a 6a210c02 fetchr rega ,2 ,mem_mesh_rega_temp 
+2a3b 1a208a16 add rega ,element_device_upper_adv_flag ,contw 
+2a3c 58000000 setarg null_packet_advertising 
+2a3d e7e08005 istore 1 ,contw 
+2a3e 20207870 branch queue_init 
+
+ali_mesh_control_ble_advertising_send_paired_packet_end_duration:
+2a3f da200a74 arg mem_mesh_queue_ele_duration ,rega 
+2a40 2040788c call queue_pop 
+2a41 204078bb call queue_empty 
+2a42 247a0000 nrtn blank 
+2a43 700a7454 jam adv_pairing_mesh_message_interval ,mem_mesh_queue_ele_duration 
+2a44 20207875 branch queue_push 
+
+ali_mesh_control_ble_advertising_send_device_beacon_packet:
+2a45 20402c21 call ali_mesh_config_device_uuid_by_three_tuple 
+2a46 20402c2d call ali_mesh_send_unprovisioned_beacons_tmall 
+2a47 20402c3b call ali_mesh_advertising_send_unprovisioned_beacons_gatt 
+2a48 20402a4e call ali_mesh_control_ble_advertising_device_beacon_check_duration 
+2a49 24628000 nrtn zero 
+2a4a 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2a4b c001aa52 beq silence_beacon_status ,ali_mesh_end_advertising_silence_device_beacon_packet 
+2a4c c000aa54 beq unprovisioned_beacon_status ,ali_mesh_end_advertising_unprovisioned_device_beacon_packet 
+2a4d 20600000 rtn 
+
+ali_mesh_control_ble_advertising_device_beacon_check_duration:
+2a4e 6fe0c7d9 fetch 1 ,mem_mesh_advertising_unprovisioned_device_beacon_duration 
+2a4f 1fe0ffff add pdata ,-1 ,pdata 
+2a50 67e0c7d9 store 1 ,mem_mesh_advertising_unprovisioned_device_beacon_duration 
+2a51 20600000 rtn 
+
+ali_mesh_end_advertising_silence_device_beacon_packet:
+2a52 7047da58 jam adv_silence_device_beacon_interval ,mem_mesh_advertising_unprovisioned_device_beacon_interval 
+2a53 202029fc branch ali_mesh_control_ble_advertising_off_advertising 
+
+ali_mesh_end_advertising_unprovisioned_device_beacon_packet:
+2a54 7047da06 jam adv_unprovisioned_device_beacon_duration ,mem_mesh_advertising_unprovisioned_device_beacon_interval 
+2a55 202029fc branch ali_mesh_control_ble_advertising_off_advertising 
+
+ali_mesh_control_ble_advertising_send_pairing_packet:
+2a56 20402ca0 call ali_mesh_advertising_timer 
+2a57 20202931 branch mesh_le_send_adv 
+
+ali_mesh_chip_timer_check_with_random_timer:
+2a58 180a7e00 random pdata 
+2a59 1fe17e07 and pdata ,0x07 ,pdata 
+2a5a 9a20a200 iadd rega ,rega 
+
+ali_mesh_chip_timer_check:
+2a5b 6fe0c7d6 fetch 1 ,mem_mesh_advertising_unprovisioned_device_beacon_switch 
+2a5c c1808000 rtnne device_beacon_on 
+2a5d 20407cb6 call timer_check 
+2a5e 247a0000 nrtn blank 
+2a5f 1a227e00 copy rega ,pdata 
+2a60 20407ca8 call timer_init 
+2a61 1a427e00 copy regb ,pdata 
+2a62 20207d47 branch callback_func 
+
+ali_mesh_advertising_unprovisioned_timer:
+2a63 da6047d7 arg mem_mesh_advertising_unprovisioned_device_beacon_timer ,regc 
+2a64 da402a66 arg ali_mesh_advertising_unprovisioned_timeout ,regb 
+2a65 202031d6 branch timer_single_step_2b 
+
+ali_mesh_advertising_unprovisioned_timeout:
+2a66 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2a67 c1808000 rtnne unprovisioned_beacon_status 
+2a68 6fe0c972 fetch 1 ,mem_mesh_uuid_featureflag 
+2a69 79207e00 set1 bit_silence_adv_flag ,pdata 
+2a6a 67e0c972 store 1 ,mem_mesh_uuid_featureflag 
+2a6b 70496f03 jam silence_beacon_status ,mem_mesh_provisioned_flag 
+2a6c 20202a76 branch ali_mesh_send_silence_device_beacon_init_advertising 
+
+ali_mesh_advertising_unprovisioned_timer_interval_timer:
+2a6d da6047da arg mem_mesh_advertising_unprovisioned_device_beacon_interval ,regc 
+2a6e da402a70 arg ali_mesh_advertising_unprovisioned_timer_interval_timeout ,regb 
+2a6f 202031cf branch timer_single_step 
+
+ali_mesh_advertising_unprovisioned_timer_interval_timeout:
+2a70 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2a71 c001aa76 beq silence_beacon_status ,ali_mesh_send_silence_device_beacon_init_advertising 
+2a72 c000aa74 beq unprovisioned_beacon_status ,ali_mesh_send_unprovisioned_device_beacon_init_advertising 
+2a73 20600000 rtn 
+
+ali_mesh_send_unprovisioned_device_beacon_init_advertising:
+2a74 7047d906 jam adv_unprovisioned_device_beacon_duration ,mem_mesh_advertising_unprovisioned_device_beacon_duration 
+2a75 202029fa branch ali_mesh_control_ble_advertising_on_advertising 
+
+ali_mesh_send_silence_device_beacon_init_advertising:
+2a76 7047d906 jam adv_silence_device_beacon_duration ,mem_mesh_advertising_unprovisioned_device_beacon_duration 
+2a77 202029fa branch ali_mesh_control_ble_advertising_on_advertising 
+
+ali_mesh_encrypt_calc_random_data:
+2a78 20402a7e call ali_mesh_encrypt_calc_random_data_calc_confirmationkey 
+2a79 20402a86 call ali_mesh_encrypt_calc_random_data_calc_authvalueprov 
+2a7a 20402a8b call ali_mesh_encrypt_calc_random_data_calc_authvaluedevice 
+2a7b 20402a90 call ali_mesh_encrypt_calc_random_data_calc_confirmationcloud 
+2a7c 20402a98 call ali_mesh_encrypt_calc_random_data_calc_confirmationdevice 
+2a7d 20202a9c branch ali_mesh_encrypt_calc_random_data_calc_devicekey 
+
+ali_mesh_encrypt_calc_random_data_calc_confirmationkey:
+2a7e 20402aa9 call ali_mesh_encrypt_load_randomab_to_sha256 
+2a7f d8c0484b arg mem_mesh_sha256_confirmationkey_ascii ,contr 
+2a80 df20000f arg 0xf ,loopcnt 
+2a81 20402b17 call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii 
+2a82 20402b31 call ali_mesh_encrypt_base_function_sha256_calc 
+2a83 d8c00900 arg memresult ,contr 
+2a84 d8a0483b arg mem_mesh_confirmationkey ,contw 
+2a85 20207c4c branch memcpy16 
+
+ali_mesh_encrypt_calc_random_data_calc_authvalueprov:
+2a86 20402aac call ali_mesh_encrypt_load_three_tuple_to_sha256 
+2a87 20402b31 call ali_mesh_encrypt_base_function_sha256_calc 
+2a88 d8c00900 arg memresult ,contr 
+2a89 d8a047eb arg mem_mesh_authvalueprov ,contw 
+2a8a 20207c4c branch memcpy16 
+
+ali_mesh_encrypt_calc_random_data_calc_authvaluedevice:
+2a8b 20402aac call ali_mesh_encrypt_load_three_tuple_to_sha256 
+2a8c 20402b31 call ali_mesh_encrypt_base_function_sha256_calc 
+2a8d d8c00900 arg memresult ,contr 
+2a8e d8a0481b arg mem_mesh_authvaluedevice ,contw 
+2a8f 20207c4c branch memcpy16 
+
+ali_mesh_encrypt_calc_random_data_calc_confirmationcloud:
+2a90 6fe4480b fetch 8 ,mem_mesh_provisioning_random_a 
+2a91 67e447e3 store 8 ,mem_mesh_confirmationcloud_randoma 
+2a92 6fe44813 fetch 8 ,mem_mesh_provisioning_random_b 
+2a93 67e447db store 8 ,mem_mesh_confirmationcloud_randomb 
+2a94 d8c047db arg mem_mesh_calc_confirmationcloud_data ,contr 
+2a95 da20483b arg mem_mesh_confirmationkey ,rega 
+2a96 de0047fb arg mem_mesh_confirmationcloud ,alarm 
+2a97 20202b7f branch ali_mesh_encrypt_base_function_aes_cmac_32byte 
+
+ali_mesh_encrypt_calc_random_data_calc_confirmationdevice:
+2a98 d8c0480b arg mem_mesh_calc_confirmationdevice_data ,contr 
+2a99 da20483b arg mem_mesh_confirmationkey ,rega 
+2a9a de00480b arg mem_mesh_confirmationdevice ,alarm 
+2a9b 20202b7f branch ali_mesh_encrypt_base_function_aes_cmac_32byte 
+
+ali_mesh_encrypt_calc_random_data_calc_devicekey:
+2a9c d8c047fb arg mem_mesh_confirmationcloud ,contr 
+2a9d df200010 arg 0x10 ,loopcnt 
+2a9e 20402b14 call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii 
+2a9f d8c04864 arg mem_mesh_sha256_devicekey_ascii ,contr 
+2aa0 df200009 arg 9 ,loopcnt 
+2aa1 20402b17 call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii 
+2aa2 20402b31 call ali_mesh_encrypt_base_function_sha256_calc 
+2aa3 d8c00900 arg memresult ,contr 
+2aa4 d8a0482b arg mem_mesh_device_key ,contw 
+2aa5 20207c4c branch memcpy16 
+
+ali_mesh_encrypt_load_randomba_to_sha256:
+2aa6 20402aaa call ali_mesh_encrypt_load_randomb_to_sha256 
+
+ali_mesh_encrypt_load_randoma_to_sha256:
+2aa7 d8c0480b arg mem_mesh_provisioning_random_a ,contr 
+2aa8 20202b13 branch ali_mesh_encrypt_base_function_sha256_load_data_64bit 
+
+ali_mesh_encrypt_load_randomab_to_sha256:
+2aa9 20402aa7 call ali_mesh_encrypt_load_randoma_to_sha256 
+
+ali_mesh_encrypt_load_randomb_to_sha256:
+2aaa d8c04813 arg mem_mesh_provisioning_random_b ,contr 
+2aab 20202b13 branch ali_mesh_encrypt_base_function_sha256_load_data_64bit 
+
+ali_mesh_encrypt_load_three_tuple_to_sha256:
+2aac d8c049d7 arg mem_mesh_three_tuple_productid ,contr 
+2aad df200004 arg 4 ,loopcnt 
+2aae 20402b1a call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma 
+2aaf d8c049db arg mem_mesh_three_tuple_mac ,contr 
+2ab0 df200006 arg 6 ,loopcnt 
+2ab1 20402b1a call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma 
+2ab2 d8c049e1 arg mem_mesh_three_tuple_secret ,contr 
+2ab3 df200010 arg 0x10 ,loopcnt 
+2ab4 20202b14 branch ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii 
+
+ali_mesh_encrypt_calc_provisioning_data:
+2ab5 20402ac1 call ali_mesh_encrypt_calc_provisioning_data_calc_sessionkey 
+
+ali_mesh_encrypt_calc_provisioning_data_xor_prov_data:
+2ab6 da204977 arg mem_mesh_encrypt_provisioning_data ,rega 
+2ab7 da400900 arg memresult ,regb 
+2ab8 df20000b arg 0xb ,loopcnt 
+
+ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop:
+2ab9 efe10011 ifetch 2 ,rega 
+2aba e8410012 ifetcht 2 ,regb 
+2abb 9842fe00 ixor temp ,pdata 
+2abc e7e10011 istore 2 ,rega 
+2abd 1a20a202 increase 2 ,rega 
+2abe 1a40a402 increase 2 ,regb 
+2abf c2002ab9 loop ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop 
+2ac0 20600000 rtn 
+
+ali_mesh_encrypt_calc_provisioning_data_calc_sessionkey:
+2ac1 d8c047fb arg mem_mesh_confirmationcloud ,contr 
+2ac2 df200010 arg 0x10 ,loopcnt 
+2ac3 20402b14 call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii 
+2ac4 d8c0485a arg mem_mesh_sha256_sessionkey_ascii ,contr 
+2ac5 df20000a arg 0xa ,loopcnt 
+2ac6 20402b17 call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii 
+2ac7 20202b31 branch ali_mesh_encrypt_base_function_sha256_calc 
+
+ali_mesh_encrypt_calc_network_key_by_k2:
+2ac8 d8c0497a arg mem_mesh_network_key ,contr 
+2ac9 d8a04898 arg mem_k2_n ,contw 
+2aca 20407c4c call memcpy16 
+
+ali_mesh_encrypt_base_function_k2:
+2acb d8c04898 arg mem_k2_n ,contr 
+2acc da2048a8 arg mem_k2_salt ,rega 
+2acd de0048b8 arg mem_k2_t ,alarm 
+2ace 20402b81 call ali_mesh_encrypt_base_function_aes_cmac_16byte 
+2acf de0048c8 arg mem_k2_t1 ,alarm 
+2ad0 da400001 arg 0x01 ,regb 
+2ad1 58000000 setarg 0 
+2ad2 20402b83 call ali_mesh_encrypt_base_function_k2_aes_cmac_t 
+2ad3 6fe0c8d7 fetch 1 ,mem_k2_t1 + 15 
+2ad4 1fe17e7f and pdata ,0x7f ,pdata 
+2ad5 67e0c8d8 store 1 ,mem_k2_nid 
+2ad6 de0048e9 arg mem_k2_t2 ,alarm 
+2ad7 da400002 arg 0x02 ,regb 
+2ad8 58000010 setarg 0x10 
+2ad9 da2048c8 arg mem_k2_t1 ,rega 
+2ada 20402b83 call ali_mesh_encrypt_base_function_k2_aes_cmac_t 
+2adb de0048d9 arg mem_k2_t3 ,alarm 
+2adc da400003 arg 0x03 ,regb 
+2add 58000010 setarg 0x10 
+2ade da2048e9 arg mem_k2_t2 ,rega 
+2adf 20202b83 branch ali_mesh_encrypt_base_function_k2_aes_cmac_t 
+
+ali_mesh_encrypt_base_function_k4:
+2ae0 d8c04b1d arg mem_mesh_application_key ,contr 
+2ae1 da2048f9 arg mem_k4_salt ,rega 
+2ae2 de004909 arg mem_k4_t ,alarm 
+2ae3 20402b81 call ali_mesh_encrypt_base_function_aes_cmac_16byte 
+2ae4 d8c04919 arg mem_k4_id6_01 ,contr 
+2ae5 da204909 arg mem_k4_t ,rega 
+2ae6 de004929 arg mem_k4_k4n ,alarm 
+2ae7 58000004 setarg 4 
+2ae8 20402b91 call ali_mesh_encrypt_base_function_aes_cmac 
+2ae9 6fe0c938 fetch 1 ,mem_k4_k4n + 15 
+2aea 1fe17e3f and pdata ,0x3f ,pdata 
+2aeb 79207e06 set1 transport_head_bit_akf ,pdata 
+2aec 67e0c939 store 1 ,mem_mesh_transport_aid 
+2aed 20600000 rtn 
+
+ali_mesh_encrypt_base_function_k3:
+2aee d8c0497a arg mem_mesh_network_key ,contr 
+2aef da20493a arg mem_k3_salt ,rega 
+2af0 de00494a arg mem_k3_t ,alarm 
+2af1 20402b81 call ali_mesh_encrypt_base_function_aes_cmac_16byte 
+2af2 d8c0495a arg mem_k3_id64_01 ,contr 
+2af3 da20494a arg mem_k3_t ,rega 
+2af4 de00495f arg mem_k3_k4n ,alarm 
+2af5 58000005 setarg 5 
+2af6 20402b91 call ali_mesh_encrypt_base_function_aes_cmac 
+2af7 20402fd3 call ali_mesh_proxy_init_adv 
+2af8 6fe14793 fetch 2 ,mem_ui_state_map 
+2af9 c3848000 rtnbit1 ui_state_ble_connected 
+2afa 70442a01 jam 1 ,mem_le_adv_enable 
+2afb 20600000 rtn 
+
+ali_mesh_encrypt_obfuscation_deceypt_send_message:
+2afc da204b5d arg mem_mesh_send_upper_layer_ctl_and_ttl ,rega 
+2afd 6fe3cb63 fetch 7 ,mem_mesh_send_upper_layer_dst 
+2afe 20202b01 branch ali_mesh_encrypt_obfuscation_deceypt 
+
+ali_mesh_encrypt_obfuscation_deceypt_recevie_message:
+2aff da200c0c arg mem_mesh_message_ttl ,rega 
+2b00 6fe38c12 fetch 7 ,mem_mesh_message_dst 
+
+ali_mesh_encrypt_obfuscation_deceypt:
+2b01 67e38bc7 store 7 ,mem_mesh_privacy_plaintext_privacy_random 
+2b02 58000000 setarg 0 
+2b03 67e28bbe store 5 ,mem_mesh_privacy_plaintext_zero_string 
+2b04 20402b0a call ali_mesh_encrypt_generate_pecb 
+2b05 6fe30bce fetch 6 ,mem_mesh_pecb 
+2b06 e8430011 ifetcht 6 ,rega 
+2b07 9842fe00 ixor temp ,pdata 
+2b08 e7e30011 istore 6 ,rega 
+2b09 20600000 rtn 
+
+ali_mesh_encrypt_generate_pecb:
+
+ali_mesh_encrypt_generate_privacy_random:
+2b0a 6fe24a32 fetch 4 ,mem_mesh_iv_index 
+2b0b 67e20bc3 store 4 ,mem_mesh_privacy_plaintext_iv_index 
+
+ali_mesh_encrypt_base_function_generate_pecb:
+2b0c d8c048d9 arg mem_k2_privacykey ,contr 
+2b0d 20406cf1 call load_key 
+2b0e d8c00bbe arg mem_mesh_privacy_plaintext ,contr 
+2b0f 20406cf3 call load_data128 
+2b10 20406c63 call do_aes_ocb 
+2b11 d8a00bce arg mem_mesh_pecb ,contw 
+2b12 20206d07 branch store_aes_result 
+
+ali_mesh_encrypt_base_function_sha256_load_data_64bit:
+2b13 df200008 arg 8 ,loopcnt 
+
+ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii:
+2b14 20402b21 call ali_mesh_encrypt_base_function_sha256_check_first_load_data 
+2b15 20402b70 call ali_mesh_encrypt_base_function_hex2ascii 
+2b16 20202b1e branch ali_mesh_encrypt_base_function_sha256_store_dataptr 
+
+ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii:
+2b17 20402b21 call ali_mesh_encrypt_base_function_sha256_check_first_load_data 
+2b18 20407ca1 call memcpy 
+2b19 20202b1e branch ali_mesh_encrypt_base_function_sha256_store_dataptr 
+
+ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma:
+2b1a 20402b21 call ali_mesh_encrypt_base_function_sha256_check_first_load_data 
+2b1b 20402b70 call ali_mesh_encrypt_base_function_hex2ascii 
+2b1c 5800002c setarg comma 
+2b1d e7e08005 istore 1 ,contw 
+
+ali_mesh_encrypt_base_function_sha256_store_dataptr:
+2b1e 18a27e00 copy contw ,pdata 
+2b1f 67e1487e store 2 ,mem_mesh_sha256_data_end_addr 
+2b20 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_check_first_load_data:
+2b21 18c20400 copy contr ,temp 
+2b22 1f222200 copy loopcnt ,rega 
+2b23 6fe1487e fetch 2 ,mem_mesh_sha256_data_end_addr 
+2b24 1fe20a00 copy pdata ,contw 
+2b25 6fe0c86d fetch 1 ,mem_mesh_sha256_load_first_data_flag 
+2b26 205a2b2a call ali_mesh_encrypt_base_function_sha256_first_load_data ,blank 
+2b27 18420c00 copy temp ,contr 
+2b28 1a227200 copy rega ,loopcnt 
+2b29 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_first_load_data:
+2b2a 70486d01 jam 1 ,mem_mesh_sha256_load_first_data_flag 
+2b2b 20402b2e call ali_mesh_encrypt_base_function_sha256_clear_data_chunk 
+2b2c d8a00abe arg mem_mesh_sha256_chunk_start ,contw 
+2b2d 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_clear_data_chunk:
+2b2e df200020 arg 0x20 ,loopcnt 
+2b2f d8a00abe arg mem_mesh_sha256_chunk_start ,contw 
+2b30 20207c59 branch memset0 
+
+ali_mesh_encrypt_base_function_sha256_calc:
+2b31 20402b4e call ali_mesh_encrypt_base_function_sha256_load_data_end 
+2b32 da400010 arg mesh_encrypt_sha256_function_input ,regb 
+2b33 da200abe arg mem_mesh_sha256_chunk_start ,rega 
+2b34 6f24486e fetchr loopcnt ,8 ,mem_mesh_sha256_data_len_byte 
+2b35 204029c4 call logging_tx_debug 
+2b36 20402b69 call ali_mesh_encrypt_base_function_sha256_input_data_init_inverse 
+2b37 58000abe setarg mem_mesh_sha256_chunk_start 
+2b38 67e14885 store 2 ,mem_mesh_sha256_chunk_ptr 
+2b39 204071d1 call sha_init 
+
+ali_mesh_encrypt_base_function_sha256_calc_loop:
+2b3a 6fe14885 fetch 2 ,mem_mesh_sha256_chunk_ptr 
+2b3b 1fe20c00 copy pdata ,contr 
+2b3c d8a004a8 arg memdat ,contw 
+2b3d 20407c3d call memcpy64 
+2b3e 204071d8 call sha 
+2b3f 6fe14885 fetch 2 ,mem_mesh_sha256_chunk_ptr 
+2b40 1fe0fe40 pincrease 64 
+2b41 67e14885 store 2 ,mem_mesh_sha256_chunk_ptr 
+2b42 6fe0c882 fetch 1 ,mem_mesh_sha256_chunk_count 
+2b43 1fe0ffff pincrease -1 
+2b44 67e0c882 store 1 ,mem_mesh_sha256_chunk_count 
+2b45 243a2b3a nbranch ali_mesh_encrypt_base_function_sha256_calc_loop ,blank 
+2b46 20407214 call sha_result 
+2b47 da200900 arg memresult ,rega 
+2b48 df200020 arg 0x20 ,loopcnt 
+2b49 20407c79 call inverse_data 
+2b4a da400011 arg mesh_encrypt_sha256_function_result ,regb 
+2b4b da200900 arg memresult ,rega 
+2b4c df200020 arg 0x20 ,loopcnt 
+2b4d 202029c4 branch logging_tx_debug 
+
+ali_mesh_encrypt_base_function_sha256_load_data_end:
+2b4e 70486d00 jam 0 ,mem_mesh_sha256_load_first_data_flag 
+2b4f 6fe1487e fetch 2 ,mem_mesh_sha256_data_end_addr 
+2b50 1fe20a00 copy pdata ,contw 
+2b51 d8400080 arg 0x80 ,temp 
+2b52 e0408005 istoret 1 ,contw 
+2b53 d8400abe arg mem_mesh_sha256_chunk_start ,temp 
+2b54 98467e00 isub temp ,pdata 
+2b55 67e4486e store 8 ,mem_mesh_sha256_data_len_byte 
+2b56 1fe98400 lshift3 pdata ,temp 
+2b57 604c4876 storet 8 ,mem_mesh_sha256_data_len_bit 
+2b58 1ff1a600 rshift4 pdata ,regc 
+2b59 1a6b2600 rshift2 regc ,regc 
+2b5a 1fe17e3f and pdata ,0x3f ,pdata 
+2b5b 1fe67c37 sub pdata ,55 ,null 
+2b5c 24412b67 ncall ali_mesh_encrypt_base_function_sha256_add_chunk ,positive 
+2b5d 1a60fe01 add regc ,1 ,pdata 
+2b5e 67e0c882 store 1 ,mem_mesh_sha256_chunk_count 
+2b5f 1fefa240 mul32 pdata ,64 ,rega 
+2b60 1ff22600 lshift4 pdata ,regc 
+2b61 1a60a7ff increase -1 ,regc 
+2b62 58000aba setarg mem_mesh_sha256_chunk_start + decreased_four 
+2b63 9a20a200 iadd rega ,rega 
+2b64 6fe24876 fetch 4 ,mem_mesh_sha256_data_len_bit 
+2b65 e7e20011 istore 4 ,rega 
+2b66 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_add_chunk:
+2b67 1a60a601 increase 1 ,regc 
+2b68 20600000 rtn 
+
+ali_mesh_encrypt_base_function_sha256_input_data_init_inverse:
+2b69 da200abe arg mem_mesh_sha256_chunk_start ,rega 
+
+ali_mesh_encrypt_base_function_sha256_data_inverse_4byte:
+2b6a df200004 arg 4 ,loopcnt 
+2b6b 20407c79 call inverse_data 
+2b6c 1a20a202 increase 2 ,rega 
+2b6d 1a60a7ff add regc ,-1 ,regc 
+2b6e 2422ab6a nbranch ali_mesh_encrypt_base_function_sha256_data_inverse_4byte ,zero 
+2b6f 20600000 rtn 
+
+ali_mesh_encrypt_base_function_hex2ascii:
+2b70 efe08006 ifetch 1 ,contr 
+2b71 1ff18400 rshift4 pdata ,temp 
+2b72 20402b79 call ali_mesh_encrypt_base_function_dialog2uchar 
+2b73 e0408005 istoret 1 ,contw 
+2b74 1fe1040f and pdata ,0x0f ,temp 
+2b75 20402b79 call ali_mesh_encrypt_base_function_dialog2uchar 
+2b76 e0408005 istoret 1 ,contw 
+2b77 c2002b70 loop ali_mesh_encrypt_base_function_hex2ascii 
+2b78 20600000 rtn 
+
+ali_mesh_encrypt_base_function_dialog2uchar:
+2b79 18467c09 sub temp ,9 ,null 
+2b7a 20212b7d branch ali_mesh_encrypt_base_function_dialog2uchar_num ,positive 
+2b7b 18408457 add temp ,87 ,temp 
+2b7c 20600000 rtn 
+
+ali_mesh_encrypt_base_function_dialog2uchar_num:
+2b7d 18408430 add temp ,48 ,temp 
+2b7e 20600000 rtn 
+
+ali_mesh_encrypt_base_function_aes_cmac_32byte:
+2b7f 58000020 setarg 0x20 
+2b80 20202b91 branch ali_mesh_encrypt_base_function_aes_cmac 
+
+ali_mesh_encrypt_base_function_aes_cmac_16byte:
+2b81 58000010 setarg 0x10 
+2b82 20202b91 branch ali_mesh_encrypt_base_function_aes_cmac 
+
+ali_mesh_encrypt_base_function_k2_aes_cmac_t:
+2b83 6848c887 fetcht 1 ,mem_k2_p_len 
+2b84 18408401 increase 1 ,temp 
+2b85 98408400 iadd temp ,temp 
+2b86 604884a7 storet 1 ,mem_aes_cmac_data_length 
+2b87 1a220c00 copy rega ,contr 
+2b88 1fe27200 copy pdata ,loopcnt 
+2b89 20407c94 call memcpy_fast 
+2b8a 6848c887 fetcht 1 ,mem_k2_p_len 
+2b8b 18427200 copy temp ,loopcnt 
+2b8c 20407ca1 call memcpy 
+2b8d 1a427e00 copy regb ,pdata 
+2b8e e7e08005 istore 1 ,contw 
+2b8f da2048b8 arg mem_k2_t ,rega 
+2b90 20202b94 branch ali_mesh_encrypt_base_function_aes_cmac + 3 
+
+ali_mesh_encrypt_base_function_aes_cmac:
+2b91 67e084a7 store 1 ,mem_aes_cmac_data_length 
+2b92 1fe27200 copy pdata ,loopcnt 
+2b93 20407c94 call memcpy_fast 
+2b94 1a220c00 copy rega ,contr 
+2b95 d8a0098e arg mem_aes_cmac_k ,contw 
+2b96 20407c4c call memcpy16 
+2b97 da400012 arg mesh_encrypt_aes_cmac_function_input_m ,regb 
+2b98 da2004a8 arg memdat ,rega 
+2b99 6f2084a7 fetchr loopcnt ,1 ,mem_aes_cmac_data_length 
+2b9a 204029c4 call logging_tx_debug 
+2b9b da400013 arg mesh_encrypt_aes_cmac_function_input_k ,regb 
+2b9c da20098e arg mem_aes_cmac_k ,rega 
+2b9d df200010 arg 16 ,loopcnt 
+2b9e 204029c4 call logging_tx_debug 
+2b9f 20406990 call function_aes_cmac 
+2ba0 1e020a00 copy alarm ,contw 
+2ba1 20406d07 call store_aes_result 
+2ba2 da400014 arg mesh_encrypt_aes_cmac_function_result ,regb 
+2ba3 1e022200 copy alarm ,rega 
+2ba4 df200010 arg 16 ,loopcnt 
+2ba5 202029c4 branch logging_tx_debug 
+
+ali_b0_block_generate:
+2ba6 68488beb fetcht 1 ,mem_ccm_type 
+2ba7 20202ba9 branch ali_block_generate 
+
+ali_a_block_generate:
+2ba8 18000401 force 0x01 ,temp 
+
+ali_block_generate:
+2ba9 18007000 force regidx_data ,regext_index 
+2baa 6fe10bde fetch 2 ,mem_nonce_ptr 
+2bab 1fe20c00 copy pdata ,contr 
+2bac efe18006 ifetch 3 ,contr 
+2bad 1fed7e00 lshift8 pdata ,pdata 
+2bae 9841de00 ior temp ,regext 
+2baf 1f00f001 increase 1 ,regext_index 
+2bb0 efe20006 ifetch 4 ,contr 
+2bb1 1fe25e00 copy pdata ,regext 
+2bb2 1f00f001 increase 1 ,regext_index 
+2bb3 efe20006 ifetch 4 ,contr 
+2bb4 1fe25e00 copy pdata ,regext 
+2bb5 1f00f001 increase 1 ,regext_index 
+2bb6 1a30de00 byteswap rega ,regext 
+2bb7 1df05e00 lshift16 regext ,regext 
+2bb8 efe10006 ifetch 2 ,contr 
+2bb9 9de1de00 ior regext ,regext 
+2bba 20600000 rtn 
+
+ali_generate_mic:
+2bbb 6fe08be0 fetch 1 ,mem_ccm_data_len 
+2bbc 1fe22200 copy pdata ,rega 
+2bbd 20402ba6 call ali_b0_block_generate 
+2bbe 20406c63 call do_aes_ocb 
+2bbf 1800700c force regidx_result ,regext_index 
+2bc0 1de27e00 deposit regext 
+2bc1 1a227200 copy rega ,loopcnt 
+2bc2 68490be1 fetcht 2 ,mem_ccm_data_ptr 
+2bc3 18420c00 copy temp ,contr 
+2bc4 20406cdb call padding_data 
+2bc5 20206b92 branch generate_mic_loop 
+
+ali_ccm_encrypt_64bit:
+2bc6 700beb19 jam mic_size_64bit ,mem_ccm_type 
+2bc7 20202bca branch ali_ccm_encrypt_function 
+
+ali_ccm_encrypt:
+2bc8 700beb09 jam mic_size_32bit ,mem_ccm_type 
+2bc9 20202bca branch ali_ccm_encrypt_function 
+
+ali_ccm_encrypt_function:
+2bca 67e08be0 store 1 ,mem_ccm_data_len 
+2bcb 60490be1 storet 2 ,mem_ccm_data_ptr 
+2bcc 4779403e bpatchx patch3e_2 ,mem_patch3e 
+2bcd 20402bbb call ali_generate_mic 
+2bce 18007008 force regidx_xor ,regext_index 
+2bcf 98005e00 iforce regext 
+2bd0 1800700d force regidx_result + 1 ,regext_index 
+2bd1 1de27e00 copy regext ,pdata 
+2bd2 18007009 force regidx_xor + 1 ,regext_index 
+2bd3 98005e00 iforce regext 
+2bd4 18002200 force 0 ,rega 
+2bd5 18422600 copy temp ,regc 
+2bd6 20402ba8 call ali_a_block_generate 
+2bd7 20406c69 call do_aes_ctr 
+2bd8 20402c09 call ali_fetcht_ccm_mic 
+2bd9 604c0be3 storet 8 ,mem_ccm_mic 
+2bda 6fe08be0 fetch 1 ,mem_ccm_data_len 
+2bdb 1fe22400 copy pdata ,regb 
+2bdc 20402c11 call ali_aes_crypt_data 
+2bdd 68488be0 fetcht 1 ,mem_ccm_data_len 
+2bde 6fe10be1 fetch 2 ,mem_ccm_data_ptr 
+2bdf 9840a200 iadd temp ,rega 
+2be0 684c0be3 fetcht 8 ,mem_ccm_mic 
+2be1 e0420011 istoret 4 ,rega 
+2be2 6fe08beb fetch 1 ,mem_ccm_type 
+2be3 1fe67e09 sub pdata ,mic_size_32bit ,pdata 
+2be4 207a0000 rtn blank 
+2be5 e0440011 istoret 8 ,rega 
+2be6 20600000 rtn 
+
+ali_ccm_decrypt_64bit:
+2be7 700beb19 jam mic_size_64bit ,mem_ccm_type 
+2be8 20202beb branch ali_ccm_decrypt_function 
+
+ali_ccm_decrypt:
+2be9 700beb09 jam mic_size_32bit ,mem_ccm_type 
+2bea 20202beb branch ali_ccm_decrypt_function 
+
+ali_ccm_decrypt_function:
+2beb 67e08be0 store 1 ,mem_ccm_data_len 
+2bec 60490be1 storet 2 ,mem_ccm_data_ptr 
+2bed 18422600 copy temp ,regc 
+2bee 1fe22400 copy pdata ,regb 
+2bef 9a608c00 iadd regc ,contr 
+2bf0 4779c03e bpatchx patch3e_3 ,mem_patch3e 
+2bf1 efe40006 ifetch 8 ,contr 
+2bf2 18007008 force regidx_xor ,regext_index 
+2bf3 98005e00 iforce regext 
+2bf4 18007009 force regidx_xor + 1 ,regext_index 
+2bf5 1fef7e00 rshift32 pdata ,pdata 
+2bf6 98005e00 iforce regext 
+2bf7 18002200 force 0 ,rega 
+2bf8 20402ba8 call ali_a_block_generate 
+2bf9 20406c69 call do_aes_ctr 
+2bfa 20402c09 call ali_fetcht_ccm_mic 
+2bfb 604c0be3 storet 8 ,mem_ccm_mic 
+2bfc 20402c11 call ali_aes_crypt_data 
+2bfd 20402bbb call ali_generate_mic 
+2bfe 20402c09 call ali_fetcht_ccm_mic 
+2bff 6fe08beb fetch 1 ,mem_ccm_type 
+2c00 c00cac06 beq mic_size_64bit ,ali_ccm_decrypt_function_check_mic64 
+2c01 604a0be7 storet 4 ,mem_ccm_mic + 4 
+2c02 6fe20be3 fetch 4 ,mem_ccm_mic 
+2c03 684a0be7 fetcht 4 ,mem_ccm_mic + 4 
+2c04 98467e00 isub temp ,pdata 
+2c05 20600000 rtn 
+
+ali_ccm_decrypt_function_check_mic64:
+2c06 6fe40be3 fetch 8 ,mem_ccm_mic 
+2c07 98467e00 isub temp ,pdata 
+2c08 20600000 rtn 
+
+ali_fetcht_ccm_mic:
+2c09 1800700c force regidx_result ,regext_index 
+2c0a 1de27e00 deposit regext 
+2c0b 1800700d force regidx_result + 1 ,regext_index 
+2c0c 1de20400 copy regext ,temp 
+2c0d 18500400 lshift16 temp ,temp 
+2c0e 18500400 lshift16 temp ,temp 
+2c0f 98418400 ior temp ,temp 
+2c10 20600000 rtn 
+
+ali_aes_crypt_data:
+2c11 1a20a201 increase 1 ,rega 
+2c12 20402ba8 call ali_a_block_generate 
+2c13 1a620c00 copy regc ,contr 
+2c14 20406cef call aes_load_xor 
+2c15 20406c69 call do_aes_ctr 
+2c16 20406d0e call store_enc_data 
+2c17 1a60a610 increase 16 ,regc 
+2c18 1a40a5f0 increase -16 ,regb 
+2c19 20212c11 branch ali_aes_crypt_data ,positive 
+2c1a 20600000 rtn 
+
+mesh_send_unprovisioned_beacons:
+2c1b 70496f01 jam unprovisioned_beacon_status ,mem_mesh_provisioned_flag 
+2c1c 70497000 jam 0x00 ,mem_mesh_provisioning_state_flag 
+2c1d 7047d601 jam 1 ,mem_mesh_advertising_unprovisioned_device_beacon_switch 
+2c1e 58001770 setarg adv_unprovisioned_device_beacon_timeout 
+2c1f 67e147d7 store 2 ,mem_mesh_advertising_unprovisioned_device_beacon_timer 
+2c20 20600000 rtn 
+
+ali_mesh_config_device_uuid_by_three_tuple:
+2c21 580001a8 setarg company_identifiers_alibaba 
+2c22 67e10bec store 2 ,mem_mesh_device_uuid 
+2c23 6fe0c971 fetch 1 ,mem_mesh_device_pid 
+2c24 e7e08005 istore 1 ,contw 
+2c25 6fe249d7 fetch 4 ,mem_mesh_three_tuple_productid 
+2c26 20407c8e call inverse_data_4byte 
+2c27 e7e20005 istore 4 ,contw 
+2c28 6fe3437d fetch 6 ,mem_le_lap 
+2c29 e7e30005 istore 6 ,contw 
+2c2a 6fe1c972 fetch 3 ,mem_mesh_uuid_featureflag 
+2c2b e7e18005 istore 3 ,contw 
+2c2c 20600000 rtn 
+
+ali_mesh_send_unprovisioned_beacons_tmall:
+2c2d 20402c2f call ali_mesh_init_adv_data_tmall_unprovisioned_beacons_package 
+2c2e 20202931 branch mesh_le_send_adv 
+
+ali_mesh_init_adv_data_tmall_unprovisioned_beacons_package:
+2c2f 7047b515 jam 0x15 ,mem_mesh_adv_data_len 
+2c30 58000014 setarg 0x14 
+2c31 67e0c7b6 store 1 ,mem_mesh_adv_data 
+2c32 5800002b setarg gap_adtype_mesh_beacon 
+2c33 e7e08005 istore 1 ,contw 
+2c34 58000000 setarg unprovisioned_device_beacon 
+2c35 e7e08005 istore 1 ,contw 
+
+ali_mesh_advertising_send_unprovisioned_beacons_store_device_uuid:
+2c36 d8c00bec arg mem_mesh_device_uuid ,contr 
+2c37 20407c4c call memcpy16 
+2c38 6fe14975 fetch 2 ,mem_mesh_oob_information 
+2c39 e7e10005 istore 2 ,contw 
+2c3a 20600000 rtn 
+
+ali_mesh_advertising_send_unprovisioned_beacons_gatt:
+2c3b 6fe0ca19 fetch 1 ,mem_mesh_core_feature 
+2c3c c3818000 rtnbit1 mesh_feature_disable_app_pairing 
+2c3d 20402c3f call ali_mesh_init_adv_data_gatt_unprovisioned_beacons_package 
+2c3e 20202931 branch mesh_le_send_adv 
+
+ali_mesh_init_adv_data_gatt_unprovisioned_beacons_package:
+2c3f 7047b51d jam 0x1d ,mem_mesh_adv_data_len 
+2c40 204028ea call ali_mesh_advertising_add_adtype_flags 
+2c41 204028f2 call ali_mesh_advertising_add_adtype_16bit_complete 
+2c42 20402c44 call ali_mesh_advertising_add_adtype_service_data 
+2c43 20202c36 branch ali_mesh_advertising_send_unprovisioned_beacons_store_device_uuid 
+
+ali_mesh_advertising_add_adtype_service_data:
+2c44 58000015 setarg 0x15 
+2c45 e7e08005 istore 1 ,contw 
+2c46 58000016 setarg gap_adtype_service_data 
+2c47 e7e08005 istore 1 ,contw 
+2c48 e0410005 istoret 2 ,contw 
+2c49 20600000 rtn 
+
+ali_mesh_receive_adtype_manufacturer_specific:
+2c4a 1840f3ff add temp ,-1 ,loopcnt 
+2c4b 20402d0e call ali_mesh_receive_provisioning_package_check_header 
+2c4c 24740000 nrtn user 
+2c4d efe08006 ifetch 1 ,contr 
+2c4e c0002c52 beq provisioning_random ,ali_mesh_advertising_receive_privisioning_random 
+2c4f c0012c6d beq provisioning_data ,ali_mesh_advertising_receive_privisioning_data 
+2c50 c0032c8c beq provisioning_ios_data ,ali_mesh_advertising_receive_privisioning_ios_data 
+2c51 20600000 rtn 
+
+ali_mesh_advertising_receive_privisioning_random:
+2c52 20402c5f call ali_mesh_advertising_receive_privisioning_random_check_states 
+2c53 24740000 nrtn user 
+
+ali_mesh_advertising_calc_encrypt_random_data:
+2c54 20402a78 call ali_mesh_encrypt_calc_random_data 
+2c55 20402c57 call ali_mesh_advertising_send_provisioning_confirmation 
+2c56 20202cb6 branch loggint_tx_info_send_confirmation_packet 
+
+ali_mesh_advertising_send_provisioning_confirmation:
+2c57 d8400012 arg provisioning_packet_confirmation_mac + provisioning_packet_confirmation_device ,temp 
+2c58 20402c8e call ali_mesh_advertising_send_packet_common 
+2c59 58000001 setarg provisioning_confirmation 
+2c5a e7e08005 istore 1 ,contw 
+2c5b 6fe149df fetch 2 ,mem_mesh_three_tuple_mac + 4 
+2c5c e7e10005 istore 2 ,contw 
+2c5d d8c0480b arg mem_mesh_confirmationdevice ,contr 
+2c5e 20207c4c branch memcpy16 
+
+ali_mesh_advertising_receive_privisioning_random_check_states:
+2c5f 20407d94 call disable_user 
+2c60 e8410006 ifetcht 2 ,contr 
+2c61 d8a0480b arg mem_mesh_provisioning_random_a ,contw 
+2c62 20407c4c call memcpy16 
+2c63 6fe149df fetch 2 ,mem_mesh_three_tuple_mac + 4 
+2c64 98467c00 isub temp ,null 
+2c65 24628000 nrtn zero 
+2c66 6fe0c970 fetch 1 ,mem_mesh_provisioning_state_flag 
+2c67 c3808000 rtnbit1 receive_provisioning_random 
+2c68 79207e01 set1 receive_provisioning_random ,pdata 
+2c69 67e0c970 store 1 ,mem_mesh_provisioning_state_flag 
+2c6a 70496f02 jam pairing_status ,mem_mesh_provisioned_flag 
+2c6b 20402cb2 call loggint_tx_info_receive_random_packet 
+2c6c 20207d92 branch enable_user 
+
+ali_mesh_advertising_receive_privisioning_data:
+2c6d 18c22200 copy contr ,rega 
+2c6e 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2c6f c1000000 rtneq paired_status 
+2c70 6fe0c970 fetch 1 ,mem_mesh_provisioning_state_flag 
+2c71 c4008000 rtnbit0 receive_provisioning_random 
+2c72 c3810000 rtnbit1 receive_provisioning_data 
+2c73 1a220c00 copy rega ,contr 
+2c74 df200016 arg 0x16 ,loopcnt 
+2c75 d8a04977 arg mem_mesh_encrypt_provisioning_data ,contw 
+2c76 20407ca1 call memcpy 
+2c77 20402ab5 call ali_mesh_encrypt_calc_provisioning_data 
+2c78 68494977 fetcht 2 ,mem_mesh_provisioning_data_mac_addr 
+2c79 6fe149df fetch 2 ,mem_mesh_three_tuple_mac + 4 
+2c7a 98467c00 isub temp ,null 
+2c7b 24628000 nrtn zero 
+
+ali_mesh_resolve_privisioning_data_package:
+2c7c 20402cba call loggint_tx_info_receive_data_packet 
+2c7d 6fe0c970 fetch 1 ,mem_mesh_provisioning_state_flag 
+2c7e 79207e02 set1 receive_provisioning_data ,pdata 
+2c7f 67e0c970 store 1 ,mem_mesh_provisioning_state_flag 
+2c80 20402ac8 call ali_mesh_encrypt_calc_network_key_by_k2 
+2c81 6fe0c98a fetch 1 ,mem_mesh_last_iv_index_byte 
+2c82 67e0ca35 store 1 ,mem_mesh_iv_index + 3 
+2c83 20402c85 call ali_mesh_advertising_send_provisioning_complete 
+2c84 20202cbe branch loggint_tx_info_send_complete_packet 
+
+ali_mesh_advertising_send_provisioning_complete:
+2c85 d8400006 arg provisioning_packet_complete_mac ,temp 
+2c86 20402c8e call ali_mesh_advertising_send_packet_common 
+2c87 58000003 setarg provisioning_complete 
+2c88 e7e08005 istore 1 ,contw 
+2c89 6fe349db fetch 6 ,mem_mesh_three_tuple_mac 
+2c8a e7e30005 istore 6 ,contw 
+2c8b 20600000 rtn 
+
+ali_mesh_advertising_receive_privisioning_ios_data:
+2c8c da400012 arg max_length_privisioning_control_msg_android ,regb 
+2c8d 20202cf8 branch ali_mesh_resolve_app_control_msg_package 
+
+ali_mesh_advertising_send_packet_common:
+2c8e 477a403e bpatchx patch3e_4 ,mem_patch3e 
+2c8f 20402cac call ali_mesh_advertising_reset_adv_timer 
+2c90 58008fff setarg 0x8fff 
+2c91 67e14991 store 2 ,mem_mesh_send_packet_timeout 
+2c92 204029fa call ali_mesh_control_ble_advertising_on_advertising 
+2c93 1840fe09 add temp ,provisioning_packet_length_ad_type_company_id_vid_provisioning_type + provisioning_packet_length_flags ,pdata 
+2c94 67e0c7b5 store 1 ,mem_mesh_adv_data_len 
+2c95 204028ea call ali_mesh_advertising_add_adtype_flags 
+2c96 1840fe05 add temp ,provisioning_packet_ad_type_company_id_vid_provisioning_type ,pdata 
+2c97 e7e08005 istore 1 ,contw 
+2c98 580000ff setarg gap_adtype_manufacturer_specific 
+2c99 e7e08005 istore 1 ,contw 
+2c9a 580001a8 setarg company_identifiers_alibaba 
+2c9b 1ff0fe00 byteswap pdata ,pdata 
+2c9c e7e10005 istore 2 ,contw 
+2c9d 6fe08bfc fetch 1 ,mem_mesh_receive_vid 
+2c9e e7e08005 istore 1 ,contw 
+2c9f 20600000 rtn 
+
+ali_mesh_advertising_timer:
+2ca0 6fe2498d fetch 4 ,mem_mesh_adv_last_time 
+2ca1 243a2ca3 nbranch ali_mesh_advertising_check_adv_timer ,blank 
+2ca2 20202cac branch ali_mesh_advertising_reset_adv_timer 
+
+ali_mesh_advertising_check_adv_timer:
+2ca3 1c427e00 deposit clkn_bt 
+2ca4 684a498d fetcht 4 ,mem_mesh_adv_last_time 
+2ca5 98460400 isub temp ,temp 
+2ca6 6fe14991 fetch 2 ,mem_mesh_send_packet_timeout 
+2ca7 98467c00 isub temp ,null 
+2ca8 20610000 rtn positive 
+
+ali_mesh_advertising_adv_timer_timeout:
+2ca9 204029fc call ali_mesh_control_ble_advertising_off_advertising 
+2caa 6fe149f7 fetch 2 ,mem_mesh_cb_pairing_fail 
+2cab 20207d47 branch callback_func 
+
+ali_mesh_advertising_reset_adv_timer:
+2cac 1c427e00 deposit clkn_bt 
+2cad 67e2498d store 4 ,mem_mesh_adv_last_time 
+2cae 20600000 rtn 
+
+logging_tx_debug_receive_provisioning_packet:
+2caf 18c0a3fd add contr ,-3 ,rega 
+2cb0 da400001 arg mesh_receive_provisioning_packet ,regb 
+2cb1 202029c4 branch logging_tx_debug 
+
+loggint_tx_info_receive_random_packet:
+2cb2 df200001 arg 1 ,loopcnt 
+2cb3 da400002 arg mesh_receive_provisioning_random_packet ,regb 
+2cb4 da204970 arg mem_mesh_provisioning_state_flag ,rega 
+2cb5 202029c6 branch logging_tx_info 
+
+loggint_tx_info_send_confirmation_packet:
+2cb6 6f20c7b5 fetchr loopcnt ,1 ,mem_mesh_adv_data_len 
+2cb7 da400003 arg mesh_send_provisioning_confirmation_packet ,regb 
+2cb8 da2047b6 arg mem_mesh_adv_data ,rega 
+2cb9 202029c6 branch logging_tx_info 
+
+loggint_tx_info_receive_data_packet:
+2cba df200001 arg 1 ,loopcnt 
+2cbb da400004 arg mesh_receive_provisioning_data_packet ,regb 
+2cbc da204970 arg mem_mesh_provisioning_state_flag ,rega 
+2cbd 202029c6 branch logging_tx_info 
+
+loggint_tx_info_send_complete_packet:
+2cbe 6f20c7b5 fetchr loopcnt ,1 ,mem_mesh_adv_data_len 
+2cbf da400005 arg mesh_send_provisioning_complete_packet ,regb 
+2cc0 da2047b6 arg mem_mesh_adv_data ,rega 
+2cc1 202029c6 branch logging_tx_info 
+
+ali_mesh_receive_adtype_128bit_uuid_complete:
+2cc2 20402d06 call ali_mesh_receive_adtype_128bit_uuid_complete_store_uuid 
+2cc3 24740000 nrtn user 
+2cc4 6fe08bef fetch 1 ,mem_mesh_receive_service_uuid_ios_data_provisioning_type 
+2cc5 c0032cf6 beq provisioning_ios_data ,ali_mesh_ios_gatt_packet_parse_provisioning_app_control 
+
+ali_mesh_ios_gatt_packet_pairing_type:
+2cc6 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2cc7 c1000000 rtneq paired_status 
+2cc8 c1018000 rtneq silence_beacon_status 
+2cc9 6fe10bf0 fetch 2 ,mem_mesh_receive_service_uuid_mac 
+2cca 684949df fetcht 2 ,mem_mesh_three_tuple_mac + 4 
+2ccb 98467c00 isub temp ,null 
+2ccc 24628000 nrtn zero 
+2ccd da200bf2 arg mem_mesh_receive_service_uuid_msg_id ,rega 
+2cce da400007 arg max_length_privisioning_pairing_msg_ios ,regb 
+2ccf 20402d18 call ali_mesh_app_control_package_check_integrity 
+2cd0 20740000 rtn user 
+2cd1 477ac03e bpatchx patch3e_5 ,mem_patch3e 
+2cd2 6fe08bef fetch 1 ,mem_mesh_receive_service_uuid_provisioning_type 
+2cd3 c0002cd7 beq provisioning_random ,ali_mesh_ios_gatt_packet_parse_provisioning_random 
+2cd4 c0012cdb beq provisioning_data ,ali_mesh_ios_gatt_packet_parse_provisioning_data 
+2cd5 c0022cea beq provisioning_config ,ali_mesh_ios_gatt_packet_parse_provisioning_config 
+2cd6 20600000 rtn 
+
+ali_mesh_ios_gatt_packet_parse_provisioning_random:
+2cd7 6fe149df fetch 2 ,mem_mesh_three_tuple_mac + 4 
+2cd8 67e10a78 store 2 ,mem_mesh_gatt_package_receive_mac 
+2cd9 d8c00a78 arg mem_mesh_gatt_package_receive_mac ,contr 
+2cda 20202c52 branch ali_mesh_advertising_receive_privisioning_random 
+
+ali_mesh_ios_gatt_packet_parse_provisioning_data:
+2cdb 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2cdc c1000000 rtneq paired_status 
+2cdd 6fe0c970 fetch 1 ,mem_mesh_provisioning_state_flag 
+2cde c4008000 rtnbit0 receive_provisioning_random 
+2cdf c3810000 rtnbit1 receive_provisioning_data 
+2ce0 d8c00a7a arg mem_mesh_gatt_package_receive_msg_payload ,contr 
+2ce1 df200014 arg 0x14 ,loopcnt 
+2ce2 d8a04979 arg mem_mesh_keyfresh_and_update_flag ,contw 
+2ce3 20407ca1 call memcpy 
+2ce4 20402ac1 call ali_mesh_encrypt_calc_provisioning_data_calc_sessionkey 
+2ce5 da204979 arg mem_mesh_keyfresh_and_update_flag ,rega 
+2ce6 da400900 arg memresult ,regb 
+2ce7 df20000a arg 0x0a ,loopcnt 
+2ce8 20402ab9 call ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop 
+2ce9 20202c7c branch ali_mesh_resolve_privisioning_data_package 
+
+ali_mesh_ios_gatt_packet_parse_provisioning_config:
+2cea 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2ceb c1808000 rtnne unprovisioned_beacon_status 
+2cec 70496f02 jam pairing_status ,mem_mesh_provisioned_flag 
+
+ali_mesh_ios_gatt_packet_send_provisioning_config_ack:
+2ced d8400003 arg provisioning_config_ack_mac + provisioning_config_ack_field ,temp 
+2cee 20402c8e call ali_mesh_advertising_send_packet_common 
+2cef 58000005 setarg provisioning_config_ack 
+2cf0 e7e08005 istore 1 ,contw 
+2cf1 6fe149df fetch 2 ,mem_mesh_three_tuple_mac + 4 
+2cf2 e7e10005 istore 2 ,contw 
+2cf3 58000001 setarg provisioning_config_ack_note 
+2cf4 e7e08005 istore 1 ,contw 
+2cf5 20600000 rtn 
+
+ali_mesh_ios_gatt_packet_parse_provisioning_app_control:
+2cf6 d8c00bf0 arg mem_mesh_receive_service_uuid_ios_data_nid ,contr 
+2cf7 da400008 arg max_length_privisioning_control_msg_ios ,regb 
+
+ali_mesh_resolve_app_control_msg_package:
+2cf8 477b403e bpatchx patch3e_6 ,mem_patch3e 
+2cf9 efe08006 ifetch 1 ,contr 
+2cfa 18c22200 copy contr ,rega 
+2cfb 6848c8d8 fetcht 1 ,mem_k2_nid 
+2cfc 98467c00 isub temp ,null 
+2cfd 24628000 nrtn zero 
+2cfe 20402cac call ali_mesh_advertising_reset_adv_timer 
+2cff 20402d18 call ali_mesh_app_control_package_check_integrity 
+2d00 20740000 rtn user 
+2d01 700c3a01 jam mesh_message_app ,mem_mesh_network_packet_type 
+2d02 68488a79 fetcht 1 ,mem_mesh_gatt_package_receive_msg_total_length 
+2d03 18408401 increase 1 ,temp 
+2d04 d8c00a7a arg mem_mesh_gatt_package_receive_msg_payload ,contr 
+2d05 20202f1e branch ali_mesh_network_layer_recevice_network_pdu 
+
+ali_mesh_receive_adtype_128bit_uuid_complete_store_uuid:
+2d06 d8a00bec arg mem_mesh_receive_service_uuid_company_id ,contw 
+2d07 20407c4c call memcpy16 
+2d08 da200bec arg mem_mesh_receive_service_uuid_company_id ,rega 
+2d09 df200010 arg 16 ,loopcnt 
+2d0a 20407c79 call inverse_data 
+2d0b df200010 arg 16 ,loopcnt 
+2d0c d8c00bec arg mem_mesh_receive_service_uuid_company_id ,contr 
+2d0d 20202d0e branch ali_mesh_receive_provisioning_package_check_header 
+
+ali_mesh_receive_provisioning_package_check_header:
+2d0e 20407d94 call disable_user 
+2d0f e8410006 ifetcht 2 ,contr 
+2d10 580001a8 setarg company_identifiers_alibaba 
+2d11 1ff0fe00 byteswap pdata ,pdata 
+2d12 98467c00 isub temp ,null 
+2d13 24628000 nrtn zero 
+2d14 efe08006 ifetch 1 ,contr 
+2d15 67e08bfc store 1 ,mem_mesh_receive_vid 
+2d16 20407d92 call enable_user 
+2d17 20202caf branch logging_tx_debug_receive_provisioning_packet 
+
+ali_mesh_app_control_package_check_integrity:
+2d18 477bc03e bpatchx patch3e_7 ,mem_patch3e 
+2d19 20402d51 call ali_mesh_app_control_package_check_msgid_legal 
+2d1a 20202d1b branch ali_mesh_app_control_package_check_rev_complete 
+
+ali_mesh_app_control_package_check_rev_complete:
+2d1b 1a208c01 add rega ,gatt_package_package_num ,contr 
+2d1c e8408006 ifetcht 1 ,contr 
+2d1d 1851fe00 rshift4 temp ,pdata 
+2d1e c000ad4b beq 1 ,ali_mesh_gatt_package_check_integrity_unsegment 
+
+ali_mesh_gatt_package_check_integrity_segment:
+2d1f 1fe67c04 sub pdata ,max_gatt_package_num ,null 
+2d20 24217d92 nbranch enable_user ,positive 
+2d21 1fe27200 copy pdata ,loopcnt 
+2d22 20402d41 call ali_mesh_gatt_package_check_integrity_segment_expect_package_num 
+2d23 18410e0f and temp ,0x0f ,queue 
+2d24 98e67c00 isub queue ,null 
+2d25 2042ad3a call ali_mesh_gatt_package_check_integrity_segment_calc_total_length ,zero 
+2d26 18e08fff increase -1 ,queue 
+2d27 6fe08a78 fetch 1 ,mem_mesh_gatt_package_receive_msg_num 
+2d28 afefffff qisolate1 pdata 
+2d29 2020fd92 branch enable_user ,true 
+2d2a f9207e00 qset1 pdata 
+2d2b 67e08a78 store 1 ,mem_mesh_gatt_package_receive_msg_num 
+2d2c 1a208c02 add rega ,gatt_package_length ,contr 
+2d2d efe08006 ifetch 1 ,contr 
+2d2e 1fe27200 copy pdata ,loopcnt 
+2d2f 1a427e00 copy regb ,pdata 
+2d30 98effe00 imul32 queue ,pdata 
+2d31 d8a00a7a arg mem_mesh_gatt_package_receive_msg_payload ,contw 
+2d32 98a08a00 iadd contw ,contw 
+2d33 20407c94 call memcpy_fast 
+2d34 6fe08a78 fetch 1 ,mem_mesh_gatt_package_receive_msg_num 
+2d35 9a667c00 isub regc ,null 
+2d36 2442fd92 ncall enable_user ,zero 
+2d37 2422ad46 nbranch ali_mesh_gatt_package_store_receive_msg_buffer ,zero 
+
+ali_mesh_gatt_package_check_integrity_segment_complete:
+2d38 20402d72 call ali_mesh_gatt_package_clear_receive_msg_buffer 
+2d39 20207d94 branch disable_user 
+
+ali_mesh_gatt_package_check_integrity_segment_calc_total_length:
+2d3a 1fe0ffff pincrease -1 
+2d3b 9a4ffe00 imul32 regb ,pdata 
+2d3c 1a208c02 add rega ,gatt_package_length ,contr 
+2d3d e8408006 ifetcht 1 ,contr 
+2d3e 9840fe00 iadd temp ,pdata 
+2d3f 67e08a79 store 1 ,mem_mesh_gatt_package_receive_msg_total_length 
+2d40 20600000 rtn 
+
+ali_mesh_gatt_package_check_integrity_segment_expect_package_num:
+2d41 da600000 arg 0 ,regc 
+
+ali_mesh_gatt_package_check_integrity_segment_expect_package_num_loop:
+2d42 1f208fff add loopcnt ,-1 ,queue 
+2d43 f9202600 qset1 regc 
+2d44 c2002d42 loop ali_mesh_gatt_package_check_integrity_segment_expect_package_num_loop 
+2d45 20600000 rtn 
+
+ali_mesh_gatt_package_store_receive_msg_buffer:
+2d46 6fe10a74 fetch 2 ,mem_mesh_gatt_package_receive_msg_buffer_ptr 
+2d47 1fe20a00 copy pdata ,contw 
+2d48 d8c00a76 arg mem_mesh_gatt_package_receive_msg_buffer_temp ,contr 
+2d49 df200021 arg 33 ,loopcnt 
+2d4a 20207c94 branch memcpy_fast 
+
+ali_mesh_gatt_package_check_integrity_unsegment:
+2d4b efe08006 ifetch 1 ,contr 
+2d4c 1fe27200 copy pdata ,loopcnt 
+2d4d 67e08a79 store 1 ,mem_mesh_gatt_package_receive_msg_total_length 
+2d4e d8a00a7a arg mem_mesh_gatt_package_receive_msg_payload ,contw 
+2d4f 20407ca1 call memcpy 
+2d50 20207d94 branch disable_user 
+
+ali_mesh_app_control_package_check_msgid_legal:
+2d51 70499432 jam gatt_receive_timeout ,mem_mesh_gatt_receive_msg_timer 
+2d52 20402d60 call ali_mesh_gatt_package_get_msgid 
+2d53 68494995 fetcht 2 ,mem_mesh_gatt_packet_receive_msg_buffer1 
+2d54 98467c00 isub temp ,null 
+2d55 2022ad64 branch ali_mesh_gatt_package_load_receive_msg_buffer1 ,zero 
+2d56 18467c00 sub temp ,0 ,null 
+2d57 2022ad64 branch ali_mesh_gatt_package_load_receive_msg_buffer1 ,zero 
+2d58 684949b6 fetcht 2 ,mem_mesh_gatt_packet_receive_msg_buffer2 
+2d59 98467c00 isub temp ,null 
+2d5a 2022ad67 branch ali_mesh_gatt_package_load_receive_msg_buffer2 ,zero 
+2d5b 18467c00 sub temp ,0 ,null 
+2d5c 2022ad67 branch ali_mesh_gatt_package_load_receive_msg_buffer2 ,zero 
+2d5d 20402d72 call ali_mesh_gatt_package_clear_receive_msg_buffer 
+2d5e 20402d60 call ali_mesh_gatt_package_get_msgid 
+2d5f 20202d64 branch ali_mesh_gatt_package_load_receive_msg_buffer1 
+
+ali_mesh_gatt_package_get_msgid:
+2d60 efe08011 ifetch 1 ,rega 
+2d61 207a0000 rtn blank 
+2d62 79207e08 set1 8 ,pdata 
+2d63 20600000 rtn 
+
+ali_mesh_gatt_package_load_receive_msg_buffer1:
+2d64 67e14995 store 2 ,mem_mesh_gatt_packet_receive_msg_buffer1 
+2d65 58004995 setarg mem_mesh_gatt_packet_receive_msg_buffer1 
+2d66 20202d6a branch ali_mesh_gatt_package_load_receive_msg_buffer 
+
+ali_mesh_gatt_package_load_receive_msg_buffer2:
+2d67 67e149b6 store 2 ,mem_mesh_gatt_packet_receive_msg_buffer2 
+2d68 580049b6 setarg mem_mesh_gatt_packet_receive_msg_buffer2 
+2d69 20202d6a branch ali_mesh_gatt_package_load_receive_msg_buffer 
+
+ali_mesh_gatt_package_load_receive_msg_buffer:
+2d6a 67e10a74 store 2 ,mem_mesh_gatt_package_receive_msg_buffer_ptr 
+2d6b 1fe20c00 copy pdata ,contr 
+2d6c d8a00a76 arg mem_mesh_gatt_package_receive_msg_buffer_temp ,contw 
+2d6d df200021 arg gatt_receive_msg_buffer_size ,loopcnt 
+2d6e 20207c94 branch memcpy_fast 
+
+ali_mesh_gatt_package_receive_timer:
+2d6f da604994 arg mem_mesh_gatt_receive_msg_timer ,regc 
+2d70 da402d72 arg ali_mesh_gatt_package_clear_receive_msg_buffer ,regb 
+2d71 202031cf branch timer_single_step 
+
+ali_mesh_gatt_package_clear_receive_msg_buffer:
+2d72 d8a04995 arg mem_mesh_gatt_packet_receive_msg_buffer1 ,contw 
+2d73 df200042 arg gatt_receive_msg_buffer_size + gatt_receive_msg_buffer_size ,loopcnt 
+2d74 20207c68 branch clear_mem 
+
+ali_mesh_access_layer_config_or_health_message_opcode:
+2d75 6fe089f8 fetch 1 ,mem_mesh_configuration_health_message_opcode 
+2d76 c024ad7a beq mesh_message_opcode_config_node_reset_no_head ,ali_mesh_access_layer_config_or_health_message_opcode_node_reset 
+2d77 c00dad83 beq mesh_message_opcode_config_model_subscription_add_no_head ,ali_mesh_message_config_modle_subscription_add 
+2d78 c00e2d8a beq mesh_message_opcode_config_model_subscription_delete_no_head ,ali_mesh_message_config_modle_subscription_delete 
+2d79 20600000 rtn 
+
+ali_mesh_access_layer_config_or_health_message_opcode_node_reset:
+2d7a 20402d7d call ali_mesh_access_layer_send_config_node_reset_status 
+2d7b 6fe14a11 fetch 2 ,mem_mesh_cb_receive_node_reset 
+2d7c 20207d47 branch callback_func 
+
+ali_mesh_access_layer_send_config_node_reset_status:
+2d7d 58000080 setarg mesh_configuration_and_health_message_opcode_header 
+2d7e 67e08a10 store 1 ,mem_mesh_access_layer_payload 
+2d7f 5800004a setarg mesh_message_opcode_config_node_reset_status_no_head 
+2d80 e7e08005 istore 1 ,contw 
+2d81 700a0f02 jam 2 ,mem_mesh_access_layer_payload_len 
+2d82 2020303d branch ali_mesh_upper_transport_layer_send_access_message 
+
+ali_mesh_message_config_modle_subscription_add:
+2d83 20402da8 call ali_mesh_message_config_modle_subscription_status 
+2d84 6fe14a19 fetch 2 ,mem_mesh_core_feature 
+2d85 c3810000 rtnbit1 mesh_feature_disable_subscription 
+2d86 20402db2 call ali_mesh_message_config_modle_subscription_check_element 
+2d87 20402dbb call ali_mesh_message_config_modle_subscription_add_value_address 
+2d88 6fe14a15 fetch 2 ,mem_mesh_cb_subscriptuion_list_changed 
+2d89 20207d47 branch callback_func 
+
+ali_mesh_message_config_modle_subscription_delete:
+2d8a 20402da8 call ali_mesh_message_config_modle_subscription_status 
+2d8b 6fe14a19 fetch 2 ,mem_mesh_core_feature 
+2d8c c3810000 rtnbit1 mesh_feature_disable_subscription 
+2d8d 20402db2 call ali_mesh_message_config_modle_subscription_check_element 
+2d8e 684909fb fetcht 2 ,mem_mesh_subscription_value_address 
+2d8f 184cfe00 rshift8 temp ,pdata 
+2d90 1ff1fe00 rshift4 pdata ,pdata 
+2d91 c0062d98 beq 0x0c ,ali_mesh_message_config_modle_subscription_delete_group_addr 
+2d92 20402d9d call ali_mesh_message_config_modle_subscription_check_value_address 
+2d93 24740000 nrtn user 
+2d94 58000000 setarg 0 
+2d95 e7e10011 istore 2 ,rega 
+2d96 6fe14a15 fetch 2 ,mem_mesh_cb_subscriptuion_list_changed 
+2d97 20207d47 branch callback_func 
+
+ali_mesh_message_config_modle_subscription_delete_group_addr:
+2d98 5fffffff setarg -1 
+2d99 e7e40011 istore subscription_max_count ,rega 
+2d9a e7e40005 istore subscription_max_count ,contw 
+2d9b 6fe14a15 fetch 2 ,mem_mesh_cb_subscriptuion_list_changed 
+2d9c 20207d47 branch callback_func 
+
+ali_mesh_message_config_modle_subscription_check_value_address:
+2d9d df200008 arg subscription_max_count ,loopcnt 
+
+ali_mesh_message_config_modle_subscription_check_value_address_loop:
+2d9e efe10011 ifetch 2 ,rega 
+2d9f da40ffff arg 0xffff ,regb 
+2da0 9a467c00 isub regb ,null 
+2da1 2022fd92 branch enable_user ,zero 
+2da2 98467c00 isub temp ,null 
+2da3 2022fd92 branch enable_user ,zero 
+
+ali_mesh_message_config_modle_subscription_check_value_address_loop_empty:
+2da4 1a20a202 increase 2 ,rega 
+2da5 c2002d9e loop ali_mesh_message_config_modle_subscription_check_value_address_loop 
+2da6 20407d94 call disable_user 
+2da7 20600000 rtn 
+
+ali_mesh_message_config_modle_subscription_status:
+2da8 58000080 setarg mesh_configuration_and_health_message_opcode_header 
+2da9 67e08a10 store 1 ,mem_mesh_access_layer_payload 
+2daa 5800001f setarg mesh_message_opcode_config_model_subscription_status_no_head 
+2dab e7e08005 istore 1 ,contw 
+2dac 58000000 setarg mesh_success 
+2dad e7e08005 istore 1 ,contw 
+2dae 6fe309f9 fetch 6 ,mem_mesh_subscription_element_address 
+2daf e7e30005 istore 6 ,contw 
+2db0 700a0f09 jam 9 ,mem_mesh_access_layer_payload_len 
+2db1 2020303d branch ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer 
+
+ali_mesh_message_config_modle_subscription_check_element:
+2db2 20402df4 call mesh_get_element_info_config 
+2db3 1a20a206 add rega ,element_device_subscription_label ,rega 
+2db4 6fe109f9 fetch 2 ,mem_mesh_subscription_element_address 
+2db5 6849498b fetcht 2 ,mem_mesh_unicast_address 
+2db6 18508400 byteswap temp ,temp 
+2db7 98467e00 isub temp ,pdata 
+2db8 9a4ffe00 imul32 regb ,pdata 
+2db9 9a20a200 iadd rega ,rega 
+2dba 20600000 rtn 
+
+ali_mesh_message_config_modle_subscription_add_value_address:
+2dbb 684909fb fetcht 2 ,mem_mesh_subscription_value_address 
+2dbc df200008 arg subscription_max_count ,loopcnt 
+
+ali_mesh_message_config_modle_subscription_add_value_address_loop:
+2dbd efe10011 ifetch 2 ,rega 
+2dbe 203a2dc5 branch ali_mesh_message_config_modle_subscription_add_value_address_in ,blank 
+2dbf da40ffff arg 0xffff ,regb 
+2dc0 9a467c00 isub regb ,null 
+2dc1 2022adc5 branch ali_mesh_message_config_modle_subscription_add_value_address_in ,zero 
+2dc2 1a20a202 increase 2 ,rega 
+2dc3 c2002dbd loop ali_mesh_message_config_modle_subscription_add_value_address_loop 
+2dc4 20600000 rtn 
+
+ali_mesh_message_config_modle_subscription_add_value_address_in:
+2dc5 18508400 byteswap temp ,temp 
+2dc6 e0410011 istoret 2 ,rega 
+2dc7 20600000 rtn 
+
+ali_mesh_init:
+2dc8 20406d31 call init_memp 
+2dc9 58002910 setarg mesh_check_ble_rx_packet 
+2dca 67e149f1 store 2 ,mem_mesh_cb_receive_advertising 
+2dcb 58002df8 setarg mesh_idle_process 
+2dcc 67e14468 store 2 ,mem_cb_idle_process 
+2dcd 58002f7f setarg ali_mesh_network_layer_relay_access_message 
+2dce 67e14a0f store 2 ,mem_mesh_cb_network_relay 
+2dcf 580029a3 setarg mesh_receive_config_appkey_add_cb 
+2dd0 67e149f5 store 2 ,mem_mesh_cb_receive_config_appkey_add 
+2dd1 580029b6 setarg mesh_store_new_subscriptuion_list_data 
+2dd2 67e14a15 store 2 ,mem_mesh_cb_subscriptuion_list_changed 
+2dd3 580029b2 setarg mesh_store_new_seq_data 
+2dd4 67e14a13 store 2 ,mem_mesh_cb_seq_changed 
+2dd5 58002dfd setarg mesh_cb_event_timer 
+2dd6 67e14472 store 2 ,mem_cb_event_timer 
+2dd7 5800271c setarg ali_mesh_access_layer_check_access_message_opcode 
+2dd8 67e149f3 store 2 ,mem_mesh_cb_receive_access_message 
+2dd9 58002906 setarg mesh_le_wait_adv_cb 
+2dda 67e149fb store 2 ,mem_mesh_scan_selete_next_ch 
+2ddb 58002feb setarg mesh_le_receive_data 
+2ddc 67e1446e store 2 ,mem_cb_att_write 
+2ddd 58002ff4 setarg ali_mesh_proxy_process_bb_event 
+2dde 67e1446a store 2 ,mem_cb_bb_event_process 
+2ddf 7047d524 jam 36 ,mem_mesh_adv_scan_channel 
+2de0 2040282b call ali_mesh_ali_vendor_message_indication_info_reset_tid 
+2de1 477c403f bpatchx patch3f_0 ,mem_patch3f 
+2de2 204029e1 call mesh_uart_init 
+2de3 20402e08 call mesh_iic_init 
+2de4 da20497a arg mem_mesh_network_key ,rega 
+2de5 da400000 arg mesh_code_init ,regb 
+2de6 df200001 arg 1 ,loopcnt 
+2de7 204029c6 call logging_tx_info 
+2de8 20402975 call ali_mesh_chip_peripherals_load_data_from_eep 
+2de9 20402df0 call mesh_inverse_three_tuple_mac 
+2dea 6fe0c97a fetch 1 ,mem_mesh_network_key 
+2deb c07fac1b beq 0xff ,mesh_send_unprovisioned_beacons 
+2dec 20402aee call ali_mesh_encrypt_base_function_k3 
+2ded 20402ae0 call ali_mesh_encrypt_base_function_k4 
+2dee 20402ac8 call ali_mesh_encrypt_calc_network_key_by_k2 
+2def 202027df branch ali_mesh_ali_vendor_message_opcode_device_power_on 
+
+mesh_inverse_three_tuple_mac:
+2df0 6fe349db fetch 6 ,mem_mesh_three_tuple_mac 
+2df1 20407c88 call inverse_data_6byte 
+2df2 67e3437d store 6 ,mem_le_lap 
+2df3 20600000 rtn 
+
+mesh_get_element_info_config:
+2df4 6f20ca1b fetchr loopcnt ,1 ,mem_mesh_element_number 
+2df5 6a214a1c fetchr rega ,2 ,mem_mesh_element_device_ptr 
+2df6 6a414a1e fetchr regb ,2 ,mem_mesh_element_device_length 
+2df7 20600000 rtn 
+
+mesh_idle_process:
+2df8 2040282d call ali_mesh_time_function 
+2df9 204029f6 call ali_mesh_control_ble_adv_process 
+2dfa 20403066 call ali_mesh_upper_transport_layer_control_packet 
+2dfb 204028bc call ali_mesh_advertising_bearer_layer_load_packet_from_advertising_queue 
+2dfc 202028f9 branch mesh_receive_advertising 
+
+mesh_cb_event_timer:
+2dfd 204029f8 call ali_mesh_control_ble_adv_timer_process 
+2dfe 20202d6f branch ali_mesh_gatt_package_receive_timer 
+
+ali_mesh_check_all_element_info:
+2dff 20402df4 call mesh_get_element_info_config 
+
+ali_mesh_check_all_element_info_loop:
+2e00 20402f05 call ali_mesh_more_element_push_stack 
+2e01 1a627e00 copy regc ,pdata 
+2e02 20407d47 call callback_func 
+2e03 20402f0a call ali_mesh_more_element_pop_stack 
+2e04 1a427e00 copy regb ,pdata 
+2e05 9a20a200 iadd rega ,rega 
+2e06 c2002e00 loop ali_mesh_check_all_element_info_loop 
+2e07 20600000 rtn 
+
+mesh_iic_init:
+2e08 7080723f jam gpcfg_output_high ,core_gpio_conf + 2 
+2e09 7080716c jam gpcfg_iic_scl | gpcfg_pullup ,core_gpio_conf + 1 
+2e0a 7080706d jam gpcfg_iic_sda | gpcfg_pullup ,core_gpio_conf + 0 
+2e0b 20205cae branch clear_eeprom_size_2k 
+
+ali_mesh_lower_transport_layer_receive_lower_transport_pdu:
+2e0c 477cc03f bpatchx patch3f_1 ,mem_patch3f 
+2e0d 6fe08c14 fetch 1 ,mem_mesh_message_transport_head 
+2e0e c283ae11 bbit1 transport_head_bit_seg ,ali_mesh_lower_transport_layer_receive_lower_transport_pdu_segmented_message 
+2e0f 704b2d00 jam 0 ,mem_mesh_aszmic 
+2e10 20203001 branch ali_mesh_upper_transport_layer_receive_unsegmented_access_message 
+
+ali_mesh_lower_transport_layer_receive_lower_transport_pdu_segmented_message:
+2e11 20402e17 call ali_mesh_lower_transport_layer_receive_segaccmess_resolve_szmic_seqzero_segon 
+2e12 20740000 rtn user 
+2e13 20402e38 call ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockack 
+2e14 20740000 rtn user 
+2e15 20402e48 call ali_mesh_lower_transport_layer_receive_segmented_access_message_store_segment 
+2e16 20202e55 branch ali_mesh_lower_transport_layer_receive_segmented_access_message_decrypt_segment 
+
+ali_mesh_lower_transport_layer_receive_segaccmess_resolve_szmic_seqzero_segon:
+2e17 20407d94 call disable_user 
+2e18 df200003 arg 3 ,loopcnt 
+2e19 da200c15 arg mem_mesh_message_segment_access_szmic_seqzero_sego_segn ,rega 
+2e1a 20407c79 call inverse_data 
+2e1b 6a218c15 fetchr rega ,3 ,mem_mesh_message_segment_access_szmic_seqzero_sego_segn 
+2e1c 1a21041f and rega ,0x1f ,temp 
+2e1d 6048ca24 storet 1 ,mem_mesh_segmented_access_message_segn 
+2e1e 6fe0ca2b fetch 1 ,mem_mesh_segmented_access_message_segn_upper_limit 
+2e1f 98467c00 isub temp ,null 
+2e20 24217d92 nbranch enable_user ,positive 
+2e21 1a31fe00 rshift4 rega ,pdata 
+2e22 1fe37e00 rshift pdata ,pdata 
+2e23 1fe1041f and pdata ,0x1f ,temp 
+2e24 6048ca23 storet 1 ,mem_mesh_segmented_access_message_sego 
+2e25 1ff1fe00 rshift4 pdata ,pdata 
+2e26 1fe37e00 rshift pdata ,pdata 
+2e27 da201fff arg 0x1fff ,rega 
+2e28 9a210400 iand rega ,temp 
+2e29 1fe22400 copy pdata ,regb 
+2e2a 6fe14a21 fetch 2 ,mem_mesh_segmented_access_message_seqzero 
+2e2b 98467c00 isub temp ,null 
+2e2c 2442ae34 ncall ali_mesh_lower_transport_layer_receive_segmented_access_message_recover_seqzero ,zero 
+2e2d 60494a21 storet 2 ,mem_mesh_segmented_access_message_seqzero 
+2e2e 1a4cfe00 rshift8 regb ,pdata 
+2e2f 1ff1fe00 rshift4 pdata ,pdata 
+2e30 1fe37e00 rshift pdata ,pdata 
+2e31 67e0ca20 store 1 ,mem_mesh_segmented_access_message_szmic 
+2e32 67e0cb2d store 1 ,mem_mesh_aszmic 
+2e33 20600000 rtn 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_recover_seqzero:
+2e34 58000000 setarg 0 
+2e35 67e24a25 store 4 ,mem_mesh_segmented_access_message_blockack 
+2e36 704a2a00 jam 0 ,mem_mesh_segmented_access_message_current_length 
+2e37 20600000 rtn 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockack:
+2e38 20407d94 call disable_user 
+2e39 6fe0ca23 fetch 1 ,mem_mesh_segmented_access_message_sego 
+2e3a 1fe20e00 copy pdata ,queue 
+2e3b 6fe24a25 fetch 4 ,mem_mesh_segmented_access_message_blockack 
+2e3c afefffff qisolate1 pdata 
+2e3d 2020fd92 branch enable_user ,true 
+2e3e f9207e00 qset1 pdata 
+2e3f 67e24a25 store 4 ,mem_mesh_segmented_access_message_blockack 
+2e40 6848ca24 fetcht 1 ,mem_mesh_segmented_access_message_segn 
+2e41 1840f201 add temp ,1 ,loopcnt 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockack_loop:
+2e42 1f208fff add loopcnt ,-1 ,queue 
+2e43 afefffff qisolate1 pdata 
+2e44 24608000 nrtn true 
+2e45 c2002e42 loop ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockack_loop 
+2e46 704a2901 jam 1 ,mem_mesh_segmented_access_message_receive_finish 
+2e47 20600000 rtn 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_store_segment:
+2e48 6fe08c0a fetch 1 ,mem_mesh_message_transport_netmic_length 
+2e49 1fe0fffa pincrease -6 
+2e4a 1fe27200 copy pdata ,loopcnt 
+2e4b 6848ca2a fetcht 1 ,mem_mesh_segmented_access_message_current_length 
+2e4c 98408400 iadd temp ,temp 
+2e4d 6048ca2a storet 1 ,mem_mesh_segmented_access_message_current_length 
+2e4e 6fe14a2c fetch 2 ,mem_mesh_segmented_access_message_segment_ptr 
+2e4f 98000a00 iforce contw 
+2e50 6fe0ca23 fetch 1 ,mem_mesh_segmented_access_message_sego 
+2e51 1feffe0c mul32 pdata ,12 ,pdata 
+2e52 98a08a00 iadd contw ,contw 
+2e53 d8c00c18 arg mem_mesh_message_transport_segmented_access_messagepdu_segment ,contr 
+2e54 20207ca1 branch memcpy 
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_decrypt_segment:
+2e55 6fe0ca29 fetch 1 ,mem_mesh_segmented_access_message_receive_finish 
+2e56 c1000000 rtneq 0 
+2e57 58000000 setarg 0 
+2e58 67e2ca25 store 5 ,mem_mesh_segmented_access_message_blockack 
+2e59 68490c0e fetcht 2 ,mem_mesh_message_seq + 1 
+2e5a 18508400 byteswap temp ,temp 
+2e5b 5800e000 setarg 0xe000 
+2e5c 98410400 iand temp ,temp 
+2e5d 6fe14a21 fetch 2 ,mem_mesh_segmented_access_message_seqzero 
+2e5e 9841fe00 ior temp ,pdata 
+2e5f 1ff0fe00 byteswap pdata ,pdata 
+2e60 67e10c0e store 2 ,mem_mesh_message_seq + 1 
+2e61 2020300b branch ali_mesh_upper_transport_layer_receive_segmented_access_message 
+
+ali_mesh_lower_transport_layer_send_unsegmented_access_message:
+2e62 6fe08a0f fetch 1 ,mem_mesh_upper_transport_layer_payload_len 
+2e63 1fe08401 add pdata ,1 ,temp 
+2e64 1fe27200 copy pdata ,loopcnt 
+2e65 60488bff storet 1 ,mem_mesh_lower_transport_layer_payload_len 
+2e66 6fe08c14 fetch 1 ,mem_mesh_message_transport_head 
+2e67 793ffe07 set0 transport_head_bit_seg ,pdata 
+2e68 67e0cb65 store 1 ,mem_mesh_unsegmented_access_lower_transport_layer_head 
+2e69 d8c00a10 arg mem_mesh_access_layer_payload ,contr 
+2e6a 20407c94 call memcpy_fast 
+2e6b 20202fbb branch ali_mesh_network_layer_send_access_message 
+
+ali_mesh_lower_transport_layer_send_segmented_access_message:
+2e6c 1a208404 add rega ,4 ,temp 
+2e6d 1a227200 copy rega ,loopcnt 
+2e6e 60488bff storet 1 ,mem_mesh_lower_transport_layer_payload_len 
+2e6f d8a04b69 arg mem_mesh_segmented_access_lower_transport_layer_parameters ,contw 
+2e70 20407c94 call memcpy_fast 
+2e71 6fe08c14 fetch 1 ,mem_mesh_message_transport_head 
+2e72 79207e07 set1 transport_head_bit_seg ,pdata 
+2e73 67e0cb65 store 1 ,mem_mesh_segmented_access_lower_transport_layer_head 
+2e74 20202fbb branch ali_mesh_network_layer_send_access_message 
+
+ali_mesh_model_layer_check_model_message_opcode:
+2e75 6fe089f8 fetch 1 ,mem_mesh_module_message_opcode 
+
+ali_mesh_model_layer_check_generic_onoff_message_opcde:
+2e76 c000ae7c beq mesh_module_message_opcode_generic_onoff_get_no_head ,ali_mesh_model_layer_message_opcode_generic_onoff_get 
+2e77 c0012e82 beq mesh_module_message_opcode_generic_onoff_set_no_head ,ali_mesh_model_layer_message_opcde_generic_onoff_set 
+2e78 c0212e87 beq mesh_module_message_opcode_scene_recall_no_head ,ali_mesh_model_layer_message_opcde_scene_recall 
+2e79 c0262e8a beq mesh_module_message_opcode_light_lightness_set_no_head ,ali_mesh_model_layer_message_opcde_light_lightness_set 
+2e7a c02f2e90 beq mesh_module_message_opcode_light_ctl_set_no_head ,ali_mesh_model_layer_message_opcde_light_ctl_set 
+2e7b 20600000 rtn 
+
+ali_mesh_model_layer_message_opcode_generic_onoff_get:
+2e7c da602e7e arg ali_mesh_model_layer_message_opcode_generic_onoff_get_cb ,regc 
+2e7d 20202ef4 branch ali_mesh_more_element_check_element_address 
+
+ali_mesh_model_layer_message_opcode_generic_onoff_get_cb:
+2e7e 6fe149fd fetch 2 ,mem_mesh_cb_generic_onoff_get 
+2e7f 20407d47 call callback_func 
+2e80 67e089f9 store 1 ,mem_mesh_generic_onoff_set_payload_onoff 
+2e81 2020274d branch ali_mesh_access_layer_send_generic_onoff_status 
+
+ali_mesh_model_layer_message_opcde_generic_onoff_set:
+2e82 da602e84 arg ali_mesh_model_layer_message_opcde_generic_onoff_set_cb ,regc 
+2e83 20202ef4 branch ali_mesh_more_element_check_element_address 
+
+ali_mesh_model_layer_message_opcde_generic_onoff_set_cb:
+2e84 2040274d call ali_mesh_access_layer_send_generic_onoff_status 
+2e85 6fe149ff fetch 2 ,mem_mesh_cb_generic_onoff_set 
+2e86 20207d47 branch callback_func 
+
+ali_mesh_model_layer_message_opcde_scene_recall:
+2e87 20402765 call ali_mesh_access_layer_send_scene_status 
+2e88 6fe14a01 fetch 2 ,mem_mesh_cb_scene_recall 
+2e89 20207d47 branch callback_func 
+
+ali_mesh_model_layer_message_opcde_light_lightness_set:
+2e8a 6fe109f9 fetch 2 ,mem_mesh_light_lightness_set_payload_lightness 
+2e8b 20402e9f call ali_mesh_model_layer_message_calc_lightness 
+2e8c 67e089fe store 1 ,mem_mesh_light_lightness_calc_lightness 
+2e8d 20402755 call ali_mesh_access_layer_send_light_lightness_status 
+2e8e 6fe14a03 fetch 2 ,mem_mesh_cb_light_lightness_set 
+2e8f 20207d47 branch callback_func 
+
+ali_mesh_model_layer_message_opcde_light_ctl_set:
+2e90 6fe14a2e fetch 2 ,mem_mesh_last_ctl_temperature 
+2e91 684909fb fetcht 2 ,mem_mesh_ctl_temperature 
+2e92 98467c00 isub temp ,null 
+2e93 20628000 rtn zero 
+2e94 6fe109fb fetch 2 ,mem_mesh_ctl_temperature 
+2e95 20402eb1 call ali_mesh_model_layer_message_calc_temperature 
+2e96 67e08a03 store 1 ,mem_mesh_ctl_calc_temperature 
+2e97 6fe109fb fetch 2 ,mem_mesh_ctl_temperature 
+2e98 67e14a2e store 2 ,mem_mesh_last_ctl_temperature 
+2e99 6fe14a05 fetch 2 ,mem_mesh_cb_light_lightness_get 
+2e9a 20407d47 call callback_func 
+2e9b 604909f9 storet 2 ,mem_mesh_ctl_lightness 
+2e9c 2040275d call ali_mesh_access_layer_send_light_ctl_stauts 
+2e9d 6fe14a07 fetch 2 ,mem_mesh_cb_light_ctl_set 
+2e9e 20207d47 branch callback_func 
+
+ali_mesh_model_layer_message_calc_lightness:
+2e9f 207a0000 rtn blank 
+2ea0 1feffe64 mul32 pdata ,ali_mesh_lightness_level ,pdata 
+2ea1 d840ffff arg ali_mesh_lightness_max ,temp 
+2ea2 9846fc00 idiv temp 
+2ea3 20407d31 call wait_div_end 
+2ea4 18070400 remainder temp 
+2ea5 184c8400 rshift8 temp ,temp 
+2ea6 1807fe00 quotient pdata 
+2ea7 18467cff sub temp ,0xff ,null 
+2ea8 24628000 nrtn zero 
+2ea9 1fe0fe01 pincrease 1 
+2eaa 20600000 rtn 
+
+ali_mesh_model_layer_message_calc_actual_lightness:
+2eab dfe0ffff arg ali_mesh_lightness_max ,pdata 
+2eac 984ffe00 imul32 temp ,pdata 
+2ead 1fe6fc64 div pdata ,ali_mesh_lightness_level 
+2eae 20407d31 call wait_div_end 
+2eaf 18078400 quotient temp 
+2eb0 20600000 rtn 
+
+ali_mesh_model_layer_message_calc_temperature:
+2eb1 d8400320 arg ali_mesh_temperature_min ,temp 
+2eb2 98462200 isub temp ,rega 
+2eb3 20402ec0 call ali_mesh_model_layer_message_calc_temperature_k 
+2eb4 1a227e00 copy rega ,pdata 
+2eb5 9846fc00 idiv temp 
+2eb6 20407d31 call wait_div_end 
+2eb7 1807fe00 quotient pdata 
+2eb8 20600000 rtn 
+
+ali_mesh_model_layer_message_calc_actual_temperature:
+2eb9 18422200 copy temp ,rega 
+2eba 20402ec0 call ali_mesh_model_layer_message_calc_temperature_k 
+2ebb 1a227e00 copy rega ,pdata 
+2ebc 984ffe00 imul32 temp ,pdata 
+2ebd d8400320 arg ali_mesh_temperature_min ,temp 
+2ebe 98408400 iadd temp ,temp 
+2ebf 20600000 rtn 
+
+ali_mesh_model_layer_message_calc_temperature_k:
+2ec0 58004e20 setarg ali_mesh_temperature_max 
+2ec1 d8400320 arg ali_mesh_temperature_min ,temp 
+2ec2 98467e00 isub temp ,pdata 
+2ec3 1fe6fc64 div pdata ,ali_mesh_temperature_level 
+2ec4 20407d31 call wait_div_end 
+2ec5 18078400 quotient temp 
+2ec6 20600000 rtn 
+
+ali_mesh_more_element_check_unicast_address:
+2ec7 d8e00000 arg 0 ,queue 
+2ec8 6f20ca1b fetchr loopcnt ,1 ,mem_mesh_element_number 
+2ec9 20407d94 call disable_user 
+2eca 6fe1498b fetch 2 ,mem_mesh_unicast_address 
+
+ali_mesh_more_element_check_unicast_address_loop:
+2ecb 98467c00 isub temp ,null 
+2ecc 2022aed3 branch ali_mesh_more_element_found_unicast_address_element ,zero 
+2ecd 1ff0fe00 byteswap pdata ,pdata 
+2ece 1fe0fe01 pincrease 1 
+2ecf 1ff0fe00 byteswap pdata ,pdata 
+2ed0 18e08e01 increase 1 ,queue 
+2ed1 c2002ecb loop ali_mesh_more_element_check_unicast_address_loop 
+2ed2 20600000 rtn 
+
+ali_mesh_more_element_found_unicast_address_element:
+2ed3 704a3000 jam 0 ,mem_mesh_receive_group_address 
+2ed4 60e0ca31 storer queue ,1 ,mem_mesh_receive_element_number 
+2ed5 20402f0f call ali_mesh_more_element_calc_queue_address 
+2ed6 20207d92 branch enable_user 
+
+ali_mesh_more_element_check_group_address:
+2ed7 d8e00000 arg 0 ,queue 
+2ed8 da600000 arg 0 ,regc 
+2ed9 20402df4 call mesh_get_element_info_config 
+2eda 20407d94 call disable_user 
+
+ali_mesh_more_element_check_group_address_loop:
+2edb 6fe14a19 fetch 2 ,mem_mesh_core_feature 
+2edc c3012eea bbit0 mesh_feature_disable_subscription ,ali_mesh_more_element_check_subscription_address 
+2edd efe10011 ifetch 2 ,rega 
+2ede 98467c00 isub temp ,null 
+2edf 2042aee8 call ali_mesh_more_element_found_group_address_element ,zero 
+
+ali_mesh_more_element_check_address_common:
+2ee0 1a427e00 copy regb ,pdata 
+2ee1 9a20a200 iadd rega ,rega 
+2ee2 18e08e01 increase 1 ,queue 
+2ee3 c2002edb loop ali_mesh_more_element_check_group_address_loop 
+2ee4 1a627e00 copy regc ,pdata 
+2ee5 207a0000 rtn blank 
+2ee6 67e0ca30 store 1 ,mem_mesh_receive_group_address 
+2ee7 20207d92 branch enable_user 
+
+ali_mesh_more_element_found_group_address_element:
+2ee8 f9202600 qset1 regc 
+2ee9 20600000 rtn 
+
+ali_mesh_more_element_check_subscription_address:
+2eea 1a208c06 add rega ,element_device_subscription_label ,contr 
+2eeb de000008 arg subscription_max_count ,alarm 
+
+ali_mesh_more_element_check_subscription_address_loop:
+2eec efe10006 ifetch 2 ,contr 
+2eed 98467c00 isub temp ,null 
+2eee 2022aef2 branch ali_mesh_more_element_found_subscription_address_element ,zero 
+2eef 1e00e1ff increase -1 ,alarm 
+2ef0 2022aee0 branch ali_mesh_more_element_check_address_common ,zero 
+2ef1 20202eec branch ali_mesh_more_element_check_subscription_address_loop 
+
+ali_mesh_more_element_found_subscription_address_element:
+2ef2 20402ee8 call ali_mesh_more_element_found_group_address_element 
+2ef3 20202ee0 branch ali_mesh_more_element_check_address_common 
+
+ali_mesh_more_element_check_element_address:
+2ef4 d8e00000 arg 0 ,queue 
+2ef5 6fe0ca30 fetch 1 ,mem_mesh_receive_group_address 
+2ef6 203a2f00 branch ali_mesh_more_element_check_element_address_no_group_address ,blank 
+2ef7 1fe22400 copy pdata ,regb 
+2ef8 6f20ca1b fetchr loopcnt ,1 ,mem_mesh_element_number 
+
+ali_mesh_more_element_check_element_address_loop:
+2ef9 60e0ca31 storer queue ,1 ,mem_mesh_receive_element_number 
+2efa aa4fffff qisolate1 regb 
+2efb 2040af00 call ali_mesh_more_element_check_element_address_no_group_address ,true 
+2efc 68e0ca31 fetchr queue ,1 ,mem_mesh_receive_element_number 
+2efd 18e08e01 increase 1 ,queue 
+2efe c2002ef9 loop ali_mesh_more_element_check_element_address_loop 
+2eff 20600000 rtn 
+
+ali_mesh_more_element_check_element_address_no_group_address:
+2f00 20402f05 call ali_mesh_more_element_push_stack 
+2f01 20402f0f call ali_mesh_more_element_calc_queue_address 
+2f02 1a627e00 copy regc ,pdata 
+2f03 20407d47 call callback_func 
+2f04 20202f0a branch ali_mesh_more_element_pop_stack 
+
+ali_mesh_more_element_push_stack:
+2f05 67210c00 storer loopcnt ,2 ,mem_mesh_loopcnt_tmep 
+2f06 62210c02 storer rega ,2 ,mem_mesh_rega_temp 
+2f07 62410c04 storer regb ,2 ,mem_mesh_regb_temp 
+2f08 62610c06 storer regc ,2 ,mem_mesh_regc_temp 
+2f09 20600000 rtn 
+
+ali_mesh_more_element_pop_stack:
+2f0a 6f210c00 fetchr loopcnt ,2 ,mem_mesh_loopcnt_tmep 
+2f0b 6a210c02 fetchr rega ,2 ,mem_mesh_rega_temp 
+2f0c 6a410c04 fetchr regb ,2 ,mem_mesh_regb_temp 
+2f0d 6a610c06 fetchr regc ,2 ,mem_mesh_regc_temp 
+2f0e 20600000 rtn 
+
+ali_mesh_more_element_calc_queue_address:
+2f0f 477d403f bpatchx patch3f_2 ,mem_patch3f 
+2f10 6fe1498b fetch 2 ,mem_mesh_unicast_address 
+2f11 1ff0fe00 byteswap pdata ,pdata 
+2f12 98e0fe00 iadd queue ,pdata 
+2f13 1ff0fe00 byteswap pdata ,pdata 
+2f14 67e14b59 store 2 ,mem_mesh_send_message_src 
+2f15 20402df4 call mesh_get_element_info_config 
+2f16 18e27e00 copy queue ,pdata 
+2f17 9a4ffe00 imul32 regb ,pdata 
+2f18 9a20a200 iadd rega ,rega 
+2f19 1a208c17 add rega ,element_device_upper_queue_ptr ,contr 
+2f1a efe10006 ifetch 2 ,contr 
+2f1b 67e1448f store ,2 ,mem_queue_ptr 
+2f1c 20600000 rtn 
+
+ali_mesh_receive_adtype_mesh_message:
+2f1d 700c3a00 jam mesh_message_tmall ,mem_mesh_network_packet_type 
+
+ali_mesh_network_layer_recevice_network_pdu:
+2f1e 18467c0c sub temp ,mesh_network_packet_min_length ,null 
+2f1f 20610000 rtn positive 
+2f20 18467c1e sub temp ,mesh_network_packet_max_length ,null 
+2f21 24610000 nrtn positive 
+2f22 477dc03f bpatchx patch3f_3 ,mem_patch3f 
+2f23 20402f77 call ali_mesh_network_store_in_mem 
+
+ali_mesh_network_layer_recevice_network_pdu_check_nid:
+2f24 20402f45 call ali_mesh_network_layer_check_nid_ivi 
+2f25 24740000 nrtn user 
+
+ali_mesh_network_layer_recevice_network_pdu_deceypt_obfuscation:
+2f26 20402aff call ali_mesh_encrypt_obfuscation_deceypt_recevie_message 
+
+ali_mesh_network_layer_recevice_network_pdu_decrypt_netmic32:
+2f27 20402f6e call ali_mesh_network_load_network_nonce_and_encryptionkey 
+2f28 6fe08c0a fetch 1 ,mem_mesh_message_transport_netmic_length 
+2f29 d8400c12 arg mem_mesh_message_dst ,temp 
+2f2a 20402be9 call ali_ccm_decrypt 
+2f2b 24628000 nrtn zero 
+
+ali_mesh_network_layer_recevice_network_pdu_check_dst:
+2f2c 477e403f bpatchx patch3f_4 ,mem_patch3f 
+2f2d 68490c12 fetcht 2 ,mem_mesh_message_dst 
+2f2e 20402ec7 call ali_mesh_more_element_check_unicast_address 
+2f2f 20342f52 branch ali_mesh_network_layer_recevice_network_pdu_check_src_and_seq ,user 
+2f30 df20001d arg 29 ,loopcnt 
+2f31 d8a00a98 arg mem_mesh_message_nid_temp ,contw 
+2f32 d8c00c0b arg mem_mesh_message_nid ,contr 
+2f33 20407ca1 call memcpy 
+2f34 20402f3b call ali_mesh_network_layer_recevice_network_pdu_check_dst_group_address 
+2f35 df20001d arg 29 ,loopcnt 
+2f36 d8c00a98 arg mem_mesh_message_nid_temp ,contr 
+2f37 d8a00c0b arg mem_mesh_message_nid ,contw 
+2f38 20407ca1 call memcpy 
+2f39 6fe14a0f fetch 2 ,mem_mesh_cb_network_relay 
+2f3a 20207d47 branch callback_func 
+
+ali_mesh_network_layer_recevice_network_pdu_check_dst_group_address:
+2f3b 20402ed7 call ali_mesh_more_element_check_group_address 
+2f3c 20342f52 branch ali_mesh_network_layer_recevice_network_pdu_check_src_and_seq ,user 
+2f3d 704a30ff jam 0xff ,mem_mesh_receive_group_address 
+2f3e 5800ffcf setarg group_address_0xcfff_little_endian 
+2f3f 98467c00 isub temp ,null 
+2f40 2022af52 branch ali_mesh_network_layer_recevice_network_pdu_check_src_and_seq ,zero 
+2f41 5800ffff setarg group_address_0xffff_little_endian 
+2f42 98467c00 isub temp ,null 
+2f43 2022af52 branch ali_mesh_network_layer_recevice_network_pdu_check_src_and_seq ,zero 
+2f44 20600000 rtn 
+
+ali_mesh_network_layer_check_nid_ivi:
+2f45 20407d94 call disable_user 
+2f46 68488c0b fetcht 1 ,mem_mesh_message_nid 
+2f47 1851fe00 rshift4 temp ,pdata 
+2f48 1fe97e00 rshift3 pdata ,pdata 
+2f49 6a20ca35 fetchr rega ,1 ,mem_mesh_iv_index + 3 
+2f4a 1a212201 and rega ,0x01 ,rega 
+2f4b 9a267c00 isub rega ,null 
+2f4c 24628000 nrtn zero 
+2f4d 1841047f and temp ,0x7f ,temp 
+2f4e 6fe0c8d8 fetch 1 ,mem_k2_nid 
+2f4f 98467c00 isub temp ,null 
+2f50 24628000 nrtn zero 
+2f51 20207d92 branch enable_user 
+
+ali_mesh_network_layer_recevice_network_pdu_check_src_and_seq:
+2f52 da204a36 arg mem_mesh_tmall_cache_start ,rega 
+2f53 df20000a arg cache_space_num ,loopcnt 
+
+ali_mesh_network_layer_raverse_src_seq_cache:
+2f54 68490c10 fetcht 2 ,mem_mesh_message_src 
+2f55 efe10011 ifetch 2 ,rega 
+2f56 203a2f5c branch ali_mesh_network_layer_find_empty_space ,blank 
+2f57 98467c00 isub temp ,null 
+2f58 2022af5d branch ali_mesh_network_layer_find_src_space ,zero 
+2f59 1a20a205 increase cache_space_size ,rega 
+2f5a c2002f54 loop ali_mesh_network_layer_raverse_src_seq_cache 
+2f5b da204a36 arg mem_mesh_tmall_cache_start ,rega 
+
+ali_mesh_network_layer_find_empty_space:
+2f5c e0410011 istoret 2 ,rega 
+
+ali_mesh_network_layer_find_src_space:
+2f5d 60490c35 storet 2 ,mem_mesh_send_message_dst 
+2f5e 1a20a602 add rega ,2 ,regc 
+2f5f efe18013 ifetch 3 ,regc 
+2f60 67e18c37 store 3 ,mem_mesh_last_message_seq 
+2f61 20202f62 branch ali_mesh_network_layer_recevice_network_pdu_check_seq_legal 
+
+ali_mesh_network_layer_recevice_network_pdu_check_seq_legal:
+2f62 20402f6b call ali_mesh_inverse_seq 
+2f63 6fe18c37 fetch 3 ,mem_mesh_last_message_seq 
+2f64 68498c0d fetcht 3 ,mem_mesh_message_seq 
+2f65 98467c00 isub temp ,null 
+2f66 20610000 rtn positive 
+2f67 e0418013 istoret 3 ,regc 
+2f68 20402f6b call ali_mesh_inverse_seq 
+2f69 20402fce call logging_tx_debug_network_receive_packet 
+2f6a 20202e0c branch ali_mesh_lower_transport_layer_receive_lower_transport_pdu 
+
+ali_mesh_inverse_seq:
+2f6b da200c0d arg mem_mesh_message_seq ,rega 
+2f6c df200003 arg 3 ,loopcnt 
+2f6d 20207c79 branch inverse_data 
+
+ali_mesh_network_load_network_nonce_and_encryptionkey:
+2f6e 20402f71 call ali_mesh_network_layer_load_network_nonce 
+
+ali_mesh_upper_transport_layer_load_encryptionkey:
+2f6f d8c048e9 arg mem_k2_encryptionkey ,contr 
+2f70 20206cf1 branch load_key 
+
+ali_mesh_network_layer_load_network_nonce:
+2f71 d8a00c28 arg mem_mesh_network_nonce ,contw 
+2f72 58000000 setarg network_nonce 
+2f73 e7e08005 istore 1 ,contw 
+2f74 6fe30c0c fetch 6 ,mem_mesh_message_ttl 
+2f75 e7e40005 istore 8 ,contw 
+2f76 20202fc9 branch mesh_generate_nonce 
+
+ali_mesh_network_store_in_mem:
+2f77 1840fff4 add temp ,-12 ,pdata 
+2f78 67e08c0a store 1 ,mem_mesh_message_transport_netmic_length 
+2f79 df20001d arg 29 ,loopcnt 
+2f7a d8a00c0b arg mem_mesh_message_nid ,contw 
+2f7b 20407c68 call clear_mem 
+2f7c 1840f3ff add temp ,-1 ,loopcnt 
+2f7d d8a00c0b arg mem_mesh_message_nid ,contw 
+2f7e 20207c94 branch memcpy_fast 
+
+ali_mesh_network_layer_relay_access_message:
+2f7f 20402f96 call ali_mesh_network_layer_check_relay_states 
+2f80 24740000 nrtn user 
+2f81 20402fab call ali_mesh_network_layer_encrypt_relay_package 
+2f82 700a740a jam adv_relay_mesh_message_duration ,mem_mesh_queue_ele_duration 
+2f83 6fe08c0a fetch 1 ,mem_mesh_message_transport_netmic_length 
+2f84 1fe0840d add pdata ,13 ,temp 
+2f85 60488a76 storet 1 ,mem_mesh_queue_ele_len 
+2f86 184085ff increase -1 ,temp 
+2f87 e0408005 istoret 1 ,contw 
+2f88 5800002a setarg gap_adtype_mesh_message 
+2f89 e7e08005 istore 1 ,contw 
+2f8a 1840f3ff add temp ,-1 ,loopcnt 
+2f8b 6fe38c0b fetch 7 ,mem_mesh_message_nid 
+2f8c d8c00c0b arg mem_mesh_message_nid ,contr 
+2f8d 20407ca1 call memcpy 
+2f8e 6fe14793 fetch 2 ,mem_ui_state_map 
+2f8f 2feffe09 isolate1 ui_state_ble_connected ,pdata 
+2f90 2040af93 call ali_mesh_send_ble_data_relay_package ,true 
+2f91 da200a74 arg mem_mesh_queue_ele_temp ,rega 
+2f92 20207875 branch queue_push 
+
+ali_mesh_send_ble_data_relay_package:
+2f93 6fe08c3a fetch 1 ,mem_mesh_network_packet_type 
+2f94 c1010000 rtneq mesh_message_proxy 
+2f95 20202ff7 branch ali_mesh_send_ble_data 
+
+ali_mesh_network_layer_check_relay_states:
+2f96 20407d94 call disable_user 
+2f97 6fe08c3a fetch 1 ,mem_mesh_network_packet_type 
+2f98 c1008000 rtneq mesh_message_app 
+2f99 6fe14a19 fetch 2 ,mem_mesh_core_feature 
+2f9a c3808000 rtnbit1 mesh_feature_disable_relay 
+2f9b 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+2f9c c1800000 rtnne paired_status 
+2f9d 68490c10 fetcht 2 ,mem_mesh_message_src 
+2f9e 20402ec7 call ali_mesh_more_element_check_unicast_address 
+2f9f 24740000 nrtn user 
+2fa0 20402fb0 call ali_mesh_network_layer_check_network_mic_cache 
+2fa1 24740000 nrtn user 
+2fa2 20402fb3 call ali_mesh_network_layer_logging_tx_relay_info 
+2fa3 6fe08c0c fetch 1 ,mem_mesh_message_ttl 
+2fa4 207a0000 rtn blank 
+2fa5 1fe0ffff pincrease -1 
+2fa6 207a0000 rtn blank 
+2fa7 67e08c0c store 1 ,mem_mesh_message_ttl 
+2fa8 58004a90 setarg mem_mesh_network_relay_queue 
+2fa9 67e1448f store 2 ,mem_queue_ptr 
+2faa 20207d92 branch enable_user 
+
+ali_mesh_network_layer_encrypt_relay_package:
+2fab 20402f6e call ali_mesh_network_load_network_nonce_and_encryptionkey 
+2fac 6fe08c0a fetch 1 ,mem_mesh_message_transport_netmic_length 
+2fad d8400c12 arg mem_mesh_message_dst ,temp 
+2fae 20402bc8 call ali_ccm_encrypt 
+2faf 20202aff branch ali_mesh_encrypt_obfuscation_deceypt_recevie_message 
+
+ali_mesh_network_layer_check_network_mic_cache:
+2fb0 58004a68 setarg mem_mesh_transport_message_mic_cache 
+2fb1 67e10bfd store 2 ,mem_mesh_mic_cache_ptr 
+2fb2 20202958 branch ali_mesh_base_adt_cache 
+
+ali_mesh_network_layer_logging_tx_relay_info:
+2fb3 df200002 arg 2 ,loopcnt 
+2fb4 da200c12 arg mem_mesh_message_dst ,rega 
+2fb5 da400021 arg mesh_network_relay_packet ,regb 
+2fb6 204029c6 call logging_tx_info 
+2fb7 6f208be0 fetchr loopcnt ,1 ,mem_ccm_data_len 
+2fb8 6a210be1 fetchr rega ,2 ,mem_ccm_data_ptr 
+2fb9 da400021 arg mesh_network_relay_packet ,regb 
+2fba 202029c4 branch logging_tx_debug 
+
+ali_mesh_network_layer_send_access_message:
+2fbb 477ec03f bpatchx patch3f_5 ,mem_patch3f 
+2fbc 20402fbf call ali_mesh_network_layer_send_access_message_encrypt_netmic 
+2fbd 20402fc8 call ali_mesh_network_layer_send_access_message_encrypt_obfuscation 
+2fbe 202028a3 branch ali_mesh_bearer_layer_send_packet_by_network_layer 
+
+ali_mesh_network_layer_send_access_message_encrypt_netmic:
+2fbf 6fe08bff fetch 1 ,mem_mesh_lower_transport_layer_payload_len 
+2fc0 1fe0a202 add pdata ,2 ,rega 
+2fc1 1fe0fe04 pincrease 4 
+2fc2 67e08bff store 1 ,mem_mesh_lower_transport_layer_payload_len 
+2fc3 d8404b63 arg mem_mesh_send_upper_layer_dst ,temp 
+2fc4 20202fc5 branch ali_mesh_network_layer_encrypt_by_network_nonce 
+
+ali_mesh_network_layer_encrypt_by_network_nonce:
+2fc5 20402f6e call ali_mesh_network_load_network_nonce_and_encryptionkey 
+2fc6 1a227e00 copy rega ,pdata 
+2fc7 20202bc8 branch ali_ccm_encrypt 
+
+ali_mesh_network_layer_send_access_message_encrypt_obfuscation:
+2fc8 20202afc branch ali_mesh_encrypt_obfuscation_deceypt_send_message 
+
+mesh_generate_nonce:
+2fc9 6fe24a32 fetch 4 ,mem_mesh_iv_index 
+2fca e7e20005 istore 4 ,contw 
+2fcb 18a0fff3 add contw ,-13 ,pdata 
+2fcc 67e10bde store 2 ,mem_nonce_ptr 
+2fcd 20600000 rtn 
+
+logging_tx_debug_network_receive_packet:
+2fce 6fe08c0a fetch 1 ,mem_mesh_message_transport_netmic_length 
+2fcf 1fe0f20b add pdata ,11 ,loopcnt 
+2fd0 da200c0b arg mem_mesh_message_nid ,rega 
+2fd1 da400020 arg mesh_network_receive_packet ,regb 
+2fd2 202029c4 branch logging_tx_debug 
+
+ali_mesh_proxy_init_adv:
+2fd3 7043ea14 jam 0x14 ,mem_le_adv_data_len 
+2fd4 58000002 setarg 0x02 
+2fd5 67e0c3eb store 1 ,mem_le_adv_data 
+2fd6 58000001 setarg gap_adtype_flags 
+2fd7 e7e08005 istore 1 ,contw 
+2fd8 58000006 setarg 0x06 
+2fd9 e7e08005 istore 1 ,contw 
+2fda 58000003 setarg 0x03 
+2fdb e7e08005 istore 1 ,contw 
+2fdc 58000003 setarg gap_adtype_16bit_complete 
+2fdd e7e08005 istore 1 ,contw 
+2fde 58001828 setarg mesh_proxy_service 
+2fdf e7e10005 istore 2 ,contw 
+2fe0 5800000c setarg 0x0c 
+2fe1 e7e08005 istore 1 ,contw 
+2fe2 58000016 setarg gap_adtype_service_data 
+2fe3 e7e08005 istore 1 ,contw 
+2fe4 58001828 setarg mesh_proxy_service 
+2fe5 e7e10005 istore 2 ,contw 
+2fe6 58000000 setarg mesh_proxy_service_data_id_type_network_id 
+2fe7 e7e08005 istore 1 ,contw 
+2fe8 6fe44967 fetch 8 ,mem_mesh_network_id 
+2fe9 e7e40005 istore 8 ,contw 
+2fea 20600000 rtn 
+
+mesh_le_receive_data:
+2feb 6fe1443a fetch 2 ,mem_le_att_handle 
+2fec c0072fee beq mesh_proxy_data_in_handle ,ali_mesh_receive_ble_data_proxy_data_in 
+2fed 20600000 rtn 
+
+ali_mesh_receive_ble_data_proxy_data_in:
+2fee 1a420400 copy regb ,temp 
+2fef efe08011 ifetch 1 ,rega 
+2ff0 c0002ff2 beq mesh_proxy_message_type_network_pdu ,ali_mesh_network_layer_recevice_network_pdu_proxy_control 
+2ff1 20600000 rtn 
+
+ali_mesh_network_layer_recevice_network_pdu_proxy_control:
+2ff2 700a9702 jam mesh_message_proxy ,mem_mesh_network_packet_type_temp 
+2ff3 20202f1e branch ali_mesh_network_layer_recevice_network_pdu 
+
+ali_mesh_proxy_process_bb_event:
+2ff4 1a627e00 copy regc ,pdata 
+2ff5 c00ab24c beq bt_evt_le_disconnected ,app_ble_start_adv 
+2ff6 20600000 rtn 
+
+ali_mesh_send_ble_data:
+2ff7 20401b05 call le_fifo_check_nearly_full 
+2ff8 247a0000 nrtn blank 
+2ff9 6fe08a76 fetch 1 ,mem_mesh_queue_ele_len 
+2ffa 1fe0a3ff add pdata ,-1 ,rega 
+2ffb d8400010 arg mesh_proxy_data_out_handle ,temp 
+2ffc 20401e40 call le_att_malloc_tx_notify 
+2ffd 58000000 setarg mesh_proxy_message_type_network_pdu 
+2ffe e7e08005 istore 1 ,contw 
+2fff d8c00a79 arg mem_mesh_queue_ele_payload + 2 ,contr 
+3000 20207c4a branch memcpy32 
+
+ali_mesh_upper_transport_layer_receive_unsegmented_access_message:
+3001 c3033004 bbit0 transport_head_bit_akf ,ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_device_key 
+
+ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_application_key:
+3002 2040302a call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key 
+3003 20203006 branch ali_mesh_upper_transport_layer_decrypt_unsegmented_message 
+
+ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_device_key:
+3004 20403037 call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key 
+3005 20203006 branch ali_mesh_upper_transport_layer_decrypt_unsegmented_message 
+
+ali_mesh_upper_transport_layer_decrypt_unsegmented_message:
+3006 6fe08c0a fetch 1 ,mem_mesh_message_transport_netmic_length 
+3007 1fe0fff9 pincrease -7 
+3008 de000c15 arg mem_mesh_message_transport_unsegmented_access_messagepdu ,alarm 
+3009 20407d94 call disable_user 
+300a 20203018 branch ali_mesh_upper_transport_layer_decrypt_message 
+
+ali_mesh_upper_transport_layer_receive_segmented_access_message:
+300b 6fe08c14 fetch 1 ,mem_mesh_message_transport_head 
+300c c303300f bbit0 transport_head_bit_akf ,ali_mesh_uuper_transport_layer_decrypt_segment_access_by_device_key 
+
+ali_mesh_uuper_transport_layer_decrypt_segment_access_by_application_key:
+300d 2040302a call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key 
+300e 20203011 branch ali_mesh_upper_transport_layer_decrypt_segmented_message 
+
+ali_mesh_uuper_transport_layer_decrypt_segment_access_by_device_key:
+300f 20403037 call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key 
+3010 20203011 branch ali_mesh_upper_transport_layer_decrypt_segmented_message 
+
+ali_mesh_upper_transport_layer_decrypt_segmented_message:
+3011 6fe0cb2d fetch 1 ,mem_mesh_aszmic 
+3012 245a7d92 ncall enable_user ,blank 
+3013 205a7d94 call disable_user ,blank 
+3014 6fe0ca2a fetch 1 ,mem_mesh_segmented_access_message_current_length 
+3015 1fe0fffc pincrease -4 
+3016 704a2a00 jam 0 ,mem_mesh_segmented_access_message_current_length 
+3017 de004bca arg mem_mesh_segmented_access_message_segment ,alarm 
+
+ali_mesh_upper_transport_layer_decrypt_message:
+3018 1e020400 copy alarm ,temp 
+3019 20403024 call ali_mesh_upper_transport_layer_decrypt_message_decrypt_transmic 
+301a 24628000 nrtn zero 
+301b df200001 arg 1 ,loopcnt 
+301c da200be0 arg mem_ccm_data_len ,rega 
+301d da400040 arg mesh_upper_receive_packet ,regb 
+301e 204029c6 call logging_tx_info 
+301f 20403027 call ali_mesh_upper_transport_layer_check_transport_mic_cache 
+3020 24740000 nrtn user 
+3021 6fe10be1 fetch 2 ,mem_ccm_data_ptr 
+3022 1fe26000 copy pdata ,alarm 
+3023 20202715 branch ali_mesh_access_layer_resolve_message 
+
+ali_mesh_upper_transport_layer_decrypt_message_decrypt_transmic:
+3024 24342be9 nbranch ali_ccm_decrypt ,user 
+3025 1fe0fffc pincrease -4 
+3026 20202be7 branch ali_ccm_decrypt_64bit 
+
+ali_mesh_upper_transport_layer_check_transport_mic_cache:
+3027 58004b2e setarg mem_mesh_access_message_mic_cache 
+3028 67e10bfd store 2 ,mem_mesh_mic_cache_ptr 
+3029 20202958 branch ali_mesh_base_adt_cache 
+
+ali_mesh_upper_transport_layer_load_application_nonce_and_application_key:
+302a 2040302d call ali_mesh_upper_transport_layer_load_application_nonce 
+
+ali_mesh_upper_transport_layer_load_application_key:
+302b d8c04b1d arg mem_mesh_application_key ,contr 
+302c 20206cf1 branch load_key 
+
+ali_mesh_upper_transport_layer_load_application_nonce:
+302d d8a00c28 arg mem_mesh_application_nonce ,contw 
+302e 58000001 setarg application_nonce 
+302f e7e08005 istore 1 ,contw 
+3030 6fe0cb2d fetch 1 ,mem_mesh_aszmic 
+3031 d8400000 arg 0 ,temp 
+3032 7d3a0407 nsetflag blank ,7 ,temp 
+3033 e0408005 istoret 1 ,contw 
+3034 6fe38c0d fetch 7 ,mem_mesh_message_seq 
+3035 e7e38005 istore 7 ,contw 
+3036 20202fc9 branch mesh_generate_nonce 
+
+ali_mesh_upper_transport_layer_load_device_nonce_and_device_key:
+3037 2040303a call ali_mesh_upper_transport_layer_load_device_nonce 
+
+ali_mesh_upper_transport_layer_load_device_key:
+3038 d8c0482b arg mem_mesh_device_key ,contr 
+3039 20206cf1 branch load_key 
+
+ali_mesh_upper_transport_layer_load_device_nonce:
+303a d8a00c28 arg mem_mesh_device_nonce ,contw 
+303b 58000002 setarg device_nonce 
+303c 2020302f branch ali_mesh_upper_transport_layer_load_application_nonce + 2 
+
+ali_mesh_upper_transport_layer_send_access_message:
+
+ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer:
+303d 477f403f bpatchx patch3f_6 ,mem_patch3f 
+303e 2040312b call ali_mesh_upper_transport_layer_clear_tx_buffer 
+303f 2040312c call ali_mesh_loggint_tx_info_upper_send_packet 
+3040 204030fb call ali_mesh_upper_transport_layer_send_access_message_add_nid_src_ttl_seq_dst 
+3041 20403046 call ali_mesh_upper_transport_layer_store_packet_header 
+3042 20740000 rtn user 
+3043 2040305e call ali_mesh_upper_transport_layer_store_unsegment_msg_original_access_pdu 
+3044 da200c43 arg mem_mesh_upper_tran_layer_queue_temp ,rega 
+3045 20207875 branch queue_push 
+
+ali_mesh_upper_transport_layer_store_packet_header:
+3046 20407d94 call disable_user 
+3047 d8400002 arg upper_retry_count_status ,temp 
+3048 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+3049 98408400 iadd temp ,temp 
+304a 6fe08c3a fetch 1 ,mem_mesh_network_packet_type 
+304b 1fe67c02 sub pdata ,mesh_message_proxy ,null 
+304c 79228407 setflag zero ,bit_upper_flag_proxy_control ,temp 
+304d 6fe08c3a fetch 1 ,mem_mesh_network_packet_type 
+304e 1fe67c01 sub pdata ,mesh_message_app ,null 
+304f 79228406 setflag zero ,bit_upper_flag_app_control ,temp 
+3050 60488c43 storet 1 ,mem_mesh_upper_tran_layer_temp_packet_flag 
+3051 6fe4cb5c fetch 9 ,mem_mesh_send_upper_layer_ivi_and_nid 
+3052 67e48c47 store 9 ,mem_mesh_upper_tran_layer_temp_packet_header_ivi_nid 
+3053 6fe08a10 fetch 1 ,mem_mesh_access_layer_payload_vendor_command 
+3054 c1ea0000 rtnne vendor_message_attr_indication 
+3055 6fe0c96f fetch 1 ,mem_mesh_provisioned_flag 
+3056 c0807d92 bne paired_status ,enable_user 
+3057 6fe08a13 fetch 1 ,mem_mesh_access_layer_payload_vendor_tid 
+3058 67e08c46 store 1 ,mem_mesh_upper_tran_layer_temp_packet_tid 
+3059 6fe08c43 fetch 1 ,mem_mesh_upper_tran_layer_temp_packet_flag 
+305a 1fe0fe01 pincrease upper_retry_count_indication 
+305b 79207e05 set1 bit_upper_flag_vendor_indication ,pdata 
+305c 67e08c43 store 1 ,mem_mesh_upper_tran_layer_temp_packet_flag 
+305d 20600000 rtn 
+
+ali_mesh_upper_transport_layer_store_unsegment_msg_original_access_pdu:
+305e 6fe08a0f fetch 1 ,mem_mesh_access_layer_payload_len 
+305f 1fe27200 copy pdata ,loopcnt 
+3060 67e08c50 store 1 ,mem_mesh_upper_tran_layer_temp_packet_length 
+3061 6fe08c14 fetch 1 ,mem_mesh_message_transport_head 
+3062 67e08c51 store 1 ,mem_mesh_upper_tran_layer_temp_pakcet_akf_aid 
+3063 d8a00c56 arg mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu ,contw 
+3064 d8c00a10 arg mem_mesh_access_layer_payload ,contr 
+3065 20207ca1 branch memcpy 
+
+ali_mesh_upper_transport_layer_control_packet:
+3066 da603068 arg ali_mesh_upper_transport_layer_control_packet_deal ,regc 
+3067 20202dff branch ali_mesh_check_all_element_info 
+
+ali_mesh_upper_transport_layer_control_packet_deal:
+3068 1a208c16 add rega ,element_device_upper_adv_flag ,contr 
+3069 efe08006 ifetch 1 ,contr 
+306a 247a0000 nrtn blank 
+306b efe10006 ifetch 2 ,contr 
+306c 67e1448f store 2 ,mem_queue_ptr 
+306d da200c43 arg mem_mesh_upper_tran_layer_queue_temp ,rega 
+306e 2040789d call queue_get_new_ele 
+306f 24740000 nrtn user 
+3070 6a210c02 fetchr rega ,2 ,mem_mesh_rega_temp 
+3071 68488c43 fetcht 1 ,mem_mesh_upper_tran_layer_temp_packet_flag 
+3072 18417e0f and temp ,data_upper_flag_max_retry_count ,pdata 
+3073 203a30aa branch ali_mesh_upper_transport_layer_queue_pop ,blank 
+3074 1a208a16 add rega ,element_device_upper_adv_flag ,contw 
+3075 58000001 setarg packet_in_bearer 
+3076 e7e08005 istore 1 ,contw 
+3077 20403094 call ali_mesh_upper_transport_layer_control_packet_load_header 
+3078 68488c43 fetcht 1 ,mem_mesh_upper_tran_layer_temp_packet_flag 
+3079 2040309a call ali_mesh_upper_transport_layer_control_packet_load_app_control 
+307a 1a208a19 add rega ,element_device_tran_package_tid ,contw 
+307b e7e08005 istore 1 ,contw 
+307c 1a208c1a add rega ,element_device_tran_package_type ,contr 
+307d efe08006 ifetch 1 ,contr 
+307e 284ffe07 isolate1 bit_upper_flag_proxy_control ,temp 
+307f 7920fe02 setflag true ,bit_uuper_tran_proxy_message ,pdata 
+3080 1a208a1a add rega ,element_device_tran_package_type ,contw 
+3081 e7e08005 istore 1 ,contw 
+3082 79200404 set1 bit_upper_flag_retransmit ,temp 
+3083 184085ff increase -1 ,temp 
+3084 e0408012 istoret 1 ,regb 
+3085 68488c43 fetcht 1 ,mem_mesh_upper_tran_layer_temp_packet_flag 
+3086 284ffe04 isolate1 bit_upper_flag_retransmit ,temp 
+3087 2420b0af nbranch ali_mesh_upper_transport_layer_control_packet_encrypt_access ,true 
+3088 68488c50 fetcht 1 ,mem_mesh_upper_tran_layer_temp_packet_length 
+3089 60488a0f storet 1 ,mem_mesh_upper_transport_layer_payload_len 
+308a 18427200 copy temp ,loopcnt 
+308b d8a00a10 arg mem_mesh_access_layer_payload ,contw 
+308c d8c00c56 arg mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu ,contr 
+308d 20407ca1 call memcpy 
+308e 18467c0f sub temp ,unsegmented_access_message_max_upper_transport_access_pdu_len ,null 
+308f 24213091 nbranch ali_mesh_upper_transport_layer_control_packet_segment_msg ,positive 
+
+ali_mesh_upper_transport_layer_control_packet_unsegment_msg:
+3090 20202e62 branch ali_mesh_lower_transport_layer_send_unsegmented_access_message 
+
+ali_mesh_upper_transport_layer_control_packet_segment_msg:
+3091 6fe20c52 fetch 4 ,mem_mesh_upper_tran_layer_temp_segmented_pakcet_seqzero 
+3092 67e20c3e store 4 ,mem_mesh_segmented_lower_transport_layer_segzero 
+3093 202030d0 branch ali_mesh_upper_transport_layer_split_segmented_msg_to_lower_tran_layer 
+
+ali_mesh_upper_transport_layer_control_packet_load_header:
+3094 6fe08c51 fetch 1 ,mem_mesh_upper_tran_layer_temp_pakcet_akf_aid 
+3095 67e08c14 store 1 ,mem_mesh_message_transport_head 
+3096 6fe48c47 fetch 9 ,mem_mesh_upper_tran_layer_temp_packet_header_ivi_nid 
+3097 67e4cb5c store 9 ,mem_mesh_send_upper_layer_ivi_and_nid 
+3098 67e48c0b store 9 ,mem_mesh_message_nid 
+3099 20600000 rtn 
+
+ali_mesh_upper_transport_layer_control_packet_load_app_control:
+309a 58000003 setarg upper_tran_tmall_and_app 
+309b 204030a7 call ali_mesh_store_tran_package_type 
+309c 6fe08c46 fetch 1 ,mem_mesh_upper_tran_layer_temp_packet_tid 
+309d 284ffe05 isolate1 bit_upper_flag_vendor_indication ,temp 
+309e 20608000 rtn true 
+309f 58000001 setarg upper_tran_tmall_message 
+30a0 204030a7 call ali_mesh_store_tran_package_type 
+30a1 58000000 setarg 0 
+30a2 284ffe06 isolate1 bit_upper_flag_app_control ,temp 
+30a3 24608000 nrtn true 
+30a4 58000002 setarg upper_tran_app_message 
+30a5 204030a7 call ali_mesh_store_tran_package_type 
+30a6 20207d9e branch enable_blank 
+
+ali_mesh_store_tran_package_type:
+30a7 1a208a1a add rega ,element_device_tran_package_type ,contw 
+30a8 e7e08005 istore 1 ,contw 
+30a9 20600000 rtn 
+
+ali_mesh_upper_transport_layer_queue_pop:
+30aa 58000000 setarg 0 
+30ab 1a208a19 add rega ,element_device_tran_package_tid ,contw 
+30ac e7e08005 istore 1 ,contw 
+30ad da200c43 arg mem_mesh_upper_tran_layer_queue_temp ,rega 
+30ae 2020788c branch queue_pop 
+
+ali_mesh_upper_transport_layer_control_packet_encrypt_access:
+30af 204030f3 call ali_mesh_upper_transport_layer_send_access_message_calc_seq 
+30b0 20403107 call ali_mesh_upper_transport_layer_send_access_message_add_seq 
+30b1 6fe4cb5c fetch 9 ,mem_mesh_send_upper_layer_ivi_and_nid 
+30b2 67e48c47 store 9 ,mem_mesh_upper_tran_layer_temp_packet_header_ivi_nid 
+30b3 204030c8 call ali_mesh_upper_transport_layer_control_packet_encrypt_access_load_payload 
+30b4 58000000 setarg 0 
+30b5 67e0cb2d store 1 ,mem_mesh_aszmic 
+30b6 204030e9 call ali_mesh_upper_transport_layer_calc_transport_mic 
+30b7 68488a0f fetcht 1 ,mem_mesh_upper_transport_layer_payload_len 
+30b8 60488c50 storet 1 ,mem_mesh_upper_tran_layer_temp_packet_length 
+30b9 18427200 copy temp ,loopcnt 
+30ba d8c00a10 arg mem_mesh_access_layer_payload ,contr 
+30bb d8a00c56 arg mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu ,contw 
+30bc 20407ca1 call memcpy 
+30bd 18467c0f sub temp ,unsegmented_access_message_max_upper_transport_access_pdu_len ,null 
+30be 242130c2 nbranch ali_mesh_upper_transport_layer_control_packet_encrypt_access_segment_msg ,positive 
+
+ali_mesh_upper_transport_layer_control_packet_encrypt_access_unsegment_msg:
+30bf da200c44 arg mem_mesh_upper_tran_layer_temp_packet_transmit_delay ,rega 
+30c0 204078ac call queue_store_new_ele 
+30c1 20202e62 branch ali_mesh_lower_transport_layer_send_unsegmented_access_message 
+
+ali_mesh_upper_transport_layer_control_packet_encrypt_access_segment_msg:
+30c2 2040310f call ali_mesh_upper_transport_layer_send_segmented_access_message_get_seqzero_segon 
+30c3 6fe20c3e fetch 4 ,mem_mesh_segmented_lower_transport_layer_segzero 
+30c4 67e20c52 store 4 ,mem_mesh_upper_tran_layer_temp_segmented_pakcet_seqzero 
+30c5 da200c44 arg mem_mesh_upper_tran_layer_temp_packet_transmit_delay ,rega 
+30c6 204078ac call queue_store_new_ele 
+30c7 202030d0 branch ali_mesh_upper_transport_layer_split_segmented_msg_to_lower_tran_layer 
+
+ali_mesh_upper_transport_layer_control_packet_encrypt_access_load_payload:
+30c8 6fe08c50 fetch 1 ,mem_mesh_upper_tran_layer_temp_packet_length 
+30c9 1fe27200 copy pdata ,loopcnt 
+30ca 67e08a0f store 1 ,mem_mesh_access_layer_payload_len 
+30cb 6fe08c51 fetch 1 ,mem_mesh_upper_tran_layer_temp_pakcet_akf_aid 
+30cc 67e08c14 store 1 ,mem_mesh_message_transport_head 
+30cd d8c00c56 arg mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu ,contr 
+30ce d8a00a10 arg mem_mesh_access_layer_payload ,contw 
+30cf 20207ca1 branch memcpy 
+
+ali_mesh_upper_transport_layer_split_segmented_msg_to_lower_tran_layer:
+30d0 2040311c call ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header 
+30d1 58000a10 setarg mem_mesh_access_payload 
+30d2 67e10c3b store 2 ,mem_mesh_upper_transport_layer_payload_ptr 
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_loop:
+30d3 20403094 call ali_mesh_upper_transport_layer_control_packet_load_header 
+30d4 204030f3 call ali_mesh_upper_transport_layer_send_access_message_calc_seq 
+30d5 20403107 call ali_mesh_upper_transport_layer_send_access_message_add_seq 
+30d6 68488a0f fetcht 1 ,mem_mesh_access_layer_payload_len 
+30d7 5800000c setarg segmented_access_message_unint_pdu_len 
+30d8 20407d88 call not_greater_than 
+30d9 1fe22200 copy pdata ,rega 
+30da 18427e00 copy temp ,pdata 
+30db 9a267e00 isub rega ,pdata 
+30dc 67e08a0f store 1 ,mem_mesh_access_layer_payload_len 
+30dd 6fe10c3b fetch 2 ,mem_mesh_upper_transport_layer_payload_ptr 
+30de 1fe20c00 copy pdata ,contr 
+30df 9a208400 iadd rega ,temp 
+30e0 60490c3b storet 2 ,mem_mesh_upper_transport_layer_payload_ptr 
+30e1 20402e6c call ali_mesh_lower_transport_layer_send_segmented_access_message 
+30e2 6fe08a0f fetch 1 ,mem_mesh_access_layer_payload_len 
+30e3 207a0000 rtn blank 
+30e4 6fe08c40 fetch 1 ,mem_mesh_segmented_lower_transport_layer_sego 
+30e5 1fe0fe01 pincrease 1 
+30e6 67e08c40 store 1 ,mem_mesh_segmented_lower_transport_layer_sego 
+30e7 2040311c call ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header 
+30e8 202030d3 branch ali_mesh_upper_transport_layer_send_segmented_access_message_loop 
+
+ali_mesh_upper_transport_layer_calc_transport_mic:
+30e9 6fe08c14 fetch 1 ,mem_mesh_message_transport_head 
+30ea c30330ed bbit0 transport_head_bit_akf ,ali_mesh_upper_transport_layer_calc_transport_mic_by_devicekey 
+
+ali_mesh_upper_transport_layer_calc_transport_mic_by_appkey:
+30eb 2040302a call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key 
+30ec 202030ee branch ali_mesh_upper_transport_layer_calc_transport_mic_encrypt_aesccm 
+
+ali_mesh_upper_transport_layer_calc_transport_mic_by_devicekey:
+30ed 20403037 call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key 
+
+ali_mesh_upper_transport_layer_calc_transport_mic_encrypt_aesccm:
+30ee 6fe08a0f fetch 1 ,mem_mesh_access_layer_payload_len 
+30ef 1fe08404 add pdata ,4 ,temp 
+30f0 60488a0f storet 1 ,mem_mesh_upper_transport_layer_payload_len 
+30f1 d8400a10 arg mem_mesh_access_layer_payload ,temp 
+30f2 20202bc8 branch ali_ccm_encrypt 
+
+ali_mesh_upper_transport_layer_send_access_message_calc_seq:
+30f3 6fe1cb56 fetch 3 ,mem_mesh_send_message_seq 
+30f4 1fe0fe01 pincrease 1 
+30f5 67e1cb56 store 3 ,mem_mesh_send_message_seq 
+30f6 6fe0c993 fetch 1 ,mem_mesh_gatt_package_send_msg_id 
+30f7 1fe0fe01 pincrease 1 
+30f8 67e0c993 store 1 ,mem_mesh_gatt_package_send_msg_id 
+30f9 6fe14a13 fetch 2 ,mem_mesh_cb_seq_changed 
+30fa 20207d47 branch callback_func 
+
+ali_mesh_upper_transport_layer_send_access_message_add_nid_src_ttl_seq_dst:
+30fb 6fe0ca35 fetch 1 ,mem_mesh_iv_index + 3 
+30fc 1ff27e00 lshift4 pdata ,pdata 
+30fd 1fe9fe00 lshift3 pdata ,pdata 
+30fe 6848c8d8 fetcht 1 ,mem_k2_nid 
+30ff 9841fe00 ior temp ,pdata 
+3100 67e0cb5c store 1 ,mem_mesh_send_upper_layer_ivi_and_nid 
+3101 6fe0cb5b fetch 1 ,mem_mesh_send_message_ttl 
+3102 67e0cb5d store 1 ,mem_mesh_send_upper_layer_ctl_and_ttl 
+3103 6fe14b59 fetch 2 ,mem_mesh_send_message_src 
+3104 67e14b61 store 2 ,mem_mesh_send_upper_layer_src 
+3105 6fe10c35 fetch 2 ,mem_mesh_send_message_dst 
+3106 67e14b63 store 2 ,mem_mesh_send_upper_layer_dst 
+
+ali_mesh_upper_transport_layer_send_access_message_add_seq:
+3107 6fe1cb56 fetch 3 ,mem_mesh_send_message_seq 
+3108 67e1cb5e store 3 ,mem_mesh_send_upper_layer_seq 
+3109 da204b5e arg mem_mesh_send_upper_layer_seq ,rega 
+310a df200003 arg 3 ,loopcnt 
+310b 20407c79 call inverse_data 
+310c 6fe44b5d fetch 8 ,mem_mesh_send_upper_layer_ctl_and_ttl 
+310d 67e40c0c store 8 ,mem_mesh_message_ttl 
+310e 20600000 rtn 
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_get_seqzero_segon:
+310f 6fe08a0f fetch 1 ,mem_mesh_upper_transport_layer_payload_len 
+3110 1fe6fc0c div pdata ,segmented_access_message_unint_pdu_len 
+3111 20407d31 call wait_div_end 
+3112 18078400 quotient temp 
+3113 18077e00 remainder pdata 
+3114 205a3129 call ali_mesh_upper_transport_layer_send_segmented_access_message_sub_segn_one ,blank 
+3115 60488c41 storet 1 ,mem_mesh_segmented_lower_transport_layer_segn 
+3116 700c4000 jam 0 ,mem_mesh_segmented_lower_transport_layer_sego 
+3117 6fe1cb56 fetch 3 ,mem_mesh_send_message_seq 
+3118 d8401fff arg 0x1fff ,temp 
+3119 98417e00 iand temp ,pdata 
+311a 67e10c3e store 2 ,mem_mesh_segmented_lower_transport_layer_segzero 
+311b 20600000 rtn 
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header:
+311c 6fe10c3e fetch 2 ,mem_mesh_segmented_lower_transport_layer_segzero 
+311d 1ff27e00 lshift4 pdata ,pdata 
+311e 1fe3fe00 lshift pdata ,pdata 
+311f 68488c40 fetcht 1 ,mem_mesh_segmented_lower_transport_layer_sego 
+3120 9841fe00 ior temp ,pdata 
+3121 1ff27e00 lshift4 pdata ,pdata 
+3122 1fe3fe00 lshift pdata ,pdata 
+3123 68488c41 fetcht 1 ,mem_mesh_segmented_lower_transport_layer_segn 
+3124 9841fe00 ior temp ,pdata 
+3125 67e1cb66 store 3 ,mem_mesh_segmented_access_lower_transport_layer_szmic_seqzero_sego_segn 
+3126 df200003 arg 3 ,loopcnt 
+3127 da204b66 arg mem_mesh_segmented_access_lower_transport_layer_szmic_seqzero_sego_segn ,rega 
+3128 20207c79 branch inverse_data 
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_sub_segn_one:
+3129 184085ff increase -1 ,temp 
+312a 20600000 rtn 
+
+ali_mesh_upper_transport_layer_clear_tx_buffer:
+312b 20600000 rtn 
+
+ali_mesh_loggint_tx_info_upper_send_packet:
+312c da200a10 arg mem_mesh_access_layer_payload ,rega 
+312d 6f208a0f fetchr loopcnt ,1 ,mem_mesh_access_layer_payload_len 
+312e da400041 arg mesh_upper_send_packet ,regb 
+312f 202029c6 branch logging_tx_info 
+
+app_init:
+3130 44d6c015 bpatch patch15_5 ,mem_patch15 
+3131 6fe0c09a fetch 1 ,mem_device_option 
+3132 203a3130 branch app_init ,blank 
+3133 c002366d beq dvc_op_dongle ,dongle_init 
+3134 c007b28c beq dvc_op_antilost ,antilost_init 
+3135 c004ca00 beq dvc_op_shutter ,shutter_init 
+3136 c00537e5 beq dvc_op_module ,module_init 
+3137 c0073431 beq dvc_op_car ,car_init 
+3138 c006c8ea beq dvc_op_remote_car ,remote_car_init 
+3139 c0064be1 beq dvc_op_hci_boot ,hci_init 
+313a c005adc8 beq dvc_op_ali_mesh ,ali_mesh_init 
+313b c0043c46 beq dvc_op_mouse ,mouse_init 
+313c 20600000 rtn 
+
+app_lpm_init:
+313d 700a5100 jam 0 ,mem_tester_emulate 
+313e 7000e300 jam 0 ,mem_debug_config 
+313f 7000e400 jam 0 ,mem_lch_code 
+3140 58000000 setarg 0 
+3141 67e28870 store 5 ,mem_sp_state_start 
+3142 6fe0c09a fetch 1 ,mem_device_option 
+3143 203a313d branch app_lpm_init ,blank 
+3144 c005380e beq dvc_op_module ,module_lpm_init 
+
+app_lpm_init0:
+3145 20600000 rtn 
+
+app_param_init:
+3146 20758000 rtn wake 
+3147 20405fe1 call adc_init_data 
+3148 6fe0c09a fetch 1 ,mem_device_option 
+3149 c004cb3f beq dvc_op_shutter ,shutter_default_init 
+314a c0023678 beq dvc_op_dongle ,dongle_default_init 
+314b c0043c89 beq dvc_op_mouse ,mouse_default_init 
+314c c006c9ba beq dvc_op_remote_car ,remote_car_default_init 
+314d 20600000 rtn 
+
+app_process_idle:
+314e 204076ef call ui_dispatch 
+314f 204077bd call check_51cmd 
+3150 20403157 call app_process_bb_event 
+3151 6fe14468 fetch 2 ,mem_cb_idle_process 
+3152 20207d47 branch callback_func 
+
+app_process_bt:
+3153 6fe14466 fetch 2 ,mem_cb_bt_process 
+3154 20207d47 branch callback_func 
+
+app_process_ble:
+3155 6fe14464 fetch 2 ,mem_cb_le_process 
+3156 20207d47 branch callback_func 
+
+app_process_bb_event:
+3157 44d74015 bpatch patch15_6 ,mem_patch15 
+3158 da204779 arg mem_ipc_fifo_bt2c51 ,rega 
+3159 20407d6f call fifo_out 
+315a 207a0000 rtn blank 
+315b 1fe22600 copy pdata ,regc 
+315c 20403160 call app_event_normal_process 
+315d 20203185 branch app_process_bb_event_priority 
+
+app_discard_event:
+315e da600000 arg 0 ,regc 
+315f 20600000 rtn 
+
+app_event_normal_process:
+3160 c000b172 beq bt_evt_bb_connected ,app_evt_bt_conn 
+3161 c00831b9 beq bt_evt_button_long_pressed ,app_evt_button_long_pressed 
+3162 c002b196 beq bt_evt_setup_complete ,app_evt_setup_complete 
+3163 c009319d beq bt_evt_hid_handshake ,app_evt_hid_handshake 
+3164 c00331b5 beq bt_evt_hid_connected ,app_bb_event_hid_connected 
+3165 c00231f6 beq bt_evt_reconn_failed ,app_bb_event_reconn_failed 
+3166 c00131fb beq bt_evt_bb_disconnected ,app_bb_event_bb_disconn 
+3167 c009b1f6 beq bt_evt_reconn_page_timeout ,app_bb_event_reconn_failed 
+3168 c00a31ac beq bt_evt_le_connected ,app_le_event_bb_connected 
+3169 c00ab1b0 beq bt_evt_le_disconnected ,app_le_event_bb_disconn 
+316a c001b18f beq bt_evt_reconn_started ,app_event_reconn_start 
+316b c005b1a1 beq bt_evt_enter_sniff ,app_event_enter_sniff 
+316c c00631a8 beq bt_evt_exit_sniff ,app_event_exit_sniff 
+316d c00b31bd beq bt_evt_ml2cap_conn_refused ,app_event_ml2cap_conn_refused 
+316e c00c318b beq bt_evt_linkkey_generate ,app_event_linkkey_generate 
+316f c015317b beq bt_evt_switch_fail_master ,app_event_switch_fail_master 
+3170 c015b179 beq bt_evt_switch_success_master ,app_event_switch_success 
+3171 20600000 rtn 
+
+app_evt_bt_conn:
+3172 6fe14793 fetch 2 ,mem_ui_state_map 
+3173 79207e00 set1 ui_state_bt_connected ,pdata 
+3174 67e14793 store 2 ,mem_ui_state_map 
+3175 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3176 793ffe00 set0 app_disc_by_button ,pdata 
+3177 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3178 202077ff branch check_51cmd_stop_discovery 
+
+app_event_switch_success:
+3179 70030c00 jam 0 ,mem_switch_fail_master_count 
+317a 20600000 rtn 
+
+app_event_switch_fail_master:
+317b 6fe0830c fetch 1 ,mem_switch_fail_master_count 
+317c 1fe0fe01 increase 1 ,pdata 
+317d 67e0830c store 1 ,mem_switch_fail_master_count 
+317e 1fe67c01 sub pdata ,1 ,null 
+317f 20213231 branch app_bt_role_switch ,positive 
+3180 70030c00 jam 0 ,mem_switch_fail_master_count 
+3181 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3182 79207e09 set1 app_disc_switch_fail ,pdata 
+3183 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3184 2020323b branch app_bt_disconnect 
+
+app_process_bb_event_priority:
+3185 6fe1446a fetch 2 ,mem_cb_bb_event_process 
+3186 20207d47 branch callback_func 
+
+app_check_wake_lock:
+3187 6fe1445e fetch 2 ,mem_cb_check_wakelock 
+3188 20207d47 branch callback_func 
+
+app_will_enter_lpm:
+3189 6fe14462 fetch 2 ,mem_cb_before_lpm 
+318a 20207d47 branch callback_func 
+
+app_event_linkkey_generate:
+318b 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+318c 79207e01 set1 app_disc_after_pairing ,pdata 
+318d 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+318e 20203264 branch app_bt_store_reconn_info 
+
+app_event_reconn_start:
+318f 6fe14793 fetch 2 ,mem_ui_state_map 
+3190 79207e07 set1 ui_state_bt_reconnect ,pdata 
+3191 67e14793 store 2 ,mem_ui_state_map 
+3192 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3193 79207e02 set1 app_disc_after_reconn ,pdata 
+3194 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3195 20600000 rtn 
+
+app_evt_setup_complete:
+3196 6fe14793 fetch 2 ,mem_ui_state_map 
+3197 79207e01 set1 ui_state_bt_setup_complete ,pdata 
+3198 67e14793 store 2 ,mem_ui_state_map 
+3199 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+319a 79207e04 set1 app_disc_after_setup_done ,pdata 
+319b 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+319c 20600000 rtn 
+
+app_evt_hid_handshake:
+319d 6fe14793 fetch 2 ,mem_ui_state_map 
+319e 79207e03 set1 ui_state_bt_hid_handshake ,pdata 
+319f 67e14793 store 2 ,mem_ui_state_map 
+31a0 20600000 rtn 
+
+app_event_enter_sniff:
+31a1 6fe14793 fetch 2 ,mem_ui_state_map 
+31a2 79207e05 set1 ui_state_bt_sniff ,pdata 
+31a3 67e14793 store 2 ,mem_ui_state_map 
+31a4 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+31a5 79207e03 set1 app_disc_after_sniff ,pdata 
+31a6 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+31a7 20600000 rtn 
+
+app_event_exit_sniff:
+31a8 6fe14793 fetch 2 ,mem_ui_state_map 
+31a9 793ffe05 set0 ui_state_bt_sniff ,pdata 
+31aa 67e14793 store 2 ,mem_ui_state_map 
+31ab 20600000 rtn 
+
+app_le_event_bb_connected:
+31ac 6fe14793 fetch 2 ,mem_ui_state_map 
+31ad 79207e09 set1 ui_state_ble_connected ,pdata 
+31ae 67e14793 store 2 ,mem_ui_state_map 
+31af 20600000 rtn 
+
+app_le_event_bb_disconn:
+31b0 70443800 jam 0 ,mem_le_l2cap_att_states 
+31b1 6fe14793 fetch 2 ,mem_ui_state_map 
+31b2 793ffe09 set0 ui_state_ble_connected ,pdata 
+31b3 67e14793 store 2 ,mem_ui_state_map 
+31b4 2020326a branch app_lpm_mult_disable 
+
+app_bb_event_hid_connected:
+31b5 6fe14793 fetch 2 ,mem_ui_state_map 
+31b6 79207e02 set1 ui_state_bt_hid_conn ,pdata 
+31b7 67e14793 store 2 ,mem_ui_state_map 
+31b8 20600000 rtn 
+
+app_evt_button_long_pressed:
+31b9 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+31ba 79207e00 set1 app_disc_by_button ,pdata 
+31bb 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+31bc 20600000 rtn 
+
+app_event_ml2cap_conn_refused:
+31bd 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+31be 79207e08 set1 app_disc_l2cap_refused ,pdata 
+31bf 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+31c0 2020323b branch app_bt_disconnect 
+
+app_evt_timer:
+31c1 67e0830d store 1 ,mem_app_evt_timer_count 
+
+app_evt_100ms_loop:
+31c2 44d7c015 bpatch patch15_7 ,mem_patch15 
+31c3 6fe0830d fetch 1 ,mem_app_evt_timer_count 
+31c4 207a0000 rtn blank 
+31c5 1fe0ffff increase -1 ,pdata 
+31c6 67e0830d store 1 ,mem_app_evt_timer_count 
+31c7 204076fb call ui_button_polling 
+31c8 20403228 call app_lpm_wake_auto_lock_timer 
+31c9 204031e9 call app_unsniff_delay_timer 
+31ca 204031ef call app_discovery_timer 
+31cb 20405bcb call flash_write_spi_sm_timer 
+31cc 6fe14472 fetch 2 ,mem_cb_event_timer 
+31cd 20407d47 call callback_func 
+31ce 202031c2 branch app_evt_100ms_loop 
+
+timer_single_step:
+31cf efe08013 ifetch 1 ,regc 
+31d0 207a0000 rtn blank 
+31d1 1fe0ffff pincrease -1 
+31d2 e7e08013 istore 1 ,regc 
+31d3 247a0000 nrtn blank 
+31d4 1a427e00 copy regb ,pdata 
+31d5 20207d47 branch callback_func 
+
+timer_single_step_2b:
+31d6 efe10013 ifetch 2 ,regc 
+31d7 207a0000 rtn blank 
+31d8 1fe0ffff pincrease -1 
+31d9 e7e10013 istore 2 ,regc 
+31da 247a0000 nrtn blank 
+31db 1a427e00 copy regb ,pdata 
+31dc 20207d47 branch callback_func 
+
+app_power_timer:
+31dd 684944cf fetcht 2 ,mem_power_param_ptr 
+31de 1840a601 add temp ,power_timer_offset ,regc 
+31df da4031e1 arg app_power_timer_timeout ,regb 
+31e0 202031cf branch timer_single_step 
+
+app_power_timer_timeout:
+31e1 20403280 call app_got_power_state_common 
+31e2 c000b1e4 beq power_starting ,app_enter_power_stanby_state 
+
+app_enter_power_off_state:
+31e3 2020325c branch app_enter_hibernate 
+
+app_enter_power_stanby_state:
+31e4 58000002 setarg power_standby 
+31e5 e7e08013 istore 1 ,regc 
+31e6 1840a408 add temp ,power_standby_cb_offset ,regb 
+
+app_power_cb_common:
+31e7 efe10012 ifetch 2 ,regb 
+31e8 20207d47 branch callback_func 
+
+app_unsniff_delay_timer:
+31e9 da604480 arg mem_unsniff2sniff_timer_count ,regc 
+31ea da4031ec arg app_unsniff_delay_timeout ,regb 
+31eb 202031cf branch timer_single_step 
+
+app_unsniff_delay_timeout:
+31ec 20400a5f call context_check_idle 
+31ed 2022b260 branch app_bt_enter_sniff ,zero 
+31ee 20600000 rtn 
+
+app_discovery_timer:
+31ef da60478f arg mem_discovery_timeout_timer_count ,regc 
+31f0 da4031f2 arg app_discovery_timeout ,regb 
+31f1 202031d6 branch timer_single_step_2b 
+
+app_discovery_timeout:
+31f2 20403242 call app_bt_stop_discovery 
+31f3 2040325a call app_led_off 
+31f4 6fe1446c fetch 2 ,mem_cb_discovry_timeout 
+31f5 20207d47 branch callback_func 
+
+app_bb_event_reconn_failed:
+31f6 2040320e call app_disconn_reason_flag_clear 
+
+app_clear_reconnect_flag:
+31f7 6fe14793 fetch 2 ,mem_ui_state_map 
+31f8 793ffe07 set0 ui_state_bt_reconnect ,pdata 
+31f9 67e14793 store 2 ,mem_ui_state_map 
+31fa 20600000 rtn 
+
+app_bb_event_bb_disconn:
+31fb 70448000 jam 0 ,mem_unsniff2sniff_timer_count 
+31fc 6fe14793 fetch 2 ,mem_ui_state_map 
+31fd c283b200 bbit1 ui_state_bt_reconnect ,app_bb_event_bb_reconn_disconn 
+31fe 2fec0001 isolate0 ui_state_bt_setup_complete ,pdata 
+31ff 2040b15e call app_discard_event ,true 
+
+app_bb_event_bb_reconn_disconn:
+3200 44d84016 bpatch patch16_0 ,mem_patch16 
+3201 6fe14793 fetch 2 ,mem_ui_state_map 
+3202 793ffe00 set0 ui_state_bt_connected ,pdata 
+3203 793ffe01 set0 ui_state_bt_setup_complete ,pdata 
+3204 793ffe02 set0 ui_state_bt_hid_conn ,pdata 
+3205 793ffe03 set0 ui_state_bt_hid_handshake ,pdata 
+3206 793ffe07 set0 ui_state_bt_reconnect ,pdata 
+3207 67e14793 store 2 ,mem_ui_state_map 
+3208 2020326a branch app_lpm_mult_disable 
+
+app_bb_hibernate:
+3209 2040320b call app_disconn_reason_clear 
+320a 2020325c branch app_enter_hibernate 
+
+app_disconn_reason_clear:
+320b 58000000 setarg 0 
+320c 67e14483 store app_disc_rsn_size ,mem_app_disconn_reason 
+320d 20600000 rtn 
+
+app_disconn_reason_flag_clear:
+320e 58000000 setarg 0 
+320f 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3210 20600000 rtn 
+
+app_disconn_reason_collect_bt:
+3211 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3212 67e14483 store app_disc_rsn_size ,mem_app_disconn_reason 
+3213 58000000 setarg 0 
+3214 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3215 20600000 rtn 
+
+app_disconn_reason_collect_ble:
+3216 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+3217 79207e07 set1 app_disc_ble ,pdata 
+3218 67e14483 store app_disc_rsn_size ,mem_app_disconn_reason 
+3219 58000000 setarg 0 
+321a 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+321b 20600000 rtn 
+
+app_check_sniff:
+321c 6fe0c793 fetch 1 ,mem_ui_state_map 
+321d 2feffe05 isolate1 ui_state_bt_sniff ,pdata 
+321e 20600000 rtn 
+
+app_start_auto_sniff:
+321f 6fe0c648 fetch 1 ,mem_unsniff2sniff_timer 
+3220 67e0c480 store 1 ,mem_unsniff2sniff_timer_count 
+3221 20600000 rtn 
+
+app_get_lpm_wake_lock:
+3222 d8e00009 arg wake_lock_app ,queue 
+3223 20201547 branch lpm_get_wake_lock 
+
+app_put_lpm_wake_lock:
+3224 d8e00009 arg wake_lock_app ,queue 
+3225 2020154b branch lpm_put_wake_lock 
+
+app_lpm_wake_auto_lock:
+3226 70448105 jam lpm_wake_up_delay_timer ,mem_wake_up_delay_timer 
+3227 20203222 branch app_get_lpm_wake_lock 
+
+app_lpm_wake_auto_lock_timer:
+3228 da604481 arg mem_wake_up_delay_timer ,regc 
+3229 da403224 arg app_put_lpm_wake_lock ,regb 
+322a 202031cf branch timer_single_step 
+
+app_l2cap_flow_control_enable:
+322b 7045fa01 jam l2cap_flow_ctrl_enable ,mem_l2cap_flow_ctrl_flag 
+322c 20600000 rtn 
+
+app_l2cap_flow_control_disable:
+322d 7045fa00 jam l2cap_flow_ctrl_disable ,mem_l2cap_flow_ctrl_flag 
+322e 20600000 rtn 
+
+app_bt_set_pincode:
+322f 70095b0a jam bt_cmd_set_pin_code ,mem_fifo_temp 
+3230 202077b0 branch ui_ipc_send_cmd 
+
+app_bt_role_switch:
+3231 70095b1d jam bt_cmd_role_switch ,mem_fifo_temp 
+3232 202077b0 branch ui_ipc_send_cmd 
+
+app_bt_start_reconnect:
+3233 44d8c016 bpatch patch16_1 ,mem_patch16 
+3234 6fe0c482 fetch 1 ,mem_app_connection_options 
+3235 67e080bc store 1 ,mem_connection_options 
+3236 70030b01 jam app_flag_reconnect ,mem_reconnect_flag 
+3237 70095b03 jam bt_cmd_reconnect ,mem_fifo_temp 
+3238 202077b0 branch ui_ipc_send_cmd 
+
+app_bt_reconnect_cancel:
+3239 70095b1e jam bt_cmd_bb_reconn_cancel ,mem_fifo_temp 
+323a 202077b0 branch ui_ipc_send_cmd 
+
+app_bt_disconnect:
+323b 70095b04 jam bt_cmd_disconnect ,mem_fifo_temp 
+323c 202077b0 branch ui_ipc_send_cmd 
+
+app_bt_start_discovery_short:
+323d 6fe14798 fetch 2 ,mem_discovery_timeout 
+323e 67e1478f store 2 ,mem_discovery_timeout_timer_count 
+
+app_bt_start_discovery_led_blink:
+323f 20403256 call app_led_start_blink 
+
+app_bt_start_discovery:
+3240 70095b01 jam bt_cmd_start_discovery ,mem_fifo_temp 
+3241 202077b0 branch ui_ipc_send_cmd 
+
+app_bt_stop_discovery:
+3242 58000000 setarg 0 
+3243 67e1478f store 2 ,mem_discovery_timeout_timer_count 
+3244 70095b02 jam bt_cmd_stop_discovery ,mem_fifo_temp 
+3245 202077b0 branch ui_ipc_send_cmd 
+
+app_ble_start_direct_adv:
+3246 70095b0f jam bt_cmd_start_direct_adv ,mem_fifo_temp 
+3247 202077b0 branch ui_ipc_send_cmd 
+
+app_ble_stop_direct_adv:
+3248 70095b10 jam bt_cmd_stop_direct_adv ,mem_fifo_temp 
+3249 202077b0 branch ui_ipc_send_cmd 
+
+app_ble_stop_adv:
+324a 70095b0e jam bt_cmd_stop_adv ,mem_fifo_temp 
+324b 202077b0 branch ui_ipc_send_cmd 
+
+app_ble_start_adv:
+324c 70095b0d jam bt_cmd_start_adv ,mem_fifo_temp 
+324d 202077b0 branch ui_ipc_send_cmd 
+
+app_ble_start_scan:
+324e 70095b17 jam bt_cmd_le_start_scan ,mem_fifo_temp 
+324f 202077b0 branch ui_ipc_send_cmd 
+
+app_ble_stop_scan:
+3250 70095b18 jam bt_cmd_le_stop_scan ,mem_fifo_temp 
+3251 202077b0 branch ui_ipc_send_cmd 
+
+app_ble_start_conn:
+3252 70095b16 jam bt_cmd_le_start_conn ,mem_fifo_temp 
+3253 202077b0 branch ui_ipc_send_cmd 
+
+app_ble_disconnect:
+3254 70095b11 jam bt_cmd_le_disconnect ,mem_fifo_temp 
+3255 202077b0 branch ui_ipc_send_cmd 
+
+app_led_start_blink:
+3256 70095b15 jam bt_cmd_led_blink ,mem_fifo_temp 
+3257 202077b0 branch ui_ipc_send_cmd 
+
+app_led_on:
+3258 70095b14 jam bt_cmd_led_on ,mem_fifo_temp 
+3259 202077b0 branch ui_ipc_send_cmd 
+
+app_led_stop_blink:
+
+app_led_off:
+325a 70095b13 jam bt_cmd_led_off ,mem_fifo_temp 
+325b 202077b0 branch ui_ipc_send_cmd 
+
+app_enter_hibernate:
+325c 70095b19 jam bt_cmd_enter_hibernate ,mem_fifo_temp 
+325d 202077b0 branch ui_ipc_send_cmd 
+
+app_bt_sniff_exit:
+325e 70095b06 jam bt_cmd_exit_sniff ,mem_fifo_temp 
+325f 202077b0 branch ui_ipc_send_cmd 
+
+app_bt_enter_sniff:
+3260 70095b05 jam bt_cmd_enter_sniff ,mem_fifo_temp 
+3261 202077b0 branch ui_ipc_send_cmd 
+
+app_ble_store_reconn_info:
+3262 70095b1f jam bt_cmd_store_reconn_info_le ,mem_fifo_temp 
+3263 202077b0 branch ui_ipc_send_cmd 
+
+app_bt_store_reconn_info:
+3264 70095b20 jam bt_cmd_store_reconn_info_bt ,mem_fifo_temp 
+3265 202077b0 branch ui_ipc_send_cmd 
+
+app_store_reconn_info:
+3266 70095b25 jam bt_cmd_store_reconn_info ,mem_fifo_temp 
+3267 202077b0 branch ui_ipc_send_cmd 
+
+app_lpm_mult_enable:
+3268 7920000d set1 mark_lpm_mult_enable ,mark 
+3269 20600000 rtn 
+
+app_lpm_mult_disable:
+326a 793f800d set0 mark_lpm_mult_enable ,mark 
+326b 20600000 rtn 
+
+app_button_long_pressed:
+326c 20403280 call app_got_power_state_common 
+326d c0013276 beq power_standby ,app_power_shutting_down 
+
+app_power_starting:
+326e 58000001 setarg power_starting 
+326f e7e08013 istore 1 ,regc 
+3270 1840a203 add temp ,power_starting_timeout_offset ,rega 
+3271 1840a406 add temp ,power_starting_cb_offset ,regb 
+
+app_power_common:
+3272 e8408011 ifetcht 1 ,rega 
+3273 1a60a601 increase 1 ,regc 
+3274 e0408013 istoret 1 ,regc 
+3275 202031e7 branch app_power_cb_common 
+
+app_power_shutting_down:
+3276 58000000 setarg power_off 
+3277 e7e08013 istore 1 ,regc 
+3278 6fe14793 fetch 2 ,mem_ui_state_map 
+3279 c304b27c bbit0 ui_state_ble_connected ,app_power_off_end 
+327a 20402115 call le_send_terminate_ind_user_terminated 
+327b 20403254 call app_ble_disconnect 
+
+app_power_off_end:
+327c 684944cf fetcht 2 ,mem_power_param_ptr 
+327d 1840a202 add temp ,power_off_timeout_offset ,rega 
+327e 1840a404 add temp ,power_off_cb_offset ,regb 
+327f 20203272 branch app_power_common 
+
+app_got_power_state_common:
+3280 684944cf fetcht 2 ,mem_power_param_ptr 
+3281 1840a600 add temp ,power_state_offset ,regc 
+3282 efe08013 ifetch 1 ,regc 
+3283 20600000 rtn 
+
+app_event_button_up:
+3284 20403280 call app_got_power_state_common 
+3285 c0803287 bne power_off ,app_power_release 
+3286 2020325c branch app_enter_hibernate 
+
+app_power_release:
+3287 1840a40a add temp ,ui_butten_up_cb_offset ,regb 
+3288 202031e7 branch app_power_cb_common 
+
+app_hid_connected:
+3289 58000002 setarg hid_handshake_timeout 
+328a 67e0c791 store 1 ,mem_hid_handshake_timer_count 
+328b 20600000 rtn 
+
+antilost_init:
+328c 20758000 rtn wake 
+328d 580032bb setarg antilost_le_before_hibernate 
+328e 67e14460 store 2 ,mem_cb_before_hibernate 
+328f 5800608a setarg keyscan_process_lpm_before 
+3290 67e14462 store 2 ,mem_cb_before_lpm 
+3291 58003368 setarg antilost_idle_process 
+3292 67e14468 store 2 ,mem_cb_idle_process 
+3293 58003367 setarg antilost_le_conn_process 
+3294 67e14464 store 2 ,mem_cb_le_process 
+3295 580032d6 setarg antilost_bb_event_process 
+3296 67e1446a store 2 ,mem_cb_bb_event_process 
+3297 58003313 setarg antilost_le_bb_event_timer 
+3298 67e14472 store 2 ,mem_cb_event_timer 
+3299 580032bd setarg antilost_le_notification 
+329a 67e14470 store 2 ,mem_cb_ble_transmit 
+329b 580032c8 setarg antilost_lpm_lock_process 
+329c 67e1445e store 2 ,mem_cb_check_wakelock 
+329d 58003374 setarg antilost_le_receive_data_process 
+329e 67e1446e store 2 ,mem_cb_att_write 
+329f 44d94016 bpatch patch16_2 ,mem_patch16 
+32a0 2040340d call antilost_buzzer_pwm_init 
+32a1 204032b9 call antilost_set_ble_version 
+32a2 20406065 call keyscan_key_init 
+32a3 2040341f call antilost_adc_init 
+32a4 20407726 call ui_led_init_global 
+32a5 204076f1 call ui_button_init 
+32a6 5800337e setarg antilost_key_up_down 
+32a7 67e14877 store 2 ,mem_cb_antl_key 
+32a8 5800336f setarg antilost_power_off_cb 
+32a9 67e1486e store 2 ,mem_antl_power_off_cb 
+32aa 5800336b setarg antilost_power_starting_cb 
+32ab 67e14870 store 2 ,mem_antl_power_starting_cb 
+32ac 580032c4 setarg antilost_power_standby_cb 
+32ad 67e14872 store 2 ,mem_antl_power_standby_cb 
+32ae 58003414 setarg antilost_led_on_cb 
+32af 67e147ba store 2 ,mem_antl_led_cb_on 
+32b0 58003416 setarg antilost_led_off_cb 
+32b1 67e147bc store 2 ,mem_antl_led_cb_off 
+32b2 5800341b setarg antilost_buzzer_on 
+32b3 67e147c5 store 2 ,mem_antl_buzzer_cb_on 
+32b4 58003418 setarg antilost_buzzer_off 
+32b5 67e147c7 store 2 ,mem_antl_buzzer_cb_off 
+32b6 6fe14793 fetch 2 ,mem_ui_state_map 
+32b7 c3860000 rtnbit1 ui_state_btn_down 
+32b8 2020325c branch app_enter_hibernate 
+
+antilost_set_ble_version:
+32b9 7045fe07 jam 7 ,mem_lmp_version 
+32ba 20600000 rtn 
+
+antilost_le_before_hibernate:
+32bb 204033f8 call antilost_led_buzzer_stop_blink 
+32bc 2020325c branch app_enter_hibernate 
+
+antilost_le_notification:
+32bd 20401b05 call le_fifo_check_nearly_full 
+32be 247a0000 nrtn blank 
+32bf da2009d2 arg mem_temp_block5 ,rega 
+32c0 2040788c call queue_pop 
+32c1 24740000 nrtn user 
+32c2 d8c009d2 arg mem_temp_block5 ,contr 
+32c3 20204b37 branch le_send_notify_from_list 
+
+antilost_power_standby_cb:
+32c4 6fe148a8 fetch 2 ,mem_antl_le_sleep_timeout 
+32c5 67e148a2 store 2 ,mem_antl_le_sleep_timer 
+32c6 70486401 jam 1 ,mem_antl_key_scan_enable 
+32c7 20203401 branch antilost_fast_adv_start 
+
+antilost_lpm_lock_process:
+32c8 6fe0c8ae fetch 1 ,mem_antl_key_state 
+32c9 c000b2d1 beq 1 ,antilost_lpm_ctrl_for_led_buzzer 
+32ca 6fe14793 fetch 2 ,mem_ui_state_map 
+32cb c304b2d1 bbit0 ui_state_ble_connected ,antilost_lpm_ctrl_for_led_buzzer 
+32cc 6fe0c8af fetch 1 ,mem_antl_lost_mode 
+32cd c000b222 beq 1 ,app_get_lpm_wake_lock 
+32ce 6fe0c811 fetch 1 ,mem_antl_queue_curr_num 
+32cf 243a3222 nbranch app_get_lpm_wake_lock ,blank 
+32d0 20203224 branch app_put_lpm_wake_lock 
+
+antilost_lpm_ctrl_for_led_buzzer:
+32d1 6fe0c8ac fetch 1 ,mem_antl_led_state 
+32d2 6848c8ad fetcht 1 ,mem_antl_buzzer_state 
+32d3 9841fe00 ior temp ,pdata 
+32d4 c000b222 beq 1 ,app_get_lpm_wake_lock 
+32d5 20203224 branch app_put_lpm_wake_lock 
+
+antilost_bb_event_process:
+32d6 1a627e00 copy regc ,pdata 
+32d7 c016b284 beq bt_evt_button_up ,app_event_button_up 
+32d8 c008326c beq bt_evt_button_long_pressed ,app_button_long_pressed 
+32d9 c00a3350 beq bt_evt_le_connected ,antilost_le_process_conn 
+32da c00ab359 beq bt_evt_le_disconnected ,antilost_le_process_discon 
+32db c02032de beq bt_evt_le_parse_conn_papa_update_rsp ,antilost_le_conn_param_update_rsp_recieved 
+32dc c02232e8 beq bt_evt_le_parse_conn_param_accepted ,antilost_le_conn_param_accepted 
+32dd 20600000 rtn 
+
+antilost_le_conn_param_update_rsp_recieved:
+32de 204032e4 call antilost_le_conn_param_updata_judge 
+32df 6fe143de fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+32e0 c000b2ee beq ble_signaling_connect_parameter_update_rejected ,antilost_le_conn_param_rejected 
+
+antilost_le_conn_param_updata_procedure_sucsess:
+32e1 70489b02 jam conn_param_updata_procedure_complete ,mem_antl_conn_updata_procedure_state 
+32e2 7048a03c jam 60 ,mem_antl_conn_update_timer 
+32e3 20600000 rtn 
+
+antilost_le_conn_param_updata_judge:
+32e4 6fe08287 fetch 1 ,mem_le_state 
+32e5 c3828000 rtnbit1 lestate_update_param 
+32e6 704a6701 jam 1 ,mem_lestate_update_param_flag 
+32e7 20600000 rtn 
+
+antilost_le_conn_param_accepted:
+32e8 6fe0ca67 fetch 1 ,mem_lestate_update_param_flag 
+32e9 207a0000 rtn blank 
+32ea 704a6700 jam 0 ,mem_lestate_update_param_flag 
+32eb 6fe102c3 fetch 2 ,mem_le_new_connslavelatency 
+32ec 203a3303 branch antilost_master_nonsupport_latency ,blank 
+32ed 20600000 rtn 
+
+antilost_le_conn_param_rejected:
+32ee 6fe14379 fetch 2 ,mem_le_latency 
+32ef 203a3301 branch antilost_conn_param_updata_procedure_faild ,blank 
+
+antilost_conn_param_retransimiting:
+32f0 70489b01 jam conn_param_updata_procedure_starting ,mem_antl_conn_updata_procedure_state 
+32f1 684948c5 fetcht 2 ,mem_interval_increment 
+32f2 6fe14375 fetch 2 ,mem_le_interval_min 
+32f3 9840fe00 iadd temp ,pdata 
+32f4 67e14375 store 2 ,mem_le_interval_min 
+32f5 1fe22200 copy pdata ,rega 
+32f6 6fe14377 fetch 2 ,mem_le_interval_max 
+32f7 9840fe00 iadd temp ,pdata 
+32f8 67e14377 store 2 ,mem_le_interval_max 
+32f9 9a20fe00 iadd rega ,pdata 
+32fa 1fe30400 rshift pdata ,temp 
+32fb 6fe148d1 fetch 2 ,mem_antl_le_unnormal_interval_max 
+32fc 9846fc00 idiv temp 
+32fd 20407d2e call get_div_result 
+32fe 67e14379 store 2 ,mem_le_latency 
+32ff 7048a101 jam 1 ,mem_antl_send_updata_le_param_timer 
+3300 20600000 rtn 
+
+antilost_conn_param_updata_procedure_faild:
+3301 70489b03 jam conn_param_updata_procedure_faild ,mem_antl_conn_updata_procedure_state 
+3302 20600000 rtn 
+
+antilost_master_nonsupport_latency:
+3303 70417700 jam 0 ,mem_lpm_mult 
+3304 7048a100 jam 0 ,mem_antl_send_updata_le_param_timer 
+3305 6fe102c1 fetch 2 ,mem_le_new_conninterval 
+3306 684948cf fetcht 2 ,mem_antl_le_unnormal_interval_min 
+3307 98467c00 isub temp ,null 
+3308 79212200 setflag positive ,0 ,rega 
+3309 6fe148d1 fetch 2 ,mem_antl_le_unnormal_interval_max 
+330a 684902c1 fetcht 2 ,mem_le_new_conninterval 
+330b 98467e00 isub temp ,pdata 
+330c 79212201 setflag positive ,1 ,rega 
+330d 2a200603 compare 0x03 ,rega ,0x03 
+330e 20608000 rtn true 
+330f 6fe448cf fetch 8 ,mem_antl_le_unnormal_interval_min 
+3310 67e44375 store 8 ,mem_le_interval_min 
+3311 7048a101 jam 1 ,mem_antl_send_updata_le_param_timer 
+3312 20600000 rtn 
+
+antilost_le_bb_event_timer:
+3313 204031dd call app_power_timer 
+3314 2040332a call antilost_double_click_timer 
+3315 2040332f call antilost_le_fast_adv_timer 
+3316 20403346 call antilost_le_sleep_timer 
+3317 2040333b call antilost_app_updata_le_param_timer 
+3318 20403335 call antilost_conn_update_timer 
+3319 20403323 call antilost_conn_battery_send_timer 
+331a 2040331c call antilost_disconn_buzzer_on_timer 
+331b 2020334a branch antilost_adc_check_timer 
+
+antilost_disconn_buzzer_on_timer:
+331c da604a69 arg mem_antl_disconn_buzzer_on_timer ,regc 
+331d da40331f arg antilost_disconn_buzzer_off ,regb 
+331e 202031d6 branch timer_single_step_2b 
+
+antilost_disconn_buzzer_off:
+331f da200001 arg 1 ,rega 
+3320 20407737 call ui_led_blink_stop_global 
+3321 6fe148b2 fetch 2 ,mem_buzzer_pwm_conf 
+3322 2020612c branch pwm_disable 
+
+antilost_conn_battery_send_timer:
+3323 da604a68 arg mem_antilost_conn_battery_send_timer ,regc 
+3324 da403326 arg antilost_conn_battery_send ,regb 
+3325 202031cf branch timer_single_step 
+
+antilost_conn_battery_send:
+3326 20403421 call antilost_battery_process 
+3327 20403421 call antilost_battery_process 
+3328 20403421 call antilost_battery_process 
+3329 2020342b branch antilost_battery_calculate_end 
+
+antilost_double_click_timer:
+332a da6048aa arg mem_double_click_timer ,regc 
+332b da40332d arg antilost_double_click_timeout ,regb 
+332c 202031cf branch timer_single_step 
+
+antilost_double_click_timeout:
+332d 7048ab00 jam 0 ,mem_butten_click_cnt 
+332e 20600000 rtn 
+
+antilost_le_fast_adv_timer:
+332f da6048a4 arg mem_antl_fast_adv_timer ,regc 
+3330 da403332 arg antilost_le_fast_adv_timeout ,regb 
+3331 202031d6 branch timer_single_step_2b 
+
+antilost_le_fast_adv_timeout:
+3332 da6047d0 arg mem_antl_slow_adv_led_style ,regc 
+3333 da4047af arg mem_antl_slow_adv_lpm_interval ,regb 
+3334 20203403 branch antilost_adv_start_common 
+
+antilost_conn_update_timer:
+3335 da6048a0 arg mem_antl_conn_update_timer ,regc 
+3336 da403338 arg antilost_conn_update_timer_time_out ,regb 
+3337 202031cf branch timer_single_step 
+
+antilost_conn_update_timer_time_out:
+3338 6fe14379 fetch 2 ,mem_le_latency 
+3339 67e0c177 store 1 ,mem_lpm_mult 
+333a 20600000 rtn 
+
+antilost_app_updata_le_param_timer:
+333b da6048a1 arg mem_antl_send_updata_le_param_timer ,regc 
+333c da40333e arg antilost_app_updata_le_param_timeout ,regb 
+333d 202031cf branch timer_single_step 
+
+antilost_app_updata_le_param_timeout:
+333e 6fe08287 fetch 1 ,mem_le_state 
+333f 2fe0c000 compare 0 ,pdata ,0x60 
+3340 2420b344 nbranch antilost_wait_for_updata_param_instant_expire ,true 
+3341 70489b01 jam conn_param_updata_procedure_starting ,mem_antl_conn_updata_procedure_state 
+3342 20403268 call app_lpm_mult_enable 
+3343 20201ee5 branch le_l2cap_tx_update_req 
+
+antilost_wait_for_updata_param_instant_expire:
+3344 7048a101 jam 1 ,mem_antl_send_updata_le_param_timer 
+3345 20600000 rtn 
+
+antilost_le_sleep_timer:
+3346 da6048a2 arg mem_antl_le_sleep_timer ,regc 
+3347 da403349 arg antilost_le_sleep_timer_timeout ,regb 
+3348 202031d6 branch timer_single_step_2b 
+
+antilost_le_sleep_timer_timeout:
+3349 2020326c branch app_button_long_pressed 
+
+antilost_adc_check_timer:
+334a da60489e arg mem_adc_timer ,regc 
+334b da40334d arg antilost_adc_check_timer_timeout ,regb 
+334c 202031d6 branch timer_single_step_2b 
+
+antilost_adc_check_timer_timeout:
+334d 6fe148b8 fetch 2 ,mem_adc_timeout 
+334e 67e1489e store 2 ,mem_adc_timer 
+334f 20203421 branch antilost_battery_process 
+
+antilost_le_process_conn:
+3350 6fe148b8 fetch 2 ,mem_adc_timeout 
+3351 67e1489e store 2 ,mem_adc_timer 
+3352 58000000 setarg 0 
+3353 67e148a4 store 2 ,mem_antl_fast_adv_timer 
+3354 67e148a2 store 2 ,mem_antl_le_sleep_timer 
+3355 204033cf call antilost_alert_off 
+3356 204033f8 call antilost_led_buzzer_stop_blink 
+3357 70417700 jam 0 ,mem_lpm_mult 
+3358 2020324a branch app_ble_stop_adv 
+
+antilost_le_process_discon:
+3359 58000000 setarg 0 
+335a 67e2489e store 4 ,mem_adc_timer 
+335b 67e1c89b store 3 ,mem_antl_conn_updata_procedure_state 
+335c 67e143de store 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+335d 7048b101 jam 1 ,mem_alarm_config_notfy_cnt 
+335e 6fe148a8 fetch 2 ,mem_antl_le_sleep_timeout 
+335f 67e148a2 store 2 ,mem_antl_le_sleep_timer 
+3360 6fe14a6b fetch 2 ,mem_antl_disconn_buzzer_on_timeout 
+3361 67e14a69 store 2 ,mem_antl_disconn_buzzer_on_timer 
+3362 20407870 call queue_init 
+3363 6fe0c86a fetch 1 ,mem_antl_power_state 
+3364 c1000000 rtneq power_off 
+3365 20403401 call antilost_fast_adv_start 
+3366 202033e1 branch antilost_on_off_alarm_after_disconn 
+
+antilost_le_conn_process:
+3367 2020337b branch antilost_key_process 
+
+antilost_idle_process:
+3368 6fe0c86a fetch 1 ,mem_antl_power_state 
+3369 c1810000 rtnne power_standby 
+336a 2020337b branch antilost_key_process 
+
+antilost_power_starting_cb:
+336b da6047de arg mem_antl_power_starting_buzzer_style ,regc 
+336c 204033f4 call antilost_buzzer_configuration 
+336d da6047d7 arg mem_antl_power_starting_led_style ,regc 
+
+antilost_power_common:
+336e 202033f6 branch antilost_led_configuration 
+
+antilost_power_off_cb:
+336f 70442a00 jam off ,mem_le_adv_enable 
+3370 da6047ec arg mem_antl_power_off_buzzer_style ,regc 
+3371 204033f4 call antilost_buzzer_configuration 
+3372 da6047e5 arg mem_antl_power_off_led_style ,regc 
+3373 2020336e branch antilost_power_common 
+
+antilost_le_receive_data_process:
+3374 6fe0c439 fetch 1 ,mem_le_att_opcode 
+3375 c0093377 beq attop_write_request ,antilost_le_parse_att_write_request 
+3376 20600000 rtn 
+
+antilost_le_parse_att_write_request:
+3377 6fe1443a fetch 2 ,mem_le_att_handle 
+3378 c006b3a9 beq new_spec_write_handle ,antilost_cmd_parse_for_application 
+3379 c005b3e4 beq new_spec_notification_enable_handle ,antilost_notify_alarm_config_first_time 
+337a 20600000 rtn 
+
+antilost_key_process:
+337b 6fe0c864 fetch 1 ,mem_antl_key_scan_enable 
+337c 207a0000 rtn blank 
+337d 20206096 branch keyscan_key_process 
+
+antilost_key_up_down:
+337e 1a227e00 copy rega ,pdata 
+337f 203a3383 branch antilost_key_is_up ,blank 
+
+antilost_key_is_down:
+3380 18e27e00 copy queue ,pdata 
+3381 c0003386 beq 0 ,antilost_key0_down 
+3382 20600000 rtn 
+
+antilost_key_is_up:
+3383 18e27e00 copy queue ,pdata 
+3384 c000338e beq 0 ,antilost_key0_up 
+3385 20600000 rtn 
+
+antilost_key0_down:
+3386 7048ae01 jam 1 ,mem_antl_key_state 
+3387 da604808 arg mem_antl_key_buzzer_style ,regc 
+3388 204033f4 call antilost_buzzer_configuration 
+3389 da604801 arg mem_antl_key_led_style ,regc 
+338a 204033f6 call antilost_led_configuration 
+338b 6fe14793 fetch 2 ,mem_ui_state_map 
+338c c304b3a5 bbit0 ui_state_ble_connected ,antilost_butten_down_while_disconn 
+338d 20203394 branch antilost_butten_down_after_conn 
+
+antilost_key0_up:
+338e 7048ae00 jam 0 ,mem_antl_key_state 
+338f 20203390 branch antilost_double_click_timer_init 
+
+antilost_double_click_timer_init:
+3390 6fe0c8ab fetch 1 ,mem_butten_click_cnt 
+3391 c1808000 rtnne 1 
+3392 7048aa05 jam 5 ,mem_double_click_timer 
+3393 20600000 rtn 
+
+antilost_butten_down_after_conn:
+3394 6fe0c8ab fetch 1 ,mem_butten_click_cnt 
+3395 1fe0fe01 pincrease 1 
+3396 67e0c8ab store 1 ,mem_butten_click_cnt 
+3397 c000b39a beq 1 ,antilost_click_once 
+3398 c001339e beq 2 ,antilost_click_twice 
+3399 20600000 rtn 
+
+antilost_click_once:
+339a 204033cf call antilost_alert_off 
+339b 70488201 jam opcode1_butten_click_once ,mem_antl_key0_press + 5 
+339c da60487d arg mem_antl_key0_press ,regc 
+339d 202033b7 branch antilost_prepare_data_and_send 
+
+antilost_click_twice:
+339e 7048ab00 jam 0 ,mem_butten_click_cnt 
+339f 70488202 jam opcode2_butten_double_click ,mem_antl_key0_press + 5 
+33a0 da60487d arg mem_antl_key0_press ,regc 
+33a1 204033b7 call antilost_prepare_data_and_send 
+33a2 6fe0c8af fetch 1 ,mem_antl_lost_mode 
+33a3 c000b3c4 beq 1 ,antilost_alert_on 
+33a4 20600000 rtn 
+
+antilost_butten_down_while_disconn:
+33a5 6fe148a8 fetch 2 ,mem_antl_le_sleep_timeout 
+33a6 67e148a2 store 2 ,mem_antl_le_sleep_timer 
+33a7 204033cf call antilost_alert_off 
+33a8 20203401 branch antilost_fast_adv_start 
+
+antilost_cmd_parse_for_application:
+33a9 44d9c016 bpatch patch16_3 ,mem_patch16 
+33aa 20403540 call le_app_receive_data 
+33ab efe08011 ifetch 1 ,rega 
+33ac c001b3af beq opcode3_antl_start_alram ,antilost_on_of_alram 
+33ad c003b3b3 beq opcode7_antl_config_alram ,antilost_configuration_for_alram 
+33ae 20600000 rtn 
+
+antilost_on_of_alram:
+33af 6fe0c8af fetch 1 ,mem_antl_lost_mode 
+33b0 c00033c4 beq anti_le_alarm_off ,antilost_alert_on 
+33b1 c000b3cf beq anti_le_alarm_on ,antilost_alert_off 
+33b2 20600000 rtn 
+
+antilost_configuration_for_alram:
+33b3 efe08012 ifetch 1 ,regb 
+33b4 c000b3d7 beq 1 ,antilost_set_start_alarm_after_disconn 
+33b5 c00033dc beq 0 ,antilost_set_no_alarm_after_disconn 
+33b6 20600000 rtn 
+
+antilost_prepare_data_and_send:
+33b7 44da4016 bpatch patch16_4 ,mem_patch16 
+33b8 6fe0c89c fetch 1 ,mem_client_characteristic_configuration_descriptor 
+33b9 2feffe00 isolate1 notification_enable_bit ,pdata 
+33ba 24608000 nrtn true 
+33bb 1a608c06 add regc ,6 ,contr 
+33bc efe10006 ifetch 2 ,contr 
+33bd 1ff0fe00 byteswap pdata ,pdata 
+33be 1fe0f205 add pdata ,5 ,loopcnt 
+33bf 1a608c03 add regc ,3 ,contr 
+33c0 20403534 call calc_check_sum_start 
+33c1 e7e08006 istore 1 ,contr 
+33c2 1a622200 copy regc ,rega 
+33c3 20207875 branch queue_push 
+
+antilost_alert_on:
+33c4 6fe0c86a fetch 1 ,mem_antl_power_state 
+33c5 207a0000 rtn blank 
+33c6 7048af01 jam 1 ,mem_antl_lost_mode 
+33c7 da6047fa arg mem_antl_alert_buzzer_stlye ,regc 
+33c8 204033f4 call antilost_buzzer_configuration 
+33c9 da6047f3 arg mem_antl_alert_led_stlye ,regc 
+33ca 204033f6 call antilost_led_configuration 
+33cb 70489104 jam opcode4_current_alarm_state ,mem_antl_key0_release + 5 
+33cc 70489401 jam 1 ,mem_antl_key0_release + 8 
+33cd da60488c arg mem_antl_key0_release ,regc 
+33ce 202033b7 branch antilost_prepare_data_and_send 
+
+antilost_alert_off:
+33cf 6fe0c8af fetch 1 ,mem_antl_lost_mode 
+33d0 207a0000 rtn blank 
+33d1 7048af00 jam 0 ,mem_antl_lost_mode 
+33d2 204033f8 call antilost_led_buzzer_stop_blink 
+33d3 70489104 jam opcode4_current_alarm_state ,mem_antl_key0_release + 5 
+33d4 70489400 jam 0 ,mem_antl_key0_release + 8 
+33d5 da60488c arg mem_antl_key0_release ,regc 
+33d6 202033b7 branch antilost_prepare_data_and_send 
+
+antilost_set_start_alarm_after_disconn:
+33d7 7048b001 jam 1 ,mem_alarm_config 
+33d8 70489107 jam opcode7_antl_config_alram ,mem_antl_key0_release + 5 
+33d9 70489401 jam 1 ,mem_antl_key0_release + 8 
+33da da60488c arg mem_antl_key0_release ,regc 
+33db 202033b7 branch antilost_prepare_data_and_send 
+
+antilost_set_no_alarm_after_disconn:
+33dc 7048b000 jam 0 ,mem_alarm_config 
+33dd 70489107 jam opcode7_antl_config_alram ,mem_antl_key0_release + 5 
+33de 70489400 jam 0 ,mem_antl_key0_release + 8 
+33df da60488c arg mem_antl_key0_release ,regc 
+33e0 202033b7 branch antilost_prepare_data_and_send 
+
+antilost_on_off_alarm_after_disconn:
+33e1 6fe0c8b0 fetch 1 ,mem_alarm_config 
+33e2 207a0000 rtn blank 
+33e3 202033c4 branch antilost_alert_on 
+
+antilost_notify_alarm_config_first_time:
+33e4 efe10011 ifetch 2 ,rega 
+33e5 67e1489c store 2 ,mem_client_characteristic_configuration_descriptor 
+33e6 2feffe00 isolate1 notification_enable_bit ,pdata 
+33e7 24608000 nrtn true 
+33e8 6fe0c8b1 fetch 1 ,mem_alarm_config_notfy_cnt 
+33e9 207a0000 rtn blank 
+33ea 7048b100 jam 0 ,mem_alarm_config_notfy_cnt 
+33eb 6fe448c7 fetch 8 ,mem_antl_le_interval_min 
+33ec 67e44375 store 8 ,mem_le_interval_min 
+33ed 704a6803 jam 3 ,mem_antilost_conn_battery_send_timer 
+33ee 70489107 jam opcode7_antl_config_alram ,mem_antl_key0_release + 5 
+33ef 7048a11e jam 30 ,mem_antl_send_updata_le_param_timer 
+33f0 6fe0c8b0 fetch 1 ,mem_alarm_config 
+33f1 67e0c894 store 1 ,mem_antl_key0_release + 8 
+33f2 da60488c arg mem_antl_key0_release ,regc 
+33f3 202033b7 branch antilost_prepare_data_and_send 
+
+antilost_buzzer_configuration:
+33f4 da200001 arg 1 ,rega 
+33f5 202033f7 branch antilost_configuration_common 
+
+antilost_led_configuration:
+33f6 da200000 arg 0 ,rega 
+
+antilost_configuration_common:
+33f7 202033fe branch antilost_led_buzzer_style_configuration 
+
+antilost_led_buzzer_stop_blink:
+33f8 da200000 arg 0 ,rega 
+33f9 20407737 call ui_led_blink_stop_global 
+33fa da200001 arg 1 ,rega 
+33fb 20407737 call ui_led_blink_stop_global 
+33fc 6fe148b2 fetch 2 ,mem_buzzer_pwm_conf 
+33fd 2020612c branch pwm_disable 
+
+antilost_led_buzzer_style_configuration:
+33fe 20407722 call calc_curr_struct_prt 
+33ff df200007 arg 7 ,loopcnt 
+3400 20207744 branch ui_led_set_style_global + 2 
+
+antilost_fast_adv_start:
+3401 da6047c9 arg mem_antl_fast_adv_led_style ,regc 
+3402 da4047ab arg mem_antl_lpm_interval ,regb 
+
+antilost_adv_start_common:
+3403 20403408 call antilost_adv_interval_lpm_interval_set 
+3404 204033f6 call antilost_led_configuration 
+3405 6fe148a6 fetch 2 ,mem_antl_fast_adv_timeout 
+3406 67e148a4 store 2 ,mem_antl_fast_adv_timer 
+3407 2020324c branch app_ble_start_adv 
+
+antilost_adv_interval_lpm_interval_set:
+3408 efe10012 ifetch 2 ,regb 
+3409 67e14159 store 2 ,mem_lpm_interval 
+340a efe10006 ifetch 2 ,contr 
+340b 67e1442b store 2 ,mem_le_adv_interval 
+340c 20600000 rtn 
+
+antilost_buzzer_pwm_init:
+340d da200000 arg 0 ,rega 
+340e 204060c4 call pwm_init 
+340f 6fe348b2 fetch 6 ,mem_buzzer_pwm_conf 
+3410 67e3095c store 6 ,mem_pdatatemp 
+3411 204060d5 call pwm_out_set 
+3412 6fe148b2 fetch 2 ,mem_buzzer_pwm_conf 
+3413 2020612c branch pwm_disable 
+
+antilost_led_on_cb:
+3414 7048ac01 jam 1 ,mem_antl_led_state 
+3415 20600000 rtn 
+
+antilost_led_off_cb:
+3416 7048ac00 jam 0 ,mem_antl_led_state 
+3417 20600000 rtn 
+
+antilost_buzzer_off:
+3418 7048ad00 jam 0 ,mem_antl_buzzer_state 
+3419 6fe148b2 fetch 2 ,mem_buzzer_pwm_conf 
+341a 2020612c branch pwm_disable 
+
+antilost_buzzer_on:
+341b 7048ad01 jam 1 ,mem_antl_buzzer_state 
+341c 6fe348b2 fetch 6 ,mem_buzzer_pwm_conf 
+341d 67e3095c store 6 ,mem_pdatatemp 
+341e 202060d5 branch pwm_out_set 
+
+antilost_adc_init:
+341f 7044a500 jam 0 ,mem_adc_config_flag 
+3420 20600000 rtn 
+
+antilost_battery_process:
+3421 20406018 call vdd_calculate_by_mode 
+3422 67e148c1 store 2 ,mem_battery_current_voltage 
+3423 da2048bb arg mem_battery_calculate_set ,rega 
+3424 20406045 call adc_bat_percent_lowpower_out 
+3425 67e0c8ba store 1 ,mem_voltage_remain_percent 
+3426 58000065 setarg 0x65 
+3427 c0003430 beq 0 ,antilost_low_battery 
+3428 1fe67c64 sub pdata ,0x64 ,null 
+3429 2421342e nbranch antilost_full_battery ,positive 
+342a 67e0c894 store 1 ,mem_antl_key0_release + 8 
+
+antilost_battery_calculate_end:
+342b 70489105 jam opcode5_batter_information ,mem_antl_key0_release + 5 
+342c da60488c arg mem_antl_key0_release ,regc 
+342d 202033b7 branch antilost_prepare_data_and_send 
+
+antilost_full_battery:
+342e 70489464 jam 100 ,mem_antl_key0_release + 8 
+342f 2020342b branch antilost_battery_calculate_end 
+
+antilost_low_battery:
+3430 2020326c branch app_button_long_pressed 
+
+car_init:
+3431 20406d29 call enable_authrom 
+3432 20758000 rtn wake 
+3433 58003627 setarg car_g24_receive_process 
+3434 67e14891 store 2 ,mem_cb_24g_receive_process 
+3435 58002335 setarg g24_bind_ackpayload_prep 
+3436 67e14893 store 2 ,mem_cb_24g_ackpayload 
+3437 58003659 setarg car_g24_cb_data_device1 
+3438 67e14895 store 2 ,mem_cb_24g_data_device1 
+3439 580034ad setarg car_le_before_hibernate 
+343a 67e14460 store 2 ,mem_cb_before_hibernate 
+343b 580034ad setarg car_le_process_lpm_before 
+343c 67e14462 store 2 ,mem_cb_before_lpm 
+343d 5800325c setarg app_enter_hibernate 
+343e 67e1446c store 2 ,mem_cb_discovry_timeout 
+343f 580034af setarg car_scale_process_idle 
+3440 67e14468 store 2 ,mem_cb_idle_process 
+3441 580034d0 setarg car_scale_process_bb_event 
+3442 67e1446a store 2 ,mem_cb_bb_event_process 
+3443 58003222 setarg app_get_lpm_wake_lock 
+3444 67e1445e store 2 ,mem_cb_check_wakelock 
+3445 5800353a setarg car_le_receive_data 
+3446 67e1446e store 2 ,mem_cb_att_write 
+3447 580034fa setarg car_le_bb_event_timer 
+3448 67e14472 store 2 ,mem_cb_event_timer 
+3449 44dac016 bpatch patch16_5 ,mem_patch16 
+344a 20403493 call car_init_environment 
+344b 204034bd call car_lpm_timer_enable 
+344c 20407870 call queue_init 
+344d 70417702 jam 2 ,mem_lpm_mult 
+344e 704c6800 jam power_on ,mem_car_24g_received_pac 
+344f 6fe0ca2a fetch 1 ,mem_car_config_soft_switch_enable 
+3450 67e0c8f9 store 1 ,mem_car_hard_soft_switch 
+3451 c000345c beq hard_switch ,car_hard_switch_power_on_signal 
+3452 6fe0ca2b fetch 1 ,mem_car_config_soft_switch_gpio 
+3453 67e0c797 store 1 ,mem_ui_button_gpio 
+3454 70442a00 jam off ,mem_le_adv_enable 
+
+car_soft_switch_power_on_init:
+3455 204076f1 call ui_button_init 
+3456 204076fb call ui_button_polling 
+3457 704a5201 jam power_starting ,mem_car_power_state 
+3458 6fe14793 fetch 2 ,mem_ui_state_map 
+3459 c3860000 rtnbit1 ui_state_btn_down 
+345a 2020325c branch app_enter_hibernate 
+
+car_power_off_signal:
+345b 2020347a branch car_ui_led_init 
+
+car_hard_switch_power_on_signal:
+345c 704a5202 jam power_standby ,mem_car_power_state 
+
+car_soft_switch_power_on_signal:
+345d 70442a01 jam on ,mem_le_adv_enable 
+345e 58000020 setarg fast_adv_interval_value_car 
+345f 20404b33 call shutter_ble_adv_interval_set 
+
+car_le_modified_name_adv:
+3460 d8a04302 arg mem_le_name + 7 ,contw 
+3461 6fe0c37d fetch 1 ,mem_le_lap 
+
+car_name_loop:
+3462 1fe104f0 and pdata ,0xF0 ,temp 
+3463 18518400 rshift4 temp ,temp 
+3464 20403474 call car_hex_to_ascii 
+3465 e0408005 istoret 1 ,contw 
+3466 1fe1040f and pdata ,0x0F ,temp 
+3467 20403474 call car_hex_to_ascii 
+3468 e0408005 istoret 1 ,contw 
+3469 20401a39 call le_modified_name_att_list 
+346a 6848c2fa fetcht 1 ,mem_le_name_len 
+346b 18427200 copy temp ,loopcnt 
+346c d8a043ed arg mem_le_adv_data + 2 ,contw 
+346d d8c042fb arg mem_le_name ,contr 
+346e 20407ca1 call memcpy 
+
+car_le_modified_name_scan:
+346f 6848c2fa fetcht 1 ,mem_le_name_len 
+3470 18427200 copy temp ,loopcnt 
+3471 d8a0440d arg mem_le_scan_data + 2 ,contw 
+3472 d8c042fb arg mem_le_name ,contr 
+3473 20207ca1 branch memcpy 
+
+car_hex_to_ascii:
+3474 18467c09 sub temp ,9 ,null 
+3475 20213478 branch car_hex_num ,positive 
+3476 18408437 add temp ,55 ,temp 
+3477 20600000 rtn 
+
+car_hex_num:
+3478 18408430 add temp ,48 ,temp 
+3479 20600000 rtn 
+
+car_ui_led_init:
+347a 6fe0ca1f fetch 1 ,mem_car_config_blood_led1_gpio 
+347b c0ffb48c bne invalid_pin_num ,car_blood_led_gpio_set 
+
+car_ui_led_init_1:
+347c 6fe0ca1d fetch 1 ,mem_car_config_pairing_led_gpio 
+347d c0ffb48f bne invalid_pin_num ,car_pairing_led_gpio_set 
+
+car_ui_led_init_2:
+347e 6fe0ca28 fetch 1 ,mem_car_config_low_voltage_led_gpio 
+347f c0ffb491 bne invalid_pin_num ,car_low_voltage_led_gpio_set 
+
+car_ui_led_init_3:
+3480 6fe0c98b fetch 1 ,mem_car_led_num 
+3481 1fe27200 copy pdata ,loopcnt 
+3482 5800498c setarg mem_car_led_map 
+3483 1fe22200 copy pdata ,rega 
+
+car_in_lp1:
+3484 1a220c00 copy rega ,contr 
+3485 efe08006 ifetch 1 ,contr 
+3486 18c22200 copy contr ,rega 
+3487 c07fb48a beq invalid_pin_num ,car_in_lp1_end 
+3488 1fe20400 copy pdata ,temp 
+3489 20405f8d call gpio_config_output 
+
+car_in_lp1_end:
+348a c2003484 loop car_in_lp1 
+
+car_ui_led_init_end:
+348b 20600000 rtn 
+
+car_blood_led_gpio_set:
+348c 6fe44a1f fetch 8 ,mem_car_config_blood_led1_gpio 
+348d 67e4498e store 8 ,mem_car_led_map + 2 
+348e 2020347c branch car_ui_led_init_1 
+
+car_pairing_led_gpio_set:
+348f 67e0c98c store 1 ,mem_car_led_map 
+3490 2020347e branch car_ui_led_init_2 
+
+car_low_voltage_led_gpio_set:
+3491 67e0c98d store 1 ,mem_car_led_map + 1 
+3492 20203480 branch car_ui_led_init_3 
+
+car_init_environment:
+3493 20403623 call car_g24_init 
+3494 da200000 arg 0 ,rega 
+3495 204060c4 call pwm_init 
+3496 2040347a call car_ui_led_init 
+3497 204034c5 call car_start_blink 
+3498 204034ab call car_init_adc_hvin 
+3499 2020349a branch car_motor_init 
+
+car_motor_init:
+349a 6fe0cc55 fetch 1 ,mem_car_motor_gpio_num 
+349b 1fe27200 copy pdata ,loopcnt 
+349c 58004c56 setarg mem_car_motor_gpio_map 
+349d 1fe22200 copy pdata ,rega 
+
+p_in_lp1:
+349e 1a220c00 copy rega ,contr 
+349f efe08006 ifetch 1 ,contr 
+34a0 18c22200 copy contr ,rega 
+34a1 c07fb4a5 beq invalid_pin_num ,p_in_lp1_end 
+34a2 1fe20400 copy pdata ,temp 
+34a3 67e0cc5a store 1 ,mem_car_gpio 
+34a4 204034a7 call car_ui_gpio_init 
+
+p_in_lp1_end:
+34a5 c200349e loop p_in_lp1 
+
+p_car_ui_led_init_end:
+34a6 20600000 rtn 
+
+car_ui_gpio_init:
+34a7 6fe0cc5a fetch 1 ,mem_car_gpio 
+34a8 c17f8000 rtneq ui_button_gpio_disable 
+34a9 98000400 iforce temp 
+34aa 20205f8d branch gpio_config_output 
+
+car_init_adc_hvin:
+34ab 704a2e64 jam 100 ,mem_car_notify_vdd_value_last 
+34ac 20600000 rtn 
+
+car_le_before_hibernate:
+
+car_le_process_lpm_before:
+34ad 2020608a branch keyscan_process_lpm_before 
+
+car_key_scan_process:
+34ae 20206096 branch keyscan_key_process 
+
+car_scale_process_idle:
+34af 204034c7 call car_le_send_packet 
+34b0 204034b2 call car_g24_status_process 
+34b1 202034ae branch car_key_scan_process 
+
+car_g24_status_process:
+34b2 6fe14793 fetch 2 ,mem_ui_state_map 
+34b3 c3848000 rtnbit1 ui_state_ble_connected 
+34b4 6fe0cc68 fetch 1 ,mem_car_24g_received_pac 
+34b5 c000b4b7 beq work_paired ,car_g24_connected_event 
+34b6 20600000 rtn 
+
+car_g24_connected_event:
+34b7 6fe0ca49 fetch 1 ,mem_car_24g_status 
+34b8 c1008000 rtneq work_paired 
+34b9 704a4901 jam work_paired ,mem_car_24g_status 
+34ba 204034c1 call car_lpm_timer_disable 
+34bb 204034c3 call car_stop_blink 
+34bc 202034da branch car_g24_connected 
+
+car_lpm_timer_enable:
+34bd 6fe14c6d fetch 2 ,mem_car_enter_lpm_timer_count 
+34be 67e14c6f store 2 ,mem_car_enter_lpm_timer 
+34bf 704c7100 jam 0 ,mem_car_enter_lpm_flag 
+34c0 20600000 rtn 
+
+car_lpm_timer_disable:
+34c1 58000000 setarg 0 
+34c2 202034be branch car_lpm_timer_enable + 1 
+
+car_stop_blink:
+34c3 da200000 arg 0 ,rega 
+34c4 20207737 branch ui_led_blink_stop_global 
+
+car_start_blink:
+34c5 da200000 arg 0 ,rega 
+34c6 2020773c branch ui_led_blink_start_global 
+
+car_le_send_packet:
+34c7 6fe14793 fetch 2 ,mem_ui_state_map 
+34c8 c4048000 rtnbit0 ui_state_ble_connected 
+34c9 20401b05 call le_fifo_check_nearly_full 
+34ca 247a0000 nrtn blank 
+34cb da204977 arg mem_car_pop_queue_buff ,rega 
+34cc 2040788c call queue_pop 
+34cd 24740000 nrtn user 
+34ce d8c04977 arg mem_car_pop_queue_buff ,contr 
+34cf 20204b37 branch le_send_notify_from_list 
+
+car_scale_process_bb_event:
+34d0 1a627e00 copy regc ,pdata 
+34d1 c016b284 beq bt_evt_button_up ,app_event_button_up 
+34d2 c008326c beq bt_evt_button_long_pressed ,app_button_long_pressed 
+34d3 c00a34d6 beq bt_evt_le_connected ,car_scale_event_le_conn 
+34d4 c00ab4e0 beq bt_evt_le_disconnected ,car_scale_event_le_discon 
+34d5 20600000 rtn 
+
+car_scale_event_le_conn:
+34d6 204034c1 call car_lpm_timer_disable 
+34d7 204034c3 call car_stop_blink 
+34d8 793f8027 set0 mark_24g_rxmode ,mark 
+34d9 202034dc branch car_scale_process_conn 
+
+car_g24_connected:
+34da 6fe14a4a fetch 2 ,mem_car_24g_no_data_timeout_count 
+34db 67e14a4c store 2 ,mem_car_24g_no_data_timeout_timer 
+
+car_scale_process_conn:
+34dc 704a2d14 jam 0x14 ,mem_car_notify_vdd_timer 
+34dd 70409900 jam 0 ,mem_lpm_mode 
+34de 2040324a call app_ble_stop_adv 
+34df 20203268 branch app_lpm_mult_enable 
+
+car_scale_event_le_discon:
+34e0 79200027 set1 mark_24g_rxmode ,mark 
+34e1 204034bd call car_lpm_timer_enable 
+34e2 204035d7 call car_fb_motor_stop 
+34e3 204035cb call car_lr_motor_stop 
+
+car_g24_disconnect:
+34e4 58000000 setarg 0 
+34e5 67e2c9fb store 5 ,mem_car_led_control 
+34e6 58000004 setarg 4 
+34e7 2040612c call pwm_disable 
+34e8 58000005 setarg 5 
+34e9 2040612c call pwm_disable 
+34ea 58000014 setarg 20 
+34eb 2040612c call pwm_disable 
+34ec 58000015 setarg 21 
+34ed 2040612c call pwm_disable 
+34ee 58000016 setarg 22 
+34ef 2040612c call pwm_disable 
+34f0 58000007 setarg 7 
+34f1 2040612c call pwm_disable 
+34f2 20407870 call queue_init 
+34f3 7049bd0a jam 10 ,mem_motor1_speed 
+34f4 7049bf0a jam 10 ,mem_motor2_speed 
+34f5 7049c10a jam 10 ,mem_motor3_speed 
+34f6 70417702 jam 2 ,mem_lpm_mult 
+34f7 58000020 setarg fast_adv_interval_value_car 
+34f8 20404b33 call shutter_ble_adv_interval_set 
+34f9 2020324c branch app_ble_start_adv 
+
+car_le_bb_event_timer:
+34fa 20403578 call car_moto1_blank_data_timer 
+34fb 2040357b call car_moto2_blank_data_timer 
+34fc 2040357e call car_moto3_blank_data_timer 
+34fd 204031dd call app_power_timer 
+34fe 20403510 call car_notify_vdd_timer 
+34ff 2040350a call car_24g_no_data_timeout_timer 
+3500 20403502 call car_24g_bind_enable_timer 
+3501 20203505 branch car_enter_lpm_timer 
+
+car_24g_bind_enable_timer:
+3502 da604c69 arg mem_car_24g_bind_enable_delay_count ,regc 
+3503 da400000 arg 0 ,regb 
+3504 202031cf branch timer_single_step 
+
+car_enter_lpm_timer:
+3505 da604c6f arg mem_car_enter_lpm_timer ,regc 
+3506 da403508 arg car_enter_lpm_enable ,regb 
+3507 202031d6 branch timer_single_step_2b 
+
+car_enter_lpm_enable:
+3508 704c7101 jam 1 ,mem_car_enter_lpm_flag 
+3509 20600000 rtn 
+
+car_24g_no_data_timeout_timer:
+350a da604a4c arg mem_car_24g_no_data_timeout_timer ,regc 
+350b da40350d arg car_24g_no_data_timer_timeout ,regb 
+350c 202031d6 branch timer_single_step_2b 
+
+car_24g_no_data_timer_timeout:
+350d 704a4902 jam work_search ,mem_car_24g_status 
+350e 704c6800 jam power_on ,mem_car_24g_received_pac 
+350f 202034e4 branch car_g24_disconnect 
+
+car_notify_vdd_timer:
+3510 6fe0ca27 fetch 1 ,mem_car_config_bat_notify_enable 
+3511 207a0000 rtn blank 
+3512 da604a2d arg mem_car_notify_vdd_timer ,regc 
+3513 da403515 arg car_notify_vdd ,regb 
+3514 202031cf branch timer_single_step 
+
+car_notify_vdd:
+3515 6fe0ca2c fetch 1 ,mem_car_notify_vdd_count 
+3516 67e0ca2d store 1 ,mem_car_notify_vdd_timer 
+3517 6fe0ca30 fetch 1 ,mem_car_working_flag 
+3518 247a0000 nrtn blank 
+
+car_read_hvin:
+3519 20406018 call vdd_calculate_by_mode 
+351a 67e14a47 store 2 ,mem_vdd_now_vol 
+351b da204a41 arg mem_vdd_calculate_set ,rega 
+351c 20406045 call adc_bat_percent_lowpower_out 
+351d 6848ca2e fetcht 1 ,mem_car_notify_vdd_value_last 
+351e 98467c00 isub temp ,null 
+351f 20213522 branch car_notify_vdd_next2 ,positive 
+3520 67e0ca2e store 1 ,mem_car_notify_vdd_value_last 
+3521 1fe20400 copy pdata ,temp 
+
+car_notify_vdd_next2:
+3522 6048ca2f storet 1 ,mem_car_notify_vdd_percent 
+3523 6fe0ca29 fetch 1 ,mem_car_config_low_voltage_percent 
+3524 98467c00 isub temp ,null 
+3525 2041352d call car_enter_low_bat ,positive 
+3526 6048ca3a storet 1 ,mem_notify_bat_payload 
+3527 df200006 arg 6 ,loopcnt 
+3528 d8c04a35 arg mem_notify_bat_head ,contr 
+3529 20403534 call calc_check_sum_start 
+352a 67e0ca3b store 1 ,mem_notify_bat_check_sum 
+352b da204a32 arg mem_notify_bat_packet ,rega 
+352c 20207875 branch queue_push 
+
+car_enter_low_bat:
+352d 6fe0ca31 fetch 1 ,mem_low_bat_flag 
+352e 247a0000 nrtn blank 
+352f 704a3101 jam 1 ,mem_low_bat_flag 
+3530 da200001 arg 1 ,rega 
+3531 2020773c branch ui_led_blink_start_global 
+
+car_low_bat_led_off:
+3532 da200001 arg 1 ,rega 
+3533 20207737 branch ui_led_blink_stop_global 
+
+calc_check_sum_start:
+3534 da200000 arg 0 ,rega 
+
+calc_check_sum_loop:
+3535 efe08006 ifetch 1 ,contr 
+3536 9a20a200 iadd rega ,rega 
+3537 c2003535 loop calc_check_sum_loop 
+
+calc_check_sum_and:
+3538 1a217eff and rega ,0xff ,pdata 
+3539 20600000 rtn 
+
+car_le_receive_data:
+353a 6fe0c439 fetch 1 ,mem_le_att_opcode 
+353b c009353d beq attop_write_request ,car_le_parse_att_write_request 
+353c 20600000 rtn 
+
+car_le_parse_att_write_request:
+353d 6fe1443a fetch 2 ,mem_le_att_handle 
+353e c00a3554 beq att_car_control_handle ,car_control_le_receive 
+353f 20600000 rtn 
+
+le_app_receive_data:
+3540 44db4016 bpatch patch16_6 ,mem_patch16 
+3541 efe28011 ifetch 5 ,rega 
+3542 67e289de store 5 ,mem_app_receive_temp 
+3543 6fe109de fetch 2 ,mem_app_receive_temp 
+3544 d8406b5a arg le_receive_packet_head ,temp 
+3545 98467c00 isub temp ,null 
+3546 24628000 nrtn zero 
+3547 6fe109e1 fetch 2 ,mem_app_receive_temp + 3 
+3548 1ff0fe00 byteswap pdata ,pdata 
+3549 67e109e1 store 2 ,mem_app_receive_temp + 3 
+354a 1fe27200 copy pdata ,loopcnt 
+354b 1a20a205 increase 5 ,rega 
+354c 1a220c00 copy rega ,contr 
+354d d8a009e3 arg mem_app_receive_temp + 5 ,contw 
+354e 20407ca1 call memcpy 
+354f efe08006 ifetch 1 ,contr 
+3550 67e089ed store 1 ,mem_app_receive_temp + 15 
+3551 da2009e0 arg mem_app_receive_temp + 2 ,rega 
+3552 da4009e3 arg mem_app_receive_temp + 5 ,regb 
+3553 20600000 rtn 
+
+car_control_le_receive:
+3554 58000000 setarg 0 
+3555 67e2c9b1 store 5 ,mem_le_receive_payload 
+3556 67e2c9b6 store 5 ,mem_le_receive_payload + 5 
+3557 20403540 call le_app_receive_data 
+3558 1a420c00 copy regb ,contr 
+3559 d8a049b1 arg mem_le_receive_payload ,contw 
+355a df20000a arg 10 ,loopcnt 
+355b 20407ca1 call memcpy 
+
+car_receive_cmd_select:
+355c 44dbc016 bpatch patch16_7 ,mem_patch16 
+355d efe08011 ifetch 1 ,rega 
+355e c0013587 beq car_cmd_old_car_control ,car_drive_old 
+355f c001b59c beq car_cmd_old_speed_control ,car_speed_set_old 
+3560 c00235a3 beq car_cmd_l_r_motor_control ,car_motor_control 
+3561 c002b5a3 beq car_cmd_f_b_motor_control ,car_motor_control 
+3562 c0033613 beq car_cmd_ir_control ,car_ir_data_rx_from_app 
+3563 c003b614 beq car_cmd_led_control ,car_led_control_receive 
+3564 c0043617 beq car_cmd_device_info ,car_info_request 
+3565 20600000 rtn 
+
+car_24g_receive_data:
+3566 20403554 call car_control_le_receive 
+3567 6fe089e0 fetch 1 ,mem_app_receive_temp + 2 
+3568 c002356b beq car_cmd_l_r_motor_control ,car_24g_receive_data_next 
+3569 c002b56b beq car_cmd_f_b_motor_control ,car_24g_receive_data_next 
+356a 20600000 rtn 
+
+car_24g_receive_data_next:
+356b 6fe0c9b1 fetch 1 ,mem_le_receive_payload 
+356c 245a3572 ncall car_moto1_enable_blank_data_timer ,blank 
+356d 6fe0c9b3 fetch 1 ,mem_le_receive_payload + 2 
+356e 245a3574 ncall car_moto2_enable_blank_data_timer ,blank 
+356f 6fe0c9b5 fetch 1 ,mem_le_receive_payload + 4 
+3570 245a3576 ncall car_moto3_enable_blank_data_timer ,blank 
+3571 20600000 rtn 
+
+car_moto1_enable_blank_data_timer:
+3572 704c5205 jam 5 ,mem_car_moto1_blank_timer 
+3573 20600000 rtn 
+
+car_moto2_enable_blank_data_timer:
+3574 704c5305 jam 5 ,mem_car_moto2_blank_timer 
+3575 20600000 rtn 
+
+car_moto3_enable_blank_data_timer:
+3576 704c5405 jam 5 ,mem_car_moto3_blank_timer 
+3577 20600000 rtn 
+
+car_moto1_blank_data_timer:
+3578 da604c52 arg mem_car_moto1_blank_timer ,regc 
+3579 da403581 arg car_moto1_blank_data ,regb 
+357a 202031cf branch timer_single_step 
+
+car_moto2_blank_data_timer:
+357b da604c53 arg mem_car_moto2_blank_timer ,regc 
+357c da403583 arg car_moto2_blank_data ,regb 
+357d 202031cf branch timer_single_step 
+
+car_moto3_blank_data_timer:
+357e da604c54 arg mem_car_moto3_blank_timer ,regc 
+357f da403585 arg car_moto3_blank_data ,regb 
+3580 202031cf branch timer_single_step 
+
+car_moto1_blank_data:
+3581 7049b100 jam 0 ,mem_le_receive_payload 
+3582 202035a3 branch car_motor_control 
+
+car_moto2_blank_data:
+3583 7049b300 jam 0 ,mem_le_receive_payload + 2 
+3584 202035a3 branch car_motor_control 
+
+car_moto3_blank_data:
+3585 7049b500 jam 0 ,mem_le_receive_payload + 4 
+3586 202035a3 branch car_motor_control 
+
+car_drive_old:
+3587 6fe0c9b1 fetch 1 ,mem_le_receive_payload 
+3588 67e0c9bc store 1 ,mem_motor1_status 
+3589 6fe0c9b2 fetch 1 ,mem_le_receive_payload + 1 
+358a 67e0c9be store 1 ,mem_motor2_status 
+358b 202035ad branch car_motor_control_common 
+
+car_left_right_control_old:
+358c 6fe0c9b1 fetch 1 ,mem_le_receive_payload 
+358d 67e0c9be store 1 ,mem_motor2_status 
+358e 202035bb branch car_motor2_control 
+
+car_front_back_control_old:
+358f 6fe0c9bd fetch 1 ,mem_motor1_speed 
+3590 20403594 call car_reset_old_speed 
+3591 6fe0c9b2 fetch 1 ,mem_le_receive_payload + 1 
+3592 67e0c9bc store 1 ,mem_motor1_status 
+3593 202035b9 branch car_motor1_control 
+
+car_reset_old_speed:
+3594 c0013598 beq speed_level_2 ,car_reset_old_speed2 
+3595 c001b59a beq speed_level_3 ,car_reset_old_speed3 
+3596 67e0c9bd store 1 ,mem_motor1_speed 
+3597 20600000 rtn 
+
+car_reset_old_speed2:
+3598 7049bd05 jam speed_level_5 ,mem_motor1_speed 
+3599 20600000 rtn 
+
+car_reset_old_speed3:
+359a 7049bd0a jam speed_level_10 ,mem_motor1_speed 
+359b 20600000 rtn 
+
+car_speed_set_old:
+359c 6fe0c9b1 fetch 1 ,mem_le_receive_payload 
+359d 20403594 call car_reset_old_speed 
+359e 6fe0c9bd fetch 1 ,mem_motor1_speed 
+359f 20403607 call car_motor_speed_duty_setting 
+35a0 2040360a call car_motor_speed_duty_transform 
+35a1 70095d00 jam 0x00 ,mem_pdatatemp + 1 
+35a2 202060e9 branch pwm_duty_cycle_set 
+
+car_motor_control:
+35a3 6fe0ca4f fetch 1 ,mem_car_24g_go_die_flag 
+35a4 247a0000 nrtn blank 
+35a5 6fe349b1 fetch 6 ,mem_le_receive_payload 
+35a6 67e349bc store 6 ,mem_motor1_status 
+35a7 6fe0c9bd fetch 1 ,mem_motor1_speed 
+35a8 6848c9bf fetcht 1 ,mem_motor2_speed 
+35a9 98417e00 iand temp ,pdata 
+35aa 6848c9c1 fetcht 1 ,mem_motor3_speed 
+35ab 98417e00 iand temp ,pdata 
+35ac 205a35bf call car_motor_working_flag ,blank 
+
+car_motor_control_common:
+35ad 44dc4017 bpatch patch17_0 ,mem_patch17 
+35ae 6fe14793 fetch 2 ,mem_ui_state_map 
+35af 2feffe09 isolate1 ui_state_ble_connected ,pdata 
+35b0 2440b4bd ncall car_lpm_timer_enable ,true 
+35b1 204035b9 call car_motor1_control 
+35b2 204035bb call car_motor2_control 
+35b3 202035b4 branch car_conn_led_state 
+
+car_conn_led_state:
+35b4 6fe0c9bc fetch 1 ,mem_motor1_status 
+35b5 6848c9be fetcht 1 ,mem_motor2_status 
+35b6 9840fe00 iadd temp ,pdata 
+35b7 243a7841 nbranch check_51cmd_led_on ,blank 
+35b8 2020783f branch check_51cmd_led_off 
+
+car_motor1_control:
+35b9 d8c049bc arg mem_motor1_status ,contr 
+35ba 202035c1 branch car_motor1_status_select 
+
+car_motor2_control:
+35bb d8c049be arg mem_motor2_status ,contr 
+35bc 202035c6 branch car_motor2_status_select 
+
+car_motor3_control:
+35bd d8c049c0 arg mem_motor3_status ,contr 
+35be 202035e3 branch car_motor_status_select 
+
+car_motor_working_flag:
+35bf 704a3000 jam 0 ,mem_car_working_flag 
+35c0 20600000 rtn 
+
+car_motor1_status_select:
+35c1 efe08006 ifetch 1 ,contr 
+35c2 c00035cb beq turn_front ,car_lr_motor_stop 
+35c3 c000b5cf beq turn_left ,car_lr_motor_left 
+35c4 c00135d3 beq turn_right ,car_lr_motor_right 
+35c5 20600000 rtn 
+
+car_motor2_status_select:
+35c6 efe08006 ifetch 1 ,contr 
+35c7 c00035d7 beq motor_stop ,car_fb_motor_stop 
+35c8 c00135db beq go_back ,car_fb_motor_front 
+35c9 c000b5df beq go_front ,car_fb_motor_back 
+35ca 20600000 rtn 
+
+car_lr_motor_stop:
+35cb 6848cc56 fetcht 1 ,mem_car_motor_left_gpio 
+35cc 20405f89 call gpio_out_inactive 
+35cd 6848cc57 fetcht 1 ,mem_car_motor_right_gpio 
+35ce 20205f89 branch gpio_out_inactive 
+
+car_lr_motor_left:
+35cf 6848cc56 fetcht 1 ,mem_car_motor_left_gpio 
+35d0 20405f8d call gpio_out_active 
+35d1 6848cc57 fetcht 1 ,mem_car_motor_right_gpio 
+35d2 20205f89 branch gpio_out_inactive 
+
+car_lr_motor_right:
+35d3 6848cc56 fetcht 1 ,mem_car_motor_left_gpio 
+35d4 20405f89 call gpio_out_inactive 
+35d5 6848cc57 fetcht 1 ,mem_car_motor_right_gpio 
+35d6 20205f8d branch gpio_out_active 
+
+car_fb_motor_stop:
+35d7 6848cc58 fetcht 1 ,mem_car_motor_front_gpio 
+35d8 20405f89 call gpio_out_inactive 
+35d9 6848cc59 fetcht 1 ,mem_car_motor_back_gpio 
+35da 20205f89 branch gpio_out_inactive 
+
+car_fb_motor_front:
+35db 6848cc58 fetcht 1 ,mem_car_motor_front_gpio 
+35dc 20405f8d call gpio_out_active 
+35dd 6848cc59 fetcht 1 ,mem_car_motor_back_gpio 
+35de 20205f89 branch gpio_out_inactive 
+
+car_fb_motor_back:
+35df 6848cc58 fetcht 1 ,mem_car_motor_front_gpio 
+35e0 20405f89 call gpio_out_inactive 
+35e1 6848cc59 fetcht 1 ,mem_car_motor_back_gpio 
+35e2 20205f8d branch gpio_out_active 
+
+car_motor_status_select:
+35e3 44dcc017 bpatch patch17_1 ,mem_patch17 
+35e4 efe08006 ifetch 1 ,contr 
+35e5 c00035f0 beq motor_stop ,car_motor_stop 
+35e6 c000b5e9 beq go_front ,car_motor_positive 
+35e7 c00135eb beq go_back ,car_motor_negative 
+35e8 20600000 rtn 
+
+car_motor_positive:
+35e9 7049da00 jam 0 ,mem_motor_select_p_n 
+35ea 202035ec branch car_motor_negative + 1 
+
+car_motor_negative:
+35eb 7049da01 jam 1 ,mem_motor_select_p_n 
+35ec efe08006 ifetch 1 ,contr 
+35ed 67e0c9dc store 1 ,mem_car_motor_speed 
+35ee efe40012 ifetch 8 ,regb 
+35ef 202035f5 branch car_motor_work 
+
+car_motor_stop:
+35f0 efe08012 ifetch 1 ,regb 
+35f1 2040612c call pwm_disable 
+35f2 1a40a401 increase 1 ,regb 
+35f3 efe08012 ifetch 1 ,regb 
+35f4 2020612c branch pwm_disable 
+
+car_motor_work:
+35f5 67e449dd store 8 ,mem_motor_pwm_pin1_set 
+35f6 704a3001 jam 1 ,mem_car_working_flag 
+35f7 6fe0c9da fetch 1 ,mem_motor_select_p_n 
+35f8 c0003603 beq 0 ,car_motor_select_positive 
+
+car_motor_select_negative:
+35f9 6fe0c9de fetch 1 ,mem_motor_pwm_pin2_set 
+35fa 67e0c9df store 1 ,mem_motor_pwm_pin_set 
+35fb 6fe0c9dd fetch 1 ,mem_motor_pwm_pin1_set 
+
+car_motor_work_next:
+35fc 2040612c call pwm_disable 
+35fd 6fe0c9dc fetch 1 ,mem_car_motor_speed 
+35fe 20403607 call car_motor_speed_duty_setting 
+35ff 67e0c9e4 store 1 ,mem_motor_pwm_dute_set 
+3600 6fe349df fetch 6 ,mem_motor_pwm_pin_set 
+3601 67e3095c store 6 ,mem_pdatatemp 
+3602 202060d5 branch pwm_out_set 
+
+car_motor_select_positive:
+3603 6fe0c9dd fetch 1 ,mem_motor_pwm_pin1_set 
+3604 67e0c9df store 1 ,mem_motor_pwm_pin_set 
+3605 6fe0c9de fetch 1 ,mem_motor_pwm_pin2_set 
+3606 202035fc branch car_motor_work_next 
+
+car_motor_speed_duty_setting:
+3607 1feffe05 mul32 pdata ,5 ,pdata 
+3608 1fe0fe32 add pdata ,50 ,pdata 
+3609 20600000 rtn 
+
+car_motor_speed_duty_transform:
+360a d8402ee0 arg 12000 ,temp 
+360b 984ffe00 imul32 temp ,pdata 
+360c 1fe6fc64 div pdata ,100 
+360d 20407d31 call wait_div_end 
+360e 18078400 quotient temp 
+360f 18422200 copy temp ,rega 
+3610 58002ee0 setarg 12000 
+3611 98462400 isub temp ,regb 
+3612 20600000 rtn 
+
+car_ir_data_rx_from_app:
+3613 20600000 rtn 
+
+car_led_control_receive:
+3614 6fe449b1 fetch 8 ,mem_le_receive_payload 
+3615 67e449fb store 8 ,mem_car_led_control 
+3616 20600000 rtn 
+
+car_info_request:
+3617 6fe0ca18 fetch 1 ,mem_car_config_device_select 
+3618 67e0ca0e store 1 ,mem_car_info_request_payload 
+3619 6fe0ca19 fetch 1 ,mem_car_config_motor_layout 
+361a 67e0ca0f store 1 ,mem_car_info_request_payload + 1 
+361b 6fe0ca1a fetch 1 ,mem_car_config_ir_enable 
+361c 67e0ca10 store 1 ,mem_car_info_request_payload + 2 
+361d df20000d arg 13 ,loopcnt 
+361e d8c04a09 arg mem_car_info_request_head ,contr 
+361f 20403534 call calc_check_sum_start 
+3620 67e0ca16 store 1 ,mem_car_info_request_checksum 
+3621 da204a06 arg mem_car_info_request ,rega 
+3622 20207875 branch queue_push 
+
+car_g24_init:
+3623 58000000 setarg 0 
+3624 67e44889 store 8 ,mem_24g_bind_payload 
+3625 204023be call g24_receive_init 
+3626 2020241d branch g24_mode_switch_init 
+
+car_g24_receive_process:
+3627 2040362b call car_g24_mode_switch 
+3628 20403633 call car_g24_work_mode 
+3629 20403642 call car_g24_bind_mode 
+362a 20203660 branch car_g24_lpm_dipatch 
+
+car_g24_mode_switch:
+362b 20402421 call g24_mode_switch_bind_work 
+
+car_g24_bind_mode_enable:
+362c 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+362d c1808000 rtnne dongle_bind 
+362e 6fe0cc69 fetch 1 ,mem_car_24g_bind_enable_delay_count 
+362f 243a2476 nbranch g24_switch_work_mode ,blank 
+3630 6fe0ca49 fetch 1 ,mem_car_24g_status 
+3631 c0012476 beq work_search ,g24_switch_work_mode 
+3632 20600000 rtn 
+
+car_g24_work_mode:
+3633 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+3634 c1800000 rtnne dongle_work 
+3635 2040247a call g24_work_mode_start 
+3636 2037b640 branch car_g24_ch_polling_clear ,user3 
+
+car_g24_receive_ch_polling:
+3637 6fe0cc71 fetch 1 ,mem_car_enter_lpm_flag 
+3638 207a0000 rtn blank 
+3639 6fe0cc72 fetch 1 ,mem_car_24g_ch_polling 
+363a 1fe0fe01 increase 1 ,pdata 
+363b 67e0cc72 store 1 ,mem_car_24g_ch_polling 
+363c c0023640 beq 4 ,car_g24_ch_polling_clear 
+363d 20402262 call g24_ch 
+363e 204023ca call g24_receive_packet_start 
+363f 2437b637 nbranch car_g24_receive_ch_polling ,user3 
+
+car_g24_ch_polling_clear:
+3640 704c7200 jam 0 ,mem_car_24g_ch_polling 
+3641 20600000 rtn 
+
+car_g24_bind_mode:
+3642 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+3643 c1808000 rtnne dongle_bind 
+3644 2040232c call g24_bind_init 
+3645 20403656 call car_g24_bind_device_addr 
+3646 2040233a call g24_bind_data_process 
+3647 6fe0c888 fetch 1 ,mem_24g_bind_device_status 
+3648 243a364f nbranch car_g24_bind_mode_exit ,blank 
+3649 2040251d call g24_nodata_process 
+364a 6fe0c8c5 fetch 1 ,mem_24g_nodata_timer_enable 
+364b 207a0000 rtn blank 
+364c 58000000 setarg 0 
+364d 67e248e1 store 4 ,mem_24g_device1_addr 
+364e 20600000 rtn 
+
+car_g24_bind_mode_exit:
+364f 7048c400 jam 0 ,mem_24g_mode_switch 
+3650 da200000 arg 0 ,rega 
+3651 20407737 call ui_led_off_global 
+3652 20402476 call g24_switch_work_mode 
+3653 20402293 call g24_timer_init 
+3654 6fe240a8 fetch 4 ,mem_lap 
+3655 20202273 branch g24_update_addr_and_synccrc8 
+
+car_g24_bind_device_addr:
+3656 6fe248e1 fetch 4 ,mem_24g_device1_addr 
+3657 207a0000 rtn blank 
+3658 20202273 branch g24_update_addr_and_synccrc8 
+
+car_g24_cb_data_device1:
+3659 6fe14793 fetch 2 ,mem_ui_state_map 
+365a c3848000 rtnbit1 ui_state_ble_connected 
+365b 6fe14a4a fetch 2 ,mem_car_24g_no_data_timeout_count 
+365c 67e14a4c store 2 ,mem_car_24g_no_data_timeout_timer 
+365d 704c6801 jam work_paired ,mem_car_24g_received_pac 
+365e da20489c arg mem_24g_rxdata_temp + 3 ,rega 
+365f 20203566 branch car_24g_receive_data 
+
+car_g24_lpm_dipatch:
+3660 6fe0cc71 fetch 1 ,mem_car_enter_lpm_flag 
+3661 207a0000 rtn blank 
+3662 20403668 call car_g24_lpm_wait 
+3663 24740000 nrtn user 
+3664 6fe1c863 fetch 3 ,mem_24g_enter_hibernate 
+3665 20407cec call clk2lpo 
+3666 604a4160 storet 4 ,mem_sleep_counter 
+3667 20201445 branch lpm_sleep 
+
+car_g24_lpm_wait:
+3668 78347c00 enable user 
+3669 20401417 call lpo_calibration 
+366a 6fe1c174 fetch 3 ,mem_clks_per_lpo 
+366b 203a7d94 branch disable_user ,blank 
+366c 202034ad branch car_le_process_lpm_before 
+
+dongle_init:
+366d 5800369d setarg dongle_dispatch 
+366e 67e14891 store 2 ,mem_cb_24g_receive_process 
+366f 5800376d setarg dongle_g24_mouse 
+3670 67e14895 store 2 ,mem_cb_24g_data_device1 
+3671 5800377e setarg dongle_g24_kb 
+3672 67e14897 store 2 ,mem_cb_24g_data_device2 
+3673 58003744 setarg dongle_ackpayload_prep 
+3674 67e14893 store 2 ,mem_cb_24g_ackpayload 
+3675 580036a9 setarg dongle_usb_config 
+3676 67e10b45 store 2 ,mem_cb_usb_config 
+3677 202078d3 branch usb_init 
+
+dongle_default_init:
+3678 204036a1 call dongle_read_kb_bind_status 
+3679 20403698 call dongle_xtal_select 
+367a 6fe0c919 fetch 1 ,mem_dg_sys_config 
+367b 2feffe05 isolate1 dg_enable_eeprom ,pdata 
+367c 2020b680 branch dongle_default_no_eeprom ,true 
+367d 6fe0c919 fetch 1 ,mem_dg_sys_config 
+367e 2feffe06 isolate1 dg_enable_new_chmap ,pdata 
+367f 2040a2a5 call g24_chamap_param_update ,true 
+
+dongle_default_no_eeprom:
+3680 6fe0c919 fetch 1 ,mem_dg_sys_config 
+3681 1fe17e0f and_into 0x0f ,pdata 
+3682 67e0c1eb store 1 ,mem_tx_power 
+3683 704885ff jam 0xff ,mem_rssi_buff_index 
+3684 58000c4b setarg mem_dg_rssi_noise_buffer 
+3685 67e148f1 store 2 ,mem_rssi_noise_buffer_ptr 
+3686 58000d4b setarg mem_dg_rssi_noise_dg_buffer 
+3687 67e148f3 store 2 ,mem_rssi_noise_self_buffer_ptr 
+3688 58000e4b setarg mem_dg_rssi_noise_ms_buffer 
+3689 67e148f5 store 2 ,mem_rssi_noise_device1_buffer_ptr 
+368a 58000f4b setarg mem_dg_rssi_noise_kb_buffer 
+368b 67e148f7 store 2 ,mem_rssi_noise_device2_buffer_ptr 
+368c 70488485 jam tx_power_f5db ,mem_24g_pair_tx_power 
+368d 70494200 jam 0 ,mem_dg_kb_bind_success 
+368e 7048dc00 jam 0 ,mem_24g_bind_device_living 
+368f 204022b9 call g24_enable_1m 
+3690 204023be call g24_receive_init 
+3691 204022bc call g24_pair_param_init 
+3692 20402296 call g24_chmap_param_init 
+3693 6fe0c923 fetch 1 ,mem_dg_usb_tx_interval 
+3694 67e08b47 store 1 ,mem_usb_tx_interval 
+3695 6fe4c91a fetch 9 ,mem_dg_usb_vid_pid 
+3696 67e48b48 store 9 ,mem_usb_vid_pid 
+3697 20600000 rtn 
+
+dongle_xtal_select:
+3698 7040c518 jam xtal_24m ,mem_fcomp_div 
+3699 6fe0c919 fetch 1 ,mem_dg_sys_config 
+369a c4038000 rtnbit0 dg_enable_xtal_24m 
+369b 7040c508 jam xtal_16m ,mem_fcomp_div 
+369c 20600000 rtn 
+
+dongle_dispatch:
+369d 6fe0c8c1 fetch 1 ,mem_24g_pair_mode 
+369e c0003734 beq 0x00 ,dongle_auto_bind 
+369f c000b6ce beq 0x01 ,dongle_pc_bind 
+36a0 20600000 rtn 
+
+dongle_read_kb_bind_status:
+36a1 58001fdf setarg dongle_kb_bind_efuse_offect 
+36a2 da2048f9 arg mem_dg_kb_bind_flag ,rega 
+36a3 d8400001 arg 1 ,temp 
+36a4 20205dc7 branch otpd_read_data 
+
+dongle_write_kb_bind_status:
+36a5 df200001 arg 1 ,loopcnt 
+36a6 da2048f9 arg mem_dg_kb_bind_flag ,rega 
+36a7 d8401fdf arg dongle_kb_bind_efuse_offect ,temp 
+36a8 20205d82 branch otp_write 
+
+dongle_usb_config:
+36a9 6fe0c919 fetch 1 ,mem_dg_sys_config 
+36aa c28236ad bbit1 dg_enable_kb_icon ,dongle_usb_config_kb 
+36ab 6fe0c8f9 fetch 1 ,mem_dg_kb_bind_flag 
+36ac c0ad36b1 bne dongle_kb_bind_success ,dongle_usb_config_param 
+
+dongle_usb_config_kb:
+36ad 7048f95a jam dongle_kb_bind_success ,mem_dg_kb_bind_flag 
+36ae 6ff21aac fetch 4 ,usb_devicedata_addr + 9 
+36af 79207e1d set1 29 ,pdata 
+36b0 67e20aa0 store 4 ,mem_devicedesc + 9 
+
+dongle_usb_config_param:
+36b1 204036c8 call dongle_usb_device_name 
+36b2 20407926 call usb_tx_interval_config 
+36b3 204036b5 call dongle_usb_vid_pid_config 
+36b4 202036be branch dongle_usb_hid_icon_config 
+
+dongle_usb_vid_pid_config:
+36b5 6fe08b48 fetch 1 ,mem_usb_vid_pid 
+36b6 207a0000 rtn blank 
+36b7 6fe0c8f9 fetch 1 ,mem_dg_kb_bind_flag 
+36b8 c02d36bc beq dongle_kb_bind_success ,dongle_usb_vid_pid_for_suit 
+
+dongle_usb_vid_pid_for_mouse_only_auto_pair:
+36b9 6fe20b49 fetch 4 ,mem_usb_vid_pid + 1 
+
+dongle_usb_vid_pid_store:
+36ba 67e20aa0 store 4 ,mem_devicedesc + 9 
+36bb 20600000 rtn 
+
+dongle_usb_vid_pid_for_suit:
+36bc 6fe20b4d fetch 4 ,mem_usb_vid_pid + 5 
+36bd 202036ba branch dongle_usb_vid_pid_store 
+
+dongle_usb_hid_icon_config:
+36be 6fe0c8f9 fetch 1 ,mem_dg_kb_bind_flag 
+36bf c02d36c4 beq dongle_kb_bind_success ,dongle_usb_kb_hidreportdesc 
+36c0 580099a4 setarg usb_kbdata_vendor_define_addr 
+36c1 67e10a93 store 2 ,mem_hidreportdesc_kb 
+36c2 700ac41a jam 0x1a ,mem_confdesc + 26 
+36c3 20600000 rtn 
+
+dongle_usb_kb_hidreportdesc:
+36c4 580099bf setarg usb_kbdata_addr 
+36c5 67e10a93 store 2 ,mem_hidreportdesc_kb 
+36c6 700ac43f jam 0x3f ,mem_confdesc + 26 
+36c7 20600000 rtn 
+
+dongle_usb_device_name:
+36c8 6fe0c924 fetch 1 ,mem_dg_usb_device_name 
+36c9 207a0000 rtn blank 
+36ca d8c04924 arg mem_dg_usb_device_name ,contr 
+36cb d8a00b09 arg mem_string2 ,contw 
+36cc df20001e arg 30 ,loopcnt 
+36cd 20207ca1 branch memcpy 
+
+dongle_pc_bind:
+36ce 20402476 call g24_switch_work_mode 
+
+dongle_pc_bind_loop:
+36cf 2040373c call dongle_work_mode_auto 
+36d0 2040247f call g24_bind_mode_auto 
+36d1 20403700 call dongle_usb_dispatch 
+36d2 202036cf branch dongle_pc_bind_loop 
+
+dongle_g24_blank_data_process:
+36d3 204036d6 call dongle_g24_ms_blank_data 
+36d4 204036e5 call dongle_g24_kb_blank_data 
+36d5 202036f4 branch dongle_g24_kb_mul_blank_data 
+
+dongle_g24_ms_blank_data:
+36d6 6fe0c918 fetch 1 ,mem_dg_ms_blank_data_enable 
+36d7 207a0000 rtn blank 
+36d8 d8e0000b arg timer_ms_blank ,queue 
+36d9 20407cb6 call timer_check 
+36da 247a0000 nrtn blank 
+36db 70491800 jam 0 ,mem_dg_ms_blank_data_enable 
+36dc 58000001 setarg ms_report_id 
+36dd 67e08bff store 1 ,mem_usb_mouse_data 
+36de 58000000 setarg 0 
+36df e7e38005 istore 7 ,contw 
+
+dongle_usb_tx_ms_data:
+36e0 700bf820 jam usb_ep2_ms ,mem_usb_ep2_data 
+
+dongle_usb_tx_enable_ep2:
+36e1 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+36e2 79207e02 set1 2 ,pdata 
+36e3 67e08bf9 store 1 ,mem_usb_tx_enable 
+36e4 20600000 rtn 
+
+dongle_g24_kb_blank_data:
+36e5 6fe0c916 fetch 1 ,mem_dg_kb_blank_data_enable 
+36e6 207a0000 rtn blank 
+36e7 d8e0000e arg timer_kb_blank ,queue 
+36e8 20407cb6 call timer_check 
+36e9 247a0000 nrtn blank 
+36ea 70491600 jam 0 ,mem_dg_kb_blank_data_enable 
+36eb d8a00c0f arg mem_usb_kb_data ,contw 
+36ec df200002 arg 2 ,loopcnt 
+36ed 20407c59 call memset0 
+
+dongle_usb_tx_kb_data:
+36ee 700c0f00 jam kb_normal_report_id ,mem_usb_kb_data 
+
+dongle_usb_tx_enable_ep1:
+36ef 700bf710 jam usb_ep1_kb ,mem_usb_ep1_data 
+36f0 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+36f1 79207e01 set1 1 ,pdata 
+36f2 67e08bf9 store 1 ,mem_usb_tx_enable 
+36f3 20600000 rtn 
+
+dongle_g24_kb_mul_blank_data:
+36f4 6fe0c917 fetch 1 ,mem_dg_kb_mul_blank_data_enable 
+36f5 207a0000 rtn blank 
+36f6 d8e0000c arg timer_kb_mul_blank ,queue 
+36f7 20407cb6 call timer_check 
+36f8 247a0000 nrtn blank 
+36f9 70491700 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+36fa d8a00c1f arg mem_usb_kb_multikey ,contw 
+36fb df200002 arg 2 ,loopcnt 
+36fc 20407c59 call memset0 
+36fd 700c1f03 jam kb_multikey_report_id ,mem_usb_kb_multikey 
+
+dongle_usb_tx_multikey_data:
+36fe 700bf821 jam usb_ep2_multikey ,mem_usb_ep2_data 
+36ff 202036e1 branch dongle_usb_tx_enable_ep2 
+
+dongle_usb_dispatch:
+3700 44dd4017 bpatch patch17_2 ,mem_patch17 
+3701 6fe08bed fetch 1 ,mem_usb_remote_wakeup 
+3702 205a374e call dongle_clear_pc_sleep_flag ,blank 
+3703 204078c7 call usb_isr 
+3704 6fe08be3 fetch 1 ,mem_usb0_get_set_report 
+3705 207a0000 rtn blank 
+3706 700be300 jam 0 ,mem_usb0_get_set_report 
+3707 6fe10be1 fetch 2 ,mem_usb_setup_bvalue_temp 
+3708 d84002ba arg pc_set_report ,temp 
+3709 98467c00 isub temp ,null 
+370a 24628000 nrtn zero 
+370b 6fe08b61 fetch 1 ,mem_usb0_set_report_data 
+370c c1dd0000 rtnne pc_report_id 
+370d 6fe08b62 fetch 1 ,mem_usb0_set_report_data + 1 
+370e c0503715 beq command_mode ,dongle_dispose_cmd_mode 
+370f c050b71b beq command_bind ,dongle_dispose_cmd_bind 
+3710 c0533727 beq command_current_project ,dongle_dispose_cmd_current_project 
+3711 c053b729 beq command_current_mode ,dongle_dispose_cmd_current_mode 
+3712 c054b72f beq command_current_fw_version ,dongle_dispose_cmd_current_fw_version 
+
+dongle_usb0_data_ready_report_set0:
+3713 700be400 jam 0 ,mem_usb0_data_ready_report 
+3714 20600000 rtn 
+
+dongle_dispose_cmd_mode:
+3715 6fe08b63 fetch 1 ,mem_usb0_set_report_data + 2 
+3716 c040b718 beq com_mode_bind ,dongle_enter_bind_mode 
+3717 20203713 branch dongle_usb0_data_ready_report_set0 
+
+dongle_enter_bind_mode:
+3718 20402329 call g24_bind_mode_enable 
+
+dongle_usb0_data_ready_report_set1:
+3719 700be401 jam 1 ,mem_usb0_data_ready_report 
+371a 20600000 rtn 
+
+dongle_dispose_cmd_bind:
+371b 6fe08b63 fetch 1 ,mem_usb0_set_report_data + 2 
+371c c000b720 beq com_bind_get ,dongle_dispose_cmd_get_bind 
+371d c0423723 beq com_bind_exit ,dongle_dispose_cmd_exit_bind 
+371e c053b725 beq com_read_mode ,dongle_dispose_cmd_read_mode 
+371f 20203713 branch dongle_usb0_data_ready_report_set0 
+
+dongle_dispose_cmd_get_bind:
+3720 6fe0c888 fetch 1 ,mem_24g_bind_device_status 
+3721 67e08ba2 store 1 ,mem_usb0_get_report_data + 1 
+3722 20203719 branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_exit_bind:
+3723 20402477 call g24_work_mode_enable 
+3724 20203720 branch dongle_dispose_cmd_get_bind 
+
+dongle_dispose_cmd_read_mode:
+
+dongle_dispose_in_bind_mode:
+3725 700ba2a1 jam command_bind ,mem_usb0_get_report_data + 1 
+3726 20203719 branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_current_project:
+3727 700ba215 jam product_id ,mem_usb0_get_report_data + 1 
+3728 20203719 branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_current_mode:
+3729 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+372a c000372d beq dongle_work ,dongle_dispose_in_work_mode 
+372b c000b725 beq dongle_bind ,dongle_dispose_in_bind_mode 
+372c 20600000 rtn 
+
+dongle_dispose_in_work_mode:
+372d 700ba2a0 jam command_mode ,mem_usb0_get_report_data + 1 
+372e 20203719 branch dongle_usb0_data_ready_report_set1 
+
+dongle_dispose_cmd_current_fw_version:
+372f 700ba200 jam fw_version0 ,mem_usb0_get_report_data + 1 
+3730 700ba300 jam fw_version1 ,mem_usb0_get_report_data + 2 
+3731 700ba401 jam fw_version2 ,mem_usb0_get_report_data + 3 
+3732 700ba507 jam fw_version3 ,mem_usb0_get_report_data + 4 
+3733 20203719 branch dongle_usb0_data_ready_report_set1 
+
+dongle_auto_bind:
+3734 2040241d call g24_mode_switch_init 
+
+dongle_auto_bind_loop:
+3735 20402421 call g24_mode_switch_bind_work 
+3736 20402447 call g24_mode_switch_bind_search 
+3737 2040373c call dongle_work_mode_auto 
+3738 2040247f call g24_bind_mode_auto 
+3739 2040249c call g24_search_mode_auto 
+373a 20403700 call dongle_usb_dispatch 
+373b 20203735 branch dongle_auto_bind_loop 
+
+dongle_work_mode_auto:
+373c 44ddc017 bpatch patch17_3 ,mem_patch17 
+373d 6fe0c8c7 fetch 1 ,mem_24g_work_mode 
+373e c1800000 rtnne dongle_work 
+373f 2040247a call g24_work_mode_start 
+3740 204036d3 call dongle_g24_blank_data_process 
+3741 6fe0c8c1 fetch 1 ,mem_24g_pair_mode 
+3742 247a0000 nrtn blank 
+3743 2020251d branch g24_nodata_process 
+
+dongle_ackpayload_prep:
+3744 6fe0c83d fetch 1 ,mem_24g_data_type 
+3745 c000b747 beq datatype_device1 ,dongle_ackpayload_prep_mouse 
+3746 c0013750 beq datatype_device2 ,dongle_ackpayload_prep_keyboard 
+
+dongle_ackpayload_prep_mouse:
+3747 6fe0c943 fetch 1 ,mem_dg_pc_sleep_flag 
+3748 c2803756 bbit1 0 ,dongle_pc_sleep_ackpayload_prep_mouse 
+3749 20203752 branch dongle_ackpayload_prep_end 
+
+dongle_set_pc_sleep_flag:
+374a 6fe0c09a fetch 1 ,mem_device_option 
+374b c1820000 rtnne dvc_op_dongle 
+374c 70494303 jam 3 ,mem_dg_pc_sleep_flag 
+374d 20600000 rtn 
+
+dongle_clear_pc_sleep_flag:
+374e 70494300 jam 0 ,mem_dg_pc_sleep_flag 
+374f 20600000 rtn 
+
+dongle_ackpayload_prep_keyboard:
+3750 6fe0c943 fetch 1 ,mem_dg_pc_sleep_flag 
+3751 c280b75a bbit1 1 ,dongle_pc_sleep_ackpayload_prep_keyboard 
+
+dongle_ackpayload_prep_end:
+3752 6fe0c8c2 fetch 1 ,mem_24g_ackpayload_enable 
+3753 c000b761 beq bind_ackpayload ,dongle_g24_bind_ackpayload_prep 
+3754 c001b765 beq kb_led_ackpayload ,dongle_g24_kb_led_ackpayload_prep 
+3755 20600000 rtn 
+
+dongle_pc_sleep_ackpayload_prep_mouse:
+3756 6fe0c943 fetch 1 ,mem_dg_pc_sleep_flag 
+3757 793ffe00 set0 0 ,pdata 
+3758 67e0c943 store 1 ,mem_dg_pc_sleep_flag 
+3759 2020375d branch dongle_pc_sleep_ackpayload_prep 
+
+dongle_pc_sleep_ackpayload_prep_keyboard:
+375a 6fe0c943 fetch 1 ,mem_dg_pc_sleep_flag 
+375b 793ffe01 set0 1 ,pdata 
+375c 67e0c943 store 1 ,mem_dg_pc_sleep_flag 
+
+dongle_pc_sleep_ackpayload_prep:
+375d 70483c01 jam 0x01 ,mem_24g_datalen 
+375e 580000ff setarg 0xff 
+375f 67e0c7cd store 1 ,mem_24g_txbuf 
+3760 20600000 rtn 
+
+dongle_g24_bind_ackpayload_prep:
+3761 7048c201 jam 1 ,mem_24g_ackpayload_enable 
+3762 2040239d call g24_binding_device_check 
+3763 24778000 nrtn user3 
+3764 20202335 branch g24_bind_ackpayload_prep 
+
+dongle_g24_kb_led_ackpayload_prep:
+3765 6fe0c7ad fetch 1 ,mem_24g_rxbuf + 2 
+3766 c000b761 beq datatype_device1 ,dongle_g24_bind_ackpayload_prep 
+3767 c07fb761 beq datatype_attemp ,dongle_g24_bind_ackpayload_prep 
+3768 700be500 jam 0 ,mem_usb_tx_win_enable 
+3769 70483c01 jam 0x01 ,mem_24g_datalen 
+376a 6fe0c8d2 fetch 1 ,mem_24g_led_status 
+376b 67e0c7cd store 1 ,mem_24g_txbuf 
+376c 20600000 rtn 
+
+dongle_g24_mouse:
+376d 58000001 setarg ms_report_id 
+376e 67e08bff store 1 ,mem_usb_mouse_data 
+376f 6fe3c89c fetch 7 ,mem_24g_rxdata_temp + 3 
+3770 e7e38005 istore 7 ,contw 
+3771 6fe0c89c fetch 1 ,mem_24g_rxdata_temp + 3 
+3772 245a3776 ncall dongle_g24_ms_enable_blank_data_forcibly ,blank 
+3773 6fe0c89c fetch 1 ,mem_24g_rxdata_temp + 3 
+3774 205a377a call dongle_g24_ms_disable_blank_data_forcibly ,blank 
+3775 202036e0 branch dongle_usb_tx_ms_data 
+
+dongle_g24_ms_enable_blank_data_forcibly:
+3776 70491801 jam 1 ,mem_dg_ms_blank_data_enable 
+3777 58000180 setarg timer_ms_blank_delay 
+3778 d8e0000b arg timer_ms_blank ,queue 
+3779 20207ca8 branch timer_init 
+
+dongle_g24_ms_disable_blank_data_forcibly:
+377a 70491800 jam 0 ,mem_dg_ms_blank_data_enable 
+377b 58000000 setarg 0 
+377c d8e0000b arg timer_ms_blank ,queue 
+377d 20207ca8 branch timer_init 
+
+dongle_g24_kb:
+377e 6fe0c89c fetch 1 ,mem_24g_rxdata_temp + 3 
+377f c0003783 beq 0 ,dongle_g24_kb_type0 
+3780 c00137b6 beq 2 ,dongle_g24_kb_type2 
+3781 c001b79e beq 3 ,dongle_g24_kb_type3 
+3782 202023dd branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_type0:
+3783 6fe0c89e fetch 1 ,mem_24g_rxdata_temp + 5 
+3784 67e0c8c2 store 1 ,mem_24g_ackpayload_enable 
+3785 70489e00 jam 0 ,mem_24g_rxdata_temp + 5 
+3786 d8a00c0f arg mem_usb_kb_data ,contw 
+3787 d8c0489d arg mem_24g_rxdata_temp + 4 ,contr 
+3788 df200008 arg 8 ,loopcnt 
+3789 20407ca1 call memcpy 
+378a 6fe40c0f fetch 8 ,mem_usb_kb_data 
+378b 245a3796 ncall dongle_g24_kb_enable_blank_data_forcibly ,blank 
+378c 6fe40c0f fetch 8 ,mem_usb_kb_data 
+378d 205a379a call dongle_g24_kb_disable_blank_data_forcibly ,blank 
+378e 6fe40c0f fetch 8 ,mem_usb_kb_data 
+378f 67e448fa store 8 ,mem_dg_kb_data_sta_data 
+3790 684c4902 fetcht 8 ,mem_dg_kb_data_last_data 
+3791 98467c00 isub temp ,null 
+3792 2442b6ef ncall dongle_usb_tx_enable_ep1 ,zero 
+3793 6fe448fa fetch 8 ,mem_dg_kb_data_sta_data 
+3794 67e44902 store 8 ,mem_dg_kb_data_last_data 
+3795 202023dd branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_enable_blank_data_forcibly:
+3796 70491601 jam 1 ,mem_dg_kb_blank_data_enable 
+3797 58000180 setarg timer_kb_blank_delay 
+3798 d8e0000e arg timer_kb_blank ,queue 
+3799 20207ca8 branch timer_init 
+
+dongle_g24_kb_disable_blank_data_forcibly:
+379a 70491600 jam 0 ,mem_dg_kb_blank_data_enable 
+379b 58000000 setarg 0 
+379c d8e0000e arg timer_kb_blank ,queue 
+379d 20207ca8 branch timer_init 
+
+dongle_g24_kb_type3:
+379e d8a00c1f arg mem_usb_kb_multikey ,contw 
+379f d8c0489c arg mem_24g_rxdata_temp + 3 ,contr 
+37a0 df200003 arg 3 ,loopcnt 
+37a1 20407ca1 call memcpy 
+37a2 6fe10c20 fetch 2 ,mem_usb_kb_multikey + 1 
+37a3 245a37ae ncall dongle_g24_kb_mul_enable_blank_data_forcibly ,blank 
+37a4 6fe10c20 fetch 2 ,mem_usb_kb_multikey + 1 
+37a5 205a37b2 call dongle_g24_kb_mul_disable_blank_data_forcibly ,blank 
+37a6 6fe18c1f fetch 3 ,mem_usb_kb_multikey 
+37a7 67e1c90a store 3 ,mem_dg_kb_multikey_sta_data 
+37a8 6849c90d fetcht 3 ,mem_dg_kb_multikey_last_data 
+37a9 98467c00 isub temp ,null 
+37aa 2442b6fe ncall dongle_usb_tx_multikey_data ,zero 
+37ab 6fe1c90a fetch 3 ,mem_dg_kb_multikey_sta_data 
+37ac 67e1c90d store 3 ,mem_dg_kb_multikey_last_data 
+37ad 202023dd branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_mul_enable_blank_data_forcibly:
+37ae 70491701 jam 1 ,mem_dg_kb_mul_blank_data_enable 
+37af 58000180 setarg timer_kb_mul_blank_delay 
+37b0 d8e0000c arg timer_kb_mul_blank ,queue 
+37b1 20207ca8 branch timer_init 
+
+dongle_g24_kb_mul_disable_blank_data_forcibly:
+37b2 70491700 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+37b3 58000000 setarg 0 
+37b4 d8e0000c arg timer_kb_mul_blank ,queue 
+37b5 20207ca8 branch timer_init 
+
+dongle_g24_kb_type2:
+37b6 d8a00c2f arg mem_usb_kb_system ,contw 
+37b7 d8c0489c arg mem_24g_rxdata_temp + 3 ,contr 
+37b8 df200002 arg 2 ,loopcnt 
+37b9 20407ca1 call memcpy 
+37ba 6fe10c2f fetch 2 ,mem_usb_kb_system 
+37bb 245a37c6 ncall dongle_g24_kb_sys_enable_blank_data_forcibly ,blank 
+37bc 6fe10c2f fetch 2 ,mem_usb_kb_system 
+37bd 205a37ca call dongle_g24_kb_sys_disable_blank_data_forcibly ,blank 
+37be 6fe10c2f fetch 2 ,mem_usb_kb_system 
+37bf 67e14910 store 2 ,mem_dg_kb_system_sta_data 
+37c0 68494913 fetcht 2 ,mem_dg_kb_system_last_data 
+37c1 98467c00 isub temp ,null 
+37c2 2442b7ce ncall dongle_usb_tx_sys_data ,zero 
+37c3 6fe14910 fetch 2 ,mem_dg_kb_system_sta_data 
+37c4 67e14913 store 2 ,mem_dg_kb_system_last_data 
+37c5 202023dd branch g24_rx_interrupt_clear 
+
+dongle_g24_kb_sys_enable_blank_data_forcibly:
+37c6 70491701 jam 1 ,mem_dg_kb_mul_blank_data_enable 
+37c7 58000180 setarg timer_kb_mul_blank_delay 
+37c8 d8e0000c arg timer_kb_mul_blank ,queue 
+37c9 20207ca8 branch timer_init 
+
+dongle_g24_kb_sys_disable_blank_data_forcibly:
+37ca 70491700 jam 0 ,mem_dg_kb_mul_blank_data_enable 
+37cb 58000000 setarg 0 
+37cc d8e0000c arg timer_kb_mul_blank ,queue 
+37cd 20207ca8 branch timer_init 
+
+dongle_usb_tx_sys_data:
+37ce 700bf822 jam usb_ep2_systemkey ,mem_usb_ep2_data 
+37cf 202036e1 branch dongle_usb_tx_enable_ep2 
+
+dongle_g24_store_dvc2_bind_flag:
+37d0 6fe0c09a fetch 1 ,mem_device_option 
+37d1 c1820000 rtnne dvc_op_dongle 
+37d2 6fe0c8f9 fetch 1 ,mem_dg_kb_bind_flag 
+37d3 c12d0000 rtneq dongle_kb_bind_success 
+
+dongle_prep_soft_reset:
+37d4 70494201 jam 1 ,mem_dg_kb_bind_success 
+37d5 20600000 rtn 
+
+dongle_kb_bind_soft_reset:
+37d6 6fe0c09a fetch 1 ,mem_device_option 
+37d7 c1820000 rtnne dvc_op_dongle 
+37d8 6fe0c942 fetch 1 ,mem_dg_kb_bind_success 
+37d9 207a0000 rtn blank 
+37da 70096400 jam 0 ,mem_temp 
+
+dongle_wirte_efuse_bind_status:
+37db 7048f95a jam dongle_kb_bind_success ,mem_dg_kb_bind_flag 
+37dc 204036a5 call dongle_write_kb_bind_status 
+37dd 204036a1 call dongle_read_kb_bind_status 
+37de 6fe08964 fetch 1 ,mem_temp 
+37df 1fe0fe01 increase 1 ,pdata 
+37e0 67e08964 store 1 ,mem_temp 
+37e1 c07fdc7b beq 0xff ,soft_reset_chip 
+37e2 6fe0c8f9 fetch 1 ,mem_dg_kb_bind_flag 
+37e3 c0ad37db bne dongle_kb_bind_success ,dongle_wirte_efuse_bind_status 
+37e4 20205c7b branch soft_reset_chip 
+
+module_init:
+37e5 20758000 rtn wake 
+37e6 20401a36 call le_modified_name 
+37e7 5800382c setarg module_process_idle 
+37e8 67e14468 store 2 ,mem_cb_idle_process 
+37e9 58003819 setarg module_bt_conn_process 
+37ea 67e14466 store 2 ,mem_cb_bt_process 
+37eb 58003830 setarg module_process_bb_event 
+37ec 67e1446a store 2 ,mem_cb_bb_event_process 
+37ed 58003815 setarg module_lpm_lock 
+37ee 67e1445e store 2 ,mem_cb_check_wakelock 
+37ef 58003969 setarg module_hci_cmd_transmit_le_notify 
+37f0 67e14470 store 2 ,mem_cb_ble_transmit 
+37f1 58003b65 setarg module_hci_event_receive_spp_data 
+37f2 67e14661 store 2 ,mem_cb_receive_spp_data 
+37f3 58003c08 setarg module_le_receive_data 
+37f4 67e1446e store 2 ,mem_cb_att_write 
+37f5 58003c1f setarg module_bb_event_timer 
+37f6 67e14472 store 2 ,mem_cb_event_timer 
+37f7 20403829 call module_spp_clear_last_transmite_clock 
+37f8 44de4017 bpatch patch17_4 ,mem_patch17 
+37f9 204037fc call module_lpm_uart_init 
+37fa 20403810 call module_gpio_init 
+37fb 20203b7b branch module_hci_event_enter_standby_mode 
+
+module_lpm_uart_init:
+37fc 6ff08060 fetch 1 ,core_uart_ctrl 
+37fd 793ffe00 set0 bit_uart_control_enable ,pdata 
+37fe 67f08060 store 1 ,core_uart_ctrl 
+37ff 6fe447bb fetch 8 ,mem_module_uart_rx_buffer 
+3800 20405dd6 call uarta_init_dma_mem 
+3801 6fe147c3 fetch uart_baud_len ,mem_module_uarta_baud_rate 
+3802 20405dea call uarta_init_baud_rate 
+3803 20405dfd call uart_clock_select_main_freq_crystal 
+3804 70807d08 jam gpcfg_uart_txd ,core_gpio_conf + hci_uart_tx_gpio_num 
+3805 70807e49 jam gpcfg_uart_rxd | gpcfg_pullup ,core_gpio_conf + hci_uart_rx_gpio_num 
+3806 7080790a jam gpcfg_uart_rts ,core_gpio_conf + hci_uart_rts_gpio_num 
+3807 70807a0b jam gpcfg_uart_cts ,core_gpio_conf + hci_uart_cts_gpio_num 
+3808 d8400081 arg fun_uart_control_enable | fun_uart_control_setting_rate_baud ,temp 
+3809 6fe147ca fetch 2 ,mem_module_flag 
+380a 2feffe00 isolate1 module_flag_uart_flow_control ,pdata 
+380b 79208404 setflag true ,bit_uart_control_flow_control ,temp 
+380c 60588060 storet 1 ,core_uart_ctrl 
+380d 20600000 rtn 
+
+module_lpm_init:
+380e 20403829 call module_spp_clear_last_transmite_clock 
+380f 202037fc branch module_lpm_uart_init 
+
+module_gpio_init:
+3810 6848c7af fetcht 1 ,mem_module_connect_state_gpio 
+3811 20405f8d call gpio_config_output 
+3812 20403893 call module_set_conn_pin_low 
+3813 6848c7ad fetcht 1 ,mem_module_wake_up_gpio 
+3814 20205f74 branch gpio_config_input 
+
+module_lpm_lock:
+3815 6848c7ad fetcht 1 ,mem_module_wake_up_gpio 
+3816 20405f7d call gpio_get_bit 
+3817 2420b224 nbranch app_put_lpm_wake_lock ,true 
+3818 20203222 branch app_get_lpm_wake_lock 
+
+module_bt_conn_process:
+3819 2040381b call module_spp_enter_sniff 
+381a 20203c2f branch module_control_air_flow 
+
+module_spp_enter_sniff:
+381b 6fe0c793 fetch 1 ,mem_ui_state_map 
+381c c3023829 bbit0 ui_state_bt_spp_conn ,module_spp_clear_last_transmite_clock 
+381d 58003eff setarg 0x3eff 
+381e 684a47d2 fetcht 4 ,mem_last_transmite_clock 
+381f 98408400 iadd temp ,temp 
+3820 1c427e00 copy clkn_bt ,pdata 
+3821 98467c00 isub temp ,null 
+3822 24610000 nrtn positive 
+3823 6fe14793 fetch 2 ,mem_ui_state_map 
+3824 c282b829 bbit1 ui_state_bt_sniff ,module_spp_clear_last_transmite_clock 
+3825 6fe147ca fetch 2 ,mem_module_flag 
+3826 c3850000 rtnbit1 moudle_task_sniff 
+3827 20403c32 call module_set_sniff_task_flag 
+3828 20403260 call app_bt_enter_sniff 
+
+module_spp_clear_last_transmite_clock:
+3829 1c427e00 copy clkn_bt ,pdata 
+382a 67e247d2 store 4 ,mem_last_transmite_clock 
+382b 20600000 rtn 
+
+module_process_idle:
+382c 20403c2f call module_control_air_flow 
+382d 2040520e call l2cap_malloc_is_fifo_full 
+382e 247a0000 nrtn blank 
+382f 20203898 branch module_process_check_hci_command_complete 
+
+module_process_bb_event:
+3830 1a627e00 copy regc ,pdata 
+3831 c000b880 beq bt_evt_bb_connected ,module_process_bb_conn 
+3832 c001384f beq bt_evt_bb_disconnected ,module_process_bb_event_disconned 
+3833 c0023883 beq bt_evt_reconn_failed ,module_process_reconn_fail 
+3834 c002b870 beq bt_evt_setup_complete ,module_process_setup_complete 
+3835 c0043856 beq bt_evt_spp_connected ,module_process_spp_connected 
+3836 c004b85d beq bt_evt_spp_disconnected ,module_process_spp_disconnected 
+3837 c0053876 beq bt_evt_pincode_req ,module_process_evt_pincode_req 
+3838 c005b862 beq bt_evt_enter_sniff ,module_process_enter_sniff 
+3839 c006386e beq bt_evt_exit_sniff ,module_process_exit_sniff 
+383a c009b883 beq bt_evt_reconn_page_timeout ,module_process_page_time_out 
+383b c00a387c beq bt_evt_le_connected ,module_process_le_conn 
+383c c00ab872 beq bt_evt_le_disconnected ,module_process_bb_even_le_disconn 
+383d c010b877 beq bt_evt_sniff_not_accept ,module_process_sniff_not_accept 
+383e c011b878 beq bt_evt_unsniff_accept ,module_process_unsniff_accept 
+383f c012387b beq bt_evt_unsniff_not_accept ,module_process_unsniff_not_accept 
+3840 c0183bc3 beq bt_evt_le_pairing_fail ,module_hci_event_le_pairing_fail 
+3841 c018bbc5 beq bt_evt_le_pairing_success ,module_hci_event_le_pairing_success 
+3842 c0193bd3 beq bt_evt_le_start_enc ,module_hci_event_start_enc 
+3843 c019bbd1 beq bt_evt_le_pause_enc ,module_hci_event_pause_enc 
+3844 c01a3bbd beq bt_evt_le_tk_generate ,module_hci_event_le_tk 
+3845 c01abba6 beq bt_evt_bt_gkey_generate ,module_hci_event_gkey_generate 
+3846 c01b3bbb beq bt_evt_bt_get_passkey ,module_hci_event_passkey_entry_mode 
+3847 c01bbbc7 beq bt_evt_bt_pairing_fail ,module_hci_event_bt_pairing_fail 
+3848 c01c3bc9 beq bt_evt_bt_pairing_success ,module_hci_event_bt_pairing_success 
+3849 c01dbba6 beq bt_evt_le_gkey_generate ,module_hci_event_gkey_generate 
+384a c01ebb9d beq bt_evt_store_nvram ,module_hci_event_store_device 
+384b c020b885 beq bt_evt_le_ltk_lost ,module_process_ble_ltk_lost 
+384c c0213887 beq bt_evt_le_update_phy ,module_process_ble_update_phy 
+384d c021bbbb beq bt_evt_le_get_passkey ,module_hci_event_passkey_entry_mode 
+384e 20600000 rtn 
+
+module_process_bb_event_disconned:
+384f 20403829 call module_spp_clear_last_transmite_clock 
+3850 6fe0c776 fetch 1 ,mem_flag_pairing_state 
+3851 245a3bc7 ncall module_hci_event_bt_pairing_fail ,blank 
+3852 20403883 call module_disconn_start 
+3853 6fe14793 fetch 2 ,mem_ui_state_map 
+3854 c4020000 rtnbit0 ui_state_bt_spp_conn 
+3855 2020385d branch module_spp_disconnected 
+
+module_process_spp_connected:
+3856 6fe14793 fetch 2 ,mem_ui_state_map 
+3857 79207e04 set1 ui_state_bt_spp_conn ,pdata 
+3858 67e14793 store 2 ,mem_ui_state_map 
+3859 6fe0c7b8 fetch 1 ,mem_module_spp_lpm_mult 
+385a 67e0c177 store 1 ,mem_lpm_mult 
+385b 20403893 call module_set_conn_pin_low 
+385c 20203b50 branch module_hci_event_spp_connect 
+
+module_process_spp_disconnected:
+
+module_spp_disconnected:
+385d 6fe14793 fetch 2 ,mem_ui_state_map 
+385e c4020000 rtnbit0 ui_state_bt_spp_conn 
+385f 793ffe04 set0 ui_state_bt_spp_conn ,pdata 
+3860 67e14793 store 2 ,mem_ui_state_map 
+3861 20203b54 branch module_hci_event_spp_disconnect 
+
+module_process_enter_sniff:
+
+module_sniff_param_check:
+3862 20403829 call module_spp_clear_last_transmite_clock 
+3863 6fe14042 fetch 2 ,mem_context + coffset_tsniff 
+3864 1fe37e00 rshift pdata ,pdata 
+3865 68494458 fetcht 2 ,mem_sniff_param_interval 
+3866 98467c00 isub temp ,null 
+3867 2422b869 nbranch module_sniff_param_check_unsniff ,zero 
+3868 20203268 branch app_lpm_mult_enable 
+
+module_sniff_param_check_unsniff:
+3869 6fe147ca fetch 2 ,mem_module_flag 
+386a c3848000 rtnbit1 moudle_task_unsniff 
+386b 6ff10112 fetch 2 ,core_uart_rxitems 
+386c 245a3c36 ncall module_set_unsniff_task_flag ,blank 
+386d 2020325e branch app_bt_sniff_exit 
+
+module_process_exit_sniff:
+386e 20403c34 call module_clear_sniff_task_flag 
+386f 2020326a branch app_lpm_mult_disable 
+
+module_process_setup_complete:
+3870 20403829 call module_spp_clear_last_transmite_clock 
+3871 2020388a branch module_conn_start 
+
+module_process_bb_even_le_disconn:
+3872 20401aa9 call le_clr_config_more_data 
+3873 7047cc00 jam 0 ,mem_module_hci_notify_len 
+3874 20403883 call module_disconn_start 
+3875 20203b56 branch module_hci_event_le_disconnect 
+
+module_process_evt_pincode_req:
+3876 2020322f branch app_bt_set_pincode 
+
+module_process_sniff_not_accept:
+3877 20203c34 branch module_clear_sniff_task_flag 
+
+module_process_unsniff_accept:
+3878 6fe147ca fetch 2 ,mem_module_flag 
+3879 c304b260 bbit0 moudle_task_unsniff ,app_bt_enter_sniff 
+387a 20203c38 branch module_clear_unsniff_task_flag 
+
+module_process_unsniff_not_accept:
+387b 20203c38 branch module_clear_unsniff_task_flag 
+
+module_process_le_conn:
+387c 2040388a call module_conn_start 
+387d 6fe0c7b9 fetch 1 ,mem_module_le_lpm_mult 
+387e 67e0c177 store 1 ,mem_lpm_mult 
+387f 20203b52 branch module_hci_event_le_connect 
+
+module_process_bb_conn:
+3880 70477200 jam 0 ,mem_flag_mode_ssp_pin 
+3881 20403c34 call module_clear_sniff_task_flag 
+3882 20203c38 branch module_clear_unsniff_task_flag 
+
+module_process_page_time_out:
+
+module_process_reconn_fail:
+
+module_disconn_start:
+3883 20403900 call module_start_adv_discovery_by_command 
+3884 20203888 branch module_set_conn_pin_high 
+
+module_process_ble_ltk_lost:
+3885 20402143 call le_send_reject_ind 
+3886 20201f27 branch le_send_smp_security_request 
+
+module_process_ble_update_phy:
+3887 20203be9 branch module_hci_event_le_update_phy 
+
+module_set_conn_pin_high:
+3888 6848c7af fetcht 1 ,mem_module_connect_state_gpio 
+3889 20205f8d branch gpio_out_active 
+
+module_conn_start:
+388a 2040388c call module_stop_adv_discovery 
+388b 20203893 branch module_set_conn_pin_low 
+
+module_stop_adv_discovery:
+388c 6fe0c7b2 fetch 1 ,mem_module_state 
+388d 2feffe00 isolate1 moudle_state_bt_bit ,pdata 
+388e 2040b242 call app_bt_stop_discovery ,true 
+388f 6fe0c7b2 fetch 1 ,mem_module_state 
+3890 2feffe01 isolate1 moudle_state_ble_bit ,pdata 
+3891 2040b24a call app_ble_stop_adv ,true 
+3892 20600000 rtn 
+
+module_set_conn_pin_low:
+3893 6848c7af fetcht 1 ,mem_module_connect_state_gpio 
+3894 20205f89 branch gpio_out_inactive 
+
+module_process_with_credit:
+3895 6fe0c65d fetch 1 ,mem_rfcomm_credit_flag 
+3896 c1000000 rtneq credit_disable 
+3897 202063e9 branch rfcomm_send_uih_without_payload 
+
+module_process_check_hci_command_complete:
+3898 6ff0810b fetch 1 ,core_uart_status 
+3899 c2813895 bbit1 uart_status_rx_fifo_empty ,module_process_with_credit 
+389a 20405e1d call uarta_prepare_rx 
+389b efe08003 ifetch 1 ,contru 
+389c c080b8ae bne 0x01 ,module_hci_in_excp 
+389d 6ff10112 fetch 2 ,core_uart_rxitems 
+389e 1fe67c02 sub pdata ,2 ,null 
+389f 20610000 rtn positive 
+38a0 efe08003 ifetch 1 ,contru 
+38a1 67e089cf store 1 ,mem_module_uart_opcode 
+38a2 e8408003 ifetcht 1 ,contru 
+38a3 18622200 copy contru ,rega 
+38a4 604889d0 storet 1 ,mem_module_uart_len 
+38a5 18408403 add temp ,3 ,temp 
+38a6 6ff10112 fetch 2 ,core_uart_rxitems 
+38a7 98460400 isub temp ,temp 
+38a8 24610000 nrtn positive 
+38a9 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+38aa 204038bc call module_hci_cmd_control 
+38ab 6fe089d1 fetch 1 ,mem_module_temp_nl_discard_packet 
+38ac c1000000 rtneq hci_not_discard_packet 
+38ad 202038b7 branch module_hci_dicard_packet 
+
+module_hci_in_excp:
+38ae 20407c52 call delay_10ms 
+38af 20403bac call module_hci_event_invalid_packet 
+38b0 202038b1 branch module_hci_release_except 
+
+module_hci_release_except:
+38b1 44dec017 bpatch patch17_5 ,mem_patch17 
+38b2 20405e1d call uarta_prepare_rx 
+38b3 6ff10112 fetch 2 ,core_uart_rxitems 
+38b4 207a0000 rtn blank 
+38b5 98608600 iadd contru ,contru 
+38b6 202038bb branch module_hci_dicard_bytes 
+
+module_hci_dicard_packet:
+38b7 20405e1d call uarta_prepare_rx 
+38b8 18608602 increase 2 ,contu 
+38b9 efe08003 ifetch 1 ,contu 
+38ba 98608600 iadd contu ,contu 
+
+module_hci_dicard_bytes:
+38bb 20205e29 branch uarta_rxdone 
+
+module_hci_cmd_control:
+38bc 44df4017 bpatch patch17_6 ,mem_patch17 
+38bd 6fe089cf fetch 1 ,mem_module_uart_opcode 
+38be c00038ee beq hci_cmd_set_bt_addr_req ,module_hci_cmd_set_bt_addr 
+38bf c000b8f3 beq hci_cmd_set_le_addr_req ,module_hci_cmd_set_le_addr 
+38c0 c00138f8 beq hci_cmd_set_visibility_req ,module_hci_cmd_set_visibility 
+38c1 c001b90d beq hci_cmd_set_bt_name_req ,module_hci_cmd_set_bt_name 
+38c2 c0023917 beq hci_cmd_set_le_name_req ,module_hci_cmd_set_le_name 
+38c3 c002b91b beq hci_cmd_spp_data_req ,module_hci_cmd_receive_spp_data 
+38c4 c004b93d beq hci_cmd_le_data_req ,module_hci_cmd_receive_le_data 
+38c5 c005b994 beq hci_cmd_status_irq ,module_hci_cmd_inquire_status 
+38c6 c0063995 beq hci_cmd_set_pairing_req ,module_hci_cmd_set_pairing_mode 
+38c7 c006b9b9 beq hci_cmd_set_pincode_req ,module_hci_cmd_set_pincode 
+38c8 c00739bc beq hci_cmd_set_uartcontrol_req ,module_hci_cmd_set_uart_control_mode 
+38c9 c007b9c4 beq hci_cmd_set_uart_baud_req ,module_hci_cmd_set_uart_baud 
+38ca c00839cc beq hci_cmd_version_req ,module_hci_cmd_version_request 
+38cb c008b9d0 beq hci_cmd_bt_disconnect ,module_hci_cmd_bt_disconnect 
+38cc c00939d4 beq hci_cmd_ble_disconnect ,module_hci_cmd_ble_disconnect 
+38cd c00ab9d8 beq hci_cmd_set_cod ,module_hci_cmd_set_cod 
+38ce c01339dd beq hci_cmd_set_nvram_req ,module_hci_cmd_set_nvram 
+38cf c01439e2 beq hci_cmd_confirm_gkey ,module_hci_cmd_confirm_gkey 
+38d0 c014b9f2 beq hci_cmd_set_credit_given ,module_hci_cmd_set_credit_given 
+38d1 c01539fb beq hci_cmd_auto_adv_scan ,module_hci_cmd_auto_adv 
+38d2 c015ba2e beq hci_cmd_power_req ,module_hci_cmd_power_request 
+38d3 c0163a34 beq hci_cmd_power_set ,module_hci_cmd_power_set 
+38d4 c0183a3b beq hci_cmd_passkey_entry ,module_hci_cmd_passkey_entry 
+38d5 c018ba45 beq hci_cmd_set_gpio ,module_hci_cmd_set_gpio 
+38d6 c0193a56 beq hci_cmd_read_gpio ,module_hci_cmd_read_gpio 
+38d7 c019ba61 beq hci_cmd_le_set_pairing ,module_hci_cmd_le_set_pairing_mode 
+38d8 c01a3a8e beq hci_cmd_le_set_adv_data ,module_hci_cmd_le_set_adv_data 
+38d9 c01aba91 beq hci_cmd_le_set_scan_data ,module_hci_cmd_le_set_scan_data 
+38da c01b3a9a beq hci_cmd_le_send_conn_update_req ,module_hci_cmd_le_send_conn_update_req 
+38db c01bbaa3 beq hci_cmd_le_set_adv_parm ,module_hci_cmd_set_le_adv_parameter 
+38dc c01c3aa6 beq hci_cmd_le_start_pairing ,module_hci_cmd_le_start_pairing 
+38dd c0203aae beq hci_cmd_set_wake_gpio ,module_hci_cmd_set_wake_gpio 
+38de c0213ab8 beq hci_cmd_set_tx_power ,module_hci_cmd_set_tx_power 
+38df c0243abd beq hci_cmd_le_confirm_gkey ,module_hci_cmd_le_confirm_gkey 
+38e0 c024bac8 beq hci_cmd_reject_justwork ,module_hci_cmd_set_reject_justwork_flag 
+38e1 c028bace beq hci_cmd_reset_chip_req ,module_hci_cmd_reset_chip 
+38e2 c030bad2 beq hci_cmd_le_set_fixed_passkey ,module_hci_cmd_le_set_fixed_passkey 
+38e3 c03b3ae1 beq hci_cmd_delete_customize_service ,module_hci_cmd_delete_customize_service 
+38e4 c03bbae7 beq hci_cmd_add_service_uuid ,module_hci_cmd_add_service_uuid 
+38e5 c03c3aec beq hci_cmd_add_characteristic_uuid ,module_hci_cmd_add_characteristic_uuid 
+38e6 c03d3b22 beq hci_cmd_passkey_entry_input ,module_hci_cmd_le_passkey_entry_input 
+38e7 c0483b30 beq hci_cmd_ble_set_phy ,module_hci_cmd_ble_set_phy 
+38e8 c048bb35 beq hci_cmd_ble_read_current_phy ,module_hci_cmd_ble_read_current_phy 
+38e9 c0493b39 beq hci_cmd_ble_set_dle ,module_hci_cmd_ble_set_dle 
+38ea c049bb3e beq hci_cmd_read_chip_data ,module_hci_cmd_read_chip_data 
+38eb c04a3b42 beq hci_cmd_write_chip_data ,module_hci_cmd_write_chip_data 
+38ec c07fbb48 beq hci_cmd_close_lpm ,module_hci_cmd_close_lpm 
+38ed 20203b4a branch module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_set_bt_addr:
+38ee 6fe089d0 fetch 1 ,mem_module_uart_len 
+38ef c0833b4a bne 6 ,module_hci_event_receive_invalid_cmd 
+38f0 efe30003 ifetch 6 ,contru 
+38f1 67e340a8 store 6 ,mem_lap 
+38f2 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_le_addr:
+38f3 6fe089d0 fetch 1 ,mem_module_uart_len 
+38f4 c0833b4a bne 6 ,module_hci_event_receive_invalid_cmd 
+38f5 efe30003 ifetch 6 ,contru 
+38f6 67e3437d store 6 ,mem_le_lap 
+38f7 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_visibility:
+38f8 6fe089d0 fetch 1 ,mem_module_uart_len 
+38f9 c080bb4a bne 1 ,module_hci_event_receive_invalid_cmd 
+38fa e8408003 ifetcht 1 ,contru 
+38fb 6048c7ba storet 1 ,mem_module_bluetooth_stauts_by_command 
+38fc 20403b4d call module_hci_event_receive_valid_cmd 
+38fd 6fe14793 fetch 2 ,mem_ui_state_map 
+38fe c3848000 rtnbit1 ui_state_ble_connected 
+38ff c3800000 rtnbit1 ui_state_bt_connected 
+
+module_start_adv_discovery_by_command:
+3900 6fe0c7b2 fetch 1 ,mem_module_state 
+3901 2feffe00 isolate1 moudle_state_bt_bit ,pdata 
+3902 2420b906 nbranch moudle_start_adv_by_command ,true 
+3903 6848c7ba fetcht 1 ,mem_module_bluetooth_stauts_by_command 
+3904 18417e03 and temp ,0x03 ,pdata 
+3905 67e0c09b store 1 ,mem_scan_mode 
+
+moudle_start_adv_by_command:
+3906 6fe0c7b2 fetch 1 ,mem_module_state 
+3907 2feffe01 isolate1 moudle_state_ble_bit ,pdata 
+3908 24608000 nrtn true 
+3909 6848c7ba fetcht 1 ,mem_module_bluetooth_stauts_by_command 
+390a 284ffe02 isolate1 2 ,temp 
+390b 2020b24c branch app_ble_start_adv ,true 
+390c 2020324a branch app_ble_stop_adv 
+
+module_hci_cmd_set_bt_name:
+390d 6fe089d0 fetch 1 ,mem_module_uart_len 
+390e 1fe67c43 sub pdata ,67 ,null 
+390f 24213b4a nbranch module_hci_event_receive_invalid_cmd ,positive 
+3910 67e0c603 store 1 ,mem_local_name_length 
+3911 df200008 arg 8 ,loopcnt 
+3912 20407c59 call memset0 
+3913 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+3914 d8a04604 arg mem_local_name ,contw 
+3915 20405e5f call uart_copy_rx_bytes_fast 
+3916 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_le_name:
+3917 dfe0001d arg 29 ,pdata 
+3918 d8a042fa arg mem_le_name_len ,contw 
+3919 20403a94 call module_hci_cmd_receive_store_mem 
+391a 20201a36 branch le_modified_name 
+
+module_hci_cmd_receive_spp_data:
+391b 6fe0c793 fetch 1 ,mem_ui_state_map 
+391c c3023b4a bbit0 ui_state_bt_spp_conn ,module_hci_event_receive_invalid_cmd 
+391d 2040321c call app_check_sniff 
+391e 2020b92b branch module_hci_cmd_spp_exit_sniff ,true 
+391f 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+3920 20403829 call module_spp_clear_last_transmite_clock 
+3921 6fe0c65a fetch 1 ,mem_remote_credits 
+3922 207a0000 rtn blank 
+3923 6fe14665 fetch 2 ,mem_nl_rx_len_all 
+3924 243a3929 nbranch module_hci_cmd_pass_init_ng_rx_len_all ,blank 
+3925 6fe089d0 fetch 1 ,mem_module_uart_len 
+3926 67e14665 store 2 ,mem_nl_rx_len_all 
+3927 67e14663 store 2 ,mem_nl_rx_data_src 
+3928 60614663 storer contru ,2 ,mem_nl_rx_data_src 
+
+module_hci_cmd_pass_init_ng_rx_len_all:
+3929 2040392d call module_hci_cmd_get_current_packet_len_and_remain_len 
+392a 2020640e branch spp_tx_rfcomm_packet 
+
+module_hci_cmd_spp_exit_sniff:
+392b 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+392c 20203c19 branch module_exit_sniff 
+
+module_hci_cmd_get_current_packet_len_and_remain_len:
+392d 20403933 call module_hci_cmd_get_current_patcket_len 
+392e 6fe14665 fetch 2 ,mem_nl_rx_len_all 
+392f 684947b0 fetcht 2 ,mem_current_packet_length 
+3930 98467e00 isub temp ,pdata 
+3931 67e14665 store 2 ,mem_nl_rx_len_all 
+3932 20600000 rtn 
+
+module_hci_cmd_get_current_patcket_len:
+3933 6fe14665 fetch 2 ,mem_nl_rx_len_all 
+3934 6849465e fetcht 2 ,mem_rfcomm_max_frame_size 
+3935 20407d88 call not_greater_than 
+3936 68494650 fetcht 2 ,mem_pn_max_frame_size 
+3937 20407d88 call not_greater_than 
+3938 67e147b0 store 2 ,mem_current_packet_length 
+3939 20600000 rtn 
+
+module_hci_command_tx_spp_tx_complete:
+393a 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+393b 7009cf05 jam hci_cmd_spp_data_req ,mem_module_uart_opcode 
+393c 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_receive_le_data:
+393d 6fe14793 fetch 2 ,mem_ui_state_map 
+393e c304bb4a bbit0 ui_state_ble_connected ,module_hci_event_receive_invalid_cmd 
+393f 20403991 call module_check_ble_encrypt_state 
+3940 20343b4a branch module_hci_event_receive_invalid_cmd ,user 
+3941 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+3942 6fe147ca fetch 2 ,mem_module_flag 
+3943 c2843962 bbit1 module_flag_ble_data_finish ,module_hci_cmd_receive_le_data_finish 
+3944 6fe0c7cc fetch 1 ,mem_module_hci_notify_len 
+3945 247a0000 nrtn blank 
+3946 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+3947 efe10003 ifetch 2 ,contru 
+3948 67e147cd store 2 ,mem_module_hci_notify_handle 
+3949 606147cf storer contru ,2 ,mem_module_hci_nofiy_addr 
+394a 6fe089d0 fetch 1 ,mem_module_uart_len 
+394b 1fe0fffe pincrease -2 
+394c 24213b4a nbranch module_hci_event_receive_invalid_cmd ,positive 
+394d 2022bb4a branch module_hci_event_receive_invalid_cmd ,zero 
+394e 67e0c7cc store 1 ,mem_module_hci_notify_len 
+394f 684947cd fetcht 2 ,mem_module_hci_notify_handle 
+3950 184085ff increase -1 ,temp 
+3951 204019f2 call le_att_get_handle_ptr2 
+3952 203a3965 branch module_hci_cmd_transmit_handle_error ,blank 
+3953 e8420006 ifetcht 4 ,contr 
+3954 59280302 setarg 0x01280302 
+3955 98467c00 isub temp ,null 
+3956 2422b965 nbranch module_hci_cmd_transmit_handle_error ,zero 
+3957 efe08006 ifetch 1 ,contr 
+3958 67e0c7d1 store 1 ,mem_module_hci_notify_type 
+3959 1fe17e30 and_into 0x30 ,pdata 
+395a 203a3965 branch module_hci_cmd_transmit_handle_error ,blank 
+395b 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+395c 20401aa7 call le_set_config_more_data 
+395d 20403969 call module_hci_cmd_transmit_le_notify 
+395e 20403969 call module_hci_cmd_transmit_le_notify 
+395f 20403969 call module_hci_cmd_transmit_le_notify 
+3960 6fe147ca fetch 2 ,mem_module_flag 
+3961 c4040000 rtnbit0 module_flag_ble_data_finish 
+
+module_hci_cmd_receive_le_data_finish:
+3962 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+3963 20403c3c call module_clear_le_tx_data_flag 
+3964 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_transmit_handle_error:
+3965 7047cc00 jam 0 ,mem_module_hci_notify_len 
+3966 7009d101 jam hci_discard_packet ,mem_module_temp_nl_discard_packet 
+3967 20403c3c call module_clear_le_tx_data_flag 
+3968 20203b4a branch module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_transmit_le_notify:
+3969 6fe0c7cc fetch 1 ,mem_module_hci_notify_len 
+396a 207a0000 rtn blank 
+396b 20401b05 call le_fifo_check_nearly_full 
+396c 247a0000 nrtn blank 
+396d 2040398c call module_get_le_remote_mtu 
+396e 44dfc017 bpatch patch17_7 ,mem_patch17 
+396f 6fe14383 fetch 2 ,mem_le_local_mtu 
+3970 20407d88 call not_greater_than 
+3971 1fe20400 copy pdata ,temp 
+3972 6fe0c438 fetch 1 ,mem_le_l2cap_att_states 
+3973 c3800000 rtnbit1 ble_l2cap_recv_confirmation_packet 
+3974 1840fffd add temp ,-3 ,pdata 
+3975 d84000fb arg 251 ,temp 
+3976 20407d88 call not_greater_than 
+3977 6848c7cc fetcht 1 ,mem_module_hci_notify_len 
+3978 20407d88 call not_greater_than 
+3979 1fe22200 copy pdata ,rega 
+397a 18427e00 copy temp ,pdata 
+397b 9a267e00 isub rega ,pdata 
+397c 67e0c7cc store 1 ,mem_module_hci_notify_len 
+397d 20403987 call module_hci_cmd_transmit_le_notify_malloc_l2cap 
+397e 6fe147cf fetch 2 ,mem_module_hci_nofiy_addr 
+397f 1fe20600 copy pdata ,contru 
+3980 1a227200 copy rega ,loopcnt 
+3981 20405e5f call uart_copy_rx_bytes_fast 
+3982 18627e00 copy contru ,pdata 
+3983 67e147cf store 2 ,mem_module_hci_nofiy_addr 
+3984 6fe0c7cc fetch 1 ,mem_module_hci_notify_len 
+3985 247a0000 nrtn blank 
+3986 20203c3a branch module_set_le_tx_data_flag 
+
+module_hci_cmd_transmit_le_notify_malloc_l2cap:
+3987 684947cd fetcht 2 ,mem_module_hci_notify_handle 
+3988 6fe0c7d1 fetch 1 ,mem_module_hci_notify_type 
+3989 c2829e49 bbit1 bit_characteristic_indicate ,le_att_malloc_tx_indication 
+398a c2821e40 bbit1 bit_characteristic_notify ,le_att_malloc_tx_notify 
+398b 20600000 rtn 
+
+module_get_le_remote_mtu:
+398c d8400017 arg 0x17 ,temp 
+398d 6fe147ca fetch 2 ,mem_module_flag 
+398e c3808000 rtnbit1 module_flag_ble_send_mtu23 
+398f 68494385 fetcht 2 ,mem_le_remote_mtu 
+3990 20600000 rtn 
+
+module_check_ble_encrypt_state:
+3991 6fe147ca fetch 2 ,mem_module_flag 
+3992 c2811e1a bbit1 module_flag_ble_data_encrypt ,le_check_encrypt_state 
+3993 20207d94 branch disable_user 
+
+module_hci_cmd_inquire_status:
+3994 20203b7f branch module_hci_event_status_res 
+
+module_hci_cmd_set_pairing_mode:
+3995 efe08003 ifetch 1 ,contru 
+3996 c040b9a2 beq br_pairing_mode_secure_connect_justwork ,module_hci_pairing_just_work_sc 
+3997 c04139a4 beq br_pairing_mode_secure_connect_passkey ,module_hci_pairing_passkey_sc 
+3998 c041b9a6 beq br_pairing_mode_secure_connect_numeric ,module_hci_pairing_numeric_comparison_sc 
+3999 1fe22200 copy pdata ,rega 
+399a 20406df1 call sp_br_secure_connection_disable 
+399b 2040747a call sc_reset 
+399c 1a227e00 copy rega ,pdata 
+399d c00039a8 beq br_pairing_mode_pincode ,module_hci_pairing_pincode_mode 
+399e c000b9ab beq br_pairing_mode_justwork ,module_hci_pairing_just_work_mode 
+399f c00139b5 beq br_pairing_mode_passkey ,module_hci_pairing_passkey 
+39a0 c001b9b7 beq br_pairing_mode_numeric ,module_hci_pairing_numeric_comparison 
+39a1 20203b4a branch module_hci_event_receive_invalid_cmd 
+
+module_hci_pairing_just_work_sc:
+39a2 20406ded call sp_br_secure_connection_enable 
+39a3 202039ab branch module_hci_pairing_just_work_mode 
+
+module_hci_pairing_passkey_sc:
+39a4 20406ded call sp_br_secure_connection_enable 
+39a5 202039b5 branch module_hci_pairing_passkey 
+
+module_hci_pairing_numeric_comparison_sc:
+39a6 20406ded call sp_br_secure_connection_enable 
+39a7 202039b7 branch module_hci_pairing_numeric_comparison 
+
+module_hci_pairing_pincode_mode:
+39a8 20406df8 call sp_reset 
+39a9 70476b00 jam 0 ,mem_ssp_enable 
+39aa 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_pairing_just_work_mode:
+39ab 58000003 setarg io_capability_no_input_no_output 
+
+module_hci_sspairing_mode:
+39ac 67e0c773 store 1 ,mem_ssp_mode_flag 
+39ad 67e0c76c store 1 ,mem_lmp_io_cap_payload_iocap 
+39ae 58000000 setarg oob_data_present_not_present 
+39af 67e0c76d store 1 ,mem_lmp_io_cap_payload_oob_auth_data 
+39b0 58000004 setarg auth_req_mitm_protection_not_required_general_bonding 
+39b1 67e0c76e store 1 ,mem_lmp_io_cap_payload_auth_req 
+39b2 204056cb call ssp_enable 
+39b3 70476b01 jam 1 ,mem_ssp_enable 
+39b4 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_pairing_passkey:
+39b5 58000002 setarg io_capability_keyboard_only 
+39b6 202039ac branch module_hci_sspairing_mode 
+
+module_hci_pairing_numeric_comparison:
+39b7 58000001 setarg io_capability_display_yesno 
+39b8 202039ac branch module_hci_sspairing_mode 
+
+module_hci_cmd_set_pincode:
+39b9 dfe00010 arg 16 ,pdata 
+39ba d8a0479a arg mem_pin_length ,contw 
+39bb 20203a94 branch module_hci_cmd_receive_store_mem 
+
+module_hci_cmd_set_uart_control_mode:
+39bc efe08003 ifetch 1 ,contru 
+39bd 6848c7ca fetcht 1 ,mem_module_flag 
+39be 7d3a0400 nsetflag blank ,module_flag_uart_flow_control ,temp 
+39bf 6048c7ca storet 1 ,mem_module_flag 
+39c0 68588060 fetcht 1 ,core_uart_ctrl 
+39c1 7d3a0404 nsetflag blank ,bit_uart_control_flow_control ,temp 
+39c2 60588060 storet 1 ,core_uart_ctrl 
+39c3 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_uart_baud:
+39c4 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+39c5 20407cfa call string2dec_from_uart 
+39c6 20405df2 call uart_calc_baud_rate_config 
+39c7 67e147c3 store uart_baud_len ,mem_module_uarta_baud_rate 
+39c8 20403b4d call module_hci_event_receive_valid_cmd 
+39c9 20407d49 call wait_uarttx 
+39ca 6fe147c3 fetch uart_baud_len ,mem_module_uarta_baud_rate 
+39cb 20205dea branch uarta_init_baud_rate 
+
+module_hci_cmd_version_request:
+39cc da200002 arg 2 ,rega 
+39cd da4047ab arg mem_soft_version_num ,regb 
+39ce d8400000 arg 0 ,temp 
+39cf 20203b58 branch module_hci_event_set_cmd 
+
+module_hci_cmd_bt_disconnect:
+39d0 6fe14793 fetch 2 ,mem_ui_state_map 
+39d1 c3003b4a bbit0 ui_state_bt_connected ,module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_bt_disconnect_doing:
+39d2 20403b4d call module_hci_event_receive_valid_cmd 
+39d3 2020323b branch app_bt_disconnect 
+
+module_hci_cmd_ble_disconnect:
+39d4 6fe14793 fetch 2 ,mem_ui_state_map 
+39d5 c304bb4a bbit0 ui_state_ble_connected ,module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_ble_disconnect_doing:
+39d6 20403b4d call module_hci_event_receive_valid_cmd 
+39d7 20203254 branch app_ble_disconnect 
+
+module_hci_cmd_set_cod:
+39d8 6fe089d0 fetch 1 ,mem_module_uart_len 
+39d9 c081bb4a bne 3 ,module_hci_event_receive_invalid_cmd 
+39da efe18003 ifetch 3 ,contru 
+39db 67e1c0b2 store 3 ,mem_class 
+39dc 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_nvram:
+39dd 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+39de 6fe1448c fetch 2 ,mem_nv_data_ptr 
+39df 1fe20a00 icopy contw 
+39e0 20405e5f call uart_copy_rx_bytes_fast 
+39e1 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_confirm_gkey:
+39e2 6fe14793 fetch 2 ,mem_ui_state_map 
+39e3 c284babd bbit1 ui_state_ble_connected ,module_hci_cmd_le_confirm_gkey 
+39e4 c3003b4a bbit0 ui_state_bt_connected ,module_hci_event_receive_invalid_cmd 
+39e5 efe08003 ifetch 1 ,contru 
+39e6 6848c772 fetcht 1 ,mem_flag_mode_ssp_pin 
+39e7 793a0400 setflag blank ,flag_mode_ssp_pin_comparison_result_bit ,temp 
+39e8 79200407 set1 flag_mode_ssp_pin_reviceve_comparison_bit ,temp 
+39e9 6048c772 storet 1 ,mem_flag_mode_ssp_pin 
+39ea 20403b4d call module_hci_event_receive_valid_cmd 
+39eb 6fe0c772 fetch 1 ,mem_flag_mode_ssp_pin 
+39ec c28339ee bbit1 flag_mode_ssp_pin_recieve_dhkey_bit ,module_hci_cmd_spp_number_comparison_result_is1 
+39ed 20600000 rtn 
+
+module_hci_cmd_spp_number_comparison_result_is1:
+39ee c28055a3 bbit1 flag_mode_ssp_pin_comparison_result_bit ,number_comparison_successed 
+39ef 70477200 jam 0 ,mem_flag_mode_ssp_pin 
+39f0 70095b21 jam bt_cmd_dhkey_not_accept ,mem_fifo_temp 
+39f1 202077b0 branch ui_ipc_send_cmd 
+
+module_hci_cmd_set_credit_given:
+39f2 6fe0c793 fetch 1 ,mem_ui_state_map 
+39f3 c4020000 rtnbit0 ui_state_bt_spp_conn 
+39f4 6fe0c65d fetch 1 ,mem_rfcomm_credit_flag 
+39f5 c1000000 rtneq credit_disable 
+39f6 efe08003 ifetch 1 ,contru 
+39f7 6848c65b fetcht 1 ,mem_credit_given 
+39f8 98408400 iadd temp ,temp 
+39f9 6048c65b storet 1 ,mem_credit_given 
+39fa 20600000 rtn 
+
+module_hci_cmd_auto_adv:
+39fb df200040 arg 0x40 ,loopcnt 
+39fc d8a043ea arg mem_le_adv_data_len ,contw 
+39fd 20407c68 call clear_mem 
+39fe 58000000 setarg 0 
+39ff 67e08974 store 1 ,mem_regb 
+3a00 1a220600 copy rega ,contru 
+
+module_hci_cmd_auto_adv_loop:
+3a01 18627e00 copy contru ,pdata 
+3a02 67e10978 store 2 ,mem_regc 
+3a03 20403a29 call module_hci_cmd_auto_adv_adv_analys 
+3a04 6fe08974 fetch 1 ,mem_regb 
+3a05 68488964 fetcht 1 ,mem_temp 
+3a06 18408401 increase 1 ,temp 
+3a07 9840fe00 iadd temp ,pdata 
+3a08 67e08974 store 1 ,mem_regb 
+3a09 1fe67c1f sub pdata ,31 ,null 
+3a0a 24213a15 nbranch module_hci_cmd_auto_adv_store_scan ,positive 
+
+module_hci_cmd_auto_adv_store_adv:
+3a0b 6848c3ea fetcht 1 ,mem_le_adv_data_len 
+3a0c 580043eb setarg mem_le_adv_data 
+3a0d 9840fe00 iadd temp ,pdata 
+3a0e 67e1097d store 2 ,mem_contw 
+3a0f 68488964 fetcht 1 ,mem_temp 
+3a10 18408401 increase 1 ,temp 
+3a11 6fe0c3ea fetch 1 ,mem_le_adv_data_len 
+3a12 9840fe00 iadd temp ,pdata 
+3a13 67e0c3ea store 1 ,mem_le_adv_data_len 
+3a14 20203a1e branch module_hci_cmd_auto_adv_store_common 
+
+module_hci_cmd_auto_adv_store_scan:
+3a15 6848c40a fetcht 1 ,mem_le_scan_data_len 
+3a16 5800440b setarg mem_le_scan_data 
+3a17 9840fe00 iadd temp ,pdata 
+3a18 67e1097d store 2 ,mem_contw 
+3a19 68488964 fetcht 1 ,mem_temp 
+3a1a 18408401 increase 1 ,temp 
+3a1b 6fe0c40a fetch 1 ,mem_le_scan_data_len 
+3a1c 9840fe00 iadd temp ,pdata 
+3a1d 67e0c40a store 1 ,mem_le_scan_data_len 
+
+module_hci_cmd_auto_adv_store_common:
+3a1e 6fe1097d fetch 2 ,mem_contw 
+3a1f 1fe20a00 copy pdata ,contw 
+3a20 6fe10978 fetch 2 ,mem_regc 
+3a21 1fe20600 copy pdata ,contru 
+3a22 18427200 copy temp ,loopcnt 
+3a23 20405e5f call uart_copy_rx_bytes_fast 
+3a24 6fe089d0 fetch 1 ,mem_module_uart_len 
+3a25 68488974 fetcht 1 ,mem_regb 
+3a26 98467c00 isub temp ,null 
+3a27 2422ba01 nbranch module_hci_cmd_auto_adv_loop ,zero 
+3a28 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_auto_adv_adv_analys:
+3a29 efe08003 ifetch 1 ,contru 
+3a2a 67e08964 store 1 ,mem_temp 
+3a2b efe08003 ifetch 1 ,contru 
+3a2c 67e08970 store 1 ,mem_rega 
+3a2d 20600000 rtn 
+
+module_hci_cmd_power_request:
+3a2e d8400000 arg 0 ,temp 
+3a2f da200002 arg 2 ,rega 
+3a30 6fe147c7 fetch 2 ,mem_module_vdd_quotient 
+3a31 67e1098e store 2 ,mem_event_cmd_response_content 
+3a32 da40098e arg mem_event_cmd_response_content ,regb 
+3a33 20203b58 branch module_hci_event_set_cmd 
+
+module_hci_cmd_power_set:
+3a34 6fe089d0 fetch 1 ,mem_module_uart_len 
+3a35 c080bb4a bne 1 ,module_hci_event_receive_invalid_cmd 
+3a36 efe08003 ifetch 1 ,contru 
+3a37 67e0c7c5 store 1 ,mem_module_read_vdd_flag 
+3a38 58000000 setarg 0x00 
+3a39 67e147c7 store 2 ,mem_module_vdd_quotient 
+3a3a 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_passkey_entry:
+3a3b 6fe089d0 fetch 1 ,mem_module_uart_len 
+3a3c c0823b4a bne 4 ,module_hci_event_receive_invalid_cmd 
+3a3d 6fe14793 fetch 2 ,mem_ui_state_map 
+3a3e c284bb22 bbit1 ui_state_ble_connected ,module_hci_cmd_le_passkey_entry_input 
+3a3f efe20003 ifetch 4 ,contru 
+3a40 67e2479b store 4 ,mem_pin 
+3a41 70479a04 jam 4 ,mem_pin_length 
+3a42 70477400 jam 0 ,mem_authentication_passkey_times 
+3a43 20403b4d call module_hci_event_receive_valid_cmd 
+3a44 20205523 branch authentication_passkey 
+
+module_hci_cmd_set_gpio:
+3a45 6fe089d0 fetch 1 ,mem_module_uart_len 
+3a46 c081bb4a bne 3 ,module_hci_event_receive_invalid_cmd 
+3a47 efe08003 ifetch 1 ,contru 
+3a48 c0003a4b beq hci_cmd_config_gpio_input ,module_set_gpio_input 
+3a49 c000ba51 beq hci_cmd_config_gpio_output ,module_set_gpio_output 
+3a4a 20203b4a branch module_hci_event_receive_invalid_cmd 
+
+module_set_gpio_input:
+3a4b 20403b4d call module_hci_event_receive_valid_cmd 
+3a4c e8408003 ifetcht 1 ,contru 
+3a4d efe08003 ifetch 1 ,contru 
+3a4e c0015fa3 beq gpio_input_high_impedance ,gpio_set_high_impedance 
+3a4f 7d3a0407 nsetflag blank ,7 ,temp 
+3a50 20205f74 branch gpio_config_input 
+
+module_set_gpio_output:
+3a51 20403b4d call module_hci_event_receive_valid_cmd 
+3a52 e8408003 ifetcht 1 ,contru 
+3a53 efe08003 ifetch 1 ,contru 
+3a54 203a5f8d branch gpio_out_active ,blank 
+3a55 20205f89 branch gpio_out_inactive 
+
+module_hci_cmd_read_gpio:
+3a56 6fe089d0 fetch 1 ,mem_module_uart_len 
+3a57 c080bb4a bne 1 ,module_hci_event_receive_invalid_cmd 
+3a58 e8408003 ifetcht 1 ,contru 
+3a59 20405f7d call gpio_get_bit 
+3a5a 58000000 setarg 0x0 
+3a5b 7d20fe00 nsetflag true ,0 ,pdata 
+3a5c da200001 arg 1 ,rega 
+3a5d 67e1098e store 2 ,mem_event_cmd_response_content 
+3a5e da40098e arg mem_event_cmd_response_content ,regb 
+3a5f d8400000 arg 0 ,temp 
+3a60 20203b58 branch module_hci_event_set_cmd 
+
+module_hci_cmd_le_set_pairing_mode:
+3a61 efe08003 ifetch 1 ,contru 
+3a62 1fe20400 copy pdata ,temp 
+3a63 c040ba70 beq le_pairing_mode_secure_connect_justwork ,module_le_set_pairing_mode_secure_justwork 
+3a64 c0413a74 beq le_pairing_mode_secure_connect_numeric ,module_le_set_pairing_mode_secure_numeric 
+3a65 c041ba79 beq le_pairing_mode_secure_connect_passkey ,module_le_set_pairing_mode_secure_passkey 
+3a66 c0423a7d beq le_pairing_mode_secure_connect_passkey_res_input ,module_le_set_pairing_mode_secure_passkey_res_input 
+3a67 67e0c3a0 store 1 ,mem_le_pairing_mode 
+3a68 2040747a call sc_reset 
+3a69 20401f16 call le_secure_connection_disable 
+3a6a 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+3a6b c0003a81 beq le_pairing_mode_none ,module_le_set_no_pairing 
+3a6c c000ba84 beq le_pairing_mode_lagacy_justwork ,module_le_set_pairing_mode_lagacy_just_work 
+3a6d c0013a86 beq le_pairing_mode_lagacy_passkey ,module_le_set_pairing_mode_lagacy_passkey 
+3a6e c0023a88 beq le_pairing_mode_lagacy_passkey_res_input ,module_le_set_pairing_mode_lagacy_passkey_res_input 
+3a6f 20203b4a branch module_hci_event_receive_invalid_cmd 
+
+module_le_set_pairing_mode_secure_justwork:
+3a70 6048c3a0 storet 1 ,mem_le_pairing_mode 
+3a71 20401f12 call le_secure_connection_enable 
+3a72 7043560d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+3a73 20203a82 branch module_le_set_noinputnooutput 
+
+module_le_set_pairing_mode_secure_numeric:
+3a74 6048c3a0 storet 1 ,mem_le_pairing_mode 
+3a75 20401f12 call le_secure_connection_enable 
+3a76 7043560d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+3a77 70435401 jam flag_iocap_displayyesno ,mem_le_pres_iocap 
+3a78 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_le_set_pairing_mode_secure_passkey:
+3a79 6048c3a0 storet 1 ,mem_le_pairing_mode 
+3a7a 20401f12 call le_secure_connection_enable 
+3a7b 7043560d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+3a7c 20203a8c branch module_le_set_displayonly 
+
+module_le_set_pairing_mode_secure_passkey_res_input:
+3a7d 6048c3a0 storet 1 ,mem_le_pairing_mode 
+3a7e 20401f12 call le_secure_connection_enable 
+3a7f 7043560d jam flag_le_bonding_mitm_secure ,mem_le_pres_auth 
+3a80 20203a8a branch module_le_set_keboadonly 
+
+module_le_set_no_pairing:
+3a81 70435600 jam flag_le_no_bonding_no_mitm ,mem_le_pres_auth 
+
+module_le_set_noinputnooutput:
+3a82 70435403 jam flag_iocap_noinputnooutput ,mem_le_pres_iocap 
+3a83 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_le_set_pairing_mode_lagacy_just_work:
+3a84 70435601 jam flag_le_bonding_no_mitm ,mem_le_pres_auth 
+3a85 20203a82 branch module_le_set_noinputnooutput 
+
+module_le_set_pairing_mode_lagacy_passkey:
+3a86 70435605 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+3a87 20203a8c branch module_le_set_displayonly 
+
+module_le_set_pairing_mode_lagacy_passkey_res_input:
+3a88 70435605 jam flag_le_bonding_mitm ,mem_le_pres_auth 
+3a89 20203a8a branch module_le_set_keboadonly 
+
+module_le_set_keboadonly:
+3a8a 70435402 jam flag_iocap_keyboardonly ,mem_le_pres_iocap 
+3a8b 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_le_set_displayonly:
+3a8c 70435400 jam flag_iocap_displayonly ,mem_le_pres_iocap 
+3a8d 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_set_adv_data:
+3a8e dfe0001f arg 31 ,pdata 
+3a8f d8a043ea arg mem_le_adv_data_len ,contw 
+3a90 20203a94 branch module_hci_cmd_receive_store_mem 
+
+module_hci_cmd_le_set_scan_data:
+3a91 dfe0001f arg 31 ,pdata 
+3a92 d8a0440a arg mem_le_scan_data_len ,contw 
+3a93 20203a94 branch module_hci_cmd_receive_store_mem 
+
+module_hci_cmd_receive_store_mem:
+3a94 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+3a95 9f267c00 isub loopcnt ,null 
+3a96 24213b4a nbranch module_hci_event_receive_invalid_cmd ,positive 
+3a97 e7208005 istorer loopcnt ,1 ,contw 
+3a98 20405e5f call uart_copy_rx_bytes_fast 
+3a99 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_send_conn_update_req:
+3a9a 6fe14793 fetch 2 ,mem_ui_state_map 
+3a9b c304bb4a bbit0 ui_state_ble_connected ,module_hci_event_receive_invalid_cmd 
+3a9c 6fe089d0 fetch 1 ,mem_module_uart_len 
+3a9d c0843b4a bne 0x08 ,module_hci_event_receive_invalid_cmd 
+3a9e efe40003 ifetch 8 ,contru 
+3a9f 67e44375 store 8 ,mem_le_interval_min 
+3aa0 70095b12 jam bt_cmd_le_update_conn ,mem_fifo_temp 
+3aa1 204077b0 call ui_ipc_send_cmd 
+3aa2 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_le_adv_parameter:
+3aa3 efe10003 ifetch 2 ,contru 
+3aa4 67e1442b store 2 ,mem_le_adv_interval 
+3aa5 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_start_pairing:
+3aa6 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+3aa7 203a3b4a branch module_hci_event_receive_invalid_cmd ,blank 
+3aa8 6fe0c39e fetch 1 ,mem_le_pairing_state 
+3aa9 c0803b4a bne flag_le_pairing_null ,module_hci_event_receive_invalid_cmd 
+3aaa 6fe0c39f fetch 1 ,mem_le_enc_state 
+3aab c0803b4a bne flag_le_enc_null ,module_hci_event_receive_invalid_cmd 
+3aac 2040785d call check_51cmd_le_smp_sec_req 
+3aad 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_wake_gpio:
+3aae 6fe089d0 fetch 1 ,mem_module_uart_len 
+3aaf c082bb4a bne 5 ,module_hci_event_receive_invalid_cmd 
+3ab0 efe08003 ifetch 1 ,contru 
+3ab1 67e0c7b3 store 1 ,mem_module_mcu_wake_pin 
+3ab2 efe20003 ifetch 4 ,contru 
+3ab3 67e247b4 store 4 ,mem_module_mcu_wake_delay_us 
+3ab4 6848c7b3 fetcht 1 ,mem_module_mcu_wake_pin 
+3ab5 20405f8d call gpio_config_output 
+3ab6 20403c06 call module_set_mcu_wake_pin_low 
+3ab7 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_tx_power:
+3ab8 6fe089d0 fetch 1 ,mem_module_uart_len 
+3ab9 c080bb4a bne 0x01 ,module_hci_event_receive_invalid_cmd 
+3aba efe08003 ifetch 1 ,contru 
+3abb 67e0c1eb store 1 ,mem_tx_power 
+3abc 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_confirm_gkey:
+3abd efe08003 ifetch 1 ,contru 
+3abe c000bac6 beq 0x01 ,module_hci_cmd_le_confirm_gkey_fail 
+3abf 6fe0c39c fetch 1 ,mem_le_secure_connect_state 
+3ac0 c001bac4 beq le_sc_stat_send_public_key ,module_hci_cmd_le_confirm_gkey_ok 
+3ac1 c0033ac4 beq le_sc_stat_receive_dhkey ,module_hci_cmd_le_confirm_gkey_ok 
+3ac2 c003bac4 beq le_sc_stat_wait_confirm_gkey ,module_hci_cmd_le_confirm_gkey_ok 
+3ac3 20203b4a branch module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_le_confirm_gkey_ok:
+3ac4 70439d01 jam flag_le_sc_confrim_gkey_ok ,mem_le_sc_confirm_gkey_flag 
+3ac5 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_confirm_gkey_fail:
+3ac6 20401f7c call le_send_pairing_confirm_value_failed 
+3ac7 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_set_reject_justwork_flag:
+3ac8 6fe089d0 fetch 1 ,mem_module_uart_len 
+3ac9 c080bb4a bne 0x01 ,module_hci_event_receive_invalid_cmd 
+3aca 20403b4d call module_hci_event_receive_valid_cmd 
+3acb efe08003 ifetch 1 ,contru 
+3acc 203a56ff branch classic_bt_clr_reject_justwork_flag ,blank 
+3acd 202056fd branch classic_bt_set_reject_justwork_flag 
+
+module_hci_cmd_reset_chip:
+3ace 20403b4d call module_hci_event_receive_valid_cmd 
+3acf 20407d49 call wait_uarttx 
+3ad0 70801001 jam 0x01 ,core_reset 
+3ad1 2020137c branch loop 
+
+module_hci_cmd_le_set_fixed_passkey:
+3ad2 6fe089d0 fetch 1 ,mem_module_uart_len 
+3ad3 c0003b4a beq 0 ,module_hci_event_receive_invalid_cmd 
+3ad4 efe08003 ifetch 1 ,contru 
+3ad5 203a3adf branch module_hci_cmd_le_set_random_passkey ,blank 
+3ad6 6fe089d0 fetch 1 ,mem_module_uart_len 
+3ad7 c082bb4a bne 5 ,module_hci_event_receive_invalid_cmd 
+3ad8 efe20003 ifetch 4 ,contru 
+3ad9 d84f4240 arg 1000000 ,temp 
+3ada 98467c00 isub temp ,null 
+3adb 20213b4a branch module_hci_event_receive_invalid_cmd ,positive 
+3adc 67e243a1 store 4 ,mem_le_tk 
+3add 20401a9f call le_set_config_fixed_tk 
+3ade 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_le_set_random_passkey:
+3adf 20401aa1 call le_clr_config_fixed_tk 
+3ae0 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_delete_customize_service:
+3ae1 e8410003 ifetcht 2 ,contru 
+3ae2 204019f2 call le_att_get_handle_ptr2 
+3ae3 18c08bfe add contr ,-2 ,contw 
+3ae4 58000000 setarg 0x0000 
+3ae5 e7e10005 istore 2 ,contw 
+3ae6 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_add_service_uuid:
+3ae7 20403af0 call module_hci_cmd_add_service_uuid_set_uuid 
+3ae8 20403b1e call uart_copy_rx_bytes_len_data 
+3ae9 58000000 setarg 0x0000 
+3aea e7e10005 istore 2 ,contw 
+3aeb 20203be0 branch module_hci_event_uuid_handle 
+
+module_hci_cmd_add_characteristic_uuid:
+3aec efe08003 ifetch 1 ,contru 
+3aed 20403af4 call module_hci_cmd_add_characteristic_uuid_set_handle 
+3aee 20403afb call module_hci_cmd_add_characteristic_uuid_set_uuid 
+3aef 20203be0 branch module_hci_event_uuid_handle 
+
+module_hci_cmd_add_service_uuid_set_uuid:
+3af0 20403b1b call le_att_creat_new_handle 
+3af1 58280002 setarg 0x280002 
+3af2 e7e18005 istore 3 ,contw 
+3af3 20600000 rtn 
+
+module_hci_cmd_add_characteristic_uuid_set_handle:
+3af4 67e0895c store 1 ,mem_pdatatemp 
+3af5 20403b1b call le_att_creat_new_handle 
+3af6 59280302 setarg 0x01280302 
+3af7 e7e20005 istore 4 ,contw 
+3af8 6fe0895c fetch 1 ,mem_pdatatemp 
+3af9 e7e18005 istore 3 ,contw 
+3afa 20600000 rtn 
+
+module_hci_cmd_add_characteristic_uuid_set_uuid:
+3afb 20401a11 call le_att_get_last_handle 
+3afc efe08003 ifetch 1 ,contru 
+3afd 1fe1721f and pdata ,0x1f ,loopcnt 
+3afe 1fe22200 copy pdata ,rega 
+3aff 2a2ffe07 isolate1 bit_of_write_authenticated ,rega 
+3b00 7920840f setflag true ,bit_of_att_handle_write_authenticated ,temp 
+3b01 2a2ffe06 isolate1 bit_of_read_authenticated ,rega 
+3b02 7920840e setflag true ,bit_of_att_handle_read_authenticated ,temp 
+3b03 e0410005 istoret 2 ,contw 
+3b04 1f227e00 copy loopcnt ,pdata 
+3b05 e7e08005 istore 1 ,contw 
+3b06 20405e73 call uart_copy_rx_bytes 
+3b07 20403b1e call uart_copy_rx_bytes_len_data 
+3b08 58000000 setarg 0 
+3b09 e7e10005 istore 2 ,contw 
+3b0a 184104ff and temp ,0xff ,temp 
+3b0b 184085ff increase -1 ,temp 
+3b0c 204019f2 call le_att_get_handle_ptr2 
+3b0d 18c08c04 add contr ,4 ,contr 
+3b0e efe08006 ifetch 1 ,contr 
+3b0f c2823b13 bbit1 bit_characteristic_notify ,module_hci_cmd_add_characteristic_uuid_set_ccc_uuid 
+3b10 c282bb13 bbit1 bit_characteristic_indicate ,module_hci_cmd_add_characteristic_uuid_set_ccc_uuid 
+3b11 18408401 increase 1 ,temp 
+3b12 20600000 rtn 
+
+module_hci_cmd_add_characteristic_uuid_set_ccc_uuid:
+3b13 20401a11 call le_att_get_last_handle 
+3b14 2a2ffe05 isolate1 bit_of_notify_authenticated ,rega 
+3b15 7920840f setflag true ,bit_of_att_handle_write_authenticated ,temp 
+3b16 e0410005 istoret 2 ,contw 
+3b17 5a290202 setarg 0x02290202 
+3b18 e7e40005 istore 8 ,contw 
+3b19 184085ff increase -1 ,temp 
+3b1a 20600000 rtn 
+
+le_att_creat_new_handle:
+3b1b 20401a11 call le_att_get_last_handle 
+3b1c e0410005 istoret 2 ,contw 
+3b1d 20600000 rtn 
+
+uart_copy_rx_bytes_len_data:
+3b1e efe08003 ifetch 1 ,contru 
+3b1f 1fe27200 copy pdata ,loopcnt 
+3b20 e7e08005 istore 1 ,contw 
+3b21 20205e73 branch uart_copy_rx_bytes 
+
+module_hci_cmd_le_passkey_entry_input:
+3b22 6fe0c39e fetch 1 ,mem_le_pairing_state 
+3b23 c082bb4a bne flag_le_pairing_receive_pairing_confirm ,module_hci_event_receive_invalid_cmd 
+3b24 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+3b25 c0023b2e beq le_pairing_mode_lagacy_passkey_res_input ,module_hci_cmd_passkey_entry_res_input 
+3b26 c0423b28 beq le_pairing_mode_secure_connect_passkey_res_input ,module_hci_cmd_passkey_entry_sc_res_input 
+3b27 20203b4a branch module_hci_event_receive_invalid_cmd 
+
+module_hci_cmd_passkey_entry_sc_res_input:
+3b28 70439b02 jam le_sp_flag_commit_256 ,mem_le_secure_connect_flag 
+3b29 70439c08 jam le_sc_stat_passkey_wait_confirm ,mem_le_secure_connect_state 
+3b2a 20203b2b branch module_hci_cmd_receive_ble_passkey 
+
+module_hci_cmd_receive_ble_passkey:
+3b2b efe20003 ifetch 4 ,contru 
+3b2c 67e243a1 store 4 ,mem_le_tk 
+3b2d 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_passkey_entry_res_input:
+3b2e 20403b2b call module_hci_cmd_receive_ble_passkey 
+3b2f 20201f65 branch le_send_smp_pairing_confirm 
+
+module_hci_cmd_ble_set_phy:
+3b30 6fe089d0 fetch 1 ,mem_module_uart_len 
+3b31 c0813b4a bne 2 ,module_hci_event_receive_invalid_cmd 
+3b32 e8410003 ifetcht 2 ,contru 
+3b33 20401b0a call le_set_phys 
+3b34 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_ble_read_current_phy:
+3b35 d8400000 arg 0 ,temp 
+3b36 da200002 arg 2 ,rega 
+3b37 da404075 arg mem_context + coffset_le_rx_phy ,regb 
+3b38 20203b58 branch module_hci_event_set_cmd 
+
+module_hci_cmd_ble_set_dle:
+3b39 6fe089d0 fetch 1 ,mem_module_uart_len 
+3b3a c0843b4a bne 8 ,module_hci_event_receive_invalid_cmd 
+3b3b efe40003 ifetch 8 ,contru 
+3b3c 20401b08 call le_set_dle 
+3b3d 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_read_chip_data:
+3b3e ea208003 ifetchr rega ,1 ,contru 
+3b3f ea410003 ifetchr regb ,2 ,contru 
+3b40 d8400000 arg 0 ,temp 
+3b41 20203b58 branch module_hci_event_set_cmd 
+
+module_hci_cmd_write_chip_data:
+3b42 6f2089d0 fetchr loopcnt ,1 ,mem_module_uart_len 
+3b43 1f20f3fe increase -2 ,loopcnt 
+3b44 efe10003 ifetch 2 ,contru 
+3b45 1fe20a00 copy pdata ,contw 
+3b46 20405e5f call uart_copy_rx_bytes_fast 
+3b47 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_cmd_close_lpm:
+3b48 70409900 jam 0 ,mem_lpm_mode 
+3b49 20203b4d branch module_hci_event_receive_valid_cmd 
+
+module_hci_event_receive_invalid_cmd:
+3b4a d8400001 arg 1 ,temp 
+3b4b da200000 arg 0 ,rega 
+3b4c 20203b58 branch module_hci_event_set_cmd 
+
+module_hci_event_receive_valid_cmd:
+3b4d d8400000 arg 0 ,temp 
+3b4e da200000 arg 0 ,rega 
+3b4f 20203b58 branch module_hci_event_set_cmd 
+
+module_hci_event_spp_connect:
+3b50 7009cf00 jam hci_event_spp_conn_rep ,mem_module_uart_opcode 
+3b51 20203b7c branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_le_connect:
+3b52 7009cf02 jam hci_event_le_conn_rep ,mem_module_uart_opcode 
+3b53 20203b7c branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_spp_disconnect:
+3b54 7009cf03 jam hci_event_spp_dis_rep ,mem_module_uart_opcode 
+3b55 20203b7c branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_le_disconnect:
+3b56 7009cf05 jam hci_event_le_dis_rep ,mem_module_uart_opcode 
+3b57 20203b7c branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_set_cmd:
+3b58 6fe089cf fetch 1 ,mem_module_uart_opcode 
+3b59 1fe22600 copy pdata ,regc 
+3b5a 7009cf06 jam hci_event_cmd_res ,mem_module_uart_opcode 
+3b5b 58000002 setarg 2 
+3b5c 9a20fe00 iadd rega ,pdata 
+3b5d 20403bef call module_hci_prepare_tx 
+3b5e 1a627e00 copy regc ,pdata 
+3b5f e7e08003 istore 1 ,contwu 
+3b60 e0408003 istoret 1 ,contwu 
+3b61 1a227200 copy rega ,loopcnt 
+3b62 1a420c00 copy regb ,contr 
+3b63 20405e59 call uart_copy_tx_bytes 
+3b64 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_receive_spp_data:
+3b65 20403829 call module_spp_clear_last_transmite_clock 
+3b66 7009cf07 jam hci_event_spp_data_rep ,mem_module_uart_opcode 
+3b67 6fe083d2 fetch 1 ,mem_current_length 
+3b68 207a0000 rtn blank 
+3b69 20403bef call module_hci_prepare_tx 
+3b6a 6fe083d2 fetch 1 ,mem_current_length 
+3b6b 1fe27200 copy pdata ,loopcnt 
+3b6c 6fe103d4 fetch 2 ,mem_rfcomm_uih_payload_ptr 
+3b6d 1fe20c00 copy pdata ,contr 
+3b6e 20405e45 call uart_copy_tx_bytes_fast 
+3b6f 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_receive_le_data:
+3b70 7009cf08 jam hci_event_le_data_rep ,mem_module_uart_opcode 
+3b71 1f20fe02 add loopcnt ,2 ,pdata 
+3b72 20403bef call module_hci_prepare_tx 
+3b73 6fe109fa fetch 2 ,mem_module_le_rx_data_handle 
+3b74 e7e10003 istore 2 ,contwu 
+3b75 6fe109f8 fetch 2 ,mem_module_le_rx_data_address 
+3b76 1fe20c00 icopy contr 
+3b77 20405e45 call uart_copy_tx_bytes_fast 
+3b78 18c27e00 copy contr ,pdata 
+3b79 67e109f8 store 2 ,mem_module_le_rx_data_address 
+3b7a 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_enter_standby_mode:
+3b7b 7009cf09 jam hci_event_standby_rep ,mem_module_uart_opcode 
+
+module_hci_event_enter_standby_mode_len0:
+3b7c 58000000 setarg 0 
+3b7d 20403bef call module_hci_prepare_tx 
+3b7e 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_status_res:
+3b7f 7009cf0a jam hci_event_status_res ,mem_module_uart_opcode 
+3b80 58000001 setarg 1 
+3b81 20403bef call module_hci_prepare_tx 
+3b82 20403b90 call module_hci_read_bt_status 
+3b83 6fe14793 fetch 2 ,mem_ui_state_map 
+3b84 d8e00002 arg ui_state_bt_hid_conn ,queue 
+3b85 afefffff qisolate1 pdata 
+3b86 79208403 setflag true ,3 ,temp 
+3b87 d8e00009 arg ui_state_ble_connected ,queue 
+3b88 afefffff qisolate1 pdata 
+3b89 79208405 setflag true ,5 ,temp 
+3b8a 6fe0c793 fetch 1 ,mem_ui_state_map 
+3b8b d8e00004 arg ui_state_bt_spp_conn ,queue 
+3b8c afefffff qisolate1 pdata 
+3b8d 79208404 setflag true ,4 ,temp 
+3b8e e0408003 istoret 1 ,contwu 
+3b8f 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_read_bt_status:
+3b90 d8400000 arg 0 ,temp 
+3b91 6fe0c09b fetch 1 ,mem_scan_mode 
+3b92 d8e00000 arg inq_scan_mode ,queue 
+3b93 afefffff qisolate1 pdata 
+3b94 79208400 setflag true ,0 ,temp 
+3b95 d8e00001 arg page_scan_mode ,queue 
+3b96 afefffff qisolate1 pdata 
+3b97 79208401 setflag true ,1 ,temp 
+3b98 6fe0c42a fetch 1 ,mem_le_adv_enable 
+3b99 d8e00000 arg 0 ,queue 
+3b9a afefffff qisolate1 pdata 
+3b9b 79208402 setflag true ,2 ,temp 
+3b9c 20600000 rtn 
+
+module_hci_event_store_device:
+3b9d 7009cf0d jam hci_event_nvram_rep ,mem_module_uart_opcode 
+3b9e 6fe0c48e fetch 1 ,mem_nv_data_number 
+3b9f 1feffe22 mul32 pdata ,34 ,pdata 
+3ba0 1fe27200 icopy loopcnt 
+3ba1 20403bef call module_hci_prepare_tx 
+3ba2 6fe1448c fetch 2 ,mem_nv_data_ptr 
+3ba3 1fe20c00 icopy contr 
+3ba4 20405e45 call uart_copy_tx_bytes_fast 
+3ba5 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_gkey_generate:
+3ba6 7009cf0e jam hci_event_gkey ,mem_module_uart_opcode 
+3ba7 58000004 setarg 4 
+3ba8 20403bef call module_hci_prepare_tx 
+3ba9 6fe2087c fetch 4 ,mem_gkey 
+3baa e7e20003 istore 4 ,contwu 
+3bab 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_invalid_packet:
+3bac 7009cf0f jam hci_event_invalid_packet ,mem_module_uart_opcode 
+3bad 6ff10112 fetch 2 ,core_uart_rxitems 
+3bae d8400040 arg 0x40 ,temp 
+3baf 20407d88 call not_greater_than 
+3bb0 1fe22200 copy pdata ,rega 
+3bb1 1fe27200 copy pdata ,loopcnt 
+3bb2 20405e1d call uarta_prepare_rx 
+3bb3 d8a0098e arg mem_module_rx_error_data_buffer ,contw 
+3bb4 20405e5f call uart_copy_rx_bytes_fast 
+3bb5 1a227e00 copy rega ,pdata 
+3bb6 1a227200 copy rega ,loopcnt 
+3bb7 20403bef call module_hci_prepare_tx 
+3bb8 d8c0098e arg mem_module_rx_error_data_buffer ,contr 
+3bb9 20405e45 call uart_copy_tx_bytes_fast 
+3bba 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_passkey_entry_mode:
+3bbb 7009cf10 jam hci_event_get_passkey ,mem_module_uart_opcode 
+3bbc 20203b7c branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_le_tk:
+3bbd 7009cf11 jam hci_event_le_tk ,mem_module_uart_opcode 
+3bbe 58000004 setarg 4 
+3bbf 20403bef call module_hci_prepare_tx 
+3bc0 6fe243a1 fetch 4 ,mem_le_tk 
+3bc1 e7e20003 istore 4 ,contwu 
+3bc2 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_le_pairing_fail:
+3bc3 da200180 arg flag_ble_pairing_fail ,rega 
+3bc4 20203bca branch module_hci_event_pairing_completed 
+
+module_hci_event_le_pairing_success:
+3bc5 da200080 arg flag_ble_pairing_success ,rega 
+3bc6 20203bca branch module_hci_event_pairing_completed 
+
+module_hci_event_bt_pairing_fail:
+3bc7 da200101 arg flag_bt_pairing_fail ,rega 
+3bc8 20203bca branch module_hci_event_pairing_completed 
+
+module_hci_event_bt_pairing_success:
+3bc9 da200001 arg flag_bt_pairing_success ,rega 
+
+module_hci_event_pairing_completed:
+3bca 70477200 jam 0 ,mem_flag_mode_ssp_pin 
+3bcb 7009cf14 jam hci_event_le_pairing_state ,mem_module_uart_opcode 
+3bcc 58000002 setarg 2 
+3bcd 20403bef call module_hci_prepare_tx 
+3bce 1a227e00 copy rega ,pdata 
+3bcf e7e10003 istore 2 ,contwu 
+3bd0 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_pause_enc:
+3bd1 da600000 arg flag_event_pause_enc ,regc 
+3bd2 20203bd4 branch module_hci_event_enc 
+
+module_hci_event_start_enc:
+3bd3 da600001 arg flag_event_start_enc ,regc 
+
+module_hci_event_enc:
+3bd4 7009cf15 jam hci_event_le_encryption_state ,mem_module_uart_opcode 
+3bd5 58000001 setarg 1 
+3bd6 20403bef call module_hci_prepare_tx 
+3bd7 1a627e00 copy regc ,pdata 
+3bd8 e7e08003 istore 1 ,contwu 
+3bd9 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_le_gkey:
+3bda 7009cf1d jam hci_event_le_gkey ,mem_module_uart_opcode 
+3bdb 58000004 setarg 4 
+3bdc 20403bef call module_hci_prepare_tx 
+3bdd 6fe2087c fetch 4 ,mem_gkey 
+3bde e7e20003 istore 4 ,contwu 
+3bdf 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_uuid_handle:
+3be0 60490964 storet 2 ,mem_temp 
+3be1 7009cf29 jam hci_event_uuid_handle ,mem_module_uart_opcode 
+3be2 58000002 setarg 2 
+3be3 20403bef call module_hci_prepare_tx 
+3be4 68490964 fetcht 2 ,mem_temp 
+3be5 e0410003 istoret 2 ,contwu 
+3be6 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_event_le_input_passkey:
+3be7 7009cf2b jam hci_event_le_input_gkey ,mem_module_uart_opcode 
+3be8 20203b7c branch module_hci_event_enter_standby_mode_len0 
+
+module_hci_event_le_update_phy:
+3be9 7009cf40 jam hci_ble_update_phy_event ,mem_module_uart_opcode 
+3bea 58000002 setarg 2 
+3beb 20403bef call module_hci_prepare_tx 
+3bec 6fe14075 fetch 2 ,mem_context + coffset_le_rx_phy 
+3bed e7e10003 istore 2 ,contwu 
+3bee 20203bf9 branch module_hci_transmit_tx 
+
+module_hci_prepare_tx:
+3bef 7009ce02 jam 0x02 ,mem_module_uart_cmd 
+3bf0 67e089d0 store 1 ,mem_module_uart_len 
+3bf1 604c0964 storet 8 ,mem_temp 
+3bf2 44e04018 bpatch patch18_0 ,mem_patch18 
+3bf3 20403bfb call module_set_mcu_wake_pin_high_delay 
+3bf4 684c0964 fetcht 8 ,mem_temp 
+3bf5 20405e35 call uarta_prepare_tx_register_push 
+3bf6 6fe189ce fetch 3 ,mem_module_uart_cmd 
+3bf7 e7e18003 istore 3 ,contwu 
+3bf8 20600000 rtn 
+
+module_hci_transmit_tx:
+3bf9 44e0c018 bpatch patch18_1 ,mem_patch18 
+3bfa 20205e39 branch uarta_send_register_pop 
+
+module_set_mcu_wake_pin_high_delay:
+3bfb 20403c04 call module_check_mcu_wake_pin_high 
+3bfc 20608000 rtn true 
+
+module_set_mcu_wake_pin_h_delay:
+3bfd 20403c02 call module_set_mcu_wake_pin_high 
+3bfe 6fe247b4 fetch 4 ,mem_module_mcu_wake_delay_us 
+3bff 1feb7e00 rshift2 pdata ,pdata 
+3c00 207a0000 rtn blank 
+3c01 20207c4e branch delay 
+
+module_set_mcu_wake_pin_high:
+3c02 6848c7b3 fetcht 1 ,mem_module_mcu_wake_pin 
+3c03 20205f8d branch gpio_out_active 
+
+module_check_mcu_wake_pin_high:
+3c04 6848c7b3 fetcht 1 ,mem_module_mcu_wake_pin 
+3c05 20205f98 branch gpio_check_active 
+
+module_set_mcu_wake_pin_low:
+3c06 6848c7b3 fetcht 1 ,mem_module_mcu_wake_pin 
+3c07 20205f89 branch gpio_out_inactive 
+
+module_le_receive_data:
+3c08 622109f8 storer rega ,2 ,mem_module_le_rx_data_address 
+3c09 624109f6 storer regb ,2 ,mem_module_le_rx_data_len 
+3c0a 6fe1443a fetch 2 ,mem_le_att_handle 
+3c0b 67e109fa store 2 ,mem_module_le_rx_data_handle 
+3c0c 20403991 call module_check_ble_encrypt_state 
+3c0d 20740000 rtn user 
+
+module_le_receive_data_ok:
+3c0e 684909f6 fetcht 2 ,mem_module_le_rx_data_len 
+3c0f 6fe0c7c9 fetch 1 ,mem_module_ble_data_uart_max_length 
+3c10 20407d88 call not_greater_than 
+3c11 1fe27200 copy pdata ,loopcnt 
+3c12 18427e00 copy temp ,pdata 
+3c13 9f267e00 isub loopcnt ,pdata 
+3c14 67e109f6 store 2 ,mem_module_le_rx_data_len 
+3c15 20403b70 call module_hci_event_receive_le_data 
+3c16 6fe109f6 fetch 2 ,mem_module_le_rx_data_len 
+3c17 207a0000 rtn blank 
+3c18 20203c0e branch module_le_receive_data_ok 
+
+module_exit_sniff:
+3c19 6fe147ca fetch 2 ,mem_module_flag 
+3c1a c3848000 rtnbit1 moudle_task_unsniff 
+3c1b 20403c36 call module_set_unsniff_task_flag 
+3c1c 2020325e branch app_bt_sniff_exit 
+
+module_set_lpm_mult_2:
+3c1d 70417702 jam 2 ,mem_lpm_mult 
+3c1e 20600000 rtn 
+
+module_bb_event_timer:
+
+module_read_vdd_timer:
+3c1f 6fe0c7c5 fetch 1 ,mem_module_read_vdd_flag 
+3c20 207a0000 rtn blank 
+3c21 6fe0c7c6 fetch 1 ,mem_module_read_vdd_count 
+3c22 207a0000 rtn blank 
+3c23 1fe0ffff increase -1 ,pdata 
+3c24 67e0c7c6 store 1 ,mem_module_read_vdd_count 
+3c25 247a0000 nrtn blank 
+3c26 7047c605 jam flag_module_read_vdd_count ,mem_module_read_vdd_count 
+3c27 20405ff1 call enable_adc 
+3c28 20406018 call vdd_calculate_by_mode 
+3c29 1fe6fc64 div pdata ,0x64 
+3c2a 20407d2e call get_div_result 
+3c2b 18070400 remainder temp 
+3c2c 67e0c7c7 store 1 ,mem_module_vdd_quotient 
+3c2d 6048c7c8 storet 1 ,mem_module_vdd_remainder 
+3c2e 20600000 rtn 
+
+module_control_air_flow:
+3c2f 20407d5f call check_uart_tx_buff 
+3c30 2021322b branch app_l2cap_flow_control_enable ,positive 
+3c31 2020322d branch app_l2cap_flow_control_disable 
+
+module_set_sniff_task_flag:
+3c32 d8e0000a arg moudle_task_sniff ,queue 
+3c33 20203c42 branch module_set_state 
+
+module_clear_sniff_task_flag:
+3c34 d8e0000a arg moudle_task_sniff ,queue 
+3c35 20203c3e branch module_clr_state 
+
+module_set_unsniff_task_flag:
+3c36 d8e00009 arg moudle_task_unsniff ,queue 
+3c37 20203c42 branch module_set_state 
+
+module_clear_unsniff_task_flag:
+3c38 d8e00009 arg moudle_task_unsniff ,queue 
+3c39 20203c3e branch module_clr_state 
+
+module_set_le_tx_data_flag:
+3c3a d8e00008 arg module_flag_ble_data_finish ,queue 
+3c3b 20203c42 branch module_set_state 
+
+module_clear_le_tx_data_flag:
+3c3c d8e00008 arg module_flag_ble_data_finish ,queue 
+3c3d 20203c3e branch module_clr_state 
+
+module_clr_state:
+3c3e 6fe147ca fetch 2 ,mem_module_flag 
+3c3f f93ffe00 qset0 pdata 
+3c40 67e147ca store 2 ,mem_module_flag 
+3c41 20600000 rtn 
+
+module_set_state:
+3c42 6fe147ca fetch 2 ,mem_module_flag 
+3c43 f9207e00 qset1 pdata 
+3c44 67e147ca store 2 ,mem_module_flag 
+3c45 20600000 rtn 
+
+mouse_init:
+3c46 20406d29 call enable_authrom 
+3c47 20403c77 call mouse_setting_config 
+3c48 204040c2 call mouse_init_sunt 
+3c49 20403fa9 call mouse_dpi_config 
+3c4a 20758000 rtn wake 
+3c4b 20404641 call mouse_drawing_optima_init 
+3c4c 20403c54 call mouse_cb_fuction 
+3c4d 20404157 call mouse_sensor_powerdown 
+3c4e 6fe0c931 fetch 1 ,mem_usb_addr 
+3c4f c3838000 rtnbit1 7 
+
+mouse_init_wireless:
+3c50 6fe14793 fetch 2 ,mem_ui_state_map 
+3c51 c286446e bbit1 ui_state_btn_down ,mouse_start_discovery 
+3c52 204045b9 call mouse_check_select_device_by_switch 
+3c53 20203ceb branch mouse_start_work 
+
+mouse_cb_fuction:
+3c54 580047df setarg mouse_24g_before_lpm_sleep 
+3c55 67e1447c store 2 ,mem_cb_before_lpm_sleep 
+3c56 58004780 setarg mouse_24g_package_data 
+3c57 67e148a3 store 2 ,mem_cb_24g_transmit_data 
+3c58 580047a9 setarg mouse_24g_search_dongle 
+3c59 67e148a5 store 2 ,mem_cb_24g_search_receiver 
+3c5a 58003d5b setarg mouse_lpm_before_common 
+3c5b 67e148a7 store 2 ,mem_cb_24g_lpm_before 
+3c5c 580042ba setarg mouse_le 
+3c5d 67e14464 store 2 ,mem_cb_le_process 
+3c5e 58004372 setarg mouse_bt 
+3c5f 67e14466 store 2 ,mem_cb_bt_process 
+3c60 58003d56 setarg mouse_process_lpm_before 
+3c61 67e14462 store 2 ,mem_cb_before_lpm 
+3c62 5800424f setarg mouse_priority_bb_event 
+3c63 67e1446a store 2 ,mem_cb_bb_event_process 
+3c64 58004566 setarg mouse_idle 
+3c65 67e14468 store 2 ,mem_cb_idle_process 
+3c66 58003d34 setarg mouse_before_hibernate 
+3c67 67e14460 store 2 ,mem_cb_before_hibernate 
+3c68 580042a3 setarg mouse_le_bb_event_connect_complete 
+3c69 67e1446e store 2 ,mem_cb_att_write 
+3c6a 580043d0 setarg mouse_bb_event_timer 
+3c6b 67e14472 store 2 ,mem_cb_event_timer 
+3c6c 58003e84 setarg mouse_spi_write_flash_cb 
+3c6d 67e14476 store 2 ,mem_cb_spi_flash_write_complate 
+3c6e 58003d23 setarg mouse_lpm_check_wake_lock 
+3c6f 67e1445e store 2 ,mem_cb_check_wakelock 
+3c70 580048d2 setarg mouse_le_transmit 
+3c71 67e14470 store 2 ,mem_cb_ble_transmit 
+3c72 580048d4 setarg mouse_bt_slave_match 
+3c73 67e1447a store 2 ,mem_cb_bt_slave_match 
+3c74 580048e7 setarg mouse_set_lpm_mult 
+3c75 67e14474 store 2 ,mem_cb_bt_set_mult 
+3c76 20600000 rtn 
+
+mouse_setting_config:
+3c77 20758000 rtn wake 
+3c78 204025f1 call g24_transmit_init 
+3c79 20402296 call g24_chmap_param_init 
+3c7a 20403e3b call mouse_gpio_init 
+3c7b 20403cac call mouse_param_init 
+3c7c 20401aa3 call le_set_config_fixed_ltk 
+3c7d 20401acc call le_set_justwork 
+3c7e 20401abf call le_set_fixed_ltk 
+3c7f 20401aab call le_set_config_read_authentication 
+3c80 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3c81 c289c550 bbit1 mouse_enable_eeprom ,mouse_load_eeprom_info_check 
+3c82 c2894511 bbit1 mouse_enable_flash ,mouse_load_flash_info_check 
+3c83 20600000 rtn 
+
+mouse_xtal_init:
+3c84 7040c508 jam 0x08 ,mem_fcomp_div 
+3c85 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3c86 c3860000 rtnbit1 mouse_enable_16m 
+3c87 7040c518 jam 0x18 ,mem_fcomp_div 
+3c88 20600000 rtn 
+
+mouse_default_init:
+3c89 6fe14906 fetch 2 ,mem_mouse_discovery_timeout 
+3c8a 67e14798 store 2 ,mem_discovery_timeout 
+3c8b 6fe14908 fetch 2 ,mem_mouse_24g_pair_timeout_init 
+3c8c 67e14889 store 2 ,mem_24g_pair_timeout_init 
+3c8d 6fe0c90b fetch 1 ,mem_mouse_24g_reconn_timeout_init 
+3c8e 67e1488d store 2 ,mem_24g_reconn_timeout_init 
+3c8f 6fe2c90d fetch 5 ,mem_rssi_dis_min_24g_init 
+3c90 67e2c8d3 store 5 ,mem_rssi_dis_min_24g 
+3c91 6fe0c90c fetch 1 ,mem_mouse_24g_pair_tx_power 
+3c92 67e0c884 store 1 ,mem_24g_pair_tx_power 
+3c93 6fe0c912 fetch 1 ,mem_mouse_enable_flag 
+3c94 2feffe00 isolate1 mouse_adc_enable ,pdata 
+3c95 2040c5ff call mouse_adc_read_enable ,true 
+3c96 6fe0c912 fetch 1 ,mem_mouse_enable_flag 
+3c97 2feffe02 isolate1 mouse_24g_250hz_enable ,pdata 
+3c98 2040c601 call mouse_24g_set_250hz ,true 
+3c99 6fe0c912 fetch 1 ,mem_mouse_enable_flag 
+3c9a 2feffe01 isolate1 mouse_search_dongle_enable ,pdata 
+3c9b 2040c603 call mouse_24g_search_dongle_enable ,true 
+3c9c 6fe0c912 fetch 1 ,mem_mouse_enable_flag 
+3c9d 2feffe03 isolate1 mouse_clk_16m_enable ,pdata 
+3c9e 2040c605 call mouse_16m_enable ,true 
+3c9f 6fe0c912 fetch 1 ,mem_mouse_enable_flag 
+3ca0 2feffe04 isolate1 mouse_dpi_4_level_enable ,pdata 
+3ca1 2040c607 call mouse_dpi_4level_enable ,true 
+3ca2 6fe0c912 fetch 1 ,mem_mouse_enable_flag 
+3ca3 2feffe05 isolate1 mouse_keyboard_enable ,pdata 
+3ca4 2040c611 call mouse_customer_key_enable ,true 
+3ca5 6fe0c86d fetch 1 ,mem_24g_ch_map_update 
+3ca6 245a22a5 ncall g24_chamap_param_update ,blank 
+3ca7 20403c84 call mouse_xtal_init 
+3ca8 20403d97 call mouse_adc_vol_init 
+3ca9 204022b9 call g24_enable_1m 
+3caa 204046ed call mouse_24g_long_sleep_set 
+3cab 202022bc branch g24_pair_param_init 
+
+mouse_param_init:
+3cac 58009468 setarg mouse_bt_sdp_addr 
+3cad 67e14667 store 2 ,mem_ui_uuid_table 
+3cae 58009732 setarg mouse_ble_att_list_addr 
+3caf 67e14399 store 2 ,mem_ui_le_uuid_table 
+3cb0 58002580 setarg 0x2580 
+3cb1 67e1c0b2 store 3 ,mem_class 
+3cb2 70417803 jam 3 ,mem_lpm_mult_timeout 
+3cb3 70415b08 jam 8 ,mem_lpm_overhead 
+3cb4 704bb000 jam dpi_button_state_up ,mem_select_device_button_statue 
+3cb5 704bb000 jam pb_button_state_up ,mem_select_device_button_statue 
+3cb6 704bb100 jam commbination_key_state_up ,mem_commbination_key_statue 
+3cb7 58000200 setarg 0x0200 
+3cb8 67e14159 store 2 ,mem_lpm_interval 
+3cb9 70438317 jam 0x17 ,mem_le_local_mtu 
+3cba 70438517 jam 0x17 ,mem_le_remote_mtu 
+3cbb 58000a77 setarg 0x0a77 
+3cbc 67e14489 store 2 ,mem_spi_init_clk 
+3cbd 38000306 setsect 0 ,0x306 
+3cbe 38044440 setsect 1 ,0x4440 
+3cbf 38090000 setsect 2 ,0x10000 
+3cc0 380c4408 setsect 3 ,0x4408 
+3cc1 67e4c669 store 9 ,mem_all_uuid_16bits 
+3cc2 38001224 setsect 0 ,0x1224 
+3cc3 38044000 setsect 1 ,0x4000 
+3cc4 38080000 setsect 2 ,0x0 
+3cc5 e7e28005 istore 5 ,contw 
+3cc6 3803ffff setsect 0 ,0x3ffff 
+3cc7 3806fe23 setsect 1 ,0x2fe23 
+3cc8 380999d9 setsect 2 ,0x199d9 
+3cc9 380c020d setsect 3 ,0x20d 
+3cca 67e440a0 store 8 ,mem_features 
+3ccb 58004b07 setarg mem_le_tx_buffer0_omemalloc 
+3ccc 67e143e1 store 2 ,mem_ble_l2cap_tx_buff0_ptr 
+3ccd 58000010 setarg mouse_ble_l2cap_txbuff_size 
+3cce 67e143e3 store 2 ,mem_ble_l2cap_tx_buff_size_ptr 
+3ccf 20404838 call mouse_device_led_all_off 
+3cd0 204047f0 call mouse_device_poweron_timer_init 
+3cd1 20403daa call mouse_adc_gpio_mux_init 
+3cd2 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3cd3 c30dbcd8 bbit0 mouse_enable_bt_125hz ,mouse_param_init_intervl_end 
+3cd4 7044580c jam classic_interval_7_5ms ,mem_sniff_param_interval 
+3cd5 58000006 setarg le_interval_7_5ms 
+3cd6 67e14375 store 2 ,mem_le_interval_min 
+3cd7 67e14377 store 2 ,mem_le_interval_min + 2 
+
+mouse_param_init_intervl_end:
+3cd8 204025fd call g24_interval_param_8ms 
+3cd9 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3cda c30c3cdc bbit0 mouse_enable_24g_250hz ,mouse_24g_short_sleep_set_end 
+3cdb 204025f5 call g24_interval_param_4ms 
+
+mouse_24g_short_sleep_set_end:
+3cdc 6fe0c93f fetch 1 ,mem_device_flag 
+3cdd 67e0cac6 store 1 ,mem_device_flag_temp 
+3cde 6fe1c380 fetch 3 ,mem_le_lap + 3 
+3cdf 67e1cadb store 3 ,mem_mouse_le_lap_temp 
+3ce0 6fe0c905 fetch 1 ,mem_adc_config_flag_init 
+3ce1 1fe17efe and pdata ,0xfe ,pdata 
+3ce2 67e0c905 store 1 ,mem_adc_config_flag_init 
+3ce3 67e0c4a5 store 1 ,mem_adc_config_flag 
+3ce4 58000000 setarg 0 
+3ce5 67e3c8d8 store 7 ,mem_mouse_key 
+3ce6 6fe0c796 fetch 1 ,mem_ui_button_timeout 
+3ce7 67e0cbad store 1 ,mem_bt_discovery_count 
+3ce8 67e0cbae store 1 ,mem_select_device_count 
+3ce9 20401a36 call le_modified_name 
+3cea 202041bb branch mouse_sensor_set_angle 
+
+mouse_start_work:
+3ceb 44e14018 bpatch patch18_2 ,mem_patch18 
+3cec 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3ced c297c724 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_start_auto_pair_mode 
+3cee 6fe0c93f fetch 1 ,mem_device_flag 
+3cef c0004710 beq mode_24g_device ,mouse_24g_start_mode 
+3cf0 20403cfe call mouse_wakeup_from_power_check 
+3cf1 24344206 nbranch mouse_buletooth_fast_conn_init ,user 
+
+mouse_start_reconnect_device:
+3cf2 44e1c018 bpatch patch18_3 ,mem_patch18 
+3cf3 da204940 arg mem_device1_type ,rega 
+3cf4 6fe0c93f fetch 1 ,mem_device_flag 
+3cf5 1fe0ffff increase -1 ,pdata 
+3cf6 1feffe1d mul32 pdata ,29 ,pdata 
+3cf7 9a20a200 iadd rega ,rega 
+3cf8 efe08011 ifetch 1 ,rega 
+3cf9 67e0c487 store 1 ,mem_xrecord_mode 
+
+mouse_start_reconnect:
+3cfa 6fe0c487 fetch 1 ,mem_xrecord_mode 
+3cfb c019bd08 beq rec_3_mode ,mouse3_0_check_reconn_target 
+3cfc c01a3d14 beq rec_4_mode ,mouse4_0_check_reconn_target 
+3cfd 2020446e branch mouse_start_discovery 
+
+mouse_wakeup_from_power_check:
+3cfe 44e24018 bpatch patch18_4 ,mem_patch18 
+3cff 78547c00 disable user 
+3d00 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3d01 c305bd05 bbit0 mouse_enable_wakeup_from_power ,mouse_wakeup_from_power 
+3d02 6fe08989 fetch 1 ,mem_wakup_from_power_flag 
+3d03 c3013d05 bbit0 bit_power_on ,mouse_wakeup_from_power 
+3d04 78347c00 enable user 
+
+mouse_wakeup_from_power:
+3d05 6fe0cac3 fetch 1 ,mem_reconn_times_init 
+3d06 67e0cac2 store 1 ,mem_reconn_times 
+3d07 20600000 rtn 
+
+mouse3_0_check_reconn_target:
+3d08 68494bca fetcht 2 ,mem_mouse_fast_page_to 
+3d09 6fe0cad3 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+3d0a c07fbd0c beq 0xff ,mouse3_0_check_reconn_target_next 
+3d0b 68494bc7 fetcht 2 ,mem_mouse_page_to 
+
+mouse3_0_check_reconn_target_next:
+3d0c 604940c1 storet 2 ,mem_page_to 
+3d0d 6fe341e0 fetch 6 ,mem_hci_plap 
+3d0e 203a323d branch app_bt_start_discovery_short ,blank 
+3d0f 70448217 jam 0x17 ,mem_app_connection_options 
+3d10 6fe0c76b fetch 1 ,mem_ssp_enable 
+3d11 243a3233 nbranch app_bt_start_reconnect ,blank 
+3d12 70448204 jam 0x04 ,mem_app_connection_options 
+3d13 20203233 branch app_bt_start_reconnect 
+
+mouse4_0_check_reconn_target:
+3d14 704ad901 jam 1 ,mem_mouse_le_reconnect_flag 
+3d15 6848cbc9 fetcht 1 ,mem_mouse_fast_direct_timeout 
+3d16 6fe0cad3 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+3d17 c07fbd19 beq 0xff ,mouse4_0_check_reconn_target_next 
+3d18 6848c90a fetcht 1 ,mem_mouse_direct_timeout 
+
+mouse4_0_check_reconn_target_next:
+3d19 6048cb89 storet 1 ,mem_mouse_direct_timer 
+3d1a 2040326a call app_lpm_mult_disable 
+3d1b 6fe1cae1 fetch 3 ,mem_le_adv_direct_ind 
+3d1c 67e1c3ef store 3 ,mem_le_adv_data + 4 
+3d1d 20404303 call mouse_le_check_adv_flag 
+3d1e 58000004 setarg adv_flag_bredr_not_supported 
+3d1f e7e08006 istore 1 ,contr 
+3d20 d8c0440b arg mem_le_scan_data ,contr 
+3d21 2040430a call mouse_le_adv_data_update 
+3d22 20207824 branch check_51cmd_adv 
+
+mouse_lpm_check_wake_lock:
+3d23 c5133222 bmark1 mark_24g ,app_get_lpm_wake_lock 
+3d24 6fe0cabe fetch 1 ,mem_mouse_clear_sensor_data_flag 
+3d25 203a3222 branch app_get_lpm_wake_lock ,blank 
+3d26 6fe0cb06 fetch 1 ,mem_mouse_le_conn_param_reject 
+3d27 c000b222 beq le_lpm_disable ,app_get_lpm_wake_lock 
+3d28 6fe144df fetch 2 ,mem_sdp_remote_cid 
+3d29 243a3222 nbranch app_get_lpm_wake_lock ,blank 
+3d2a 6fe0c8e9 fetch 1 ,mem_mouse_wheel_trigger 
+3d2b 243a3222 nbranch app_get_lpm_wake_lock ,blank 
+3d2c 20203224 branch app_put_lpm_wake_lock 
+
+mouse_delay_enter_hibernata:
+3d2d 6fe0c90a fetch 1 ,mem_mouse_direct_timeout 
+3d2e 67e0cad6 store 1 ,mem_mouse_bluetooth_reconnect_timeout 
+3d2f 20600000 rtn 
+
+mouse_app_enter_hibernate:
+3d30 44e2c018 bpatch patch18_5 ,mem_patch18 
+3d31 2040414d call mouse_sensor_reset 
+3d32 20404157 call mouse_sensor_powerdown 
+3d33 2020325c branch app_enter_hibernate 
+
+mouse_before_hibernate:
+3d34 44e34018 bpatch patch18_6 ,mem_patch18 
+3d35 6ff20138 fetch 4 ,core_lpm_ctrl 
+3d36 79207e1a set1 26 ,pdata 
+3d37 67f2004c store 4 ,core_lpm_reg 
+3d38 2040152d call lpm_write_ctrl 
+3d39 20406d2d call disable_authrom 
+3d3a 20404838 call mouse_device_led_all_off 
+3d3b 20403f30 call mouse_before_hibernate_wheel_gpio_set 
+3d3c 20403d40 call mouse_setgpio_hibernate 
+3d3d 20404548 call mouse_flash_power_down 
+3d3e 6848c926 fetcht 1 ,mem_sensor_motion_gpio 
+3d3f 20205f66 branch gpio_clr_wake 
+
+mouse_setgpio_hibernate:
+3d40 44e3c018 bpatch patch18_7 ,mem_patch18 
+3d41 20404204 call mouse_set_sdio_high 
+3d42 20407f1a call clear_wake 
+3d43 20403d5b call mouse_lpm_before_common 
+3d44 20403d48 call mouse_gpio_pu_idle 
+3d45 6848c928 fetcht 1 ,mem_mouse_reuse_2ice_gpio 
+3d46 20403e71 call mouse_gpio_config_input_pu 
+3d47 20203e73 branch mouse_gpio_set_high_impedance 
+
+mouse_gpio_pu_idle:
+3d48 d8c08070 arg core_gpio_conf ,contr 
+3d49 df200013 arg 19 ,loopcnt 
+
+mouse_gpio_pu_idle_loop:
+3d4a efe08006 ifetch 1 ,contr 
+3d4b 243a3d4f nbranch mouse_gpio_pu_idle_configured ,blank 
+3d4c 58000040 setarg 0x40 
+3d4d 18c08bff add contr ,-1 ,contw 
+3d4e e7e08005 istore 1 ,contw 
+
+mouse_gpio_pu_idle_configured:
+3d4f c2003d4a loop mouse_gpio_pu_idle_loop 
+3d50 dfe080e8 arg core_gpio_conf1 + 3 ,pdata 
+3d51 98c67c00 isub contr ,null 
+3d52 20628000 rtn zero 
+
+mouse_gpio_pu_idle_ext:
+3d53 df200003 arg 3 ,loopcnt 
+3d54 d8c080e5 arg core_gpio_conf1 ,contr 
+3d55 20203d4a branch mouse_gpio_pu_idle_loop 
+
+mouse_process_lpm_before:
+3d56 c6130000 rtnmark1 mark_24g 
+3d57 20403d5b call mouse_lpm_before_common 
+3d58 6fe0809d fetch 1 ,mem_lpm_current_mult 
+3d59 247a0000 nrtn blank 
+3d5a 20205f66 branch gpio_clr_wake 
+
+mouse_lpm_before_common:
+3d5b 44e44019 bpatch patch19_0 ,mem_patch19 
+3d5c 20403ea3 call mouse_wheel_check 
+3d5d 6fe0c91b fetch 1 ,mem_mouse_sensor_sclk_gpio 
+3d5e d840003f arg gpcfg_output_high ,temp 
+3d5f 20405fb3 call gpio_config_function_int 
+3d60 20405a26 call twspi_disable 
+3d61 6848c913 fetcht 1 ,mem_lbutton_gpio 
+3d62 20405f5a call gpio_set_wake 
+3d63 6848c915 fetcht 1 ,mem_rbutton_gpio 
+3d64 20405f5a call gpio_set_wake 
+3d65 6848c914 fetcht 1 ,mem_mbutton_gpio 
+3d66 20405f5a call gpio_set_wake 
+3d67 6848c916 fetcht 1 ,mem_bk_button_gpio 
+3d68 20405f5a call gpio_set_wake 
+3d69 6848c917 fetcht 1 ,mem_fw_button_gpio 
+3d6a 20405f5a call gpio_set_wake 
+3d6b 6848c918 fetcht 1 ,mem_dpi_button_gpio 
+3d6c 20405f5a call gpio_set_wake 
+3d6d 6848c924 fetcht 1 ,mem_config_select_device_button_gpio 
+3d6e 20405f5a call gpio_set_wake 
+3d6f 6848c925 fetcht 1 ,mem_customer_key_gpio 
+3d70 20405f5a call gpio_set_wake 
+3d71 6848c919 fetcht 1 ,mem_whee_a_data_gpio 
+3d72 20405f56 call gpio_set_wake_by_current_state 
+3d73 6848c91a fetcht 1 ,mem_whee_b_data_gpio 
+3d74 20405f56 call gpio_set_wake_by_current_state 
+3d75 6848c921 fetcht 1 ,mem_whee_ta_data_gpio 
+3d76 20405f56 call gpio_set_wake_by_current_state 
+3d77 6848c922 fetcht 1 ,mem_whee_tb_data_gpio 
+3d78 20405f56 call gpio_set_wake_by_current_state 
+3d79 6848c926 fetcht 1 ,mem_sensor_motion_gpio 
+3d7a 20205f5a branch gpio_set_wake 
+
+mouse_set_mult:
+3d7b 6fe14793 fetch 2 ,mem_ui_state_map 
+3d7c c284bd80 bbit1 ui_state_ble_connected ,mouse_set_ble_mult 
+3d7d 6fe14793 fetch 2 ,mem_ui_state_map 
+3d7e c2803d83 bbit1 ui_state_bt_connected ,mouse_set_bt_mult 
+3d7f 20600000 rtn 
+
+mouse_set_ble_mult:
+3d80 1a227e00 copy rega ,pdata 
+3d81 243a1ab3 nbranch le_set_config_short_mult ,blank 
+3d82 20201ab5 branch le_clr_config_short_mult 
+
+mouse_set_bt_mult:
+3d83 1a227e00 copy rega ,pdata 
+3d84 243a14ef nbranch classic_bt_set_mult_short_flag ,blank 
+3d85 202014f1 branch classic_bt_clr_mult_short_flag 
+
+mouse_adc_gpio_set:
+3d86 6fe0c4a5 fetch 1 ,mem_adc_config_flag 
+3d87 c1810000 rtnne adc_config_gpio 
+
+mouse_adc_gpio_check_output:
+3d88 44e4c019 bpatch patch19_1 ,mem_patch19 
+3d89 6848c4a6 fetcht 1 ,mem_adc_channel 
+3d8a 18467c03 sub temp ,3 ,null 
+3d8b 20213d94 branch mouse_adc_gpio_4_7_set ,positive 
+3d8c 18408405 increase 5 ,temp 
+3d8d 6048c904 storet 1 ,mem_adc_channel_gpio 
+
+mouse_adc_gpio_set_next:
+3d8e 18422200 copy temp ,rega 
+3d8f 20405fbd call gpio_get_config 
+3d90 c01fc87e beq gpcfg_output_high ,mouse_set_24g_led_statue 
+3d91 2040487c call mouse_clear_24g_led_statue 
+3d92 1a220400 copy rega ,temp 
+3d93 20205fa3 branch gpio_set_high_impedance 
+
+mouse_adc_gpio_4_7_set:
+3d94 18408404 increase 4 ,temp 
+3d95 6048c904 storet 1 ,mem_adc_channel_gpio 
+3d96 20203d8e branch mouse_adc_gpio_set_next 
+
+mouse_adc_vol_init:
+3d97 6fe0c905 fetch 1 ,mem_adc_config_flag_init 
+3d98 c0013da0 beq adc_config_gpio ,mouse_adc_gpio_vol_init 
+3d99 c0003da5 beq adc_config_vinlpm ,mouse_adc_gpio_vinlpm_init 
+3d9a 70490500 jam adc_config_vinlpm ,mem_adc_config_flag_init 
+3d9b 582c0172 setarg 0x2c0172 
+3d9c 67e1c8eb store 3 ,mem_mouse_vdd_full_vol 
+3d9d 58014001 setarg 0x014001 
+3d9e e7e18005 istore 3 ,contw 
+3d9f 20600000 rtn 
+
+mouse_adc_gpio_vol_init:
+3da0 585d0099 setarg 0x5d0099 
+3da1 67e1c8eb store 3 ,mem_mouse_vdd_full_vol 
+3da2 58007100 setarg 0x007100 
+3da3 e7e18005 istore 3 ,contw 
+3da4 20600000 rtn 
+
+mouse_adc_gpio_vinlpm_init:
+3da5 58c8012c setarg 0xc8012c 
+3da6 67e1c8eb store 3 ,mem_mouse_vdd_full_vol 
+3da7 5800dc00 setarg 0x00dc00 
+3da8 e7e18005 istore 3 ,contw 
+3da9 20600000 rtn 
+
+mouse_adc_gpio_mux_init:
+3daa 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3dab c40a0000 rtnbit0 mouse_enable_adc 
+3dac 7048fd01 jam mouse_adc_check_multiple ,mem_adc_mux_status 
+3dad c3970000 rtnbit1 mouse_enable_dpi_key_connect_adc 
+3dae c3958000 rtnbit1 mouse_enable_select_device_by_switch_adc 
+3daf 7048fd00 jam mouse_adc_check_battery_only ,mem_adc_mux_status 
+3db0 20600000 rtn 
+
+mouse_adc_read_interval:
+3db1 6fe0c8fe fetch 1 ,mem_adc_read_timer 
+3db2 1fe0fe01 increase 1 ,pdata 
+3db3 67e0c8fe store 1 ,mem_adc_read_timer 
+3db4 6848c8ff fetcht 1 ,mem_adc_read_time_init 
+3db5 98467c00 isub temp ,null 
+3db6 20600000 rtn 
+
+mouse_adc_read:
+3db7 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3db8 c40a0000 rtnbit0 mouse_enable_adc 
+3db9 20403d86 call mouse_adc_gpio_set 
+3dba 6fe0c8fd fetch 1 ,mem_adc_mux_status 
+3dbb 203a3dce branch mouse_adc_read_battery ,blank 
+3dbc 6fe0c4a5 fetch 1 ,mem_adc_config_flag 
+3dbd c0013dc3 beq adc_config_gpio ,mouse_adc_read_gpio_mux_start 
+3dbe 7048fd03 jam mouse_adc_check_vinlpm_multiple ,mem_adc_mux_status 
+3dbf 20403db1 call mouse_adc_read_interval 
+3dc0 20213dc5 branch mouse_adc_read_gpio ,positive 
+3dc1 20403dca call mouse_adc_read_vinlpm 
+3dc2 20203dd4 branch mouse_adc_read_start 
+
+mouse_adc_read_gpio_mux_start:
+3dc3 7048fd02 jam mouse_adc_check_gpio_multiple ,mem_adc_mux_status 
+3dc4 20203dd4 branch mouse_adc_read_start 
+
+mouse_adc_read_gpio:
+3dc5 20403d88 call mouse_adc_gpio_check_output 
+3dc6 7044a502 jam adc_config_gpio ,mem_adc_config_flag 
+3dc7 6fe0cbbc fetch 1 ,mem_24g_device_led_status 
+3dc8 245a3dca ncall mouse_adc_read_vinlpm ,blank 
+3dc9 20203dd4 branch mouse_adc_read_start 
+
+mouse_adc_read_vinlpm:
+3dca 7048fe00 jam 0 ,mem_adc_read_timer 
+3dcb 6fe0c905 fetch 1 ,mem_adc_config_flag_init 
+3dcc 67e0c4a5 store 1 ,mem_adc_config_flag 
+3dcd 20600000 rtn 
+
+mouse_adc_read_battery:
+3dce 6fe0c4a5 fetch 1 ,mem_adc_config_flag 
+3dcf c0813dd2 bne adc_config_gpio ,mouse_adc_read_battery_start 
+3dd0 6fe0cbbc fetch 1 ,mem_24g_device_led_status 
+3dd1 247a0000 nrtn blank 
+
+mouse_adc_read_battery_start:
+3dd2 20403db1 call mouse_adc_read_interval 
+3dd3 24610000 nrtn positive 
+
+mouse_adc_read_start:
+3dd4 44e54019 bpatch patch19_2 ,mem_patch19 
+3dd5 6fe0cbbc fetch 1 ,mem_24g_device_led_status 
+3dd6 247a0000 nrtn blank 
+3dd7 7048fe00 jam 0 ,mem_adc_read_timer 
+3dd8 20405ff1 call enable_adc 
+3dd9 20406018 call vdd_calculate_by_mode 
+3dda 67e148f1 store 2 ,mem_mouse_vdd_now_vol 
+3ddb 6fe0c4a5 fetch 1 ,mem_adc_config_flag 
+3ddc c0813de3 bne adc_config_gpio ,mouse_adc_data_process 
+3ddd 684948f1 fetcht 2 ,mem_mouse_vdd_now_vol 
+3dde 184ffe08 mul32 temp ,8 ,pdata 
+3ddf 1fe6fc0a div pdata ,10 
+3de0 20407d2e call get_div_result 
+3de1 9840fe00 iadd temp ,pdata 
+3de2 67e148f1 store 2 ,mem_mouse_vdd_now_vol 
+
+mouse_adc_data_process:
+3de3 da2048eb arg mem_mouse_vdd_calculate_set ,rega 
+3de4 20403df5 call mouse_adc_bat_percent_lowpower_out 
+3de5 6fe0c4a9 fetch 1 ,mem_adc_power_flag 
+3de6 c2813e37 bbit1 2 ,mouse_adc_button_press 
+3de7 c280be39 bbit1 1 ,mouse_power_down 
+3de8 c3003ded bbit0 0 ,mouse_adc_no_low_voltage 
+3de9 70490201 jam 1 ,mem_mouse_adc_last_low_voltage_flag 
+3dea 20203deb branch mouse_adc_low_voltage 
+
+mouse_adc_low_voltage:
+3deb d8e00004 arg mouse_low_voltage_flag ,queue 
+3dec 20204609 branch mouse_enable_function_flag 
+
+mouse_adc_no_low_voltage:
+3ded d8e00004 arg mouse_low_voltage_flag ,queue 
+3dee 2040460d call mouse_disable_function_flag 
+3def 7049000c jam 12 ,mem_adc_low_volatage_led_timer_count 
+3df0 6fe0c902 fetch 1 ,mem_mouse_adc_last_low_voltage_flag 
+3df1 207a0000 rtn blank 
+3df2 70490200 jam 0 ,mem_mouse_adc_last_low_voltage_flag 
+3df3 6848c929 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+3df4 20204855 branch mouse_led_off 
+
+mouse_adc_bat_percent_lowpower_out:
+3df5 44e5c019 bpatch patch19_3 ,mem_patch19 
+3df6 efe40011 ifetch 8 ,rega 
+3df7 67e4095c store 8 ,mem_pdatatemp 
+3df8 6fe0c8fd fetch 1 ,mem_adc_mux_status 
+3df9 c0003e0d beq mouse_adc_check_battery_only ,mouse_adc_bat_percent_lowpower_out_battery 
+3dfa c0013dfc beq mouse_adc_check_gpio_multiple ,mouse_adc_bat_percent_lowpower_out_gpio_multiple 
+3dfb c001be2c beq mouse_adc_check_vinlpm_multiple ,mouse_adc_bat_percent_lowpower_out_vinlpm_multiple 
+
+mouse_adc_bat_percent_lowpower_out_gpio_multiple:
+3dfc 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3dfd c3173e02 bbit0 mouse_enable_dpi_key_connect_adc ,mouse_adc_bat_percent_lowpower_out_gpio_switch 
+3dfe 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3dff 684948f3 fetcht 2 ,mem_mouse_vdd_button_press_vol 
+3e00 98467c00 isub temp ,null 
+3e01 24213e2f nbranch mouse_adc_set_button_press_flag ,positive 
+
+mouse_adc_bat_percent_lowpower_out_gpio_switch:
+3e02 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3e03 c315be0d bbit0 mouse_enable_select_device_by_switch_adc ,mouse_adc_bat_percent_lowpower_out_battery 
+3e04 70490300 jam 0 ,mem_mouse_adc_button_press_flag 
+3e05 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3e06 684948f5 fetcht 2 ,mem_mouse_vdd_switch_gnd_24g_vol 
+3e07 98467c00 isub temp ,null 
+3e08 24213e0b nbranch mouse_select_24gdevice ,positive 
+3e09 204045c2 call mouse_select_btdevice 
+3e0a 20203e0d branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_select_24gdevice:
+3e0b 204045c6 call mouse_check_select_24gdevice 
+3e0c 20203e0d branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_adc_bat_percent_lowpower_out_battery:
+3e0d 20403e33 call mouse_adc_clear_button_press_flag 
+3e0e 20406061 call adc_clear_no_power_flag 
+3e0f 20406059 call adc_clear_low_power_flag 
+3e10 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3e11 6849095e fetcht 2 ,mem_pdatatemp + 2 
+3e12 98467c00 isub temp ,null 
+3e13 2441605d ncall adc_set_no_power_flag ,positive 
+3e14 68490960 fetcht 2 ,mem_pdatatemp + 4 
+3e15 98467c00 isub temp ,null 
+3e16 24416055 ncall adc_set_low_power_flag ,positive 
+
+mouse_adc_bat_level_set:
+3e17 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+3e18 6849095c fetcht 2 ,mem_pdatatemp 
+3e19 98467c00 isub temp ,null 
+3e1a 20213e28 branch mouse_adc_bat_level_100_percent ,positive 
+3e1b 6849095e fetcht 2 ,mem_pdatatemp + 2 
+3e1c 98467e00 isub temp ,pdata 
+3e1d 24213e2a nbranch mouse_adc_bat_level_0_percent ,positive 
+3e1e 203a3e2a branch mouse_adc_bat_level_0_percent ,blank 
+3e1f 1fefa264 mul32 pdata ,100 ,rega 
+3e20 6fe1095c fetch 2 ,mem_pdatatemp 
+3e21 6849095e fetcht 2 ,mem_pdatatemp + 2 
+3e22 98460400 isub temp ,temp 
+3e23 1a227e00 copy rega ,pdata 
+3e24 9846fc00 idiv temp 
+3e25 20407d2e call get_div_result 
+3e26 67e0cb01 store 1 ,mem_le_battery_level_percentage 
+3e27 20600000 rtn 
+
+mouse_adc_bat_level_100_percent:
+3e28 704b0164 jam 100 ,mem_le_battery_level_percentage 
+3e29 20600000 rtn 
+
+mouse_adc_bat_level_0_percent:
+3e2a 704b0100 jam 0 ,mem_le_battery_level_percentage 
+3e2b 20600000 rtn 
+
+mouse_adc_bat_percent_lowpower_out_vinlpm_multiple:
+3e2c 6fe0c4a5 fetch 1 ,mem_adc_config_flag 
+3e2d c0013dfc beq adc_config_gpio ,mouse_adc_bat_percent_lowpower_out_gpio_multiple 
+3e2e 20203e0d branch mouse_adc_bat_percent_lowpower_out_battery 
+
+mouse_adc_set_button_press_flag:
+3e2f 6848c4a9 fetcht 1 ,mem_adc_power_flag 
+3e30 79200402 set1 2 ,temp 
+3e31 6048c4a9 storet 1 ,mem_adc_power_flag 
+3e32 20600000 rtn 
+
+mouse_adc_clear_button_press_flag:
+3e33 6848c4a9 fetcht 1 ,mem_adc_power_flag 
+3e34 793f8402 set0 2 ,temp 
+3e35 6048c4a9 storet 1 ,mem_adc_power_flag 
+3e36 20600000 rtn 
+
+mouse_adc_button_press:
+3e37 70490301 jam 1 ,mem_mouse_adc_button_press_flag 
+3e38 20600000 rtn 
+
+mouse_power_down:
+3e39 20404838 call mouse_device_led_all_off 
+3e3a 20203d30 branch mouse_app_enter_hibernate 
+
+mouse_gpio_init:
+3e3b 6848c4c6 fetcht 1 ,mem_eeprom_wp_gpio 
+3e3c 20405f8d call gpio_config_output 
+3e3d 204078ea call usb_offline_check_init 
+3e3e 6848c913 fetcht 1 ,mem_lbutton_gpio 
+3e3f 20403e71 call mouse_gpio_config_input_pu 
+3e40 6848c915 fetcht 1 ,mem_rbutton_gpio 
+3e41 20403e71 call mouse_gpio_config_input_pu 
+3e42 6848c914 fetcht 1 ,mem_mbutton_gpio 
+3e43 20403e71 call mouse_gpio_config_input_pu 
+3e44 6848c916 fetcht 1 ,mem_bk_button_gpio 
+3e45 20403e71 call mouse_gpio_config_input_pu 
+3e46 6848c917 fetcht 1 ,mem_fw_button_gpio 
+3e47 20403e71 call mouse_gpio_config_input_pu 
+3e48 6848c918 fetcht 1 ,mem_dpi_button_gpio 
+3e49 20403e71 call mouse_gpio_config_input_pu 
+3e4a 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+3e4b 20403e71 call mouse_gpio_config_input_pu 
+3e4c 6848c924 fetcht 1 ,mem_config_select_device_button_gpio 
+3e4d 20403e71 call mouse_gpio_config_input_pu 
+3e4e 6848c925 fetcht 1 ,mem_customer_key_gpio 
+3e4f 20403e71 call mouse_gpio_config_input_pu 
+3e50 6848c919 fetcht 1 ,mem_whee_a_data_gpio 
+3e51 20403e71 call mouse_gpio_config_input_pu 
+3e52 6848c91a fetcht 1 ,mem_whee_b_data_gpio 
+3e53 20403e71 call mouse_gpio_config_input_pu 
+3e54 6848c921 fetcht 1 ,mem_whee_ta_data_gpio 
+3e55 20403e71 call mouse_gpio_config_input_pu 
+3e56 6848c922 fetcht 1 ,mem_whee_tb_data_gpio 
+3e57 20403e71 call mouse_gpio_config_input_pu 
+3e58 6848c926 fetcht 1 ,mem_sensor_motion_gpio 
+3e59 20403e71 call mouse_gpio_config_input_pu 
+3e5a 6848c927 fetcht 1 ,mem_device_switch_gpio 
+3e5b 20403e71 call mouse_gpio_config_input_pu 
+3e5c 6848c929 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+3e5d 20405f8d call gpio_config_output 
+3e5e 6848c92a fetcht 1 ,mem_config_device_24g_led_gpio 
+3e5f 20405f8d call gpio_config_output 
+3e60 6848c92b fetcht 1 ,mem_config_device_bt1_led_gpio 
+3e61 20405f8d call gpio_config_output 
+3e62 6848c92c fetcht 1 ,mem_config_device_bt2_led_gpio 
+3e63 20405f8d call gpio_config_output 
+3e64 6848c92d fetcht 1 ,mem_dpi_led_gpio 
+3e65 20405f8d call gpio_config_output 
+3e66 6848c91d fetcht 1 ,mem_select_sensor_angle_gpio 
+3e67 20203e71 branch mouse_gpio_config_input_pu 
+
+mouse_gpio_set_pupd_by_input:
+3e68 18467cff sub temp ,ui_button_gpio_disable ,null 
+3e69 20628000 rtn zero 
+3e6a 18410e7f and temp ,0x7f ,queue 
+3e6b 6ff2011c fetch 4 ,core_gpio_in 
+3e6c afefffff qisolate1 pdata 
+3e6d 2020be71 branch mouse_gpio_config_input_pu ,true 
+3e6e 20203e6f branch mouse_gpio_config_input_pd 
+
+mouse_gpio_config_input_pd:
+3e6f 79200407 set1 gpio_active_bit ,temp 
+3e70 20205f74 branch gpio_config_input 
+
+mouse_gpio_config_input_pu:
+3e71 793f8407 set0 gpio_active_bit ,temp 
+3e72 20205f74 branch gpio_config_input 
+
+mouse_gpio_set_high_impedance:
+3e73 6fe1cbf0 fetch 3 ,mem_mouse_set_high_impedance_bit_set 
+3e74 67e1895c store 3 ,mem_pdatatemp 
+3e75 df200014 arg 20 ,loopcnt 
+3e76 d8400000 arg 0 ,temp 
+
+mouse_gpio_set_high_impedance_bit_loop:
+3e77 6fe1895c fetch 3 ,mem_pdatatemp 
+3e78 2feffe00 isolate1 0 ,pdata 
+3e79 2040dfa3 call gpio_set_high_impedance ,true 
+3e7a 6fe1895c fetch 3 ,mem_pdatatemp 
+3e7b 1fe3fe00 lshift pdata ,pdata 
+3e7c 67e1895c store 3 ,mem_pdatatemp 
+3e7d 18408401 increase 1 ,temp 
+3e7e c2003e77 loop mouse_gpio_set_high_impedance_bit_loop 
+3e7f 20600000 rtn 
+
+mouse_sensor_spi_init:
+3e80 20403e85 call mouse_spid_init_pin 
+3e81 70448973 jam 0x73 ,mem_spi_init_clk 
+3e82 20403e84 call mouse_spi_init 
+3e83 20205a2a branch twspi_enable 
+
+mouse_spi_write_flash_cb:
+
+mouse_spi_init:
+3e84 20205ba4 branch spid_init 
+
+mouse_spid_init_pin:
+3e85 6fe0c91b fetch 1 ,mem_mouse_sensor_sclk_gpio 
+3e86 d8400021 arg gpcfg_spid_sck ,temp 
+3e87 20405fb3 call gpio_config_function_int 
+3e88 6fe0c91c fetch 1 ,mem_mouse_sensor_sdio_gpio 
+3e89 d8400023 arg gpcfg_spid_sdio ,temp 
+3e8a 20205fb3 branch gpio_config_function_int 
+
+mouse_motion:
+3e8b 44e64019 bpatch patch19_4 ,mem_patch19 
+3e8c 78547c00 disable user 
+3e8d 58000000 setarg 0 
+3e8e 67e348d9 store 6 ,mem_mouse_x 
+3e8f 2040415b call mouse_check_sensor_data 
+3e90 20403e99 call mouse_zwheel 
+3e91 20403e9e call mouse_t_zwheel 
+3e92 20403ff7 call mouse_key 
+3e93 6fe0c8d8 fetch 1 ,mem_mouse_key 
+3e94 1fe17e1f and_into 0x1f ,pdata 
+3e95 67e0c8d8 store 1 ,mem_mouse_key 
+3e96 24344641 nbranch mouse_drawing_optima_init ,user 
+3e97 20404633 call mouse_drawing_optima 
+3e98 2020445f branch mouse_no_data_timer_init 
+
+mouse_zwheel:
+3e99 6fe0c8e8 fetch 1 ,mem_mouse_z_data 
+3e9a 207a0000 rtn blank 
+3e9b 67e0c8dd store 1 ,mem_mouse_z 
+3e9c 7048e800 jam 0 ,mem_mouse_z_data 
+3e9d 20207d92 branch enable_user 
+
+mouse_t_zwheel:
+3e9e 6fe0c8e4 fetch 1 ,mem_mouse_tz_data 
+3e9f 207a0000 rtn blank 
+3ea0 67e0c8de store 1 ,mem_mouse_tz 
+3ea1 7048e400 jam 0 ,mem_mouse_tz_data 
+3ea2 20207d92 branch enable_user 
+
+mouse_wheel_check:
+3ea3 20403eb0 call mouse_t_wheel_scan 
+3ea4 20403eec call mouse_wheel_scan 
+3ea5 6fe0c8e2 fetch 1 ,mem_wheel_tb_new_pinlevel 
+3ea6 6848c8e1 fetcht 1 ,mem_wheel_tb_old_pinlevel 
+3ea7 67e0c8e1 store 1 ,mem_wheel_tb_old_pinlevel 
+3ea8 98467c00 isub temp ,null 
+3ea9 2422b226 nbranch app_lpm_wake_auto_lock ,zero 
+3eaa 6fe0c8e6 fetch 1 ,mem_mwheel_b_new_pinlevel 
+3eab 6848c8e5 fetcht 1 ,mem_mwheel_b_old_pinlevel 
+3eac 67e0c8e5 store 1 ,mem_mwheel_b_old_pinlevel 
+3ead 98467c00 isub temp ,null 
+3eae 2422b226 nbranch app_lpm_wake_auto_lock ,zero 
+3eaf 20600000 rtn 
+
+mouse_t_wheel_scan:
+3eb0 6fe0c921 fetch 1 ,mem_whee_ta_data_gpio 
+3eb1 c17f8000 rtneq gpio_disable 
+3eb2 da200000 arg 0 ,rega 
+3eb3 6848c921 fetcht 1 ,mem_whee_ta_data_gpio 
+3eb4 20405f7d call gpio_get_bit 
+3eb5 7920a200 setflag true ,0 ,rega 
+3eb6 6848c922 fetcht 1 ,mem_whee_tb_data_gpio 
+3eb7 20405f7d call gpio_get_bit 
+3eb8 7920a201 setflag true ,1 ,rega 
+3eb9 1a227e00 copy rega ,pdata 
+3eba 67e0c8e2 store 1 ,mem_wheel_tb_new_pinlevel 
+3ebb c000bec0 beq 0x01 ,mouse_t_wheel_scan_judge1 
+3ebc c0013ec4 beq 0x02 ,mouse_t_wheel_scan_judge2 
+3ebd 6fe0c8e3 fetch 1 ,mem_wheel_tog 
+3ebe c283bed0 bbit1 7 ,mouse_t_wheel_scan_judge3 
+3ebf 20600000 rtn 
+
+mouse_t_wheel_scan_judge1:
+3ec0 6fe0c8e1 fetch 1 ,mem_wheel_tb_old_pinlevel 
+3ec1 c0003ec8 beq 0 ,mouse_t_wheel_scan_judge11 
+3ec2 c001beca beq 3 ,mouse_t_wheel_scan_judge12 
+3ec3 20600000 rtn 
+
+mouse_t_wheel_scan_judge2:
+3ec4 6fe0c8e1 fetch 1 ,mem_wheel_tb_old_pinlevel 
+3ec5 c0003ecc beq 0 ,mouse_t_wheel_scan_judge21 
+3ec6 c001bece beq 3 ,mouse_t_wheel_scan_judge22 
+3ec7 20600000 rtn 
+
+mouse_t_wheel_scan_judge11:
+3ec8 7048e382 jam 0x82 ,mem_wheel_tog 
+3ec9 20600000 rtn 
+
+mouse_t_wheel_scan_judge12:
+3eca 7048e381 jam 0x81 ,mem_wheel_tog 
+3ecb 20600000 rtn 
+
+mouse_t_wheel_scan_judge21:
+3ecc 7048e380 jam 0x80 ,mem_wheel_tog 
+3ecd 20600000 rtn 
+
+mouse_t_wheel_scan_judge22:
+3ece 7048e383 jam 0x83 ,mem_wheel_tog 
+3ecf 20600000 rtn 
+
+mouse_t_wheel_scan_judge3:
+3ed0 6fe0c8e3 fetch 1 ,mem_wheel_tog 
+3ed1 793ffe07 set0 7 ,pdata 
+3ed2 67e0c8e3 store 1 ,mem_wheel_tog 
+3ed3 c0003ed8 beq 0 ,mouse_t_wheel_scan_judge30 
+3ed4 c000bedb beq 1 ,mouse_t_wheel_scan_judge31 
+3ed5 c0013ede beq 2 ,mouse_t_wheel_scan_judge32 
+3ed6 c001bee1 beq 3 ,mouse_t_wheel_scan_judge33 
+3ed7 20600000 rtn 
+
+mouse_t_wheel_scan_judge30:
+3ed8 6fe0c8e2 fetch 1 ,mem_wheel_tb_new_pinlevel 
+3ed9 c001bee4 beq 3 ,mouse_wheel_t_forward 
+3eda 20600000 rtn 
+
+mouse_t_wheel_scan_judge31:
+3edb 6fe0c8e2 fetch 1 ,mem_wheel_tb_new_pinlevel 
+3edc c0003ee4 beq 0 ,mouse_wheel_t_forward 
+3edd 20600000 rtn 
+
+mouse_t_wheel_scan_judge32:
+3ede 6fe0c8e2 fetch 1 ,mem_wheel_tb_new_pinlevel 
+3edf c001bee8 beq 3 ,mouse_wheel_t_back 
+3ee0 20600000 rtn 
+
+mouse_t_wheel_scan_judge33:
+3ee1 6fe0c8e2 fetch 1 ,mem_wheel_tb_new_pinlevel 
+3ee2 c0003ee8 beq 0 ,mouse_wheel_t_back 
+3ee3 20600000 rtn 
+
+mouse_wheel_t_forward:
+3ee4 6fe0c8e4 fetch 1 ,mem_mouse_tz_data 
+3ee5 1fe0fe01 increase 1 ,pdata 
+3ee6 67e0c8e4 store 1 ,mem_mouse_tz_data 
+3ee7 20600000 rtn 
+
+mouse_wheel_t_back:
+3ee8 6fe0c8e4 fetch 1 ,mem_mouse_tz_data 
+3ee9 1fe0ffff increase -1 ,pdata 
+3eea 67e0c8e4 store 1 ,mem_mouse_tz_data 
+3eeb 20600000 rtn 
+
+mouse_wheel_scan:
+3eec 6fe0c919 fetch 1 ,mem_whee_a_data_gpio 
+3eed c17f8000 rtneq gpio_disable 
+3eee da200000 arg 0 ,rega 
+3eef 6848c919 fetcht 1 ,mem_whee_a_data_gpio 
+3ef0 20405f7d call gpio_get_bit 
+3ef1 7920a200 setflag true ,0 ,rega 
+3ef2 6848c91a fetcht 1 ,mem_whee_b_data_gpio 
+3ef3 20405f7d call gpio_get_bit 
+3ef4 7920a201 setflag true ,1 ,rega 
+3ef5 1a227e00 copy rega ,pdata 
+3ef6 67e0c8e6 store 1 ,mem_mwheel_b_new_pinlevel 
+3ef7 c000befc beq 0x01 ,mouse_wheel_scan_judge1 
+3ef8 c0013f00 beq 0x02 ,mouse_wheel_scan_judge2 
+3ef9 6fe0c8e7 fetch 1 ,mem_mwheel_tog 
+3efa c283bf0c bbit1 7 ,mouse_wheel_scan_judge3 
+3efb 20600000 rtn 
+
+mouse_wheel_scan_judge1:
+3efc 6fe0c8e5 fetch 1 ,mem_mwheel_b_old_pinlevel 
+3efd c0003f04 beq 0 ,mouse_wheel_scan_judge11 
+3efe c001bf06 beq 3 ,mouse_wheel_scan_judge12 
+3eff 20600000 rtn 
+
+mouse_wheel_scan_judge2:
+3f00 6fe0c8e5 fetch 1 ,mem_mwheel_b_old_pinlevel 
+3f01 c0003f08 beq 0 ,mouse_wheel_scan_judge21 
+3f02 c001bf0a beq 3 ,mouse_wheel_scan_judge22 
+3f03 20600000 rtn 
+
+mouse_wheel_scan_judge11:
+3f04 7048e782 jam 0x82 ,mem_mwheel_tog 
+3f05 20600000 rtn 
+
+mouse_wheel_scan_judge12:
+3f06 7048e781 jam 0x81 ,mem_mwheel_tog 
+3f07 20600000 rtn 
+
+mouse_wheel_scan_judge21:
+3f08 7048e780 jam 0x80 ,mem_mwheel_tog 
+3f09 20600000 rtn 
+
+mouse_wheel_scan_judge22:
+3f0a 7048e783 jam 0x83 ,mem_mwheel_tog 
+3f0b 20600000 rtn 
+
+mouse_wheel_scan_judge3:
+3f0c 6fe0c8e7 fetch 1 ,mem_mwheel_tog 
+3f0d 793ffe07 set0 7 ,pdata 
+3f0e 67e0c8e7 store 1 ,mem_mwheel_tog 
+3f0f c0003f14 beq 0 ,mouse_wheel_scan_judge30 
+3f10 c000bf17 beq 1 ,mouse_wheel_scan_judge31 
+3f11 c0013f1a beq 2 ,mouse_wheel_scan_judge32 
+3f12 c001bf1d beq 3 ,mouse_wheel_scan_judge33 
+3f13 20600000 rtn 
+
+mouse_wheel_scan_judge30:
+3f14 6fe0c8e6 fetch 1 ,mem_mwheel_b_new_pinlevel 
+3f15 c001bf20 beq 3 ,mouse_wheel_forward 
+3f16 20600000 rtn 
+
+mouse_wheel_scan_judge31:
+3f17 6fe0c8e6 fetch 1 ,mem_mwheel_b_new_pinlevel 
+3f18 c0003f20 beq 0 ,mouse_wheel_forward 
+3f19 20600000 rtn 
+
+mouse_wheel_scan_judge32:
+3f1a 6fe0c8e6 fetch 1 ,mem_mwheel_b_new_pinlevel 
+3f1b c001bf24 beq 3 ,mouse_wheel_back 
+3f1c 20600000 rtn 
+
+mouse_wheel_scan_judge33:
+3f1d 6fe0c8e6 fetch 1 ,mem_mwheel_b_new_pinlevel 
+3f1e c0003f24 beq 0 ,mouse_wheel_back 
+3f1f 20600000 rtn 
+
+mouse_wheel_forward:
+3f20 6fe0c8e8 fetch 1 ,mem_mouse_z_data 
+3f21 1fe0fe01 increase 1 ,pdata 
+3f22 67e0c8e8 store 1 ,mem_mouse_z_data 
+3f23 20600000 rtn 
+
+mouse_wheel_back:
+3f24 6fe0c8e8 fetch 1 ,mem_mouse_z_data 
+3f25 1fe0ffff increase -1 ,pdata 
+3f26 67e0c8e8 store 1 ,mem_mouse_z_data 
+3f27 20600000 rtn 
+
+mouse_wheel_gpio_set_wake:
+3f28 6848c919 fetcht 1 ,mem_whee_a_data_gpio 
+3f29 20405f56 call gpio_set_wake_by_current_state 
+3f2a 6848c91a fetcht 1 ,mem_whee_b_data_gpio 
+3f2b 20405f56 call gpio_set_wake_by_current_state 
+3f2c 6848c921 fetcht 1 ,mem_whee_ta_data_gpio 
+3f2d 20405f56 call gpio_set_wake_by_current_state 
+3f2e 6848c922 fetcht 1 ,mem_whee_tb_data_gpio 
+3f2f 20205f56 branch gpio_set_wake_by_current_state 
+
+mouse_before_hibernate_wheel_gpio_set:
+3f30 6848c919 fetcht 1 ,mem_whee_a_data_gpio 
+3f31 20403e68 call mouse_gpio_set_pupd_by_input 
+3f32 6848c91a fetcht 1 ,mem_whee_b_data_gpio 
+3f33 20403e68 call mouse_gpio_set_pupd_by_input 
+3f34 6848c921 fetcht 1 ,mem_whee_ta_data_gpio 
+3f35 20403e68 call mouse_gpio_set_pupd_by_input 
+3f36 6848c922 fetcht 1 ,mem_whee_tb_data_gpio 
+3f37 20203e68 branch mouse_gpio_set_pupd_by_input 
+
+mouse_wheel_trigger:
+3f38 6fe148dd fetch 2 ,mem_mouse_z 
+3f39 207a0000 rtn blank 
+3f3a 7048e901 jam 1 ,mem_mouse_wheel_trigger 
+3f3b 7048ea0a jam 10 ,mem_mouse_wheel_trigger_timer 
+3f3c 20600000 rtn 
+
+mouse_wheel_trigger_timer:
+3f3d da6048ea arg mem_mouse_wheel_trigger_timer ,regc 
+3f3e da403f40 arg mouse_wheel_trigger_disable ,regb 
+3f3f 202031cf branch timer_single_step 
+
+mouse_wheel_trigger_disable:
+3f40 7048e900 jam 0 ,mem_mouse_wheel_trigger 
+3f41 20600000 rtn 
+
+mouse_dpi_check:
+3f42 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3f43 c2973f51 bbit1 mouse_enable_dpi_key_connect_adc ,mouse_dpi_check_connect_adc 
+3f44 6fe0c918 fetch 1 ,mem_dpi_button_gpio 
+3f45 c17f8000 rtneq gpio_disable 
+3f46 da200000 arg 0 ,rega 
+3f47 704ba805 jam mouse_dpi_key ,mem_mouse_key_temp 
+3f48 6848c918 fetcht 1 ,mem_dpi_button_gpio 
+3f49 20403f54 call mouse_dpi_key_check 
+3f4a 67e0cba5 store 1 ,mem_mouse_dpikey_press_status 
+3f4b 6fe0c923 fetch 1 ,mem_matrix_public_gpio 
+3f4c c07fbf5d beq gpio_disable ,mouse_3io6key_dpi_check_end 
+3f4d 20404083 call mouse_matrix_public_gpio_reset 
+
+mouse_dpi_check_exit:
+3f4e 1a227e00 copy rega ,pdata 
+3f4f c282bf6d bbit1 mouse_dpi_key ,mouse_dpi_down 
+3f50 20203f74 branch mouse_dpi_up 
+
+mouse_dpi_check_connect_adc:
+3f51 6fe0c903 fetch 1 ,mem_mouse_adc_button_press_flag 
+3f52 203a3f74 branch mouse_dpi_up ,blank 
+3f53 20203f6d branch mouse_dpi_down 
+
+mouse_dpi_key_check:
+3f54 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3f55 c2963f63 bbit1 mouse_enable_dpi_key_connect_gnd ,mouse_dpi_key_connect_gnd 
+3f56 6fe0cba5 fetch 1 ,mem_mouse_dpikey_press_status 
+3f57 1fe22600 copy pdata ,regc 
+3f58 6fe0c923 fetch 1 ,mem_matrix_public_gpio 
+3f59 c07fc0b0 beq gpio_disable ,mouse_3io6key_check 
+3f5a 6fe0cbac fetch 1 ,mem_mouse_ghost_flag 
+3f5b 243a3f60 nbranch mouse_dpi_check_end ,blank 
+3f5c 20203f65 branch mouse_dpi_key_connect_matrix 
+
+mouse_3io6key_dpi_check_end:
+3f5d 6848c918 fetcht 1 ,mem_dpi_button_gpio 
+3f5e 20403e71 call mouse_gpio_config_input_pu 
+3f5f 20203f4e branch mouse_dpi_check_exit 
+
+mouse_dpi_check_end:
+3f60 7049e400 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
+3f61 704ba500 jam 0 ,mem_mouse_dpikey_press_status 
+3f62 20600000 rtn 
+
+mouse_dpi_key_connect_gnd:
+3f63 6fe0cba5 fetch 1 ,mem_mouse_dpikey_press_status 
+3f64 202040a2 branch mouse_check_key_connect_gnd 
+
+mouse_dpi_key_connect_matrix:
+3f65 20405f7d call gpio_get_bit 
+3f66 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+3f67 2020bf63 branch mouse_dpi_key_connect_gnd ,true 
+3f68 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+3f69 20405f8d call gpio_out_active 
+3f6a 6848c918 fetcht 1 ,mem_dpi_button_gpio 
+3f6b 6fe0cba5 fetch 1 ,mem_mouse_dpikey_press_status 
+3f6c 202040a2 branch mouse_check_key_connect_gnd 
+
+mouse_dpi_down:
+3f6d 6fe0c9e4 fetch 1 ,mem_mouse_dpi_button_state 
+3f6e c1008000 rtneq dpi_button_state_down 
+3f6f 7049e401 jam dpi_button_state_down ,mem_mouse_dpi_button_state 
+3f70 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3f71 c3940000 rtnbit1 mouse_enable_select_device_by_dpi_button 
+3f72 c39b0000 rtnbit1 mouse_enable_dpi_key_long_press_disconvery 
+3f73 20203f84 branch mouse_dpi_process 
+
+mouse_dpi_up:
+3f74 6fe0c9e4 fetch 1 ,mem_mouse_dpi_button_state 
+3f75 c1000000 rtneq dpi_button_state_up 
+3f76 7049e400 jam dpi_button_state_up ,mem_mouse_dpi_button_state 
+3f77 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3f78 c2943f7b bbit1 mouse_enable_select_device_by_dpi_button ,mouse_dpi_up_next 
+3f79 c29b3f7b bbit1 mouse_enable_dpi_key_long_press_disconvery ,mouse_dpi_up_next 
+3f7a 20600000 rtn 
+
+mouse_dpi_up_next:
+3f7b 6fe0c9e5 fetch 1 ,mem_mouse_dpi_long_press_flag 
+3f7c 243a3f7f nbranch mouse_dpi_up_after_long_press ,blank 
+3f7d 6fe0cbae fetch 1 ,mem_select_device_count 
+3f7e 245a3f84 ncall mouse_dpi_process ,blank 
+
+mouse_dpi_up_after_long_press:
+3f7f 7049e500 jam 0 ,mem_mouse_dpi_long_press_flag 
+3f80 6fe0c796 fetch 1 ,mem_ui_button_timeout 
+3f81 67e0cbae store 1 ,mem_select_device_count 
+3f82 67e0cbad store 1 ,mem_bt_discovery_count 
+3f83 20600000 rtn 
+
+mouse_dpi_process:
+3f84 44e6c019 bpatch patch19_5 ,mem_patch19 
+3f85 20403f8d call mouse_dpi_ghost_check 
+3f86 20740000 rtn user 
+3f87 6fe0c999 fetch 1 ,mem_mouse_dpi 
+3f88 1fe0fe01 increase 1 ,pdata 
+3f89 1fe17e03 and pdata ,0x03 ,pdata 
+3f8a 67e0c999 store 1 ,mem_mouse_dpi 
+3f8b 20403fb0 call mouse_seting_dpi 
+3f8c 20204509 branch mouse_store_device_info_delay 
+
+mouse_dpi_ghost_check:
+3f8d 78547c00 disable user 
+3f8e 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3f8f c3960000 rtnbit1 mouse_enable_dpi_key_connect_gnd 
+3f90 c3970000 rtnbit1 mouse_enable_dpi_key_connect_adc 
+3f91 6fe0cba0 fetch 1 ,mem_mouse_lkey_press_status 
+3f92 207a0000 rtn blank 
+3f93 6fe0cba1 fetch 1 ,mem_mouse_rkey_press_status 
+3f94 207a0000 rtn blank 
+3f95 78347c00 enable user 
+3f96 20600000 rtn 
+
+mouse_dpi_key_check_long_press:
+3f97 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3f98 c2943f9b bbit1 mouse_enable_select_device_by_dpi_button ,mouse_select_device_by_dpi_button 
+3f99 c29b3fa2 bbit1 mouse_enable_dpi_key_long_press_disconvery ,mouse_discovery_by_dpi_button 
+3f9a 20600000 rtn 
+
+mouse_select_device_by_dpi_button:
+3f9b 6fe0c9e4 fetch 1 ,mem_mouse_dpi_button_state 
+3f9c c1808000 rtnne dpi_button_state_down 
+3f9d da604bae arg mem_select_device_count ,regc 
+3f9e da403fa0 arg mouse_ready_reconnection_by_dpi_button ,regb 
+3f9f 202031cf branch timer_single_step 
+
+mouse_ready_reconnection_by_dpi_button:
+3fa0 7049e501 jam 1 ,mem_mouse_dpi_long_press_flag 
+3fa1 202045ce branch mouse_ready_reconnection_by_button 
+
+mouse_discovery_by_dpi_button:
+3fa2 6fe0c9e4 fetch 1 ,mem_mouse_dpi_button_state 
+3fa3 c1808000 rtnne dpi_button_state_down 
+3fa4 da604bad arg mem_bt_discovery_count ,regc 
+3fa5 da403fa7 arg mouse_long_dpi_button_bt_discovery ,regb 
+3fa6 202031cf branch timer_single_step 
+
+mouse_long_dpi_button_bt_discovery:
+3fa7 7049e501 jam 1 ,mem_mouse_dpi_long_press_flag 
+3fa8 202043ef branch mouse_long_button_bt_discovery 
+
+mouse_dpi_config:
+3fa9 20203fb3 branch mouse_seting_sensor_type 
+
+mouse_setting_dpi_4_level:
+3faa 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+3fab c38e0000 rtnbit1 mouse_enable_dpi_level_4 
+3fac 6fe0c999 fetch 1 ,mem_mouse_dpi 
+3fad c1818000 rtnne mouse_dpi_level4 
+3fae 70499900 jam mouse_dpi_level1 ,mem_mouse_dpi 
+3faf 20600000 rtn 
+
+mouse_seting_dpi:
+3fb0 44e74019 bpatch patch19_6 ,mem_patch19 
+3fb1 20403faa call mouse_setting_dpi_4_level 
+3fb2 2040480b call mouse_dpi_led_blink_delay 
+
+mouse_seting_sensor_type:
+3fb3 6fe0c92e fetch 1 ,mem_config_sensor_type 
+3fb4 c001bfd6 beq p3212 ,mouse_seting_3212_dpi 
+3fb5 c005bfea beq ka8g2 ,mouse_seting_ka8g2_dpi 
+3fb6 6fe0c999 fetch 1 ,mem_mouse_dpi 
+3fb7 c0003fbd beq mouse_dpi_level1 ,mouse_set_cpi0 
+3fb8 c000bfbb beq mouse_dpi_level2 ,mouse_set_cpi1 
+3fb9 c0013fbf beq mouse_dpi_level3 ,mouse_set_cpi2 
+3fba c001bfc1 beq mouse_dpi_level4 ,mouse_set_cpi3 
+
+mouse_set_cpi1:
+3fbb 6848c9d8 fetcht 1 ,mem_320x_dpi_1 
+3fbc 20203fc3 branch mouse_dpi_store 
+
+mouse_set_cpi0:
+3fbd 6848c9d7 fetcht 1 ,mem_320x_dpi_0 
+3fbe 20203fc3 branch mouse_dpi_store 
+
+mouse_set_cpi2:
+3fbf 6848c9d9 fetcht 1 ,mem_320x_dpi_2 
+3fc0 20203fc3 branch mouse_dpi_store 
+
+mouse_set_cpi3:
+3fc1 6848c9da fetcht 1 ,mem_320x_dpi_3 
+3fc2 20203fc3 branch mouse_dpi_store 
+
+mouse_dpi_store:
+3fc3 6fe0c92e fetch 1 ,mem_config_sensor_type 
+3fc4 c0023fd2 beq p3065_xy ,mouse_3065xy_set_dpi 
+3fc5 c002bfd2 beq mx8650 ,mouse_3065xy_set_dpi 
+3fc6 c0043fd4 beq ka8 ,mouse_ka8_set_dpi 
+3fc7 c003bfd4 beq p6520 ,mouse_ka8_set_dpi 
+3fc8 c0033fd2 beq p8009 ,mouse_3065xy_set_dpi 
+
+mouse_dpi_write:
+3fc9 6048c9e3 storet 1 ,mem_mouse_cpi_count 
+3fca 58000006 setarg mouse_dpi_address 
+3fcb 20405a2f call twspi_read 
+3fcc 1fe104f8 and pdata ,0xf8 ,temp 
+3fcd 6fe0c9e3 fetch 1 ,mem_mouse_cpi_count 
+3fce 9840fe00 iadd temp ,pdata 
+3fcf 1fed7e00 lshift8 pdata ,pdata 
+3fd0 1fe0fe06 add pdata ,mouse_dpi_address ,pdata 
+3fd1 20205a2e branch twspi_write 
+
+mouse_3065xy_set_dpi:
+3fd2 184085ff increase -1 ,temp 
+3fd3 20203fc9 branch mouse_dpi_write 
+
+mouse_ka8_set_dpi:
+3fd4 18408402 increase 2 ,temp 
+3fd5 20203fc9 branch mouse_dpi_write 
+
+mouse_seting_3212_dpi:
+3fd6 6fe0c999 fetch 1 ,mem_mouse_dpi 
+3fd7 c0003fdd beq mouse_dpi_level1 ,mouse_set_p3212_cpi0 
+3fd8 c000bfdb beq mouse_dpi_level2 ,mouse_set_p3212_cpi1 
+3fd9 c0013fdf beq mouse_dpi_level3 ,mouse_set_p3212_cpi2 
+3fda c001bfe1 beq mouse_dpi_level4 ,mouse_set_p3212_cpi3 
+
+mouse_set_p3212_cpi1:
+3fdb 6fe0c9dc fetch 1 ,mem_3212_dpi_1 
+3fdc 20203fe2 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi0:
+3fdd 6fe0c9db fetch 1 ,mem_3212_dpi_0 
+3fde 20203fe2 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi2:
+3fdf 6fe0c9dd fetch 1 ,mem_3212_dpi_2 
+3fe0 20203fe2 branch mouse_p3212_dpi 
+
+mouse_set_p3212_cpi3:
+3fe1 6fe0c9de fetch 1 ,mem_3212_dpi_3 
+
+mouse_p3212_dpi:
+3fe2 67e0c9e3 store 1 ,mem_mouse_cpi_count 
+3fe3 1fed7e00 lshift8 pdata ,pdata 
+3fe4 1fe22200 copy pdata ,rega 
+3fe5 1fe0fe0d add pdata ,mouse_p3212_dpi_xaddress ,pdata 
+3fe6 20405a2e call twspi_write 
+3fe7 1a227e00 copy rega ,pdata 
+3fe8 1fe0fe0e add pdata ,mouse_p3212_dpi_yaddress ,pdata 
+3fe9 20205a2e branch twspi_write 
+
+mouse_seting_ka8g2_dpi:
+3fea 6fe0c999 fetch 1 ,mem_mouse_dpi 
+3feb c0003ff1 beq mouse_dpi_level1 ,mouse_set_pka8g2_cpi0 
+3fec c000bfef beq mouse_dpi_level2 ,mouse_set_pka8g2_cpi1 
+3fed c0013ff3 beq mouse_dpi_level3 ,mouse_set_pka8g2_cpi2 
+3fee c001bff5 beq mouse_dpi_level4 ,mouse_set_pka8g2_cpi3 
+
+mouse_set_pka8g2_cpi1:
+3fef 6fe0c9e0 fetch 1 ,mem_ka8g2_dpi_1 
+3ff0 20203fe2 branch mouse_p3212_dpi 
+
+mouse_set_pka8g2_cpi0:
+3ff1 6fe0c9df fetch 1 ,mem_ka8g2_dpi_0 
+3ff2 20203fe2 branch mouse_p3212_dpi 
+
+mouse_set_pka8g2_cpi2:
+3ff3 6fe0c9e1 fetch 1 ,mem_ka8g2_dpi_2 
+3ff4 20203fe2 branch mouse_p3212_dpi 
+
+mouse_set_pka8g2_cpi3:
+3ff5 6fe0c9e2 fetch 1 ,mem_ka8g2_dpi_3 
+3ff6 20203fe2 branch mouse_p3212_dpi 
+
+mouse_key:
+3ff7 20404030 call mouse_check_key_gpio 
+3ff8 20404008 call mouse_ghost_key_check 
+3ff9 20403d7b call mouse_set_mult 
+3ffa 20404003 call mouse_24g_key 
+3ffb 1a227e00 copy rega ,pdata 
+3ffc 6848c8e0 fetcht 1 ,mem_mouse_key_last 
+3ffd 67e0c8e0 store 1 ,mem_mouse_key_last 
+3ffe 67e0c8d8 store 1 ,mem_mouse_key 
+3fff 9842fe00 ixor temp ,pdata 
+4000 1fe67c00 sub pdata ,0 ,null 
+4001 20628000 rtn zero 
+4002 20207d92 branch enable_user 
+
+mouse_24g_key:
+4003 c6930000 rtnmark0 mark_24g 
+4004 1a227e00 copy rega ,pdata 
+4005 207a0000 rtn blank 
+4006 67e0c8d8 store 1 ,mem_mouse_key 
+4007 20207d92 branch enable_user 
+
+mouse_ghost_key_check:
+4008 704baa00 jam 0 ,mem_mouse_matrix_key_cow_count 
+4009 704bab00 jam 0 ,mem_mouse_matrix_key_row_count 
+400a 704bac00 jam 0 ,mem_mouse_ghost_flag 
+400b 1fe20400 copy pdata ,temp 
+400c 20404018 call mouse_ghost_key_check_l_bk 
+400d 2040401b call mouse_ghost_key_check_m_fw 
+400e 2040401e call mouse_ghost_key_check_bk_fw 
+400f 20404021 call mouse_ghost_key_check_lmr 
+4010 6fe0cbab fetch 1 ,mem_mouse_matrix_key_row_count 
+4011 207a0000 rtn blank 
+4012 6fe0cbaa fetch 1 ,mem_mouse_matrix_key_cow_count 
+4013 207a0000 rtn blank 
+4014 704bac01 jam 1 ,mem_mouse_ghost_flag 
+4015 6fe0c8e0 fetch 1 ,mem_mouse_key_last 
+4016 1fe22200 copy pdata ,rega 
+4017 20600000 rtn 
+
+mouse_ghost_key_check_l_bk:
+4018 18417e09 and temp ,mouse_l_bk_button ,pdata 
+4019 c004c029 beq mouse_l_bk_button ,mouse_matrix_cow_more_than_one_key 
+401a 20600000 rtn 
+
+mouse_ghost_key_check_m_fw:
+401b 18417e14 and temp ,mouse_m_fw_button ,pdata 
+401c c00a4029 beq mouse_m_fw_button ,mouse_matrix_cow_more_than_one_key 
+401d 20600000 rtn 
+
+mouse_ghost_key_check_bk_fw:
+401e 18417e18 and temp ,mouse_bk_fw_button ,pdata 
+401f c00c4027 beq mouse_bk_fw_button ,mouse_matrix_row_more_than_one_key 
+4020 20600000 rtn 
+
+mouse_ghost_key_check_lmr:
+4021 18417e07 and temp ,mouse_lmr_button ,pdata 
+4022 c001c027 beq mouse_lr_button ,mouse_matrix_row_more_than_one_key 
+4023 c002c027 beq mouse_lm_button ,mouse_matrix_row_more_than_one_key 
+4024 c0034027 beq mouse_rm_button ,mouse_matrix_row_more_than_one_key 
+4025 c003c027 beq mouse_lmr_button ,mouse_matrix_row_more_than_one_key 
+4026 20600000 rtn 
+
+mouse_matrix_row_more_than_one_key:
+4027 704bab01 jam 1 ,mem_mouse_matrix_key_row_count 
+4028 20600000 rtn 
+
+mouse_matrix_cow_more_than_one_key:
+4029 704baa01 jam 1 ,mem_mouse_matrix_key_cow_count 
+402a 20600000 rtn 
+
+mouse_key_check_once:
+402b 2040403c call mouse_check_key_gpio_once 
+402c 20404030 call mouse_check_key_gpio 
+402d 58000000 setarg 0x00 
+402e 67e1cba0 store 3 ,mem_mouse_lkey_press_status 
+402f 20600000 rtn 
+
+mouse_check_key_gpio:
+4030 44e7c019 bpatch patch19_7 ,mem_patch19 
+4031 6fe0cbf3 fetch 1 ,mem_sensor_shutdown_flag 
+4032 245a403c ncall mouse_check_key_gpio_once ,blank 
+4033 da200000 arg 0 ,rega 
+4034 2040403f call mouse_check_lkey_gpio 
+4035 20404045 call mouse_check_rkey_gpio 
+4036 2040404b call mouse_check_mkey_gpio 
+4037 20404051 call mouse_check_bkkey_gpio 
+4038 2040406a call mouse_check_fwkey_gpio 
+4039 20404085 call mouse_check_customerkey_gpio 
+403a 1a227e00 copy rega ,pdata 
+403b 20600000 rtn 
+
+mouse_check_key_gpio_once:
+403c 58030303 setarg 0x030303 
+403d 67e1cba0 store 3 ,mem_mouse_lkey_press_status 
+403e 20600000 rtn 
+
+mouse_check_lkey_gpio:
+403f 704ba800 jam mouse_l_key ,mem_mouse_key_temp 
+4040 6848c913 fetcht 1 ,mem_lbutton_gpio 
+4041 6fe0cba0 fetch 1 ,mem_mouse_lkey_press_status 
+4042 204040a2 call mouse_check_key_connect_gnd 
+4043 67e0cba0 store 1 ,mem_mouse_lkey_press_status 
+4044 20600000 rtn 
+
+mouse_check_rkey_gpio:
+4045 704ba801 jam mouse_r_key ,mem_mouse_key_temp 
+4046 6848c915 fetcht 1 ,mem_rbutton_gpio 
+4047 6fe0cba1 fetch 1 ,mem_mouse_rkey_press_status 
+4048 204040a2 call mouse_check_key_connect_gnd 
+4049 67e0cba1 store 1 ,mem_mouse_rkey_press_status 
+404a 20600000 rtn 
+
+mouse_check_mkey_gpio:
+404b 704ba802 jam mouse_m_key ,mem_mouse_key_temp 
+404c 6848c914 fetcht 1 ,mem_mbutton_gpio 
+404d 6fe0cba2 fetch 1 ,mem_mouse_mkey_press_status 
+404e 204040a2 call mouse_check_key_connect_gnd 
+404f 67e0cba2 store 1 ,mem_mouse_mkey_press_status 
+4050 20600000 rtn 
+
+mouse_check_bkkey_gpio:
+4051 6fe0c916 fetch 1 ,mem_bk_button_gpio 
+4052 c17f8000 rtneq gpio_disable 
+4053 704ba803 jam mouse_bk_key ,mem_mouse_key_temp 
+4054 6fe0cba3 fetch 1 ,mem_mouse_bkkey_press_status 
+4055 1fe22600 copy pdata ,regc 
+4056 6848c916 fetcht 1 ,mem_bk_button_gpio 
+4057 6fe0c923 fetch 1 ,mem_matrix_public_gpio 
+4058 c07fc066 beq gpio_disable ,mouse_3io6key_bk_check 
+4059 20405f7d call gpio_get_bit 
+405a 2020c062 branch mouse_check_bk_button_connect_gnd ,true 
+405b 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+405c 20405f8d call gpio_out_active 
+405d 6848c916 fetcht 1 ,mem_bk_button_gpio 
+405e 6fe0cba3 fetch 1 ,mem_mouse_bkkey_press_status 
+405f 204040a2 call mouse_check_key_connect_gnd 
+
+mouse_check_bkkey_gpio_end:
+4060 67e0cba3 store 1 ,mem_mouse_bkkey_press_status 
+4061 20204083 branch mouse_matrix_public_gpio_reset 
+
+mouse_check_bk_button_connect_gnd:
+4062 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+4063 6fe0cba3 fetch 1 ,mem_mouse_bkkey_press_status 
+4064 204040a2 call mouse_check_key_connect_gnd 
+4065 20204060 branch mouse_check_bkkey_gpio_end 
+
+mouse_3io6key_bk_check:
+4066 204040b0 call mouse_3io6key_check 
+4067 67e0cba3 store 1 ,mem_mouse_bkkey_press_status 
+4068 6848c916 fetcht 1 ,mem_bk_button_gpio 
+4069 20203e71 branch mouse_gpio_config_input_pu 
+
+mouse_check_fwkey_gpio:
+406a 6fe0c917 fetch 1 ,mem_fw_button_gpio 
+406b c17f8000 rtneq gpio_disable 
+406c 704ba804 jam mouse_fw_key ,mem_mouse_key_temp 
+406d 6fe0cba4 fetch 1 ,mem_mouse_fwkey_press_status 
+406e 1fe22600 copy pdata ,regc 
+406f 6848c917 fetcht 1 ,mem_fw_button_gpio 
+4070 6fe0c923 fetch 1 ,mem_matrix_public_gpio 
+4071 c07fc07f beq gpio_disable ,mouse_3io6key_fw_check 
+4072 20405f7d call gpio_get_bit 
+4073 2020c07b branch mouse_check_fw_button_connect_gnd ,true 
+4074 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+4075 20405f8d call gpio_out_active 
+4076 6848c917 fetcht 1 ,mem_fw_button_gpio 
+4077 6fe0cba4 fetch 1 ,mem_mouse_fwkey_press_status 
+4078 204040a2 call mouse_check_key_connect_gnd 
+
+mouse_check_fwkey_gpio_end:
+4079 67e0cba4 store 1 ,mem_mouse_fwkey_press_status 
+407a 20204083 branch mouse_matrix_public_gpio_reset 
+
+mouse_check_fw_button_connect_gnd:
+407b 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+407c 6fe0cba4 fetch 1 ,mem_mouse_fwkey_press_status 
+407d 204040a2 call mouse_check_key_connect_gnd 
+407e 20204079 branch mouse_check_fwkey_gpio_end 
+
+mouse_3io6key_fw_check:
+407f 204040b0 call mouse_3io6key_check 
+4080 67e0cba4 store 1 ,mem_mouse_fwkey_press_status 
+4081 6848c917 fetcht 1 ,mem_fw_button_gpio 
+4082 20203e71 branch mouse_gpio_config_input_pu 
+
+mouse_matrix_public_gpio_reset:
+4083 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+4084 20203e71 branch mouse_gpio_config_input_pu 
+
+mouse_check_customerkey_gpio:
+4085 704b9d00 jam 0 ,mem_customer_key 
+4086 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4087 c40a8000 rtnbit0 mouse_enable_keyboard 
+4088 6fe0c925 fetch 1 ,mem_customer_key_gpio 
+4089 c17f8000 rtneq gpio_disable 
+408a 704ba807 jam mouse_customer_key ,mem_mouse_key_temp 
+408b 6848c925 fetcht 1 ,mem_customer_key_gpio 
+408c 6fe0cba7 fetch 1 ,mem_mouse_customerkey_press_status 
+408d 204040a2 call mouse_check_key_connect_gnd 
+408e 67e0cba7 store 1 ,mem_mouse_customerkey_press_status 
+408f 1a227e00 copy rega ,pdata 
+4090 c283c095 bbit1 mouse_customer_key ,mouse_customerkey_press 
+4091 20404098 call mouse_customerkey_release 
+
+mouse_check_customerkey_gpio_exit:
+4092 6fe0cb9e fetch 1 ,mem_customer_data_trigger 
+4093 67e0cb9f store 1 ,mem_customer_data_trigger_last 
+4094 20600000 rtn 
+
+mouse_customerkey_press:
+4095 704b9e01 jam 1 ,mem_customer_data_trigger 
+4096 2040409b call mouse_customer_key_need_send 
+4097 20204092 branch mouse_check_customerkey_gpio_exit 
+
+mouse_customerkey_release:
+4098 704b9e00 jam 0 ,mem_customer_data_trigger 
+4099 6fe0cb9f fetch 1 ,mem_customer_data_trigger_last 
+409a 207a0000 rtn blank 
+
+mouse_customer_key_need_send:
+409b 704b9d01 jam 1 ,mem_customer_key 
+409c 20600000 rtn 
+
+mouse_check_matrix_button_connect_gnd:
+409d 20405f7d call gpio_get_bit 
+409e 6848cba8 fetcht 1 ,mem_mouse_key_temp 
+409f 18420e00 copy temp ,queue 
+40a0 2020c0ae branch mouse_key_press ,true 
+40a1 202040ac branch mouse_key_release 
+
+mouse_check_key_connect_gnd:
+40a2 1fe3fe00 lshift pdata ,pdata 
+40a3 1fe22400 copy pdata ,regb 
+40a4 20405f7d call gpio_get_bit 
+40a5 7920a400 setflag true ,0 ,regb 
+40a6 1a417e07 and regb ,0x07 ,pdata 
+40a7 6848cba8 fetcht 1 ,mem_mouse_key_temp 
+40a8 18420e00 copy temp ,queue 
+40a9 c003c0ae beq 0x07 ,mouse_key_press 
+40aa c00040ac beq 0x00 ,mouse_key_release 
+40ab 20600000 rtn 
+
+mouse_key_release:
+40ac f93fa200 qset0 rega 
+40ad 20600000 rtn 
+
+mouse_key_press:
+40ae f9202200 qset1 rega 
+40af 20600000 rtn 
+
+mouse_3io6key_check:
+40b0 44e8401a bpatch patch1a_0 ,mem_patch1a 
+40b1 1a627e00 copy regc ,pdata 
+40b2 67e0cba9 store 1 ,mem_mouse_key_status 
+40b3 1fe3fe00 lshift pdata ,pdata 
+40b4 1fe22400 copy pdata ,regb 
+40b5 18422600 copy temp ,regc 
+40b6 20403e6f call mouse_gpio_config_input_pd 
+40b7 1a620400 copy regc ,temp 
+40b8 20405f7d call gpio_get_bit 
+40b9 7d20a400 nsetflag true ,0 ,regb 
+40ba 204040bc call mouse_check_press 
+40bb 202040a6 branch mouse_check_key_connect_gnd + 4 
+
+mouse_check_press:
+40bc 6848cba9 fetcht 1 ,mem_mouse_key_status 
+40bd 18410401 and_into 0x01 ,temp 
+40be 1a417e01 and regb ,0x01 ,pdata 
+40bf 98467c00 isub temp ,null 
+40c0 2422c24a nbranch mouse_current_mult_update ,zero 
+40c1 20600000 rtn 
+
+mouse_init_sunt:
+40c2 44e8c01a bpatch patch1a_1 ,mem_patch1a 
+40c3 20403e80 call mouse_sensor_spi_init 
+40c4 20758000 rtn wake 
+
+mouse_init_sensor_wakeup:
+40c5 20404151 call mouse_sensor_poweron 
+
+mouse_init_sensor:
+40c6 204040d0 call mouse_read_sensor_id 
+40c7 c01840d7 beq p32xx_id1 ,mouse_init_p32xx_id2_judge 
+40c8 c018c132 beq p3065_id1 ,mouse_init_p3065 
+40c9 c02c413b beq pka8g2_id1 ,mouse_ka8g2_id2_judge 
+40ca 204040cd call mouse_twspi_reset 
+40cb 20001af4 nop 6900 
+40cc 202040c6 branch mouse_init_sensor 
+
+mouse_twspi_reset:
+40cd 6fe0c91b fetch 1 ,mem_mouse_sensor_sclk_gpio 
+40ce 20405a14 call twspi_reset 
+40cf 20203e85 branch mouse_spid_init_pin 
+
+mouse_read_sensor_id:
+40d0 58000001 setarg pan_reg_pid_h 
+40d1 20405a2f call twspi_read 
+40d2 67e0c9c9 store 1 ,mem_sensor_id2 
+40d3 58000000 setarg pan_reg_pid_l 
+40d4 20405a2f call twspi_read 
+40d5 67e0c9c8 store 1 ,mem_sensor_id1 
+40d6 20600000 rtn 
+
+mouse_init_p32xx_id2_judge:
+40d7 6fe0c9c9 fetch 1 ,mem_sensor_id2 
+40d8 c02d40e0 beq p_mx8650 ,mouse_mx8650_init_param 
+40d9 c06c40e6 beq p8009_id2 ,mouse_8009_init_param 
+40da c068c0f5 beq p3205_tj3t_id2 ,mouse_3205_3t_init_param 
+40db c06940fe beq p3204_tj3l_id2 ,mouse_3204_3l_init_param 
+40dc c0014105 beq p3212_id2 ,mouse_3212_init_param 
+40dd c02a4108 beq pka8_id2 ,mouse_ka8_init_param_check 
+40de c028412f beq p6520a_id2 ,mouse_p6520_init_param 
+40df 202040c6 branch mouse_init_sensor 
+
+mouse_mx8650_init_param:
+40e0 70492e05 jam mx8650 ,mem_config_sensor_type 
+40e1 2040414d call mouse_sensor_reset 
+40e2 20407c52 call delay_10ms 
+40e3 da604a40 arg mem_sensor_8650_init ,regc 
+40e4 20404146 call mouse_sensor_wr_seq 
+40e5 20203fa9 branch mouse_dpi_config 
+
+mouse_8009_init_param:
+40e6 58000016 setarg 0x16 
+40e7 20405a2f call twspi_read 
+40e8 1fe67cbd sub pdata ,0xbd ,null 
+40e9 2422c0c2 nbranch mouse_init_sunt ,zero 
+40ea 58000019 setarg 0x19 
+40eb 20405a2f call twspi_read 
+40ec 1fe67c55 sub pdata ,0x55 ,null 
+40ed 2422c0c2 nbranch mouse_init_sunt ,zero 
+40ee 5800001b setarg 0x1b 
+40ef 20405a2f call twspi_read 
+40f0 1fe67c1d sub pdata ,0x1d ,null 
+40f1 2422c0c2 nbranch mouse_init_sunt ,zero 
+40f2 70492e06 jam p8009 ,mem_config_sensor_type 
+40f3 da604a84 arg mem_sensor_8009_init ,regc 
+40f4 20204146 branch mouse_sensor_wr_seq 
+
+mouse_3205_3t_init_param:
+40f5 70492e00 jam p3205 ,mem_config_sensor_type 
+40f6 da6049fa arg mem_sensor_3205_init ,regc 
+40f7 20404146 call mouse_sensor_wr_seq 
+40f8 da604a04 arg mem_sensor_32xx_init ,regc 
+40f9 20404146 call mouse_sensor_wr_seq 
+40fa 58000943 setarg 0x0943 
+40fb 20405a2e call twspi_write 
+40fc da604a1e arg mem_sensor_32xx_init_1 ,regc 
+40fd 20204146 branch mouse_sensor_wr_seq 
+
+mouse_3204_3l_init_param:
+40fe 70492e02 jam p3204 ,mem_config_sensor_type 
+40ff da6049f0 arg mem_sensor_3204_init ,regc 
+4100 20404146 call mouse_sensor_wr_seq 
+4101 da604a04 arg mem_sensor_32xx_init ,regc 
+4102 20404146 call mouse_sensor_wr_seq 
+4103 da604a1e arg mem_sensor_32xx_init_1 ,regc 
+4104 20204146 branch mouse_sensor_wr_seq 
+
+mouse_3212_init_param:
+4105 70492e03 jam p3212 ,mem_config_sensor_type 
+4106 da6049e6 arg mem_sensor_3212_init ,regc 
+4107 20204146 branch mouse_sensor_wr_seq 
+
+mouse_ka8_init_param_check:
+4108 20404144 call mouse_sensor_disable_wp 
+4109 58009a5b setarg 0x9a5b 
+410a 20405a2e call twspi_write 
+410b 5800000d setarg 0x0d 
+410c 20405a2f call twspi_read 
+410d 1fe67c12 sub pdata ,0x12 ,null 
+410e 2022c11c branch mouse_ka8ul_init_param ,zero 
+410f 1fe67c0a sub pdata ,0x0a ,null 
+4110 2422c11f nbranch mouse_ka8hd_sensor_judge ,zero 
+4111 5800000e setarg 0x0e 
+4112 20405a2f call twspi_read 
+4113 1fe67ce5 sub pdata ,0xe5 ,null 
+4114 2422c0c6 nbranch mouse_init_sensor ,zero 
+4115 58000010 setarg 0x10 
+4116 20405a2f call twspi_read 
+4117 1fe67ca5 sub pdata ,0xa5 ,null 
+4118 2022c11c branch mouse_ka8ul_init_param ,zero 
+4119 2040412c call mouse_enable_ka8_sensor_wp 
+
+mouse_ka8_init_param:
+411a 70492e08 jam ka8 ,mem_config_sensor_type 
+411b 20600000 rtn 
+
+mouse_ka8ul_init_param:
+411c 70492e09 jam ka8_ul ,mem_config_sensor_type 
+411d da604a66 arg mem_sensor_ka8ul_init ,regc 
+411e 20204146 branch mouse_sensor_wr_seq 
+
+mouse_ka8hd_sensor_judge:
+411f 1fe67c10 sub pdata ,0x10 ,null 
+4120 2422c0c6 nbranch mouse_init_sensor ,zero 
+4121 5800000e setarg 0x0e 
+4122 20405a2f call twspi_read 
+4123 1fe67cc5 sub pdata ,0xc5 ,null 
+4124 2422c0c6 nbranch mouse_init_sensor ,zero 
+4125 58000010 setarg 0x10 
+4126 20405a2f call twspi_read 
+4127 1fe67c38 sub pdata ,0x38 ,null 
+4128 2422c0c6 nbranch mouse_init_sensor ,zero 
+
+mouse_ka8hd_init_param:
+4129 2040412c call mouse_enable_ka8_sensor_wp 
+412a 70492e0a jam ka8_hd ,mem_config_sensor_type 
+412b 20600000 rtn 
+
+mouse_enable_ka8_sensor_wp:
+412c 5800005b setarg 0x005b 
+412d 20405a2e call twspi_write 
+412e 20204142 branch mouse_sensor_enable_wp 
+
+mouse_p6520_init_param:
+412f 70492e07 jam p6520 ,mem_config_sensor_type 
+4130 da604aaa arg mem_sensor_p6520_init ,regc 
+4131 20204146 branch mouse_sensor_wr_seq 
+
+mouse_init_p3065:
+4132 20404151 call mouse_sensor_poweron 
+4133 6fe0c9c9 fetch 1 ,mem_sensor_id2 
+4134 c0384139 beq p3065_xy_id2 ,mouse_p3065xy_init_param 
+4135 c0004137 beq p3065_id2 ,mouse_p3065_init_param 
+4136 202040c6 branch mouse_init_sensor 
+
+mouse_p3065_init_param:
+4137 70492e01 jam p3065 ,mem_config_sensor_type 
+4138 20600000 rtn 
+
+mouse_p3065xy_init_param:
+4139 70492e04 jam p3065_xy ,mem_config_sensor_type 
+413a 20600000 rtn 
+
+mouse_ka8g2_id2_judge:
+413b 20404151 call mouse_sensor_poweron 
+413c 6fe0c9c9 fetch 1 ,mem_sensor_id2 
+413d c02cc13f beq pka8g2_id2 ,mouse_ka8g2_init_param 
+413e 202040d7 branch mouse_init_p32xx_id2_judge 
+
+mouse_ka8g2_init_param:
+413f 70492e0b jam ka8g2 ,mem_config_sensor_type 
+4140 da604a94 arg mem_sensor_ka8g2_init ,regc 
+4141 20204146 branch mouse_sensor_wr_seq 
+
+mouse_sensor_enable_wp:
+4142 58000009 setarg 0x0009 
+4143 20205a2e branch twspi_write 
+
+mouse_sensor_disable_wp:
+4144 58005a09 setarg 0x5a09 
+4145 20205a2e branch twspi_write 
+
+mouse_sensor_wr_seq:
+4146 efe10013 ifetch 2 ,regc 
+4147 d840ffff arg 0xffff ,temp 
+4148 98467c00 isub temp ,null 
+4149 20628000 rtn zero 
+414a 20405a2e call twspi_write 
+414b 1a60a602 increase 2 ,regc 
+414c 20204146 branch mouse_sensor_wr_seq 
+
+mouse_sensor_reset:
+414d 58008006 setarg 0x8006 
+414e 20405a2e call twspi_write 
+414f 20002ee0 nop 12000 
+4150 20600000 rtn 
+
+mouse_sensor_poweron:
+4151 44e9401a bpatch patch1a_2 ,mem_patch1a 
+4152 20403e80 call mouse_sensor_spi_init 
+4153 2040414d call mouse_sensor_reset 
+4154 da604ab6 arg mem_sensor_poweron_init ,regc 
+4155 20404146 call mouse_sensor_wr_seq 
+4156 20203fa9 branch mouse_dpi_config 
+
+mouse_sensor_powerdown:
+4157 204040c2 call mouse_init_sunt 
+4158 20403e80 call mouse_sensor_spi_init 
+4159 58000806 setarg 0x0806 
+415a 20205a2e branch twspi_write 
+
+mouse_check_sensor_data:
+415b 6fe0c4b1 fetch 1 ,mem_spi_write_flash_sm 
+415c c1800000 rtnne flash_sm_no_buys 
+415d 6fe0c92e fetch 1 ,mem_config_sensor_type 
+415e c0004167 beq p3205 ,mouse_p32xx_sensor_motion 
+415f c000c167 beq p3065 ,mouse_p32xx_sensor_motion 
+4160 c0044167 beq ka8 ,mouse_p32xx_sensor_motion 
+4161 c0014167 beq p3204 ,mouse_p32xx_sensor_motion 
+4162 c001c18b beq p3212 ,mouse_p3212_sensor_motion 
+4163 c0024167 beq p3065_xy ,mouse_p32xx_sensor_motion 
+4164 c00341b0 beq p8009 ,mouse_p8009_sensor_motion 
+4165 c005c1a9 beq ka8g2 ,mouse_pka8g2_sensor_motion 
+4166 20204167 branch mouse_p32xx_sensor_motion 
+
+mouse_p32xx_sensor_motion:
+4167 204041df call mouse_clear_sensor_data 
+4168 78547c00 disable user 
+4169 6fe0c926 fetch 1 ,mem_sensor_motion_gpio 
+416a c07fc16e beq gpio_disable ,mouse_p32xx_sensor_motion_2 
+416b 6848c926 fetcht 1 ,mem_sensor_motion_gpio 
+416c 20405f7d call gpio_get_bit 
+416d 24608000 nrtn true 
+
+mouse_p32xx_sensor_motion_2:
+416e 58000000 setarg pan_reg_pid_l 
+416f 20405a2f call twspi_read 
+4170 c0984181 bne p32xx_id1 ,mouse_p3065_judge 
+
+mouse_p32xx_sensor_motion_1:
+4171 58000002 setarg pan_reg_motion_staus 
+4172 20405a2f call twspi_read 
+4173 c4038000 rtnbit0 7 
+4174 204041f6 call mouse_read_sensor_common 
+4175 6fe0c8d9 fetch 1 ,mem_mouse_x 
+4176 204041ee call mouse_data_extsign 
+4177 67e148d9 store 2 ,mem_mouse_x 
+4178 6fe0c8db fetch 1 ,mem_mouse_y 
+4179 204041ee call mouse_data_extsign 
+417a 67e148db store 2 ,mem_mouse_y 
+417b 6fe0c92f fetch 1 ,mem_config_sensor_angle 
+417c c0004183 beq mouse_6clk_angle ,mouse_motion32xx_6clk_direction_selection 
+417d c000c185 beq mouse_9clk_angle ,mouse_motion32xx_9clk_direction_selection 
+417e c0014187 beq mouse_12clk_angle ,mouse_motion32xx_12clk_direction_selection 
+417f c001c189 beq mouse_3clk_angle ,mouse_motion32xx_3clk_direction_selection 
+4180 20600000 rtn 
+
+mouse_p3065_judge:
+4181 c018c171 beq p3065_id1 ,mouse_p32xx_sensor_motion_1 
+4182 202040cd branch mouse_twspi_reset 
+
+mouse_motion32xx_6clk_direction_selection:
+4183 204041c8 call mouse_motion_6clk_direction_dispose 
+4184 202041fd branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_9clk_direction_selection:
+4185 204041d0 call mouse_motion_9clk_direction_dispose 
+4186 202041fd branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_12clk_direction_selection:
+4187 204041cc call mouse_motion_12clk_direction_dispose 
+4188 202041fd branch mouse_sensor_sdio_low 
+
+mouse_motion32xx_3clk_direction_selection:
+4189 204041d8 call mouse_motion_3clk_direction_dispose 
+418a 202041fd branch mouse_sensor_sdio_low 
+
+mouse_p3212_sensor_motion:
+418b 204041df call mouse_clear_sensor_data 
+418c 6fe0c926 fetch 1 ,mem_sensor_motion_gpio 
+418d c07fc191 beq gpio_disable ,mouse_p3212_sensor_motion_1 
+418e 6848c926 fetcht 1 ,mem_sensor_motion_gpio 
+418f 20405f7d call gpio_get_bit 
+4190 24608000 nrtn true 
+
+mouse_p3212_sensor_motion_1:
+4191 58000000 setarg pan_reg_pid_l 
+4192 20405a2f call twspi_read 
+4193 c09840cd bne p32xx_id1 ,mouse_twspi_reset 
+
+mouse_p3212_sensor_motion_2:
+4194 58000002 setarg pan_reg_motion_staus 
+4195 20405a2f call twspi_read 
+4196 c4038000 rtnbit0 7 
+4197 204041f6 call mouse_read_sensor_common 
+4198 204041a7 call mouse_read_3212sensor_xy_high 
+4199 67e0c8df store 1 ,mem_mouse_xy_h 
+419a 1ff1fe00 rshift4 pdata ,pdata 
+419b 204041f2 call mouse_data_extsign_bit3 
+419c 67e0c8da store 1 ,mem_mouse_x + 1 
+419d 6fe0c8df fetch 1 ,mem_mouse_xy_h 
+419e 1fe17e0f and pdata ,0x0f ,pdata 
+419f 204041f2 call mouse_data_extsign_bit3 
+41a0 67e0c8dc store 1 ,mem_mouse_y + 1 
+41a1 6fe0c92f fetch 1 ,mem_config_sensor_angle 
+41a2 c00041c8 beq mouse_6clk_angle ,mouse_motion_6clk_direction_dispose 
+41a3 c000c1d0 beq mouse_9clk_angle ,mouse_motion_9clk_direction_dispose 
+41a4 c00141cc beq mouse_12clk_angle ,mouse_motion_12clk_direction_dispose 
+41a5 c001c1d8 beq mouse_3clk_angle ,mouse_motion_3clk_direction_dispose 
+41a6 20600000 rtn 
+
+mouse_read_3212sensor_xy_high:
+41a7 58000012 setarg 0x12 
+41a8 20205a2f branch twspi_read 
+
+mouse_pka8g2_sensor_motion:
+41a9 204041df call mouse_clear_sensor_data 
+41aa 6fe0c926 fetch 1 ,mem_sensor_motion_gpio 
+41ab c07fc1af beq gpio_disable ,mouse_pka8g2_sensor_motion_1 
+41ac 6848c926 fetcht 1 ,mem_sensor_motion_gpio 
+41ad 20405f7d call gpio_get_bit 
+41ae 24608000 nrtn true 
+
+mouse_pka8g2_sensor_motion_1:
+41af 20204194 branch mouse_p3212_sensor_motion_2 
+
+mouse_p8009_sensor_motion:
+41b0 204041df call mouse_clear_sensor_data 
+41b1 78547c00 disable user 
+41b2 58000002 setarg pan_reg_motion_staus 
+41b3 20405a2f call twspi_read 
+41b4 c4038000 rtnbit0 7 
+41b5 58000008 setarg pan_reg_opration_state 
+41b6 20405a2f call twspi_read 
+41b7 203a4174 branch mouse_p32xx_sensor_motion_1 + 3 ,blank 
+41b8 58000000 setarg 0 
+41b9 67e348d9 store 6 ,mem_mouse_x 
+41ba 20600000 rtn 
+
+mouse_sensor_set_angle:
+41bb 6fe0c91e fetch 1 ,mem_sensor_angle_default 
+41bc 67e0c92f store 1 ,mem_config_sensor_angle 
+41bd 6fe0c91d fetch 1 ,mem_select_sensor_angle_gpio 
+41be c17f8000 rtneq gpio_disable 
+41bf 6848c91d fetcht 1 ,mem_select_sensor_angle_gpio 
+41c0 20403e71 call mouse_gpio_config_input_pu 
+41c1 6848c91d fetcht 1 ,mem_select_sensor_angle_gpio 
+41c2 20405f7d call gpio_get_bit 
+41c3 2040c1c5 call mouse_sensor_switch_angle ,true 
+41c4 20203e6f branch mouse_gpio_config_input_pd 
+
+mouse_sensor_switch_angle:
+41c5 6fe0c91f fetch 1 ,mem_sensor_angle_switch 
+41c6 67e0c92f store 1 ,mem_config_sensor_angle 
+41c7 20600000 rtn 
+
+mouse_motion_6clk_direction_dispose:
+41c8 6fe148d9 fetch 2 ,mem_mouse_x 
+41c9 1fe67e00 sub pdata ,0 ,pdata 
+41ca 67e148d9 store 2 ,mem_mouse_x 
+41cb 20207d92 branch enable_user 
+
+mouse_motion_12clk_direction_dispose:
+41cc 6fe148db fetch 2 ,mem_mouse_y 
+41cd 1fe67e00 sub pdata ,0 ,pdata 
+41ce 67e148db store 2 ,mem_mouse_y 
+41cf 20207d92 branch enable_user 
+
+mouse_motion_9clk_direction_dispose:
+41d0 6fe148db fetch 2 ,mem_mouse_y 
+41d1 1fe67e00 sub pdata ,0 ,pdata 
+41d2 67e148db store 2 ,mem_mouse_y 
+41d3 6fe148d9 fetch 2 ,mem_mouse_x 
+41d4 1fe67e00 sub pdata ,0 ,pdata 
+41d5 67e148d9 store 2 ,mem_mouse_x 
+41d6 204041da call mouse_sensor_data_swap_places 
+41d7 20207d92 branch enable_user 
+
+mouse_motion_3clk_direction_dispose:
+41d8 204041da call mouse_sensor_data_swap_places 
+41d9 20207d92 branch enable_user 
+
+mouse_sensor_data_swap_places:
+41da 6fe148db fetch 2 ,mem_mouse_y 
+41db 684948d9 fetcht 2 ,mem_mouse_x 
+41dc 67e148d9 store 2 ,mem_mouse_x 
+41dd 604948db storet 2 ,mem_mouse_y 
+41de 20600000 rtn 
+
+mouse_clear_sensor_data:
+41df 6fe0c9cf fetch 1 ,mem_mouse_move_flag 
+41e0 205a41f6 call mouse_read_sensor_common ,blank 
+41e1 7049cf01 jam 1 ,mem_mouse_move_flag 
+41e2 20600000 rtn 
+
+mouse_clear_sensor_data_by_reset:
+41e3 704abe01 jam 1 ,mem_mouse_clear_sensor_data_flag 
+41e4 20401aa7 call le_set_config_more_data 
+
+mouse_init_sensor_reset:
+41e5 202040c2 branch mouse_init_sunt 
+
+mouse_data_xy_release:
+41e6 6fe0c926 fetch 1 ,mem_sensor_motion_gpio 
+41e7 c1ff8000 rtnne gpio_disable 
+41e8 6fe0cac0 fetch 1 ,mem_mouse_long_mult_flag 
+41e9 c1808000 rtnne 1 
+41ea 58000000 setarg 0 
+41eb 67e0cac0 store 1 ,mem_mouse_long_mult_flag 
+41ec 67e248d9 store 4 ,mem_mouse_x 
+41ed 202041e5 branch mouse_init_sensor_reset 
+
+mouse_data_extsign:
+41ee c4038000 rtnbit0 7 
+41ef d840ff00 arg 0xff00 ,temp 
+41f0 9841fe00 ior temp ,pdata 
+41f1 20600000 rtn 
+
+mouse_data_extsign_bit3:
+41f2 c4018000 rtnbit0 3 
+41f3 d84000f0 arg 0xf0 ,temp 
+41f4 9841fe00 ior temp ,pdata 
+41f5 20600000 rtn 
+
+mouse_read_sensor_common:
+41f6 dfe00003 arg pan_reg_delta_x ,pdata 
+41f7 20405a2f call twspi_read 
+41f8 67e148d9 store 2 ,mem_mouse_x 
+41f9 dfe00004 arg pan_reg_delta_y ,pdata 
+41fa 20405a2f call twspi_read 
+41fb 67e148db store 2 ,mem_mouse_y 
+41fc 20600000 rtn 
+
+mouse_sensor_sdio_low:
+41fd 6848c91c fetcht 1 ,mem_mouse_sensor_sdio_gpio 
+41fe 20405f7d call gpio_get_bit 
+41ff 20608000 rtn true 
+4200 5800000a setarg 0x0a 
+4201 20405a2f call twspi_read 
+4202 200003e8 nop 1000 
+4203 202041fd branch mouse_sensor_sdio_low 
+
+mouse_set_sdio_high:
+4204 58008100 setarg 0x8100 
+4205 20205a2e branch twspi_write 
+
+mouse_buletooth_fast_conn_init:
+4206 704ad3ff jam 0xff ,mem_mouse_bluetooth_fast_conn_flag 
+4207 6fe0cbc5 fetch 1 ,mem_mouse_bluetooth_type 
+4208 c280c20a bbit1 mode_4_mouse ,mouse_ble_fast_conn_init 
+4209 c280420f bbit1 mode_3_mouse ,mouse_bt_fast_conn_init 
+
+mouse_ble_fast_conn_init:
+420a 70448734 jam 0x34 ,mem_xrecord_mode 
+420b 580f0f0f setarg 0x0f0f0f 
+420c 67e1c37d store 3 ,mem_le_lap 
+420d 67e1c380 store 3 ,mem_le_lap + 3 
+420e 20203cfa branch mouse_start_reconnect 
+
+mouse_bt_fast_conn_init:
+420f 70448733 jam 0x33 ,mem_xrecord_mode 
+4210 d8c0497b arg mem_mouse_compare_addr_ff ,contr 
+4211 204044e3 call mouse_load_bt_device 
+4212 20203cfa branch mouse_start_reconnect 
+
+mouse_buletooth_fast_conn_end:
+4213 44e9c01a bpatch patch1a_3 ,mem_patch1a 
+4214 204044d8 call mouse_select_reconn_device 
+4215 2040422f call mouse_bluetooth_fast_conn_disable 
+4216 6fe0c93f fetch 1 ,mem_device_flag 
+4217 c000c21a beq mode_bt_device1 ,mouse_device1_check_auto_discover 
+4218 c001421c beq mode_bt_device2 ,mouse_device2_check_auto_discover 
+4219 20600000 rtn 
+
+mouse_device1_check_auto_discover:
+421a 6fe34941 fetch 6 ,mem_device1_addr 
+421b 2020421d branch mouse_device_check_auto_discover 
+
+mouse_device2_check_auto_discover:
+421c 6fe3495e fetch 6 ,mem_device2_addr 
+
+mouse_device_check_auto_discover:
+421d 684b497b fetcht 6 ,mem_mouse_compare_addr_ff 
+421e 98467c00 isub temp ,null 
+421f 2022c46e branch mouse_start_discovery ,zero 
+4220 20203cf2 branch mouse_start_reconnect_device 
+
+mouse_bt_fast_conn_send_device_name:
+4221 2040422f call mouse_bluetooth_fast_conn_disable 
+4222 6fe0c603 fetch 1 ,mem_local_name_length 
+4223 1fe0fe03 increase 3 ,pdata 
+4224 1fe22200 copy pdata ,rega 
+4225 20404cdd call hid_malloc_tx_buff 
+4226 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+4227 e7e10005 istore 2 ,contw 
+4228 580004a1 setarg 0x04a1 
+4229 e7e10005 istore 2 ,contw 
+422a 6fe0c603 fetch 1 ,mem_local_name_length 
+422b 1fe0fe01 increase 1 ,pdata 
+422c 1fe27200 copy pdata ,loopcnt 
+422d d8c04603 arg mem_local_name_length ,contr 
+422e 20207ca1 branch memcpy 
+
+mouse_bluetooth_fast_conn_disable:
+422f 704ad35a jam 0x5a ,mem_mouse_bluetooth_fast_conn_flag 
+4230 20600000 rtn 
+
+mouse_stop_bluetooth_mode:
+4231 6fe14793 fetch 2 ,mem_ui_state_map 
+4232 c283c23d bbit1 ui_state_bt_reconnect ,mouse_cancel_reconnect 
+4233 c284b254 bbit1 ui_state_ble_connected ,app_ble_disconnect 
+4234 c280323b bbit1 ui_state_bt_connected ,app_bt_disconnect 
+4235 20204491 branch mouse_stop_discovery 
+
+mouse_disconnect:
+4236 58000000 setarg 0 
+4237 67e14ac4 store 2 ,mem_mouse_no_data_timer 
+4238 6fe14793 fetch 2 ,mem_ui_state_map 
+4239 c284b254 bbit1 ui_state_ble_connected ,app_ble_disconnect 
+423a 6fe14793 fetch 2 ,mem_ui_state_map 
+423b c280323b bbit1 ui_state_bt_connected ,app_bt_disconnect 
+423c 20600000 rtn 
+
+mouse_cancel_reconnect:
+423d 204045f7 call mouse_bt_cannel_reconn_enable 
+423e 20207867 branch check_51cmd_bb_reconn_cancel 
+
+mouse_check_125hz:
+423f 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4240 c40d8000 rtnbit0 mouse_enable_bt_125hz 
+
+mouse_bluetooth_125hz:
+4241 24344247 nbranch mouse_bluetooth_125hz_clear ,user 
+4242 6fe0cabf fetch 1 ,mem_bluetooth_125hz_cnt 
+4243 1fe0fe01 increase 1 ,pdata 
+4244 1fe17e0f and_into 0x0f ,pdata 
+4245 67e0cabf store 1 ,mem_bluetooth_125hz_cnt 
+4246 247a0000 nrtn blank 
+
+mouse_bluetooth_125hz_clear:
+4247 704abf00 jam 0 ,mem_bluetooth_125hz_cnt 
+4248 78547c00 disable user 
+4249 20600000 rtn 
+
+mouse_current_mult_update:
+424a 6fe0c926 fetch 1 ,mem_sensor_motion_gpio 
+424b c1ff8000 rtnne gpio_disable 
+424c 70417700 jam 0 ,mem_lpm_mult 
+424d 704ac11e jam 30 ,mem_mouse_current_mult_timer 
+424e 20600000 rtn 
+
+mouse_priority_bb_event:
+424f 44ea401a bpatch patch1a_4 ,mem_patch1a 
+4250 1a627e00 copy regc ,pdata 
+4251 c00a426b beq bt_evt_le_connected ,mouse_le_bb_event_connected 
+4252 c000c315 beq bt_evt_bb_connected ,mouse_bb_event_connected 
+4253 c00ac27a beq bt_evt_le_disconnected ,mouse_le_bb_disconnected 
+4254 c0014319 beq bt_evt_bb_disconnected ,mouse_bb_disconnected 
+4255 c002c33c beq bt_evt_setup_complete ,mouse_bt_event_setup_complete 
+4256 c0084469 beq bt_evt_button_long_pressed ,mouse_bb_event_discovery_btn 
+4257 c009433f beq bt_evt_hid_handshake ,mouse_bt_hid_handshake 
+4258 c0033289 beq bt_evt_hid_connected ,app_hid_connected 
+4259 c002434d beq bt_evt_reconn_failed ,mouse_bb_event_reconn_failed 
+425a c009c34d beq bt_evt_reconn_page_timeout ,mouse_bb_event_reconn_timeout 
+425b c00cb231 beq bt_evt_switch_not_accept ,app_bt_role_switch 
+425c c015c358 beq bt_evt_switch_success_master ,mouse_enter_sniff_check 
+425d c010c35e beq bt_evt_sniff_not_accept ,mouse_sniff_not_accept 
+425e c0054365 beq bt_evt_pincode_req ,mouse_bb_event_pincode 
+425f c017321f beq bt_evt_remote_unsniff ,app_start_auto_sniff 
+4260 c018c285 beq bt_evt_le_pairing_success ,mouse_le_pairing_success 
+4261 c014c287 beq bt_evt_le_enc_info ,mouse_le_enc_info 
+4262 c0194289 beq bt_evt_le_start_enc ,mouse_le_ll_start_encryt 
+4263 c01f4294 beq bt_evt_le_pairing_complete ,mouse_le_pairing_complete 
+4264 c0204295 beq bt_evt_le_parse_conn_papa_update_rsp ,mouse_le_conn_param_update_rsp_recieved 
+4265 c013c367 beq bt_evt_virtual_cable_unplug ,mouse_irtual_cable_unplug 
+4266 c01cc771 beq bt_evt_24g_pairing_complete ,mouse_24g_pairing_complete 
+4267 c01d474d beq bt_evt_24g_attempt_fail ,mouse_24g_attempt_fail 
+4268 c01e4768 beq bt_evt_24g_attempt_success ,mouse_24g_attempt_success 
+4269 c02242ab beq bt_evt_le_parse_conn_param_accepted ,mouse_le_parse_conn_param_accepted 
+426a 20600000 rtn 
+
+mouse_le_bb_event_connected:
+426b 704ac000 jam 0 ,mem_mouse_long_mult_flag 
+426c 204041e5 call mouse_init_sensor_reset 
+426d 704ad801 jam 1 ,mem_mouse_le_bb_connected_flag 
+426e 2040473c call mouse_24g_first_store_reconn_info 
+426f 6fe0cad9 fetch 1 ,mem_mouse_le_reconnect_flag 
+4270 243a4272 nbranch mouse_le_bb_event_connected_next ,blank 
+4271 704ada14 jam 0x14 ,mem_mouse_send_secutiry_request_timer 
+
+mouse_le_bb_event_connected_next:
+4272 6fe14485 fetch app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4273 793ffe00 set0 app_disc_by_button ,pdata 
+4274 67e14485 store app_disc_rsn_size ,mem_app_disconn_reason_flag 
+4275 704b8900 jam 0 ,mem_mouse_direct_timer 
+4276 6fe14b02 fetch 2 ,mem_le_battery_level_updata_timer_init 
+4277 67e14b04 store 2 ,mem_le_battery_level_updata_timer 
+4278 2040445f call mouse_no_data_timer_init 
+4279 20204491 branch mouse_stop_discovery 
+
+mouse_le_bb_disconnected:
+427a 704ad800 jam 0 ,mem_mouse_le_bb_connected_flag 
+427b 58000006 setarg le_interval_7_5ms 
+427c 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+427d c28dc27f bbit1 mouse_enable_bt_125hz ,mouse_le_bb_disconnected_next 
+427e 58000007 setarg le_interval_8_75ms 
+
+mouse_le_bb_disconnected_next:
+427f 67e14375 store 2 ,mem_le_interval_min 
+4280 67e14377 store 2 ,mem_le_interval_min + 2 
+4281 704b0600 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+4282 704abe00 jam 0 ,mem_mouse_clear_sensor_data_flag 
+4283 20401aa9 call le_clr_config_more_data 
+4284 20204319 branch mouse_bb_disconnected 
+
+mouse_le_pairing_success:
+4285 d8e00002 arg ll_pairing_success_flag ,queue 
+4286 20204290 branch mouse_le_enable_connect_flag 
+
+mouse_le_enc_info:
+
+mouse_updata_le_param:
+4287 70095b12 jam bt_cmd_le_update_conn ,mem_fifo_temp 
+4288 202077b0 branch ui_ipc_send_cmd 
+
+mouse_le_ll_start_encryt:
+4289 6fe0cad9 fetch 1 ,mem_mouse_le_reconnect_flag 
+428a c000c28c beq 1 ,mouse_le_ll_reconn_start_encryt 
+428b 2020428e branch mouse_le_ll_enable_start_enc_flag 
+
+mouse_le_ll_reconn_start_encryt:
+428c 20404287 call mouse_updata_le_param 
+428d 704b8814 jam 20 ,mem_le_start_encrypt_timer 
+
+mouse_le_ll_enable_start_enc_flag:
+428e d8e00001 arg ll_start_enc_flag ,queue 
+428f 20204290 branch mouse_le_enable_connect_flag 
+
+mouse_le_enable_connect_flag:
+4290 6fe0cb87 fetch 1 ,mem_le_connect_status_flag 
+4291 f9207e00 qset1 pdata 
+4292 67e0cb87 store 1 ,mem_le_connect_status_flag 
+4293 20600000 rtn 
+
+mouse_le_pairing_complete:
+4294 20203262 branch app_ble_store_reconn_info 
+
+mouse_le_conn_param_update_rsp_recieved:
+4295 6fe143de fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+4296 c1000000 rtneq ble_signaling_connect_parameter_update_accepted 
+4297 6fe08289 fetch 1 ,mem_le_tsniff 
+4298 1feb7e00 rshift2 pdata ,pdata 
+4299 1fe67c0c sub pdata ,le_interval_15ms ,null 
+429a 20610000 rtn positive 
+429b 58000009 setarg le_interval_11_25ms 
+429c 67e14375 store 2 ,mem_le_interval_min 
+429d 67e14377 store 2 ,mem_le_interval_min + 2 
+429e 20404287 call mouse_updata_le_param 
+
+mouse_le_conn_param_lpm_disable:
+429f 704b0601 jam le_lpm_disable ,mem_mouse_le_conn_param_reject 
+42a0 20600000 rtn 
+
+mouse_le_conn_param_lpm_enable:
+42a1 704b0600 jam le_lpm_enable ,mem_mouse_le_conn_param_reject 
+42a2 20600000 rtn 
+
+mouse_le_bb_event_connect_complete:
+42a3 6fe0cad9 fetch 1 ,mem_mouse_le_reconnect_flag 
+42a4 247a0000 nrtn blank 
+42a5 6fe0c43a fetch 1 ,mem_le_att_handle 
+42a6 1fe67e22 sub pdata ,34 ,pdata 
+42a7 24628000 nrtn zero 
+42a8 704b8800 jam 0 ,mem_le_start_encrypt_timer 
+
+mouse_le_write_enable:
+42a9 d8e00000 arg write_req_enable_flag ,queue 
+42aa 20204290 branch mouse_le_enable_connect_flag 
+
+mouse_le_parse_conn_param_accepted:
+42ab 6fe082c1 fetch 1 ,mem_le_new_conninterval 
+42ac 1fe67c0c sub pdata ,le_interval_15ms ,null 
+42ad 2421429f nbranch mouse_le_conn_param_lpm_disable ,positive 
+42ae 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+42af 6848cb9c fetcht 1 ,mem_lpm_mult_init 
+42b0 98467c00 isub temp ,null 
+42b1 202142b5 branch mouse_le_lpm_mult_reinit ,positive 
+42b2 6fe082c3 fetch 1 ,mem_le_new_connslavelatency 
+42b3 67e0c177 store 1 ,mem_lpm_mult 
+42b4 202042a1 branch mouse_le_conn_param_lpm_enable 
+
+mouse_le_lpm_mult_reinit:
+42b5 6fe0cb9c fetch 1 ,mem_lpm_mult_init 
+42b6 67e0c177 store 1 ,mem_lpm_mult 
+42b7 202042a1 branch mouse_le_conn_param_lpm_enable 
+
+mouse_le_clean_connect_flag:
+42b8 704b8700 jam 0 ,mem_le_connect_status_flag 
+42b9 20600000 rtn 
+
+mouse_le:
+42ba 44eac01a bpatch patch1a_5 ,mem_patch1a 
+42bb 20401b05 call le_fifo_check_nearly_full 
+42bc 247a0000 nrtn blank 
+42bd 6fe0cad3 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+42be c07fc2c2 beq 0xff ,mouse_le_next 
+42bf 6fe0cb87 fetch 1 ,mem_le_connect_status_flag 
+42c0 1fe17e03 and pdata ,0x03 ,pdata 
+42c1 c1818000 rtnne 0x03 
+
+mouse_le_next:
+42c2 6fe0cabe fetch 1 ,mem_mouse_clear_sensor_data_flag 
+42c3 205a41e3 call mouse_clear_sensor_data_by_reset ,blank 
+42c4 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+42c5 c280c2ec bbit1 mouse_24g_pairing_flag ,mouse_le_send_empty_packet 
+42c6 c28042ec bbit1 mouse_select_device_flag ,mouse_le_send_empty_packet 
+42c7 c282c2ec bbit1 mouse_bt_discovery_button_down_flag ,mouse_le_send_empty_packet 
+42c8 c28342ec bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_le_send_empty_packet 
+42c9 20403e8b call mouse_motion 
+42ca 2040423f call mouse_check_125hz 
+42cb 24740000 nrtn user 
+42cc 2040424a call mouse_current_mult_update 
+42cd 204041e6 call mouse_data_xy_release 
+42ce 20403f38 call mouse_wheel_trigger 
+42cf 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+42d0 c30ac2d3 bbit0 mouse_enable_keyboard ,mouse_le_send_mouse_data 
+42d1 6fe0cb9d fetch 1 ,mem_customer_key 
+42d2 c000c2d4 beq 1 ,mouse_le_send_keyboard_package_data 
+
+mouse_le_send_mouse_data:
+42d3 202042ee branch mouse_fill_mouse_data_le 
+
+mouse_le_send_keyboard_package_data:
+42d4 6fe0cb9e fetch 1 ,mem_customer_data_trigger 
+42d5 203a42de branch mouse_le_release_keyboard_data ,blank 
+42d6 6fe44bdf fetch 8 ,mem_customer_key_press + 1 
+
+mouse_fill_keyboard_package_data_le:
+42d7 67e4095c store 8 ,mem_pdatatemp 
+42d8 6fe0cbde fetch 1 ,mem_customer_key_press 
+42d9 c001c2e0 beq kb_multikey_report_id ,mouse_fill_multimedia_key_data_le 
+42da c00142e3 beq kb_system_conctrl_report_id ,mouse_fill_systemctrl_key_data_le 
+42db 704af808 jam 8 ,mem_le_data_len 
+42dc 68494af9 fetcht 2 ,mem_le_keyboard_handle 
+42dd 202042f3 branch mouse_fill_data_le 
+
+mouse_le_release_keyboard_data:
+42de 6fe44be8 fetch 8 ,mem_customer_key_release + 1 
+42df 202042d7 branch mouse_fill_keyboard_package_data_le 
+
+mouse_fill_multimedia_key_data_le:
+42e0 704af803 jam 3 ,mem_le_data_len 
+42e1 68494afb fetcht 2 ,mem_le_multimedia_handle 
+42e2 202042f3 branch mouse_fill_data_le 
+
+mouse_fill_systemctrl_key_data_le:
+42e3 704af802 jam 2 ,mem_le_data_len 
+42e4 68494afd fetcht 2 ,mem_le_systemctrl_handle 
+42e5 202042f3 branch mouse_fill_data_le 
+
+mouse_fill_battery_level_le:
+42e6 da200001 arg 1 ,rega 
+42e7 68494aff fetcht 2 ,mem_le_battery_level_handle 
+42e8 20401e40 call le_att_malloc_tx_notify 
+42e9 6fe0cb01 fetch 1 ,mem_le_battery_level_percentage 
+42ea e7e08005 istore 1 ,contw 
+42eb 20600000 rtn 
+
+mouse_le_send_empty_packet:
+42ec 58000000 setarg 0 
+42ed 67e3c8d8 store 7 ,mem_mouse_key 
+
+mouse_fill_mouse_data_le:
+42ee 704af807 jam 7 ,mem_le_data_len 
+42ef 6fe3c8d8 fetch 7 ,mem_mouse_key 
+42f0 67e3895c store 7 ,mem_pdatatemp 
+42f1 6849435a fetcht 2 ,mem_le_notify_handle 
+42f2 202042f3 branch mouse_fill_data_le 
+
+mouse_fill_data_le:
+42f3 6fe0caf8 fetch 1 ,mem_le_data_len 
+42f4 1fe22200 copy pdata ,rega 
+42f5 20401e40 call le_att_malloc_tx_notify 
+42f6 6848caf8 fetcht 1 ,mem_le_data_len 
+42f7 18427200 copy temp ,loopcnt 
+42f8 d8c0095c arg mem_pdatatemp ,contr 
+42f9 20207ca1 branch memcpy 
+
+mouse_check_51cmd_adv:
+42fa 704ad900 jam 0 ,mem_mouse_le_reconnect_flag 
+42fb 6fe1cade fetch 3 ,mem_le_adv_ind 
+42fc 67e1c3ef store 3 ,mem_le_adv_data + 4 
+42fd 20404303 call mouse_le_check_adv_flag 
+42fe 58000005 setarg adv_flag_bredr_not_supported | adv_flag_limited_discoverable 
+42ff e7e08006 istore 1 ,contr 
+4300 d8c04ae4 arg mem_le_adv_swift_pair ,contr 
+4301 2040430a call mouse_le_adv_data_update 
+4302 20207824 branch check_51cmd_adv 
+
+mouse_le_check_adv_flag:
+4303 da2043eb arg mem_le_adv_data ,rega 
+
+mouse_le_check_adv_flag_loop:
+4304 efe08011 ifetch 1 ,rega 
+4305 207a0000 rtn blank 
+4306 98c0a200 iadd contr ,rega 
+4307 efe08006 ifetch 1 ,contr 
+4308 c1008000 rtneq 0x01 
+4309 20204304 branch mouse_le_check_adv_flag_loop 
+
+mouse_le_adv_data_update:
+430a d8a043f6 arg mem_le_adv_data + 11 ,contw 
+430b df200013 arg 19 ,loopcnt 
+430c 20407ca1 call memcpy 
+430d 20201a4b branch le_modified_name_adv 
+
+mouse_bt_sniff_param_interval_setup:
+430e 5800000c setarg classic_interval_7_5ms 
+430f 67e14458 store 2 ,mem_sniff_param_interval 
+4310 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4311 c38d8000 rtnbit1 mouse_enable_bt_125hz 
+4312 5800000e setarg classic_interval_8_75ms 
+4313 67e14458 store 2 ,mem_sniff_param_interval 
+4314 20600000 rtn 
+
+mouse_bb_event_connected:
+4315 704ac000 jam 0 ,mem_mouse_long_mult_flag 
+4316 204041e5 call mouse_init_sensor_reset 
+4317 2040473c call mouse_24g_first_store_reconn_info 
+4318 20204491 branch mouse_stop_discovery 
+
+mouse_bb_disconnected:
+4319 704b9100 jam 0 ,mem_mouse_enter_sniff_count 
+431a 704b9a00 jam 0 ,mem_mouse_bt_send_first_package_flag 
+431b 2040430e call mouse_bt_sniff_param_interval_setup 
+431c 20404324 call mouse_bb_discon_clear_stack 
+431d 6fe14483 fetch app_disc_rsn_size ,mem_app_disconn_reason 
+431e c283c32b bbit1 app_disc_ble ,mouse4_0_event_bb_disconn 
+431f c280320b bbit1 app_disc_by_button ,app_disconn_reason_clear 
+4320 c280c32f bbit1 app_disc_after_pairing ,mouse_event_light_state_pairing 
+4321 c2814332 bbit1 app_disc_after_reconn ,mouse_event_light_state_hibernate 
+4322 c281c332 bbit1 app_disc_after_sniff ,mouse_event_light_state_hibernate 
+4323 2020446e branch mouse_start_discovery 
+
+mouse_bb_discon_clear_stack:
+4324 58000000 setarg 0 
+4325 67e448e1 store 8 ,mem_wheel_tb_old_pinlevel 
+4326 e7e20005 istore 4 ,contw 
+4327 7049cf00 jam 0 ,mem_mouse_move_flag 
+4328 70445700 jam app_handshake_null ,mem_app_handshake_flag 
+4329 70432900 jam 0 ,mem_ltk_exists 
+432a 20600000 rtn 
+
+mouse4_0_event_bb_disconn:
+432b 204042b8 call mouse_le_clean_connect_flag 
+432c 6fe14483 fetch app_disc_rsn_size ,mem_app_disconn_reason 
+432d c280320b bbit1 app_disc_by_button ,app_disconn_reason_clear 
+432e 20203d30 branch mouse_app_enter_hibernate 
+
+mouse_event_light_state_pairing:
+432f c282c332 bbit1 app_disc_after_handshake ,mouse_event_light_state_hibernate 
+4330 c281c332 bbit1 app_disc_after_sniff ,mouse_event_light_state_hibernate 
+4331 2020446e branch mouse_start_discovery 
+
+mouse_event_light_state_hibernate:
+4332 6fe14793 fetch 2 ,mem_ui_state_map 
+4333 c286446e bbit1 ui_state_btn_down ,mouse_start_discovery 
+4334 2040320b call app_disconn_reason_clear 
+4335 2040402b call mouse_key_check_once 
+4336 204043f7 call mouse_commbination_key_process 
+4337 6fe0cbb1 fetch 1 ,mem_commbination_key_statue 
+4338 c000bd2d beq commbination_key_state_down ,mouse_delay_enter_hibernata 
+4339 6fe0cad6 fetch 1 ,mem_mouse_bluetooth_reconnect_timeout 
+433a 247a0000 nrtn blank 
+433b 20203d30 branch mouse_app_enter_hibernate 
+
+mouse_bt_event_setup_complete:
+433c 20600000 rtn 
+
+mouse_bt_send_first_package_timer_init:
+433d 704b9904 jam 4 ,mem_mouse_bt_send_first_package_timer 
+433e 20600000 rtn 
+
+mouse_bt_hid_handshake:
+433f 70445701 jam app_handshake_done ,mem_app_handshake_flag 
+4340 20403268 call app_lpm_mult_enable 
+4341 20403264 call app_bt_store_reconn_info 
+4342 58000000 setarg 0 
+4343 67e1478f store 2 ,mem_discovery_timeout_timer_count 
+4344 67e0c791 store 1 ,mem_hid_handshake_timer_count 
+4345 2040433d call mouse_bt_send_first_package_timer_init 
+4346 20203260 branch app_bt_enter_sniff 
+
+mouse_bt_hid_handshake_boot_check:
+4347 704b9200 jam 0 ,mem_mouse_bt_boot_mode 
+4348 6fe0c5fc fetch 1 ,mem_l2cap_rcv_hidtype 
+4349 2feffe00 isolate1 0 ,pdata 
+434a 20608000 rtn true 
+434b 704b9201 jam 1 ,mem_mouse_bt_boot_mode 
+434c 20600000 rtn 
+
+mouse_bb_event_reconn_timeout:
+
+mouse_bb_event_reconn_failed:
+434d 6fe0cad3 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+434e c07fc213 beq 0xff ,mouse_buletooth_fast_conn_end 
+434f 6fe14793 fetch 2 ,mem_ui_state_map 
+4350 c3860000 rtnbit1 ui_state_btn_down 
+4351 c3830000 rtnbit1 ui_state_bt_discovery 
+4352 c3858000 rtnbit1 ui_state_ble_adv 
+4353 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4354 c3828000 rtnbit1 mouse_bt_discovery_button_down_flag 
+4355 c299c46e bbit1 mouse_enable_bt_reconnect_timeout_enter_discovery ,mouse_start_discovery 
+4356 c297c739 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_bb_event_reconn_timeout 
+4357 20203d30 branch mouse_app_enter_hibernate 
+
+mouse_enter_sniff_check:
+4358 6fe0cb91 fetch 1 ,mem_mouse_enter_sniff_count 
+4359 c1810000 rtnne 2 
+435a 704b9100 jam 0 ,mem_mouse_enter_sniff_count 
+435b 2040430e call mouse_bt_sniff_param_interval_setup 
+435c 2040433d call mouse_bt_send_first_package_timer_init 
+435d 20203260 branch app_bt_enter_sniff 
+
+mouse_sniff_not_accept:
+435e 6fe0cb91 fetch 1 ,mem_mouse_enter_sniff_count 
+435f c1010000 rtneq 2 
+4360 1fe0fe01 increase 1 ,pdata 
+4361 67e0cb91 store 1 ,mem_mouse_enter_sniff_count 
+4362 70445812 jam 0x12 ,mem_sniff_param_interval 
+4363 2040433d call mouse_bt_send_first_package_timer_init 
+4364 20203260 branch app_bt_enter_sniff 
+
+mouse_bb_event_pincode:
+4365 20405a0e call pincode_reinit 
+4366 2020322f branch app_bt_set_pincode 
+
+mouse_irtual_cable_unplug:
+4367 58000001 setarg 0x01 
+4368 67e30040 store 6 ,mem_plap 
+4369 7000e733 jam rec_3_mode ,mem_record_bt_mode 
+436a 202044a8 branch mouse_unplug_clean_bdaddr 
+
+mouse_irtual_cable_unplug1:
+436b 5fffffff setarg -1 
+436c 67e30040 store 6 ,mem_plap 
+436d 7000e733 jam rec_3_mode ,mem_record_bt_mode 
+436e 704ad3ff jam 0xff ,mem_mouse_bluetooth_fast_conn_flag 
+436f 204044bd call mouse_before_store_reconn_info 
+4370 704940ff jam 0xff ,mem_device1_type 
+4371 20204509 branch mouse_store_device_info_delay 
+
+mouse_bt:
+4372 44eb401a bpatch patch1a_6 ,mem_patch1a 
+4373 20770000 rtn attempt 
+4374 6fe0c457 fetch 1 ,mem_app_handshake_flag 
+4375 207a0000 rtn blank 
+4376 20405211 call l2cap_malloc_is_fifo_nearly_full 
+4377 247a0000 nrtn blank 
+4378 6fe0cad3 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+4379 c07fc221 beq 0xff ,mouse_bt_fast_conn_send_device_name 
+437a 6fe0cabe fetch 1 ,mem_mouse_clear_sensor_data_flag 
+437b 205a41e3 call mouse_clear_sensor_data_by_reset ,blank 
+437c 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+437d c280c3a9 bbit1 mouse_24g_pairing_flag ,mouse_send_empty_data 
+437e c28043a9 bbit1 mouse_select_device_flag ,mouse_send_empty_data 
+437f c282c3a9 bbit1 mouse_bt_discovery_button_down_flag ,mouse_send_empty_data 
+4380 c28343a9 bbit1 mouse_bt_discovery_button_long_down_flag ,mouse_send_empty_data 
+4381 20403e8b call mouse_motion 
+4382 2040423f call mouse_check_125hz 
+4383 24740000 nrtn user 
+4384 2040424a call mouse_current_mult_update 
+4385 204041e6 call mouse_data_xy_release 
+4386 20403f38 call mouse_wheel_trigger 
+4387 6fe0cb92 fetch 1 ,mem_mouse_bt_boot_mode 
+4388 c000c398 beq 1 ,mouse_send_data_boot_mode 
+4389 6fe0cb9a fetch 1 ,mem_mouse_bt_send_first_package_flag 
+438a 207a0000 rtn blank 
+438b 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+438c c30ac38f bbit0 mouse_enable_keyboard ,mouse_send_data 
+438d 6fe0cb9d fetch 1 ,mem_customer_key 
+438e c000c3ac beq 1 ,mouse_bt_send_keyboard_packet 
+
+mouse_send_data:
+438f da200009 arg 9 ,rega 
+4390 20404cdd call hid_malloc_tx_buff 
+4391 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+4392 e7e10005 istore 2 ,contw 
+4393 580002a1 setarg 0x02a1 
+4394 e7e10005 istore 2 ,contw 
+4395 6fe3c8d8 fetch 7 ,mem_mouse_key 
+4396 e7e38005 istore 7 ,contw 
+4397 20600000 rtn 
+
+mouse_send_data_boot_mode:
+4398 6fe0c8d8 fetch 1 ,mem_mouse_key 
+4399 67e0cb93 store 1 ,mem_mouse_bt_boot_data 
+439a 6fe0c8d9 fetch 1 ,mem_mouse_x 
+439b e7e08005 istore 1 ,contw 
+439c 6fe0c8db fetch 1 ,mem_mouse_y 
+439d e7e08005 istore 1 ,contw 
+439e 6fe148dd fetch 2 ,mem_mouse_z 
+439f e7e10005 istore 2 ,contw 
+43a0 da200007 arg 7 ,rega 
+43a1 20404cdd call hid_malloc_tx_buff 
+43a2 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+43a3 e7e10005 istore 2 ,contw 
+43a4 580002a1 setarg 0x02a1 
+43a5 e7e10005 istore 2 ,contw 
+43a6 6fe2cb93 fetch 5 ,mem_mouse_bt_boot_data 
+43a7 e7e28005 istore 5 ,contw 
+43a8 20600000 rtn 
+
+mouse_send_empty_data:
+43a9 58000000 setarg 0 
+43aa 67e3c8d8 store 7 ,mem_mouse_key 
+43ab 2020438f branch mouse_send_data 
+
+mouse_bt_send_keyboard_packet:
+43ac 6fe0cb9e fetch 1 ,mem_customer_data_trigger 
+43ad 203a43ce branch mouse_bt_release_keyboard_data ,blank 
+43ae 6fe44bdf fetch 8 ,mem_customer_key_press + 1 
+
+mouse_bt_send_keyboard_data:
+43af 67e4095c store 8 ,mem_pdatatemp 
+43b0 6fe0cbde fetch 1 ,mem_customer_key_press 
+43b1 c001c3bc beq kb_multikey_report_id ,mouse_bt_send_multimedia_key_data 
+43b2 c00143c5 beq kb_system_conctrl_report_id ,mouse_bt_send_systemctrl_key_data 
+43b3 da20000a arg 10 ,rega 
+43b4 20404cdd call hid_malloc_tx_buff 
+43b5 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+43b6 e7e10005 istore 2 ,contw 
+43b7 580001a1 setarg 0x01a1 
+43b8 e7e10005 istore 2 ,contw 
+43b9 6fe4095c fetch 8 ,mem_pdatatemp 
+43ba e7e40005 istore 8 ,contw 
+43bb 20600000 rtn 
+
+mouse_bt_send_multimedia_key_data:
+43bc da200004 arg 4 ,rega 
+43bd 20404cdd call hid_malloc_tx_buff 
+43be 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+43bf e7e10005 istore 2 ,contw 
+43c0 580003a1 setarg 0x03a1 
+43c1 e7e10005 istore 2 ,contw 
+43c2 6fe1095c fetch 2 ,mem_pdatatemp 
+43c3 e7e10005 istore 2 ,contw 
+43c4 20600000 rtn 
+
+mouse_bt_send_systemctrl_key_data:
+43c5 da200003 arg 3 ,rega 
+43c6 20404cdd call hid_malloc_tx_buff 
+43c7 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+43c8 e7e10005 istore 2 ,contw 
+43c9 580004a1 setarg 0x04a1 
+43ca e7e10005 istore 2 ,contw 
+43cb 6fe0895c fetch 1 ,mem_pdatatemp 
+43cc e7e08005 istore 1 ,contw 
+43cd 20600000 rtn 
+
+mouse_bt_release_keyboard_data:
+43ce 6fe44be8 fetch 8 ,mem_customer_key_release + 1 
+43cf 202043af branch mouse_bt_send_keyboard_data 
+
+mouse_bb_event_timer:
+43d0 44ebc01a bpatch patch1a_7 ,mem_patch1a 
+43d1 20403db7 call mouse_adc_read 
+43d2 20404880 call mouse_low_voltage_led_timer 
+43d3 204022c2 call g24_pair_timeout_timer 
+43d4 20402542 call g24_reconn_timeout_timer 
+43d5 204046e6 call mouse_24g_long_sleep_param_update_timer 
+43d6 204047e8 call mouse_device_poweron_timer 
+43d7 20404819 call mouse_dpi_led_blink_delay_timer 
+43d8 20403f97 call mouse_dpi_key_check_long_press 
+43d9 204043e7 call mouse_bt_discovery_check 
+43da 204043f7 call mouse_commbination_key_process 
+43db 2040441a call mouse_check_discovery_timeout_timer 
+43dc 2040441f call mouse_check_direct_timeout_timer 
+43dd 2040442d call mouse_le_enable_att_list_timer 
+43de 2040443a call mouse_le_battery_updata_timer 
+43df 20404430 call mouse_le_send_smp_security_request_timer 
+43e0 20404445 call mouse_check_hid_handshake_timer 
+43e1 20404448 call mouse_bt_check_sniff_req_timeout_timer 
+43e2 2040444d call mouse_check_reconnect_delay_long_sleep 
+43e3 20404450 call mouse_current_mult_update_timer 
+43e4 20403f3d call mouse_wheel_trigger_timer 
+43e5 20404462 call mouse_store_information_delay_timer 
+43e6 20204457 branch mouse_check_no_data_timeout_timer 
+
+mouse_bt_discovery_check:
+43e7 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+43e8 c29bc3ea bbit1 mouse_enable_pb_button_long_press_disconvery ,mouse_bt_discovery_by_pb_button 
+43e9 20600000 rtn 
+
+mouse_bt_discovery_by_pb_button:
+43ea 6fe0cbb0 fetch 1 ,mem_select_device_button_statue 
+43eb c1808000 rtnne pb_button_state_down 
+43ec da604bad arg mem_bt_discovery_count ,regc 
+43ed da4043ef arg mouse_long_button_bt_discovery ,regb 
+43ee 202031cf branch timer_single_step 
+
+mouse_long_button_bt_discovery:
+43ef 6fe0c93f fetch 1 ,mem_device_flag 
+43f0 c1000000 rtneq mode_24g_device 
+43f1 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+43f2 c3830000 rtnbit1 mouse_bt_discovery_button_long_down_flag 
+43f3 d8e00006 arg mouse_bt_discovery_button_long_down_flag ,queue 
+43f4 20404609 call mouse_enable_function_flag 
+43f5 204031b9 call app_evt_button_long_pressed 
+43f6 20204469 branch mouse_bb_event_discovery_btn 
+
+mouse_commbination_key_process:
+43f7 6fe0c93f fetch 1 ,mem_device_flag 
+43f8 c00043fd beq mode_24g_device ,mouse_24g_commbination_key_process 
+43f9 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+43fa c41a8000 rtnbit0 mouse_enable_commbination_key_by_bt_discovery 
+43fb 6848cbdc fetcht 1 ,mem_mouse_commbination_key_bt 
+43fc 20204400 branch mouse_commbination_key_start 
+
+mouse_24g_commbination_key_process:
+43fd 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+43fe c4190000 rtnbit0 mouse_enable_commbination_key_by_24g_pairing 
+43ff 6848cbdd fetcht 1 ,mem_mouse_commbination_key_24g 
+
+mouse_commbination_key_start:
+4400 6048cbaf storet 1 ,mem_mouse_commbination_key 
+4401 20404030 call mouse_check_key_gpio 
+4402 1fe17e07 and pdata ,0x07 ,pdata 
+4403 6848cbaf fetcht 1 ,mem_mouse_commbination_key 
+4404 98467c00 isub temp ,null 
+4405 2022c40c branch mouse_commbination_key_down ,zero 
+
+mouse_commbination_key_up:
+4406 6fe0c796 fetch 1 ,mem_ui_button_timeout 
+4407 67e0cbb2 store 1 ,mem_combination_ui_button_count 
+4408 6fe0cbb1 fetch 1 ,mem_commbination_key_statue 
+4409 c1000000 rtneq commbination_key_state_up 
+440a 704bb100 jam commbination_key_state_up ,mem_commbination_key_statue 
+440b 20600000 rtn 
+
+mouse_commbination_key_down:
+440c 20404411 call mouse_combination_ui_timer 
+440d 6fe0cbb1 fetch 1 ,mem_commbination_key_statue 
+440e c1008000 rtneq commbination_key_state_down 
+440f 704bb101 jam commbination_key_state_down ,mem_commbination_key_statue 
+4410 20207867 branch check_51cmd_bb_reconn_cancel 
+
+mouse_combination_ui_timer:
+4411 da404741 arg mouse_24g_start_pair_mode ,regb 
+4412 da604bb2 arg mem_combination_ui_button_count ,regc 
+4413 6fe0c93f fetch 1 ,mem_device_flag 
+4414 c00031cf beq mode_24g_device ,timer_single_step 
+4415 da4043ef arg mouse_long_button_bt_discovery ,regb 
+4416 204031cf call timer_single_step 
+4417 6fe0cbb2 fetch 1 ,mem_combination_ui_button_count 
+4418 c000c5fb beq 1 ,mouse_bt_discovery_button_down_enable 
+4419 20600000 rtn 
+
+mouse_check_discovery_timeout_timer:
+441a da604ad4 arg mem_mouse_discovery_timer ,regc 
+441b da40441d arg mouse_check_discovery_timeout ,regb 
+441c 202031d6 branch timer_single_step_2b 
+
+mouse_check_discovery_timeout:
+441d 20404491 call mouse_stop_discovery 
+441e 20203d30 branch mouse_app_enter_hibernate 
+
+mouse_check_direct_timeout_timer:
+441f da604b89 arg mem_mouse_direct_timer ,regc 
+4420 da404425 arg mouse_check_direct_timeout ,regb 
+4421 204031d6 call timer_single_step_2b 
+4422 6fe0cb89 fetch 1 ,mem_mouse_direct_timer 
+4423 c000b248 beq 1 ,app_ble_stop_direct_adv 
+4424 20600000 rtn 
+
+mouse_check_direct_timeout:
+4425 6fe0cad3 fetch 1 ,mem_mouse_bluetooth_fast_conn_flag 
+4426 c07fc213 beq 0xff ,mouse_buletooth_fast_conn_end 
+4427 6fe0cac2 fetch 1 ,mem_reconn_times 
+4428 243a4627 nbranch mouse_polling_device ,blank 
+4429 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+442a c299c46e bbit1 mouse_enable_bt_reconnect_timeout_enter_discovery ,mouse_start_discovery 
+442b c297c739 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_first_bb_event_reconn_timeout 
+442c 20203d30 branch mouse_app_enter_hibernate 
+
+mouse_le_enable_att_list_timer:
+442d da604b88 arg mem_le_start_encrypt_timer ,regc 
+442e da4042a9 arg mouse_le_write_enable ,regb 
+442f 202031cf branch timer_single_step 
+
+mouse_le_send_smp_security_request_timer:
+4430 6fe0cad8 fetch 1 ,mem_mouse_le_bb_connected_flag 
+4431 207a0000 rtn blank 
+4432 da604ada arg mem_mouse_send_secutiry_request_timer ,regc 
+4433 da404435 arg mouse_le_pairing_sm_start_check ,regb 
+4434 202031cf branch timer_single_step 
+
+mouse_le_pairing_sm_start_check:
+4435 6fe0cad9 fetch 1 ,mem_mouse_le_reconnect_flag 
+4436 247a0000 nrtn blank 
+4437 6fe0c39e fetch 1 ,mem_le_pairing_state 
+4438 c1800000 rtnne flag_le_pairing_null 
+4439 2020201e branch le_pairing_sm_start 
+
+mouse_le_battery_updata_timer:
+443a da604b04 arg mem_le_battery_level_updata_timer ,regc 
+443b da40443d arg mouse_le_battery_level_updata ,regb 
+443c 202031cf branch timer_single_step 
+
+mouse_le_battery_level_updata:
+443d 6fe14b02 fetch 2 ,mem_le_battery_level_updata_timer_init 
+443e 67e14b04 store 2 ,mem_le_battery_level_updata_timer 
+443f 202042e6 branch mouse_fill_battery_level_le 
+
+mouse_le_enable_att_list:
+4440 6fe0cb87 fetch 1 ,mem_le_connect_status_flag 
+4441 c3810000 rtnbit1 ll_pairing_success_flag 
+4442 20404287 call mouse_updata_le_param 
+4443 d8e00000 arg write_req_enable_flag ,queue 
+4444 20204290 branch mouse_le_enable_connect_flag 
+
+mouse_check_hid_handshake_timer:
+4445 da604791 arg mem_hid_handshake_timer_count ,regc 
+4446 da40433f arg mouse_bt_hid_handshake ,regb 
+4447 202031cf branch timer_single_step 
+
+mouse_bt_check_sniff_req_timeout_timer:
+4448 da604b99 arg mem_mouse_bt_send_first_package_timer ,regc 
+4449 da40444b arg mouse_bt_send_first_package ,regb 
+444a 202031cf branch timer_single_step 
+
+mouse_bt_send_first_package:
+444b 704b9a01 jam 1 ,mem_mouse_bt_send_first_package_flag 
+444c 20600000 rtn 
+
+mouse_check_reconnect_delay_long_sleep:
+444d da604ad6 arg mem_mouse_bluetooth_reconnect_timeout ,regc 
+444e da403d30 arg mouse_app_enter_hibernate ,regb 
+444f 202031cf branch timer_single_step 
+
+mouse_current_mult_update_timer:
+4450 da604ac1 arg mem_mouse_current_mult_timer ,regc 
+4451 da404453 arg mouse_current_mult_reinit ,regb 
+4452 202031cf branch timer_single_step 
+
+mouse_current_mult_reinit:
+4453 6fe0cb9c fetch 1 ,mem_lpm_mult_init 
+4454 67e0c177 store 1 ,mem_lpm_mult 
+4455 704ac001 jam 1 ,mem_mouse_long_mult_flag 
+4456 20600000 rtn 
+
+mouse_check_no_data_timeout_timer:
+4457 6fe0c931 fetch 1 ,mem_usb_addr 
+4458 c3838000 rtnbit1 7 
+4459 da604ac4 arg mem_mouse_no_data_timer ,regc 
+445a da40445c arg mouse_check_no_data_timeout ,regb 
+445b 202031d6 branch timer_single_step_2b 
+
+mouse_check_no_data_timeout:
+445c 6fe0c93f fetch 1 ,mem_device_flag 
+445d c00046fb beq mode_24g_device ,mouse_24g_hibernate_set 
+445e 20204236 branch mouse_disconnect 
+
+mouse_no_data_timer_init:
+445f 6fe14bd0 fetch 2 ,mem_mouse_no_data_timeout 
+4460 67e14ac4 store 2 ,mem_mouse_no_data_timer 
+4461 20600000 rtn 
+
+mouse_store_information_delay_timer:
+4462 da6049c6 arg mem_store_information_delay_timer ,regc 
+4463 da404465 arg mouse_store_device_info_check ,regb 
+4464 202031cf branch timer_single_step 
+
+mouse_store_device_info_check:
+4465 2040450c call mouse_store_device_info 
+4466 6fe0cad7 fetch 1 ,mem_mouse_need_soft_reset 
+4467 243a45d9 nbranch mouse_soft_reset ,blank 
+4468 20600000 rtn 
+
+mouse_bb_event_discovery_btn:
+4469 280ffe26 isolate1 mark_24g ,mark 
+446a 2040c70c call mouse_24g_stop ,true 
+446b 20404236 call mouse_disconnect 
+446c 204042b8 call mouse_le_clean_connect_flag 
+446d 2020446e branch mouse_start_discovery 
+
+mouse_start_discovery:
+446e 44ec401b bpatch patch1b_0 ,mem_patch1b 
+446f 2040422f call mouse_bluetooth_fast_conn_disable 
+4470 6fe14793 fetch 2 ,mem_ui_state_map 
+4471 c285c47a bbit1 ui_state_ble_adv ,mouse_start_discovery_norandom 
+4472 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4473 c304447a bbit0 mouse_enable_ble_random_addre ,mouse_start_discovery_norandom 
+4474 6849499e fetcht 2 ,mem_random_addr_increase_count 
+4475 18408401 increase 1 ,temp 
+4476 6049499e storet 2 ,mem_random_addr_increase_count 
+4477 6049437e storet 2 ,mem_le_lap + 1 
+4478 180a7e00 random pdata 
+4479 67e0c37d store 1 ,mem_le_lap 
+
+mouse_start_discovery_norandom:
+447a 6fe1cadb fetch 3 ,mem_mouse_le_lap_temp 
+447b 67e1c380 store 3 ,mem_le_lap + 3 
+447c 2040326a call app_lpm_mult_disable 
+447d 6fe14798 fetch 2 ,mem_discovery_timeout 
+447e 67e14ad4 store 2 ,mem_mouse_discovery_timer 
+447f 7000bc06 jam 6 ,mem_connection_options 
+4480 58000000 setarg 0 
+4481 67e14ac4 store 2 ,mem_mouse_no_data_timer 
+4482 67e0cb89 store 1 ,mem_mouse_direct_timer 
+4483 67e0cad6 store 1 ,mem_mouse_bluetooth_reconnect_timeout 
+4484 67e0cbb9 store 1 ,mem_mouse_device_poweron_timer_count 
+4485 67e0cabe store 1 ,mem_mouse_clear_sensor_data_flag 
+4486 d8e00002 arg mouse_store_eeprom_flag ,queue 
+4487 20404609 call mouse_enable_function_flag 
+4488 204045fd call mouse_bt_discovery_button_down_disable 
+4489 6fe0cbc5 fetch 1 ,mem_mouse_bluetooth_type 
+448a 2feffe01 isolate1 mode_4_mouse ,pdata 
+448b 2040c2fa call mouse_check_51cmd_adv ,true 
+448c 6fe0cbc5 fetch 1 ,mem_mouse_bluetooth_type 
+448d 2feffe00 isolate1 mode_3_mouse ,pdata 
+448e 2040f7fa call check_51cmd_start_discovery ,true 
+448f 204048b8 call mouse_low_voltage_led_blink_disable 
+4490 202047f6 branch mouse_discover_setting_led_gpio 
+
+mouse_stop_discovery:
+4491 44ecc01b bpatch patch1b_1 ,mem_patch1b 
+4492 d8e00006 arg mouse_bt_discovery_button_long_down_flag ,queue 
+4493 2040460d call mouse_disable_function_flag 
+4494 704ad600 jam 0 ,mem_mouse_bluetooth_reconnect_timeout 
+4495 6fe0cbc5 fetch 1 ,mem_mouse_bluetooth_type 
+4496 2feffe01 isolate1 mode_4_mouse ,pdata 
+4497 2040c49c call mouse_stop_le_adv ,true 
+4498 6fe0cbc5 fetch 1 ,mem_mouse_bluetooth_type 
+4499 2feffe00 isolate1 mode_3_mouse ,pdata 
+449a 2040c49e call mouse_stop_bt3_discovery ,true 
+449b 2020483c branch mouse_device_led_off 
+
+mouse_stop_le_adv:
+449c 704b8900 jam 0 ,mem_mouse_direct_timer 
+449d 2020782a branch check_51cmd_stop_adv 
+
+mouse_stop_bt3_discovery:
+449e 58000000 setarg 0 
+449f 67e14ad4 store 2 ,mem_mouse_discovery_timer 
+44a0 202077ff branch check_51cmd_stop_discovery 
+
+mouse_store_remote_bdaddr:
+44a1 44ed401b bpatch patch1b_2 ,mem_patch1b 
+44a2 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+44a3 c4010000 rtnbit0 mouse_store_eeprom_flag 
+44a4 204047f0 call mouse_device_poweron_timer_init 
+44a5 d8e00002 arg mouse_store_eeprom_flag ,queue 
+44a6 2040460d call mouse_disable_function_flag 
+44a7 204044aa call mouse_check_device_addr 
+
+mouse_unplug_clean_bdaddr:
+44a8 204044bd call mouse_before_store_reconn_info 
+44a9 20204509 branch mouse_store_device_info_delay 
+
+mouse_check_device_addr:
+44aa 6fe080e7 fetch 1 ,mem_record_bt_mode 
+44ab c01a44ae beq rec_4_mode ,mouse_check_le_device_addr 
+44ac c019c4b1 beq rec_3_mode ,mouse_check_bt_device_addr 
+44ad 20600000 rtn 
+
+mouse_check_le_device_addr:
+44ae 67e0cb8a store 1 ,mem_device_addr_temp 
+44af 6fe30297 fetch 6 ,mem_le_plap 
+44b0 202044b3 branch mouse_check_bt_device_addr_common 
+
+mouse_check_bt_device_addr:
+44b1 67e0cb8a store 1 ,mem_device_addr_temp 
+44b2 6fe30040 fetch 6 ,mem_plap 
+
+mouse_check_bt_device_addr_common:
+44b3 67e34b8b store 6 ,mem_device_addr_temp + 1 
+44b4 6fe3cb8a fetch 7 ,mem_device_addr_temp 
+44b5 d8c04940 arg mem_device1_type ,contr 
+44b6 df200003 arg 3 ,loopcnt 
+
+mouse_check_device_addr_end:
+44b7 e8438006 ifetcht 7 ,contr 
+44b8 98467c00 isub temp ,null 
+44b9 2022c4d2 branch mouse_clean_addr ,zero 
+44ba 18c08c16 increase 22 ,contr 
+44bb c20044b7 loop mouse_check_device_addr_end 
+44bc 20600000 rtn 
+
+mouse_before_store_reconn_info:
+44bd da204940 arg mem_device1_type ,rega 
+44be 6fe0c93f fetch 1 ,mem_device_flag 
+44bf 1fe0ffff increase -1 ,pdata 
+44c0 1feffe1d mul32 pdata ,29 ,pdata 
+44c1 9a20a200 iadd rega ,rega 
+44c2 6fe080e7 fetch 1 ,mem_record_bt_mode 
+44c3 e7e08011 istore 1 ,rega 
+44c4 c01a44c7 beq rec_4_mode ,mouse_store_le_device 
+44c5 c019c4ce beq rec_3_mode ,mouse_store_bt_device 
+44c6 20600000 rtn 
+
+mouse_store_le_device:
+44c7 6fe30297 fetch 6 ,mem_le_plap 
+44c8 e7e30005 istore 6 ,contw 
+44c9 d8c04319 arg mem_le_ltk ,contr 
+44ca 20407c4c call memcpy16 
+44cb 6fe3437d fetch 6 ,mem_le_lap 
+44cc e7e30005 istore 6 ,contw 
+44cd 20600000 rtn 
+
+mouse_store_bt_device:
+44ce 6fe30040 fetch 6 ,mem_plap 
+44cf e7e30005 istore 6 ,contw 
+44d0 d8c041ce arg mem_link_key ,contr 
+44d1 20207c4c branch memcpy16 
+
+mouse_clean_addr:
+44d2 18c08dfa increase -6 ,contr 
+44d3 18c20a00 copy contr ,contw 
+44d4 684b4b8b fetcht 6 ,mem_device_addr_temp + 1 
+44d5 18408403 increase 3 ,temp 
+44d6 e0430005 istoret 6 ,contw 
+44d7 20600000 rtn 
+
+mouse_select_reconn_device:
+44d8 da204940 arg mem_device1_type ,rega 
+44d9 6fe0c93f fetch 1 ,mem_device_flag 
+44da c1000000 rtneq mode_24g_device 
+44db 1fe0ffff increase -1 ,pdata 
+44dc 1feffe1d mul32 pdata ,29 ,pdata 
+44dd 9a20a200 iadd rega ,rega 
+44de efe08011 ifetch 1 ,rega 
+44df 67e0c487 store 1 ,mem_xrecord_mode 
+44e0 c019c4e3 beq rec_3_mode ,mouse_load_bt_device 
+44e1 c01a44e8 beq rec_4_mode ,mouse_load_le_device 
+44e2 20600000 rtn 
+
+mouse_load_bt_device:
+44e3 efe30006 ifetch 6 ,contr 
+
+mouse_load_bt_device_end:
+44e4 67e341e0 store 6 ,mem_hci_plap 
+44e5 d8a041ce arg mem_link_key ,contw 
+44e6 20407c4c call memcpy16 
+44e7 20205f50 branch check_link_key_load 
+
+mouse_load_le_device:
+44e8 efe30006 ifetch 6 ,contr 
+
+mouse_load_le_device_end:
+44e9 67e341e0 store 6 ,mem_hci_plap 
+44ea d8a04319 arg mem_le_ltk ,contw 
+44eb 20407c4c call memcpy16 
+44ec efe30006 ifetch 6 ,contr 
+44ed 67e3437d store 6 ,mem_le_lap 
+44ee 20600000 rtn 
+
+mouse_app_initflag_check:
+44ef 6fe14997 fetch 2 ,mem_store_flag 
+44f0 d840aa55 arg eeprom_init_flag ,temp 
+44f1 98467c00 isub temp ,null 
+44f2 2022c4fd branch mouse_load_device_info ,zero 
+44f3 60494997 storet 2 ,mem_store_flag 
+44f4 20404502 call mouse_ble_init_address 
+44f5 6fe0cac6 fetch 1 ,mem_device_flag_temp 
+44f6 67e0c93f store 1 ,mem_device_flag 
+44f7 6fe0c920 fetch 1 ,mem_config_sensor_dpi 
+44f8 67e0c999 store 1 ,mem_mouse_dpi 
+44f9 6fe24895 fetch 4 ,mem_24g_fast_conn_addr 
+44fa 67e24899 store 4 ,mem_24g_receiver_addr 
+44fb 67e24843 store 4 ,mem_24g_addr 
+44fc 20600000 rtn 
+
+mouse_load_device_info:
+44fd 204044d8 call mouse_select_reconn_device 
+44fe 6fe2499a fetch 4 ,mem_mouse_24g_addr 
+44ff 67e24899 store 4 ,mem_24g_receiver_addr 
+4500 67e24843 store 4 ,mem_24g_addr 
+4501 20600000 rtn 
+
+mouse_ble_init_address:
+4502 6fe3437d fetch 6 ,mem_le_lap 
+4503 67e34957 store 6 ,mem_device1_locall_addr 
+4504 1fe0ff00 add pdata ,0x0100 ,pdata 
+4505 67e34974 store 6 ,mem_device2_locall_addr 
+4506 1fe0ff00 add pdata ,0x0100 ,pdata 
+4507 67e34991 store 6 ,mem_device3_locall_addr 
+4508 20600000 rtn 
+
+mouse_store_device_info_delay:
+4509 6fe0c9c7 fetch 1 ,mem_store_information_delay_timer_init 
+450a 67e0c9c6 store 1 ,mem_store_information_delay_timer 
+450b 20600000 rtn 
+
+mouse_store_device_info:
+450c 44edc01b bpatch patch1b_3 ,mem_patch1b 
+450d 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+450e c289c55a bbit1 mouse_enable_eeprom ,mouse_store_eeprom_device_info 
+450f c289451e bbit1 mouse_enable_flash ,mouse_store_flash_device_info 
+4510 20600000 rtn 
+
+mouse_load_flash_info_check:
+4511 20405bff call spid_init_flash 
+4512 20404525 call mouse_spid_flash_release_form_powerdown 
+4513 20404518 call mouse_information_flash_parameters 
+4514 20405c22 call spid_read_flash 
+4515 2040452c call mouse_spid_flash_powerdown 
+4516 204044ef call mouse_app_initflag_check 
+4517 20203e80 branch mouse_sensor_spi_init 
+
+mouse_information_flash_parameters:
+4518 580049bf setarg mem_mouse_information_end 
+4519 d840493f arg mem_mouse_information_start ,temp 
+451a 98460400 isub temp ,temp 
+451b 6fe1c9bf fetch 3 ,mem_flash_base 
+451c da20493f arg mem_mouse_information_start ,rega 
+451d 20600000 rtn 
+
+mouse_store_flash_device_info:
+451e 20405bff call spid_init_flash 
+451f 20404525 call mouse_spid_flash_release_form_powerdown 
+4520 2040453a call mouse_flash_erase_sector 
+4521 20404518 call mouse_information_flash_parameters 
+4522 2040453d call mouse_spid_write_flash 
+4523 2040452c call mouse_spid_flash_powerdown 
+4524 20203e80 branch mouse_sensor_spi_init 
+
+mouse_spid_flash_release_form_powerdown:
+4525 700964ab jam flash_command_release_from_powerdown ,mem_temp 
+
+mouse_spid_write_flash_cmd:
+4526 204060ca call delay_nop100 
+4527 20405c04 call spid_unlock_flash 
+4528 da2049c2 arg mem_write_flash_head_temp ,rega 
+4529 68488964 fetcht 1 ,mem_temp 
+452a 2040452e call mouse_spid_write_flash_cmd_common 
+452b 202060ca branch delay_nop100 
+
+mouse_spid_flash_powerdown:
+452c 700964b9 jam flash_command_powerdown ,mem_temp 
+452d 20204526 branch mouse_spid_write_flash_cmd 
+
+mouse_spid_write_flash_cmd_common:
+452e e0408011 istoret 1 ,rega 
+452f 1ff10400 rshift16 pdata ,temp 
+4530 e0408005 istoret 1 ,contw 
+4531 1fec8400 rshift8 pdata ,temp 
+4532 e0408005 istoret 1 ,contw 
+4533 e7e08005 istore 1 ,contw 
+4534 1a227e00 deposit rega 
+4535 67f1008a store 2 ,core_spid_txaddr 
+4536 58000000 setarg 0 
+4537 67f1008e store 2 ,core_spid_rxlen 
+4538 70800602 jam spid_start ,core_misc_ctrl 
+4539 20205bbe branch wait_spid_done 
+
+mouse_flash_erase_sector:
+453a 6fe1c9bf fetch 3 ,mem_flash_base 
+453b 67e1c4aa store 3 ,mem_spi_write_addr 
+453c 20205bda branch spid_flash_erase_sector + 2 
+
+mouse_spid_write_flash:
+453d 1fe22600 copy pdata ,regc 
+453e 1a227e00 copy rega ,pdata 
+453f 1fe0fffc increase -4 ,pdata 
+4540 1fe22400 copy pdata ,regb 
+4541 efe20012 ifetch 4 ,regb 
+4542 67e249c2 store 4 ,mem_write_flash_head_temp 
+4543 1a627e00 copy regc ,pdata 
+4544 20405c11 call spid_write_flash 
+4545 6fe249c2 fetch 4 ,mem_write_flash_head_temp 
+4546 e7e20012 istore 4 ,regb 
+4547 20600000 rtn 
+
+mouse_flash_power_down:
+4548 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4549 c4090000 rtnbit0 mouse_enable_flash 
+454a 2040452c call mouse_spid_flash_powerdown 
+454b 20405a2a call twspi_enable 
+454c 6848c4ba fetcht 1 ,mem_spi_cs_gpio 
+454d 20405f89 call gpio_out_inactive 
+454e 6848c4bf fetcht 1 ,mem_spi_hold_gpio 
+454f 20203e6f branch mouse_gpio_config_input_pd 
+
+mouse_load_eeprom_info_check:
+4550 20405c94 call iicd_read_init_pin 
+4551 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4552 2feffe09 isolate1 mouse_enable_2k_eeprom ,pdata 
+4553 2440dcae ncall clear_eeprom_size_2k ,true 
+4554 20404556 call mouse_eeprom_load_recon_info 
+4555 202044ef branch mouse_app_initflag_check 
+
+mouse_eeprom_load_recon_info:
+4556 d8400080 arg 128 ,temp 
+4557 da20493f arg mem_device_flag ,rega 
+4558 da400000 arg mouse_info_eeprom_offect ,regb 
+4559 20205ccb branch iicd_read_eep_data 
+
+mouse_store_eeprom_device_info:
+455a d8400080 arg 128 ,temp 
+455b da20493f arg mem_device_flag ,rega 
+455c da400000 arg mouse_info_eeprom_offect ,regb 
+455d 20205cbd branch iicd_write_protect_eep_data 
+
+mouse_store_eerpom_dpi:
+455e d8400001 arg 1 ,temp 
+455f da204999 arg mem_mouse_dpi ,rega 
+4560 da40005a arg mouse_dpi_eeprom_offect ,regb 
+4561 20205cbd branch iicd_write_protect_eep_data 
+
+mouse_load_eeprom_dpi:
+4562 d8400001 arg 1 ,temp 
+4563 da204999 arg mem_mouse_dpi ,rega 
+4564 da40005a arg mouse_dpi_eeprom_offect ,regb 
+4565 20205ccb branch iicd_read_eep_data 
+
+mouse_idle:
+4566 44ee401b bpatch patch1b_4 ,mem_patch1b 
+4567 204048ba call mouse_low_voltage_led_no_enter_lpm 
+4568 2040786c call ui_check_paring_button 
+4569 20403f42 call mouse_dpi_check 
+456a 2040456e call mouse_select_device_check 
+456b 204045b9 call mouse_check_select_device_by_switch 
+456c 204045ef call mouse_bt_button_check 
+456d 20203ea3 branch mouse_wheel_check 
+
+mouse_select_device_check:
+456e 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+456f c294c573 bbit1 mouse_enable_select_device_by_pb_button ,mouse_select_device_by_pb_button 
+4570 c29bc573 bbit1 mouse_enable_pb_button_long_press_disconvery ,mouse_select_device_by_pb_button 
+4571 20600000 rtn 
+
+mouse_select_device_by_pb_button_check_once:
+4572 704ba603 jam 0x03 ,mem_mouse_pbkey_press_status 
+
+mouse_select_device_by_pb_button:
+4573 6fe0c924 fetch 1 ,mem_config_select_device_button_gpio 
+4574 c17f8000 rtneq gpio_disable 
+4575 da200000 arg 0 ,rega 
+4576 704ba806 jam mouse_pb_key ,mem_mouse_key_temp 
+4577 6848c924 fetcht 1 ,mem_config_select_device_button_gpio 
+4578 20404583 call mouse_pb_button_check 
+4579 67e0cba6 store 1 ,mem_mouse_pbkey_press_status 
+457a 6fe0c923 fetch 1 ,mem_matrix_public_gpio 
+457b c07fc580 beq gpio_disable ,mouse_3io6key_pb_button_check_end 
+457c 20404083 call mouse_matrix_public_gpio_reset 
+
+mouse_select_device_by_pb_button_exit:
+457d 1a227e00 copy rega ,pdata 
+457e c28345a4 bbit1 mouse_pb_key ,mouse_select_device_button_down 
+457f 20204599 branch mouse_select_device_button_up 
+
+mouse_3io6key_pb_button_check_end:
+4580 6848c924 fetcht 1 ,mem_config_select_device_button_gpio 
+4581 20403e71 call mouse_gpio_config_input_pu 
+4582 2020457d branch mouse_select_device_by_pb_button_exit 
+
+mouse_pb_button_check:
+4583 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4584 c296c58f bbit1 mouse_enable_pb_button_connect_gnd ,mouse_pb_button_connect_gnd 
+4585 6fe0cba6 fetch 1 ,mem_mouse_pbkey_press_status 
+4586 1fe22600 copy pdata ,regc 
+4587 6fe0c923 fetch 1 ,mem_matrix_public_gpio 
+4588 c07fc0b0 beq gpio_disable ,mouse_3io6key_check 
+4589 6fe0cbac fetch 1 ,mem_mouse_ghost_flag 
+458a 243a458c nbranch mouse_select_device_by_pb_button_end ,blank 
+458b 20204591 branch mouse_pb_button_connect_matrix 
+
+mouse_select_device_by_pb_button_end:
+458c 704bb000 jam pb_button_state_up ,mem_select_device_button_statue 
+458d 704ba600 jam 0 ,mem_mouse_pbkey_press_status 
+458e 20600000 rtn 
+
+mouse_pb_button_connect_gnd:
+458f 6fe0cba6 fetch 1 ,mem_mouse_pbkey_press_status 
+4590 202040a2 branch mouse_check_key_connect_gnd 
+
+mouse_pb_button_connect_matrix:
+4591 20405f7d call gpio_get_bit 
+4592 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+4593 2020c58f branch mouse_pb_button_connect_gnd ,true 
+4594 6848c923 fetcht 1 ,mem_matrix_public_gpio 
+4595 20405f8d call gpio_out_active 
+4596 6848c924 fetcht 1 ,mem_config_select_device_button_gpio 
+4597 6fe0cba6 fetch 1 ,mem_mouse_pbkey_press_status 
+4598 202040a2 branch mouse_check_key_connect_gnd 
+
+mouse_select_device_button_up:
+4599 6fe0cbb0 fetch 1 ,mem_select_device_button_statue 
+459a c1000000 rtneq pb_button_state_up 
+459b 704bb000 jam pb_button_state_up ,mem_select_device_button_statue 
+459c 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+459d c39a0000 rtnbit1 mouse_enable_pb_button_short_press_enter_discovery 
+459e 6fe0cbad fetch 1 ,mem_bt_discovery_count 
+459f 1fe67c14 sub pdata ,20 ,null 
+45a0 244145ce ncall mouse_ready_reconnection_by_button ,positive 
+45a1 6fe0c796 fetch 1 ,mem_ui_button_timeout 
+45a2 67e0cbad store 1 ,mem_bt_discovery_count 
+45a3 20600000 rtn 
+
+mouse_select_device_button_down:
+45a4 204045b0 call mouse_select_device_ghost_check 
+45a5 20740000 rtn user 
+45a6 6fe0cbb0 fetch 1 ,mem_select_device_button_statue 
+45a7 c1008000 rtneq pb_button_state_down 
+45a8 704bb001 jam pb_button_state_down ,mem_select_device_button_statue 
+45a9 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+45aa c29a43ef bbit1 mouse_enable_pb_button_short_press_enter_discovery ,mouse_long_button_bt_discovery 
+45ab 6fe0cb89 fetch 1 ,mem_mouse_direct_timer 
+45ac 207a0000 rtn blank 
+45ad 6fe0c90a fetch 1 ,mem_mouse_direct_timeout 
+45ae 67e0cb89 store 1 ,mem_mouse_direct_timer 
+45af 20600000 rtn 
+
+mouse_select_device_ghost_check:
+45b0 78547c00 disable user 
+45b1 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+45b2 c3968000 rtnbit1 mouse_enable_pb_button_connect_gnd 
+45b3 6fe0cba0 fetch 1 ,mem_mouse_lkey_press_status 
+45b4 207a0000 rtn blank 
+45b5 6fe0cba1 fetch 1 ,mem_mouse_rkey_press_status 
+45b6 207a0000 rtn blank 
+45b7 78347c00 enable user 
+45b8 20600000 rtn 
+
+mouse_check_select_device_by_switch:
+45b9 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+45ba c29545bd bbit1 mouse_enable_select_device_by_switch_gpio ,mouse_check_select_device_by_switch_gpio 
+45bb c295bdb7 bbit1 mouse_enable_select_device_by_switch_adc ,mouse_adc_read 
+45bc 20600000 rtn 
+
+mouse_check_select_device_by_switch_gpio:
+45bd 6848c927 fetcht 1 ,mem_device_switch_gpio 
+45be 20403e71 call mouse_gpio_config_input_pu 
+45bf 6848c927 fetcht 1 ,mem_device_switch_gpio 
+45c0 20405f7d call gpio_get_bit 
+45c1 2020c5c6 branch mouse_check_select_24gdevice ,true 
+
+mouse_select_btdevice:
+45c2 6fe0c93f fetch 1 ,mem_device_flag 
+45c3 c1008000 rtneq mode_bt_device1 
+45c4 70493f01 jam mode_bt_device1 ,mem_device_flag 
+45c5 20204231 branch mouse_stop_bluetooth_mode 
+
+mouse_check_select_24gdevice:
+45c6 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+45c7 c315c5ca bbit0 mouse_enable_select_device_by_switch_adc ,mouse_check_select_24g_device 
+45c8 6fe348f7 fetch 6 ,mem_mouse_vdd_switch_gnd_full_vol 
+45c9 67e348eb store 6 ,mem_mouse_vdd_calculate_set 
+
+mouse_check_select_24g_device:
+45ca 6fe0c93f fetch 1 ,mem_device_flag 
+45cb c1000000 rtneq mode_24g_device 
+45cc 70493f00 jam mode_24g_device ,mem_device_flag 
+45cd 2020470c branch mouse_24g_stop 
+
+mouse_ready_reconnection_by_button:
+45ce 44eec01b bpatch patch1b_5 ,mem_patch1b 
+45cf 6fe0cbc6 fetch 1 ,mem_device_number 
+45d0 c1008000 rtneq 1 
+45d1 204045db call mouse_select_device_number 
+45d2 6048c93f storet 1 ,mem_device_flag 
+
+mouse_store_device_number_before_reset:
+45d3 7041cd00 jam 0 ,mem_link_key_exists 
+45d4 204045f3 call mouse_select_device_enable 
+45d5 20404231 call mouse_stop_bluetooth_mode 
+45d6 204045f5 call mouse_select_device_disable 
+45d7 704ad701 jam 1 ,mem_mouse_need_soft_reset 
+45d8 20204509 branch mouse_store_device_info_delay 
+
+mouse_soft_reset:
+45d9 204045f3 call mouse_select_device_enable 
+45da 20205c7b branch soft_reset_chip 
+
+mouse_select_device_number:
+45db 6848c93f fetcht 1 ,mem_device_flag 
+45dc 18408401 increase 1 ,temp 
+45dd 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+45de c288c5e2 bbit1 mouse_enable_24g ,mouse_select_device_number_24g 
+45df 18467c02 sub temp ,2 ,null 
+45e0 244145e9 ncall mouse_select_device_count_clean_bt ,positive 
+45e1 20600000 rtn 
+
+mouse_select_device_number_24g:
+45e2 6fe0cbc6 fetch 1 ,mem_device_number 
+45e3 1fe0ffff increase -1 ,pdata 
+45e4 98467c00 isub temp ,null 
+45e5 244145e7 ncall mouse_select_device_count_clean_24g ,positive 
+45e6 20600000 rtn 
+
+mouse_select_device_count_clean_24g:
+45e7 d8400000 arg 0 ,temp 
+45e8 20600000 rtn 
+
+mouse_select_device_count_clean_bt:
+45e9 d8400001 arg 1 ,temp 
+45ea 20600000 rtn 
+
+mouse_store_device_number2eeprom:
+45eb d8400001 arg 1 ,temp 
+45ec da20493f arg mem_device_flag ,rega 
+45ed da400000 arg 0 ,regb 
+45ee 20205cbd branch iicd_write_protect_eep_data 
+
+mouse_bt_button_check:
+45ef 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+45f0 c41a0000 rtnbit0 mouse_enable_pb_button_short_press_enter_discovery 
+45f1 20404573 call mouse_select_device_by_pb_button 
+45f2 20600000 rtn 
+
+mouse_select_device_enable:
+45f3 d8e00000 arg mouse_select_device_flag ,queue 
+45f4 20204609 branch mouse_enable_function_flag 
+
+mouse_select_device_disable:
+45f5 d8e00000 arg mouse_select_device_flag ,queue 
+45f6 2020460d branch mouse_disable_function_flag 
+
+mouse_bt_cannel_reconn_enable:
+45f7 d8e00003 arg mouse_bt_cannel_reconn_flag ,queue 
+45f8 20204609 branch mouse_enable_function_flag 
+
+mouse_bt_cannel_reconn_disable:
+45f9 d8e00003 arg mouse_bt_cannel_reconn_flag ,queue 
+45fa 2020460d branch mouse_disable_function_flag 
+
+mouse_bt_discovery_button_down_enable:
+45fb d8e00005 arg mouse_bt_discovery_button_down_flag ,queue 
+45fc 20204609 branch mouse_enable_function_flag 
+
+mouse_bt_discovery_button_down_disable:
+45fd d8e00005 arg mouse_bt_discovery_button_down_flag ,queue 
+45fe 2020460d branch mouse_disable_function_flag 
+
+mouse_adc_read_enable:
+45ff d8e00014 arg mouse_enable_adc ,queue 
+4600 20204609 branch mouse_enable_function_flag 
+
+mouse_24g_set_250hz:
+4601 d8e00018 arg mouse_enable_24g_250hz ,queue 
+4602 20204609 branch mouse_enable_function_flag 
+
+mouse_24g_search_dongle_enable:
+4603 d8e00016 arg mouse_enable_24g_search_dongle ,queue 
+4604 20204609 branch mouse_enable_function_flag 
+
+mouse_16m_enable:
+4605 d8e0000c arg mouse_enable_16m ,queue 
+4606 20204609 branch mouse_enable_function_flag 
+
+mouse_dpi_4level_enable:
+4607 d8e0001c arg mouse_enable_dpi_level_4 ,queue 
+4608 20204609 branch mouse_enable_function_flag 
+
+mouse_enable_function_flag:
+4609 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+460a f9207e00 qset1 pdata 
+460b 67e44bbd store mouse_flag_len ,mem_mouse_flag 
+460c 20600000 rtn 
+
+mouse_disable_function_flag:
+460d 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+460e f93ffe00 qset0 pdata 
+460f 67e44bbd store mouse_flag_len ,mem_mouse_flag 
+4610 20600000 rtn 
+
+mouse_customer_key_enable:
+4611 d8e00015 arg mouse_enable_keyboard ,queue 
+4612 20404609 call mouse_enable_function_flag 
+4613 58000000 setarg 0 
+4614 67e44bde store 8 ,mem_customer_key_press 
+4615 67e44be7 store 8 ,mem_customer_key_release 
+4616 6fe0c912 fetch 1 ,mem_mouse_enable_flag 
+4617 1fe17ec0 and pdata ,0xc0 ,pdata 
+4618 c020461e beq 0x40 ,mouse_customer_key_ctrl_alt_a 
+4619 c0404620 beq 0x80 ,mouse_customer_ac_home 
+461a c0604625 beq 0xc0 ,mouse_customer_key_play 
+461b 58070008 setarg 0x070008 
+
+mouse_customer_standrad_key_set:
+461c 67e44bdf store 8 ,mem_customer_key_press + 1 
+461d 20600000 rtn 
+
+mouse_customer_key_ctrl_alt_a:
+461e 58040005 setarg 0x040005 
+461f 2020461c branch mouse_customer_standrad_key_set 
+
+mouse_customer_ac_home:
+4620 58022303 setarg 0x022303 
+
+mouse_customer_media_key_set:
+4621 67e44bde store 8 ,mem_customer_key_press 
+4622 58000003 setarg 0x03 
+4623 67e44be7 store 8 ,mem_customer_key_release 
+4624 20600000 rtn 
+
+mouse_customer_key_play:
+4625 5800cd03 setarg 0x00cd03 
+4626 20204621 branch mouse_customer_media_key_set 
+
+mouse_polling_device:
+4627 44ef401b bpatch patch1b_6 ,mem_patch1b 
+4628 6fe0cac2 fetch 1 ,mem_reconn_times 
+4629 1fe0ffff increase -1 ,pdata 
+462a 67e0cac2 store 1 ,mem_reconn_times 
+462b 6848c93f fetcht 1 ,mem_device_flag 
+462c 18467c01 sub temp ,1 ,null 
+462d 2442c5db ncall mouse_select_device_number ,zero 
+462e 6048c93f storet 1 ,mem_device_flag 
+462f 7041cd00 jam 0 ,mem_link_key_exists 
+4630 204045eb call mouse_store_device_number2eeprom 
+4631 204044bd call mouse_before_store_reconn_info 
+4632 20203cf2 branch mouse_start_reconnect_device 
+
+mouse_drawing_optima:
+4633 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4634 c41c0000 rtnbit0 mouse_enable_smoother 
+4635 6fe248d9 fetch 4 ,mem_mouse_x 
+4636 207a0000 rtn blank 
+4637 204046d6 call mouse_data_abs_check 
+4638 58000003 setarg 0x03 
+4639 204046cc call mouse_pdata_greater_than_check 
+463a 205a46c8 call mouse_disable_asm ,blank 
+463b 245a46ca ncall mouse_enable_asm ,blank 
+463c 58000002 setarg 0x02 
+463d 204046d1 call mouse_data_less_than_check 
+463e 205a46c8 call mouse_disable_asm ,blank 
+463f 6fe0c9d0 fetch 1 ,mem_mouse_asm_flag 
+4640 c000c646 beq 1 ,mouse_drawing_optima_modify 
+
+mouse_drawing_optima_init:
+4641 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4642 c41c0000 rtnbit0 mouse_enable_smoother 
+4643 df200005 arg 5 ,loopcnt 
+4644 d8a049d0 arg mem_mouse_asm_flag ,contw 
+4645 20207c68 branch clear_mem 
+
+mouse_drawing_optima_modify:
+4646 2040465a call mouse_drawing_optima_xy_offset_modify 
+4647 6fe149d1 fetch 2 ,mem_mouse_x_pre 
+4648 67e109f8 store 2 ,mem_data_pre 
+4649 6fe148d9 fetch 2 ,mem_mouse_x 
+464a 67e109fa store 2 ,mem_data_current 
+464b 20404692 call mouse_drawing_optima_data_x 
+464c 6fe109f8 fetch 2 ,mem_data_pre 
+464d 67e149d1 store 2 ,mem_mouse_x_pre 
+464e 6fe109fa fetch 2 ,mem_data_current 
+464f 67e148d9 store 2 ,mem_mouse_x 
+4650 6fe149d3 fetch 2 ,mem_mouse_y_pre 
+4651 67e109f8 store 2 ,mem_data_pre 
+4652 6fe148db fetch 2 ,mem_mouse_y 
+4653 67e109fa store 2 ,mem_data_current 
+4654 2040469a call mouse_drawing_optima_data_y 
+4655 6fe109f8 fetch 2 ,mem_data_pre 
+4656 67e149d3 store 2 ,mem_mouse_y_pre 
+4657 6fe109fa fetch 2 ,mem_data_current 
+4658 67e148db store 2 ,mem_mouse_y 
+4659 20600000 rtn 
+
+mouse_drawing_optima_xy_offset_modify:
+465a 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+465b c41c8000 rtnbit0 mouse_enable_xy_offset 
+465c 6fe149d1 fetch 2 ,mem_mouse_x_pre 
+465d 67e109ff store 2 ,mem_data_value 
+465e 2040466d call mouse_pre_xy_data_judge 
+465f 67e149d1 store 2 ,mem_mouse_x_pre 
+4660 6fe148d9 fetch 2 ,mem_mouse_x 
+4661 67e109ff store 2 ,mem_data_value 
+4662 2040467b call mouse_current_xy_data_judge 
+4663 67e148d9 store 2 ,mem_mouse_x 
+4664 6fe149d3 fetch 2 ,mem_mouse_y_pre 
+4665 67e109ff store 2 ,mem_data_value 
+4666 2040466d call mouse_pre_xy_data_judge 
+4667 67e149d3 store 2 ,mem_mouse_y_pre 
+4668 6fe148db fetch 2 ,mem_mouse_y 
+4669 67e109ff store 2 ,mem_data_value 
+466a 2040467b call mouse_current_xy_data_judge 
+466b 67e148db store 2 ,mem_mouse_y 
+466c 20600000 rtn 
+
+mouse_pre_xy_data_judge:
+466d 6fe08a00 fetch 1 ,mem_data_value + 1 
+466e 203a4670 branch mouse_pre_xy_pdata_offset ,blank 
+466f 20204675 branch mouse_pre_xy_ndata_offset 
+
+mouse_pre_xy_pdata_offset:
+4670 6fe089ff fetch 1 ,mem_data_value 
+4671 20404688 call mouse_pre_xy_get_0_4_times 
+4672 67e089ff store 1 ,mem_data_value 
+
+mouse_xy_data_offset_new:
+4673 6fe109ff fetch 2 ,mem_data_value 
+4674 20600000 rtn 
+
+mouse_pre_xy_ndata_offset:
+4675 6fe089ff fetch 1 ,mem_data_value 
+4676 204046c4 call mouse_pdata_invert 
+4677 20404688 call mouse_pre_xy_get_0_4_times 
+4678 205a7d9c call disable_blank ,blank 
+4679 204046c0 call mouse_pdata_get_new_value 
+467a 20204673 branch mouse_xy_data_offset_new 
+
+mouse_current_xy_data_judge:
+467b 6fe08a00 fetch 1 ,mem_data_value + 1 
+467c 203a467e branch mouse_current_xy_pdata_offset ,blank 
+467d 20204682 branch mouse_current_xy_ndata_offset 
+
+mouse_current_xy_pdata_offset:
+467e 6fe089ff fetch 1 ,mem_data_value 
+467f 2040468d call mouse_current_xy_get_0_6_times 
+4680 67e089ff store 1 ,mem_data_value 
+4681 20204673 branch mouse_xy_data_offset_new 
+
+mouse_current_xy_ndata_offset:
+4682 6fe089ff fetch 1 ,mem_data_value 
+4683 204046c4 call mouse_pdata_invert 
+4684 2040468d call mouse_current_xy_get_0_6_times 
+4685 205a7d9c call disable_blank ,blank 
+4686 204046c0 call mouse_pdata_get_new_value 
+4687 20204673 branch mouse_xy_data_offset_new 
+
+mouse_pre_xy_get_0_4_times:
+4688 1feffe04 mul32 pdata ,4 ,pdata 
+4689 1fe6fc05 div pdata ,5 
+468a 20407d31 call wait_div_end 
+468b 1807fe00 quotient pdata 
+468c 20600000 rtn 
+
+mouse_current_xy_get_0_6_times:
+468d 1feffe0c mul32 pdata ,12 ,pdata 
+468e 1fe6fc0a div pdata ,10 
+468f 20407d31 call wait_div_end 
+4690 1807fe00 quotient pdata 
+4691 20600000 rtn 
+
+mouse_drawing_optima_data_x:
+4692 6fe109f8 fetch 2 ,mem_data_pre 
+4693 684909fa fetcht 2 ,mem_data_current 
+4694 9840fe00 iadd temp ,pdata 
+4695 6848c9d5 fetcht 1 ,mem_mouse_data_xtemp 
+4696 9840fe00 iadd temp ,pdata 
+4697 1fe10401 and pdata ,0x01 ,temp 
+4698 6048c9d5 storet 1 ,mem_mouse_data_xtemp 
+4699 202046a2 branch mouse_drawing_optima_data 
+
+mouse_drawing_optima_data_y:
+469a 6fe109f8 fetch 2 ,mem_data_pre 
+469b 684909fa fetcht 2 ,mem_data_current 
+469c 9840fe00 iadd temp ,pdata 
+469d 6848c9d6 fetcht 1 ,mem_mouse_data_ytemp 
+469e 9840fe00 iadd temp ,pdata 
+469f 1fe10401 and pdata ,0x01 ,temp 
+46a0 6048c9d6 storet 1 ,mem_mouse_data_ytemp 
+46a1 202046a2 branch mouse_drawing_optima_data 
+
+mouse_drawing_optima_data:
+46a2 67e189fc store 3 ,mem_data_sum 
+46a3 2feffe10 isolate1 16 ,pdata 
+46a4 2020c6ac branch mouse_data_sum_overflow ,true 
+46a5 6fe089fd fetch 1 ,mem_data_sum + 1 
+46a6 c07fc6b3 beq 0xff ,mouse_data_sum_n 
+46a7 6fe089fc fetch 1 ,mem_data_sum 
+
+mouse_data_store_pre:
+46a8 1fe37e00 rshift pdata ,pdata 
+46a9 67e109f8 store 2 ,mem_data_pre 
+46aa 67e109fa store 2 ,mem_data_current 
+46ab 20600000 rtn 
+
+mouse_data_sum_overflow:
+46ac 6fe089fd fetch 1 ,mem_data_sum + 1 
+46ad c00046b0 beq 0 ,mouse_data_sum_overflow_p 
+46ae 6fe189fc fetch 3 ,mem_data_sum 
+46af 202046a8 branch mouse_data_store_pre 
+
+mouse_data_sum_overflow_p:
+46b0 7009fe00 jam 0 ,mem_data_sum + 2 
+46b1 6fe089fc fetch 1 ,mem_data_sum 
+46b2 202046a8 branch mouse_data_store_pre 
+
+mouse_data_sum_n:
+46b3 6fe089fc fetch 1 ,mem_data_sum 
+46b4 204046be call mouse_pdata_get_half 
+46b5 67e089f8 store 1 ,mem_data_pre 
+46b6 67e089fa store 1 ,mem_data_current 
+46b7 203a46bc branch mouse_data_zero ,blank 
+46b8 580000ff setarg 0xff 
+
+mouse_data_set_direction:
+46b9 67e089f9 store 1 ,mem_data_pre + 1 
+46ba 67e089fb store 1 ,mem_data_current + 1 
+46bb 20600000 rtn 
+
+mouse_data_zero:
+46bc 58000000 setarg 0 
+46bd 202046b9 branch mouse_data_set_direction 
+
+mouse_pdata_get_half:
+46be 204046c4 call mouse_pdata_invert 
+46bf 1fe37e00 rshift pdata ,pdata 
+
+mouse_pdata_get_new_value:
+46c0 204046c5 call mouse_rega_in_out 
+46c1 1fe67e00 sub pdata ,0 ,pdata 
+46c2 67e089ff store 1 ,mem_data_value 
+46c3 20600000 rtn 
+
+mouse_pdata_invert:
+46c4 1fe67e00 sub pdata ,0 ,pdata 
+
+mouse_rega_in_out:
+46c5 67e08970 store 1 ,mem_rega 
+46c6 6fe08970 fetch 1 ,mem_rega 
+46c7 20600000 rtn 
+
+mouse_disable_asm:
+46c8 7049d000 jam 0 ,mem_mouse_asm_flag 
+46c9 20600000 rtn 
+
+mouse_enable_asm:
+46ca 7049d001 jam 1 ,mem_mouse_asm_flag 
+46cb 20600000 rtn 
+
+mouse_pdata_greater_than_check:
+46cc 9a267c00 isub rega ,null 
+46cd 24217d9c nbranch disable_blank ,positive 
+46ce 9a467c00 isub regb ,null 
+46cf 24217d9c nbranch disable_blank ,positive 
+46d0 20207d9e branch enable_blank 
+
+mouse_data_less_than_check:
+46d1 9a267c00 isub rega ,null 
+46d2 24610000 nrtn positive 
+46d3 9a467c00 isub regb ,null 
+46d4 24610000 nrtn positive 
+46d5 20207d9e branch enable_blank 
+
+mouse_data_abs_check:
+46d6 6fe148d9 fetch 2 ,mem_mouse_x 
+46d7 204046dd call mouse_data_abs 
+46d8 1fe22200 copy pdata ,rega 
+46d9 6fe148db fetch 2 ,mem_mouse_y 
+46da 204046dd call mouse_data_abs 
+46db 1fe22400 copy pdata ,regb 
+46dc 20600000 rtn 
+
+mouse_data_abs:
+46dd 67e109fa store 2 ,mem_data_current 
+46de 6fe089fb fetch 1 ,mem_data_current + 1 
+46df c07fc6e3 beq 0xff ,mouse_data_reversal 
+46e0 6fe089fa fetch 1 ,mem_data_current 
+
+mouse_data_abs_store:
+46e1 1fe17eff and_into 0xff ,pdata 
+46e2 20600000 rtn 
+
+mouse_data_reversal:
+46e3 6fe109fa fetch 2 ,mem_data_current 
+46e4 1fe67e00 sub pdata ,0 ,pdata 
+46e5 202046e1 branch mouse_data_abs_store 
+
+mouse_24g_long_sleep_param_update_timer:
+46e6 da6048cc arg mem_24g_long_sleep_param_update_timer ,regc 
+46e7 da4046e9 arg mouse_24g_long_sleep_normal_param ,regb 
+46e8 202031cf branch timer_single_step 
+
+mouse_24g_long_sleep_normal_param:
+46e9 6fe248c0 fetch 4 ,mem_24g_long_sleep_set1 
+46ea 67e24863 store 4 ,mem_24g_enter_hibernate 
+46eb 704ac001 jam 1 ,mem_mouse_long_mult_flag 
+46ec 20600000 rtn 
+
+mouse_24g_long_sleep_set:
+46ed 6fe0cbf4 fetch 1 ,mem_24g_long_sleep_set_level 
+46ee c00046f5 beq 0x00 ,mouse_24g_long_sleep_set_30ms 
+46ef c000c6f7 beq 0x01 ,mouse_24g_long_sleep_set_50ms 
+46f0 c00146f2 beq 0x02 ,mouse_24g_long_sleep_set_80ms 
+46f1 c001c6f9 beq 0x03 ,mouse_24g_long_sleep_set_100ms 
+
+mouse_24g_long_sleep_set_80ms:
+46f2 580ea600 setarg 0x0ea600 
+
+mouse_24g_long_sleep_set_end:
+46f3 67e248c0 store 4 ,mem_24g_long_sleep_set1 
+46f4 20600000 rtn 
+
+mouse_24g_long_sleep_set_30ms:
+46f5 5805e740 setarg 0x05e740 
+46f6 202046f3 branch mouse_24g_long_sleep_set_end 
+
+mouse_24g_long_sleep_set_50ms:
+46f7 580927c0 setarg 0x0927c0 
+46f8 202046f3 branch mouse_24g_long_sleep_set_end 
+
+mouse_24g_long_sleep_set_100ms:
+46f9 58124f80 setarg 0x124f80 
+46fa 202046f3 branch mouse_24g_long_sleep_set_end 
+
+mouse_24g_hibernate_set:
+46fb 7048ad00 jam 0 ,mem_24g_attempt_fail_flag 
+46fc 2040263c call g24_transmit_next_packet 
+46fd 5fffffff setarg -1 
+46fe 67e24863 store 4 ,mem_24g_enter_hibernate 
+46ff 58000000 setarg 0 
+4700 67e3c8d8 store 7 ,mem_mouse_key 
+4701 704bf301 jam 1 ,mem_sensor_shutdown_flag 
+4702 20404157 call mouse_sensor_powerdown 
+4703 20403d40 call mouse_setgpio_hibernate 
+4704 2020269e branch g24_long_sleep 
+
+mouse_wakeup_24g:
+4705 6fe0cbf3 fetch 1 ,mem_sensor_shutdown_flag 
+4706 245a40c5 ncall mouse_init_sensor_wakeup ,blank 
+4707 704bf300 jam 0 ,mem_sensor_shutdown_flag 
+4708 2020263b branch g24_transmit_no_ack 
+
+mouse_24g_transmit_start:
+4709 6fe0cbf3 fetch 1 ,mem_sensor_shutdown_flag 
+470a 243a2616 nbranch g24_short_sleep ,blank 
+470b 20202612 branch g24_transmit_start_next 
+
+mouse_24g_stop:
+470c 793f8026 set0 mark_24g ,mark 
+470d 7048a900 jam state_24g_stop ,mem_24g_conn_sm 
+470e d8e00001 arg mouse_24g_pairing_flag ,queue 
+470f 2020460d branch mouse_disable_function_flag 
+
+mouse_24g_start_mode:
+4710 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4711 c308c71d bbit0 mouse_enable_24g ,mouse_24g_mode_setup_error 
+4712 20403cfe call mouse_wakeup_from_power_check 
+4713 20344720 branch mouse_24g_reconn_dongle_start ,user 
+4714 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4715 c2984726 bbit1 mouse_enable_auto_24g_paring ,mouse_24g_reconn_general_dongle 
+4716 c318c726 bbit0 mouse_enable_24g_power_on_pairing ,mouse_24g_reconn_general_dongle 
+4717 2040402b call mouse_key_check_once 
+4718 1fe17e07 and pdata ,0x07 ,pdata 
+4719 6848cbdd fetcht 1 ,mem_mouse_commbination_key_24g 
+471a 98467c00 isub temp ,null 
+471b 2022c741 branch mouse_24g_start_pair_mode ,zero 
+471c 20204726 branch mouse_24g_reconn_general_dongle 
+
+mouse_24g_mode_setup_error:
+471d 6fe0cac2 fetch 1 ,mem_reconn_times 
+471e 243a4627 nbranch mouse_polling_device ,blank 
+471f 20600000 rtn 
+
+mouse_24g_reconn_dongle_start:
+4720 6fe1488d fetch 2 ,mem_24g_reconn_timeout_init 
+4721 67e1488f store 2 ,mem_24g_reconn_timeout 
+4722 70489303 jam receiver_and_3_0_addr ,mem_24g_reconn_type 
+4723 20202545 branch g24_reconn_start 
+
+mouse_24g_first_start_auto_pair_mode:
+4724 20403cfe call mouse_wakeup_from_power_check 
+4725 20344730 branch mouse_24g_first_start_reconn ,user 
+
+mouse_24g_reconn_general_dongle:
+4726 70493f00 jam mode_24g_device ,mem_device_flag 
+4727 6fe14bcc fetch 2 ,mem_mouse_24g_power_on_fast_conn_timer 
+4728 67e1488f store 2 ,mem_24g_reconn_timeout 
+4729 70489302 jam fast_conn_and_3_0_addr ,mem_24g_reconn_type 
+472a 20202545 branch g24_reconn_start 
+
+mouse_24g_start_auto_pair:
+472b 204047f6 call mouse_discover_setting_led_gpio 
+472c 6fe14889 fetch 2 ,mem_24g_pair_timeout_init 
+472d 67e1488f store 2 ,mem_24g_reconn_timeout 
+472e 70489304 jam pair_and_3_0_addr ,mem_24g_reconn_type 
+472f 20202545 branch g24_reconn_start 
+
+mouse_24g_first_start_reconn:
+4730 6fe0c93f fetch 1 ,mem_device_flag 
+4731 c0004720 beq mode_24g_device ,mouse_24g_reconn_dongle_start 
+4732 2040422f call mouse_bluetooth_fast_conn_disable 
+4733 20204734 branch mouse_24g_first_bluetooth_reconnect 
+
+mouse_24g_first_bluetooth_reconnect:
+4734 2040470c call mouse_24g_stop 
+4735 20404838 call mouse_device_led_all_off 
+
+mouse_check_bt_reconn_target:
+4736 70493f01 jam mode_bt_device1 ,mem_device_flag 
+4737 204044d8 call mouse_select_reconn_device 
+4738 20203cf2 branch mouse_start_reconnect_device 
+
+mouse_24g_first_bb_event_reconn_timeout:
+4739 20403cfe call mouse_wakeup_from_power_check 
+473a 20343d30 branch mouse_app_enter_hibernate ,user 
+473b 2020446e branch mouse_start_discovery 
+
+mouse_24g_first_store_reconn_info:
+473c 20403cfe call mouse_wakeup_from_power_check 
+473d 20740000 rtn user 
+473e 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+473f c297c509 bbit1 mouse_enable_24g_first_auto_pairing ,mouse_store_device_info_delay 
+4740 20600000 rtn 
+
+mouse_24g_start_pair_mode:
+4741 d8e00001 arg mouse_24g_pairing_flag ,queue 
+4742 20404609 call mouse_enable_function_flag 
+4743 58000000 setarg 0 
+4744 67e1488f store 2 ,mem_24g_reconn_timeout 
+4745 20404491 call mouse_stop_discovery 
+4746 204048b8 call mouse_low_voltage_led_blink_disable 
+4747 204047f6 call mouse_discover_setting_led_gpio 
+4748 70483d01 jam type_ms ,mem_24g_data_type 
+4749 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+474a c30aa2c5 bbit0 mouse_enable_keyboard ,g24_pair_start 
+474b 70483d02 jam type_kb ,mem_24g_data_type 
+474c 202022c5 branch g24_pair_start 
+
+mouse_24g_attempt_fail:
+474d 6fe0c8ad fetch 1 ,mem_24g_attempt_fail_flag 
+474e 243a46fb nbranch mouse_24g_hibernate_set ,blank 
+474f 6fe0c893 fetch 1 ,mem_24g_reconn_type 
+4750 c001475a beq fast_conn_and_3_0_addr ,mouse_24g_fast_conn_attempt_fail 
+4751 c002475e beq pair_and_3_0_addr ,mouse_24g_auto_pair_attempt_fail 
+4752 c001c763 beq receiver_and_3_0_addr ,mouse_reconn_dongle_attempt_fail 
+
+mouse_24g_attempt_fail_enter_hibernate:
+4753 2040483c call mouse_device_led_off 
+4754 2040470c call mouse_24g_stop 
+4755 6fe0cac2 fetch 1 ,mem_reconn_times 
+4756 243a4627 nbranch mouse_polling_device ,blank 
+4757 6fe0c93f fetch 1 ,mem_device_flag 
+4758 c0003d30 beq mode_24g_device ,mouse_app_enter_hibernate 
+4759 20600000 rtn 
+
+mouse_24g_fast_conn_attempt_fail:
+475a 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+475b c297c72b bbit1 mouse_enable_24g_first_auto_pairing ,mouse_24g_start_auto_pair 
+475c c298472b bbit1 mouse_enable_auto_24g_paring ,mouse_24g_start_auto_pair 
+475d 20204720 branch mouse_24g_reconn_dongle_start 
+
+mouse_24g_auto_pair_attempt_fail:
+475e 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+475f c317c753 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+4760 6fe0cbc6 fetch 1 ,mem_device_number 
+4761 c000c753 beq 1 ,mouse_24g_attempt_fail_enter_hibernate 
+4762 20204734 branch mouse_24g_first_bluetooth_reconnect 
+
+mouse_reconn_dongle_attempt_fail:
+4763 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4764 c317c753 bbit0 mouse_enable_24g_first_auto_pairing ,mouse_24g_attempt_fail_enter_hibernate 
+4765 c289c753 bbit1 mouse_enable_eeprom ,mouse_24g_attempt_fail_enter_hibernate 
+4766 c2894753 bbit1 mouse_enable_flash ,mouse_24g_attempt_fail_enter_hibernate 
+4767 2020472c branch mouse_24g_start_auto_pair + 1 
+
+mouse_24g_attempt_success:
+4768 204041e5 call mouse_init_sensor_reset 
+4769 704ac000 jam 0 ,mem_mouse_long_mult_flag 
+476a 7048a900 jam 0 ,mem_24g_conn_sm 
+476b 70489300 jam 0 ,mem_24g_reconn_type 
+476c 6fe24899 fetch 4 ,mem_24g_receiver_addr 
+476d 6fe24895 fetch 4 ,mem_24g_fast_conn_addr 
+476e 98467c00 isub temp ,null 
+476f 20628000 rtn zero 
+4770 2020473c branch mouse_24g_first_store_reconn_info 
+
+mouse_24g_pairing_complete:
+4771 d8e00001 arg mouse_24g_pairing_flag ,queue 
+4772 2040460d call mouse_disable_function_flag 
+4773 204047f0 call mouse_device_poweron_timer_init 
+4774 58000000 setarg 0 
+4775 67e1488b store 2 ,mem_24g_pair_timeout 
+4776 67e1488f store 2 ,mem_24g_reconn_timeout 
+4777 67e0c8a9 store 1 ,mem_24g_conn_sm 
+4778 67e0c9cf store 1 ,mem_mouse_move_flag 
+4779 67e0c893 store 1 ,mem_24g_reconn_type 
+477a 204041e5 call mouse_init_sensor_reset 
+477b 204041f6 call mouse_read_sensor_common 
+477c 6fe24843 fetch 4 ,mem_24g_addr 
+477d 67e24899 store 4 ,mem_24g_receiver_addr 
+477e 67e2499a store 4 ,mem_mouse_24g_addr 
+477f 20204509 branch mouse_store_device_info_delay 
+
+mouse_24g_package_data:
+4780 c6930000 rtnmark0 mark_24g 
+4781 20403e8b call mouse_motion 
+4782 24740000 nrtn user 
+4783 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4784 c30ac787 bbit0 mouse_enable_keyboard ,mouse_24g_mouse_package_data 
+4785 6fe0cb9d fetch 1 ,mem_customer_key 
+4786 243a479e nbranch mouse_24g_keyboard_package_data ,blank 
+
+mouse_24g_mouse_package_data:
+4787 204041e6 call mouse_data_xy_release 
+4788 6fe0c83d fetch 1 ,mem_24g_data_type 
+4789 c280c796 bbit1 1 ,mouse_24g_mouse_package_data_now 
+478a 6848c7ce fetcht 1 ,mem_24g_txbuf + 1 
+478b 6fe0c8d8 fetch 1 ,mem_mouse_key 
+478c 9841fe00 ior temp ,pdata 
+478d 67e0c8d8 store 1 ,mem_mouse_key 
+478e 6848c7d3 fetcht 1 ,mem_24g_txbuf + 6 
+478f 6fe0c8dd fetch 1 ,mem_mouse_z 
+4790 9840fe00 iadd temp ,pdata 
+4791 67e0c8dd store 1 ,mem_mouse_z 
+4792 6848c7d4 fetcht 1 ,mem_24g_txbuf + 7 
+4793 6fe0c8de fetch 1 ,mem_mouse_tz 
+4794 9840fe00 iadd temp ,pdata 
+4795 67e0c8de store 1 ,mem_mouse_tz 
+
+mouse_24g_mouse_package_data_now:
+4796 70483d01 jam type_ms ,mem_24g_data_type 
+4797 da200007 arg 7 ,rega 
+4798 da4048d8 arg mem_mouse_key ,regb 
+4799 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+479a c28c26c8 bbit1 mouse_enable_24g_250hz ,g24_transmit_by_interrupt_enable 
+479b 6fe148dd fetch 2 ,mem_mouse_z 
+479c 207a0000 rtn blank 
+479d 202026c8 branch g24_transmit_by_interrupt_enable 
+
+mouse_24g_keyboard_package_data:
+479e 70483d02 jam type_kb ,mem_24g_data_type 
+479f da200009 arg 9 ,rega 
+47a0 6fe0cb9e fetch 1 ,mem_customer_data_trigger 
+47a1 243a47a4 nbranch mouse_customer_key_press ,blank 
+47a2 da404be7 arg mem_customer_key_release ,regb 
+47a3 20600000 rtn 
+
+mouse_customer_key_press:
+47a4 da404bde arg mem_customer_key_press ,regb 
+47a5 20600000 rtn 
+
+mouse_24g_search_dongle_init:
+47a6 58000000 setarg 0 
+47a7 67e1cbb6 store 3 ,mem_mouse_search_dongle_action 
+47a8 20600000 rtn 
+
+mouse_24g_search_dongle:
+47a9 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+47aa c40b0000 rtnbit0 mouse_enable_24g_search_dongle 
+47ab 6fe0cac0 fetch 1 ,mem_mouse_long_mult_flag 
+47ac 207a0000 rtn blank 
+47ad 6fe0c8af fetch 1 ,mem_24g_abort_pac 
+47ae 207a0000 rtn blank 
+47af 6fe0cbb3 fetch 1 ,mem_mouse_search_dongle_interval 
+47b0 1fe0fe01 increase 1 ,pdata 
+47b1 1fe17e03 and_into 3 ,pdata 
+47b2 67e0cbb3 store 1 ,mem_mouse_search_dongle_interval 
+47b3 247a0000 nrtn blank 
+47b4 704bb400 jam 0 ,mem_mouse_search_dongle_ch 
+
+mouse_24g_search_dongle_loop:
+47b5 6fe0cbb4 fetch 1 ,mem_mouse_search_dongle_ch 
+47b6 1fe0fe01 increase 1 ,pdata 
+47b7 67e0cbb4 store 1 ,mem_mouse_search_dongle_ch 
+47b8 1fe67c08 sub pdata ,g24_ch_number ,null 
+47b9 242147c0 nbranch mouse_24g_search_dongle_loop_end ,positive 
+47ba 20402586 call g24_reconn_data_prep 
+47bb 20402645 call g24_transmit_receive_ack 
+47bc 242c47c6 nbranch mouse_24g_search_dongle_loop_retry ,sync 
+47bd 2437c7c6 nbranch mouse_24g_search_dongle_loop_retry ,user3 
+47be 204047d8 call mouse_g24_ackpayload_parse 
+47bf 204047cf call mouse_24g_search_dongle_success 
+
+mouse_24g_search_dongle_loop_end:
+47c0 20402583 call g24_txbuf_clear 
+47c1 6fe0cbb5 fetch 1 ,mem_mouse_search_dongle_count 
+47c2 1fe0fe01 increase 1 ,pdata 
+47c3 67e0cbb5 store 1 ,mem_mouse_search_dongle_count 
+47c4 c00847c8 beq g24_ch_poll_count ,mouse_24g_search_dongle_check 
+47c5 20600000 rtn 
+
+mouse_24g_search_dongle_loop_retry:
+47c6 20402262 call g24_ch 
+47c7 202047b5 branch mouse_24g_search_dongle_loop 
+
+mouse_24g_search_dongle_check:
+47c8 704bb500 jam 0 ,mem_mouse_search_dongle_count 
+47c9 6fe0cbb6 fetch 1 ,mem_mouse_search_dongle_action 
+47ca c3800000 rtnbit1 g24_disconn_state 
+47cb 79207e00 set1 g24_disconn_state ,pdata 
+47cc 67e0cbb6 store 1 ,mem_mouse_search_dongle_action 
+47cd 6fe14bce fetch 2 ,mem_mouse_24g_search_dongle_time_init 
+47ce 202046fb branch mouse_24g_hibernate_set 
+
+mouse_24g_search_dongle_success:
+47cf 6fe0c8af fetch 1 ,mem_24g_abort_pac 
+47d0 203a47a6 branch mouse_24g_search_dongle_init ,blank 
+47d1 704bb500 jam 0 ,mem_mouse_search_dongle_count 
+47d2 6fe0cbb6 fetch 1 ,mem_mouse_search_dongle_action 
+47d3 c4000000 rtnbit0 g24_disconn_state 
+47d4 793ffe00 set0 g24_disconn_state ,pdata 
+47d5 67e0cbb6 store 1 ,mem_mouse_search_dongle_action 
+47d6 2040445f call mouse_no_data_timer_init 
+47d7 202040c5 branch mouse_init_sensor_wakeup 
+
+mouse_g24_ackpayload_parse:
+47d8 2040265c call g24_ackpayload_parse 
+47d9 6fe0c7ac fetch 1 ,mem_24g_rxbuf + 1 
+47da 2fe1f008 compare 0x08 ,pdata ,0xf8 
+47db 24608000 nrtn true 
+47dc 6fe0c7ad fetch 1 ,mem_24g_rxbuf + 2 
+47dd c07fc6fb beq 0xff ,mouse_24g_hibernate_set 
+47de 20600000 rtn 
+
+mouse_24g_before_lpm_sleep:
+47df 6fe0c93f fetch 1 ,mem_device_flag 
+47e0 c0801449 bne mode_24g_device ,lpm_sleep_skip_cb_function 
+47e1 6fe0c87e fetch 1 ,mem_24g_disable_fec1 
+47e2 207a0000 rtn blank 
+
+mouse_peripheral_clock_off:
+47e3 70804202 jam 2 ,core_clksel 
+47e4 6ff08138 fetch 1 ,core_lpm_ctrl 
+47e5 1fe17efc and pdata ,0xfc ,pdata 
+47e6 67f0804c store 1 ,core_lpm_reg 
+47e7 2020152d branch lpm_write_ctrl 
+
+mouse_device_poweron_timer:
+47e8 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+47e9 c4100000 rtnbit0 mouse_enable_power_on_led 
+47ea 6fe0cbb9 fetch 1 ,mem_mouse_device_poweron_timer_count 
+47eb 207a0000 rtn blank 
+47ec 1fe0ffff increase -1 ,pdata 
+47ed 67e0cbb9 store 1 ,mem_mouse_device_poweron_timer_count 
+47ee 203a483c branch mouse_device_led_off ,blank 
+47ef 2020484a branch mouse_device_led_on 
+
+mouse_device_poweron_timer_init:
+47f0 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+47f1 c4100000 rtnbit0 mouse_enable_power_on_led 
+47f2 204048b8 call mouse_low_voltage_led_blink_disable 
+47f3 6fe0cbd2 fetch 1 ,mem_mouse_device_poweron_timer_count_init 
+47f4 67e0cbb9 store 1 ,mem_mouse_device_poweron_timer_count 
+47f5 20600000 rtn 
+
+mouse_discover_setting_led_gpio:
+47f6 704bb900 jam 0 ,mem_mouse_device_poweron_timer_count 
+47f7 6fe14bd6 fetch 2 ,mem_mouse_disconvey_led_blink_time 
+47f8 67e14937 store 2 ,mem_mouse_on_time 
+47f9 67e14939 store 2 ,mem_mouse_off_time 
+
+mouse_setting_led_gpio_comman:
+47fa 6fe0c93f fetch 1 ,mem_device_flag 
+47fb c00047ff beq mode_24g_device ,mouse_device_led_24g 
+47fc c000c801 beq mode_bt_device1 ,mouse_device_led_bt1 
+47fd c0014803 beq mode_bt_device2 ,mouse_device_led_bt2 
+47fe 20600000 rtn 
+
+mouse_device_led_24g:
+47ff 6fe0c92a fetch 1 ,mem_config_device_24g_led_gpio 
+4800 20204804 branch mouse_led_blink 
+
+mouse_device_led_bt1:
+4801 6fe0c92b fetch 1 ,mem_config_device_bt1_led_gpio 
+4802 20204804 branch mouse_led_blink 
+
+mouse_device_led_bt2:
+4803 6fe0c92c fetch 1 ,mem_config_device_bt2_led_gpio 
+
+mouse_led_blink:
+4804 67e08964 store 1 ,mem_temp 
+4805 2040483c call mouse_device_led_off 
+4806 6fe08964 fetch 1 ,mem_temp 
+4807 67e0c936 store 1 ,mem_mouse_struct_led_gpio 
+4808 da200000 arg 0 ,rega 
+4809 70493401 jam ui_led_state_blink_start ,mem_mouse_led_type 
+480a 2020773c branch ui_led_blink_start_global 
+
+mouse_dpi_led_blink_delay:
+480b 6fe0c92d fetch 1 ,mem_dpi_led_gpio 
+480c c17f8000 rtneq gpio_disable 
+480d 6fe14ad4 fetch 2 ,mem_mouse_discovery_timer 
+480e 247a0000 nrtn blank 
+480f 6fe1488b fetch 2 ,mem_24g_pair_timeout 
+4810 247a0000 nrtn blank 
+4811 6fe1488f fetch 2 ,mem_24g_reconn_timeout 
+4812 247a0000 nrtn blank 
+4813 6fe0cbb9 fetch 1 ,mem_mouse_device_poweron_timer_count 
+4814 247a0000 nrtn blank 
+4815 6fe0cbd3 fetch 1 ,mem_mouse_dpi_led_delay_count_init 
+4816 203a481c branch mouse_dpi_led_blink_init ,blank 
+4817 67e0cbba store 1 ,mem_mouse_dpi_led_delay_count 
+4818 20600000 rtn 
+
+mouse_dpi_led_blink_delay_timer:
+4819 da604bba arg mem_mouse_dpi_led_delay_count ,regc 
+481a da40481c arg mouse_dpi_led_blink_init ,regb 
+481b 202031cf branch timer_single_step 
+
+mouse_dpi_led_blink_init:
+481c 6fe0c92d fetch 1 ,mem_dpi_led_gpio 
+481d 67e0c936 store 1 ,mem_mouse_struct_led_gpio 
+481e 6fe14bd4 fetch 2 ,mem_mouse_dpi_led_blink_time 
+481f 67e14937 store 2 ,mem_mouse_on_time 
+4820 67e14939 store 2 ,mem_mouse_off_time 
+4821 da200000 arg 0 ,rega 
+4822 6848c999 fetcht 1 ,mem_mouse_dpi 
+4823 18408401 increase 1 ,temp 
+4824 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4825 c30e4829 bbit0 mouse_enable_dpi_level_4 ,mouse_dpi_led_blink_init_end 
+4826 18408401 increase 1 ,temp 
+4827 18467c04 sub temp ,4 ,null 
+4828 2441482c ncall mouse_dpi_led_blink_count_clean ,positive 
+
+mouse_dpi_led_blink_init_end:
+4829 6048c935 storet 1 ,mem_mouse_blink_count 
+482a 70493401 jam ui_led_state_blink_start ,mem_mouse_led_type 
+482b 20600000 rtn 
+
+mouse_dpi_led_blink_count_clean:
+482c d8400001 arg 1 ,temp 
+482d 20600000 rtn 
+
+mouse_check_dpi_blink:
+482e 78547c00 disable user 
+482f 6fe0c92d fetch 1 ,mem_dpi_led_gpio 
+4830 6848c936 fetcht 1 ,mem_mouse_struct_led_gpio 
+4831 98467c00 isub temp ,null 
+4832 24628000 nrtn zero 
+4833 6fe0c935 fetch 1 ,mem_mouse_blink_count 
+4834 207a0000 rtn blank 
+4835 70490100 jam 0 ,mem_adc_low_volatage_led_blink_enable 
+4836 78347c00 enable user 
+4837 20600000 rtn 
+
+mouse_device_led_all_off:
+4838 20404848 call mouse_dpi_led_off 
+4839 20404841 call mouse_device_24g_led_off 
+483a 20404844 call mouse_device_bt1_led_off 
+483b 20204846 branch mouse_device_bt2_led_off 
+
+mouse_device_led_off:
+483c 6fe0c93f fetch 1 ,mem_device_flag 
+483d c0004841 beq mode_24g_device ,mouse_device_24g_led_off 
+483e c000c844 beq mode_bt_device1 ,mouse_device_bt1_led_off 
+483f c0014846 beq mode_bt_device2 ,mouse_device_bt2_led_off 
+4840 20600000 rtn 
+
+mouse_device_24g_led_off:
+4841 704bbc00 jam 0 ,mem_24g_device_led_status 
+4842 6848c92a fetcht 1 ,mem_config_device_24g_led_gpio 
+4843 20204855 branch mouse_led_off 
+
+mouse_device_bt1_led_off:
+4844 6848c92b fetcht 1 ,mem_config_device_bt1_led_gpio 
+4845 20204855 branch mouse_led_off 
+
+mouse_device_bt2_led_off:
+4846 6848c92c fetcht 1 ,mem_config_device_bt2_led_gpio 
+4847 20204855 branch mouse_led_off 
+
+mouse_dpi_led_off:
+4848 6848c92d fetcht 1 ,mem_dpi_led_gpio 
+4849 20204855 branch mouse_led_off 
+
+mouse_device_led_on:
+484a 6fe0c93f fetch 1 ,mem_device_flag 
+484b c000484f beq mode_24g_device ,mouse_device_24g_led_on 
+484c c000c851 beq mode_bt_device1 ,mouse_device_bt1_led_on 
+484d c0014853 beq mode_bt_device2 ,mouse_device_bt2_led_on 
+484e 20600000 rtn 
+
+mouse_device_24g_led_on:
+484f 6848c92a fetcht 1 ,mem_config_device_24g_led_gpio 
+4850 20204859 branch mouse_led_on 
+
+mouse_device_bt1_led_on:
+4851 6848c92b fetcht 1 ,mem_config_device_bt1_led_gpio 
+4852 20204859 branch mouse_led_on 
+
+mouse_device_bt2_led_on:
+4853 6848c92c fetcht 1 ,mem_config_device_bt2_led_gpio 
+4854 20204859 branch mouse_led_on 
+
+mouse_led_off:
+4855 44efc01b bpatch patch1b_7 ,mem_patch1b 
+4856 6048c936 storet 1 ,mem_mouse_struct_led_gpio 
+4857 da200000 arg 0 ,rega 
+4858 20207737 branch ui_led_off_global 
+
+mouse_led_on:
+4859 44f0401c bpatch patch1c_0 ,mem_patch1c 
+485a 6048c936 storet 1 ,mem_mouse_struct_led_gpio 
+485b da200000 arg 0 ,rega 
+485c 20207732 branch ui_led_on_global 
+
+mouse_ui_led_off_static:
+485d 6fe0c92a fetch 1 ,mem_config_device_24g_led_gpio 
+485e 98467c00 isub temp ,null 
+485f 2042c87c call mouse_clear_24g_led_statue ,zero 
+4860 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4861 c3125f89 bbit0 mouse_enable_4_led ,gpio_out_inactive 
+4862 2040486d call mouse_check_bt2_led_off 
+4863 20404871 call mouse_check_dpi_led_off 
+4864 20404875 call mouse_check_low_v_led_off 
+4865 6fe0cbbb fetch 1 ,mem_mouse_led_off_4_led 
+4866 203a5f89 branch gpio_out_inactive ,blank 
+4867 704bbb00 jam 0 ,mem_mouse_led_off_4_led 
+4868 20205fa3 branch gpio_set_high_impedance 
+
+mouse_ui_led_on_static:
+4869 6fe0c92a fetch 1 ,mem_config_device_24g_led_gpio 
+486a 98467c00 isub temp ,null 
+486b 2042c87e call mouse_set_24g_led_statue ,zero 
+486c 20205f8d branch gpio_out_active 
+
+mouse_check_bt2_led_off:
+486d 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+486e c4130000 rtnbit0 mouse_enable_bt2_for_4_led 
+486f 6fe0c92c fetch 1 ,mem_config_device_bt2_led_gpio 
+4870 20204878 branch mouse_check_1gpio_2led_off 
+
+mouse_check_dpi_led_off:
+4871 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4872 c4128000 rtnbit0 mouse_enable_dpi_for_4_led 
+4873 6fe0c92d fetch 1 ,mem_dpi_led_gpio 
+4874 20204878 branch mouse_check_1gpio_2led_off 
+
+mouse_check_low_v_led_off:
+4875 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+4876 c4138000 rtnbit0 mouse_enable_low_v_for_4_led 
+4877 6fe0c929 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+
+mouse_check_1gpio_2led_off:
+4878 98467c00 isub temp ,null 
+4879 24628000 nrtn zero 
+487a 704bbb01 jam 1 ,mem_mouse_led_off_4_led 
+487b 20600000 rtn 
+
+mouse_clear_24g_led_statue:
+487c 704bbc00 jam 0 ,mem_24g_device_led_status 
+487d 20600000 rtn 
+
+mouse_set_24g_led_statue:
+487e 704bbc01 jam 1 ,mem_24g_device_led_status 
+487f 20600000 rtn 
+
+mouse_low_voltage_led_timer:
+4880 6fe14ad4 fetch 2 ,mem_mouse_discovery_timer 
+4881 247a0000 nrtn blank 
+4882 6fe1488b fetch 2 ,mem_24g_pair_timeout 
+4883 247a0000 nrtn blank 
+4884 6fe1488f fetch 2 ,mem_24g_reconn_timeout 
+4885 247a0000 nrtn blank 
+4886 6fe0cbb9 fetch 1 ,mem_mouse_device_poweron_timer_count 
+4887 247a0000 nrtn blank 
+4888 2040482e call mouse_check_dpi_blink 
+4889 20740000 rtn user 
+488a 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+488b c4108000 rtnbit0 mouse_enable_low_voltage_led 
+488c c4020000 rtnbit0 mouse_low_voltage_flag 
+488d c291c8a6 bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_blink_new_data 
+488e 6fe0c900 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+488f 1fe0fe01 increase 1 ,pdata 
+4890 67e0c900 store 1 ,mem_adc_low_volatage_led_timer_count 
+4891 1fe67c14 sub pdata ,20 ,null 
+4892 24414898 ncall mouse_adc_low_volatage_led_timer_count_clean ,positive 
+4893 c001489a beq 2 ,mouse_low_voltage_led_on 
+4894 c00248a0 beq 4 ,mouse_low_voltage_led_off 
+4895 c003489a beq 6 ,mouse_low_voltage_led_on 
+4896 c00448a0 beq 8 ,mouse_low_voltage_led_off 
+4897 20600000 rtn 
+
+mouse_adc_low_volatage_led_timer_count_clean:
+4898 70490001 jam 1 ,mem_adc_low_volatage_led_timer_count 
+4899 202048a0 branch mouse_low_voltage_led_off 
+
+mouse_low_voltage_led_on:
+489a 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+489b c291484a bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_device_led_on 
+489c 6fe0c929 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+489d c17f8000 rtneq gpio_disable 
+489e 6848c929 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+489f 20204859 branch mouse_led_on 
+
+mouse_low_voltage_led_off:
+48a0 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+48a1 c291483c bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_device_led_off 
+48a2 6fe0c929 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+48a3 c17f8000 rtneq gpio_disable 
+48a4 6848c929 fetcht 1 ,mem_config_low_voltage_alarm_gpio 
+48a5 20204855 branch mouse_led_off 
+
+mouse_low_voltage_led_blink_new_data:
+48a6 6fe14bd0 fetch 2 ,mem_mouse_no_data_timeout 
+48a7 68494ac4 fetcht 2 ,mem_mouse_no_data_timer 
+48a8 98460400 isub temp ,temp 
+48a9 6fe14bda fetch 2 ,mem_adc_low_volatage_led_blink_timer 
+48aa 98467c00 isub temp ,null 
+48ab 242148b8 nbranch mouse_low_voltage_led_blink_disable ,positive 
+48ac 6fe0c901 fetch 1 ,mem_adc_low_volatage_led_blink_enable 
+48ad 247a0000 nrtn blank 
+48ae 70490101 jam 1 ,mem_adc_low_volatage_led_blink_enable 
+48af 202048b0 branch mouse_low_voltage_led_blink_init 
+
+mouse_low_voltage_led_blink_init:
+48b0 6fe14bd8 fetch 2 ,mem_mouse_low_v_led_blink_time 
+48b1 67e14937 store 2 ,mem_mouse_on_time 
+48b2 67e14939 store 2 ,mem_mouse_off_time 
+48b3 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+48b4 c29147fa bbit1 mouse_enable_low_voltage_use_mode_led ,mouse_setting_led_gpio_comman 
+48b5 6fe0c929 fetch 1 ,mem_config_low_voltage_alarm_gpio 
+48b6 c17f8000 rtneq gpio_disable 
+48b7 20204804 branch mouse_led_blink 
+
+mouse_low_voltage_led_blink_disable:
+48b8 70490100 jam 0 ,mem_adc_low_volatage_led_blink_enable 
+48b9 202048a0 branch mouse_low_voltage_led_off 
+
+mouse_low_voltage_led_no_enter_lpm:
+48ba 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+48bb c4108000 rtnbit0 mouse_enable_low_voltage_led 
+48bc c4020000 rtnbit0 mouse_low_voltage_flag 
+48bd c291c8cc bbit1 mouse_enable_low_voltage_led_blink_n_second ,mouse_low_voltage_led_no_enter_lpm_blink 
+48be 6fe0c900 fetch 1 ,mem_adc_low_volatage_led_timer_count 
+48bf 1fe67c0a sub pdata ,10 ,null 
+48c0 202148c8 branch mouse_lpm_mode_clear ,positive 
+
+mouse_low_voltage_led_no_enter_lpm_next:
+48c1 6fe0c93f fetch 1 ,mem_device_flag 
+48c2 c00048c5 beq mode_24g_device ,g24_transmit_by_interrupt_exit_check 
+48c3 70409901 jam 1 ,mem_lpm_mode 
+48c4 20600000 rtn 
+
+g24_transmit_by_interrupt_exit_check:
+48c5 6fe44bbd fetch mouse_flag_len ,mem_mouse_flag 
+48c6 c38c0000 rtnbit1 mouse_enable_24g_250hz 
+48c7 202026b7 branch g24_transmit_by_interrupt_exit 
+
+mouse_lpm_mode_clear:
+48c8 6fe0c93f fetch 1 ,mem_device_flag 
+48c9 c00026c8 beq mode_24g_device ,g24_transmit_by_interrupt_enable 
+48ca 70409900 jam 0 ,mem_lpm_mode 
+48cb 20600000 rtn 
+
+mouse_low_voltage_led_no_enter_lpm_blink:
+48cc 6fe0c901 fetch 1 ,mem_adc_low_volatage_led_blink_enable 
+48cd 243a48c8 nbranch mouse_lpm_mode_clear ,blank 
+48ce 202048c1 branch mouse_low_voltage_led_no_enter_lpm_next 
+
+mouse_store_signal_rssi:
+48cf 20401291 call rssi_hex2dec 
+48d0 6fe08018 fetch 1 ,mem_rssi 
+48d1 202025cc branch rssi_signal 
+
+mouse_le_transmit:
+48d2 204048cf call mouse_store_signal_rssi 
+48d3 202026d5 branch power_ctrl_start 
+
+mouse_bt_slave_match:
+48d4 204048cf call mouse_store_signal_rssi 
+48d5 6fe08030 fetch 1 ,mem_state 
+48d6 2feffe00 isolate1 state_inconn ,pdata 
+48d7 24608000 nrtn true 
+48d8 6fe08047 fetch 1 ,mem_arq 
+48d9 2feffe03 isolate1 wack ,pdata 
+48da 2040a70b call power_ctrl_pac_succ_decrs ,true 
+48db 2440a707 ncall power_ctrl_pac_succ_incrs ,true 
+48dc 202026d5 branch power_ctrl_start 
+
+mouse_le_set_lpm_mult:
+48dd 6fe0cb87 fetch 1 ,mem_le_connect_status_flag 
+48de 2fe00603 compare 3 ,pdata ,3 
+48df 2420fd9c nbranch disable_blank ,true 
+48e0 20403268 call app_lpm_mult_enable 
+48e1 20207d9e branch enable_blank 
+
+mouse_bt_set_lpm_mult:
+48e2 20405214 call l2cap_malloc_is_fifo_empty 
+48e3 247a0000 nrtn blank 
+48e4 70008801 jam 1 ,mem_current_sniff_attempt 
+48e5 70008900 jam 0 ,mem_current_sniff_timeout 
+48e6 20207d9e branch enable_blank 
+
+mouse_set_lpm_mult:
+48e7 6fe14793 fetch 2 ,mem_ui_state_map 
+48e8 c284c8dd bbit1 ui_state_ble_connected ,mouse_le_set_lpm_mult 
+48e9 202048e2 branch mouse_bt_set_lpm_mult 
+
+remote_car_init:
+48ea 20758000 rtn wake 
+48eb 20406065 call keyscan_key_init 
+48ec 5800499e setarg remote_car_g24_package_data 
+48ed 67e148a3 store 2 ,mem_cb_24g_transmit_data 
+48ee 5800492d setarg remote_car_process_lpm_before 
+48ef 67e148a7 store 2 ,mem_cb_24g_lpm_before 
+48f0 58004928 setarg remote_car_le_before_hibernate 
+48f1 67e14460 store 2 ,mem_cb_before_hibernate 
+48f2 58004968 setarg remote_car_scale_process_idle 
+48f3 67e14468 store 2 ,mem_cb_idle_process 
+48f4 5800496a setarg remote_car_scale_process_bb_event 
+48f5 67e1446a store 2 ,mem_cb_bb_event_process 
+48f6 58004983 setarg remote_car_event_timer 
+48f7 67e14472 store 2 ,mem_cb_event_timer 
+48f8 5800491d setarg remote_car_power_off_signal 
+48f9 67e14999 store 2 ,mem_remote_car_power_off_cb 
+48fa 5800490d setarg remote_car_soft_switch_power_on_signal 
+48fb 67e1499d store 2 ,mem_remote_car_power_standby_cb 
+48fc 44f0c01c bpatch patch1c_1 ,mem_patch1c 
+48fd 20405cab call set_eeprom_size_2k 
+48fe 20404924 call remote_car_init_environment 
+48ff 20407870 call queue_init 
+4900 6fe0c969 fetch 1 ,mem_remote_car_config_soft_switch_enable 
+4901 67e0c8d8 store 1 ,mem_remote_car_hard_soft_switch 
+4902 c000490c beq hard_switch ,remote_car_hard_switch_power_on_signal 
+4903 6fe0c96a fetch 1 ,mem_remote_car_config_soft_switch_gpio 
+4904 67e0c797 store 1 ,mem_ui_button_gpio 
+
+remote_car_soft_switch_power_on_init:
+4905 2040491d call remote_car_ui_led_init 
+4906 204076f1 call ui_button_init 
+4907 204076fb call ui_button_polling 
+4908 70499501 jam power_starting ,mem_remote_car_power_state 
+4909 6fe14793 fetch 2 ,mem_ui_state_map 
+490a c3860000 rtnbit1 ui_state_btn_down 
+490b 2020325c branch app_enter_hibernate 
+
+remote_car_hard_switch_power_on_signal:
+490c 70499502 jam power_standby ,mem_remote_car_power_state 
+
+remote_car_soft_switch_power_on_signal:
+490d 2040491d call remote_car_ui_led_init 
+490e da200000 arg 0 ,rega 
+490f 2040773c call ui_led_blink_start_global 
+4910 20404919 call remote_car_set_24g_addr_eeprom 
+4911 20405ccb call iicd_read_eep_data 
+4912 204026cc call g24_factory_check 
+4913 203422c5 branch g24_pair_start ,user 
+4914 6fe24843 fetch 4 ,mem_24g_addr 
+4915 67e24899 store 4 ,mem_24g_receiver_addr 
+4916 6fe1488d fetch 2 ,mem_24g_reconn_timeout_init 
+4917 67e1488f store 2 ,mem_24g_reconn_timeout 
+4918 20202545 branch g24_reconn_start 
+
+remote_car_set_24g_addr_eeprom:
+4919 d8400004 arg 4 ,temp 
+491a da204843 arg mem_24g_addr ,rega 
+491b da400000 arg remote_info_eeprom_offect ,regb 
+491c 20600000 rtn 
+
+remote_car_power_off_signal:
+
+remote_car_ui_led_init:
+491d 44f1401c bpatch patch1c_2 ,mem_patch1c 
+491e 6fe0c967 fetch 1 ,mem_remote_car_config_connect_led_gpio 
+491f c0ffc922 bne invalid_pin_num ,remote_car_pairing_led_gpio_set 
+
+remote_car_ui_led_init_1:
+4920 6848c944 fetcht 1 ,mem_remote_car_led_map 
+4921 20205f8d branch gpio_config_output 
+
+remote_car_pairing_led_gpio_set:
+4922 67e0c944 store 1 ,mem_remote_car_led_map 
+4923 20204920 branch remote_car_ui_led_init_1 
+
+remote_car_init_environment:
+4924 204025f1 call g24_transmit_init 
+
+remote_no_data_timer_init:
+4925 6fe14991 fetch 2 ,mem_remote_car_no_data_timeout 
+4926 67e14993 store 2 ,mem_remote_car_no_data_timer 
+4927 20600000 rtn 
+
+remote_car_le_before_hibernate:
+4928 2040492d call remote_car_process_lpm_before 
+
+remote_gpio_set_before_hibernate:
+4929 6fe0c93a fetch 1 ,mem_remote_style_struct_led_gpio 
+492a 79207e07 set1 7 ,pdata 
+492b d840003f arg gpcfg_output_high ,temp 
+492c 20205fb2 branch gpio_config_function 
+
+remote_car_process_lpm_before:
+492d 20405fc2 call gpio_set_before_lpm 
+492e 2020608a branch keyscan_process_lpm_before 
+
+remote_car_key_scan_process:
+492f 20406096 call keyscan_key_process 
+4930 20404940 call get_remote_key_state 
+4931 20404933 call remote_conn_led_state 
+4932 2020494e branch send_data 
+
+remote_conn_led_state:
+4933 6fe0c9a0 fetch 1 ,mem_remote_car_24g_status 
+4934 c1808000 rtnne work_paired 
+4935 6fe249a4 fetch 4 ,mem_remote_car_motor1_key0_press_state 
+4936 203a493a branch remote_car_stop_state ,blank 
+4937 7049aa00 jam 0 ,mem_remote_car_no_data_check 
+4938 78347c00 enable user 
+4939 20207841 branch check_51cmd_led_on 
+
+remote_car_stop_state:
+493a 6fe0c9aa fetch 1 ,mem_remote_car_no_data_check 
+493b c17f8000 rtneq 0xff 
+493c 1fe0fe01 pincrease 1 
+493d 67e0c9aa store 1 ,mem_remote_car_no_data_check 
+493e 78547c00 disable user 
+493f 2020783f branch check_51cmd_led_off 
+
+get_remote_key_state:
+4940 684944cd fetcht 2 ,mem_key_value_retention 
+4941 18417e01 and temp ,0x01 ,pdata 
+4942 18430400 rshift temp ,temp 
+4943 67e0c9a4 store 1 ,mem_remote_car_motor1_key0_press_state 
+4944 18417e01 and temp ,0x01 ,pdata 
+4945 18430400 rshift temp ,temp 
+4946 67e0c9a5 store 1 ,mem_remote_car_motor1_key1_press_state 
+4947 18417e01 and temp ,0x01 ,pdata 
+4948 18430400 rshift temp ,temp 
+4949 67e0c9a6 store 1 ,mem_remote_car_motor2_key2_press_state 
+494a 18417e01 and temp ,0x01 ,pdata 
+494b 18430400 rshift temp ,temp 
+494c 67e0c9a7 store 1 ,mem_remote_car_motor2_key3_press_state 
+494d 20600000 rtn 
+
+send_data:
+494e 44f1c01c bpatch patch1c_3 ,mem_patch1c 
+494f 2040495e call remote_car_fb_check 
+4950 20404963 call remote_car_lr_check 
+4951 20404954 call remote_car_no_data_timeout_check 
+4952 24740000 nrtn user 
+4953 2020499a branch remote_car_send_key 
+
+remote_car_no_data_timeout_check:
+4954 6fe0c9a0 fetch 1 ,mem_remote_car_24g_status 
+4955 c1808000 rtnne work_paired 
+4956 6fe0c9aa fetch 1 ,mem_remote_car_no_data_check 
+4957 207a0000 rtn blank 
+4958 1fe67c01 sub pdata ,1 ,null 
+4959 24610000 nrtn positive 
+495a 6fe1488d fetch 2 ,mem_24g_reconn_timeout_init 
+495b 67e1488f store 2 ,mem_24g_reconn_timeout 
+495c 78347c00 enable user 
+495d 20600000 rtn 
+
+remote_car_fb_check:
+495e 6fe0c9a4 fetch 1 ,mem_remote_car_motor1_key0_press_state 
+495f 243a498e nbranch remote_car_send_motor1_key0_press ,blank 
+4960 6fe0c9a5 fetch 1 ,mem_remote_car_motor1_key1_press_state 
+4961 243a4990 nbranch remote_car_send_motor1_key1_press ,blank 
+4962 20204996 branch remote_car_send_motor1_key0_rel 
+
+remote_car_lr_check:
+4963 6fe0c9a6 fetch 1 ,mem_remote_car_motor2_key2_press_state 
+4964 243a4992 nbranch remote_car_send_motor2_key2_press ,blank 
+4965 6fe0c9a7 fetch 1 ,mem_remote_car_motor2_key3_press_state 
+4966 243a4994 nbranch remote_car_send_motor2_key3_press ,blank 
+4967 20204998 branch remote_car_send_motor2_key2_rel 
+
+remote_car_scale_process_idle:
+4968 20404978 call remote_car_24g_status_process 
+4969 2020492f branch remote_car_key_scan_process 
+
+remote_car_scale_process_bb_event:
+496a 1a627e00 copy regc ,pdata 
+496b c016b284 beq bt_evt_button_up ,app_event_button_up 
+496c c008326c beq bt_evt_button_long_pressed ,app_button_long_pressed 
+496d c01cc972 beq bt_evt_24g_pairing_complete ,remote_car_24g_pairing_complete 
+496e c01e4974 beq bt_evt_24g_attempt_success ,remote_car_24g_attempt_success 
+496f c01d4971 beq bt_evt_24g_attempt_fail ,remote_car_24g_attempt_fail 
+4970 20600000 rtn 
+
+remote_car_24g_attempt_fail:
+4971 20202583 branch g24_txbuf_clear 
+
+remote_car_24g_pairing_complete:
+4972 20404919 call remote_car_set_24g_addr_eeprom 
+4973 20405cbd call iicd_write_protect_eep_data 
+
+remote_car_24g_attempt_success:
+4974 7048a900 jam 0 ,mem_24g_conn_sm 
+4975 7049a101 jam work_paired ,mem_remote_car_24g_auto_work_step 
+4976 7049a201 jam work_paired ,mem_remote_car_24g_pair_success_flag 
+4977 20600000 rtn 
+
+remote_car_24g_status_process:
+4978 6fe0c9a1 fetch 1 ,mem_remote_car_24g_auto_work_step 
+4979 c1000000 rtneq power_on 
+497a 6fe0c9a0 fetch 1 ,mem_remote_car_24g_status 
+497b c1008000 rtneq work_paired 
+497c 7049a001 jam work_paired ,mem_remote_car_24g_status 
+
+remote_car_scale_process_paired:
+497d da200000 arg 0 ,rega 
+497e 20207737 branch ui_led_off_global 
+
+remote_car_scale_process_shutdown:
+497f da200000 arg 0 ,rega 
+4980 20407737 call ui_led_off_global 
+4981 2040491d call remote_car_ui_led_init 
+4982 2020325c branch app_enter_hibernate 
+
+remote_car_event_timer:
+4983 204031dd call app_power_timer 
+4984 204022c2 call g24_pair_timeout_timer 
+4985 20402542 call g24_reconn_timeout_timer 
+4986 20204987 branch remote_car_no_data_timer 
+
+remote_car_no_data_timer:
+4987 6fe0c96b fetch 1 ,mem_remote_car_config_timeout_shutdown_enable 
+4988 207a0000 rtn blank 
+4989 6fe0c4cd fetch 1 ,mem_key_value_retention 
+498a 243a4925 nbranch remote_no_data_timer_init ,blank 
+498b da604993 arg mem_remote_car_no_data_timer ,regc 
+498c da40497f arg remote_car_scale_process_shutdown ,regb 
+498d 202031d6 branch timer_single_step_2b 
+
+remote_car_send_motor1_key0_press:
+498e 70497201 jam motor_positive ,mem_remote_car_24g_motor1_payload 
+498f 20600000 rtn 
+
+remote_car_send_motor1_key1_press:
+4990 70497202 jam motor_negative ,mem_remote_car_24g_motor1_payload 
+4991 20600000 rtn 
+
+remote_car_send_motor2_key2_press:
+4992 70497401 jam motor_positive ,mem_remote_car_24g_motor2_payload 
+4993 20600000 rtn 
+
+remote_car_send_motor2_key3_press:
+4994 70497402 jam motor_negative ,mem_remote_car_24g_motor2_payload 
+4995 20600000 rtn 
+
+remote_car_send_motor1_key0_rel:
+
+remote_car_send_motor1_key1_rel:
+4996 70497200 jam motor_stop ,mem_remote_car_24g_motor1_payload 
+4997 20600000 rtn 
+
+remote_car_send_motor2_key2_rel:
+
+remote_car_send_motor2_key3_rel:
+4998 70497400 jam motor_stop ,mem_remote_car_24g_motor2_payload 
+4999 20600000 rtn 
+
+remote_car_send_key:
+499a da20496c arg mem_remote_car_24g_motor_packet ,rega 
+499b 20207875 branch queue_push 
+
+remote_car_send_attack:
+499c da204979 arg mem_remote_car_24g_fire_packet ,rega 
+499d 20207875 branch queue_push 
+
+remote_car_g24_package_data:
+499e 6fe0c9a2 fetch 1 ,mem_remote_car_24g_pair_success_flag 
+499f c000c9a8 beq work_paired ,remote_car_g24_send_empty 
+49a0 da204982 arg mem_remote_car_24g_tx_temp ,rega 
+49a1 2040788c call queue_pop 
+49a2 243449ad nbranch remote_car_moto_data ,user 
+
+remote_car_g24_package_data_continue:
+49a3 d8c04982 arg mem_remote_car_24g_tx_temp ,contr 
+49a4 efe08006 ifetch 1 ,contr 
+49a5 1fe22200 copy pdata ,rega 
+49a6 da404983 arg mem_remote_car_24g_tx_temp + 1 ,regb 
+49a7 20600000 rtn 
+
+remote_car_g24_send_empty:
+49a8 7049a200 jam 0 ,mem_remote_car_24g_pair_success_flag 
+49a9 78347c00 enable user 
+49aa da200001 arg 1 ,rega 
+49ab da4049a3 arg mem_remote_car_empty_packet ,regb 
+49ac 20600000 rtn 
+
+remote_car_moto_data:
+49ad 6fe0c985 fetch 1 ,mem_remote_car_24g_tx_temp + 3 
+49ae c00249b1 beq car_cmd_l_r_motor_control ,remote_car_moto_data_next 
+49af c002c9b1 beq car_cmd_f_b_motor_control ,remote_car_moto_data_next 
+49b0 20600000 rtn 
+
+remote_car_moto_data_next:
+49b1 6fe0c988 fetch 1 ,mem_remote_car_24g_tx_temp + 6 
+49b2 243a49b8 nbranch remote_car_moto_data_enable_user ,blank 
+49b3 6fe0c98a fetch 1 ,mem_remote_car_24g_tx_temp + 8 
+49b4 243a49b8 nbranch remote_car_moto_data_enable_user ,blank 
+49b5 6fe0c98c fetch 1 ,mem_remote_car_24g_tx_temp + 10 
+49b6 243a49b8 nbranch remote_car_moto_data_enable_user ,blank 
+49b7 20600000 rtn 
+
+remote_car_moto_data_enable_user:
+49b8 78347c00 enable user 
+49b9 202049a3 branch remote_car_g24_package_data_continue 
+
+remote_car_default_init:
+49ba 70479614 jam 0x14 ,mem_ui_button_timeout 
+49bb 70478a01 jam 0x01 ,mem_ui_button_last_state 
+49bc 5800060f setarg 0x060f 
+49bd 67e148d9 store 2 ,mem_remote_car_queue_each_size 
+49be 580048d9 setarg mem_remote_car_queue_each_size 
+49bf 67e1448f store 2 ,mem_queue_ptr 
+49c0 70409901 jam 0x01 ,mem_lpm_mode 
+49c1 70415b06 jam 0x06 ,mem_lpm_overhead 
+49c2 70417802 jam 0x02 ,mem_lpm_mult_timeout 
+49c3 7048d800 jam 0x00 ,mem_remote_car_hard_soft_switch 
+49c4 58004938 setarg mem_remote_style_led_type 
+49c5 67e14492 store 2 ,mem_ui_led_struct_ptr 
+49c6 70449101 jam 0x01 ,mem_ui_led_struct_num 
+49c7 704939ff jam 0xff ,mem_remote_style_blink_count 
+49c8 58000296 setarg 0x0296 
+49c9 67e1493b store 2 ,mem_remote_style_on_time 
+49ca 5800073a setarg 0x073a 
+49cb 67e1493d store 2 ,mem_remote_style_off_time 
+49cc 58004995 setarg mem_remote_car_soft_power 
+49cd 67e144cf store 2 ,mem_power_param_ptr 
+49ce 58000c0c setarg 0x0c0c 
+49cf 67e14997 store 2 ,mem_remote_car_power_off_timeout 
+49d0 5800494c setarg mem_remote_car_keyscan 
+49d1 67e144cb store 2 ,mem_keyscan_ptr 
+49d2 70496900 jam 0x00 ,mem_remote_car_config_soft_switch_enable 
+49d3 704967ff jam 0xff ,mem_remote_car_config_connect_led_gpio 
+49d4 70496aff jam 0xff ,mem_remote_car_config_soft_switch_gpio 
+49d5 70496500 jam 0x00 ,mem_remote_car_config_key_map 
+49d6 70496600 jam 0x00 ,mem_remote_car_config_layout 
+49d7 70496800 jam 0x00 ,mem_remote_car_config_check_way 
+49d8 70496b01 jam 0x01 ,mem_remote_car_config_timeout_shutdown_enable 
+49d9 58004e55 setarg 0x4e55 
+49da 67e14958 store 2 ,mem_current_vdd_value_default_mid_x 
+49db 67e1495a store 2 ,mem_current_vdd_value_default_mid_y 
+49dc 58000007 setarg 0x0007 
+49dd 67e1495e store 2 ,mem_current_vdd_default_range 
+49de 7044a502 jam 0x02 ,mem_adc_config_flag 
+49df 38035a0c setsect 0 ,0x35a0c 
+49e0 3804011a setsect 1 ,0x11a 
+49e1 38080060 setsect 2 ,0x60 
+49e2 380c0028 setsect 3 ,0x28 
+49e3 67e4c96c store 9 ,mem_remote_car_24g_motor_packet 
+49e4 3802000a setsect 0 ,0x2000a 
+49e5 38040002 setsect 1 ,0x02 
+49e6 e7e20005 istore 4 ,contw 
+49e7 38035a08 setsect 0 ,0x35a08 
+49e8 3804019a setsect 1 ,0x19a 
+49e9 38080000 setsect 2 ,0x00 
+49ea 380c0000 setsect 3 ,0x00 
+49eb 67e4c979 store 9 ,mem_remote_car_24g_fire_packet 
+49ec 58000064 setarg 0x0064 
+49ed 67e14991 store 2 ,mem_remote_car_no_data_timeout 
+49ee 7041eb00 jam tx_power_0db ,mem_tx_power 
+49ef 70483d01 jam 0x01 ,mem_24g_data_type 
+49f0 7048b006 jam 0x06 ,mem_24g_max_retry 
+49f1 70486201 jam 0x01 ,mem_24g_pair_switch 
+49f2 70489400 jam 0x00 ,mem_24g_fast_conn_enable 
+49f3 204022b1 call g24_rx_window_init 
+49f4 204025fd call g24_interval_param_8ms 
+49f5 20402296 call g24_chmap_param_init 
+49f6 204022bc call g24_pair_param_init 
+49f7 58000708 setarg 0x0708 
+49f8 67e14889 store 2 ,mem_24g_pair_timeout_init 
+49f9 58000050 setarg 0x0050 
+49fa 67e1488d store 2 ,mem_24g_reconn_timeout_init 
+49fb 580a7700 setarg 0x0a7700 
+49fc 67e1c8b8 store 3 ,mem_24g_long_sleep_set 
+49fd 58604800 setarg 0x604800 
+49fe 67e1c863 store 3 ,mem_24g_enter_hibernate 
+49ff 20600000 rtn 
+
+shutter_init:
+4a00 20406d29 call enable_authrom 
+4a01 20758000 rtn wake 
+4a02 58004a85 setarg shutter_le_before_hibernate 
+4a03 67e14460 store 2 ,mem_cb_before_hibernate 
+4a04 58004a83 setarg shutter_process_lpm_before 
+4a05 67e14462 store 2 ,mem_cb_before_lpm 
+4a06 5800325c setarg app_enter_hibernate 
+4a07 67e1446c store 2 ,mem_cb_discovry_timeout 
+4a08 58004a81 setarg shutter_process_idle 
+4a09 67e14468 store 2 ,mem_cb_idle_process 
+4a0a 58004a30 setarg shutter_process_bb_event 
+4a0b 67e1446a store 2 ,mem_cb_bb_event_process 
+4a0c 58004a2a setarg shutter_le_scale_lpm_lock 
+4a0d 67e1445e store 2 ,mem_cb_check_wakelock 
+4a0e 58004af2 setarg ble_shutter_receive_data 
+4a0f 67e1446e store 2 ,mem_cb_att_write 
+4a10 58004a67 setarg shutter_le_bb_event_timer 
+4a11 67e14472 store 2 ,mem_cb_event_timer 
+4a12 58004acd setarg shutter_key_change 
+4a13 67e147ef store 2 ,mem_cb_shutter_keycan 
+4a14 58004b09 setarg shutter_soft_swtich_power_on 
+4a15 67e147ea store 2 ,mem_shutter_soft_switch_poweron_callback_function 
+4a16 58004b0a setarg shutter_soft_swtich_power_off 
+4a17 67e147ec store 2 ,mem_shutter_soft_switch_poweroff_callback_function 
+4a18 20404a25 call shutter_set_ble_version 
+4a19 20401a36 call le_modified_name 
+4a1a 20404af5 call shutter_init_param 
+4a1b 20406065 call keyscan_key_init 
+4a1c 20407870 call queue_init 
+4a1d 20407726 call ui_led_init_global 
+4a1e 44f2401c bpatch patch1c_4 ,mem_patch1c 
+4a1f 20404b02 call shutter_load_buffer_config_form_datarom 
+4a20 6fe0c7e5 fetch 1 ,mem_shutter_hard_soft_switch_case 
+4a21 c0004a27 beq hard_switch ,shutter_hart_swtich_power_on 
+4a22 6fe0c7e6 fetch 1 ,mem_shutter_soft_switch_button_gpio 
+4a23 67e0c797 store 1 ,mem_ui_button_gpio 
+4a24 20204b11 branch ui_soft_swtich_init 
+
+shutter_set_ble_version:
+4a25 7045fe07 jam 7 ,mem_lmp_version 
+4a26 20600000 rtn 
+
+shutter_hart_swtich_power_on:
+4a27 704797ff jam ui_button_gpio_disable ,mem_ui_button_gpio 
+4a28 7047e701 jam ss_state_power_on ,mem_shutter_soft_switch_power_state 
+4a29 20204aa0 branch shutter_start_reconnect 
+
+shutter_le_scale_lpm_lock:
+4a2a 6fe0c7e7 fetch 1 ,mem_shutter_soft_switch_power_state 
+4a2b c0013222 beq ss_state_power_off ,app_get_lpm_wake_lock 
+4a2c 2040521e call l2cap_malloc_get_full_map 
+4a2d 6fe0c4ed fetch 1 ,mem_used_map 
+4a2e 243a3222 nbranch app_get_lpm_wake_lock ,blank 
+4a2f 20203224 branch app_put_lpm_wake_lock 
+
+shutter_process_bb_event:
+4a30 1a627e00 copy regc ,pdata 
+4a31 c00a4a39 beq bt_evt_le_connected ,ble_shutter_process_baseband_connect 
+4a32 c00aca3d beq bt_evt_le_disconnected ,ble_shutter_process_baseband_disconnect 
+4a33 c01fca40 beq bt_evt_le_reconnect_complete ,ble_shutter_process_reconnect_complete 
+4a34 c0204a46 beq bt_evt_le_parse_conn_papa_update_rsp ,ble_shutter_process_parse_connect_parameter_update_response 
+4a35 c0084a4c beq bt_evt_button_long_pressed ,shutter_process_soft_swtich_button_long_press 
+4a36 c0164a4d beq bt_evt_button_down ,shutter_process_soft_swtich_button_down 
+4a37 c016ca58 beq bt_evt_button_up ,shutter_process_soft_swtich_button_up 
+4a38 20600000 rtn 
+
+ble_shutter_process_baseband_connect:
+4a39 20404a87 call shutter_stop_bluetooth_discovery 
+4a3a 58000000 setarg 0 
+4a3b 67e147bf store 2 ,mem_ble_shutter_reconn_timer 
+4a3c 2020325a branch app_led_off 
+
+ble_shutter_process_baseband_disconnect:
+4a3d 20407870 call queue_init 
+4a3e 7047b800 jam 0 ,mem_ble_shutter_enable_notify 
+4a3f 20204aa0 branch shutter_start_reconnect 
+
+ble_shutter_process_reconnect_complete:
+4a40 20407870 call queue_init 
+4a41 7047b801 jam 1 ,mem_ble_shutter_enable_notify 
+4a42 6fe447c9 fetch 8 ,mem_ble_shutter_interval_min 
+4a43 67e44375 store 8 ,mem_le_interval_min 
+4a44 20403268 call app_lpm_mult_enable 
+4a45 20201ee5 branch le_l2cap_tx_update_req 
+
+ble_shutter_process_parse_connect_parameter_update_response:
+4a46 6fe143de fetch 2 ,mem_le_l2cap_signaling_conn_param_update_rsp_result 
+4a47 c1000000 rtneq ble_signaling_connect_parameter_update_accepted 
+4a48 6fe447d1 fetch 8 ,mem_ble_shutter_interval_min_new 
+4a49 207a0000 rtn blank 
+4a4a 67e44375 store 8 ,mem_le_interval_min 
+4a4b 20201ee5 branch le_l2cap_tx_update_req 
+
+shutter_process_soft_swtich_button_long_press:
+4a4c 20204b22 branch ui_soft_switch_botton_long_press 
+
+shutter_process_soft_swtich_button_down:
+4a4d 6fe0c7e5 fetch 1 ,mem_shutter_hard_soft_switch_case 
+4a4e c1000000 rtneq hard_switch 
+4a4f 6fe0c7e7 fetch 1 ,mem_shutter_soft_switch_power_state 
+4a50 c1808000 rtnne ss_state_power_on 
+4a51 20404a53 call shutter_store_currenct_led_state 
+4a52 20203258 branch app_led_on 
+
+shutter_store_currenct_led_state:
+4a53 7049e701 jam 1 ,mem_shutter_soft_swtich_botton_down 
+4a54 df20000b arg 11 ,loopcnt 
+4a55 d8a049e8 arg mem_shutter_soft_swtich_led_struct_temp ,contw 
+4a56 d8c049d1 arg mem_shutter_led_struct_app_led ,contr 
+4a57 20207ca1 branch memcpy 
+
+shutter_process_soft_swtich_button_up:
+4a58 6fe0c7e5 fetch 1 ,mem_shutter_hard_soft_switch_case 
+4a59 c1000000 rtneq hard_switch 
+4a5a 6fe0c7e7 fetch 1 ,mem_shutter_soft_switch_power_state 
+4a5b c000ca5d beq ss_state_power_on ,shutter_load_currenct_led_state 
+4a5c 20204b1e branch ui_soft_switch_botton_up 
+
+shutter_load_currenct_led_state:
+4a5d 6fe0c9e7 fetch 1 ,mem_shutter_soft_swtich_botton_down 
+4a5e c1808000 rtnne 1 
+4a5f 7049e700 jam 0 ,mem_shutter_soft_swtich_botton_down 
+4a60 6fe14793 fetch 2 ,mem_ui_state_map 
+4a61 c280325a bbit1 ui_state_bt_connected ,app_led_off 
+4a62 c284b25a bbit1 ui_state_ble_connected ,app_led_off 
+4a63 df20000b arg 11 ,loopcnt 
+4a64 d8c049e8 arg mem_shutter_soft_swtich_led_struct_temp ,contr 
+4a65 d8a049d1 arg mem_shutter_led_struct_app_led ,contw 
+4a66 20207ca1 branch memcpy 
+
+shutter_le_bb_event_timer:
+4a67 20404a6a call shutter_check_sleep_timer 
+4a68 20404a71 call shutter_check_power_off_timer 
+4a69 20204a7c branch ble_shutter_reconn_timer 
+
+shutter_check_sleep_timer:
+4a6a da6047e3 arg mem_shutter_sleep_timer ,regc 
+4a6b da404a6d arg shutter_sleep_timeout ,regb 
+4a6c 202031d6 branch timer_single_step_2b 
+
+shutter_sleep_timeout:
+4a6d 7047e702 jam ss_state_power_off ,mem_shutter_soft_switch_power_state 
+4a6e 2040325a call app_led_off 
+4a6f 20404ab1 call shutter_disconnect_current_connection 
+4a70 20204b0e branch shutter_wait_power_off 
+
+shutter_check_power_off_timer:
+4a71 da6049f4 arg mem_shutter_power_off_timer ,regc 
+4a72 da404a74 arg shutter_check_power_off_timeout ,regb 
+4a73 202031cf branch timer_single_step 
+
+shutter_check_power_off_timeout:
+4a74 6fe14793 fetch 2 ,mem_ui_state_map 
+4a75 c284cb0e bbit1 ui_state_ble_connected ,shutter_wait_power_off 
+4a76 c2804b0e bbit1 ui_state_bt_connected ,shutter_wait_power_off 
+4a77 6fe0c9d1 fetch 1 ,mem_shutter_led_struct_app_led_type 
+4a78 c000cb0e beq ui_led_state_blink_start ,shutter_wait_power_off 
+4a79 c0024b0e beq ui_led_state_blink_lighting ,shutter_wait_power_off 
+4a7a c002cb0e beq ui_led_state_blink_darking ,shutter_wait_power_off 
+4a7b 2020325c branch app_enter_hibernate 
+
+ble_shutter_reconn_timer:
+4a7c 6fe0c7e7 fetch 1 ,mem_shutter_soft_switch_power_state 
+4a7d c1808000 rtnne ss_state_power_on 
+4a7e da6047bf arg mem_ble_shutter_reconn_timer ,regc 
+4a7f da404a8e arg shutter_start_bluetooth_discovery ,regb 
+4a80 202031d6 branch timer_single_step_2b 
+
+shutter_process_idle:
+4a81 20404ade call shutter_send_data_to_master 
+4a82 20206096 branch keyscan_key_process 
+
+shutter_process_lpm_before:
+4a83 20405fc2 call gpio_set_before_lpm 
+4a84 2020608a branch keyscan_process_lpm_before 
+
+shutter_le_before_hibernate:
+4a85 20405fc2 call gpio_set_before_lpm 
+4a86 20206d2d branch disable_authrom 
+
+shutter_stop_bluetooth_discovery:
+4a87 6fe0c7ab fetch 1 ,mem_shutter_bluetooth_type 
+4a88 c2804a8a bbit1 ble_shutter ,ble_shutter_stop_bluetooth_discovery 
+4a89 20600000 rtn 
+
+ble_shutter_stop_bluetooth_discovery:
+4a8a 6fe147df fetch 2 ,mem_ble_shutter_connect_timeout 
+4a8b 67e147e1 store 2 ,mem_shutter_sleep_timeout 
+4a8c 67e147e3 store 2 ,mem_shutter_sleep_timer 
+4a8d 2020324a branch app_ble_stop_adv 
+
+shutter_start_bluetooth_discovery:
+4a8e 6fe0c7e7 fetch 1 ,mem_shutter_soft_switch_power_state 
+4a8f c1808000 rtnne ss_state_power_on 
+4a90 6fe0c7ab fetch 1 ,mem_shutter_bluetooth_type 
+4a91 c2804a93 bbit1 ble_shutter ,ble_shutter_start_discovery 
+4a92 20600000 rtn 
+
+ble_shutter_start_discovery:
+4a93 6fe14793 fetch 2 ,mem_ui_state_map 
+4a94 c3848000 rtnbit1 ui_state_ble_connected 
+4a95 6fe147dd fetch 2 ,mem_ble_shutter_discovery_timeout 
+4a96 67e147e1 store 2 ,mem_shutter_sleep_timeout 
+4a97 67e147e3 store 2 ,mem_shutter_sleep_timer 
+4a98 6fe147bb fetch 2 ,mem_ble_shutter_discovery_adv_interval 
+4a99 20404b33 call shutter_ble_adv_interval_set 
+4a9a 20403256 call app_led_start_blink 
+4a9b 6fe247c5 fetch 4 ,mem_ble_shutter_discovery_blink_on_time 
+4a9c 67e249d4 store 4 ,mem_shutter_led_struct_app_led_on_time 
+4a9d 6fe14793 fetch 2 ,mem_ui_state_map 
+4a9e c3858000 rtnbit1 ui_state_ble_adv 
+4a9f 2020324c branch app_ble_start_adv 
+
+shutter_start_reconnect:
+4aa0 6fe0c7e7 fetch 1 ,mem_shutter_soft_switch_power_state 
+4aa1 c1808000 rtnne ss_state_power_on 
+4aa2 6fe0c7ab fetch 1 ,mem_shutter_bluetooth_type 
+4aa3 c2804aa5 bbit1 ble_shutter ,ble_shutter_start_reconnect 
+4aa4 20600000 rtn 
+
+ble_shutter_start_reconnect:
+4aa5 6fe147bf fetch 2 ,mem_ble_shutter_reconn_timer 
+4aa6 684947bd fetcht 2 ,mem_ble_shutter_reconn_timeout 
+4aa7 604947bf storet 2 ,mem_ble_shutter_reconn_timer 
+4aa8 247a0000 nrtn blank 
+4aa9 6fe147b9 fetch 2 ,mem_ble_shutter_reconn_adv_interval 
+4aaa 20404b33 call shutter_ble_adv_interval_set 
+4aab 20403256 call app_led_start_blink 
+4aac 6fe247c1 fetch 4 ,mem_ble_shutter_reconn_blink_on_time 
+4aad 67e249d4 store 4 ,mem_shutter_led_struct_app_led_on_time 
+4aae 6fe14793 fetch 2 ,mem_ui_state_map 
+4aaf c3858000 rtnbit1 ui_state_ble_adv 
+4ab0 2020324c branch app_ble_start_adv 
+
+shutter_disconnect_current_connection:
+4ab1 6fe14793 fetch 2 ,mem_ui_state_map 
+4ab2 c284b254 bbit1 ui_state_ble_connected ,app_ble_disconnect 
+4ab3 20204a87 branch shutter_stop_bluetooth_discovery 
+
+shutter_check_data_enable:
+4ab4 20407d94 call disable_user 
+4ab5 6fe14793 fetch 2 ,mem_ui_state_map 
+4ab6 c284cab8 bbit1 ui_state_ble_connected ,shutter_check_ble_data_enable 
+4ab7 20600000 rtn 
+
+shutter_check_ble_data_enable:
+4ab8 6fe0c7b8 fetch 1 ,mem_ble_shutter_enable_notify 
+4ab9 207a0000 rtn blank 
+4aba 20207d92 branch enable_user 
+
+shutter_check_bluetooth_conn:
+4abb 20407d94 call disable_user 
+4abc 6fe14793 fetch 2 ,mem_ui_state_map 
+4abd c3800000 rtnbit1 ui_state_bt_connected 
+4abe c3848000 rtnbit1 ui_state_ble_connected 
+4abf 20207d92 branch enable_user 
+
+shutter_change_bluetooth_status_bt_disconn:
+4ac0 6fe0c7ab fetch 1 ,mem_shutter_bluetooth_type 
+4ac1 c2804ac3 bbit1 ble_shutter ,ble_shutter_change_bluetooth_status_bt_disconn 
+4ac2 20600000 rtn 
+
+ble_shutter_change_bluetooth_status_bt_disconn:
+4ac3 20204aa0 branch shutter_start_reconnect 
+
+shutter_check_send_data:
+4ac4 78567c00 disable user2 
+4ac5 6fe147e1 fetch 2 ,mem_shutter_sleep_timeout 
+4ac6 67e147e3 store 2 ,mem_shutter_sleep_timer 
+4ac7 20404abb call shutter_check_bluetooth_conn 
+4ac8 20344ac0 branch shutter_change_bluetooth_status_bt_disconn ,user 
+4ac9 20404ab4 call shutter_check_data_enable 
+4aca 24740000 nrtn user 
+4acb 78367c00 enable user2 
+4acc 20600000 rtn 
+
+shutter_key_change:
+4acd 20404ac4 call shutter_check_send_data 
+4ace 24760000 nrtn user2 
+4acf 1a227e00 deposit rega 
+4ad0 203a4ad4 branch shutter_key_release ,blank 
+
+shutter_key_press:
+4ad1 20403258 call app_led_on 
+4ad2 da6047f9 arg mem_key0_press ,regc 
+4ad3 20204ad6 branch push_queue_press_or_release 
+
+shutter_key_release:
+4ad4 2040325a call app_led_off 
+4ad5 da604821 arg mem_key0_release ,regc 
+
+push_queue_press_or_release:
+4ad6 dfe00005 arg max_queue_num ,pdata 
+4ad7 98effe00 imul32 queue ,pdata 
+4ad8 9a60a600 iadd regc ,regc 
+
+push_buffer_in_queue:
+4ad9 efe08013 ifetch 1 ,regc 
+4ada 207a0000 rtn blank 
+4adb 20404aea call queue_push_one_byte 
+4adc 1a60a601 increase 1 ,regc 
+4add 20204ad9 branch push_buffer_in_queue 
+
+shutter_send_data_to_master:
+4ade 6fe14793 fetch 2 ,mem_ui_state_map 
+4adf c284cae1 bbit1 ui_state_ble_connected ,pop_queue_to_ble_data 
+4ae0 20600000 rtn 
+
+pop_queue_to_ble_data:
+4ae1 20401b05 call le_fifo_check_nearly_full 
+4ae2 247a0000 nrtn blank 
+4ae3 20404aed call queue_pop_one_byte 
+4ae4 24740000 nrtn user 
+4ae5 1fe0ffff pincrease -1 
+4ae6 1feffe05 mul32 pdata ,shutter_ble_data_buffer ,pdata 
+4ae7 d8404849 arg mem_ble_data_buffer1 ,temp 
+4ae8 98408c00 iadd temp ,contr 
+4ae9 20204b37 branch le_send_notify_from_list 
+
+queue_push_one_byte:
+4aea 67e0895c store 1 ,mem_pdatatemp 
+4aeb da20095c arg mem_pdatatemp ,rega 
+4aec 20207875 branch queue_push 
+
+queue_pop_one_byte:
+4aed da20095c arg mem_pdatatemp ,rega 
+4aee 2040788c call queue_pop 
+4aef 24740000 nrtn user 
+4af0 6fe0895c fetch 1 ,mem_pdatatemp 
+4af1 20600000 rtn 
+
+ble_shutter_receive_data:
+4af2 6fe1443a fetch 2 ,mem_le_att_handle 
+4af3 c00c4a40 beq gatt_keyboard_write_handle ,ble_shutter_process_reconnect_complete 
+4af4 20600000 rtn 
+
+shutter_init_param:
+4af5 58000002 setarg 0x02 
+4af6 67e0c9f3 store 1 ,mem_shutter_power_off_timeout 
+4af7 58200008 setarg 0x00200008 
+4af8 67e247c9 store 4 ,mem_ble_shutter_interval_min 
+4af9 592c0005 setarg 0x012c0005 
+4afa e7e20005 istore 4 ,contw 
+4afb 70438317 jam 0x17 ,mem_le_local_mtu 
+4afc 5800001b setarg 0x1b 
+4afd 67e143d4 store 2 ,mem_le_pairing_handle 
+4afe 20401aa3 call le_set_config_fixed_ltk 
+4aff 20401abf call le_set_fixed_ltk 
+4b00 20401acc call le_set_justwork 
+4b01 20201aab branch le_set_config_read_authentication 
+
+shutter_load_buffer_config_form_datarom:
+4b02 df200028 arg ble_key_value_list_size ,loopcnt 
+4b03 d8a04849 arg mem_ble_data_buffer1 ,contw 
+4b04 d8c09e12 arg ble_shutter_key_value_list ,contr 
+4b05 20207c94 branch memcpy_fast 
+
+shutter_load_ble_gatt_form_datarom:
+4b06 df200139 arg ble_gatt_list_size ,loopcnt 
+4b07 d8c09af2 arg ble_shutter_gatt_list ,contr 
+4b08 20207c94 branch memcpy_fast 
+
+shutter_soft_swtich_power_on:
+4b09 20204aa0 branch shutter_start_reconnect 
+
+shutter_soft_swtich_power_off:
+4b0a da200000 arg 0 ,rega 
+4b0b da6049dc arg mem_shutter_power_off_led_style ,regc 
+4b0c 20407742 call ui_led_set_style_global 
+4b0d 20404ab1 call shutter_disconnect_current_connection 
+
+shutter_wait_power_off:
+4b0e 6fe0c9f3 fetch 1 ,mem_shutter_power_off_timeout 
+4b0f 67e0c9f4 store 1 ,mem_shutter_power_off_timer 
+4b10 20600000 rtn 
+
+ui_soft_swtich_init:
+4b11 58000000 setarg ss_state_power_up 
+4b12 20404b19 call ui_soft_swtich_init_power_on_time 
+4b13 70478a01 jam ui_button_state_up ,mem_ui_button_last_state 
+4b14 204076f1 call ui_button_init 
+4b15 204076fb call ui_button_polling 
+4b16 6fe14793 fetch 2 ,mem_ui_state_map 
+4b17 c3860000 rtnbit1 ui_state_btn_down 
+4b18 2020325c branch app_enter_hibernate 
+
+ui_soft_swtich_init_power_on_time:
+4b19 684944cf fetcht 2 ,mem_power_param_ptr 
+4b1a e7e08002 istore 1 ,temp 
+4b1b efe08005 ifetch 1 ,contw 
+4b1c 67e0c796 store 1 ,mem_ui_button_timeout 
+4b1d 20600000 rtn 
+
+ui_soft_switch_botton_up:
+4b1e 6fe144cf fetch 2 ,mem_power_param_ptr 
+4b1f efe0803f ifetch 1 ,pdata 
+4b20 c1800000 rtnne ss_state_power_up 
+4b21 2020325c branch app_enter_hibernate 
+
+ui_soft_switch_botton_long_press:
+4b22 684944cf fetcht 2 ,mem_power_param_ptr 
+4b23 efe08002 ifetch 1 ,temp 
+4b24 c000cb2d beq ss_state_power_on ,ui_soft_switch_power_off 
+
+ui_soft_switch_power_on:
+4b25 58000001 setarg ss_state_power_on 
+4b26 684944cf fetcht 2 ,mem_power_param_ptr 
+4b27 e7e08002 istore 1 ,temp 
+4b28 18408c02 add temp ,ss_power_off_time ,contr 
+4b29 efe08006 ifetch 1 ,contr 
+4b2a e7e08016 istore 1 ,mem_ui_button_timeout 
+4b2b efe10006 ifetch 2 ,contr 
+4b2c 20207d47 branch callback_func 
+
+ui_soft_switch_power_off:
+4b2d 58000002 setarg ss_state_power_off 
+4b2e 20404b19 call ui_soft_swtich_init_power_on_time 
+4b2f 18408c05 add temp ,ss_power_off_cb ,contr 
+4b30 efe10006 ifetch 2 ,contr 
+4b31 203a325c branch app_enter_hibernate ,blank 
+4b32 20207d47 branch callback_func 
+
+shutter_ble_adv_interval_set:
+4b33 67e14159 store 2 ,mem_lpm_interval 
+4b34 1fe0fffc increase -4 ,pdata 
+4b35 67e1442b store 2 ,mem_le_adv_interval 
+4b36 20600000 rtn 
+
+le_send_notify_from_list:
+4b37 efe08006 ifetch 1 ,contr 
+4b38 1fe22200 copy pdata ,rega 
+4b39 e8410006 ifetcht 2 ,contr 
+4b3a 20407c29 call store_contr 
+4b3b 20401e40 call le_att_malloc_tx_notify 
+4b3c 1a227200 copy rega ,loopcnt 
+4b3d 20407c23 call get_contr 
+4b3e 20207ca1 branch memcpy 
+
+shutter_default_init:
+4b3f 6fe149f5 fetch 2 ,mem_shutter_key_conf0_temp 
+4b40 67e147f1 store 2 ,mem_shutter_key_conf0 
+4b41 6fe0c9f7 fetch 1 ,mem_shutter_led_struct_app_led_gpio_temp 
+4b42 67e0c9d3 store 1 ,mem_shutter_led_struct_app_led_gpio 
+4b43 67e0c9de store 1 ,mem_shutter_power_off_led_style_gpio 
+4b44 6fe0c9f8 fetch 1 ,mem_shutter_hard_soft_switch_case_temp 
+4b45 67e0c7e5 store 1 ,mem_shutter_hard_soft_switch_case 
+4b46 6fe0c9f9 fetch 1 ,mem_shutter_soft_switch_button_gpio_temp 
+4b47 67e0c7e6 store 1 ,mem_shutter_soft_switch_button_gpio 
+4b48 7047ab01 jam 0x01 ,mem_shutter_bluetooth_type 
+4b49 58000030 setarg 0x0030 
+4b4a 67e147b6 store 2 ,mem_classic_shutter_random_mac_offset_addr 
+4b4b 58000000 setarg 0x0000 
+4b4c 67e147ac store 2 ,mem_shutter_config_eeprom_offset_addr 
+4b4d 58000002 setarg 0x0002 
+4b4e 67e147f9 store 2 ,mem_key0_press 
+4b4f 67e147fe store 2 ,mem_key1_press 
+4b50 58000006 setarg 0x0006 
+4b51 67e14821 store 2 ,mem_key0_release 
+4b52 67e14826 store 2 ,mem_key1_release 
+4b53 58000007 setarg 0x0007 
+4b54 67e14803 store 2 ,mem_key2_press 
+4b55 58000008 setarg 0x0008 
+4b56 67e1482b store 2 ,mem_key2_release 
+4b57 580047e7 setarg mem_shutter_soft_switch_power_state 
+4b58 67e144cf store 2 ,mem_power_param_ptr 
+4b59 58201400 setarg 0x201400 
+4b5a 67e1c7e7 store 3 ,mem_shutter_soft_switch_power_state 
+4b5b 70409901 jam 0x01 ,mem_lpm_mode 
+4b5c 58000100 setarg 0x0100 
+4b5d 67e14159 store 2 ,mem_lpm_interval 
+4b5e 70415b08 jam 0x08 ,mem_lpm_overhead 
+4b5f 70417705 jam 0x05 ,mem_lpm_mult 
+4b60 70417802 jam 0x02 ,mem_lpm_mult_timeout 
+4b61 58000030 setarg 0x0030 
+4b62 67e14458 store 2 ,mem_sniff_param_interval 
+4b63 58000001 setarg 0x0001 
+4b64 e7e10005 istore 2 ,contw 
+4b65 7046480a jam 0x0a ,mem_unsniff2sniff_timer 
+4b66 58000096 setarg 0x0096 
+4b67 67e147c1 store 2 ,mem_ble_shutter_reconn_blink_on_time 
+4b68 e7e10005 istore 2 ,contw 
+4b69 58000296 setarg 0x0296 
+4b6a 67e147c5 store 2 ,mem_ble_shutter_discovery_blink_on_time 
+4b6b e7e10005 istore 2 ,contw 
+4b6c 38000010 setsect 0 ,0x10 
+4b6d 38048008 setsect 1 ,0x8008 
+4b6e 380ac000 setsect 2 ,0x2c000 
+4b6f 380c0004 setsect 3 ,0x04 
+4b70 67e447d1 store 8 ,mem_ble_shutter_interval_min_new 
+4b71 70449101 jam 0x01 ,mem_ui_led_struct_num 
+4b72 580049d1 setarg mem_shutter_led_struct_app_led 
+4b73 67e14492 store 2 ,mem_ui_led_struct_ptr 
+4b74 58000000 setarg 0x0000 
+4b75 67e149d1 store 2 ,mem_shutter_led_struct_app_led 
+4b76 380001a0 setsect 0 ,0x1a0 
+4b77 38040068 setsect 1 ,0x68 
+4b78 38080000 setsect 2 ,0x00 
+4b79 380c0000 setsect 3 ,0x00 
+4b7a 67e449d4 store 8 ,mem_shutter_led_struct_app_led_on_time 
+4b7b 58000301 setarg 0x0301 
+4b7c 67e149dc store 2 ,mem_shutter_power_off_led_style 
+4b7d 380001a0 setsect 0 ,0x1a0 
+4b7e 380400e8 setsect 1 ,0xe8 
+4b7f 38080000 setsect 2 ,0x00 
+4b80 380c0000 setsect 3 ,0x00 
+4b81 67e449df store 8 ,mem_shutter_power_off_led_style_on_time 
+4b82 5800000e setarg 0x000e 
+4b83 67e147b9 store 2 ,mem_ble_shutter_reconn_adv_interval 
+4b84 58000140 setarg 0x0140 
+4b85 67e147bb store 2 ,mem_ble_shutter_discovery_adv_interval 
+4b86 67e1442b store 2 ,mem_le_adv_interval 
+4b87 58000050 setarg 0x0050 
+4b88 67e147bd store 2 ,mem_ble_shutter_reconn_timeout 
+4b89 70443507 jam 0x07 ,mem_le_adv_channel_map 
+4b8a 70442a00 jam 0x00 ,mem_le_adv_enable 
+4b8b 380000fb setsect 0 ,0xfb 
+4b8c 3806c212 setsect 1 ,0x2c212 
+4b8d 3808800f setsect 2 ,0x800f 
+4b8e 380c0021 setsect 3 ,0x21 
+4b8f 67e4444f store 8 ,mem_local_rx_max_octets 
+4b90 38000bb8 setsect 0 ,0x0bb8 
+4b91 380402ee setsect 1 ,0x02ee 
+4b92 67e247dd store 4 ,mem_ble_shutter_discovery_timeout 
+4b93 58004902 setarg mem_queue_each_size 
+4b94 67e1448f store 2 ,mem_queue_ptr 
+4b95 58002001 setarg 0x2001 
+4b96 67e14902 store 2 ,mem_queue_each_size 
+4b97 7043ea1f jam 0x1f ,mem_le_adv_data_len 
+4b98 38010102 setsect 0 ,0x10102 
+4b99 380480c1 setsect 1 ,0x80c1 
+4b9a 38098120 setsect 2 ,0x18120 
+4b9b 380c640c setsect 3 ,0x640c 
+4b9c 67e4c3eb store 9 ,mem_le_adv_data 
+4b9d 380003c1 setsect 0 ,0x3c1 
+4b9e e7e10005 istore 2 ,contw 
+4b9f 70440a1f jam 0x1f ,mem_le_scan_data_len 
+4ba0 3802090d setsect 0 ,0x2090d 
+4ba1 38074c15 setsect 1 ,0x34c15 
+4ba2 380a8532 setsect 2 ,0x28532 
+4ba3 380dd1d5 setsect 3 ,0x1d1d5 
+4ba4 67e4c40b store 9 ,mem_le_scan_data 
+4ba5 38026574 setsect 0 ,0x26574 
+4ba6 3804001c setsect 1 ,0x1c 
+4ba7 e7e18005 istore 3 ,contw 
+4ba8 580047ee setarg mem_shutter_keyscan 
+4ba9 67e144cb store 2 ,mem_keyscan_ptr 
+4baa 7047ee02 jam 0x02 ,mem_shutter_key_num 
+4bab 70448217 jam 0x17 ,mem_app_connection_options 
+4bac 58004927 setarg mem_shutter_nv_data 
+4bad 67e1448c store 2 ,mem_nv_data_ptr 
+4bae 70448e05 jam 0x05 ,mem_nv_data_number 
+4baf 58002540 setarg 0x2540 
+4bb0 67e140b2 store 2 ,mem_class 
+4bb1 58040003 setarg 0x040003 
+4bb2 67e1c76c store 3 ,mem_lmp_io_cap_payload_iocap 
+4bb3 70477303 jam 0x03 ,mem_ssp_mode_flag 
+4bb4 70476b01 jam 0x01 ,mem_ssp_enable 
+4bb5 70479501 jam 0x01 ,mem_ui_profile_supported 
+4bb6 70415f00 jam 0x00 ,mem_ptt 
+4bb7 3803ffff setsect 0 ,0x3ffff 
+4bb8 3806fe23 setsect 1 ,0x2fe23 
+4bb9 380999d9 setsect 2 ,0x199d9 
+4bba 380c020d setsect 3 ,0x20d 
+4bbb 67e440a0 store 8 ,mem_features 
+4bbc 58009af2 setarg ble_shutter_gatt_list 
+4bbd 67e14399 store 2 ,mem_ui_le_uuid_table 
+4bbe 7040d801 jam 0x01 ,mem_eir_enable 
+4bbf 38010306 setsect 0 ,0x10306 
+4bc0 38040004 setsect 1 ,0x4 
+4bc1 38082010 setsect 2 ,0x2010 
+4bc2 380c9040 setsect 3 ,0x9040 
+4bc3 67e4c669 store 9 ,mem_all_uuid_16bits 
+4bc4 38020011 setsect 0 ,0x20011 
+4bc5 38040044 setsect 1 ,0x44 
+4bc6 e7e28005 istore 5 ,contw 
+4bc7 70467f00 jam 0x00 ,mem_all_uuid_128bits 
+4bc8 58009c2b setarg classic_shutter_sdp_list 
+4bc9 67e14667 store 2 ,mem_ui_uuid_table 
+4bca 20600000 rtn 
+
+rf_debug_rx_gpio_low:
+4bcb 6fe0c4db fetch 1 ,mem_rf_debug_rx_gpio 
+
+rf_debug_gpio_low:
+4bcc d840003e arg gpcfg_output_low ,temp 
+4bcd 20205fb2 branch gpio_config_function 
+
+rf_debug_rx_on_line:
+
+rf_debug_rx_gpio_high:
+4bce 6fe0c4db fetch 1 ,mem_rf_debug_rx_gpio 
+
+rf_debug_gpio_high:
+4bcf d840003f arg gpcfg_output_high ,temp 
+4bd0 20205fb2 branch gpio_config_function 
+
+rf_debug_rx_gpio_h_l_h:
+4bd1 20404bce call rf_debug_rx_gpio_high 
+
+rf_debug_rx_gpio_l_h:
+4bd2 20404bcb call rf_debug_rx_gpio_low 
+4bd3 20204bce branch rf_debug_rx_gpio_high 
+
+rf_debug_rx_gpio_l_h_l:
+
+rf_debug_shutdown_radio_line:
+4bd4 20404bd2 call rf_debug_rx_gpio_l_h 
+
+rf_debug_rx_crc_line:
+4bd5 20204bcb branch rf_debug_rx_gpio_low 
+
+rf_debug_rx_sync_line:
+4bd6 20204bd2 branch rf_debug_rx_gpio_l_h 
+
+rf_debug_rx_crc_fail_line:
+4bd7 20404bd2 call rf_debug_rx_gpio_l_h 
+4bd8 20204bd4 branch rf_debug_rx_gpio_l_h_l 
+
+rf_debug_rx_match_line:
+
+rf_debug_rx_crc_error_line:
+
+rf_debug_rx_sync_timeout_line:
+4bd9 20204bcb branch rf_debug_rx_gpio_low 
+
+rf_debug_tx_off_line:
+
+rf_debug_tx_gpio_low:
+4bda 6fe0c4dc fetch 1 ,mem_rf_debug_tx_gpio 
+4bdb 20204bcc branch rf_debug_gpio_low 
+
+rf_debug_tx_on_line:
+
+rf_debug_tx_gpio_high:
+4bdc 6fe0c4dc fetch 1 ,mem_rf_debug_tx_gpio 
+4bdd 20204bcf branch rf_debug_gpio_high 
+
+rf_debug_tx_gpio_l_h_l:
+4bde 20404bda call rf_debug_tx_gpio_low 
+4bdf 20404bdc call rf_debug_tx_gpio_high 
+4be0 20204bda branch rf_debug_tx_gpio_low 
+
+hci_init:
+4be1 20800000 clear_stack 
+4be2 20406148 call wdt_set_disable 
+4be3 20404bec call hci_init_clksel_xtal 
+4be4 20404bee call hci_init_uart_default_config 
+4be5 20404c02 call hci_init_uart_config 
+4be6 20404c1e call hci_init_pwm_default_config 
+4be7 20404c22 call hci_init_pwm 
+4be8 7009fc01 jam 1 ,mem_hci_command_complete_num_hci_command_packet 
+4be9 7009f904 jam hci_h4_type_event ,mem_hci_event_head_type 
+
+hci_process_loop:
+4bea 20404c2d call hci_process_check_uart_rx 
+4beb 20204bea branch hci_process_loop 
+
+hci_init_clksel_xtal:
+4bec 70804204 jam clksel_xtal ,core_clksel 
+4bed 20600000 rtn 
+
+hci_init_uart_default_config:
+4bee 20404bf2 call hci_init_uart_default_config_tx 
+4bef 20404bf6 call hci_init_uart_default_config_rx 
+4bf0 20404bfa call hci_init_uart_default_config_rts 
+4bf1 20204bfe branch hci_init_uart_default_config_cts 
+
+hci_init_uart_default_config_tx:
+4bf2 6fe0c7ab fetch 1 ,mem_hci_uart_tx_gpio 
+4bf3 247a0000 nrtn blank 
+4bf4 7047ab0d jam hci_uart_tx_gpio_num ,mem_hci_uart_tx_gpio 
+4bf5 20600000 rtn 
+
+hci_init_uart_default_config_rx:
+4bf6 6fe0c7ac fetch 1 ,mem_hci_uart_rx_gpio 
+4bf7 247a0000 nrtn blank 
+4bf8 7047ac0e jam hci_uart_rx_gpio_num ,mem_hci_uart_rx_gpio 
+4bf9 20600000 rtn 
+
+hci_init_uart_default_config_rts:
+4bfa 6fe0c7ad fetch 1 ,mem_hci_uart_rts_gpio 
+4bfb 247a0000 nrtn blank 
+4bfc 7047ad09 jam hci_uart_rts_gpio_num ,mem_hci_uart_rts_gpio 
+4bfd 20600000 rtn 
+
+hci_init_uart_default_config_cts:
+4bfe 6fe0c7ae fetch 1 ,mem_hci_uart_cts_gpio 
+4bff 247a0000 nrtn blank 
+4c00 7047ae0a jam hci_uart_cts_gpio_num ,mem_hci_uart_cts_gpio 
+4c01 20600000 rtn 
+
+hci_init_uart_config:
+4c02 58001800 setarg mem_h5rx_buf 
+4c03 67e1095c store 2 ,mem_pdatatemp 
+4c04 58001bff setarg mem_h5rx_buf_end 
+4c05 e7e10005 istore 2 ,contw 
+4c06 58001c00 setarg mem_h5tx_buf 
+4c07 e7e10005 istore 2 ,contw 
+4c08 58001fff setarg mem_h5tx_buf_end 
+4c09 e7e10005 istore 2 ,contw 
+4c0a 6fe4095c fetch 8 ,mem_pdatatemp 
+4c0b 20405dd6 call uarta_init_dma_mem 
+4c0c 20405dfd call uart_clock_select_main_freq_crystal 
+4c0d d841c200 arg 115200 ,temp 
+4c0e 20405dee call uarta_calc_baud_rate_config 
+4c0f 6fe0c7ab fetch 1 ,mem_hci_uart_tx_gpio 
+4c10 d8400008 arg gpcfg_uart_txd ,temp 
+4c11 20405fb3 call gpio_config_function_int 
+4c12 6fe0c7ac fetch 1 ,mem_hci_uart_rx_gpio 
+4c13 d8400049 arg gpcfg_uart_rxd | gpcfg_pullup ,temp 
+4c14 20405fb3 call gpio_config_function_int 
+4c15 6fe0c7ad fetch 1 ,mem_hci_uart_rts_gpio 
+4c16 d840000a arg gpcfg_uart_rts ,temp 
+4c17 20405fb3 call gpio_config_function_int 
+4c18 6fe0c7ae fetch 1 ,mem_hci_uart_cts_gpio 
+4c19 d840000b arg gpcfg_uart_cts ,temp 
+4c1a 20405fb3 call gpio_config_function_int 
+4c1b d8400081 arg fun_uart_control_enable | fun_uart_control_setting_rate_baud ,temp 
+4c1c 60588060 storet 1 ,core_uart_ctrl 
+4c1d 20207d44 branch clean_mem 
+
+hci_init_pwm_default_config:
+4c1e 6fe0c7af fetch 1 ,mem_hci_pwm_12mhz_gpio 
+4c1f 247a0000 nrtn blank 
+4c20 7047af0c jam hci_pmw_12mhz_gpio_num ,mem_hci_pwm_12mhz_gpio 
+4c21 20600000 rtn 
+
+hci_init_pwm:
+4c22 6fe0c7af fetch 1 ,mem_hci_pwm_12mhz_gpio 
+4c23 d8400010 arg gpcfg_pwm_out0 ,temp 
+4c24 20405fb3 call gpio_config_function_int 
+4c25 da200040 arg 0x40 ,rega 
+4c26 204060c4 call pwm_init 
+4c27 da200000 arg 0 ,rega 
+4c28 da400000 arg 0 ,regb 
+4c29 58000000 setarg 0 
+4c2a 204060e9 call pwm_duty_cycle_set 
+4c2b d8e00000 arg 0 ,queue 
+4c2c 2020612f branch pwm_set_select 
+
+hci_process_check_uart_rx:
+4c2d 6ff10112 fetch 2 ,core_uart_rxitems 
+4c2e 1fe0a3fc add pdata ,-4 ,rega 
+4c2f 24610000 nrtn positive 
+4c30 20405e1d call uarta_prepare_rx 
+4c31 efe08003 ifetch 1 ,contru 
+4c32 c000cc35 beq hci_h4_type_cmd ,hci_parse_packet_cmd 
+4c33 20407c52 call delay_10ms 
+4c34 20205e2d branch uarta_clear_current_rx 
+
+hci_parse_packet_cmd:
+4c35 efe10003 ifetch 2 ,contru 
+4c36 67e109fd store 2 ,mem_hci_opcode 
+4c37 d84003ff arg 0x3ff ,temp 
+4c38 98410400 iand temp ,temp 
+4c39 604909f6 storet 2 ,mem_hci_opcode_ocf 
+4c3a 1feb7e00 rshift2 pdata ,pdata 
+4c3b 1fecfe00 rshift8 pdata ,pdata 
+4c3c 67e089f8 store 1 ,mem_hci_opcode_ogf 
+4c3d efe08003 ifetch 1 ,contru 
+4c3e 1fe0ffff pincrease -1 
+4c3f 9a267c00 isub rega ,null 
+4c40 20610000 rtn positive 
+4c41 20404c43 call hci_parse_complete_packet 
+4c42 20204c9e branch hci_drop_current_packet 
+
+hci_parse_complete_packet:
+4c43 6fe089f8 fetch 1 ,mem_hci_opcode_ogf 
+4c44 c01fcc46 beq hci_ogf_vendor_specific_debug ,hci_parse_packet_cmd_ogf_vendorspecific_debug 
+4c45 20204c8a branch hci_send_event_command_complete_error_command_nuknown 
+
+hci_parse_packet_cmd_ogf_vendorspecific_debug:
+4c46 44f2c01c bpatch patch1c_5 ,mem_patch1c 
+4c47 6fe089f6 fetch 1 ,mem_hci_opcode_ocf 
+4c48 c0004c89 beq hci_vendor_cmd_reset ,hci_normal_reply 
+4c49 c000cc51 beq hci_vendor_cmd_chipid ,phci_grp_vendor_chipid 
+4c4a c0014c56 beq hci_vendor_cmd_baud ,phci_grp_vendor_baud 
+4c4b c001cc64 beq hci_vendor_cmd_patch ,phci_grp_vendor_patch 
+4c4c c0024c6e beq hci_vendor_cmd_patch_done ,phci_grp_vendor_done 
+4c4d c002cc89 beq hci_vendor_cmd_echo ,hci_normal_reply 
+4c4e c0084c7f beq hci_vendor_cmd_mem ,phci_grp_vendor_mem 
+4c4f c00a4c85 beq hci_vendor_cmd_set_flow_control ,phci_grp_vendor_flow_control 
+4c50 20204c89 branch hci_normal_reply 
+
+phci_grp_vendor_chipid:
+4c51 7009ff00 jam command_succeeded ,mem_hci_command_complete_return_parameter 
+4c52 6ff10000 fetch 2 ,core_chipid 
+4c53 67e10a00 store 2 ,mem_hci_command_complete_return_parameter_chip_id 
+4c54 df200003 arg 3 ,loopcnt 
+4c55 20204c91 branch hci_send_event_command_complete 
+
+phci_grp_vendor_baud:
+4c56 efe10003 ifetch 2 ,contu 
+4c57 67f10052 store 2 ,core_uart_baud 
+4c58 20600000 rtn 
+
+phci_grp_vendor_patch_common:
+4c59 efe08003 ifetch 1 ,contu 
+4c5a 1fe20400 copy pdata ,temp 
+4c5b 67f08024 store 1 ,core_ucode_low 
+4c5c efe08003 ifetch 1 ,contu 
+4c5d 98408400 iadd temp ,temp 
+4c5e 79207e07 set1 7 ,pdata 
+4c5f 67f08023 store 1 ,core_ucode_ctrl 
+4c60 efe08003 ifetch 1 ,contu 
+4c61 98408400 iadd temp ,temp 
+4c62 1fe27200 copy pdata ,loopcnt 
+4c63 20600000 rtn 
+
+phci_grp_vendor_patch:
+4c64 20404c59 call phci_grp_vendor_patch_common 
+
+phci_grp_vendor_patch_loop:
+4c65 efe08003 ifetch 1 ,contu 
+4c66 67f08025 store 1 ,core_ucode_data 
+4c67 98408400 iadd temp ,temp 
+4c68 c2004c65 loop phci_grp_vendor_patch_loop 
+
+phci_grp_vendor_patch_check_sum:
+4c69 184104ff and temp ,0xff ,temp 
+4c6a efe08003 ifetch 1 ,contu 
+4c6b 98467c00 isub temp ,null 
+4c6c 2422cc7d nbranch phci_grp_vendor_patch_bad ,zero 
+4c6d 20204c89 branch hci_normal_reply 
+
+phci_grp_vendor_done:
+4c6e df200020 arg 0x20 ,loopcnt 
+4c6f d8a04000 arg mem_patch00 ,contw 
+4c70 d8400000 arg 0 ,temp 
+
+phci_grp_vendor_done_loop:
+4c71 efe08003 ifetch 1 ,contu 
+4c72 e7e08005 istore 1 ,contw 
+4c73 98408400 iadd temp ,temp 
+4c74 c2004c71 loop phci_grp_vendor_done_loop 
+4c75 184104ff and temp ,0xff ,temp 
+4c76 efe08003 ifetch 1 ,contu 
+4c77 98467c00 isub temp ,null 
+4c78 2422cc7d nbranch phci_grp_vendor_patch_bad ,zero 
+4c79 70802300 jam 0 ,core_ucode_ctrl 
+4c7a 20404c89 call hci_normal_reply 
+4c7b 20407d49 call wait_uarttx 
+4c7c 20200801 branch soft_reset 
+
+phci_grp_vendor_patch_bad:
+4c7d 70802300 jam 0 ,core_ucode_ctrl 
+4c7e 20204c8a branch hci_send_event_command_complete_error_command_nuknown 
+
+phci_grp_vendor_mem:
+4c7f efe08003 ifetch 1 ,contu 
+4c80 1fe27200 copy pdata ,loopcnt 
+4c81 efe10003 ifetch 2 ,contu 
+4c82 1fe20a00 copy pdata ,contw 
+4c83 20405e73 call uart_copy_rx_bytes 
+4c84 20204c89 branch hci_normal_reply 
+
+phci_grp_vendor_flow_control:
+4c85 6ff08060 fetch 1 ,core_uart_ctrl 
+4c86 79207e04 set1 bit_uart_control_flow_control ,pdata 
+4c87 67f08060 store 1 ,core_uart_ctrl 
+4c88 20204c89 branch hci_normal_reply 
+
+hci_normal_reply:
+4c89 20204c8e branch hci_send_event_command_complete_without_payload 
+
+hci_send_event_command_complete_error_command_nuknown:
+4c8a 7009ff01 jam command_unknown ,mem_hci_command_complete_return_parameter 
+4c8b 20204c8f branch hci_send_event_command_complete_without_payload + 1 
+
+hci_send_event_command_complete_error_command_disallowed:
+4c8c 7009ff0c jam command_disallowed ,mem_hci_command_complete_return_parameter 
+4c8d 20204c8f branch hci_send_event_command_complete_without_payload + 1 
+
+hci_send_event_command_complete_without_payload:
+4c8e 7009ff00 jam command_succeeded ,mem_hci_command_complete_return_parameter 
+4c8f df200001 arg 1 ,loopcnt 
+4c90 20204c91 branch hci_send_event_command_complete 
+
+hci_send_event_command_complete:
+4c91 7009fa0e jam hci_event_command_complete ,mem_hci_event_head_event_code 
+4c92 1f20fe03 add loopcnt ,3 ,pdata 
+4c93 67e089fb store 1 ,mem_hci_event_para_total_length 
+4c94 20404c9a call hci_prepare_send_event 
+4c95 6fe189fc fetch 3 ,mem_hci_command_complete_num_hci_command_packet 
+4c96 e7e18003 istore 3 ,contwu 
+4c97 d8c009ff arg mem_hci_command_complete_return_parameter ,contr 
+4c98 20405e59 call uart_copy_tx_bytes 
+4c99 20205e39 branch uarta_send_register_pop 
+
+hci_prepare_send_event:
+4c9a 20405e35 call uarta_prepare_tx_register_push 
+4c9b 6fe189f9 fetch 3 ,mem_hci_event_head_type 
+4c9c e7e18003 istore 3 ,contwu 
+4c9d 20600000 rtn 
+
+hci_drop_current_packet:
+4c9e 20405e1d call uarta_prepare_rx 
+4c9f 18608603 increase 3 ,contru 
+4ca0 efe08003 ifetch 1 ,contru 
+4ca1 98608600 iadd contru ,contru 
+4ca2 20205e29 branch uarta_rxdone 
+
+cmd_exit:
+4ca3 7041de00 jam 0 ,mem_hci_cmd 
+4ca4 20600000 rtn 
+
+cmd_check_plap:
+4ca5 6fe341e0 fetch 6 ,mem_hci_plap 
+4ca6 684b0040 fetcht 6 ,mem_plap 
+4ca7 98467c00 isub temp ,null 
+4ca8 20600000 rtn 
+
+hid_rx_process:
+4ca9 44f3401c bpatch patch1c_6 ,mem_patch1c 
+4caa 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+4cab 1fe20c00 copy pdata ,contr 
+4cac efe08006 ifetch 1 ,contr 
+4cad 67e0c5fc store 1 ,mem_l2cap_rcv_hidtype 
+4cae 1fe1040f and pdata ,0x0f ,temp 
+4caf 1ff1fe00 rshift4 pdata ,pdata 
+4cb0 c004ccca beq hid_type_set_idle ,hid_rx_process_handshake 
+4cb1 c003ccca beq hid_type_set_protocol ,hid_rx_process_handshake 
+4cb2 c0054cd9 beq hid_type_data ,hid_rx_process_data 
+4cb3 c002ccc2 beq hid_type_set_report ,hid_rx_process_set_report 
+4cb4 c000ccb6 beq hid_type_control ,hid_rx_process_hid_control 
+4cb5 20600000 rtn 
+
+hid_rx_process_hid_control:
+4cb6 18427e00 copy temp ,pdata 
+4cb7 c002ccba beq hid_control_p_virtualcableunplug ,hid_rx_process_virtual_cable_unplug 
+4cb8 c001ccc1 beq hid_control_p_suspend ,hid_rx_process_suspend 
+4cb9 20600000 rtn 
+
+hid_rx_process_virtual_cable_unplug:
+4cba 70095b27 jam bt_evt_virtual_cable_unplug ,mem_fifo_temp 
+4cbb 204077a7 call ui_ipc_send_event 
+4cbc 6fe0c09a fetch 1 ,mem_device_option 
+4cbd c1840000 rtnne dvc_op_mouse 
+4cbe 18427e00 copy temp ,pdata 
+4cbf c002c367 beq hid_control_p_virtualcableunplug ,mouse_irtual_cable_unplug 
+4cc0 20600000 rtn 
+
+hid_rx_process_suspend:
+4cc1 20600000 rtn 
+
+hid_rx_process_set_report:
+4cc2 20404cd9 call hid_rx_process_data 
+4cc3 da200001 arg 0x01 ,rega 
+4cc4 20404cdd call hid_malloc_tx_buff 
+4cc5 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+4cc6 e7e10005 istore 2 ,contw 
+4cc7 58000000 setarg 0x00 
+4cc8 e7e08005 istore 1 ,contw 
+4cc9 20600000 rtn 
+
+hid_rx_process_handshake:
+4cca da200001 arg 1 ,rega 
+4ccb 20404cdd call hid_malloc_tx_buff 
+4ccc 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+4ccd e7e10005 istore 2 ,contw 
+4cce 58000000 setarg 0 
+4ccf e7e08005 istore 1 ,contw 
+4cd0 70095001 jam 1 ,mem_ui_data_txbuff_length 
+4cd1 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+4cd2 79207e06 set1 l2cap_channel_hid_handshake_done ,pdata 
+4cd3 67e0c4e9 store 1 ,mem_hid_control_state 
+4cd4 70095b12 jam bt_evt_hid_handshake ,mem_fifo_temp 
+4cd5 204077a7 call ui_ipc_send_event 
+4cd6 6fe0c09a fetch 1 ,mem_device_option 
+4cd7 c1840000 rtnne dvc_op_mouse 
+4cd8 20204347 branch mouse_bt_hid_handshake_boot_check 
+
+hid_rx_process_data:
+4cd9 efe08006 ifetch 1 ,contr 
+4cda c000ccdc beq hid_report_id_kb ,hid_rx_process_data_hid_kb 
+4cdb 20600000 rtn 
+
+hid_rx_process_data_hid_kb:
+4cdc 20600000 rtn 
+
+hid_malloc_tx_buff:
+4cdd 204051ba call l2cap_malloc 
+4cde 1a220400 copy rega ,temp 
+4cdf 60488950 storet 1 ,mem_ui_data_txbuff_length 
+4ce0 1fe20a00 copy pdata ,contw 
+4ce1 1a227e00 copy rega ,pdata 
+4ce2 e7e10005 istore 2 ,contw 
+4ce3 20600000 rtn 
+
+l2cap_init:
+4ce4 2035cce9 branch l2cap_init_wake ,wake 
+
+l2cap_init_work:
+4ce5 580045fd setarg mem_l2cap_xmem_end 
+4ce6 d8a044dd arg mem_l2cap_xmem_start ,contw 
+4ce7 98a67200 isub contw ,loopcnt 
+4ce8 20407c68 call clear_mem 
+
+l2cap_init_wake:
+4ce9 44f3c01c bpatch patch1c_7 ,mem_patch1c 
+4cea 58000424 setarg mem_sdp_mem_end 
+4ceb d8a003e4 arg mem_sdp_mem_start ,contw 
+4cec 98a67200 isub contw ,loopcnt 
+4ced 20407c68 call clear_mem 
+4cee 5800037a setarg mem_l2cap_mem_end 
+4cef d8a0030e arg mem_l2cap_mem_start ,contw 
+4cf0 98a67200 isub contw ,loopcnt 
+4cf1 20407c68 call clear_mem 
+4cf2 20205288 branch l2cap_lpm_load_txbuf 
+
+process_rx_l2cap_pkt:
+4cf3 44f4401d bpatch patch1d_0 ,mem_patch1d 
+4cf4 18c20400 copy contr ,temp 
+4cf5 18420c00 copy temp ,contr 
+4cf6 efe10006 ifetch 2 ,contr 
+4cf7 67e10317 store 2 ,mem_l2cap_rx_pkt_length 
+4cf8 efe10006 ifetch 2 ,contr 
+4cf9 67e10319 store 2 ,mem_l2cap_rx_cid 
+4cfa 18c27e00 deposit contr 
+4cfb 67e10315 store 2 ,mem_l2cap_payload_ptr 
+4cfc 6fe0c792 fetch 1 ,memui_reconnect_mode 
+4cfd c0004cff beq no_reconnection ,l2cap_rx_multiplexing 
+4cfe 2020506a branch ml2cap_rx_multiplexing 
+
+l2cap_rx_multiplexing:
+4cff 6fe10317 fetch 2 ,mem_l2cap_rx_pkt_length 
+4d00 203a4d77 branch l2cap_rx_reset_state ,blank 
+4d01 44f4c01d bpatch patch1d_1 ,mem_patch1d 
+4d02 6fe08319 fetch 1 ,mem_l2cap_rx_cid 
+4d03 c000cd15 beq l2cap_signal_channel ,l2cap_call_proc_signal 
+
+l2cap_rx_multiplexing0:
+4d04 c0284d57 beq l2cap_sdp_channel ,l2cap_call_proc_sdp 
+4d05 c028cd70 beq l2cap_rfcomm_channel ,l2cap_call_proc_rfcomm 
+4d06 c0294d6e beq l2cap_hid_control_channel ,l2cap_call_proc_hid 
+4d07 c029cd6e beq l2cap_hid_interrupt_channel ,l2cap_call_proc_hid 
+4d08 20204d77 branch l2cap_rx_reset_state 
+
+l2cap_check_map:
+4d09 44f5401d bpatch patch1d_2 ,mem_patch1d 
+4d0a 2040521e call l2cap_malloc_get_full_map 
+4d0b 6fe0c4ed fetch 1 ,mem_used_map 
+4d0c c0007d9e beq 0 ,set_pdata_0 
+4d0d c000fd9e beq 1 ,set_pdata_0 
+4d0e c0017d9e beq 2 ,set_pdata_0 
+4d0f c001fd9e beq 3 ,set_pdata_0 
+4d10 c040fd9e beq 0x81 ,set_pdata_0 
+4d11 c0607d9e beq 0xc0 ,set_pdata_0 
+4d12 c0407d9e beq 0x80 ,set_pdata_0 
+4d13 c0207d9e beq 0x40 ,set_pdata_0 
+4d14 20600000 rtn 
+
+l2cap_call_proc_signal:
+4d15 20404d09 call l2cap_check_map 
+4d16 247a0000 nrtn blank 
+
+l2cap_call_proc_signal0:
+4d17 20405228 call l2cap_malloc_signal_channel 
+4d18 20404d7c call l2cap_process_signal_pkt 
+4d19 68490320 fetcht 2 ,mem_l2cap_signal_tx_length 
+4d1a 203a4d76 branch l2cap_call_proc_no_reply ,blank 
+4d1b 20405231 call l2cap_get_signal_tx_buff 
+4d1c 6fe10320 fetch 2 ,mem_l2cap_signal_tx_length 
+4d1d e7e10005 istore 2 ,contw 
+4d1e 18007e01 force l2cap_signal_channel ,pdata 
+4d1f e7e10005 istore 2 ,contw 
+4d20 20204d77 branch l2cap_rx_reset_state 
+
+l2cap_call_proc_sigal_pending:
+4d21 6fe0c5fb fetch 1 ,mem_l2cap_pending_item 
+4d22 207a0000 rtn blank 
+4d23 1fe22200 copy pdata ,rega 
+4d24 44f5c01d bpatch patch1d_3 ,mem_patch1d 
+4d25 6fe20386 fetch 4 ,mem_l2cap_sdpres_delay_time 
+4d26 d8400100 arg 0x100 ,temp 
+4d27 98408400 iadd temp ,temp 
+4d28 1c427e00 copy clkn_bt ,pdata 
+4d29 98467c00 isub temp ,null 
+4d2a 24610000 nrtn positive 
+4d2b 7045fb00 jam 0 ,mem_l2cap_pending_item 
+4d2c 1a227e00 copy rega ,pdata 
+4d2d c0284d2f beq l2cap_sdp_channel ,l2cap_sdp_conn_succ 
+4d2e 2020137a branch assert 
+
+l2cap_sdp_conn_succ:
+4d2f d9000000 arg 0 ,debug 
+4d30 20405228 call l2cap_malloc_signal_channel 
+4d31 20404df5 call restore_l2cap_req_param 
+4d32 20405233 call l2cap_get_signal_tx_payload 
+4d33 20407c2c call save_cont_pointers 
+4d34 20404e28 call send_connection_sdp_res 
+4d35 20405231 call l2cap_get_signal_tx_buff 
+4d36 5800000c setarg 0x000c 
+4d37 e7e10005 istore 2 ,contw 
+4d38 18007e01 force l2cap_signal_channel ,pdata 
+4d39 e7e10005 istore 2 ,contw 
+4d3a 20204d77 branch l2cap_rx_reset_state 
+
+l2cap_reset_sdp_map:
+4d3b 44f6401d bpatch patch1d_4 ,mem_patch1d 
+4d3c 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+4d3d 1fe0fe04 increase 4 ,pdata 
+4d3e 20407df4 call rshift7 
+4d3f 1fe08401 add pdata ,1 ,temp 
+4d40 d8c044f7 arg mem_tx_fifo3 ,contr 
+4d41 efe18006 ifetch 3 ,contr 
+4d42 207a0000 rtn blank 
+4d43 67e1898e store 3 ,mem_tx_fifo_map_temp 
+4d44 6fe0898e fetch 1 ,mem_tx_fifo_map_temp 
+4d45 1fe22200 copy pdata ,rega 
+4d46 20404d4a call check_l2cap_map 
+4d47 1a427e00 copy regb ,pdata 
+4d48 67e0c4f7 store 1 ,mem_tx_fifo3 
+4d49 20600000 rtn 
+
+check_l2cap_map:
+4d4a d8e00000 arg 0 ,queue 
+4d4b da400000 arg 0 ,regb 
+
+check_l2cap_map_loop:
+4d4c 18e67c07 sub queue ,7 ,null 
+4d4d 24610000 nrtn positive 
+4d4e aa2fffff qisolate1 rega 
+4d4f 2020cd51 branch check_l2cap_map_used ,true 
+4d50 20204d55 branch check_l2cap_map_used2 
+
+check_l2cap_map_used:
+4d51 18427e00 copy temp ,pdata 
+4d52 203a4d55 branch check_l2cap_map_used2 ,blank 
+4d53 f9202400 qset1 regb 
+4d54 184085ff increase -1 ,temp 
+
+check_l2cap_map_used2:
+4d55 18e08e01 increase 1 ,queue 
+4d56 20204d4c branch check_l2cap_map_loop 
+
+l2cap_call_proc_sdp:
+4d57 20405214 call l2cap_malloc_is_fifo_empty 
+4d58 247a0000 nrtn blank 
+4d59 20404d09 call l2cap_check_map 
+4d5a 247a0000 nrtn blank 
+4d5b 20405235 call l2cap_malloc_sdp_channel 
+4d5c 20406d29 call enable_authrom 
+4d5d 204065d1 call sdp_process 
+4d5e 20406d2d call disable_authrom 
+4d5f 20404d3b call l2cap_reset_sdp_map 
+4d60 20204d67 branch l2cap_call_proc_sdp_common 
+
+ml2cap_call_proc_sdp:
+4d61 20405214 call l2cap_malloc_is_fifo_empty 
+4d62 247a0000 nrtn blank 
+4d63 20405235 call l2cap_malloc_sdp_channel 
+4d64 20406d29 call enable_authrom 
+4d65 204065d1 call sdp_process 
+4d66 20406d2d call disable_authrom 
+
+l2cap_call_proc_sdp_common:
+4d67 2040523e call l2cap_get_sdp_tx_buff 
+4d68 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+4d69 203a4d76 branch l2cap_call_proc_no_reply ,blank 
+4d6a e7e10005 istore 2 ,contw 
+4d6b 6fe144df fetch 2 ,mem_sdp_remote_cid 
+4d6c e7e10005 istore 2 ,contw 
+4d6d 20204d77 branch l2cap_rx_reset_state 
+
+l2cap_call_proc_hid:
+4d6e 20404ca9 call hid_rx_process 
+4d6f 20204d77 branch l2cap_rx_reset_state 
+
+l2cap_call_proc_rfcomm:
+4d70 44f6c01d bpatch patch1d_5 ,mem_patch1d 
+4d71 70033500 jam rfcomm_malloc_succeed ,mem_rfcomm_malloc_fail_flag 
+4d72 2040624b call rfcomm_rx_process 
+4d73 6fe08335 fetch 1 ,mem_rfcomm_malloc_fail_flag 
+4d74 c1008000 rtneq rfcomm_malloc_fail 
+4d75 20204d77 branch l2cap_rx_reset_state 
+
+l2cap_call_proc_no_reply:
+4d76 20405204 call l2cap_malloc_discard 
+
+l2cap_rx_reset_state:
+4d77 58000000 setarg 0 
+4d78 67e10317 store 2 ,mem_l2cap_rx_pkt_length 
+4d79 67e10319 store 2 ,mem_l2cap_rx_cid 
+4d7a 70031b01 jam l2cap_rx_done ,mem_l2cap_rx_done 
+4d7b 20600000 rtn 
+
+l2cap_process_signal_pkt:
+4d7c 44f7401d bpatch patch1d_6 ,mem_patch1d 
+4d7d 20405233 call l2cap_get_signal_tx_payload 
+4d7e 18002400 force 0 ,regb 
+4d7f 6fe10317 fetch 2 ,mem_l2cap_rx_pkt_length 
+4d80 1fe22600 copy pdata ,regc 
+4d81 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+4d82 98000c00 iforce contr 
+
+l2cap_process_signal_pkt_loop:
+4d83 20404d8b call l2cap_process_one_signal 
+4d84 1a627e00 deposit regc 
+4d85 1a60a7fc increase -4 ,regc 
+4d86 1fe0fffc increase -4 ,pdata 
+4d87 243a4d83 nbranch l2cap_process_signal_pkt_loop ,blank 
+4d88 1a427e00 copy regb ,pdata 
+4d89 67e10320 store 2 ,mem_l2cap_signal_tx_length 
+4d8a 20600000 rtn 
+
+l2cap_process_one_signal:
+4d8b 44f7c01d bpatch patch1d_7 ,mem_patch1d 
+4d8c efe08006 ifetch 1 ,contr 
+4d8d c000cdc4 beq signal_cmd_reject ,l2cap_proc_signal_cmd_reject 
+4d8e c0014dcc beq signal_connect_req ,l2cap_proc_signal_connect_req 
+4d8f c001ce50 beq signal_connect_rsp ,l2cap_proc_signal_connect_rsp 
+4d90 c0024e80 beq signal_config_req ,l2cap_proc_signal_config_req 
+4d91 c002cf1d beq signal_config_rsp ,l2cap_proc_signal_config_rsp 
+4d92 c0034f46 beq signal_disconnect_req ,l2cap_proc_signal_disconnect_req 
+4d93 c003cf96 beq signal_disconnect_rsp ,l2cap_proc_signal_disconnect_rsp 
+4d94 c0044fcb beq signal_echo_req ,l2cap_proc_signal_echo_req 
+4d95 c004cfdb beq signal_echo_rsp ,l2cap_proc_signal_echo_rsp 
+4d96 c0054d9a beq signal_info_req ,l2cap_proc_signal_info_req 
+4d97 c005cfdc beq signal_info_rsp ,l2cap_proc_signal_info_rsp 
+4d98 20404fdd call l2cap_reject_command 
+
+l2cap_process_one_signal_rtn:
+4d99 20600000 rtn 
+
+l2cap_proc_signal_info_req:
+4d9a efe08006 ifetch 1 ,contr 
+4d9b 1fe20e00 copy pdata ,queue 
+4d9c efe10006 ifetch 2 ,contr 
+4d9d 1fe22200 copy pdata ,rega 
+4d9e 1a627e00 copy regc ,pdata 
+4d9f 9a262600 isub rega ,regc 
+4da0 5800000b setarg signal_info_rsp 
+4da1 e7e08005 istore 1 ,contw 
+4da2 18e27e00 copy queue ,pdata 
+4da3 e7e08005 istore 1 ,contw 
+4da4 efe10006 ifetch 2 ,contr 
+
+l2cap_proc_signal_info_req_reply:
+4da5 c0014da8 beq l2cap_sig_ext_featrue ,l2cap_proc_signal_info_req_ext 
+4da6 c001cdae beq l2cap_sig_fix_featrue ,l2cap_proc_signal_info_req_fix 
+4da7 20600000 rtn 
+
+l2cap_proc_signal_info_req_ext:
+4da8 58020008 setarg 0x020008 
+4da9 e7e30005 istore 6 ,contw 
+4daa 58000280 setarg 0x0280 
+4dab e7e20005 istore 4 ,contw 
+4dac 18007e0c force 12 ,pdata 
+4dad 20204db3 branch l2cap_proc_signal_info_req_common 
+
+l2cap_proc_signal_info_req_fix:
+4dae 5803000c setarg 0x3000c 
+4daf e7e30005 istore 6 ,contw 
+4db0 58000006 setarg 0x0006 
+4db1 e7e40005 istore 8 ,contw 
+4db2 18007e10 force 16 ,pdata 
+
+l2cap_proc_signal_info_req_common:
+4db3 9a40a400 iadd regb ,regb 
+4db4 20204d99 branch l2cap_process_one_signal_rtn 
+
+ml2cap_proc_signal_info_req:
+4db5 efe08006 ifetch 1 ,contr 
+4db6 1fe20e00 copy pdata ,queue 
+4db7 efe10006 ifetch 2 ,contr 
+4db8 1fe22200 copy pdata ,rega 
+4db9 efe10006 ifetch 2 ,contr 
+4dba 67e10964 store 2 ,mem_temp 
+4dbb 1a627e00 copy regc ,pdata 
+4dbc 9a262600 isub rega ,regc 
+4dbd 20405233 call l2cap_get_signal_tx_payload 
+4dbe 5800000b setarg signal_info_rsp 
+4dbf e7e08005 istore 1 ,contw 
+4dc0 18e27e00 copy queue ,pdata 
+4dc1 e7e08005 istore 1 ,contw 
+4dc2 6fe10964 fetch 2 ,mem_temp 
+4dc3 20204da5 branch l2cap_proc_signal_info_req_reply 
+
+l2cap_proc_signal_cmd_reject:
+4dc4 efe08006 ifetch 1 ,contr 
+4dc5 1fe20e00 copy pdata ,queue 
+4dc6 efe10006 ifetch 2 ,contr 
+4dc7 1fe22200 copy pdata ,rega 
+4dc8 98c08c00 iadd contr ,contr 
+4dc9 1a627e00 copy regc ,pdata 
+4dca 9a262600 isub rega ,regc 
+
+l2cap_proc_signal_cmd_reject_rtn:
+4dcb 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_connect_req:
+4dcc 20407c2c call save_cont_pointers 
+4dcd 20407c31 call load_cont_pointers 
+4dce d9000000 arg 0 ,debug 
+4dcf efe08006 ifetch 1 ,contr 
+4dd0 1fe20e00 copy pdata ,queue 
+4dd1 efe10006 ifetch 2 ,contr 
+4dd2 1fe22200 copy pdata ,rega 
+4dd3 efe10006 ifetch 2 ,contr 
+4dd4 1fe20400 copy pdata ,temp 
+4dd5 efe10006 ifetch 2 ,contr 
+4dd6 1fe21600 copy pdata ,timeup 
+4dd7 44f8401e bpatch patch1e_0 ,mem_patch1e 
+4dd8 18427e00 copy temp ,pdata 
+4dd9 c000cddf beq psm_sdp ,l2cap_proc_signal_connect_req_sdp 
+4dda c001ce01 beq psm_rfcomm ,l2cap_proc_signal_connect_req_rfcomm 
+4ddb c008ce0d beq psm_hid_control ,l2cap_proc_signal_connect_req_hid_ctrl 
+4ddc c009ce18 beq psm_hid_interrupt ,l2cap_proc_signal_connect_req_hid_int 
+4ddd 20404fdd call l2cap_reject_command 
+4dde 20204e4f branch l2cap_proc_signal_connect_req_rtn 
+
+l2cap_proc_signal_connect_req_sdp:
+4ddf 20407c2c call save_cont_pointers 
+4de0 d8400050 arg l2cap_sdp_channel ,temp 
+4de1 6fe144df fetch 2 ,mem_sdp_remote_cid 
+4de2 243a4e49 nbranch already_connected ,blank 
+4de3 19627e00 copy timeup ,pdata 
+4de4 67e144df store 2 ,mem_sdp_remote_cid 
+4de5 1c427e00 copy clkn_bt ,pdata 
+4de6 67e20386 store 4 ,mem_l2cap_sdpres_delay_time 
+4de7 20404de9 call store_l2cap_req_param 
+4de8 20204e24 branch send_connection_pending 
+
+store_l2cap_req_param:
+4de9 60490384 storet 2 ,mem_psm 
+4dea 19627e00 deposit timeup 
+4deb 67e1037a store 2 ,mem_scid 
+4dec 1a227e00 deposit rega 
+4ded 67e1037c store 2 ,mem_cmd_length 
+4dee 1a427e00 deposit regb 
+4def 67e1037e store 2 ,mem_tt2 
+4df0 1a627e00 deposit regc 
+4df1 67e10380 store 2 ,mem_tt3 
+4df2 18e27e00 deposit queue 
+4df3 67e10382 store 2 ,mem_id 
+4df4 20600000 rtn 
+
+restore_l2cap_req_param:
+4df5 68490384 fetcht 2 ,mem_psm 
+4df6 6fe1037a fetch 2 ,mem_scid 
+4df7 1fe21600 copy pdata ,timeup 
+4df8 6fe1037c fetch 2 ,mem_cmd_length 
+4df9 1fe22200 copy pdata ,rega 
+4dfa 6fe1037e fetch 2 ,mem_tt2 
+4dfb 1fe22400 copy pdata ,regb 
+4dfc 6fe10380 fetch 2 ,mem_tt3 
+4dfd 1fe22600 copy pdata ,regc 
+4dfe 6fe10382 fetch 2 ,mem_id 
+4dff 1fe20e00 copy pdata ,queue 
+4e00 20600000 rtn 
+
+l2cap_proc_signal_connect_req_rfcomm:
+4e01 20407c2c call save_cont_pointers 
+4e02 58000051 setarg l2cap_rfcomm_channel 
+4e03 d8400051 arg l2cap_rfcomm_channel ,temp 
+4e04 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+4e05 243a4e49 nbranch already_connected ,blank 
+4e06 19627e00 copy timeup ,pdata 
+4e07 67e144e1 store 2 ,mem_rfcomm_remote_cid 
+4e08 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+4e09 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+4e0a 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4e0b 67e0c4e8 store 1 ,mem_rfcomm_state 
+4e0c 20204e2c branch send_connection_res 
+
+l2cap_proc_signal_connect_req_hid_ctrl:
+4e0d 20407c2c call save_cont_pointers 
+4e0e d8400052 arg l2cap_hid_control_channel ,temp 
+4e0f 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+4e10 243a4e49 nbranch already_connected ,blank 
+4e11 19627e00 copy timeup ,pdata 
+4e12 67e144e3 store 2 ,mem_hid_ctrl_remote_cid 
+4e13 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+4e14 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+4e15 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4e16 67e0c4e9 store 1 ,mem_hid_control_state 
+4e17 20204e2c branch send_connection_res 
+
+l2cap_proc_signal_connect_req_hid_int:
+4e18 20407c2c call save_cont_pointers 
+4e19 1b427e00 deposit clke 
+4e1a d8400053 arg l2cap_hid_interrupt_channel ,temp 
+4e1b 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+4e1c 243a4e49 nbranch already_connected ,blank 
+4e1d 19627e00 copy timeup ,pdata 
+4e1e 67e144e5 store 2 ,mem_hid_int_remote_cid 
+4e1f 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+4e20 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+4e21 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4e22 67e0c4ea store 1 ,mem_hid_interrupt_state 
+4e23 20204e2c branch send_connection_res 
+
+send_connection_pending:
+4e24 58000001 setarg l2cap_connect_pending 
+4e25 67e1032e store 2 ,meml2cap_t1 
+4e26 7045fb50 jam l2cap_sdp_channel ,mem_l2cap_pending_item 
+4e27 20204e2e branch send_connection_res0 
+
+send_connection_sdp_res:
+4e28 6fe0c4e7 fetch 1 ,mem_sdp_state 
+4e29 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+4e2a 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4e2b 67e0c4e7 store 1 ,mem_sdp_state 
+
+send_connection_res:
+4e2c 58000000 setarg l2cap_connect_successful 
+4e2d 67e1032e store 2 ,meml2cap_t1 
+
+send_connection_res0:
+4e2e 44f8c01e bpatch patch1e_1 ,mem_patch1e 
+4e2f 20407c31 call load_cont_pointers 
+4e30 58000003 setarg signal_connect_rsp 
+4e31 e7e08005 istore 1 ,contw 
+4e32 18e27e00 copy queue ,pdata 
+4e33 e7e08005 istore 1 ,contw 
+4e34 58000008 setarg 0x0008 
+4e35 e7e10005 istore 2 ,contw 
+4e36 18427e00 copy temp ,pdata 
+4e37 e7e10005 istore 2 ,contw 
+4e38 19627e00 copy timeup ,pdata 
+4e39 e7e10005 istore 2 ,contw 
+4e3a 6fe1032e fetch 2 ,meml2cap_t1 
+4e3b c000ce44 beq l2cap_connect_pending ,connect_pending 
+4e3c 290c0000 isolate0 0 ,debug 
+4e3d 2020ce3f branch connect_suc ,true 
+4e3e 58000004 setarg l2cap_connect_refused_no_resources 
+
+connect_suc:
+4e3f e7e10005 istore 2 ,contw 
+4e40 18007e00 force 0x0000 ,pdata 
+4e41 e7e10005 istore 2 ,contw 
+4e42 5800000c setarg 12 
+4e43 20204e4b branch connect_req_update_byte_counts 
+
+connect_pending:
+4e44 e7e10005 istore 2 ,contw 
+4e45 18007e02 force 0x0002 ,pdata 
+4e46 e7e10005 istore 2 ,contw 
+4e47 5800000c setarg 12 
+4e48 20204e4b branch connect_req_update_byte_counts 
+
+already_connected:
+4e49 79201000 set1 0 ,debug 
+4e4a 20204e2c branch send_connection_res 
+
+connect_req_update_byte_counts:
+4e4b 9a40a400 iadd regb ,regb 
+4e4c 1a627e00 copy regc ,pdata 
+4e4d 9a262600 isub rega ,regc 
+4e4e 20204e4f branch l2cap_proc_signal_connect_req_rtn 
+
+l2cap_proc_signal_connect_req_rtn:
+4e4f 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_connect_rsp:
+4e50 efe08006 ifetch 1 ,contr 
+4e51 1fe20e00 copy pdata ,queue 
+4e52 efe10006 ifetch 2 ,contr 
+4e53 1fe22200 copy pdata ,rega 
+4e54 1a627e00 copy regc ,pdata 
+4e55 9a262600 isub rega ,regc 
+4e56 efe10006 ifetch 2 ,contr 
+4e57 1fe21600 copy pdata ,timeup 
+4e58 efe10006 ifetch 2 ,contr 
+4e59 1fe20400 copy pdata ,temp 
+4e5a 44f9401e bpatch patch1e_2 ,mem_patch1e 
+4e5b 58000050 setarg l2cap_sdp_channel 
+4e5c 98467c00 isub temp ,null 
+4e5d 2022ce68 branch l2cap_proc_signal_connect_rsp_sdp ,zero 
+4e5e 58000051 setarg l2cap_rfcomm_channel 
+4e5f 98467c00 isub temp ,null 
+4e60 2022ce6e branch l2cap_proc_signal_connect_rsp_rfcomm ,zero 
+4e61 58000052 setarg l2cap_hid_control_channel 
+4e62 98467c00 isub temp ,null 
+4e63 2022ce7a branch l2cap_proc_signal_connect_rsp_hid_ctrl ,zero 
+4e64 58000053 setarg l2cap_hid_interrupt_channel 
+4e65 98467c00 isub temp ,null 
+4e66 2022ce74 branch l2cap_proc_signal_connect_rsp_hid_int ,zero 
+4e67 20600000 rtn 
+
+l2cap_proc_signal_connect_rsp_sdp:
+4e68 19627e00 copy timeup ,pdata 
+4e69 67e144df store 2 ,mem_sdp_remote_cid 
+4e6a 6fe0c4e7 fetch 1 ,mem_sdp_state 
+4e6b 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4e6c 67e0c4e7 store 1 ,mem_sdp_state 
+4e6d 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_connect_rsp_rfcomm:
+4e6e 19627e00 copy timeup ,pdata 
+4e6f 67e144e1 store 2 ,mem_rfcomm_remote_cid 
+4e70 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+4e71 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4e72 67e0c4e8 store 1 ,mem_rfcomm_state 
+4e73 20600000 rtn 
+
+l2cap_proc_signal_connect_rsp_hid_int:
+4e74 19627e00 copy timeup ,pdata 
+4e75 67e144e3 store 2 ,mem_hid_ctrl_remote_cid 
+4e76 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+4e77 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4e78 67e0c4ea store 1 ,mem_hid_interrupt_state 
+4e79 20600000 rtn 
+
+l2cap_proc_signal_connect_rsp_hid_ctrl:
+4e7a 19627e00 copy timeup ,pdata 
+4e7b 67e144e5 store 2 ,mem_hid_int_remote_cid 
+4e7c 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+4e7d 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+4e7e 67e0c4e9 store 1 ,mem_hid_control_state 
+4e7f 20600000 rtn 
+
+l2cap_proc_signal_config_req:
+4e80 efe08006 ifetch 1 ,contr 
+4e81 1fe20e00 copy pdata ,queue 
+4e82 efe10006 ifetch 2 ,contr 
+4e83 1fe22200 copy pdata ,rega 
+4e84 1a627e00 copy regc ,pdata 
+4e85 9a262600 isub rega ,regc 
+4e86 efe10006 ifetch 2 ,contr 
+4e87 1fe20400 copy pdata ,temp 
+4e88 18422200 copy temp ,rega 
+4e89 44f9c01e bpatch patch1e_3 ,mem_patch1e 
+4e8a 58000050 setarg l2cap_sdp_channel 
+4e8b 98467c00 isub temp ,null 
+4e8c 2022ce97 branch l2cap_proc_signal_config_req_sdp ,zero 
+4e8d 58000051 setarg l2cap_rfcomm_channel 
+4e8e 98467c00 isub temp ,null 
+4e8f 2022ceb5 branch l2cap_proc_signal_config_req_rfcomm ,zero 
+4e90 58000052 setarg l2cap_hid_control_channel 
+4e91 98467c00 isub temp ,null 
+4e92 2022cea1 branch l2cap_proc_signal_config_req_hid_ctrl ,zero 
+4e93 58000053 setarg l2cap_hid_interrupt_channel 
+4e94 98467c00 isub temp ,null 
+4e95 2022ceab branch l2cap_proc_signal_config_req_hid_int ,zero 
+4e96 20204fdd branch l2cap_reject_command 
+
+l2cap_proc_signal_config_req_sdp:
+4e97 18a21600 copy contw ,timeup 
+4e98 6fe0c4e7 fetch 1 ,mem_sdp_state 
+4e99 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+4e9a 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+4e9b 67e0c4e7 store 1 ,mem_sdp_state 
+4e9c 19620a00 copy timeup ,contw 
+4e9d d9600050 arg l2cap_sdp_channel ,timeup 
+4e9e 6fe144df fetch 2 ,mem_sdp_remote_cid 
+4e9f 1fe20400 copy pdata ,temp 
+4ea0 20204ebe branch l2cap_send_config_rsp 
+
+l2cap_proc_signal_config_req_hid_ctrl:
+4ea1 18a21600 copy contw ,timeup 
+4ea2 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+4ea3 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+4ea4 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+4ea5 67e0c4e9 store 1 ,mem_hid_control_state 
+4ea6 19620a00 copy timeup ,contw 
+4ea7 d9600052 arg l2cap_hid_control_channel ,timeup 
+4ea8 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+4ea9 1fe20400 copy pdata ,temp 
+4eaa 20204ebe branch l2cap_send_config_rsp 
+
+l2cap_proc_signal_config_req_hid_int:
+4eab 18a21600 copy contw ,timeup 
+4eac 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+4ead 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+4eae 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+4eaf 67e0c4ea store 1 ,mem_hid_interrupt_state 
+4eb0 19620a00 copy timeup ,contw 
+4eb1 d9600053 arg l2cap_hid_interrupt_channel ,timeup 
+4eb2 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+4eb3 1fe20400 copy pdata ,temp 
+4eb4 20204ebe branch l2cap_send_config_rsp 
+
+l2cap_proc_signal_config_req_rfcomm:
+4eb5 18a21600 copy contw ,timeup 
+4eb6 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+4eb7 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+4eb8 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+4eb9 67e0c4e8 store 1 ,mem_rfcomm_state 
+4eba 19620a00 copy timeup ,contw 
+4ebb d9600051 arg l2cap_rfcomm_channel ,timeup 
+4ebc 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+4ebd 1fe20400 copy pdata ,temp 
+
+l2cap_send_config_rsp:
+4ebe 44fa401e bpatch patch1e_4 ,mem_patch1e 
+4ebf 58000005 setarg signal_config_rsp 
+4ec0 e7e08005 istore 1 ,contw 
+4ec1 18e27e00 copy queue ,pdata 
+4ec2 e7e08005 istore 1 ,contw 
+4ec3 58000006 setarg 0x0006 
+4ec4 e7e10005 istore 2 ,contw 
+4ec5 18427e00 copy temp ,pdata 
+4ec6 e7e10005 istore 2 ,contw 
+4ec7 18007e00 force 0x00 ,pdata 
+4ec8 e7e10005 istore 2 ,contw 
+4ec9 18007e00 force l2cap_config_success ,pdata 
+4eca e7e10005 istore 2 ,contw 
+4ecb 18007e0a force 10 ,pdata 
+4ecc 9a40a400 iadd regb ,regb 
+4ecd 60490333 storet 2 ,mem_config_req_dest_cid 
+4ece 18e27e00 copy queue ,pdata 
+4ecf 67e08332 store 1 ,mem_config_identifier 
+4ed0 18007e50 force l2cap_sdp_channel ,pdata 
+4ed1 a961fe00 icompare 0xff ,timeup 
+4ed2 2020ced4 branch l2cap_send_config_rsp_is_sdp ,true 
+4ed3 1fe0fe01 increase 1 ,pdata 
+
+l2cap_send_config_rsp_is_sdp:
+4ed4 20600000 rtn 
+
+l2cap_check_channel_state:
+4ed5 78547c00 disable user 
+4ed6 c3810000 rtnbit1 l2cap_channel_state_snd_cfg_req ,pdata 
+4ed7 c4000000 rtnbit0 l2cap_channel_state_conn_req ,pdata 
+4ed8 c4008000 rtnbit0 l2cap_channel_state_conn_res ,pdata 
+4ed9 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+4eda 18c20a00 copy contr ,contw 
+4edb 18a08bff increase -1 ,contw 
+4edc e7e08005 istore 1 ,contw 
+4edd 78347c00 enable user 
+4ede 20600000 rtn 
+
+l2cap_send_config_req:
+
+l2cap_send_config_req_sdp:
+4edf 6fe0c4e7 fetch 1 ,mem_sdp_state 
+4ee0 20404ed5 call l2cap_check_channel_state 
+4ee1 24344ee6 nbranch l2cap_send_config_req_rfcomm ,user 
+4ee2 70033150 jam l2cap_sdp_channel ,mem_send_config_req 
+4ee3 6fe144df fetch 2 ,mem_sdp_remote_cid 
+4ee4 67e10333 store 2 ,mem_config_req_dest_cid 
+4ee5 20204efa branch l2cap_generate_config_req 
+
+l2cap_send_config_req_rfcomm:
+4ee6 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+4ee7 20404ed5 call l2cap_check_channel_state 
+4ee8 24344eed nbranch l2cap_send_config_req_hid_ctrl ,user 
+4ee9 70033151 jam l2cap_rfcomm_channel ,mem_send_config_req 
+4eea 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+4eeb 67e10333 store 2 ,mem_config_req_dest_cid 
+4eec 20204efa branch l2cap_generate_config_req 
+
+l2cap_send_config_req_hid_ctrl:
+4eed 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+4eee 20404ed5 call l2cap_check_channel_state 
+4eef 24344ef4 nbranch l2cap_send_config_req_hid_int ,user 
+4ef0 70033152 jam l2cap_hid_control_channel ,mem_send_config_req 
+4ef1 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+4ef2 67e10333 store 2 ,mem_config_req_dest_cid 
+4ef3 20204efa branch l2cap_generate_config_req 
+
+l2cap_send_config_req_hid_int:
+4ef4 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+4ef5 20404ed5 call l2cap_check_channel_state 
+4ef6 24740000 nrtn user 
+4ef7 70033153 jam l2cap_hid_interrupt_channel ,mem_send_config_req 
+4ef8 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+4ef9 67e10333 store 2 ,mem_config_req_dest_cid 
+
+l2cap_generate_config_req:
+4efa 44fac01e bpatch patch1e_5 ,mem_patch1e 
+4efb 204051b4 call l2cap_get_req_id 
+4efc 20405228 call l2cap_malloc_signal_channel 
+4efd 18002400 force 0 ,regb 
+4efe 20405233 call l2cap_get_signal_tx_payload 
+4eff 18007e04 force signal_config_req ,pdata 
+4f00 e7e08005 istore 1 ,contw 
+4f01 6fe0c4ec fetch 1 ,mem_ml2cap_comm_id 
+4f02 e7e08005 istore 1 ,contw 
+4f03 58000008 setarg 0x0008 
+4f04 e7e10005 istore 2 ,contw 
+4f05 6fe10333 fetch 2 ,mem_config_req_dest_cid 
+4f06 e7e10005 istore 2 ,contw 
+4f07 58000000 setarg 0x0000 
+4f08 e7e10005 istore 2 ,contw 
+4f09 18007e01 force 1 ,pdata 
+4f0a e7e08005 istore 1 ,contw 
+4f0b 18007e02 force 2 ,pdata 
+4f0c e7e08005 istore 1 ,contw 
+4f0d 6fe08331 fetch 1 ,mem_send_config_req 
+4f0e c028cf12 beq l2cap_rfcomm_channel ,l2cap_generate_config_req_rfcomm 
+4f0f 58000030 setarg l2cap_config_mtu_sdp 
+4f10 e7e10005 istore 2 ,contw 
+4f11 20204f14 branch l2cap_generate_config_req_done 
+
+l2cap_generate_config_req_rfcomm:
+4f12 580003e3 setarg l2cap_config_mtu_rfcomm 
+4f13 e7e10005 istore 2 ,contw 
+
+l2cap_generate_config_req_done:
+4f14 d840000c arg 0x0c ,temp 
+4f15 60490320 storet 2 ,mem_l2cap_signal_tx_length 
+4f16 20405231 call l2cap_get_signal_tx_buff 
+4f17 6fe10320 fetch 2 ,mem_l2cap_signal_tx_length 
+4f18 e7e10005 istore 2 ,contw 
+4f19 18007e01 force l2cap_signal_channel ,pdata 
+4f1a e7e10005 istore 2 ,contw 
+4f1b 70033100 jam 0 ,mem_send_config_req 
+
+l2cap_proc_signal_config_req_rtn:
+4f1c 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp:
+4f1d 18c08c01 increase 1 ,contr 
+4f1e efe10006 ifetch 2 ,contr 
+4f1f 1fe22200 copy pdata ,rega 
+4f20 1a627e00 copy regc ,pdata 
+4f21 9a262600 isub rega ,regc 
+4f22 efe10006 ifetch 2 ,contr 
+4f23 1fe22200 copy pdata ,rega 
+4f24 44fb401e bpatch patch1e_6 ,mem_patch1e 
+4f25 58000050 setarg l2cap_sdp_channel 
+4f26 9a267c00 isub rega ,null 
+4f27 2022cf35 branch l2cap_proc_signal_config_rsp_sdp ,zero 
+4f28 58000051 setarg l2cap_rfcomm_channel 
+4f29 9a267c00 isub rega ,null 
+4f2a 2022cf39 branch l2cap_proc_signal_config_rsp_rfcomm ,zero 
+4f2b 58000052 setarg l2cap_hid_control_channel 
+4f2c 9a267c00 isub rega ,null 
+4f2d 2022cf3d branch l2cap_proc_signal_config_rsp_hid_ctrl ,zero 
+4f2e 58000053 setarg l2cap_hid_interrupt_channel 
+4f2f 9a267c00 isub rega ,null 
+4f30 2022cf41 branch l2cap_proc_signal_config_rsp_hid_int ,zero 
+4f31 18c08c02 increase 2 ,contr 
+4f32 efe10006 ifetch 2 ,contr 
+4f33 98007c00 iforce null 
+4f34 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp_sdp:
+4f35 6fe0c4e7 fetch 1 ,mem_sdp_state 
+4f36 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+4f37 67e0c4e7 store 1 ,mem_sdp_state 
+4f38 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp_rfcomm:
+4f39 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+4f3a 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+4f3b 67e0c4e8 store 1 ,mem_rfcomm_state 
+4f3c 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp_hid_ctrl:
+4f3d 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+4f3e 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+4f3f 67e0c4e9 store 1 ,mem_hid_control_state 
+4f40 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_config_rsp_hid_int:
+4f41 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+4f42 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+4f43 67e0c4ea store 1 ,mem_hid_interrupt_state 
+4f44 70095b06 jam bt_evt_hid_connected ,mem_fifo_temp 
+4f45 202077a7 branch ui_ipc_send_event 
+
+l2cap_proc_signal_disconnect_req:
+4f46 efe08006 ifetch 1 ,contr 
+4f47 1fe20e00 copy pdata ,queue 
+4f48 efe10006 ifetch 2 ,contr 
+4f49 1fe22200 copy pdata ,rega 
+4f4a 1a627e00 copy regc ,pdata 
+4f4b 9a262600 isub rega ,regc 
+4f4c efe10006 ifetch 2 ,contr 
+4f4d 1fe22200 copy pdata ,rega 
+4f4e efe10006 ifetch 2 ,contr 
+4f4f 1fe21600 copy pdata ,timeup 
+4f50 1a220400 copy rega ,temp 
+4f51 20407c2c call save_cont_pointers 
+4f52 44fbc01e bpatch patch1e_7 ,mem_patch1e 
+4f53 58000050 setarg l2cap_sdp_channel 
+4f54 98467c00 isub temp ,null 
+4f55 2022cf6d branch l2cap_proc_signal_disconnect_req_sdp ,zero 
+4f56 58000051 setarg l2cap_rfcomm_channel 
+4f57 98467c00 isub temp ,null 
+4f58 2022cf7d branch l2cap_proc_signal_disconnect_req_rfcomm ,zero 
+4f59 58000052 setarg l2cap_hid_control_channel 
+4f5a 98467c00 isub temp ,null 
+4f5b 2022cf61 branch l2cap_proc_signal_disconnect_req_hid_ctrl ,zero 
+4f5c 58000053 setarg l2cap_hid_interrupt_channel 
+4f5d 98467c00 isub temp ,null 
+4f5e 2022cf67 branch l2cap_proc_signal_disconnect_req_hid_int ,zero 
+4f5f 20404fdd call l2cap_reject_command 
+4f60 20204f92 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_proc_signal_disconnect_req_hid_ctrl:
+4f61 19620400 copy timeup ,temp 
+4f62 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+4f63 98467c00 isub temp ,null 
+4f64 2022cf73 branch l2cap_disconnect_hid_control_now ,zero 
+4f65 20404fdd call l2cap_reject_command 
+4f66 20204f92 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_proc_signal_disconnect_req_hid_int:
+4f67 19620400 copy timeup ,temp 
+4f68 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+4f69 98467c00 isub temp ,null 
+4f6a 2022cf75 branch l2cap_disconnect_hid_interrupt_now ,zero 
+4f6b 20404fdd call l2cap_reject_command 
+4f6c 20204f92 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_proc_signal_disconnect_req_sdp:
+4f6d 19620400 copy timeup ,temp 
+4f6e 6fe144df fetch 2 ,mem_sdp_remote_cid 
+4f6f 98467c00 isub temp ,null 
+4f70 2022cf79 branch l2cap_disconnect_sdp_now ,zero 
+4f71 20404fdd call l2cap_reject_command 
+4f72 20204f92 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_disconnect_hid_control_now:
+4f73 20404ff4 call l2cap_reset_hid_ctrl_state 
+4f74 20204f85 branch l2cap_send_disconnect_rsp_pkt 
+
+l2cap_disconnect_hid_interrupt_now:
+4f75 20404ffa call l2cap_reset_hid_int_state 
+4f76 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+4f77 203a4f85 branch l2cap_send_disconnect_rsp_pkt ,blank 
+4f78 20204f85 branch l2cap_send_disconnect_rsp_pkt 
+
+l2cap_disconnect_sdp_now:
+4f79 20404fef call l2cap_reset_sdp_channel_state 
+4f7a 6fe08339 fetch 1 ,mem_upper_sm_ss 
+4f7b 243a4f85 nbranch l2cap_send_disconnect_rsp_pkt ,blank 
+4f7c 20204f85 branch l2cap_send_disconnect_rsp_pkt 
+
+l2cap_proc_signal_disconnect_req_rfcomm:
+4f7d 19620400 copy timeup ,temp 
+4f7e 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+4f7f 98467c00 isub temp ,null 
+4f80 2022cf83 branch l2cap_disconnect_rfcomm_now ,zero 
+4f81 20404fdd call l2cap_reject_command 
+4f82 20204f92 branch l2cap_proc_signal_disconnect_req_err_rtn 
+
+l2cap_disconnect_rfcomm_now:
+4f83 20404fea call l2cap_reset_rfcomm_channel_state 
+4f84 20204f85 branch l2cap_send_disconnect_rsp_pkt 
+
+l2cap_send_disconnect_rsp_pkt:
+4f85 20407c31 call load_cont_pointers 
+4f86 58000007 setarg signal_disconnect_rsp 
+4f87 e7e08005 istore 1 ,contw 
+4f88 18e27e00 copy queue ,pdata 
+4f89 e7e08005 istore 1 ,contw 
+4f8a 58000004 setarg 0x0004 
+4f8b e7e10005 istore 2 ,contw 
+4f8c 1a227e00 copy rega ,pdata 
+4f8d e7e10005 istore 2 ,contw 
+4f8e 19627e00 copy timeup ,pdata 
+4f8f e7e10005 istore 2 ,contw 
+4f90 18007e08 force 8 ,pdata 
+4f91 20204f94 branch l2cap_proc_signal_disconnect_req_rtn 
+
+l2cap_proc_signal_disconnect_req_err_rtn:
+4f92 20407c31 call load_cont_pointers 
+4f93 20204f94 branch l2cap_proc_signal_disconnect_req_rtn 
+
+l2cap_proc_signal_disconnect_req_rtn:
+4f94 9a40a400 iadd regb ,regb 
+4f95 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_disconnect_rsp:
+4f96 efe08006 ifetch 1 ,contr 
+4f97 1fe20e00 copy pdata ,queue 
+4f98 efe10006 ifetch 2 ,contr 
+4f99 1fe22200 copy pdata ,rega 
+4f9a 1a627e00 copy regc ,pdata 
+4f9b 9a262600 isub rega ,regc 
+4f9c efe10006 ifetch 2 ,contr 
+4f9d 1fe21600 copy pdata ,timeup 
+4f9e efe10006 ifetch 2 ,contr 
+4f9f 1fe20400 copy pdata ,temp 
+4fa0 20407c2c call save_cont_pointers 
+4fa1 44fc401f bpatch patch1f_0 ,mem_patch1f 
+4fa2 58000050 setarg l2cap_sdp_channel 
+4fa3 98467c00 isub temp ,null 
+4fa4 2022cfb0 branch l2cap_proc_signal_disconnect_rsp_sdp ,zero 
+4fa5 58000051 setarg l2cap_rfcomm_channel 
+4fa6 98467c00 isub temp ,null 
+4fa7 2022cfb6 branch l2cap_proc_signal_disconnect_rsp_rfcomm ,zero 
+4fa8 58000052 setarg l2cap_hid_control_channel 
+4fa9 98467c00 isub temp ,null 
+4faa 2022cfbc branch l2cap_proc_signal_disconnect_rsp_hid_ctrl ,zero 
+4fab 58000053 setarg l2cap_hid_interrupt_channel 
+4fac 98467c00 isub temp ,null 
+4fad 2022cfc2 branch l2cap_proc_signal_disconnect_rsp_hid_int ,zero 
+4fae 20404fdd call l2cap_reject_command 
+4faf 20204fca branch l2cap_proc_signal_disconnect_rsp_err_rtn 
+
+l2cap_proc_signal_disconnect_rsp_sdp:
+4fb0 18422200 copy temp ,rega 
+4fb1 19620400 copy timeup ,temp 
+4fb2 6fe144df fetch 2 ,mem_sdp_remote_cid 
+4fb3 98467c00 isub temp ,null 
+4fb4 2042cfef call l2cap_reset_sdp_channel_state ,zero 
+4fb5 20204fc8 branch l2cap_proc_signal_disconnect_rsp_rtn 
+
+l2cap_proc_signal_disconnect_rsp_rfcomm:
+4fb6 18422200 copy temp ,rega 
+4fb7 19620400 copy timeup ,temp 
+4fb8 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+4fb9 98467c00 isub temp ,null 
+4fba 2042cfea call l2cap_reset_rfcomm_channel_state ,zero 
+4fbb 20204fc8 branch l2cap_proc_signal_disconnect_rsp_rtn 
+
+l2cap_proc_signal_disconnect_rsp_hid_ctrl:
+4fbc 18422200 copy temp ,rega 
+4fbd 19620400 copy timeup ,temp 
+4fbe 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+4fbf 98467c00 isub temp ,null 
+4fc0 2042cff4 call l2cap_reset_hid_ctrl_state ,zero 
+4fc1 20204fc8 branch l2cap_proc_signal_disconnect_rsp_rtn 
+
+l2cap_proc_signal_disconnect_rsp_hid_int:
+4fc2 18422200 copy temp ,rega 
+4fc3 19620400 copy timeup ,temp 
+4fc4 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+4fc5 98467c00 isub temp ,null 
+4fc6 2042cffa call l2cap_reset_hid_int_state ,zero 
+4fc7 20204fc8 branch l2cap_proc_signal_disconnect_rsp_rtn 
+
+l2cap_proc_signal_disconnect_rsp_rtn:
+4fc8 20407c31 call load_cont_pointers 
+4fc9 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_disconnect_rsp_err_rtn:
+4fca 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_echo_req:
+4fcb efe08006 ifetch 1 ,contr 
+4fcc 1fe20e00 copy pdata ,queue 
+4fcd efe10006 ifetch 2 ,contr 
+4fce 1fe22200 copy pdata ,rega 
+4fcf 98c08c00 iadd contr ,contr 
+4fd0 58000009 setarg 9 
+4fd1 e7e08005 istore 1 ,contw 
+4fd2 18e27e00 copy queue ,pdata 
+4fd3 e7e08005 istore 1 ,contw 
+4fd4 18007e00 force 0x0000 ,pdata 
+4fd5 e7e10005 istore 2 ,contw 
+4fd6 18007e04 force 4 ,pdata 
+4fd7 9a40a400 iadd regb ,regb 
+4fd8 1a627e00 copy regc ,pdata 
+4fd9 9a262600 isub rega ,regc 
+4fda 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_echo_rsp:
+4fdb 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_proc_signal_info_rsp:
+4fdc 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_reject_command:
+4fdd 18002400 force 0 ,regb 
+4fde 20405233 call l2cap_get_signal_tx_payload 
+4fdf 58000001 setarg signal_cmd_reject 
+4fe0 e7e08005 istore 1 ,contw 
+4fe1 18e27e00 copy queue ,pdata 
+4fe2 e7e08005 istore 1 ,contw 
+4fe3 58000002 setarg 2 
+4fe4 e7e10005 istore 2 ,contw 
+4fe5 58000000 setarg cmd_not_understood 
+4fe6 e7e10005 istore 2 ,contw 
+4fe7 1a40a406 increase 6 ,regb 
+4fe8 da600004 arg 4 ,regc 
+4fe9 20204d99 branch l2cap_process_one_signal_rtn 
+
+l2cap_reset_rfcomm_channel_state:
+4fea 58000000 setarg 0 
+4feb 67e1032c store 2 ,mem_rfcomm_tx_pkt_length 
+4fec 67e144e1 store 2 ,mem_rfcomm_remote_cid 
+4fed 7044e800 jam 0 ,mem_rfcomm_state 
+4fee 20600000 rtn 
+
+l2cap_reset_sdp_channel_state:
+4fef 58000000 setarg 0 
+4ff0 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+4ff1 67e144df store 2 ,mem_sdp_remote_cid 
+4ff2 7044e700 jam 0 ,mem_sdp_state 
+4ff3 20600000 rtn 
+
+l2cap_reset_hid_ctrl_state:
+4ff4 58000000 setarg 0 
+4ff5 67e144e3 store 2 ,mem_hid_ctrl_remote_cid 
+4ff6 7044e900 jam 0 ,mem_hid_control_state 
+4ff7 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+4ff8 c0005000 beq 0 ,l2cap_reset_hid_disconnected 
+4ff9 20600000 rtn 
+
+l2cap_reset_hid_int_state:
+4ffa 58000000 setarg 0 
+4ffb 67e144e5 store 2 ,mem_hid_int_remote_cid 
+4ffc 7044ea00 jam 0 ,mem_hid_interrupt_state 
+4ffd 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+4ffe c0005000 beq 0 ,l2cap_reset_hid_disconnected 
+4fff 20600000 rtn 
+
+l2cap_reset_hid_disconnected:
+5000 70095b07 jam bt_evt_hid_disconnected ,mem_fifo_temp 
+5001 202077a7 branch ui_ipc_send_event 
+
+l2cap_disconnect_interrupt_req:
+5002 6fe08330 fetch 1 ,mem_control_tasks 
+5003 793ffe00 set0 l2cap_disconnect_interrupt ,pdata 
+5004 67e08330 store 1 ,mem_control_tasks 
+5005 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+5006 207a0000 rtn blank 
+5007 20405228 call l2cap_malloc_signal_channel 
+5008 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+5009 1fe22200 copy pdata ,rega 
+500a 18002453 force l2cap_hid_interrupt_channel ,regb 
+500b 20205015 branch l2cap_generate_disconnect_req 
+
+l2cap_disconnect_control_req:
+500c 6fe08330 fetch 1 ,mem_control_tasks 
+500d 793ffe07 set0 l2cap_disconnect_control ,pdata 
+500e 67e08330 store 1 ,mem_control_tasks 
+500f 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+5010 207a0000 rtn blank 
+5011 20405228 call l2cap_malloc_signal_channel 
+5012 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+5013 1fe22200 copy pdata ,rega 
+5014 18002452 force l2cap_hid_control_channel ,regb 
+
+l2cap_generate_disconnect_req:
+5015 204051b4 call l2cap_get_req_id 
+5016 20405233 call l2cap_get_signal_tx_payload 
+5017 18007e06 force signal_disconnect_req ,pdata 
+5018 e7e08005 istore 1 ,contw 
+5019 6fe0c4ec fetch 1 ,mem_ml2cap_comm_id 
+501a e7e08005 istore 1 ,contw 
+501b 58000004 setarg 0x0004 
+501c e7e10005 istore 2 ,contw 
+501d 1a227e00 copy rega ,pdata 
+501e e7e10005 istore 2 ,contw 
+501f 1a427e00 copy regb ,pdata 
+5020 e7e10005 istore 2 ,contw 
+5021 18000408 force 0x08 ,temp 
+5022 20205059 branch ml2cap_send_signal 
+
+ml2cap_send_signal_connect_req:
+5023 44fcc01f bpatch patch1f_1 ,mem_patch1f 
+5024 204051b4 call l2cap_get_req_id 
+5025 20405233 call l2cap_get_signal_tx_payload 
+5026 58000002 setarg signal_connect_req 
+5027 e7e08005 istore 1 ,contw 
+5028 6fe0c4ec fetch 1 ,mem_ml2cap_comm_id 
+5029 e7e08005 istore 1 ,contw 
+502a 58000004 setarg 0x0004 
+502b e7e10005 istore 2 ,contw 
+502c 18427e00 copy temp ,pdata 
+502d e7e10005 istore 2 ,contw 
+502e 19627e00 copy timeup ,pdata 
+502f e7e10005 istore 2 ,contw 
+5030 d8400008 arg 8 ,temp 
+5031 20205059 branch ml2cap_send_signal 
+
+ml2cap_send_signal_config_req:
+5032 44fd401f bpatch patch1f_2 ,mem_patch1f 
+5033 204051b4 call l2cap_get_req_id 
+5034 20405233 call l2cap_get_signal_tx_payload 
+5035 58000004 setarg signal_config_req 
+5036 e7e08005 istore 1 ,contw 
+5037 6fe0c4ec fetch 1 ,mem_ml2cap_comm_id 
+5038 e7e08005 istore 1 ,contw 
+5039 58000008 setarg 0x0008 
+503a e7e10005 istore 2 ,contw 
+503b 18427e00 copy temp ,pdata 
+503c e7e10005 istore 2 ,contw 
+503d 58000000 setarg 0x0000 
+503e e7e10005 istore 2 ,contw 
+503f 58000001 setarg 0x01 
+5040 e7e08005 istore 1 ,contw 
+5041 58000002 setarg 0x02 
+5042 e7e08005 istore 1 ,contw 
+5043 580003e3 setarg l2cap_config_mtu_rfcomm 
+5044 e7e10005 istore 2 ,contw 
+5045 d840000c arg 0xc ,temp 
+5046 20205059 branch ml2cap_send_signal 
+
+ml2cap_send_signal_disconn_req:
+5047 44fdc01f bpatch patch1f_3 ,mem_patch1f 
+5048 204051b4 call l2cap_get_req_id 
+5049 20405233 call l2cap_get_signal_tx_payload 
+504a 58000006 setarg signal_disconnect_req 
+504b e7e08005 istore 1 ,contw 
+504c 6fe0c4ec fetch 1 ,mem_ml2cap_comm_id 
+504d 1fe0fe01 increase 1 ,pdata 
+504e 18a22200 copy contw ,rega 
+504f 67e0c4ec store 1 ,mem_ml2cap_comm_id 
+5050 1a220a00 copy rega ,contw 
+5051 e7e08005 istore 1 ,contw 
+5052 58000004 setarg 0x0004 
+5053 e7e10005 istore 2 ,contw 
+5054 18427e00 copy temp ,pdata 
+5055 e7e10005 istore 2 ,contw 
+5056 19627e00 copy timeup ,pdata 
+5057 e7e10005 istore 2 ,contw 
+5058 d8400008 arg 0x8 ,temp 
+
+ml2cap_send_signal:
+5059 60490320 storet 2 ,mem_l2cap_signal_tx_length 
+505a 18427e00 copy temp ,pdata 
+505b 203a5204 branch l2cap_malloc_discard ,blank 
+505c 20405231 call l2cap_get_signal_tx_buff 
+505d 6fe10320 fetch 2 ,mem_l2cap_signal_tx_length 
+505e e7e10005 istore 2 ,contw 
+505f 18007e01 force l2cap_signal_channel ,pdata 
+5060 e7e10005 istore 2 ,contw 
+5061 20600000 rtn 
+
+msdp_send_req_done:
+5062 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+5063 203a137a branch assert ,blank 
+5064 2040523e call l2cap_get_sdp_tx_buff 
+5065 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+5066 e7e10005 istore 2 ,contw 
+5067 6fe144df fetch 2 ,mem_sdp_remote_cid 
+5068 e7e10005 istore 2 ,contw 
+5069 20600000 rtn 
+
+ml2cap_rx_multiplexing:
+506a 6fe10317 fetch 2 ,mem_l2cap_rx_pkt_length 
+506b 203a4d77 branch l2cap_rx_reset_state ,blank 
+506c 44fe401f bpatch patch1f_4 ,mem_patch1f 
+506d 6fe08319 fetch 1 ,mem_l2cap_rx_cid 
+506e c000d074 beq l2cap_signal_channel ,ml2cap_call_proc_signal 
+506f c0284d61 beq l2cap_sdp_channel ,ml2cap_call_proc_sdp 
+5070 c028cd70 beq l2cap_rfcomm_channel ,l2cap_call_proc_rfcomm 
+5071 c0294d6e beq l2cap_hid_control_channel ,l2cap_call_proc_hid 
+5072 c029cd6e beq l2cap_hid_interrupt_channel ,l2cap_call_proc_hid 
+5073 20204d77 branch l2cap_rx_reset_state 
+
+ml2cap_call_proc_signal:
+5074 20405228 call l2cap_malloc_signal_channel 
+5075 18002400 force 0 ,regb 
+5076 20405233 call l2cap_get_signal_tx_payload 
+5077 1fe20a00 copy pdata ,contw 
+5078 6fe10317 fetch 2 ,mem_l2cap_rx_pkt_length 
+5079 1fe22600 copy pdata ,regc 
+507a 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+507b 98000c00 iforce contr 
+
+ml2cap_proc_one_comm_loop:
+507c 20405082 call ml2cap_proc_one_comm 
+507d 1a60a7fc increase -4 ,regc 
+507e 2422d07c nbranch ml2cap_proc_one_comm_loop ,zero 
+507f 1a420400 copy regb ,temp 
+5080 20405059 call ml2cap_send_signal 
+5081 20204d77 branch l2cap_rx_reset_state 
+
+ml2cap_proc_one_comm:
+5082 efe08006 ifetch 1 ,contr 
+5083 c001508d beq signal_connect_req ,ml2cap_proc_signal_connect_req 
+5084 c000d090 beq signal_cmd_reject ,ml2cap_proc_signal_cmd_reject 
+5085 c001d09a beq signal_connect_rsp ,ml2cap_proc_signal_connect_rsp 
+5086 c002d0d6 beq signal_config_rsp ,ml2cap_proc_signal_config_rsp 
+5087 c0025108 beq signal_config_req ,ml2cap_proc_signal_config_req 
+5088 c003d18d beq signal_disconnect_rsp ,ml2cap_proc_signal_disconn_rsp 
+5089 c003515b beq signal_disconnect_req ,ml2cap_proc_signal_disconn_req 
+508a c0044fcb beq signal_echo_req ,l2cap_proc_signal_echo_req 
+508b c0054db5 beq signal_info_req ,ml2cap_proc_signal_info_req 
+508c 202051a8 branch ml2cap_proc_send_reject 
+
+ml2cap_proc_signal_connect_req:
+508d 20407c2c call save_cont_pointers 
+508e 20407c31 call load_cont_pointers 
+508f 20204dcc branch l2cap_proc_signal_connect_req 
+
+ml2cap_proc_signal_cmd_reject:
+5090 efe08006 ifetch 1 ,contr 
+5091 1fe20e00 copy pdata ,queue 
+5092 efe10006 ifetch 2 ,contr 
+5093 1fe22200 copy pdata ,rega 
+5094 1a627e00 copy regc ,pdata 
+5095 9a262600 isub rega ,regc 
+
+mvptr:
+5096 efe08006 ifetch 1 ,contr 
+5097 1a20a3ff increase -1 ,rega 
+5098 2422d096 nbranch mvptr ,zero 
+5099 20600000 rtn 
+
+ml2cap_proc_signal_connect_rsp:
+509a efe08006 ifetch 1 ,contr 
+509b 1fe20e00 copy pdata ,queue 
+509c efe10006 ifetch 2 ,contr 
+509d 1fe22200 copy pdata ,rega 
+509e efe10006 ifetch 2 ,contr 
+509f 1fe21600 copy pdata ,timeup 
+50a0 efe10006 ifetch 2 ,contr 
+50a1 1fe20400 copy pdata ,temp 
+50a2 efe10006 ifetch 2 ,contr 
+50a3 1fe67c00 sub pdata ,0 ,null 
+50a4 2022d0ac branch ml2cap_proc_signal_connect_rsp_sucessful ,zero 
+50a5 c00150a8 beq l2cap_connect_refused_psm_unsupported ,ml2cap_proc_signal_connect_refused_result 
+50a6 c00250a8 beq l2cap_connect_refused_no_resources ,ml2cap_proc_signal_connect_refused_result 
+50a7 202050aa branch ml2cap_proc_signal_connect_rsp_mnosucc 
+
+ml2cap_proc_signal_connect_refused_result:
+50a8 70095b16 jam bt_evt_ml2cap_conn_refused ,mem_fifo_temp 
+50a9 204077a7 call ui_ipc_send_event 
+
+ml2cap_proc_signal_connect_rsp_mnosucc:
+50aa efe10006 ifetch 2 ,contr 
+50ab 202050d3 branch mnosucc 
+
+ml2cap_proc_signal_connect_rsp_sucessful:
+50ac 20407c2c call save_cont_pointers 
+50ad 44fec01f bpatch patch1f_5 ,mem_patch1f 
+50ae 58000050 setarg l2cap_sdp_channel 
+50af 98467c00 isub temp ,null 
+50b0 2022d0bb branch ml2cap_proc_signal_connect_rsp_sdp ,zero 
+50b1 58000051 setarg l2cap_rfcomm_channel 
+50b2 98467c00 isub temp ,null 
+50b3 2022d0c1 branch ml2cap_proc_signal_connect_rsp_rfcomm ,zero 
+50b4 58000053 setarg l2cap_hid_interrupt_channel 
+50b5 98467c00 isub temp ,null 
+50b6 2022d0cd branch ml2cap_proc_signal_connect_rsp_hid_int ,zero 
+50b7 58000052 setarg l2cap_hid_control_channel 
+50b8 98467c00 isub temp ,null 
+50b9 2022d0c7 branch ml2cap_proc_signal_connect_rsp_hid_ctrl ,zero 
+50ba 202050d3 branch mnosucc 
+
+ml2cap_proc_signal_connect_rsp_sdp:
+50bb 19627e00 copy timeup ,pdata 
+50bc 67e144df store 2 ,mem_sdp_remote_cid 
+50bd 6fe0c4e7 fetch 1 ,mem_sdp_state 
+50be 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+50bf 67e0c4e7 store 1 ,mem_sdp_state 
+50c0 202050d2 branch mnosucc1 
+
+ml2cap_proc_signal_connect_rsp_rfcomm:
+50c1 19627e00 copy timeup ,pdata 
+50c2 67e144e1 store 2 ,mem_rfcomm_remote_cid 
+50c3 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+50c4 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+50c5 67e0c4e8 store 1 ,mem_rfcomm_state 
+50c6 202050d2 branch mnosucc1 
+
+ml2cap_proc_signal_connect_rsp_hid_ctrl:
+50c7 19627e00 copy timeup ,pdata 
+50c8 67e144e3 store 2 ,mem_hid_ctrl_remote_cid 
+50c9 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+50ca 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+50cb 67e0c4e9 store 1 ,mem_hid_control_state 
+50cc 202050d2 branch mnosucc1 
+
+ml2cap_proc_signal_connect_rsp_hid_int:
+50cd 19627e00 copy timeup ,pdata 
+50ce 67e144e5 store 2 ,mem_hid_int_remote_cid 
+50cf 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+50d0 79207e01 set1 l2cap_channel_state_conn_res ,pdata 
+50d1 67e0c4ea store 1 ,mem_hid_interrupt_state 
+
+mnosucc1:
+50d2 20407c31 call load_cont_pointers 
+
+mnosucc:
+50d3 1a627e00 copy regc ,pdata 
+50d4 9a262600 isub rega ,regc 
+50d5 20600000 rtn 
+
+ml2cap_proc_signal_config_rsp:
+50d6 efe08006 ifetch 1 ,contr 
+50d7 1fe20e00 copy pdata ,queue 
+50d8 efe10006 ifetch 2 ,contr 
+50d9 1fe22200 copy pdata ,rega 
+50da 1a627e00 copy regc ,pdata 
+50db 9a262600 isub rega ,regc 
+50dc efe10006 ifetch 2 ,contr 
+50dd 1fe21600 copy pdata ,timeup 
+50de efe10006 ifetch 2 ,contr 
+50df efe10006 ifetch 2 ,contr 
+50e0 243a5102 nbranch mcrsdone1 ,blank 
+50e1 20407c2c call save_cont_pointers 
+50e2 19620400 copy timeup ,temp 
+50e3 44ff401f bpatch patch1f_6 ,mem_patch1f 
+50e4 58000050 setarg l2cap_sdp_channel 
+50e5 98467c00 isub temp ,null 
+50e6 2022d0f0 branch ml2cap_proc_signal_config_rsp_sdp ,zero 
+50e7 58000051 setarg l2cap_rfcomm_channel 
+50e8 98467c00 isub temp ,null 
+50e9 2022d0f4 branch ml2cap_proc_signal_config_rsp_rfcomm ,zero 
+50ea 58000052 setarg l2cap_hid_control_channel 
+50eb 98467c00 isub temp ,null 
+50ec 2022d0f8 branch ml2cap_proc_signal_config_rsp_hid_ctrl ,zero 
+50ed 58000053 setarg l2cap_hid_interrupt_channel 
+50ee 98467c00 isub temp ,null 
+50ef 2022d0fc branch ml2cap_proc_signal_config_rsp_hid_int ,zero 
+
+ml2cap_proc_signal_config_rsp_sdp:
+50f0 6fe0c4e7 fetch 1 ,mem_sdp_state 
+50f1 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+50f2 67e0c4e7 store 1 ,mem_sdp_state 
+50f3 20600000 rtn 
+
+ml2cap_proc_signal_config_rsp_rfcomm:
+50f4 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+50f5 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+50f6 67e0c4e8 store 1 ,mem_rfcomm_state 
+50f7 20600000 rtn 
+
+ml2cap_proc_signal_config_rsp_hid_ctrl:
+50f8 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+50f9 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+50fa 67e0c4e9 store 1 ,mem_hid_control_state 
+50fb 20600000 rtn 
+
+ml2cap_proc_signal_config_rsp_hid_int:
+50fc 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+50fd 79207e05 set1 l2cap_channel_state_rcv_cfg_res ,pdata 
+50fe 67e0c4ea store 1 ,mem_hid_interrupt_state 
+50ff 70095b06 jam bt_evt_hid_connected ,mem_fifo_temp 
+5100 202077a7 branch ui_ipc_send_event 
+
+mcfrsdone:
+5101 20407c31 call load_cont_pointers 
+
+mcrsdone1:
+5102 1a20a3fa increase -6 ,rega 
+
+mloop2:
+5103 2022d107 branch mcrsdone ,zero 
+5104 18c08c01 increase 1 ,contr 
+5105 1a20a3ff increase -1 ,rega 
+5106 20205103 branch mloop2 
+
+mcrsdone:
+5107 20600000 rtn 
+
+ml2cap_proc_signal_config_req:
+5108 efe08006 ifetch 1 ,contr 
+5109 1fe20e00 copy pdata ,queue 
+510a efe10006 ifetch 2 ,contr 
+510b 1fe22200 copy pdata ,rega 
+510c 1a627e00 copy regc ,pdata 
+510d 9a262600 isub rega ,regc 
+510e efe10006 ifetch 2 ,contr 
+510f 18c08c02 increase 2 ,contr 
+5110 1fe20400 copy pdata ,temp 
+5111 58000005 setarg signal_config_rsp 
+5112 e7e08005 istore 1 ,contw 
+5113 18e27e00 copy queue ,pdata 
+5114 e7e08005 istore 1 ,contw 
+5115 1a20a202 increase 2 ,rega 
+5116 1a227e00 copy rega ,pdata 
+5117 e7e10005 istore 2 ,contw 
+5118 20407c2c call save_cont_pointers 
+5119 44ffc01f bpatch patch1f_7 ,mem_patch1f 
+511a 58000050 setarg l2cap_sdp_channel 
+511b 98467c00 isub temp ,null 
+511c 2022d127 branch ml2cap_proc_signal_config_req_sdp ,zero 
+511d 58000051 setarg l2cap_rfcomm_channel 
+511e 98467c00 isub temp ,null 
+511f 2022d138 branch ml2cap_proc_signal_config_req_rfcomm ,zero 
+5120 58000052 setarg l2cap_hid_control_channel 
+5121 98467c00 isub temp ,null 
+5122 2022d13e branch ml2cap_proc_signal_config_req_hid_ctrl ,zero 
+5123 58000053 setarg l2cap_hid_interrupt_channel 
+5124 98467c00 isub temp ,null 
+5125 2022d144 branch ml2cap_proc_signal_config_req_hid_int ,zero 
+5126 20205149 branch mcfgrq_done 
+
+ml2cap_proc_signal_config_req_sdp:
+5127 6fe0c4e7 fetch 1 ,mem_sdp_state 
+5128 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+5129 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+512a 67e0c4e7 store 1 ,mem_sdp_state 
+512b c2815135 bbit1 l2cap_channel_state_snd_cfg_req ,ml2cap_proc_signal_config_req_sdp_nsndreq 
+512c 68488330 fetcht 1 ,mem_control_tasks 
+512d 79200406 set1 l2cap_init_config_req ,temp 
+512e 60488330 storet 1 ,mem_control_tasks 
+512f 18e27e00 copy queue ,pdata 
+5130 1fe0fe01 increase 1 ,pdata 
+5131 67e08332 store 1 ,mem_config_identifier 
+5132 6fe0c4e7 fetch 1 ,mem_sdp_state 
+5133 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+5134 67e0c4e7 store 1 ,mem_sdp_state 
+
+ml2cap_proc_signal_config_req_sdp_nsndreq:
+5135 6fe144df fetch 2 ,mem_sdp_remote_cid 
+5136 67e10333 store 2 ,mem_config_req_dest_cid 
+5137 20205149 branch mcfgrq_done 
+
+ml2cap_proc_signal_config_req_rfcomm:
+5138 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+5139 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+513a 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+513b 67e0c4e8 store 1 ,mem_rfcomm_state 
+513c 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+513d 20205149 branch mcfgrq_done 
+
+ml2cap_proc_signal_config_req_hid_ctrl:
+513e 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+513f 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+5140 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+5141 67e0c4e9 store 1 ,mem_hid_control_state 
+5142 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+5143 20205149 branch mcfgrq_done 
+
+ml2cap_proc_signal_config_req_hid_int:
+5144 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+5145 79207e04 set1 l2cap_channel_state_rcv_cfg_req ,pdata 
+5146 79207e03 set1 l2cap_channel_state_snd_cfg_res ,pdata 
+5147 67e0c4ea store 1 ,mem_hid_interrupt_state 
+5148 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+
+mcfgrq_done:
+5149 1fe21600 copy pdata ,timeup 
+514a 20407c31 call load_cont_pointers 
+514b 19627e00 copy timeup ,pdata 
+514c e7e10005 istore 2 ,contw 
+514d 18007e00 force 0x0000 ,pdata 
+514e e7e10005 istore 2 ,contw 
+514f 18007e00 force 0x0000 ,pdata 
+5150 e7e10005 istore 2 ,contw 
+5151 18007e0a force 10 ,pdata 
+5152 9a40a400 iadd regb ,regb 
+5153 1a20a3fa increase -6 ,rega 
+
+mloop1:
+5154 2022d15a branch mcrqdone ,zero 
+5155 efe08006 ifetch 1 ,contr 
+5156 e7e08005 istore 1 ,contw 
+5157 1a40a401 increase 1 ,regb 
+5158 1a20a3ff increase -1 ,rega 
+5159 20205154 branch mloop1 
+
+mcrqdone:
+515a 20600000 rtn 
+
+ml2cap_proc_signal_disconn_req:
+515b efe08006 ifetch 1 ,contr 
+515c 1fe20e00 copy pdata ,queue 
+515d efe10006 ifetch 2 ,contr 
+515e 1fe22200 copy pdata ,rega 
+515f 1a627e00 copy regc ,pdata 
+5160 9a262600 isub rega ,regc 
+5161 efe10006 ifetch 2 ,contr 
+5162 1fe22200 copy pdata ,rega 
+5163 efe10006 ifetch 2 ,contr 
+5164 1fe21600 copy pdata ,timeup 
+5165 20407c2c call save_cont_pointers 
+5166 47004020 bpatchx patch20_0 ,mem_patch20 
+5167 58000050 setarg l2cap_sdp_channel 
+5168 1a220400 copy rega ,temp 
+5169 98467c00 isub temp ,null 
+516a 2022d174 branch ml2cap_proc_signal_disconn_sdp ,zero 
+516b 58000052 setarg l2cap_hid_control_channel 
+516c 1a220400 copy rega ,temp 
+516d 98467c00 isub temp ,null 
+516e 2022d179 branch ml2cap_proc_signal_disconn_hid_ctrl ,zero 
+516f 58000053 setarg l2cap_hid_interrupt_channel 
+5170 1a220400 copy rega ,temp 
+5171 98467c00 isub temp ,null 
+5172 2022d17b branch ml2cap_proc_signal_disconn_hid_int ,zero 
+5173 2020517d branch mclsrfc 
+
+ml2cap_proc_signal_disconn_sdp:
+5174 58000000 setarg 0x0000 
+5175 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+5176 67e144df store 2 ,mem_sdp_remote_cid 
+5177 67e0c4e7 store 1 ,mem_sdp_state 
+5178 2020517f branch mclssdp 
+
+ml2cap_proc_signal_disconn_hid_ctrl:
+5179 20404ff4 call l2cap_reset_hid_ctrl_state 
+517a 2020517f branch mclssdp 
+
+ml2cap_proc_signal_disconn_hid_int:
+517b 20404ffa call l2cap_reset_hid_int_state 
+517c 2020517f branch mclssdp 
+
+mclsrfc:
+517d 58000000 setarg 0x0000 
+517e 67e1032c store 2 ,mem_rfcomm_tx_pkt_length 
+
+mclssdp:
+517f 20407c31 call load_cont_pointers 
+5180 58000007 setarg signal_disconnect_rsp 
+5181 e7e08005 istore 1 ,contw 
+5182 18e27e00 copy queue ,pdata 
+5183 e7e08005 istore 1 ,contw 
+5184 58000004 setarg 0x0004 
+5185 e7e10005 istore 2 ,contw 
+5186 1a227e00 copy rega ,pdata 
+5187 e7e10005 istore 2 ,contw 
+5188 19627e00 copy timeup ,pdata 
+5189 e7e10005 istore 2 ,contw 
+518a 18007e08 force 8 ,pdata 
+518b 9a40a400 iadd regb ,regb 
+518c 20600000 rtn 
+
+ml2cap_proc_signal_disconn_rsp:
+518d efe08006 ifetch 1 ,contr 
+518e 1fe20e00 copy pdata ,queue 
+518f efe10006 ifetch 2 ,contr 
+5190 1fe22200 copy pdata ,rega 
+5191 efe10006 ifetch 2 ,contr 
+5192 1fe21600 copy pdata ,timeup 
+5193 efe10006 ifetch 2 ,contr 
+5194 1fe20400 copy pdata ,temp 
+5195 20407c2c call save_cont_pointers 
+5196 4700c020 bpatchx patch20_1 ,mem_patch20 
+5197 6fe0c4ec fetch 1 ,mem_ml2cap_comm_id 
+5198 a8e1fe00 icompare 0xff ,queue 
+5199 2420d1a4 nbranch mdisdone ,true 
+519a 58000050 setarg l2cap_sdp_channel 
+519b 98467c00 isub temp ,null 
+519c 2022d1a1 branch ml2cap_proc_signal_disconn_rsp_sdp ,zero 
+519d 58000051 setarg l2cap_rfcomm_channel 
+519e 98467c00 isub temp ,null 
+519f 2022d1a4 branch ml2cap_proc_signal_disconn_rsp_rfcomm ,zero 
+51a0 202051a4 branch mdisdone 
+
+ml2cap_proc_signal_disconn_rsp_sdp:
+51a1 7044df00 jam 0 ,mem_sdp_remote_cid 
+51a2 7044e700 jam 0 ,mem_sdp_state 
+51a3 202051a4 branch mdisdone 
+
+ml2cap_proc_signal_disconn_rsp_rfcomm:
+
+mdisdone:
+51a4 20407c31 call load_cont_pointers 
+51a5 1a627e00 copy regc ,pdata 
+51a6 9a262600 isub rega ,regc 
+51a7 20600000 rtn 
+
+ml2cap_proc_send_reject:
+51a8 58000001 setarg signal_cmd_reject 
+51a9 e7e08005 istore 1 ,contw 
+51aa efe08006 ifetch 1 ,contr 
+51ab e7e08005 istore 1 ,contw 
+51ac 58000002 setarg 0x0002 
+51ad e7e10005 istore 2 ,contw 
+51ae 58000000 setarg 0x0000 
+51af e7e10005 istore 2 ,contw 
+51b0 58000006 setarg 0x0006 
+51b1 9a40a400 iadd regb ,regb 
+51b2 18002604 force 4 ,regc 
+51b3 20600000 rtn 
+
+l2cap_get_req_id:
+51b4 6fe0c4ec fetch 1 ,mem_ml2cap_comm_id 
+51b5 1fe0fe01 increase 1 ,pdata 
+51b6 c08051b8 bne 0 ,l2cap_get_req_id_ok 
+51b7 1fe0fe01 increase 1 ,pdata 
+
+l2cap_get_req_id_ok:
+51b8 67e0c4ec store 1 ,mem_ml2cap_comm_id 
+51b9 20600000 rtn 
+
+l2cap_malloc:
+
+bt_l2cap_malloc:
+51ba db001800 arg mem_tx_buff0 ,regd 
+51bb dd600080 arg mem_bt_l2cap_tx_buff_size ,rege 
+51bc 20407d92 call enable_user 
+51bd 202051c2 branch host_l2cap_malloc 
+
+ble_l2cap_malloc:
+51be 6b0143e1 fetchr regd ,2 ,mem_ble_l2cap_tx_buff0_ptr 
+51bf 6d6143e3 fetchr rege ,2 ,mem_ble_l2cap_tx_buff_size_ptr 
+51c0 20407d94 call disable_user 
+51c1 202051c2 branch host_l2cap_malloc 
+
+host_l2cap_malloc:
+51c2 47014020 bpatchx patch20_2 ,mem_patch20 
+51c3 2040520e call l2cap_malloc_is_fifo_full 
+51c4 243a137a nbranch assert ,blank 
+51c5 2040521e call l2cap_malloc_get_full_map 
+51c6 df200008 arg 8 ,loopcnt 
+
+host_l2cap_malloc_loop:
+51c7 6848c4ed fetcht 1 ,mem_used_map 
+51c8 1f260e08 sub loopcnt ,8 ,queue 
+51c9 a84fffff qisolate1 temp 
+51ca 2020d1cf branch host_l2cap_malloc_next_buffer ,true 
+51cb 204051d6 call host_l2cap_malloc_check_buffer_enough 
+51cc 242151cf nbranch host_l2cap_malloc_next_buffer ,positive 
+51cd 204051ec call host_l2cap_malloc_into_fifo 
+51ce 202051d3 branch host_l2cap_malloc_succ 
+
+host_l2cap_malloc_next_buffer:
+51cf 1d627e00 copy rege ,pdata 
+51d0 9b00b000 iadd regd ,regd 
+51d1 c20051c7 loop host_l2cap_malloc_loop 
+51d2 2020137a branch assert 
+
+host_l2cap_malloc_succ:
+51d3 1b027e00 copy regd ,pdata 
+51d4 1b020a00 copy regd ,contw 
+51d5 20600000 rtn 
+
+host_l2cap_malloc_check_buffer_enough:
+51d6 4701c020 bpatchx patch20_3 ,mem_patch20 
+51d7 1f260e08 sub loopcnt ,8 ,queue 
+51d8 d8400000 arg 0 ,temp 
+51d9 d9600000 arg 0 ,timeup 
+
+host_l2cap_malloc_check_buffer_enough_loop:
+51da 18e27e00 copy queue ,pdata 
+51db c00451e7 beq 8 ,host_l2cap_malloc_check_buffer_enough_end 
+51dc 6fe0c4ed fetch 1 ,mem_used_map 
+51dd afefffff qisolate1 pdata 
+51de 2020d1e7 branch host_l2cap_malloc_check_buffer_enough_end ,true 
+51df f9201600 qset1 timeup 
+51e0 1d627e00 copy rege ,pdata 
+51e1 98408400 iadd temp ,temp 
+51e2 18e08e01 increase 1 ,queue 
+51e3 1a227e00 copy rega ,pdata 
+51e4 98467c00 isub temp ,null 
+51e5 2022d1e7 branch host_l2cap_malloc_check_buffer_enough_end ,zero 
+51e6 202151da branch host_l2cap_malloc_check_buffer_enough_loop ,positive 
+
+host_l2cap_malloc_check_buffer_enough_end:
+51e7 18427e00 copy temp ,pdata 
+51e8 9a267c00 isub rega ,null 
+51e9 24628000 nrtn zero 
+51ea f9201600 qset1 timeup 
+51eb 20600000 rtn 
+
+host_l2cap_malloc_into_fifo:
+51ec 47024020 bpatchx patch20_4 ,mem_patch20 
+51ed 2040520e call l2cap_malloc_is_fifo_full 
+51ee 243a137a nbranch assert ,blank 
+51ef 20405214 call l2cap_malloc_is_fifo_empty 
+51f0 203a51f5 branch host_l2cap_malloc_into_fifo_no_push ,blank 
+51f1 6fe4c4f1 fetch 9 ,mem_tx_fifo1 
+51f2 67e4c4ee store 9 ,mem_tx_fifo0 
+51f3 58000000 setarg 0 
+51f4 e7e18005 istore 3 ,contw 
+
+host_l2cap_malloc_into_fifo_no_push:
+51f5 6160c4f7 storer timeup ,1 ,mem_tx_fifo3_map 
+51f6 630144f8 storer regd ,2 ,mem_tx_fifo3_ptr 
+51f7 20600000 rtn 
+
+l2cap_malloc_fifo_out:
+51f8 4702c020 bpatchx patch20_5 ,mem_patch20 
+51f9 20405217 call l2cap_malloc_fifo_get_first_ptr 
+51fa 18c08c01 increase 1 ,contr 
+51fb efe10006 ifetch 2 ,contr 
+51fc 20600000 rtn 
+
+l2cap_malloc_free:
+51fd 47034020 bpatchx patch20_6 ,mem_patch20 
+51fe 20405217 call l2cap_malloc_fifo_get_first_ptr 
+51ff 18c20a00 copy contr ,contw 
+5200 18c20400 copy contr ,temp 
+5201 58000000 setarg 0 
+5202 e7e18005 istore 3 ,contw 
+5203 20600000 rtn 
+
+l2cap_malloc_discard:
+5204 4703c020 bpatchx patch20_7 ,mem_patch20 
+5205 20405214 call l2cap_malloc_is_fifo_empty 
+5206 203a137a branch assert ,blank 
+5207 6fe1c4f4 fetch 3 ,mem_tx_fifo2 
+5208 67e1c4f7 store 3 ,mem_tx_fifo3 
+5209 6fe1c4f1 fetch 3 ,mem_tx_fifo1 
+520a 67e1c4f4 store 3 ,mem_tx_fifo2 
+520b 6fe1c4ee fetch 3 ,mem_tx_fifo0 
+520c 67e1c4f1 store 3 ,mem_tx_fifo1 
+520d 20600000 rtn 
+
+l2cap_malloc_is_fifo_full:
+520e 47044021 bpatchx patch21_0 ,mem_patch21 
+520f 6fe1c4ee fetch 3 ,mem_tx_fifo0 
+5210 20600000 rtn 
+
+l2cap_malloc_is_fifo_nearly_full:
+5211 4704c021 bpatchx patch21_1 ,mem_patch21 
+5212 6fe1c4f1 fetch 3 ,mem_tx_fifo1 
+5213 20600000 rtn 
+
+l2cap_malloc_is_fifo_empty:
+5214 47054021 bpatchx patch21_2 ,mem_patch21 
+5215 6fe1c4f7 fetch 3 ,mem_tx_fifo3 
+5216 20600000 rtn 
+
+l2cap_malloc_fifo_get_first_ptr:
+5217 20405214 call l2cap_malloc_is_fifo_empty 
+5218 203a521c branch l2cap_malloc_fifo_get_first_ptr_empty ,blank 
+5219 d8c044ee arg mem_tx_fifo0 ,contr 
+
+l2cap_malloc_free_loop:
+521a efe18006 ifetch 3 ,contr 
+521b 203a521a branch l2cap_malloc_free_loop ,blank 
+
+l2cap_malloc_fifo_get_first_ptr_empty:
+521c 18c08dfd increase -3 ,contr 
+521d 20600000 rtn 
+
+l2cap_malloc_get_full_map:
+521e 4705c021 bpatchx patch21_3 ,mem_patch21 
+521f df200004 arg 4 ,loopcnt 
+5220 d8c044ee arg mem_tx_fifo0_map ,contr 
+5221 d8400000 arg 0 ,temp 
+
+l2cap_malloc_get_full_map_loop:
+5222 efe18006 ifetch 3 ,contr 
+5223 1fe17eff and pdata ,0xff ,pdata 
+5224 98418400 ior temp ,temp 
+5225 c2005222 loop l2cap_malloc_get_full_map_loop 
+5226 6048c4ed storet 1 ,mem_used_map 
+5227 20600000 rtn 
+
+l2cap_malloc_signal_channel:
+5228 47064021 bpatchx patch21_4 ,mem_patch21 
+5229 da20007f arg l2cap_signal_malloc_size ,rega 
+522a 204051ba call l2cap_malloc 
+522b 67e1031c store 2 ,mem_l2cap_signal_tx_buff_ptr 
+522c 1fe0fe04 increase 4 ,pdata 
+522d 67e1031e store 2 ,mem_l2cap_signal_tx_payload_ptr 
+522e 58000000 setarg 0 
+522f 67e10320 store 2 ,mem_l2cap_signal_tx_length 
+5230 20600000 rtn 
+
+l2cap_get_signal_tx_buff:
+5231 6fe1031c fetch 2 ,mem_l2cap_signal_tx_buff_ptr 
+5232 20205252 branch l2cap_util_pdata_to_contw 
+
+l2cap_get_signal_tx_payload:
+5233 6fe1031e fetch 2 ,mem_l2cap_signal_tx_payload_ptr 
+5234 20205252 branch l2cap_util_pdata_to_contw 
+
+l2cap_malloc_sdp_channel:
+5235 4706c021 bpatchx patch21_5 ,mem_patch21 
+5236 da2000fa arg sdp_malloc_size ,rega 
+5237 204051ba call l2cap_malloc 
+5238 67e10322 store 2 ,mem_sdp_tx_buff_ptr 
+5239 1fe0fe04 increase 4 ,pdata 
+523a 67e10324 store 2 ,mem_sdp_tx_payload_ptr 
+523b 58000000 setarg 0 
+523c 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+523d 20600000 rtn 
+
+l2cap_get_sdp_tx_buff:
+523e 6fe10322 fetch 2 ,mem_sdp_tx_buff_ptr 
+523f 20205252 branch l2cap_util_pdata_to_contw 
+
+l2cap_get_sdp_tx_payload:
+5240 6fe10324 fetch 2 ,mem_sdp_tx_payload_ptr 
+5241 20205252 branch l2cap_util_pdata_to_contw 
+
+l2cap_malloc_rfcomm_channel:
+5242 47074021 bpatchx patch21_6 ,mem_patch21 
+5243 20407c06 call push_stack 
+5244 70033501 jam rfcomm_malloc_fail ,mem_rfcomm_malloc_fail_flag 
+5245 2040520e call l2cap_malloc_is_fifo_full 
+5246 247a0000 nrtn blank 
+5247 da20007f arg rfcomm_malloc_size ,rega 
+5248 204051ba call l2cap_malloc 
+5249 67e10328 store 2 ,mem_rfcomm_tx_buff_ptr 
+524a 1fe0fe04 increase 4 ,pdata 
+524b 67e1032a store 2 ,mem_rfcomm_tx_payload_ptr 
+524c 58000000 setarg 0 
+524d 67e1032c store 2 ,mem_rfcomm_tx_pkt_length 
+524e 70033500 jam rfcomm_malloc_succeed ,mem_rfcomm_malloc_fail_flag 
+524f 20207c12 branch pop_stack 
+
+l2cap_get_rfcomm_tx_buff:
+5250 6fe10328 fetch 2 ,mem_rfcomm_tx_buff_ptr 
+5251 20205252 branch l2cap_util_pdata_to_contw 
+
+l2cap_util_pdata_to_contw:
+5252 203a137a branch assert ,blank 
+5253 1fe20a00 copy pdata ,contw 
+5254 20600000 rtn 
+
+l2cap_lpm_save_calc_len:
+5255 4707c021 bpatchx patch21_7 ,mem_patch21 
+5256 da400000 arg 0 ,regb 
+5257 da2044ee arg mem_tx_fifo0_map ,rega 
+5258 1a20a3fe increase -2 ,rega 
+
+l2cap_lpm_save_calc_len_loop:
+5259 1a20a202 increase 2 ,rega 
+525a 580044fa setarg mem_tx_fifo_end 
+525b 9a267c00 isub rega ,null 
+525c 2022d265 branch l2cap_lpm_save_calc_len_end ,zero 
+525d efe08011 ifetch 1 ,rega 
+525e 1a20a201 increase 1 ,rega 
+525f 203a5259 branch l2cap_lpm_save_calc_len_loop ,blank 
+5260 e8410011 ifetcht 2 ,rega 
+5261 efe10002 ifetch 2 ,temp 
+5262 9a40a400 iadd regb ,regb 
+5263 1a40a404 increase 4 ,regb 
+5264 20205259 branch l2cap_lpm_save_calc_len_loop 
+
+l2cap_lpm_save_calc_len_end:
+5265 1a427e00 copy regb ,pdata 
+5266 20600000 rtn 
+
+l2cap_lpm_get_wake_lock:
+5267 d8e0000c arg wake_lock_l2cap_tx ,queue 
+5268 20201547 branch lpm_get_wake_lock 
+
+l2cap_lpm_put_wake_lock:
+5269 d8e0000c arg wake_lock_l2cap_tx ,queue 
+526a 2020154b branch lpm_put_wake_lock 
+
+l2cap_lpm_save_txbuf:
+526b 47084022 bpatchx patch22_0 ,mem_patch22 
+526c 2040521e call l2cap_malloc_get_full_map 
+526d 6fe0c4ed fetch 1 ,mem_used_map 
+526e 207a0000 rtn blank 
+526f 20405255 call l2cap_lpm_save_calc_len 
+5270 d8400100 arg l2cap_lpm_txbuf_len ,temp 
+5271 98467c00 isub temp ,null 
+5272 20215267 branch l2cap_lpm_get_wake_lock ,positive 
+5273 20405269 call l2cap_lpm_put_wake_lock 
+5274 d8a044fa arg mem_l2cap_lpm_txbuf ,contw 
+5275 da2044ee arg mem_tx_fifo0 ,rega 
+
+l2cap_lpm_save_txbuf_loop:
+5276 580044fa setarg mem_tx_fifo_end 
+5277 9a267c00 isub rega ,null 
+5278 20628000 rtn zero 
+5279 efe08011 ifetch 1 ,rega 
+527a 1a20a201 increase 1 ,rega 
+527b 243a527f nbranch l2cap_lpm_save_txbuf_nempty ,blank 
+527c e7e10005 istore 2 ,contw 
+527d 1a20a202 increase 2 ,rega 
+527e 20205276 branch l2cap_lpm_save_txbuf_loop 
+
+l2cap_lpm_save_txbuf_nempty:
+527f efe10011 ifetch 2 ,rega 
+5280 1a20a202 increase 2 ,rega 
+5281 1fe20c00 copy pdata ,contr 
+5282 efe10006 ifetch 2 ,contr 
+5283 e7e10005 istore 2 ,contw 
+5284 1fe27200 copy pdata ,loopcnt 
+5285 1f20f202 increase 2 ,loopcnt 
+5286 20407ca1 call memcpy 
+5287 20205276 branch l2cap_lpm_save_txbuf_loop 
+
+l2cap_lpm_load_txbuf:
+5288 4708c022 bpatchx patch22_1 ,mem_patch22 
+5289 2040521e call l2cap_malloc_get_full_map 
+528a 6fe0c4ed fetch 1 ,mem_used_map 
+528b 207a0000 rtn blank 
+528c da2044ef arg mem_tx_fifo0_ptr ,rega 
+528d 1a20a3fd increase -3 ,rega 
+528e d8c044fa arg mem_l2cap_lpm_txbuf ,contr 
+
+l2cap_lpm_load_txbuf_loop:
+528f 1a20a203 increase 3 ,rega 
+5290 580044fb setarg mem_tx_fifo_end + 1 
+5291 9a267c00 isub rega ,null 
+5292 20628000 rtn zero 
+5293 efe10006 ifetch 2 ,contr 
+5294 203a528f branch l2cap_lpm_load_txbuf_loop ,blank 
+5295 1fe0fe04 increase 4 ,pdata 
+5296 1fe27200 copy pdata ,loopcnt 
+5297 18c22400 copy contr ,regb 
+5298 efe10011 ifetch 2 ,rega 
+5299 1fe20a00 copy pdata ,contw 
+529a 1a420c00 copy regb ,contr 
+529b 18c08dfe increase -2 ,contr 
+529c 20407ca1 call memcpy 
+529d 2020528f branch l2cap_lpm_load_txbuf_loop 
+
+init_lmp:
+529e 20758000 rtn wake 
+
+init_lmp_work:
+529f 47094022 bpatchx patch22_2 ,mem_patch22 
+52a0 58000000 setarg 0 
+52a1 67e08048 store 1 ,mem_lmp_to_send 
+52a2 67e08055 store 1 ,mem_conn_sm 
+52a3 67e08078 store 1 ,mem_lmo_opcode1 
+52a4 67e0807c store 1 ,mem_lmo_opcode2 
+52a5 67e0c15d store 1 ,mem_esco_addr 
+52a6 67e080bc store 1 ,mem_connection_options 
+52a7 67e08877 store 1 ,mem_pairing_auth 
+52a8 67e1c64b store 3 ,mem_encapsulated_major_type 
+52a9 67e0c64e store 1 ,mem_remote_br_sc_support 
+52aa 70464900 jam switch_flag_init ,mem_switch_flag 
+52ab 70030c00 jam 0 ,mem_switch_fail_master_count 
+52ac 7003ab00 jam null_encryp ,mem_wait_encryption 
+
+init_lmp_reinit:
+52ad 70087700 jam 0 ,mem_pairing_auth 
+52ae 70087600 jam 0 ,mem_sp_localsm 
+52af 7003a500 jam 0 ,mem_lmp_conn_state 
+
+parse_rx_done:
+52b0 20600000 rtn 
+
+parse_lmp:
+52b1 4709c022 bpatchx patch22_3 ,mem_patch22 
+52b2 2054d941 call setlocalsm_master ,master 
+52b3 2454d945 ncall setlocalsm_slave ,master 
+52b4 204058fe call lmo_fifo_check 
+52b5 247a0000 nrtn blank 
+52b6 6fe0804c fetch 1 ,mem_state_map 
+52b7 c4030000 rtnbit0 smap_rxlmp 
+52b8 793ffe06 set0 smap_rxlmp ,pdata 
+52b9 793f8001 set0 mark_rxbuf_inuse ,mark 
+52ba 67e0804c store 1 ,mem_state_map 
+52bb 6fe080ce fetch 1 ,mem_rxbuf 
+52bc 6848804c fetcht 1 ,mem_state_map 
+52bd 2feffe00 isolate1 smap_lmptidinit ,pdata 
+52be 79208401 setflag true ,smap_lmptid ,temp 
+52bf 6048804c storet 1 ,mem_state_map 
+52c0 18410402 and_into 0x2 ,temp 
+52c1 6048807f storet 1 ,mem_lmo_tid2 
+52c2 6848804c fetcht 1 ,mem_state_map 
+52c3 1fe37e00 rshift pdata ,pdata 
+52c4 67e0807d store 1 ,mem_lmi_opcode2 
+52c5 470a4022 bpatchx patch22_4 ,mem_patch22 
+52c6 6fe0807d fetch 1 ,mem_lmi_opcode2 
+52c7 c03fd313 beq lmp_escape ,parse_lmp_escape 
+52c8 c001d37f beq lmp_accepted ,parse_lmp_accepted 
+52c9 c0025390 beq lmp_not_accepted ,parse_lmp_not_accepted 
+52ca c01e5306 beq lmp_set_afh ,parse_lmp_set_afh 
+52cb c002d302 beq lmp_clkoffset_req ,parse_lmp_clkoffset_req 
+52cc c007d5b6 beq lmp_encryption_mode_req ,parse_lmp_encryption_mode_req 
+52cd c00853f5 beq lmp_encryption_key_size_req ,parse_lmp_crypt_key 
+52ce c011d414 beq lmp_auto_rate ,parse_lmp_auto_rate 
+52cf c01cd5cf beq lmp_test_control ,parse_lmp_test_control 
+52d0 c01c55ca beq lmp_test_activate ,parse_lmp_test_activate 
+52d1 c018d3fa beq lmp_setup_complete ,parse_lmp_setup_complete 
+52d2 c01bd496 beq lmp_supervision_timeout ,parse_lmp_supervision_timeout 
+52d3 c013d492 beq lmp_features_req ,parse_lmp_features_req 
+52d4 c019d48f beq lmp_host_connection_req ,parse_lmp_conn_req 
+52d5 c012d494 beq lmp_version_req ,parse_lmp_version_req 
+52d6 c0135410 beq lmp_version_res ,parse_lmp_version_res 
+52d7 c003d409 beq lmp_detach ,parse_lmp_detach 
+52d8 c016d400 beq lmp_max_slot ,parse_lmp_max_slot 
+52d9 c0175401 beq lmp_max_slot_req ,parse_lmp_max_slot_req 
+52da c000d48b beq lmp_name_req ,parse_lmp_name_req 
+52db c0015476 beq lmp_name_res ,parse_lmp_name_res 
+52dc c01455c1 beq lmp_features_res ,parse_lmp_features_res 
+52dd c004d46c beq lmp_comb_key ,parse_lmp_comb_key 
+52de c005d433 beq lmp_au_rand ,parse_lmp_au_rand 
+52df c0045415 beq lmp_in_rand ,parse_lmp_in_rand 
+52e0 c0065445 beq lmp_sres ,parse_lmp_sres 
+52e1 c00fd40c beq lmp_incr_power_req ,parse_lmp_incr_power 
+52e2 c010540e beq lmp_decr_power_req ,parse_lmp_decr_power 
+52e3 c010d4b0 beq lmp_max_power ,parse_lmp_max_power 
+52e4 c01154b0 beq lmp_min_power ,parse_lmp_min_power 
+52e5 c01ad4b1 beq lmp_page_mode_req ,parse_lmp_page_mode_req 
+52e6 c01b54b2 beq lmp_page_scan_mode_req ,parse_lmp_page_scan_mode_req 
+52e7 c01254b0 beq lmp_preferred_rate ,parse_lmp_preferred_rate 
+52e8 c01a54b3 beq lmp_slot_offset ,parse_lmp_slot_offset 
+52e9 c00bd4bc beq lmp_sniff_req ,parse_lmp_sniff_req 
+52ea c008d4d6 beq lmp_start_encryption_req ,parse_lmp_start_encryption_req 
+52eb c00954e3 beq lmp_stop_encryption_req ,parse_lmp_stop_encryption_req 
+52ec c009d4e5 beq lmp_switch_req ,parse_lmp_switch_req 
+52ed c006d4f5 beq lmp_temp_rand ,parse_lmp_temp_rand 
+52ee c00754f5 beq lmp_temp_key ,parse_lmp_temp_key 
+52ef c017d490 beq lmp_timing_accuracy_req ,parse_lmp_timing_accuracy_req 
+52f0 c01854f5 beq lmp_timing_accuracy_res ,parse_lmp_timing_accuracy_res 
+52f1 c00554f5 beq lmp_unit_key ,parse_lmp_unit_key 
+52f2 c00c54f6 beq lmp_unsniff_req ,parse_lmp_unsniff_req 
+52f3 c01954f5 beq lmp_use_semi_permanent_key ,parse_lmp_use_semi_permanend_key 
+52f4 c01ed4fb beq lmp_encapsulated_header ,parse_lmp_encapsulated_header 
+52f5 c01f5544 beq lmp_encapsulated_payload ,parse_lmp_encapsulated_payload 
+52f6 c01fd53d beq lmp_simple_pairing_confirm ,parse_simple_pairing_confirm 
+52f7 c0205587 beq lmp_simple_pairing_number ,parse_lmp_simple_pairing_number 
+52f8 c020d598 beq lmp_dhkey_check ,parse_dhkey_check 
+52f9 c00355b5 beq lmp_clkoffset_res ,parse_lmp_clkoffset_res 
+52fa c01d5304 beq lmp_enc_key_size_mask_req ,parse_enc_key_size_mask_req 
+52fb c0155300 beq lmp_quality_of_service_req ,parse_quality_of_server_req 
+52fc c014d301 beq lmp_quality_of_service ,parse_quality_of_server 
+
+reject_unknown_packet:
+52fd 70007e19 jam unknown_lmp_pdu ,mem_lmo_reason2 
+
+reject_lmp_packet:
+52fe 70007c04 jam lmp_not_accepted ,mem_lmo_opcode2 
+52ff 20600000 rtn 
+
+parse_quality_of_server_req:
+5300 2020540a branch accept_lmp_msg 
+
+parse_quality_of_server:
+5301 20600000 rtn 
+
+parse_lmp_clkoffset_req:
+5302 70007c06 jam lmp_clkoffset_res ,mem_lmo_opcode2 
+5303 20600000 rtn 
+
+parse_enc_key_size_mask_req:
+5304 70007c3b jam lmp_enc_key_size_mask_res ,mem_lmo_opcode2 
+5305 20600000 rtn 
+
+parse_lmp_set_afh:
+5306 6fe200cf fetch 4 ,mem_rxbuf + 1 
+5307 1fe3fe00 lshift pdata ,pdata 
+5308 67e240d9 store 4 ,mem_afh_instant 
+5309 6fe080d3 fetch 1 ,mem_rxbuf + 5 
+530a 67e0c0e0 store 1 ,mem_afh_new_mod 
+530b 6fe280d4 fetch 5 ,mem_rxbuf + 6 
+530c 67e2c0ee store 5 ,mem_afh_map_new 
+530d 6fe280d9 fetch 5 ,mem_rxbuf + 11 
+530e e7e28005 istore 5 ,contw 
+530f 6fe08031 fetch 1 ,mem_mode 
+5310 79207e03 set1 afh_change ,pdata 
+5311 67e08031 store 1 ,mem_mode 
+5312 20600000 rtn 
+
+parse_lmp_escape:
+5313 470ac022 bpatchx patch22_5 ,mem_patch22 
+5314 6fe080cf fetch 1 ,mem_rxbuf + 1 
+5315 79207e07 set1 7 ,pdata 
+5316 67e0807d store 1 ,mem_lmi_opcode2 
+5317 c040d338 beq lmp_ext_accepted ,parse_lmpext_accepted 
+5318 c041533d beq lmp_not_accepted_ext ,parse_lmpext_not_accepted 
+5319 c04ad497 beq lmp_sniff_subrating_req ,parse_lmp_sniff_subrating_req 
+531a c04b54b0 beq lmp_sniff_subrating_res ,parse_lmp_sniff_subrating_res 
+531b c045d4a5 beq lmp_packet_type_table_req ,parse_lmpext_packet_type_table_req 
+531c c041d353 beq lmp_ext_features_req ,parse_lmpext_features_req 
+531d c0425375 beq lmp_ext_features_res ,parse_lmpext_features_res 
+531e c048532a beq lmp_ext_chn_classification_req ,parse_lmpext_chn_classification_req 
+531f c04bd34c beq lmp_pause_encryption_req ,parse_lmpext_pause_encrypt 
+5320 c04c5351 beq lmp_resume_encryption_req ,parse_lmpext_resume_encrypt 
+5321 c04cd32d beq lmp_io_cap_req ,parse_lmpext_iocap_req 
+5322 c04d5330 beq lmp_io_cap_res ,parse_lmpext_iocap_res 
+5323 c050d328 beq lmp_ping_req ,parse_lmpext_ping_req 
+5324 c1420000 rtneq lmp_ext_features_res 
+
+reject_unknown_ext_packet:
+5325 70007c82 jam lmp_not_accepted_ext ,mem_lmo_opcode2 
+5326 70007e19 jam unknown_lmp_pdu ,mem_lmo_reason2 
+5327 20600000 rtn 
+
+parse_lmpext_ping_req:
+5328 70007ca2 jam lmp_ping_res ,mem_lmo_opcode2 
+5329 20600000 rtn 
+
+parse_lmpext_chn_classification_req:
+532a 70007c82 jam lmp_not_accepted_ext ,mem_lmo_opcode2 
+532b 70007e2e jam not_support_chn_classification ,mem_lmo_reason2 
+532c 20600000 rtn 
+
+parse_lmpext_iocap_req:
+532d 20405332 call iocap_lmpext_load 
+532e 70007c9a jam lmp_io_cap_res ,mem_lmo_opcode2 
+532f 20600000 rtn 
+
+parse_lmpext_iocap_res:
+5330 20405332 call iocap_lmpext_load 
+5331 20205336 branch iocap_lmpext_common 
+
+iocap_lmpext_load:
+5332 d8a0476f arg mem_sp_iocap_remote ,contw 
+5333 6fe180d0 fetch 3 ,mem_rxbuf + 2 
+5334 e7e18005 istore 3 ,contw 
+5335 20600000 rtn 
+
+iocap_lmpext_common:
+5336 2020ef9e branch master_set_mem_master_sp_flag ,true 
+5337 20600000 rtn 
+
+parse_lmpext_accepted:
+5338 6fe080d1 fetch 1 ,mem_rxbuf + 3 
+5339 79207e07 set1 7 ,pdata 
+533a 67e0839d store 1 ,mem_lmi_accepted_opcode 
+533b c045d342 beq lmp_packet_type_table_req ,parse_lmpext_accepted_ptt 
+533c 20600000 rtn 
+
+parse_lmpext_not_accepted:
+533d 6fe080d1 fetch 1 ,mem_rxbuf + 3 
+533e 79207e07 set1 7 ,pdata 
+533f 67e0839d store 1 ,mem_lmi_accepted_opcode 
+5340 c045d346 beq lmp_packet_type_table_req ,parse_lmpext_not_accepted_ptt 
+5341 20600000 rtn 
+
+parse_lmpext_accepted_ptt:
+5342 6fe0c15f fetch 1 ,mem_ptt 
+5343 6848804c fetcht 1 ,mem_state_map 
+5344 7d3a0405 nsetflag blank ,smap_edr ,temp 
+5345 6048804c storet 1 ,mem_state_map 
+
+parse_lmpext_not_accepted_ptt:
+5346 6fe08030 fetch 1 ,mem_state 
+5347 c4028000 rtnbit0 state_init_seq 
+5348 793ffe05 set0 state_init_seq ,pdata 
+5349 67e08030 store 1 ,mem_state 
+534a 70007c31 jam lmp_setup_complete ,mem_lmo_opcode2 
+534b 20600000 rtn 
+
+parse_lmpext_pause_encrypt:
+534c 2434d34f nbranch parse_lmpext_pause_encrypt_slave ,master 
+534d 70007c12 jam lmp_stop_encryption_req ,mem_lmo_opcode2 
+534e 2020592d branch tid_reply 
+
+parse_lmpext_pause_encrypt_slave:
+534f 70007c97 jam lmp_pause_encryption_req ,mem_lmo_opcode2 
+5350 20600000 rtn 
+
+parse_lmpext_resume_encrypt:
+5351 2040592d call tid_reply 
+5352 2020560c branch lmp_start_encryption 
+
+parse_lmpext_features_req:
+5353 efe08006 ifetch 1 ,contr 
+5354 67e083a1 store 1 ,mem_ext_features_page 
+5355 c000d358 beq 1 ,parse_lmpext_features_req_page1 
+5356 c001535d beq 2 ,parse_lmpext_features_req_page2 
+5357 20600000 rtn 
+
+parse_lmpext_features_req_page1:
+5358 70007c84 jam lmp_ext_features_res ,mem_lmo_opcode2 
+5359 18c08c01 increase 1 ,contr 
+535a efe08006 ifetch 1 ,contr 
+535b c281d36f bbit1 lmp_features_ext_page1_sc_host_bit ,remote_support_br_sc_host 
+535c 20205372 branch remote_not_support_br_sc_host 
+
+parse_lmpext_features_req_page2:
+535d 70007c84 jam lmp_ext_features_res ,mem_lmo_opcode2 
+535e 18c08c01 increase 1 ,contr 
+535f efe10006 ifetch 2 ,contr 
+5360 c2845362 bbit1 lmp_features_ext_page2_sc_controller_bit ,remote_support_br_sc_controller 
+5361 2020536b branch remote_not_support_br_sc_controller 
+
+remote_support_br_sc_controller:
+5362 6fe0c64e fetch 1 ,mem_remote_br_sc_support 
+5363 79207e01 set1 remote_br_sc_controller_bit ,pdata 
+5364 2040536d call set_remote_br_sc_support 
+5365 6fe0c64e fetch 1 ,mem_remote_br_sc_support 
+5366 c1818000 rtnne 3 
+5367 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+5368 c4008000 rtnbit0 secure_connections_br_bit 
+5369 70464c02 jam encapsulated_minor_type_p256 ,mem_encapsulated_minor_type 
+536a 20600000 rtn 
+
+remote_not_support_br_sc_controller:
+536b 6fe0c64e fetch 1 ,mem_remote_br_sc_support 
+536c 793ffe01 set0 remote_br_sc_controller_bit ,pdata 
+
+set_remote_br_sc_support:
+536d 67e0c64e store 1 ,mem_remote_br_sc_support 
+536e 20600000 rtn 
+
+remote_support_br_sc_host:
+536f 6fe0c64e fetch 1 ,mem_remote_br_sc_support 
+5370 79207e00 set1 remote_br_sc_host_bit ,pdata 
+5371 2020536d branch set_remote_br_sc_support 
+
+remote_not_support_br_sc_host:
+5372 6fe0c64e fetch 1 ,mem_remote_br_sc_support 
+5373 793ffe00 set0 remote_br_sc_host_bit ,pdata 
+5374 2020536d branch set_remote_br_sc_support 
+
+parse_lmpext_features_res:
+5375 684880d2 fetcht 1 ,mem_rxbuf + 4 
+5376 18410401 and temp ,0x1 ,temp 
+5377 604883a4 storet 1 ,mem_remote_sppcap 
+5378 6fe0c1de fetch 1 ,mem_hci_cmd 
+5379 c0a8d37b bne hci_cmd_wait_remote_ext_feature ,parse_lmpext_features_res_not_hci 
+537a 7041de00 jam 0 ,mem_hci_cmd 
+
+parse_lmpext_features_res_not_hci:
+537b 6fe08055 fetch 1 ,mem_conn_sm 
+537c c18a8000 rtnne conn_sm_wait_features_ext 
+537d 70005504 jam conn_sm_send_conn_req ,mem_conn_sm 
+537e 2020595d branch process_conn_sm 
+
+parse_lmp_accepted:
+537f 470b4022 bpatchx patch22_6 ,mem_patch22 
+5380 6fe080cf fetch 1 ,mem_rxbuf + 1 
+5381 67e0839d store 1 ,mem_lmi_accepted_opcode 
+5382 c019d3a6 beq lmp_host_connection_req ,parse_lmp_accepted_hostconn 
+5383 c00453b5 beq lmp_in_rand ,parse_lmp_accepted_inrand 
+5384 c007d3bc beq lmp_encryption_mode_req ,parse_lmp_accepted_enc_mode 
+5385 c00853c2 beq lmp_encryption_key_size_req ,parse_lmp_accepted_enc_keysize 
+5386 c008d3c3 beq lmp_start_encryption_req ,parse_lmp_accepted_start_enc 
+5387 c00953cb beq lmp_stop_encryption_req ,parse_lmp_accepted_stop_enc 
+5388 c00c53e4 beq lmp_unsniff_req ,parse_lmp_accepted_unsniff_req 
+5389 c00bd3e7 beq lmp_sniff_req ,parse_lmp_accepted_sniff_req 
+538a c009d39d beq lmp_switch_req ,parse_lmp_accepted_switch 
+538b c01ed510 beq lmp_encapsulated_header ,parse_lmp_accepted_encapsulated_header 
+538c c01f5571 beq lmp_encapsulated_payload ,parse_lmp_accepted_encapsulated_payload 
+538d c0205512 beq lmp_simple_pairing_number ,parse_lmp_accepted_simple_pairing_number 
+538e c020d52f beq lmp_dhkey_check ,parse_lmp_accepted_dhkey_check 
+538f 20600000 rtn 
+
+parse_lmp_not_accepted:
+5390 470bc022 bpatchx patch22_7 ,mem_patch22 
+5391 6fe080cf fetch 1 ,mem_rxbuf + 1 
+5392 67e0839d store 1 ,mem_lmi_accepted_opcode 
+5393 c000d3db beq lmp_name_req ,parse_lmp_not_accepted_name_req 
+5394 c019d3b0 beq lmp_host_connection_req ,parse_lmp_not_accepted_hostconn 
+5395 c005d3cc beq lmp_au_rand ,parse_lmp_not_accepted_aurand 
+5396 c00453d2 beq lmp_in_rand ,parse_lmp_not_accepted_inrand 
+5397 c009d3a0 beq lmp_switch_req ,parse_lmp_not_accepted_switch 
+5398 c02053dc beq lmp_simple_pairing_number ,parse_lmp_not_accepted_simple_pairing_number 
+5399 c020d3df beq lmp_dhkey_check ,parse_lmp_not_accepted_dhkey_check 
+539a c00c53e2 beq lmp_unsniff_req ,parse_lmp_not_accepted_unsniff_req 
+539b c00bd3f3 beq lmp_sniff_req ,parse_lmp_not_acdcept_sniff_req 
+539c 20600000 rtn 
+
+parse_lmp_accepted_switch:
+539d 70095b20 jam bt_evt_switch_accept ,mem_fifo_temp 
+539e 204077a7 call ui_ipc_send_event 
+539f 202009dd branch role_switch_prepare0 
+
+parse_lmp_not_accepted_switch:
+53a0 70095b19 jam bt_evt_switch_not_accept ,mem_fifo_temp 
+53a1 204077a7 call ui_ipc_send_event 
+53a2 70464902 jam switch_flag_not_accept ,mem_switch_flag 
+53a3 58000050 setarg timer_switch_waite 
+53a4 d8e00006 arg switch_wait_timer ,queue 
+53a5 20207ca8 branch timer_init 
+
+parse_lmp_accepted_hostconn:
+53a6 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+53a7 79207e00 set1 received_conn_req ,pdata 
+53a8 67e083a5 store 1 ,mem_lmp_conn_state 
+53a9 70095b01 jam bt_evt_bb_connected ,mem_fifo_temp 
+53aa 204077a7 call ui_ipc_send_event 
+53ab 70007c8b jam lmp_packet_type_table_req ,mem_lmo_opcode2 
+
+parse_lmp_accepted_hostconn_ctn:
+53ac 6fe08055 fetch 1 ,mem_conn_sm 
+53ad c082d2b0 bne conn_sm_wait_conn_accept ,parse_rx_done 
+53ae 70005506 jam conn_sm_auth_pair ,mem_conn_sm 
+53af 20600000 rtn 
+
+parse_lmp_not_accepted_hostconn:
+53b0 70039e0b jam acl_connection_already_exists ,mem_disconn_reason_send 
+53b1 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+53b2 70005500 jam conn_sm_standby ,mem_conn_sm 
+53b3 2020d2b0 branch parse_rx_done ,true 
+53b4 20600000 rtn 
+
+parse_lmp_accepted_inrand:
+53b5 6fe0c1cd fetch 1 ,mem_link_key_exists 
+53b6 247a0000 nrtn blank 
+53b7 20400c5c call clear_linkkey 
+53b8 2040560a call lmp_generate_key 
+53b9 20748000 rtn master 
+53ba 79200021 set1 mark_slave_in_rand_accepted ,mark 
+53bb 20600000 rtn 
+
+parse_lmp_accepted_enc_mode:
+53bc 24748000 nrtn master 
+53bd 70007c10 jam lmp_encryption_key_size_req ,mem_lmo_opcode2 
+53be 6fe0804c fetch 1 ,mem_state_map 
+53bf c4010000 rtnbit0 smap_encryption 
+53c0 70007c12 jam lmp_stop_encryption_req ,mem_lmo_opcode2 
+53c1 20600000 rtn 
+
+parse_lmp_accepted_enc_keysize:
+53c2 2020560c branch lmp_start_encryption 
+
+parse_lmp_accepted_start_enc:
+53c3 20405668 call send_create_conn_start_l2cap_timer_sm 
+53c4 6fe08030 fetch 1 ,mem_state 
+53c5 c3820000 rtnbit1 state_conn_comp 
+53c6 70007c31 jam lmp_setup_complete ,mem_lmo_opcode2 
+53c7 6fe08055 fetch 1 ,mem_conn_sm 
+53c8 c1850000 rtnne conn_sm_encrypt_wait 
+53c9 7000550b jam conn_sm_encrypt_wait_clear ,mem_conn_sm 
+53ca 20600000 rtn 
+
+parse_lmp_accepted_stop_enc:
+53cb 20600000 rtn 
+
+parse_lmp_not_accepted_aurand:
+
+parse_lmp_not_accepted_aurand_send_detach:
+53cc 6fe0c09a fetch 1 ,mem_device_option 
+53cd 1fe67c08 sub pdata ,dvc_op_mouse ,null 
+53ce 2042bd2d call mouse_delay_enter_hibernata ,zero 
+53cf 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+53d0 70039e13 jam other_end_terminated ,mem_disconn_reason_send 
+53d1 20600000 rtn 
+
+parse_lmp_not_accepted_inrand:
+53d2 6fe080d0 fetch 1 ,mem_rxbuf + 2 
+53d3 c00353d8 beq key_missing ,parse_lmp_inrand_key_missing 
+53d4 c18c0000 rtnne pairing_not_allowed 
+53d5 70039e18 jam pairing_not_allowed ,mem_disconn_reason_send 
+53d6 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+53d7 20600000 rtn 
+
+parse_lmp_inrand_key_missing:
+53d8 70039e06 jam key_missing ,mem_disconn_reason_send 
+53d9 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+53da 20600000 rtn 
+
+parse_lmp_not_accepted_name_req:
+53db 20600000 rtn 
+
+parse_lmp_not_accepted_simple_pairing_number:
+53dc 70087000 jam sp_stat_null ,mem_sp_state 
+53dd 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+53de 202052b0 branch parse_rx_done 
+
+parse_lmp_not_accepted_dhkey_check:
+53df 70087000 jam sp_stat_null ,mem_sp_state 
+53e0 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+53e1 202052b0 branch parse_rx_done 
+
+parse_lmp_not_accepted_unsniff_req:
+53e2 70095b24 jam bt_evt_unsniff_not_accept ,mem_fifo_temp 
+53e3 202077a7 branch ui_ipc_send_event 
+
+parse_lmp_accepted_unsniff_req:
+53e4 70095b23 jam bt_evt_unsniff_accept ,mem_fifo_temp 
+53e5 204077a7 call ui_ipc_send_event 
+53e6 20200f12 branch sniff_exit 
+
+parse_lmp_accepted_sniff_req:
+53e7 70095b22 jam bt_evt_sniff_accept ,mem_fifo_temp 
+53e8 204077a7 call ui_ipc_send_event 
+53e9 58000000 setarg 0 
+53ea 67e10075 store 2 ,mem_dsniff 
+53eb 6fe14458 fetch 2 ,mem_sniff_param_interval 
+53ec 1fe3fe00 lshift pdata ,pdata 
+53ed 67e10032 store 2 ,mem_tsniff 
+53ee 6fe0c45a fetch 1 ,mem_sniff_param_attempt 
+53ef 67e08073 store 1 ,mem_sniff_attempt 
+53f0 6fe0c45c fetch 1 ,mem_sniff_param_timeout 
+53f1 67e08074 store 1 ,mem_sniff_timeout 
+53f2 20200ef1 branch sniff_init 
+
+parse_lmp_not_acdcept_sniff_req:
+53f3 70095b21 jam bt_evt_sniff_not_accept ,mem_fifo_temp 
+53f4 202077a7 branch ui_ipc_send_event 
+
+parse_lmp_crypt_key:
+53f5 684880cf fetcht 1 ,mem_rxbuf + 1 
+53f6 18467c06 sub temp ,6 ,null 
+53f7 202155ab branch lmp_reject_pdu_not_allowed ,positive 
+53f8 60488054 storet 1 ,mem_key_size 
+53f9 2020540a branch accept_lmp_msg 
+
+parse_lmp_setup_complete:
+53fa 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+53fb 79207e02 set1 received_setup_complete ,pdata 
+53fc 67e083a5 store 1 ,mem_lmp_conn_state 
+53fd c3818000 rtnbit1 sent_setup_complete 
+53fe 70007c31 jam lmp_setup_complete ,mem_lmo_opcode2 
+53ff 202052b0 branch parse_rx_done 
+
+parse_lmp_max_slot:
+5400 20600000 rtn 
+
+parse_lmp_max_slot_req:
+5401 6fe0c0d7 fetch 1 ,mem_max_slot 
+5402 684880cf fetcht 1 ,mem_rxbuf + 1 
+5403 98467c00 isub temp ,null 
+5404 2021540a branch accept_lmp_msg ,positive 
+5405 70007c04 jam lmp_not_accepted ,mem_lmo_opcode2 
+5406 70007e1f jam unspecified_error ,mem_lmo_reason2 
+5407 70007d2e jam lmp_max_slot_req ,mem_lmi_opcode2 
+5408 20600000 rtn 
+
+parse_lmp_detach:
+5409 2020577f branch prepare_disconnect 
+
+accept_lmp_msg:
+540a 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+540b 20600000 rtn 
+
+parse_lmp_incr_power:
+540c 70007c21 jam lmp_max_power ,mem_lmo_opcode2 
+540d 20600000 rtn 
+
+parse_lmp_decr_power:
+540e 70007c22 jam lmp_min_power ,mem_lmo_opcode2 
+540f 20600000 rtn 
+
+parse_lmp_version_res:
+5410 6fe08055 fetch 1 ,mem_conn_sm 
+5411 c1098000 rtneq conn_sm_wait_version 
+5412 70005502 jam conn_sm_send_features ,mem_conn_sm 
+5413 20600000 rtn 
+
+parse_lmp_auto_rate:
+5414 20600000 rtn 
+
+parse_lmp_in_rand:
+5415 6fe0c6bd fetch 1 ,mem_sc_only_mode 
+5416 243a541e nbranch parse_lmp_in_rand_not_accept ,blank 
+5417 20405607 call lmp_copy_rand 
+5418 7003a801 jam pincode_state_wait_pincode ,mem_pincode_state 
+5419 70095b0a jam bt_evt_pincode_req ,mem_fifo_temp 
+541a 204077a7 call ui_ipc_send_event 
+541b 20405935 call tid_check 
+541c 2420d60f nbranch lmp_accept_inrand ,true 
+541d 2434d422 nbranch parse_lmp_inrand_res ,master 
+
+parse_lmp_in_rand_not_accept:
+541e 70007c04 jam lmp_not_accepted ,mem_lmo_opcode2 
+541f 70007d08 jam lmp_in_rand ,mem_lmi_opcode2 
+5420 70007e23 jam transaction_collision ,mem_lmo_reason2 
+5421 20600000 rtn 
+
+parse_lmp_inrand_res:
+5422 6fe0804b fetch 1 ,mem_op 
+5423 79207e02 set1 op_inrand_req ,pdata 
+5424 67e0804b store 1 ,mem_op 
+5425 20600000 rtn 
+
+pop_tid_follow:
+5426 6848804c fetcht 1 ,mem_state_map 
+5427 7d3a0401 nsetflag blank ,smap_lmptid ,temp 
+5428 6048804c storet 1 ,mem_state_map 
+5429 20600000 rtn 
+
+push_tid_follow:
+542a 6fe0807f fetch 1 ,mem_lmo_tid2 
+542b 1fe37e00 rshift pdata ,pdata 
+542c 1fe17e01 and_into 1 ,pdata 
+542d 20600000 rtn 
+
+parse_lmp_au_rand_moudle:
+542e 6fe0c48e fetch 1 ,mem_nv_data_number 
+542f 207a0000 rtn blank 
+5430 6fe08877 fetch 1 ,mem_pairing_auth 
+5431 205a5f2f call load_device_list ,blank 
+5432 20600000 rtn 
+
+parse_lmp_au_rand:
+5433 2040542e call parse_lmp_au_rand_moudle 
+5434 2040542a call push_tid_follow 
+5435 67e083a9 store 1 ,mem_sres_tid 
+5436 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+5437 c0015440 beq encapsulated_minor_type_p256 ,parse_lmp_au_rand_256 
+5438 20405607 call lmp_copy_rand 
+5439 70007c0c jam lmp_sres ,mem_lmo_opcode2 
+
+parse_lmp_au_rand_common:
+543a 6fe0c1cd fetch 1 ,mem_link_key_exists 
+543b 247a0000 nrtn blank 
+543c 6fe08030 fetch 1 ,mem_state 
+543d c3830000 rtnbit1 state_combkey 
+543e 70007e06 jam key_missing ,mem_lmo_reason2 
+543f 202052fe branch reject_lmp_packet 
+
+parse_lmp_au_rand_256:
+5440 70007c0b jam lmp_au_rand ,mem_lmo_opcode2 
+5441 d8a008f0 arg mem_sp_random_remote ,contw 
+5442 d8c000cf arg mem_rxbuf + 1 ,contr 
+5443 20407c4c call memcpy16 
+5444 2020543a branch parse_lmp_au_rand_common 
+
+parse_lmp_sres:
+5445 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+5446 c0015455 beq encapsulated_minor_type_p256 ,parse_lmp_sres_256 
+5447 da200040 arg mem_plap ,rega 
+5448 20406a48 call function_e1 
+5449 684a0454 fetcht 4 ,mem_input_store 
+544a 6fe200cf fetch 4 ,mem_rxbuf + 1 
+544b 98467c00 isub temp ,null 
+544c 2022d450 branch authentication_ok ,zero 
+
+authentication_fail:
+544d 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+544e 70039e05 jam authentication_failure_error ,mem_disconn_reason_send 
+544f 20600000 rtn 
+
+authentication_ok:
+5450 20406b46 call copy_aco 
+5451 2040545e call authentication_ok_common 
+5452 6fe0c76b fetch 1 ,mem_ssp_enable 
+5453 203a5530 branch pairing_success ,blank 
+5454 20600000 rtn 
+
+parse_lmp_sres_256:
+5455 6fe200cf fetch 4 ,mem_rxbuf + 1 
+5456 684a091c fetcht 4 ,mema 
+5457 98467c00 isub temp ,null 
+5458 2022d45a branch authentication_ok_256 ,zero 
+5459 2020544d branch authentication_fail 
+
+authentication_ok_256:
+545a 2040545e call authentication_ok_common 
+545b 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+545c c280d530 bbit1 secure_connections_br_bit ,pairing_success 
+545d 20600000 rtn 
+
+authentication_ok_common:
+545e 204009b4 call linkkey_ready 
+545f 6fe0804b fetch 1 ,mem_op 
+5460 2feffe01 isolate1 op_auth_req ,pdata 
+5461 793ffe01 set0 op_auth_req ,pdata 
+5462 67e0804b store 1 ,mem_op 
+5463 6fe08055 fetch 1 ,mem_conn_sm 
+5464 c00cd467 beq conn_sm_auth_wait ,authentication_ok_conn_sm 
+5465 c00c5467 beq conn_sm_pairing_wait ,authentication_ok_conn_sm 
+5466 20600000 rtn 
+
+authentication_ok_conn_sm:
+5467 6fe08877 fetch 1 ,mem_pairing_auth 
+5468 c1800000 rtnne defalt_pairing_auth 
+5469 6fe0804c fetch 1 ,mem_state_map 
+546a c3810000 rtnbit1 smap_encryption 
+546b 202059f4 branch host_create_conn_encrypt 
+
+parse_lmp_comb_key:
+546c da2000cf arg mem_rxbuf + 1 ,rega 
+546d da400444 arg mem_kinit ,regb 
+546e d8a00424 arg mem_random_number ,contw 
+546f 20406b12 call xor16 
+5470 da200040 arg mem_plap ,rega 
+5471 20405953 call generate_linkkey 
+5472 70007c0b jam lmp_au_rand ,mem_lmo_opcode2 
+5473 6fe08030 fetch 1 ,mem_state 
+5474 c303560a bbit0 state_combkey ,lmp_generate_key 
+5475 20600000 rtn 
+
+parse_lmp_name_res:
+5476 6fe100ae fetch 2 ,mem_len 
+5477 1fe0f3fd add pdata ,-3 ,loopcnt 
+5478 684880cf fetcht 1 ,mem_rxbuf + 1 
+5479 58000a01 setarg mem_tmp_buffer 
+547a 98408a00 iadd temp ,contw 
+547b d8c000d1 arg mem_rxbuf + 3 ,contr 
+547c 20407ca1 call memcpy 
+547d 68488053 fetcht 1 ,mem_name_offset 
+547e 6fe080d0 fetch 1 ,mem_rxbuf + 2 
+547f 98467e00 isub temp ,pdata 
+5480 1fe67c0e sub pdata ,14 ,null 
+5481 20215486 branch parse_lmp_name_res_end ,positive 
+5482 1840fe0e add temp ,14 ,pdata 
+5483 67e08053 store 1 ,mem_name_offset 
+5484 70007c01 jam lmp_name_req ,mem_lmo_opcode2 
+5485 20600000 rtn 
+
+parse_lmp_name_res_end:
+5486 6fe0804c fetch 1 ,mem_state_map 
+5487 79207e03 set1 smap_name_res ,pdata 
+5488 67e0804c store 1 ,mem_state_map 
+5489 c2825614 bbit1 smap_name_req ,lmp_disconnect 
+548a 20600000 rtn 
+
+parse_lmp_name_req:
+548b 6fe080cf fetch 1 ,mem_rxbuf + 1 
+548c 67e0807d store 1 ,mem_lmi_opcode2 
+548d 70007c02 jam lmp_name_res ,mem_lmo_opcode2 
+548e 20600000 rtn 
+
+parse_lmp_conn_req:
+548f 2020540a branch accept_lmp_msg 
+
+parse_lmp_timing_accuracy_req:
+5490 70007c30 jam lmp_timing_accuracy_res ,mem_lmo_opcode2 
+5491 20600000 rtn 
+
+parse_lmp_features_req:
+5492 70007c28 jam lmp_features_res ,mem_lmo_opcode2 
+5493 20600000 rtn 
+
+parse_lmp_version_req:
+5494 70007c26 jam lmp_version_res ,mem_lmo_opcode2 
+5495 20600000 rtn 
+
+parse_lmp_supervision_timeout:
+5496 20600000 rtn 
+
+parse_lmp_sniff_subrating_req:
+5497 6fe10032 fetch 2 ,mem_tsniff 
+5498 98000400 iforce temp 
+5499 6fe080d0 fetch 1 ,mem_rxbuf + 2 
+549a 67e08092 store 1 ,mem_subsniff_rate 
+549b 984f8400 imul32 temp ,temp 
+549c 6fe100d1 fetch 2 ,mem_rxbuf + 3 
+549d 1fe3fe00 lshift pdata ,pdata 
+549e 67e10093 store 2 ,mem_subsniff_tcmax 
+549f 6fe200d3 fetch 4 ,mem_rxbuf + 5 
+54a0 1fe3fe00 lshift pdata ,pdata 
+54a1 67e2008e store 4 ,mem_subsniff_instant 
+54a2 18427e00 deposit temp 
+54a3 67e10095 store 2 ,mem_subsniff_tsniff 
+54a4 20600000 rtn 
+
+parse_lmpext_packet_type_table_req:
+54a5 6848c15f fetcht 1 ,mem_ptt 
+54a6 6fe080d0 fetch 1 ,mem_rxbuf + 2 
+54a7 9842fc00 ixor temp ,null 
+54a8 2422d325 nbranch reject_unknown_ext_packet ,zero 
+54a9 2feffe00 isolate1 0 ,pdata 
+54aa 6fe0804c fetch 1 ,mem_state_map 
+54ab 7920fe05 setflag true ,smap_edr ,pdata 
+54ac 67e0804c store 1 ,mem_state_map 
+54ad 70007c81 jam lmp_ext_accepted ,mem_lmo_opcode2 
+54ae 70007d8b jam lmp_packet_type_table_req ,mem_lmi_opcode2 
+54af 20600000 rtn 
+
+parse_lmp_sniff_subrating_res:
+
+parse_lmp_preferred_rate:
+
+parse_lmp_max_power:
+
+parse_lmp_min_power:
+54b0 20600000 rtn 
+
+parse_lmp_page_mode_req:
+54b1 2020540a branch accept_lmp_msg 
+
+parse_lmp_page_scan_mode_req:
+54b2 2020540a branch accept_lmp_msg 
+
+parse_lmp_slot_offset:
+54b3 6fe100cf fetch 2 ,mem_rxbuf + 1 
+54b4 67e100c0 store 2 ,mem_slot_offset 
+54b5 20600000 rtn 
+
+parse_lmp_sniff_req_check_sniff_para:
+54b6 6fe100d2 fetch 2 ,mem_rxbuf + 4 
+54b7 6848c177 fetcht 1 ,mem_lpm_mult 
+54b8 984ffe00 imul32 temp ,pdata 
+54b9 d8400640 arg 0x640 ,temp 
+54ba 98467c00 isub temp ,null 
+54bb 20600000 rtn 
+
+parse_lmp_sniff_req:
+54bc 6fe100d4 fetch 2 ,mem_rxbuf + 6 
+54bd 203a55ab branch lmp_reject_pdu_not_allowed ,blank 
+54be 204054b6 call parse_lmp_sniff_req_check_sniff_para 
+54bf 202155ab branch lmp_reject_pdu_not_allowed ,positive 
+54c0 6fe0c09a fetch 1 ,mem_device_option 
+54c1 1fe67c0a sub pdata ,dvc_op_module ,null 
+54c2 2042bc1d call module_set_lpm_mult_2 ,zero 
+54c3 6fe08030 fetch 1 ,mem_state 
+54c4 c280d5ab bbit1 state_insniff ,lmp_reject_pdu_not_allowed 
+54c5 6fe100d0 fetch 2 ,mem_rxbuf + 2 
+54c6 1fe3fe00 lshift pdata ,pdata 
+54c7 67e10075 store 2 ,mem_dsniff 
+54c8 6fe100d2 fetch 2 ,mem_rxbuf + 4 
+54c9 1fe3fe00 lshift pdata ,pdata 
+54ca 67e10032 store 2 ,mem_tsniff 
+54cb 6fe100d4 fetch 2 ,mem_rxbuf + 6 
+54cc 67e08073 store 1 ,mem_sniff_attempt 
+54cd 98000400 iforce temp 
+54ce 6fe100d6 fetch 2 ,mem_rxbuf + 8 
+54cf 67e08074 store 1 ,mem_sniff_timeout 
+54d0 98467c00 isub temp ,null 
+54d1 242154d3 nbranch set_big_value_to_attempt ,positive 
+54d2 67e08073 store 1 ,mem_sniff_attempt 
+
+set_big_value_to_attempt:
+54d3 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+54d4 70007d17 jam lmp_sniff_req ,mem_lmi_opcode2 
+54d5 20600000 rtn 
+
+parse_lmp_start_encryption_req:
+54d6 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+54d7 c00154dc beq encapsulated_minor_type_p256 ,parse_lmp_start_encryption_req_256 
+54d8 2040540a call accept_lmp_msg 
+54d9 20405607 call lmp_copy_rand 
+54da 20406a4b call function_e3 
+54db 20200ee1 branch start_encryption 
+
+parse_lmp_start_encryption_req_256:
+54dc 2040540a call accept_lmp_msg 
+54dd 20400ee1 call start_encryption 
+
+calc_kc:
+54de 20407402 call function_h3 
+54df d8a00062 arg mem_kc ,contw 
+54e0 d8c00910 arg mem_sp_calc_result_high ,contr 
+54e1 df200010 arg 0x10 ,loopcnt 
+54e2 20207da6 branch reverse_byte 
+
+parse_lmp_stop_encryption_req:
+54e3 2040540a call accept_lmp_msg 
+54e4 20200eeb branch stop_encryption 
+
+parse_lmp_switch_req:
+54e5 6fe200cf fetch 4 ,mem_rxbuf + 1 
+54e6 1fe3fe00 lshift pdata ,pdata 
+54e7 2034d4ef branch parse_lmp_switch_accept ,master 
+54e8 6848c1cd fetcht 1 ,mem_link_key_exists 
+54e9 243a54ec nbranch parse_lmp_switch_req_clear_mark ,blank 
+
+parse_lmp_switch_req_not_accept:
+54ea 70007d13 jam lmp_switch_req ,mem_lmi_opcode2 
+54eb 202055ab branch lmp_reject_pdu_not_allowed 
+
+parse_lmp_switch_req_clear_mark:
+54ec 70007c34 jam lmp_slot_offset ,mem_lmo_opcode2 
+54ed 70005500 jam 0 ,mem_conn_sm 
+54ee 202009db branch role_switch_prepare 
+
+parse_lmp_switch_accept:
+54ef 204009db call role_switch_prepare 
+54f0 79200022 set1 mark_reconn_recieve_switch ,mark 
+54f1 6fe080bc fetch 1 ,mem_connection_options 
+54f2 793ffe02 set0 connection_switch ,pdata 
+54f3 67e080bc store 1 ,mem_connection_options 
+54f4 2020540a branch accept_lmp_msg 
+
+parse_lmp_temp_rand:
+
+parse_lmp_temp_key:
+
+parse_lmp_timing_accuracy_res:
+
+parse_lmp_unit_key:
+
+parse_lmp_use_semi_permanend_key:
+54f5 20600000 rtn 
+
+parse_lmp_unsniff_req:
+54f6 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+54f7 70007d18 jam lmp_unsniff_req ,mem_lmi_opcode2 
+54f8 70095b2e jam bt_evt_remote_unsniff ,mem_fifo_temp 
+54f9 204077a7 call ui_ipc_send_event 
+54fa 20200f12 branch sniff_exit 
+
+parse_lmp_encapsulated_header:
+54fb 70087900 jam 0 ,mem_sp_remote_key_recv_count 
+54fc 6fe080cf fetch 1 ,mem_rxbuf + 1 
+54fd 67e0c64b store 1 ,mem_encapsulated_major_type 
+54fe c080d5ab bne encapsulated_major_type ,lmp_reject_pdu_not_allowed 
+54ff 684880d0 fetcht 1 ,mem_rxbuf + 2 
+5500 6048c64c storet 1 ,mem_encapsulated_minor_type 
+5501 6fe0c6bd fetch 1 ,mem_sc_only_mode 
+5502 203a5505 branch parse_lmp_encapsulated_header2 ,blank 
+5503 18467c02 sub temp ,encapsulated_minor_type_p256 ,null 
+5504 2422d44d nbranch authentication_fail ,zero 
+
+parse_lmp_encapsulated_header2:
+5505 6fe080d1 fetch 1 ,mem_rxbuf + 3 
+5506 c0205509 beq encapsulated_len_p256 ,parse_lmp_encapsulated_header3 
+5507 c0185509 beq encapsulated_len_p192 ,parse_lmp_encapsulated_header3 
+5508 202055ab branch lmp_reject_pdu_not_allowed 
+
+parse_lmp_encapsulated_header3:
+5509 67e0c64d store 1 ,mem_encapsulated_len 
+550a 2040593e call check_localsm 
+550b 2020d50d branch parse_lmp_encapsulated_header_master ,true 
+550c 70087001 jam sp_stat_key_recv ,mem_sp_state 
+
+parse_lmp_encapsulated_header_master:
+550d 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+550e 70007d3d jam lmp_encapsulated_header ,mem_lmi_opcode2 
+550f 202052b0 branch parse_rx_done 
+
+parse_lmp_accepted_encapsulated_header:
+5510 70007c3e jam lmp_encapsulated_payload ,mem_lmo_opcode2 
+5511 20600000 rtn 
+
+parse_lmp_accepted_simple_pairing_number:
+5512 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+5513 c000d519 beq ssp_mode_ssp_pin_flag ,parse_lmp_accepted_simple_pairing_number_ssp_pin 
+5514 c001551d beq ssp_mode_passkey_entry_flag ,parse_lmp_accepted_simple_pairing_number_passkey 
+
+parse_lmp_accepted_simple_pairing_number_common:
+5515 2040593e call check_localsm 
+5516 20608000 rtn true 
+5517 70087008 jam sp_stat_confirm_recv ,mem_sp_state 
+5518 20600000 rtn 
+
+parse_lmp_accepted_simple_pairing_number_ssp_pin:
+5519 20407228 call g_noninit_number_confirm 
+551a 70095b35 jam bt_evt_bt_gkey_generate ,mem_fifo_temp 
+551b 204077a7 call ui_ipc_send_event 
+551c 20205515 branch parse_lmp_accepted_simple_pairing_number_common 
+
+parse_lmp_accepted_simple_pairing_number_passkey:
+551d 2040593e call check_localsm 
+551e 20608000 rtn true 
+551f 6fe0c774 fetch 1 ,mem_authentication_passkey_times 
+5520 c009d52d beq 19 ,authentication_passkey_end 
+5521 1fe0fe01 increase 1 ,pdata 
+5522 67e0c774 store 1 ,mem_authentication_passkey_times 
+
+authentication_passkey:
+5523 70087201 jam sp_flag_commit ,mem_sp_flag 
+5524 70087004 jam sp_stat_commit_calc ,mem_sp_state 
+5525 6fe0c774 fetch 1 ,mem_authentication_passkey_times 
+5526 1fe20e00 copy pdata ,queue 
+5527 6fe3479b fetch 6 ,mem_pin 
+5528 afefffff qisolate1 pdata 
+5529 58000080 setarg 0x80 
+552a 7920fe00 setflag true ,0 ,pdata 
+552b 67e0c775 store 1 ,mem_passkey_1bit 
+552c 20600000 rtn 
+
+authentication_passkey_end:
+552d 70087008 jam sp_stat_confirm_recv ,mem_sp_state 
+552e 20600000 rtn 
+
+parse_lmp_accepted_dhkey_check:
+552f 20405535 call parse_lmp_accepted_dhkey_check_common 
+
+pairing_success:
+5530 6fe0c776 fetch 1 ,mem_flag_pairing_state 
+5531 207a0000 rtn blank 
+5532 70477600 jam flag_pairing_state_not_pairing ,mem_flag_pairing_state 
+5533 70095b38 jam bt_evt_bt_pairing_success ,mem_fifo_temp 
+5534 202077a7 branch ui_ipc_send_event 
+
+parse_lmp_accepted_dhkey_check_common:
+5535 2040593e call check_localsm 
+5536 2440f232 ncall g_noninit_192 ,true 
+5537 2040f242 call g_init_192 ,true 
+5538 2040593e call check_localsm 
+5539 20608000 rtn true 
+553a 7008700c jam sp_stat_link_key_calc ,mem_sp_state 
+553b 70087201 jam sp_flag_commit ,mem_sp_flag 
+553c 20600000 rtn 
+
+parse_simple_pairing_confirm:
+553d d8a00930 arg mem_sp_confirm_remote ,contw 
+553e d8c000cf arg mem_rxbuf + 1 ,contr 
+553f 20407c4c call memcpy16 
+5540 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+5541 c1010000 rtneq ssp_mode_passkey_entry_flag 
+5542 20206f9e branch master_set_mem_master_sp_flag 
+5543 20600000 rtn 
+
+parse_lmp_encapsulated_payload:
+5544 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+5545 c000d55a beq encapsulated_minor_type_p192 ,parse_lmp_encapsulated_payload_192 
+5546 c0015548 beq encapsulated_minor_type_p256 ,parse_lmp_encapsulated_payload_256 
+5547 202055ab branch lmp_reject_pdu_not_allowed 
+
+parse_lmp_encapsulated_payload_256:
+5548 6fe08871 fetch 1 ,mem_master_sp_state 
+5549 c003d54c beq sp_stat_random_send ,parse_encapsulated_payload_256_master 
+554a 6fe08870 fetch 1 ,mem_sp_state 
+554b c080d5ab bne sp_stat_key_recv ,lmp_reject_pdu_not_allowed 
+
+parse_encapsulated_payload_256_master:
+554c 6fe08879 fetch 1 ,mem_sp_remote_key_recv_count 
+554d 1fe60a30 sub pdata ,0x30 ,contw 
+554e 242155ab nbranch lmp_reject_pdu_not_allowed ,positive 
+554f d8a00880 arg mem_le_pubkey_remote_x_256 ,contw 
+5550 98a08a00 iadd contw ,contw 
+5551 6fe400cf fetch 8 ,mem_rxbuf + 1 
+5552 e7e40005 istore 8 ,contw 
+5553 6fe400d7 fetch 8 ,mem_rxbuf + 9 
+5554 e7e40005 istore 8 ,contw 
+5555 6fe08879 fetch 1 ,mem_sp_remote_key_recv_count 
+5556 1fe0fe10 increase 16 ,pdata 
+5557 67e08879 store 1 ,mem_sp_remote_key_recv_count 
+5558 c0a0540a bne encapsulated_len_p256 ,accept_lmp_msg 
+5559 2020556b branch parse_lmp_encapsulated_payload_completed 
+
+parse_lmp_encapsulated_payload_192:
+555a 6fe08871 fetch 1 ,mem_master_sp_state 
+555b c003d55e beq sp_stat_random_send ,parse_encapsulated_payload_192_master 
+555c 6fe08870 fetch 1 ,mem_sp_state 
+555d c080d5ab bne sp_stat_key_recv ,lmp_reject_pdu_not_allowed 
+
+parse_encapsulated_payload_192_master:
+555e 6fe08879 fetch 1 ,mem_sp_remote_key_recv_count 
+555f 1fe60a20 sub pdata ,0x20 ,contw 
+5560 242155ab nbranch lmp_reject_pdu_not_allowed ,positive 
+5561 d8a00888 arg mem_sp_pubkey_remote ,contw 
+5562 98a08a00 iadd contw ,contw 
+5563 6fe400cf fetch 8 ,mem_rxbuf + 1 
+5564 e7e40005 istore 8 ,contw 
+5565 6fe400d7 fetch 8 ,mem_rxbuf + 9 
+5566 e7e40005 istore 8 ,contw 
+5567 6fe08879 fetch 1 ,mem_sp_remote_key_recv_count 
+5568 1fe0fe10 increase 16 ,pdata 
+5569 67e08879 store 1 ,mem_sp_remote_key_recv_count 
+556a c098540a bne encapsulated_len_p192 ,accept_lmp_msg 
+
+parse_lmp_encapsulated_payload_completed:
+556b 2040593e call check_localsm 
+556c 2020d40a branch accept_lmp_msg ,true 
+556d 70087a01 jam sp_key_valid ,mem_sp_remote_key_invalid 
+556e 70087002 jam sp_stat_key_generate ,mem_sp_state 
+556f 70087201 jam sp_flag_commit ,mem_sp_flag 
+5570 2020540a branch accept_lmp_msg 
+
+parse_lmp_accepted_encapsulated_payload:
+5571 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+5572 c000d575 beq encapsulated_minor_type_p192 ,parse_lmp_accepted_encapsulated_payload_192 
+5573 c0015579 beq encapsulated_minor_type_p256 ,parse_lmp_accepted_encapsulated_payload_256 
+5574 20600000 rtn 
+
+parse_lmp_accepted_encapsulated_payload_192:
+5575 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+5576 c018557d beq encapsulated_len_p192 ,parse_lmp_encapsulated_payload_all_accepted 
+5577 70007c3e jam lmp_encapsulated_payload ,mem_lmo_opcode2 
+5578 20600000 rtn 
+
+parse_lmp_accepted_encapsulated_payload_256:
+5579 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+557a c020557d beq encapsulated_len_p256 ,parse_lmp_encapsulated_payload_all_accepted 
+557b 70007c3e jam lmp_encapsulated_payload ,mem_lmo_opcode2 
+557c 20600000 rtn 
+
+parse_lmp_encapsulated_payload_all_accepted:
+557d 2040593e call check_localsm 
+557e 2020d586 branch parse_lmp_encapsulated_payload_all_accepted_master ,true 
+557f 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+5580 c0015584 beq ssp_mode_passkey_entry_flag ,parse_lmp_encapsulated_payload_all_accepted_get_passkey 
+5581 70087201 jam sp_flag_commit ,mem_sp_flag 
+5582 70087004 jam sp_stat_commit_calc ,mem_sp_state 
+5583 202052b0 branch parse_rx_done 
+
+parse_lmp_encapsulated_payload_all_accepted_get_passkey:
+5584 70095b36 jam bt_evt_bt_get_passkey ,mem_fifo_temp 
+5585 202077a7 branch ui_ipc_send_event 
+
+parse_lmp_encapsulated_payload_all_accepted_master:
+5586 202052b0 branch parse_rx_done 
+
+parse_lmp_simple_pairing_number:
+5587 6fe08871 fetch 1 ,mem_master_sp_state 
+5588 c003d58b beq sp_stat_random_send ,parse_lmp_simple_pairing_number_master 
+5589 6fe08870 fetch 1 ,mem_sp_state 
+558a c08355ab bne sp_stat_random_recv ,lmp_reject_pdu_not_allowed 
+
+parse_lmp_simple_pairing_number_master:
+558b d8a008f0 arg mem_sp_random_remote ,contw 
+558c 6fe400cf fetch 8 ,mem_rxbuf + 1 
+558d e7e40005 istore 8 ,contw 
+558e 6fe400d7 fetch 8 ,mem_rxbuf + 9 
+558f e7e40005 istore 8 ,contw 
+5590 2040593e call check_localsm 
+5591 2020d595 branch parse_lmp_simple_pairing_number_master0 ,true 
+5592 70087007 jam sp_stat_random_send ,mem_sp_state 
+5593 70087201 jam sp_flag_commit ,mem_sp_flag 
+5594 2020540a branch accept_lmp_msg 
+
+parse_lmp_simple_pairing_number_master0:
+5595 70087104 jam sp_stat_commit_calc ,mem_master_sp_state 
+5596 20206f9e branch master_set_mem_master_sp_flag 
+5597 202055ab branch lmp_reject_pdu_not_allowed 
+
+parse_dhkey_check:
+5598 6fe08871 fetch 1 ,mem_master_sp_state 
+5599 c005d59c beq sp_stat_confirm_send ,parse_dhkey_check_master 
+559a 6fe08870 fetch 1 ,mem_sp_state 
+559b c08455ab bne sp_stat_confirm_recv ,lmp_reject_pdu_not_allowed 
+
+parse_dhkey_check_master:
+559c d8a00920 arg mem_sp_check_result ,contw 
+559d d8c000cf arg mem_rxbuf + 1 ,contr 
+559e 20407c4c call memcpy16 
+559f 2040593e call check_localsm 
+55a0 2020d5a8 branch parse_dhkey_check_master0 ,true 
+55a1 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+55a2 c000d5ad beq ssp_mode_ssp_pin_flag ,number_comparison_mode 
+
+number_comparison_successed:
+55a3 70477200 jam 0 ,mem_flag_mode_ssp_pin 
+55a4 70087009 jam sp_stat_confirm_check ,mem_sp_state 
+55a5 70087201 jam sp_flag_commit ,mem_sp_flag 
+55a6 70007d41 jam lmp_dhkey_check ,mem_lmi_opcode2 
+55a7 202052b0 branch parse_rx_done 
+
+parse_dhkey_check_master0:
+55a8 70087109 jam sp_stat_confirm_check ,mem_master_sp_state 
+55a9 70087301 jam sp_flag_commit ,mem_master_sp_flag 
+55aa 202052b0 branch parse_rx_done 
+
+lmp_reject_pdu_not_allowed:
+55ab 70007e24 jam pdu_not_allowed ,mem_lmo_reason2 
+55ac 202052fe branch reject_lmp_packet 
+
+number_comparison_mode:
+55ad 6fe0c772 fetch 1 ,mem_flag_mode_ssp_pin 
+55ae c283d5b2 bbit1 flag_mode_ssp_pin_reviceve_comparison_bit ,comparison_result 
+55af 79207e06 set1 flag_mode_ssp_pin_recieve_dhkey_bit ,pdata 
+55b0 67e0c772 store 1 ,mem_flag_mode_ssp_pin 
+55b1 20600000 rtn 
+
+comparison_result:
+55b2 c28055a3 bbit1 flag_mode_ssp_pin_comparison_result_bit ,number_comparison_successed 
+55b3 70477200 jam 0 ,mem_flag_mode_ssp_pin 
+55b4 202055ab branch lmp_reject_pdu_not_allowed 
+
+parse_lmp_clkoffset_res:
+55b5 202052b0 branch parse_rx_done 
+
+parse_lmp_encryption_mode_req:
+55b6 6fe080bc fetch 1 ,mem_connection_options 
+55b7 793ffe01 set0 connection_encrypt ,pdata 
+55b8 67e080bc store 1 ,mem_connection_options 
+55b9 2040540a call accept_lmp_msg 
+55ba 24748000 nrtn master 
+55bb 6fe080cf fetch 1 ,mem_rxbuf + 1 
+55bc 6848804b fetcht 1 ,mem_op 
+55bd 793a0404 setflag blank ,op_stop_enc ,temp 
+55be 7d3a0405 nsetflag blank ,op_start_enc ,temp 
+55bf 6048804b storet 1 ,mem_op 
+55c0 20600000 rtn 
+
+parse_lmp_features_res:
+55c1 684c00cf fetcht 8 ,mem_rxbuf + 1 
+
+parse_lmp_features_res_not_hci:
+55c2 6fe08055 fetch 1 ,mem_conn_sm 
+55c3 c1818000 rtnne conn_sm_wait_features_res 
+55c4 6fe080bc fetch 1 ,mem_connection_options 
+55c5 c30255c8 bbit0 connection_feature_ext ,parse_lmp_send_conn 
+55c6 70005514 jam conn_sm_send_features_ext ,mem_conn_sm 
+55c7 20600000 rtn 
+
+parse_lmp_send_conn:
+55c8 70005504 jam conn_sm_send_conn_req ,mem_conn_sm 
+55c9 20600000 rtn 
+
+parse_lmp_test_activate:
+55ca 6fe080e3 fetch 1 ,mem_debug_config 
+55cb 67e08a5b store 1 ,mem_test_mode_old_debug_config 
+55cc 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+55cd 70007d38 jam lmp_test_activate ,mem_lmi_opcode2 
+55ce 20600000 rtn 
+
+parse_lmp_test_control:
+55cf 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+55d0 70007d39 jam lmp_test_control ,mem_lmi_opcode2 
+55d1 18007209 force 9 ,loopcnt 
+55d2 d8c000cf arg mem_rxbuf + 1 ,contr 
+55d3 d8a00a52 arg mem_temp_payload ,contw 
+
+parse_lmp_test_xor:
+55d4 efe08006 ifetch 1 ,contr 
+55d5 1fe2fe55 xor_into 0x55 ,pdata 
+55d6 e7e08005 istore 1 ,contw 
+55d7 c20055d4 loop parse_lmp_test_xor 
+55d8 6fe08a52 fetch 1 ,test_mode_scenario 
+55d9 68488a51 fetcht 1 ,mem_tester_emulate 
+55da 793f8407 set0 tester_no_whitening ,temp 
+55db 793f8404 set0 tester_pattern_test ,temp 
+55dc c07fd5e8 beq exit_test_mode ,parse_lmp_test_control_exit 
+55dd c0005601 beq pause_test_mode ,parse_lmp_test_control_pause 
+55de c002d5f5 beq closed_loop_back_acl ,parse_lmp_test_control_loopback 
+55df c003d5f4 beq acl_without_whitening ,parse_lmp_test_control_loopback_nowhite 
+55e0 c00355f5 beq closed_loop_back_sco ,parse_lmp_test_control_loopback 
+55e1 c00455f4 beq sco_without_whitening ,parse_lmp_test_control_loopback_nowhite 
+55e2 c000d5ed beq zero_pattern ,parse_lmp_test_control_pattern 
+55e3 c00155ed beq one_pattern ,parse_lmp_test_control_pattern 
+55e4 c001d5ed beq alt_pattern ,parse_lmp_test_control_pattern 
+55e5 c004d5ed beq alt2_pattern ,parse_lmp_test_control_pattern 
+55e6 c00255ed beq pseudorandom ,parse_lmp_test_control_pattern 
+55e7 20600000 rtn 
+
+parse_lmp_test_control_exit:
+55e8 6fe08a51 fetch 1 ,mem_tester_emulate 
+55e9 79207e03 set1 tester_exit ,pdata 
+55ea 79207e02 set1 tester_change ,pdata 
+55eb 67e08a51 store 1 ,mem_tester_emulate 
+55ec 20600000 rtn 
+
+parse_lmp_test_control_pattern:
+55ed 79200404 set1 tester_pattern_test ,temp 
+55ee 7000e405 jam 5 ,mem_lch_code 
+55ef 6fe10a59 fetch 2 ,test_mode_data_length 
+55f0 98007200 iforce loopcnt 
+55f1 67e100ae store 2 ,mem_len 
+55f2 d8a000ce arg mem_rxbuf ,contw 
+55f3 20407d15 call pn9 
+
+parse_lmp_test_control_loopback_nowhite:
+55f4 79200407 set1 tester_no_whitening ,temp 
+
+parse_lmp_test_control_loopback:
+55f5 79200402 set1 tester_change ,temp 
+55f6 18007e00 force 0 ,pdata 
+55f7 67e0800b store 1 ,mem_slave_rcvcnt 
+55f8 67e109fa store 2 ,mem_tst_pktcnt_crc 
+55f9 67e109fc store 2 ,mem_tst_pktcnt_dmh 
+55fa 67e109f8 store 2 ,mem_tst_pktcnt_hec 
+55fb 67e109f6 store 2 ,mem_tst_pktcnt_sync 
+55fc 6fe08a53 fetch 1 ,test_mode_hopping_mode 
+55fd 2fe1fe00 compare fixed_freq ,pdata ,0xff 
+55fe 79208406 setflag true ,tester_fixed_freq ,temp 
+55ff 60488a51 storet 1 ,mem_tester_emulate 
+5600 20600000 rtn 
+
+parse_lmp_test_control_pause:
+5601 793f8011 set0 mark_testmode ,mark 
+5602 700a5100 jam 0 ,mem_tester_emulate 
+5603 6fe080e3 fetch 1 ,mem_debug_config 
+5604 793ffe06 set0 debug_tx_pattern ,pdata 
+5605 67e080e3 store 1 ,mem_debug_config 
+5606 20600000 rtn 
+
+lmp_copy_rand:
+5607 d8c000cf arg mem_rxbuf + 1 ,contr 
+5608 d8a00424 arg mem_random_number ,contw 
+5609 20207c4c branch memcpy16 
+
+lmp_generate_key:
+560a 70007c09 jam lmp_comb_key ,mem_lmo_opcode2 
+560b 20600000 rtn 
+
+lmp_start_encryption:
+560c 24748000 nrtn master 
+560d 70007c11 jam lmp_start_encryption_req ,mem_lmo_opcode2 
+560e 20600000 rtn 
+
+lmp_accept_inrand:
+560f da2040a8 arg mem_lap ,rega 
+5610 20406a15 call generate_kinit 
+5611 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+5612 70007d08 jam lmp_in_rand ,mem_lmi_opcode2 
+5613 20600000 rtn 
+
+lmp_disconnect:
+5614 7000720a jam 10 ,mem_conn_timer 
+5615 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+5616 70039e16 jam local_host ,mem_disconn_reason_send 
+5617 20600000 rtn 
+
+send_lmp:
+5618 470c4023 bpatchx patch23_0 ,mem_patch23 
+5619 78547c00 disable user 
+561a 20405903 call lmo_fifo_process 
+561b 6fe08048 fetch 1 ,mem_lmp_to_send 
+561c 207a0000 rtn blank 
+561d c283d64d bbit1 7 ,send_lmp_escape 
+
+send_lmp0:
+561e c000d797 beq lmp_name_req ,send_lmp_name_req 
+561f c0015718 beq lmp_name_res ,send_lmp_name_res 
+5620 c001d659 beq lmp_accepted ,send_lmp_accepted 
+5621 c002566f beq lmp_not_accepted ,send_lmp_not_accepted 
+5622 c013d803 beq lmp_features_req ,send_lmp_features_req 
+5623 c014573c beq lmp_features_res ,send_lmp_features_res 
+5624 c0185728 beq lmp_timing_accuracy_res ,send_lmp_timing_accuracy_res 
+5625 c012d7fe beq lmp_version_req ,send_lmp_version_req 
+5626 c0135737 beq lmp_version_res ,send_lmp_version_res 
+5627 c018d7eb beq lmp_setup_complete ,send_lmp_setup_complete 
+5628 c01bd792 beq lmp_supervision_timeout ,send_lmp_superto 
+5629 c019d784 beq lmp_host_connection_req ,send_lmp_no_payload 
+562a c0045885 beq lmp_in_rand ,send_lmp_inrand 
+562b c004d87b beq lmp_comb_key ,send_lmp_comb_key 
+562c c005d890 beq lmp_au_rand ,send_lmp_aurand 
+562d c006589d beq lmp_sres ,send_lmp_sres 
+562e c007d78a beq lmp_encryption_mode_req ,send_lmp_encryption_mode_req 
+562f c00858d3 beq lmp_encryption_key_size_req ,send_lmp_encryption_key_size_req 
+5630 c008d8c9 beq lmp_start_encryption_req ,send_lmp_start_encryption 
+5631 c003d77a beq lmp_detach ,send_lmp_detach 
+5632 c01557a6 beq lmp_quality_of_service_req ,send_lmp_quality_of_service_req 
+5633 c00557a7 beq lmp_unit_key ,send_lmp_unit_key 
+5634 c00fd7e4 beq lmp_incr_power_req ,send_lmp_inc_power 
+5635 c003572d beq lmp_clkoffset_res ,send_lmp_clkoffset_res 
+5636 c010d787 beq lmp_max_power ,send_lmp_nopayload_reply 
+5637 c016d7da beq lmp_max_slot ,send_lmp_max_slot 
+5638 c01757df beq lmp_max_slot_req ,send_lmp_max_slot_req 
+5639 c0115787 beq lmp_min_power ,send_lmp_nopayload_reply 
+563a c01a57a8 beq lmp_slot_offset ,send_lmp_slot_offset 
+563b c009d7bd beq lmp_switch_req ,send_lmp_switch_req 
+563c c00bd7cc beq lmp_sniff_req ,send_lmp_sniff_req 
+563d c00958d0 beq lmp_stop_encryption_req ,send_lmp_stop_encryption_req 
+563e c017d7d2 beq lmp_timing_accuracy_req ,send_lmp_timing_accuracy_req 
+563f c00c57d7 beq lmp_unsniff_req ,send_lmp_unsniff_req 
+5640 c01ed826 beq lmp_encapsulated_header ,send_lmp_encapsulated_header 
+5641 c01f582e beq lmp_encapsulated_payload ,send_lmp_encapsulated_payload 
+5642 c01fd849 beq lmp_simple_pairing_confirm ,send_lmp_simple_pairing_comfirm 
+5643 c0205853 beq lmp_simple_pairing_number ,send_lmp_simple_pairing_number 
+5644 c020d868 beq lmp_dhkey_check ,send_lmp_dhkey_check 
+5645 c011d877 beq lmp_auto_rate ,send_lmp_auto_rate 
+5646 c01dd872 beq lmp_enc_key_size_mask_res ,send_lmp_enc_key_size_mask_res 
+5647 c002d878 beq lmp_clkoffset_req ,send_lmp_clkoffset_req 
+5648 c014d879 beq lmp_quality_of_service ,send_lmp_quality_of_service 
+5649 c01c587a beq lmp_test_activate ,send_lmp_test_activate 
+564a c01cd79d beq lmp_test_control ,send_lmp_test_control 
+
+send_lmp_error:
+564b 2020137a branch assert 
+564c 20600000 rtn 
+
+send_lmp_escape:
+564d c040d67c beq lmp_ext_accepted ,send_lmpext_accepted 
+564e c041d741 beq lmp_ext_features_req ,send_lmpext_features_req 
+564f c04256ab beq lmp_ext_features_res ,send_lmpext_features_res 
+5650 c0415685 beq lmp_not_accepted_ext ,send_lmpext_not_accepted 
+5651 c045d74e beq lmp_packet_type_table_req ,send_lmpext_packet_type_table_req 
+5652 c04bd776 beq lmp_pause_encryption_req ,send_lmpext_pause_encryption_req 
+5653 c04cd709 beq lmp_io_cap_req ,send_lmp_io_cap_req 
+5654 c04d56d8 beq lmp_io_cap_res ,send_lmpext_io_cap_res 
+5655 c04ad70e beq lmp_sniff_subrating_req ,send_lmpext_sniff_subrating_req 
+5656 c04b570f beq lmp_sniff_subrating_res ,send_lmpext_sniff_subrating_res 
+5657 c05156a8 beq lmp_ping_res ,send_lmpext_ping_res 
+5658 2020137a branch assert 
+
+send_lmp_accepted:
+5659 18007e02 force 2 ,pdata 
+565a 204058d9 call msg_send_lmp 
+565b 6fe08049 fetch 1 ,mem_lmi_opcode 
+565c e7e08005 istore 1 ,contw 
+565d 204058e8 call send_lmp_follow 
+565e 470cc023 bpatchx patch23_1 ,mem_patch23 
+565f 6fe08049 fetch 1 ,mem_lmi_opcode 
+5660 c004568f beq lmp_in_rand ,send_lmp_accepted_inrand 
+5661 c007d693 beq lmp_encryption_mode_req ,send_lmp_accepted_enc_mode 
+5662 c008569e beq lmp_encryption_key_size_req ,send_lmp_accepted_enc_key 
+5663 c00bd66e beq lmp_sniff_req ,send_lmp_accept_sniff_req 
+5664 c019d6a1 beq lmp_host_connection_req ,send_lmp_accepted_connection 
+5665 c020d6a7 beq lmp_dhkey_check ,send_lmp_accept_dhkey_check 
+5666 c008d668 beq lmp_start_encryption_req ,send_create_conn_start_l2cap_timer_sm 
+5667 20600000 rtn 
+
+send_create_conn_start_l2cap_timer_sm:
+5668 6fe08055 fetch 1 ,mem_conn_sm 
+5669 207a0000 rtn blank 
+566a 7000551b jam conn_sm_wait_done ,mem_conn_sm 
+566b 5800000c setarg timer_enpt_waite 
+566c d8e00007 arg enpt_delay_timer ,queue 
+566d 20207ca8 branch timer_init 
+
+send_lmp_accept_sniff_req:
+566e 20200ef1 branch sniff_init 
+
+send_lmp_not_accepted:
+566f 18007e03 force 3 ,pdata 
+5670 204058d9 call msg_send_lmp 
+5671 6fe08049 fetch 1 ,mem_lmi_opcode 
+5672 c005d677 beq lmp_au_rand ,send_not_accept_aurand 
+5673 e7e08005 istore 1 ,contw 
+5674 6fe0804a fetch 1 ,mem_lmo_reason 
+5675 e7e08005 istore 1 ,contw 
+5676 202058e8 branch send_lmp_follow 
+
+send_not_accept_aurand:
+5677 e7e08005 istore 1 ,contw 
+5678 6fe0804a fetch 1 ,mem_lmo_reason 
+5679 e7e08005 istore 1 ,contw 
+567a d84003a9 arg mem_sres_tid ,temp 
+567b 20205924 branch special_tid_store 
+
+send_lmpext_accepted:
+567c 18000e04 force 4 ,queue 
+567d 204058e1 call send_lmpext 
+567e 5800007f setarg lmp_escape 
+567f e7e08005 istore 1 ,contw 
+5680 6fe08049 fetch 1 ,mem_lmi_opcode 
+5681 793ffe07 set0 7 ,pdata 
+5682 e7e08005 istore 1 ,contw 
+5683 6fe08049 fetch 1 ,mem_lmi_opcode 
+5684 202058e8 branch send_lmp_follow 
+
+send_lmpext_not_accepted:
+5685 18000e05 force 5 ,queue 
+5686 204058e1 call send_lmpext 
+5687 5800007f setarg lmp_escape 
+5688 e7e08005 istore 1 ,contw 
+5689 6fe08049 fetch 1 ,mem_lmi_opcode 
+568a 793ffe07 set0 7 ,pdata 
+568b e7e08005 istore 1 ,contw 
+568c 6fe0804a fetch 1 ,mem_lmo_reason 
+568d e7e08005 istore 1 ,contw 
+568e 202058e8 branch send_lmp_follow 
+
+send_lmp_accepted_inrand:
+568f 20400c5c call clear_linkkey 
+5690 20405935 call tid_check 
+5691 20608000 rtn true 
+5692 2020560a branch lmp_generate_key 
+
+send_lmp_accepted_enc_mode:
+5693 6fe0804b fetch 1 ,mem_op 
+5694 c282d69a bbit1 op_start_enc ,send_lmp_accepted_enc_start 
+5695 c4020000 rtnbit0 op_stop_enc 
+5696 70007c12 jam lmp_stop_encryption_req ,mem_lmo_opcode2 
+5697 793ffe04 set0 op_stop_enc ,pdata 
+5698 2040592d call tid_reply 
+5699 2020569c branch send_lmp_accepted_enc_exit 
+
+send_lmp_accepted_enc_start:
+569a 70007c10 jam lmp_encryption_key_size_req ,mem_lmo_opcode2 
+569b 793ffe05 set0 op_start_enc ,pdata 
+
+send_lmp_accepted_enc_exit:
+569c 67e0804b store 1 ,mem_op 
+569d 20600000 rtn 
+
+send_lmp_accepted_enc_key:
+569e 2040593e call check_localsm 
+569f 2020d60c branch lmp_start_encryption ,true 
+56a0 20600000 rtn 
+
+send_lmp_accepted_connection:
+56a1 70007c8b jam lmp_packet_type_table_req ,mem_lmo_opcode2 
+56a2 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+56a3 79207e00 set1 received_conn_req ,pdata 
+56a4 67e083a5 store 1 ,mem_lmp_conn_state 
+56a5 70095b01 jam bt_evt_bb_connected ,mem_fifo_temp 
+56a6 202077a7 branch ui_ipc_send_event 
+
+send_lmp_accept_dhkey_check:
+56a7 20600000 rtn 
+
+send_lmpext_ping_res:
+56a8 18000e02 force 2 ,queue 
+56a9 204058e1 call send_lmpext 
+56aa 202058f1 branch send_lmp_reply 
+
+send_lmpext_features_res:
+56ab 1fe22200 copy pdata ,rega 
+56ac 204056c1 call check_ssp_enable 
+56ad 6fe083a1 fetch 1 ,mem_ext_features_page 
+56ae c000d6b1 beq 1 ,send_lmpext_features_res1 
+56af c00156b9 beq 2 ,send_lmpext_features_res2 
+56b0 20600000 rtn 
+
+send_lmpext_features_res1:
+56b1 1a227e00 copy rega ,pdata 
+56b2 18000e0c force 12 ,queue 
+56b3 204058e1 call send_lmpext 
+56b4 58000001 setarg 0x01 
+56b5 e7e08005 istore 1 ,contw 
+56b6 6fe103a2 fetch 2 ,mem_lmpext_ssp_enable 
+56b7 e7e48005 istore 9 ,contw 
+56b8 202058f1 branch send_lmp_reply 
+
+send_lmpext_features_res2:
+56b9 1a227e00 copy rega ,pdata 
+56ba 18000e0c force 12 ,queue 
+56bb 204058e1 call send_lmpext 
+56bc 58000002 setarg 0x02 
+56bd e7e08005 istore 1 ,contw 
+56be 58010002 setarg 0x010002 
+56bf e7e48005 istore 9 ,contw 
+56c0 202058f1 branch send_lmp_reply 
+
+check_ssp_enable:
+56c1 6fe0c76b fetch 1 ,mem_ssp_enable 
+56c2 203a56c5 branch ssp_disable ,blank 
+56c3 204056cb call ssp_enable 
+56c4 202056d2 branch check_br_sc_enable 
+
+ssp_disable:
+56c5 6fe0c0a6 fetch 1 ,mem_features + 6 
+56c6 793ffe03 set0 param_featrue_ssp ,pdata 
+56c7 67e0c0a6 store 1 ,mem_features + 6 
+56c8 58000001 setarg 0x1 
+56c9 67e103a2 store 2 ,mem_lmpext_ssp_enable 
+56ca 20206e02 branch sp_clear_flags 
+
+ssp_enable:
+56cb 470d4023 bpatchx patch23_2 ,mem_patch23 
+56cc 6fe0c0a6 fetch 1 ,mem_features + 6 
+56cd 79207e03 set1 param_featrue_ssp ,pdata 
+56ce 67e0c0a6 store 1 ,mem_features + 6 
+56cf 58000101 setarg param_lmpext_ssp_enable 
+56d0 67e103a2 store 2 ,mem_lmpext_ssp_enable 
+56d1 20600000 rtn 
+
+check_br_sc_enable:
+56d2 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+56d3 c280d6d5 bbit1 secure_connections_br_bit ,br_sc_enable 
+56d4 20600000 rtn 
+
+br_sc_enable:
+56d5 58000902 setarg 0x0902 
+56d6 67e103a2 store 2 ,mem_lmpext_ssp_enable 
+56d7 20600000 rtn 
+
+send_lmpext_io_cap_res:
+56d8 18000e05 force 5 ,queue 
+56d9 204058e1 call send_lmpext 
+56da 6fe1c76c fetch 3 ,mem_lmp_io_cap_payload_iocap 
+56db e7e18005 istore 3 ,contw 
+56dc 204058f1 call send_lmp_reply 
+56dd 70477601 jam flag_pairing_state_pairing ,mem_flag_pairing_state 
+56de 6fe0c76c fetch 1 ,mem_lmp_io_cap_payload_iocap 
+56df c000d6e9 beq io_capability_display_yesno ,responder_iocap_display_yesno 
+56e0 c00156e3 beq io_capability_keyboard_only ,responder_iocap_keyboard_only 
+56e1 c001d6ef beq io_capability_no_input_no_output ,responder_iocap_no_input_no_output 
+56e2 20600000 rtn 
+
+responder_iocap_keyboard_only:
+56e3 6fe0c76f fetch 1 ,mem_sp_iocap_remote 
+56e4 c00056fb beq io_capability_display_only ,responder_iocap_keyboard_only_initiator_iocap_display_only 
+56e5 c000d6fb beq io_capability_display_yesno ,responder_iocap_keyboard_only_initiator_iocap_display_yesno 
+56e6 c00156fb beq io_capability_keyboard_only ,responder_iocap_keyboard_only_initiator_iocap_keyboard_only 
+56e7 c001d6f5 beq io_capability_no_input_no_output ,responder_iocap_keyboard_only_initiator_iocap_no_input_no_output 
+56e8 20600000 rtn 
+
+responder_iocap_display_yesno:
+56e9 6fe0c76f fetch 1 ,mem_sp_iocap_remote 
+56ea c00056f5 beq io_capability_display_only ,responder_iocap_display_yesno_initiator_iocap_display_only 
+56eb c000d6f9 beq io_capability_display_yesno ,responder_iocap_display_yesno_initiator_iocap_display_yesno 
+56ec c00156fb beq io_capability_keyboard_only ,responder_iocap_display_yesno_initiator_iocap_keyboard_only 
+56ed c001d6f5 beq io_capability_no_input_no_output ,responder_iocap_display_yesno_initiator_iocap_no_input_no_output 
+56ee 20600000 rtn 
+
+responder_iocap_no_input_no_output:
+56ef 6fe0c76f fetch 1 ,mem_sp_iocap_remote 
+56f0 c00056f5 beq io_capability_display_only ,responder_iocap_no_input_no_output_initiator_iocap_display_only 
+56f1 c000d6f5 beq io_capability_display_yesno ,responder_iocap_no_input_no_output_initiator_iocap_display_yesno 
+56f2 c00156f5 beq io_capability_keyboard_only ,responder_iocap_no_input_no_output_initiator_iocap_keyboard_only 
+56f3 c001d6f5 beq io_capability_no_input_no_output ,responder_iocap_no_input_no_output_initiator_iocap_no_input_no_output 
+56f4 20600000 rtn 
+
+responder_iocap_keyboard_only_initiator_iocap_no_input_no_output:
+
+responder_iocap_display_yesno_initiator_iocap_no_input_no_output:
+
+responder_iocap_display_yesno_initiator_iocap_display_only:
+
+responder_iocap_no_input_no_output_initiator_iocap_display_only:
+
+responder_iocap_no_input_no_output_initiator_iocap_display_yesno:
+
+responder_iocap_no_input_no_output_initiator_iocap_keyboard_only:
+
+responder_iocap_no_input_no_output_initiator_iocap_no_input_no_output:
+
+set_ssp_mode_justwork:
+56f5 70477303 jam ssp_mode_just_work_flag ,mem_ssp_mode_flag 
+56f6 6fe0c64a fetch 1 ,mem_classic_bt_flag 
+56f7 c280323b bbit1 flag_ssp_reject_justwork ,app_bt_disconnect 
+56f8 20600000 rtn 
+
+responder_iocap_display_yesno_initiator_iocap_display_yesno:
+
+set_ssp_mode_numeric_comparison:
+56f9 70477301 jam ssp_mode_ssp_pin_flag ,mem_ssp_mode_flag 
+56fa 20600000 rtn 
+
+responder_iocap_keyboard_only_initiator_iocap_display_yesno:
+
+responder_iocap_keyboard_only_initiator_iocap_keyboard_only:
+
+responder_iocap_keyboard_only_initiator_iocap_display_only:
+
+responder_iocap_display_yesno_initiator_iocap_keyboard_only:
+
+set_ssp_mode_passkey:
+56fb 70477302 jam ssp_mode_passkey_entry_flag ,mem_ssp_mode_flag 
+56fc 20600000 rtn 
+
+classic_bt_set_reject_justwork_flag:
+56fd d8e00000 arg flag_ssp_reject_justwork ,queue 
+56fe 20205701 branch classic_bluetooth_set_flag 
+
+classic_bt_clr_reject_justwork_flag:
+56ff d8e00000 arg flag_ssp_reject_justwork ,queue 
+5700 20205705 branch classic_bluetooth_clr_flag 
+
+classic_bluetooth_set_flag:
+5701 6fe0c64a fetch 1 ,mem_classic_bt_flag 
+5702 f9207e00 qset1 pdata 
+5703 67e0c64a store 1 ,mem_classic_bt_flag 
+5704 20600000 rtn 
+
+classic_bluetooth_clr_flag:
+5705 6fe0c64a fetch 1 ,mem_classic_bt_flag 
+5706 f93ffe00 qset0 pdata 
+5707 67e0c64a store 1 ,mem_classic_bt_flag 
+5708 20600000 rtn 
+
+send_lmp_io_cap_req:
+5709 18000e05 force 5 ,queue 
+570a 204058e1 call send_lmpext 
+570b 6fe1c76c fetch 3 ,mem_lmp_io_cap_payload_iocap 
+570c e7e18005 istore 3 ,contw 
+570d 202058f3 branch send_lmp_request 
+
+send_lmpext_sniff_subrating_req:
+570e 20600000 rtn 
+
+send_lmpext_sniff_subrating_res:
+570f 18000e09 force 9 ,queue 
+5710 204058e1 call send_lmpext 
+5711 6fe08092 fetch 1 ,mem_subsniff_rate 
+5712 e7e08005 istore 1 ,contw 
+5713 6fe10093 fetch 2 ,mem_subsniff_tcmax 
+5714 e7e10005 istore 2 ,contw 
+5715 6fe2008e fetch 4 ,mem_subsniff_instant 
+5716 e7e20005 istore 4 ,contw 
+5717 202058f1 branch send_lmp_reply 
+
+send_lmp_name_res:
+5718 18007e11 force 17 ,pdata 
+5719 204058d9 call msg_send_lmp 
+571a 6fe08049 fetch 1 ,mem_lmi_opcode 
+571b 1fe20400 copy pdata ,temp 
+571c c0005720 beq 0x00 ,send_lmp_name_res_offset_ok 
+571d c0075720 beq 0x0e ,send_lmp_name_res_offset_ok 
+571e c00e5720 beq 0x1c ,send_lmp_name_res_offset_ok 
+571f 20600000 rtn 
+
+send_lmp_name_res_offset_ok:
+5720 e7e08005 istore 1 ,contw 
+5721 6fe0c603 fetch 1 ,mem_local_name_length 
+5722 e7e08005 istore 1 ,contw 
+5723 df20000e arg 14 ,loopcnt 
+5724 58004604 setarg mem_local_name 
+5725 98408c00 iadd temp ,contr 
+5726 20407ca1 call memcpy 
+5727 202058f1 branch send_lmp_reply 
+
+send_lmp_timing_accuracy_res:
+5728 18007e03 force 3 ,pdata 
+5729 204058d9 call msg_send_lmp 
+572a 58000114 setarg 0x0114 
+572b e7e10005 istore 2 ,contw 
+572c 202058f1 branch send_lmp_reply 
+
+send_lmp_clkoffset_res:
+572d 18007e03 force 3 ,pdata 
+572e 204058d9 call msg_send_lmp 
+572f 6fe200b4 fetch 4 ,mem_clke_bt 
+5730 9c467e00 isub clkn_bt ,pdata 
+5731 2034d733 branch send_lmp_clkoffset_res_master ,master 
+5732 1fe67e00 sub pdata ,0 ,pdata 
+
+send_lmp_clkoffset_res_master:
+5733 1feb7e00 rshift2 pdata ,pdata 
+5734 793ffe0f set0 15 ,pdata 
+5735 e7e10005 istore 2 ,contw 
+5736 202058f1 branch send_lmp_reply 
+
+send_lmp_version_res:
+5737 18007e06 force 6 ,pdata 
+5738 204058d9 call msg_send_lmp 
+5739 6fe2c5fe fetch 5 ,mem_lmp_version 
+573a e7e28005 istore 5 ,contw 
+573b 202058f1 branch send_lmp_reply 
+
+send_lmp_features_res:
+573c 18007e09 force 9 ,pdata 
+573d 204058d9 call msg_send_lmp 
+573e 6fe440a0 fetch 8 ,mem_features 
+573f e7e40005 istore 8 ,contw 
+5740 202058f1 branch send_lmp_reply 
+
+send_lmpext_features_req:
+5741 204056c1 call check_ssp_enable 
+5742 6fe08048 fetch 1 ,mem_lmp_to_send 
+5743 18000e0c force 12 ,queue 
+5744 204058e1 call send_lmpext 
+5745 58000001 setarg 0x01 
+5746 e7e08005 istore 1 ,contw 
+5747 6fe103a2 fetch 2 ,mem_lmpext_ssp_enable 
+5748 e7e10005 istore 2 ,contw 
+5749 58000000 setarg 0 
+574a e7e18005 istore 3 ,contw 
+574b 58000000 setarg 0x00 
+574c e7e20005 istore 4 ,contw 
+574d 202058f3 branch send_lmp_request 
+
+send_lmpext_packet_type_table_req:
+574e 18000e03 force 3 ,queue 
+574f 204058e1 call send_lmpext 
+5750 6fe0c15f fetch 1 ,mem_ptt 
+5751 e7e08005 istore 1 ,contw 
+5752 78547c00 disable user 
+5753 204058f3 call send_lmp_request 
+5754 24740000 nrtn user 
+5755 24748000 nrtn master 
+5756 6fe0c0df fetch 1 ,mem_afh_cfg 
+5757 c4000000 rtnbit0 afh_cfg_on 
+5758 2040575a call afh_init 
+5759 20205764 branch afh_open_all_channels 
+
+afh_init:
+575a 7040df03 jam 0x3 ,mem_afh_cfg 
+575b 58000000 setarg 0 
+575c 67e24149 store 4 ,mem_afh_timer 
+575d d8a040e1 arg mem_afh_map_lo ,contw 
+575e 20405768 call afh_reset_map 
+575f d8a040ee arg mem_afh_map_new ,contw 
+5760 20405768 call afh_reset_map 
+5761 d8a0414d arg mem_afh_classify_channel_map ,contw 
+5762 20405768 call afh_reset_map 
+5763 2020576f branch afh_clear_error_counter 
+
+afh_open_all_channels:
+5764 d8a040ee arg mem_afh_map_new ,contw 
+5765 20405768 call afh_reset_map 
+5766 2040576f call afh_clear_error_counter 
+5767 20205772 branch afh_set_send_flag 
+
+afh_reset_map:
+5768 58ffffff setarg 0xffffff 
+5769 e7e18005 istore 3 ,contw 
+576a e7e18005 istore 3 ,contw 
+576b e7e18005 istore 3 ,contw 
+576c 5800007f setarg 0x7f 
+576d e7e08005 istore 1 ,contw 
+576e 20600000 rtn 
+
+afh_clear_error_counter:
+576f 58000000 setarg 0 
+5770 67e140dd store 2 ,mem_afh_error_total 
+5771 20600000 rtn 
+
+afh_set_send_flag:
+5772 6fe0c0df fetch 1 ,mem_afh_cfg 
+5773 79207e02 set1 send_lmp_set_afh ,pdata 
+5774 67e0c0df store 1 ,mem_afh_cfg 
+5775 20600000 rtn 
+
+send_lmpext_pause_encryption_req:
+5776 18000e02 force 2 ,queue 
+5777 204058e1 call send_lmpext 
+5778 2434d8f1 nbranch send_lmp_reply ,master 
+5779 202058f3 branch send_lmp_request 
+
+send_lmp_detach:
+577a 18007e02 force 2 ,pdata 
+577b 204058d9 call msg_send_lmp 
+577c 6fe0839e fetch 1 ,mem_disconn_reason_send 
+577d e7e08005 istore 1 ,contw 
+577e 204058f3 call send_lmp_request 
+
+prepare_disconnect:
+577f 6fe0804b fetch 1 ,mem_op 
+5780 79207e03 set1 op_disconn ,pdata 
+5781 67e0804b store 1 ,mem_op 
+5782 70007232 jam 50 ,mem_conn_timer 
+5783 20600000 rtn 
+
+send_lmp_no_payload:
+5784 18007e01 force 1 ,pdata 
+5785 204058d9 call msg_send_lmp 
+5786 202058f3 branch send_lmp_request 
+
+send_lmp_nopayload_reply:
+5787 18007e01 force 1 ,pdata 
+5788 204058d9 call msg_send_lmp 
+5789 202058f1 branch send_lmp_reply 
+
+send_lmp_encryption_mode_req:
+578a 18007e02 force 2 ,pdata 
+578b 204058d9 call msg_send_lmp 
+578c 6fe0804c fetch 1 ,mem_state_map 
+578d 2fec0002 isolate0 smap_encryption ,pdata 
+578e 7920fe00 setflag true ,0 ,pdata 
+578f 1fe17e01 and_into 1 ,pdata 
+5790 e7e08005 istore 1 ,contw 
+5791 202058f3 branch send_lmp_request 
+
+send_lmp_superto:
+5792 18007e03 force 3 ,pdata 
+5793 204058d9 call msg_send_lmp 
+5794 6fe10051 fetch 2 ,mem_supervision_to 
+5795 e7e10005 istore 2 ,contw 
+5796 202058f3 branch send_lmp_request 
+
+send_lmp_name_req:
+5797 700072fa jam 250 ,mem_conn_timer 
+5798 18007e02 force 2 ,pdata 
+5799 204058d9 call msg_send_lmp 
+579a 6fe08053 fetch 1 ,mem_name_offset 
+579b e7e08005 istore 1 ,contw 
+579c 202058f3 branch send_lmp_request 
+
+send_lmp_test_control:
+579d 18007e0a force 10 ,pdata 
+579e 204058d9 call msg_send_lmp 
+579f d8c00a52 arg mem_temp_payload ,contr 
+57a0 18007209 force 9 ,loopcnt 
+
+send_lmp_test_control_loop:
+57a1 efe08006 ifetch 1 ,contr 
+57a2 1fe2fe55 xor_into 0x55 ,pdata 
+57a3 e7e08005 istore 1 ,contw 
+57a4 c20057a1 loop send_lmp_test_control_loop 
+57a5 202058f3 branch send_lmp_request 
+
+send_lmp_quality_of_service_req:
+57a6 202058f3 branch send_lmp_request 
+
+send_lmp_unit_key:
+57a7 202058f3 branch send_lmp_request 
+
+send_lmp_slot_offset:
+57a8 20748000 rtn master 
+57a9 2040104a call calc_slot_offset 
+57aa 18007e09 force 9 ,pdata 
+57ab 204058d9 call msg_send_lmp 
+57ac 6fe100c0 fetch 2 ,mem_slot_offset 
+57ad e7e10005 istore 2 ,contw 
+57ae 6fe1c0a8 fetch 3 ,mem_lap 
+57af e7e18005 istore 3 ,contw 
+57b0 6fe0c0ab fetch 1 ,mem_uap 
+57b1 e7e08005 istore 1 ,contw 
+57b2 6fe140ac fetch 2 ,mem_nap 
+57b3 e7e10005 istore 2 ,contw 
+57b4 c581d7b9 bmark0 mark_switch_initiated ,send_lmp_slot_offset_reply 
+57b5 793f8003 set0 mark_switch_initiated ,mark 
+57b6 204058f3 call send_lmp_request 
+57b7 70007c13 jam lmp_switch_req ,mem_lmo_opcode2 
+57b8 20600000 rtn 
+
+send_lmp_slot_offset_reply:
+57b9 204058f1 call send_lmp_reply 
+57ba 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+57bb 70007d13 jam lmp_switch_req ,mem_lmi_opcode2 
+57bc 20600000 rtn 
+
+send_lmp_switch_req:
+57bd d8400200 arg 0x200 ,temp 
+57be 2034d7c1 branch switch_on_native ,master 
+57bf 1d027e00 deposit clke_bt 
+57c0 202057c2 branch switch_slack 
+
+switch_on_native:
+57c1 1c427e00 deposit clkn_bt 
+
+switch_slack:
+57c2 1c227e00 deposit bt_clk 
+57c3 9840fe00 iadd temp ,pdata 
+57c4 1fe17ffc and_into 0x1fc ,pdata 
+57c5 67e20034 store 4 ,mem_sniff_anchor 
+57c6 18007e05 force 5 ,pdata 
+57c7 204058d9 call msg_send_lmp 
+57c8 6fe20034 fetch 4 ,mem_sniff_anchor 
+57c9 1fe37e00 rshift pdata ,pdata 
+57ca e7e20005 istore 4 ,contw 
+57cb 202058f3 branch send_lmp_request 
+
+send_lmp_sniff_req:
+57cc 18007e0a force 10 ,pdata 
+57cd 204058d9 call msg_send_lmp 
+57ce d8c003ac arg mem_sniff_payload ,contr 
+57cf efe48006 ifetch 9 ,contr 
+57d0 e7e48005 istore 9 ,contw 
+57d1 202058f3 branch send_lmp_request 
+
+send_lmp_timing_accuracy_req:
+57d2 18007e03 force 3 ,pdata 
+57d3 204058d9 call msg_send_lmp 
+57d4 58000114 setarg 0x0114 
+57d5 e7e10005 istore 2 ,contw 
+57d6 202058f3 branch send_lmp_request 
+
+send_lmp_unsniff_req:
+57d7 18007e01 force 1 ,pdata 
+57d8 204058d9 call msg_send_lmp 
+57d9 202058f3 branch send_lmp_request 
+
+send_lmp_max_slot:
+57da 18007e02 force 2 ,pdata 
+57db 204058d9 call msg_send_lmp 
+57dc 6fe0c0d7 fetch 1 ,mem_max_slot 
+57dd e7e08005 istore 1 ,contw 
+57de 202058f3 branch send_lmp_request 
+
+send_lmp_max_slot_req:
+57df 18007e02 force 2 ,pdata 
+57e0 204058d9 call msg_send_lmp 
+57e1 58000005 setarg 0x05 
+57e2 e7e08005 istore 1 ,contw 
+57e3 202058f3 branch send_lmp_request 
+
+send_lmp_inc_power:
+57e4 18007e02 force 2 ,pdata 
+57e5 204058d9 call msg_send_lmp 
+57e6 58000000 setarg 0x00 
+57e7 e7e08005 istore 1 ,contw 
+57e8 202058f3 branch send_lmp_request 
+
+send_lmp_setup_complete_by_module:
+57e9 70007c2e jam lmp_max_slot_req ,mem_lmo_opcode2 
+57ea 20600000 rtn 
+
+send_lmp_setup_complete:
+57eb 6fe0c09a fetch 1 ,mem_device_option 
+57ec 1fe67c0a sub pdata ,dvc_op_module ,null 
+57ed 2042d7e9 call send_lmp_setup_complete_by_module ,zero 
+57ee 6fe08030 fetch 1 ,mem_state 
+57ef 79207e04 set1 state_conn_comp ,pdata 
+57f0 67e08030 store 1 ,mem_state 
+57f1 1c427e00 copy clkn_bt ,pdata 
+57f2 67e203bc store 4 ,mem_aurand_send_delay_time 
+57f3 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+57f4 c281d7fc bbit1 sent_setup_complete ,send_lmp_setup_complete_has_sent 
+57f5 79207e03 set1 sent_setup_complete ,pdata 
+57f6 67e083a5 store 1 ,mem_lmp_conn_state 
+57f7 70095b05 jam bt_evt_setup_complete ,mem_fifo_temp 
+57f8 204077a7 call ui_ipc_send_event 
+57f9 18007e01 force 1 ,pdata 
+57fa 204058d9 call msg_send_lmp 
+57fb 202058f3 branch send_lmp_request 
+
+send_lmp_setup_complete_has_sent:
+57fc 70004800 jam 0 ,mem_lmp_to_send 
+57fd 20600000 rtn 
+
+send_lmp_version_req:
+57fe 18007e06 force 6 ,pdata 
+57ff 204058d9 call msg_send_lmp 
+5800 6fe2c5fe fetch 5 ,mem_lmp_version 
+5801 e7e28005 istore 5 ,contw 
+5802 202058f3 branch send_lmp_request 
+
+send_lmp_features_req:
+5803 18007e09 force 9 ,pdata 
+5804 204058d9 call msg_send_lmp 
+5805 6fe440a0 fetch 8 ,mem_features 
+5806 e7e40005 istore 8 ,contw 
+5807 202058f3 branch send_lmp_request 
+
+sp_master_send_io_cap_get:
+5808 70087301 jam sp_flag_commit ,mem_master_sp_flag 
+5809 6fe0c6c0 fetch 1 ,mem_sp_local_key_invalid 
+580a c1808000 rtnne sp_key_valid 
+580b 70087113 jam sp_master_stat_start_done ,mem_master_sp_state 
+580c 20600000 rtn 
+
+sp_master_send_io_cap_send:
+580d 20405931 call tid_initiate 
+580e 70007c99 jam lmp_io_cap_req ,mem_lmo_opcode2 
+580f 70087103 jam sp_stat_key_send ,mem_master_sp_state 
+5810 20600000 rtn 
+
+sp_master_send_lmp_encapsulated_header:
+5811 20405931 call tid_initiate 
+5812 70007c3d jam lmp_encapsulated_header ,mem_lmo_opcode2 
+5813 70087107 jam sp_stat_random_send ,mem_master_sp_state 
+5814 20600000 rtn 
+
+sp_master_commitment_compare:
+5815 da200910 arg mem_sp_calc_result_high ,rega 
+5816 da400930 arg mem_sp_confirm_remote ,regb 
+5817 df200010 arg 16 ,loopcnt 
+5818 20407d33 call string_compare 
+5819 2022d81e branch sp_master_commitment_compare_success ,zero 
+581a 70087100 jam sp_stat_null ,mem_master_sp_state 
+581b 20406fa0 call master_clear_mem_master_sp_flag 
+581c 70007d40 jam lmp_simple_pairing_number ,mem_lmi_opcode2 
+581d 202055ab branch lmp_reject_pdu_not_allowed 
+
+sp_master_commitment_compare_success:
+581e 7008710a jam sp_stat_confirm_calc ,mem_master_sp_state 
+581f 20406f9e call master_set_mem_master_sp_flag 
+5820 70007d40 jam lmp_simple_pairing_number ,mem_lmi_opcode2 
+5821 2020540a branch accept_lmp_msg 
+
+sp_master_send_lmp_simple_pairing_number:
+5822 70007c40 jam lmp_simple_pairing_number ,mem_lmo_opcode2 
+5823 20600000 rtn 
+
+sp_send_lmp_encapsulated_header:
+5824 70007c3d jam lmp_encapsulated_header ,mem_lmo_opcode2 
+5825 20600000 rtn 
+
+send_lmp_encapsulated_header:
+5826 70087800 jam 0 ,mem_sp_local_key_send_count 
+5827 18007e04 force 4 ,pdata 
+5828 204058d9 call msg_send_lmp 
+5829 6fe1c64b fetch 3 ,mem_encapsulated_major_type 
+582a e7e18005 istore 3 ,contw 
+582b 2040593e call check_localsm 
+582c 2020d8f3 branch send_lmp_request ,true 
+582d 202058f1 branch send_lmp_reply 
+
+send_lmp_encapsulated_payload:
+582e 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+582f c0015832 beq encapsulated_minor_type_p256 ,send_lmp_encapsulated_payload_256 
+5830 c000d837 beq encapsulated_minor_type_p192 ,send_lmp_encapsulated_payload_192 
+5831 20600000 rtn 
+
+send_lmp_encapsulated_payload_256:
+5832 18007e11 force 17 ,pdata 
+5833 204058d9 call msg_send_lmp 
+5834 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+5835 d8c046e3 arg mem_sc_pubkey_local_x_256 ,contr 
+5836 2020583b branch send_lmp_encapsulated_payload_common 
+
+send_lmp_encapsulated_payload_192:
+5837 18007e11 force 17 ,pdata 
+5838 204058d9 call msg_send_lmp 
+5839 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+583a d8c0473b arg mem_sp_pubkey_local ,contr 
+
+send_lmp_encapsulated_payload_common:
+583b 98c08c00 iadd contr ,contr 
+583c efe40006 ifetch 8 ,contr 
+583d e7e40005 istore 8 ,contw 
+583e efe40006 ifetch 8 ,contr 
+583f e7e40005 istore 8 ,contw 
+5840 6fe08878 fetch 1 ,mem_sp_local_key_send_count 
+5841 1fe0fe10 increase 16 ,pdata 
+5842 67e08878 store 1 ,mem_sp_local_key_send_count 
+5843 2040593e call check_localsm 
+5844 2020d8f3 branch send_lmp_request ,true 
+5845 202058f1 branch send_lmp_reply 
+
+sp_send_lmp_simple_pairing_comfirm:
+5846 70087006 jam sp_stat_random_recv ,mem_sp_state 
+5847 70007c3f jam lmp_simple_pairing_confirm ,mem_lmo_opcode2 
+5848 20600000 rtn 
+
+send_lmp_simple_pairing_comfirm:
+5849 18007e11 force 17 ,pdata 
+584a 204058d9 call msg_send_lmp 
+584b d8c00910 arg mem_sp_calc_result_high ,contr 
+584c efe40006 ifetch 8 ,contr 
+584d e7e40005 istore 8 ,contw 
+584e efe40006 ifetch 8 ,contr 
+584f e7e40005 istore 8 ,contw 
+5850 202058f1 branch send_lmp_reply 
+
+sp_send_lmp_simple_pairing_number:
+5851 70007c40 jam lmp_simple_pairing_number ,mem_lmo_opcode2 
+5852 20600000 rtn 
+
+send_lmp_simple_pairing_number:
+5853 2040593e call check_localsm 
+5854 2040eeb4 call sp_local_random_key_generator ,true 
+5855 18007e11 force 17 ,pdata 
+5856 204058d9 call msg_send_lmp 
+5857 d8c008e0 arg mem_sp_random_local ,contr 
+5858 efe40006 ifetch 8 ,contr 
+5859 e7e40005 istore 8 ,contw 
+585a efe40006 ifetch 8 ,contr 
+585b e7e40005 istore 8 ,contw 
+585c 2040593e call check_localsm 
+585d 2420d8f1 nbranch send_lmp_reply ,true 
+585e 2020d8f3 branch send_lmp_request ,true 
+
+master_sp_sm_end:
+585f 7008710f jam sp_stat_done ,mem_master_sp_state 
+
+sp_aurand_send:
+5860 20405931 call tid_initiate 
+5861 70007c0b jam lmp_au_rand ,mem_lmo_opcode2 
+5862 20405949 call check_localsm_master 
+5863 2020ef02 branch sp_master_key_prarm_push ,true 
+5864 20206f0c branch sp_link_key_prarm_push 
+
+master_sp_send_lmp_dhkey_check:
+5865 2040592d call tid_reply 
+
+sp_send_lmp_dhkey_check:
+5866 70007c41 jam lmp_dhkey_check ,mem_lmo_opcode2 
+5867 20600000 rtn 
+
+send_lmp_dhkey_check:
+5868 18007e11 force 17 ,pdata 
+5869 204058d9 call msg_send_lmp 
+586a d8c00910 arg mem_sp_calc_result_high ,contr 
+586b efe40006 ifetch 8 ,contr 
+586c e7e40005 istore 8 ,contw 
+586d efe40006 ifetch 8 ,contr 
+586e e7e40005 istore 8 ,contw 
+586f 2040593e call check_localsm 
+5870 2420d8f1 nbranch send_lmp_reply ,true 
+5871 2020d8f3 branch send_lmp_request ,true 
+
+send_lmp_enc_key_size_mask_res:
+5872 18007e03 force 3 ,pdata 
+5873 204058d9 call msg_send_lmp 
+5874 5800fffe setarg 0xfffe 
+5875 e7e10005 istore 2 ,contw 
+5876 202058f1 branch send_lmp_reply 
+
+send_lmp_auto_rate:
+5877 202058f3 branch send_lmp_request 
+
+send_lmp_clkoffset_req:
+5878 202058f3 branch send_lmp_request 
+
+send_lmp_quality_of_service:
+5879 202058f3 branch send_lmp_request 
+
+send_lmp_test_activate:
+587a 202058f3 branch send_lmp_request 
+
+send_lmp_comb_key:
+587b 2040594d call generate_random_number 
+587c da2040a8 arg mem_lap ,rega 
+587d 20405953 call generate_linkkey 
+587e 18007e11 force 17 ,pdata 
+587f 204058d9 call msg_send_lmp 
+5880 da200444 arg mem_kinit ,rega 
+5881 da400424 arg mem_random_number ,regb 
+5882 20406b12 call xor16 
+5883 2434d8e8 nbranch send_lmp_follow ,master 
+5884 202058ee branch send_lmp_tid 
+
+send_lmp_inrand:
+5885 2040594d call generate_random_number 
+5886 da200040 arg mem_plap ,rega 
+5887 20406a15 call generate_kinit 
+
+send_lmp_rand:
+5888 18007e11 force 17 ,pdata 
+5889 204058d9 call msg_send_lmp 
+588a d8c00424 arg mem_random_number ,contr 
+588b 20407c4c call memcpy16 
+588c 6fe08055 fetch 1 ,mem_conn_sm 
+588d c00cd8f3 beq conn_sm_auth_wait ,send_lmp_request 
+588e c00c58f3 beq conn_sm_pairing_wait ,send_lmp_request 
+588f 202058ee branch send_lmp_tid 
+
+send_lmp_aurand:
+5890 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+5891 c001589b beq encapsulated_minor_type_p256 ,send_lmp_aurand_256 
+5892 6fe08877 fetch 1 ,mem_pairing_auth 
+5893 203a5898 branch send_lmp_aurand_notpairing ,blank 
+
+send_lmp_aurand2:
+5894 2040593e call check_localsm 
+5895 2040d931 call tid_initiate ,true 
+5896 2440d92d ncall tid_reply ,true 
+5897 20205899 branch send_lmp_aurand_common 
+
+send_lmp_aurand_notpairing:
+5898 20405931 call tid_initiate 
+
+send_lmp_aurand_common:
+5899 2040594d call generate_random_number 
+589a 20205888 branch send_lmp_rand 
+
+send_lmp_aurand_256:
+589b 70007c0c jam lmp_sres ,mem_lmo_opcode2 
+589c 20205894 branch send_lmp_aurand2 
+
+send_lmp_sres:
+589d 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+589e c00158b7 beq encapsulated_minor_type_p256 ,send_lmp_sres_256 
+589f da2040a8 arg mem_lap ,rega 
+58a0 20406a48 call function_e1 
+58a1 18007e05 force 5 ,pdata 
+58a2 204058d9 call msg_send_lmp 
+58a3 6fe20454 fetch 4 ,mem_input_store 
+58a4 e7e20005 istore 4 ,contw 
+58a5 d84003a9 arg mem_sres_tid ,temp 
+58a6 20405924 call special_tid_store 
+58a7 20406b46 call copy_aco 
+58a8 2040593e call check_localsm 
+58a9 2020d8ae branch send_lmp_sres_master ,true 
+58aa 7003ab01 jam done_encryp ,mem_wait_encryption 
+58ab 6fe08877 fetch 1 ,mem_pairing_auth 
+58ac 207a0000 rtn blank 
+58ad 70007c0b jam lmp_au_rand ,mem_lmo_opcode2 
+
+send_lmp_sres_master:
+58ae 6fe0c1cd fetch 1 ,mem_link_key_exists 
+58af 207a0000 rtn blank 
+
+send_lmp_sres_startenc:
+58b0 2040593e call check_localsm 
+58b1 2420d8b3 nbranch send_lmp_sres_startenc_slave ,true 
+58b2 20600000 rtn 
+
+send_lmp_sres_startenc_slave:
+58b3 c6908000 rtnmark0 mark_slave_in_rand_accepted 
+58b4 793f8021 set0 mark_slave_in_rand_accepted ,mark 
+58b5 70007c0f jam lmp_encryption_mode_req ,mem_lmo_opcode2 
+58b6 20600000 rtn 
+
+send_lmp_sres_256:
+58b7 2040742a call function_h4 
+58b8 2040744f call function_h5 
+58b9 18007e05 force 5 ,pdata 
+58ba 204058d9 call msg_send_lmp 
+58bb 6fe20918 fetch 4 ,memb 
+58bc e7e20005 istore 4 ,contw 
+58bd d84003a9 arg mem_sres_tid ,temp 
+58be 20405924 call special_tid_store 
+58bf 204058c6 call copy_aco_256 
+58c0 2040593e call check_localsm 
+58c1 2020d8ae branch send_lmp_sres_master ,true 
+58c2 7003ab01 jam done_encryp ,mem_wait_encryption 
+58c3 6fe08877 fetch 1 ,mem_pairing_auth 
+58c4 207a0000 rtn blank 
+58c5 202058ae branch send_lmp_sres_master 
+
+copy_aco_256:
+58c6 6fe40910 fetch 8 ,mem_sp_calc_result_high 
+58c7 67e446b1 store 8 ,mem_ccm_iv 
+58c8 20600000 rtn 
+
+send_lmp_start_encryption:
+58c9 2040594d call generate_random_number 
+58ca 20406a4b call function_e3 
+58cb 18007e11 force 17 ,pdata 
+58cc 204058d9 call msg_send_lmp 
+58cd d8c00424 arg mem_random_number ,contr 
+58ce 20407c4c call memcpy16 
+58cf 202058ee branch send_lmp_tid 
+
+send_lmp_stop_encryption_req:
+58d0 18007e01 force 1 ,pdata 
+58d1 204058d9 call msg_send_lmp 
+58d2 202058ee branch send_lmp_tid 
+
+send_lmp_encryption_key_size_req:
+58d3 18007e02 force 2 ,pdata 
+58d4 204058d9 call msg_send_lmp 
+58d5 18007e10 force 16 ,pdata 
+58d6 e7e08005 istore 1 ,contw 
+58d7 67e08054 store 1 ,mem_key_size 
+58d8 202058ee branch send_lmp_tid 
+
+msg_send_lmp:
+58d9 1fe9fe00 lshift3 pdata ,pdata 
+58da 1fe1fe07 or_into 0x07 ,pdata 
+58db 67e0838a store 1 ,mem_lmo_header_length 
+58dc df200011 arg 17 ,loopcnt 
+58dd d8a0038c arg mem_lmo_payload ,contw 
+58de 20407c68 call clear_mem 
+58df d8a0038c arg mem_lmo_payload ,contw 
+58e0 20600000 rtn 
+
+send_lmpext:
+58e1 1fe1227f and pdata ,0x7f ,rega 
+58e2 7000487f jam lmp_escape ,mem_lmp_to_send 
+58e3 18e27e00 deposit queue 
+58e4 204058d9 call msg_send_lmp 
+58e5 1a227e00 deposit rega 
+58e6 e7e08005 istore 1 ,contw 
+58e7 20600000 rtn 
+
+send_lmp_follow:
+58e8 6fe08048 fetch 1 ,mem_lmp_to_send 
+58e9 1fe3fe00 lshift pdata ,pdata 
+58ea 6848804c fetcht 1 ,mem_state_map 
+58eb 284ffe01 isolate1 smap_lmptid ,temp 
+58ec 7920fe00 setflag true ,0 ,pdata 
+58ed 202058f8 branch send_lmp_exit 
+
+send_lmp_tid:
+58ee 6848804c fetcht 1 ,mem_state_map 
+58ef 18410401 and_into 1 ,temp 
+58f0 202058f4 branch send_lmp_end 
+
+send_lmp_reply:
+58f1 18000400 force 0 ,temp 
+58f2 202058f4 branch send_lmp_end 
+
+send_lmp_request:
+58f3 18000401 force 1 ,temp 
+
+send_lmp_end:
+58f4 6fe08048 fetch 1 ,mem_lmp_to_send 
+58f5 1fe3fe00 lshift pdata ,pdata 
+58f6 7934fe00 setflag master ,0 ,pdata 
+58f7 9842fe00 ixor temp ,pdata 
+
+send_lmp_exit:
+58f8 67e0838b store 1 ,mem_lmo_header_opcode 
+58f9 67e0c5fd store 1 ,mem_lmo_header_opcode_x 
+58fa 70004800 jam 0 ,mem_lmp_to_send 
+58fb 20405909 call lmo_fifo_process_lmo0empty 
+58fc 78347c00 enable user 
+58fd 20600000 rtn 
+
+lmo_fifo_check:
+58fe 6fe0807c fetch 1 ,mem_lmo_opcode2 
+58ff 207a0000 rtn blank 
+5900 20405903 call lmo_fifo_process 
+5901 6fe0807c fetch 1 ,mem_lmo_opcode2 
+5902 20600000 rtn 
+
+lmo_fifo_process:
+5903 470dc023 bpatchx patch23_3 ,mem_patch23 
+5904 6fe08048 fetch 1 ,mem_lmp_to_send 
+5905 203a5909 branch lmo_fifo_process_lmo0empty ,blank 
+5906 6fe08078 fetch 1 ,mem_lmo_opcode1 
+5907 247a0000 nrtn blank 
+5908 20205913 branch lmo_fifo_process_lmo2to1 
+
+lmo_fifo_process_lmo0empty:
+5909 6fe08078 fetch 1 ,mem_lmo_opcode1 
+590a 203a5919 branch lmo_fifo_process_lmo1_empty ,blank 
+590b 6fe18078 fetch 3 ,mem_lmo_opcode1 
+590c 67e18048 store 3 ,mem_lmp_to_send 
+590d 6848807b fetcht 1 ,mem_lmo_tid1 
+590e 6fe0804c fetch 1 ,mem_state_map 
+590f 793ffe01 set0 smap_lmptid ,pdata 
+5910 9841fe00 ior temp ,pdata 
+5911 67e0804c store 1 ,mem_state_map 
+5912 70007800 jam 0 ,mem_lmo_opcode1 
+
+lmo_fifo_process_lmo2to1:
+5913 6fe0807c fetch 1 ,mem_lmo_opcode2 
+5914 207a0000 rtn blank 
+5915 6fe2007c fetch 4 ,mem_lmo_opcode2 
+5916 67e20078 store 4 ,mem_lmo_opcode1 
+5917 70007c00 jam 0 ,mem_lmo_opcode2 
+5918 20600000 rtn 
+
+lmo_fifo_process_lmo1_empty:
+5919 6fe0807c fetch 1 ,mem_lmo_opcode2 
+591a 207a0000 rtn blank 
+591b 6fe1807c fetch 3 ,mem_lmo_opcode2 
+591c 67e18048 store 3 ,mem_lmp_to_send 
+591d 6848807f fetcht 1 ,mem_lmo_tid2 
+591e 6fe0804c fetch 1 ,mem_state_map 
+591f 793ffe01 set0 smap_lmptid ,pdata 
+5920 9841fe00 ior temp ,pdata 
+5921 67e0804c store 1 ,mem_state_map 
+5922 70007c00 jam 0 ,mem_lmo_opcode2 
+5923 20600000 rtn 
+
+special_tid_store:
+5924 470e4023 bpatchx patch23_4 ,mem_patch23 
+5925 6fe0804c fetch 1 ,mem_state_map 
+5926 1fe22600 copy pdata ,regc 
+5927 efe08002 ifetch 1 ,temp 
+5928 20405426 call pop_tid_follow 
+5929 204058e8 call send_lmp_follow 
+592a 1a627e00 copy regc ,pdata 
+592b 67e0804c store 1 ,mem_state_map 
+592c 20600000 rtn 
+
+tid_reply:
+592d 6848804c fetcht 1 ,mem_state_map 
+592e 793f8400 set0 smap_lmptidinit ,temp 
+592f 6048804c storet 1 ,mem_state_map 
+5930 20600000 rtn 
+
+tid_initiate:
+5931 6848804c fetcht 1 ,mem_state_map 
+5932 79200400 set1 smap_lmptidinit ,temp 
+5933 6048804c storet 1 ,mem_state_map 
+5934 20600000 rtn 
+
+tid_check:
+5935 7d34fe01 nsetflag master ,smap_lmptid ,pdata 
+5936 6848804c fetcht 1 ,mem_state_map 
+5937 9842fe00 ixor temp ,pdata 
+5938 2feffe01 isolate1 smap_lmptid ,pdata 
+5939 20600000 rtn 
+
+tid_set_reply:
+593a 6fe0804c fetch 1 ,mem_state_map 
+593b 7934fe01 setflag master ,smap_lmptid ,pdata 
+593c 67e0804c store 1 ,mem_state_map 
+593d 20600000 rtn 
+
+check_localsm:
+593e 6fe08876 fetch 1 ,mem_sp_localsm 
+593f 2fe0fe01 compare local_statemachine ,pdata ,0x7f 
+5940 20600000 rtn 
+
+setlocalsm_master:
+5941 6fe08876 fetch 1 ,mem_sp_localsm 
+5942 79207e07 set1 7 ,pdata 
+5943 67e08876 store 1 ,mem_sp_localsm 
+5944 20600000 rtn 
+
+setlocalsm_slave:
+5945 6fe08876 fetch 1 ,mem_sp_localsm 
+5946 793ffe07 set0 7 ,pdata 
+5947 67e08876 store 1 ,mem_sp_localsm 
+5948 20600000 rtn 
+
+check_localsm_master:
+5949 6fe08876 fetch 1 ,mem_sp_localsm 
+594a 2feffe07 isolate1 7 ,pdata 
+594b 67e08876 store 1 ,mem_sp_localsm 
+594c 20600000 rtn 
+
+generate_random_number:
+594d d8a00424 arg mem_random_number ,contw 
+
+generate_random:
+594e 18007210 force 16 ,loopcnt 
+
+generate_random_another:
+
+generate_random_loop:
+594f 180a7e00 random pdata 
+5950 e7e08005 istore 1 ,contw 
+5951 c200594f loop generate_random_another 
+5952 20600000 rtn 
+
+generate_linkkey:
+5953 20406a19 call function_e21 
+5954 da2041ce arg mem_link_key ,rega 
+5955 da400454 arg mem_input_store ,regb 
+5956 efe40011 ifetch 8 ,rega 
+5957 68488030 fetcht 1 ,mem_state 
+5958 7d3a0406 nsetflag blank ,state_combkey ,temp 
+5959 60488030 storet 1 ,mem_state 
+595a 1a220a00 copy rega ,contw 
+595b 20406b12 call xor16 
+595c 202009c6 branch generate_linkkey_continue 
+
+process_conn_sm:
+595d 470ec023 bpatchx patch23_5 ,mem_patch23 
+595e 204058fe call lmo_fifo_check 
+595f 247a0000 nrtn blank 
+
+process_conn_sm_continue:
+5960 6fe08055 fetch 1 ,mem_conn_sm 
+5961 207a0000 rtn blank 
+5962 c00259b1 beq conn_sm_send_conn_req ,host_create_conn_send_conn_req 
+5963 c002d9b7 beq conn_sm_wait_conn_accept ,host_create_conn_wait_accept 
+5964 c00159a8 beq conn_sm_send_features ,host_create_conn_send_features 
+5965 c001d9bf beq conn_sm_wait_features_res ,host_create_conn_waiting 
+5966 c00759ab beq conn_sm_send_switch ,host_create_conn_send_switch 
+5967 c00359db beq conn_sm_auth_pair ,host_create_conn_auth_pair 
+5968 c003d9f3 beq conn_sm_auth_pair_wait ,host_create_conn_auth_pair_wait 
+5969 c004d9f4 beq conn_sm_encrypt ,host_create_conn_encrypt 
+596a c00559fd beq conn_sm_encrypt_wait ,host_create_conn_encrypt_wait 
+596b c005da01 beq conn_sm_encrypt_wait_clear ,host_create_conn_encrypt_wait_clear 
+596c c00659c9 beq conn_sm_send_setup_complete ,host_create_conn_send_setup_complete 
+596d c006d9cc beq conn_sm_wait_setup_complete ,host_create_conn_wait_setup_complete 
+596e c007d9d2 beq conn_sm_detach_delay ,host_create_conn_master_detach 
+596f c009599b beq conn_sm_send_version ,host_create_conn_send_version 
+5970 c009d9bf beq conn_sm_wait_version ,host_create_conn_waiting 
+5971 c008599e beq conn_sm_wait_switch_after_host_connection ,host_creat_conn_wait_switch 
+5972 c00a5998 beq conn_sm_send_features_ext ,host_creat_conn_send_feat_ext 
+5973 c00ad9bf beq conn_sm_wait_features_ext ,host_create_conn_waiting 
+5974 c00b5992 beq conn_sm_pairing ,host_create_conn_pairing 
+5975 c00c5997 beq conn_sm_pairing_wait ,host_create_conn_pairing_wait 
+5976 c00bd98b beq conn_sm_auth ,host_create_conn_auth 
+5977 c00cd991 beq conn_sm_auth_wait ,host_create_conn_auth_wait 
+5978 c00d597c beq conn_sm_done ,host_create_conn_done 
+5979 c00dd986 beq conn_sm_wait_done ,host_create_conn_done_wait 
+597a 70005500 jam conn_sm_standby ,mem_conn_sm 
+597b 20600000 rtn 
+
+host_create_conn_done:
+597c 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+597d c4010000 rtnbit0 received_setup_complete 
+597e c4018000 rtnbit0 sent_setup_complete 
+597f 70005500 jam conn_sm_standby ,mem_conn_sm 
+5980 20405982 call host_conn_judge_encrypt 
+5981 202064af branch scheduler_start_upper_sm 
+
+host_conn_judge_encrypt:
+5982 6fe080bc fetch 1 ,mem_connection_options 
+5983 c4008000 rtnbit0 connection_encrypt 
+5984 7000550a jam conn_sm_encrypt_wait ,mem_conn_sm 
+5985 20600000 rtn 
+
+host_create_conn_done_wait:
+5986 d8e00007 arg enpt_delay_timer ,queue 
+5987 20407cb6 call timer_check 
+5988 247a0000 nrtn blank 
+5989 7000551a jam conn_sm_done ,mem_conn_sm 
+598a 20600000 rtn 
+
+host_create_conn_auth:
+598b 6fe080bc fetch 1 ,mem_connection_options 
+598c 793ffe00 set0 connection_auth ,pdata 
+598d 67e080bc store 1 ,mem_connection_options 
+598e 70005519 jam conn_sm_auth_wait ,mem_conn_sm 
+598f 70007c0b jam lmp_au_rand ,mem_lmo_opcode2 
+5990 20600000 rtn 
+
+host_create_conn_auth_wait:
+5991 20600000 rtn 
+
+host_create_conn_pairing:
+5992 6fe083a8 fetch 1 ,mem_pincode_state 
+5993 c1810000 rtnne pincode_state_pincode_ready 
+5994 20405a03 call host_auth 
+5995 70005518 jam conn_sm_pairing_wait ,mem_conn_sm 
+5996 20600000 rtn 
+
+host_create_conn_pairing_wait:
+5997 20600000 rtn 
+
+host_creat_conn_send_feat_ext:
+5998 70005515 jam conn_sm_wait_features_ext ,mem_conn_sm 
+5999 70007c83 jam lmp_ext_features_req ,mem_lmo_opcode2 
+599a 20600000 rtn 
+
+host_create_conn_send_version:
+599b 70005513 jam conn_sm_wait_version ,mem_conn_sm 
+599c 70007c25 jam lmp_version_req ,mem_lmo_opcode2 
+599d 20600000 rtn 
+
+host_creat_conn_wait_switch:
+599e 6fe0c649 fetch 1 ,mem_switch_flag 
+599f c1000000 rtneq switch_flag_init 
+59a0 c000d9a6 beq switch_flag_accept ,host_create_conn_switch_accept 
+59a1 d8e00006 arg switch_wait_timer ,queue 
+59a2 20407cb6 call timer_check 
+59a3 247a0000 nrtn blank 
+59a4 70464900 jam switch_flag_init ,mem_switch_flag 
+59a5 202059c0 branch host_create_conn_switch 
+
+host_create_conn_switch_accept:
+59a6 20748000 rtn master 
+59a7 202059db branch host_create_conn_auth_pair 
+
+host_create_conn_send_features:
+59a8 70005503 jam conn_sm_wait_features_res ,mem_conn_sm 
+59a9 70007c27 jam lmp_features_req ,mem_lmo_opcode2 
+59aa 20600000 rtn 
+
+host_create_conn_send_switch:
+59ab 70007c13 jam lmp_switch_req ,mem_lmo_opcode2 
+59ac 79200003 set1 mark_switch_initiated ,mark 
+59ad 70005505 jam conn_sm_wait_conn_accept ,mem_conn_sm 
+59ae 580001ff setarg 0x1ff 
+59af 67e103a6 store 2 ,mem_soft_timer 
+59b0 20600000 rtn 
+
+host_create_conn_send_conn_req:
+59b1 70005505 jam conn_sm_wait_conn_accept ,mem_conn_sm 
+59b2 580000ff setarg 0xff 
+59b3 67e103a6 store 2 ,mem_soft_timer 
+59b4 793f8022 set0 mark_reconn_recieve_switch ,mark 
+59b5 70007c33 jam lmp_host_connection_req ,mem_lmo_opcode2 
+59b6 202052ad branch init_lmp_reinit 
+
+host_create_conn_wait_accept:
+59b7 c6110000 rtnmark1 mark_reconn_recieve_switch 
+59b8 6fe103a6 fetch 2 ,mem_soft_timer 
+59b9 1fe0ffff increase -1 ,pdata 
+59ba 2022d9bd branch host_create_conn_resend ,zero 
+59bb 67e103a6 store 2 ,mem_soft_timer 
+59bc 20600000 rtn 
+
+host_create_conn_resend:
+59bd 7000550e jam conn_sm_send_switch ,mem_conn_sm 
+59be 20600000 rtn 
+
+host_create_conn_waiting:
+59bf 20600000 rtn 
+
+host_create_conn_switch:
+59c0 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+59c1 c4018000 rtnbit0 sent_setup_complete 
+59c2 c4010000 rtnbit0 received_setup_complete 
+59c3 6fe080bc fetch 1 ,mem_connection_options 
+59c4 793ffe02 set0 connection_switch ,pdata 
+59c5 67e080bc store 1 ,mem_connection_options 
+59c6 70007c13 jam lmp_switch_req ,mem_lmo_opcode2 
+59c7 70005510 jam conn_sm_wait_switch_after_host_connection ,mem_conn_sm 
+59c8 20600000 rtn 
+
+host_create_conn_send_setup_complete:
+59c9 7000550d jam conn_sm_wait_setup_complete ,mem_conn_sm 
+59ca 70007c31 jam lmp_setup_complete ,mem_lmo_opcode2 
+59cb 20600000 rtn 
+
+host_create_conn_wait_setup_complete:
+59cc 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+59cd c4010000 rtnbit0 received_setup_complete 
+59ce 70005500 jam conn_sm_standby ,mem_conn_sm 
+59cf 20600000 rtn 
+
+host_create_conn_wait_setup_complete_rtn:
+59d0 70005506 jam conn_sm_auth_pair ,mem_conn_sm 
+59d1 20600000 rtn 
+
+host_create_conn_master_detach:
+59d2 6fe103a6 fetch 2 ,mem_soft_timer 
+59d3 1fe0ffff increase -1 ,pdata 
+59d4 203a59d7 branch host_create_conn_send_detach ,blank 
+59d5 67e103a6 store 2 ,mem_soft_timer 
+59d6 20600000 rtn 
+
+host_create_conn_send_detach:
+59d7 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+59d8 70039e16 jam local_host ,mem_disconn_reason_send 
+59d9 70005500 jam 0 ,mem_conn_sm 
+59da 20600000 rtn 
+
+host_create_conn_auth_pair:
+59db 6fe080bc fetch 1 ,mem_connection_options 
+59dc c28159c0 bbit1 connection_switch ,host_create_conn_switch 
+59dd c28059e0 bbit1 connection_auth ,host_create_conn_auth_pair_true 
+
+host_create_conn_sm_done:
+59de 7000551a jam conn_sm_done ,mem_conn_sm 
+59df 20600000 rtn 
+
+host_create_conn_auth_pair_true:
+59e0 6fe0c1cd fetch 1 ,mem_link_key_exists 
+59e1 203a59ec branch host_create_conn_auth_pair_nokey ,blank 
+59e2 6fe083a5 fetch 1 ,mem_lmp_conn_state 
+59e3 c4018000 rtnbit0 sent_setup_complete 
+59e4 c4010000 rtnbit0 received_setup_complete 
+59e5 6fe203bc fetch 4 ,mem_aurand_send_delay_time 
+59e6 d8400064 arg 100 ,temp 
+59e7 98408400 iadd temp ,temp 
+59e8 1c427e00 copy clkn_bt ,pdata 
+59e9 98467c00 isub temp ,null 
+59ea 24610000 nrtn positive 
+59eb 2020598b branch host_create_conn_auth 
+
+host_create_conn_auth_pair_nokey:
+59ec 70005516 jam conn_sm_pairing ,mem_conn_sm 
+59ed 70479a04 jam 4 ,mem_pin_length 
+59ee 58003030 setarg 0x3030 
+59ef 67e1479b store 2 ,mem_pin 
+59f0 e7e10005 istore 2 ,contw 
+59f1 7003a802 jam pincode_state_pincode_ready ,mem_pincode_state 
+59f2 20205992 branch host_create_conn_pairing 
+
+host_create_conn_auth_pair_wait:
+59f3 20600000 rtn 
+
+host_create_conn_encrypt:
+59f4 6fe080bc fetch 1 ,mem_connection_options 
+59f5 c280d9f8 bbit1 connection_encrypt ,host_create_conn_encrypt_start 
+59f6 7000551a jam conn_sm_done ,mem_conn_sm 
+59f7 20600000 rtn 
+
+host_create_conn_encrypt_start:
+59f8 6fe080bc fetch 1 ,mem_connection_options 
+59f9 793ffe01 set0 connection_encrypt ,pdata 
+59fa 67e080bc store 1 ,mem_connection_options 
+59fb 70007c0f jam lmp_encryption_mode_req ,mem_lmo_opcode2 
+59fc 20600000 rtn 
+
+host_create_conn_encrypt_wait:
+59fd 6fe083ab fetch 1 ,mem_wait_encryption 
+59fe 207a0000 rtn blank 
+59ff 70005500 jam conn_sm_standby ,mem_conn_sm 
+5a00 202059f8 branch host_create_conn_encrypt_start 
+
+host_create_conn_encrypt_wait_clear:
+5a01 7000550c jam conn_sm_send_setup_complete ,mem_conn_sm 
+5a02 20600000 rtn 
+
+host_auth:
+5a03 6fe0804b fetch 1 ,mem_op 
+5a04 c2815a08 bbit1 op_inrand_req ,remote_auth 
+5a05 20405931 call tid_initiate 
+5a06 70007c08 jam lmp_in_rand ,mem_lmo_opcode2 
+5a07 20204ca3 branch cmd_exit 
+
+remote_auth:
+5a08 6fe0804b fetch 1 ,mem_op 
+5a09 793ffe02 set0 op_inrand_req ,pdata 
+5a0a 67e0804b store 1 ,mem_op 
+5a0b 2040560f call lmp_accept_inrand 
+5a0c 2040593a call tid_set_reply 
+5a0d 20204ca3 branch cmd_exit 
+
+pincode_reinit:
+5a0e 58000004 setarg 4 
+5a0f 67e0c79a store 1 ,mem_pin_length 
+5a10 58003030 setarg 0x3030 
+5a11 e7e10005 istore 2 ,contw 
+5a12 e7e10005 istore 2 ,contw 
+5a13 20600000 rtn 
+
+twspi_reset:
+5a14 470f4023 bpatchx patch23_6 ,mem_patch23 
+5a15 1fe17eff and_into 0xff ,pdata 
+5a16 1fe67c13 sub pdata ,19 ,null 
+5a17 24215a23 nbranch twspi_reset_ext ,positive 
+5a18 d8a08070 arg core_gpio_conf ,contw 
+
+twspi_reset_next:
+5a19 98a08a00 iadd contw ,contw 
+5a1a 18a22200 copy contw ,rega 
+5a1b d840003e arg gpcfg_output_low ,temp 
+5a1c e0408005 istoret 1 ,contw 
+5a1d 20405a26 call twspi_disable 
+5a1e 2000001e nop 30 
+5a1f 1a220a00 copy rega ,contw 
+5a20 d840003f arg gpcfg_output_high ,temp 
+5a21 e0408005 istoret 1 ,contw 
+5a22 20205a2a branch twspi_enable 
+
+twspi_reset_ext:
+5a23 d8a080e5 arg core_gpio_conf1 ,contw 
+5a24 1fe0ffec increase -20 ,pdata 
+5a25 20205a19 branch twspi_reset_next 
+
+twspi_disable:
+5a26 6ff08085 fetch 1 ,core_aes_en 
+5a27 1fe17efb and_into 0xfb ,pdata 
+5a28 67f08085 store 1 ,core_aes_en 
+5a29 20600000 rtn 
+
+twspi_enable:
+5a2a 6ff08085 fetch 1 ,core_aes_en 
+5a2b 1fe1fe04 or_into 0x04 ,pdata 
+5a2c 67f08085 store 1 ,core_aes_en 
+5a2d 20600000 rtn 
+
+twspi_write:
+5a2e 20205bae branch spid_write_reg 
+
+twspi_read:
+5a2f 20205bb5 branch spid_read_reg 
+
+aes_disable:
+5a30 6ff08085 fetch 1 ,core_aes_en 
+5a31 1fe17efd and_into 0xfd ,pdata 
+5a32 67f08085 store 1 ,core_aes_en 
+5a33 20600000 rtn 
+
+read_function_aes:
+5a34 24345a38 nbranch read_function ,user 
+5a35 6ff08085 fetch 1 ,core_aes_en 
+5a36 1fe1fe02 or_into 0x2 ,pdata 
+5a37 67f08085 store 1 ,core_aes_en 
+
+read_function:
+5a38 18427c00 copy temp ,null 
+5a39 2022da3b branch read_fuction_zero ,zero 
+5a3a 1a627a00 copy regc ,pc 
+
+read_fuction_zero:
+5a3b 2fcc0000 isolate0 0 ,null 
+5a3c 20205b1b branch set_ucode_status 
+
+get_block_header:
+5a3d 18000404 force 4 ,temp 
+
+get_block_header0:
+5a3e da2002eb arg mem_ucode_buf ,rega 
+5a3f 20405a30 call aes_disable 
+5a40 20405a38 call read_function 
+5a41 da2055aa arg 0x55aa ,rega 
+5a42 6fe102eb fetch 2 ,mem_ucode_buf 
+5a43 e8410006 ifetcht 2 ,contr 
+5a44 9a267c00 isub rega ,null 
+5a45 20600000 rtn 
+
+read_first_block:
+5a46 d8400002 arg 2 ,temp 
+5a47 da2002f1 arg mem_ucode_ptr ,rega 
+5a48 20405a38 call read_function 
+5a49 6fe102f1 fetch 2 ,mem_ucode_ptr 
+5a4a 67e102e4 store 2 ,mem_addr_mi 
+5a4b 20545a4d call get_iv ,user 
+5a4c 20600000 rtn 
+
+get_iv:
+5a4d d8400010 arg 16 ,temp 
+5a4e da2002f3 arg mem_ucode_keybuf ,rega 
+5a4f 20405a30 call aes_disable 
+5a50 20405a38 call read_function 
+
+set_iv:
+5a51 d8c002f3 arg mem_ucode_keybuf ,contr 
+5a52 df200010 arg 16 ,loopcnt 
+5a53 20406ce5 call aes_load_data 
+5a54 20406c6c call aes_init 
+5a55 20406d01 call aes_clear_data 
+5a56 20206c66 branch do_aes_cbc 
+
+load_storage:
+5a57 58000000 setarg 0 
+5a58 67e10985 store 2 ,mem_queue 
+5a59 7856fc00 disable match 
+5a5a 20405a3d call get_block_header 
+5a5b 24628000 nrtn zero 
+5a5c 70802380 jam 0x80 ,core_ucode_ctrl 
+5a5d 70802200 jam 0 ,core_ucode_hi 
+5a5e 70802400 jam 0 ,core_ucode_low 
+5a5f da208025 arg core_ucode_data ,rega 
+5a60 20405a34 call read_function_aes 
+5a61 70802300 jam 0x0 ,core_ucode_ctrl 
+
+load_storage_loop:
+5a62 d8400006 arg 6 ,temp 
+5a63 20405a3e call get_block_header0 
+5a64 2422da7e nbranch load_data_checksum_compare ,zero 
+5a65 efe10006 ifetch 2 ,contr 
+5a66 98002200 iforce rega 
+5a67 20405a38 call read_function 
+5a68 20405a75 call load_data_checksum_calc 
+5a69 20205a62 branch load_storage_loop 
+
+load_data_checksum:
+5a6a da20aa55 arg 0xaa55 ,rega 
+5a6b 6fe102eb fetch 2 ,mem_ucode_buf 
+5a6c 9a267c00 isub rega ,null 
+5a6d 24628000 nrtn zero 
+5a6e da2055aa arg 0x55aa ,rega 
+5a6f 6fe102ed fetch 2 ,mem_ucode_len 
+5a70 9a267c00 isub rega ,null 
+5a71 24628000 nrtn zero 
+5a72 6fe102ef fetch 2 ,mem_sched_addr 
+5a73 67e10970 store 2 ,mem_rega 
+5a74 20600000 rtn 
+
+load_data_checksum_calc:
+5a75 6fe10985 fetch 2 ,mem_queue 
+5a76 df200006 arg 6 ,loopcnt 
+5a77 d8c002eb arg mem_ucode_buf ,contr 
+5a78 20407da0 call cal_sum 
+5a79 6f2102ed fetchr loopcnt ,2 ,mem_ucode_len 
+5a7a 1a220c00 copy rega ,contr 
+5a7b 20407da0 call cal_sum 
+5a7c 67e10985 store 2 ,mem_queue 
+5a7d 20600000 rtn 
+
+load_data_checksum_compare:
+5a7e 20405a6a call load_data_checksum 
+5a7f 2022da62 branch load_storage_loop ,zero 
+5a80 6fe10970 fetch 2 ,mem_rega 
+5a81 68490985 fetcht 2 ,mem_queue 
+5a82 98467c00 isub temp ,null 
+5a83 24628000 nrtn zero 
+5a84 7836fc00 enable match 
+5a85 20600000 rtn 
+
+reload_eeprom:
+5a86 20407d44 call clean_mem 
+5a87 58001000 setarg 0x1000 
+5a88 67e102e4 store 2 ,mem_addr_mi 
+5a89 da605cd1 arg iicd_read_eep ,regc 
+5a8a df200002 arg 2 ,loopcnt 
+
+reload_eeprom_loop:
+5a8b 20405a3d call get_block_header 
+5a8c 24628000 nrtn zero 
+5a8d 6fe102e4 fetch 2 ,mem_addr_mi 
+5a8e 1ff0fe00 byteswap pdata ,pdata 
+5a8f 9840fe00 iadd temp ,pdata 
+5a90 1ff0fe00 byteswap pdata ,pdata 
+5a91 67e102e4 store 2 ,mem_addr_mi 
+5a92 c2005a8b loop reload_eeprom_loop 
+5a93 20205a62 branch load_storage_loop 
+
+loadcode:
+5a94 20407d44 call clean_mem 
+5a95 70805025 jam 0x25 ,core_clkoff 
+5a96 78547c00 disable user 
+5a97 58001fd0 setarg otp_offset_app_vdd_sel 
+5a98 da200a03 arg mem_tmp_buffer + otp_loadcode_offset_app_vdd_sel ,rega 
+5a99 d8400004 arg 4 ,temp 
+5a9a 20405dc7 call otpd_read_data 
+5a9b 20405b39 call app_read_efuse_app_vsel 
+5a9c 6fe08a04 fetch 1 ,mem_tmp_buffer + otp_loadcode_offset_device_lock 
+5a9d 203a5aa3 branch loadcode_read_ucode ,blank 
+5a9e 1ff18400 rshift4 pdata ,temp 
+5a9f 1fe17e0f and pdata ,0x0f ,pdata 
+5aa0 9842fe00 ixor temp ,pdata 
+5aa1 c087db19 bne 0x0f ,loadcode_error 
+5aa2 20405b3e call app_lpm_peripheral_lock_check 
+
+loadcode_read_ucode:
+5aa3 58000000 setarg otp_offset_ucode_flag 
+5aa4 da200a01 arg mem_tmp_buffer + otp_loadcode_offset_ucode_flag ,rega 
+5aa5 d8400002 arg 2 ,temp 
+5aa6 20405dc7 call otpd_read_data 
+5aa7 6fe10a01 fetch 2 ,mem_tmp_buffer + otp_loadcode_offset_ucode_flag 
+5aa8 c303dab3 bbit0 ucode_flag_enc ,loadcode_otp 
+5aa9 70805025 jam 0x25 ,core_clkoff 
+5aaa 58001ff0 setarg otp_offset_ucode_key 
+5aab da2002f3 arg mem_ucode_keybuf ,rega 
+5aac d8400010 arg 16 ,temp 
+5aad 20405dc7 call otpd_read_data 
+5aae 70800608 jam lock_otp ,core_misc_ctrl 
+5aaf 7920002b set1 mark_otp_encrypt ,mark 
+5ab0 d8c002f3 arg mem_ucode_keybuf ,contr 
+5ab1 20406cf1 call load_key 
+5ab2 78347c00 enable user 
+
+loadcode_otp:
+5ab3 7041e600 jam 0 ,mem_loadcode_times 
+
+loadcode_otp_loop:
+5ab4 20405b02 call loadcode_timeout 
+5ab5 24215b19 nbranch loadcode_error ,positive 
+5ab6 6fe10a01 fetch 2 ,mem_tmp_buffer + otp_loadcode_offset_ucode_flag 
+5ab7 1ff0fe00 byteswap pdata ,pdata 
+5ab8 d8400fff arg 0xfff ,temp 
+5ab9 98417e00 iand temp ,pdata 
+5aba 1fe3fe00 lshift pdata ,pdata 
+5abb 2022dac4 branch loadcode_iic ,zero 
+5abc 20405d7d call otp_set_addr 
+5abd da605dcc arg otpd_read_code ,regc 
+5abe 20545a4d call get_iv ,user 
+5abf 20405a57 call load_storage 
+5ac0 2436dab4 nbranch loadcode_otp_loop ,match 
+5ac1 6fe082e1 fetch 1 ,mem_ucode_status 
+5ac2 c3005ab4 bbit0 0 ,loadcode_otp_loop 
+5ac3 20405ad1 call run_otp_code 
+
+loadcode_iic:
+5ac4 20405d71 call otp_pwr_off 
+5ac5 7041e600 jam 0 ,mem_loadcode_times 
+
+loadcode_iic_loop:
+5ac6 6fe08a01 fetch 1 ,mem_tmp_buffer + otp_offset_ucode_flag 
+5ac7 c2835ae8 bbit1 ucode_flag_skip_eep ,loadcode_spi 
+5ac8 20405b02 call loadcode_timeout 
+5ac9 24215ad4 nbranch loadcode_iic_eeprom_2k ,positive 
+5aca 20405ae0 call iicd_load_gpio_init 
+5acb 20405cae call clear_eeprom_size_2k 
+5acc 20405b0d call loadcode_iic_by_eeprom 
+5acd 2436dac6 nbranch loadcode_iic_loop ,match 
+5ace 6fe082e1 fetch 1 ,mem_ucode_status 
+5acf c3005ac6 bbit0 0 ,loadcode_iic_loop 
+5ad0 20205af7 branch loadcode_hci 
+
+run_otp_code:
+5ad1 580001ff setarg 0x1ff 
+5ad2 dfa00000 arg 0 ,pc 
+5ad3 20600000 rtn 
+
+loadcode_iic_eeprom_2k:
+5ad4 7041e600 jam 0 ,mem_loadcode_times 
+
+loadcode_iic_eeprom_2k_loop:
+5ad5 6fe08a01 fetch 1 ,mem_tmp_buffer + otp_offset_ucode_flag 
+5ad6 c2835ae8 bbit1 ucode_flag_skip_eep ,loadcode_spi 
+5ad7 20405b02 call loadcode_timeout 
+5ad8 24215ae8 nbranch loadcode_spi ,positive 
+5ad9 20405ae0 call iicd_load_gpio_init 
+5ada 20405cab call set_eeprom_size_2k 
+5adb 20405b0d call loadcode_iic_by_eeprom 
+5adc 2436dad5 nbranch loadcode_iic_eeprom_2k_loop ,match 
+5add 6fe082e1 fetch 1 ,mem_ucode_status 
+5ade c3005ad5 bbit0 0 ,loadcode_iic_eeprom_2k_loop 
+5adf 20205af7 branch loadcode_hci 
+
+iicd_load_gpio_init:
+5ae0 6fe0c4c8 fetch 1 ,mem_eeprom_sda_gpio 
+5ae1 6848c4c7 fetcht 1 ,mem_eeprom_scl_gpio 
+5ae2 98467c00 isub temp ,null 
+5ae3 2422dc94 nbranch iicd_read_init_pin ,zero 
+
+iicd_load_default_gpio:
+5ae4 7044c602 jam 2 ,mem_eeprom_wp_gpio 
+5ae5 7044c701 jam 1 ,mem_eeprom_scl_gpio 
+5ae6 7044c800 jam 0 ,mem_eeprom_sda_gpio 
+5ae7 20205c94 branch iicd_read_init_pin 
+
+loadcode_spi:
+5ae8 7041e600 jam 0 ,mem_loadcode_times 
+
+loadcode_spi_loop:
+5ae9 6fe08a01 fetch 1 ,mem_tmp_buffer + otp_offset_ucode_flag 
+5aea c282daf7 bbit1 ucode_flag_skip_flash ,loadcode_hci 
+5aeb 20405b02 call loadcode_timeout 
+5aec 24215af7 nbranch loadcode_hci ,positive 
+5aed 20405bff call spid_init_flash 
+5aee 200000c8 nop 200 
+5aef 20405c0d call spid_flash_release_form_powerdown 
+5af0 20000064 nop 100 
+5af1 da605c41 arg spid_load_flash ,regc 
+5af2 20405a46 call read_first_block 
+5af3 20405a57 call load_storage 
+5af4 2436dae9 nbranch loadcode_spi_loop ,match 
+5af5 6fe082e1 fetch 1 ,mem_ucode_status 
+5af6 c3005ae9 bbit0 0 ,loadcode_spi_loop 
+
+loadcode_hci:
+5af7 6fe08a01 fetch 1 ,mem_tmp_buffer + otp_offset_ucode_flag 
+5af8 c3025afb bbit0 ucode_flag_hci ,clear_key_buf 
+5af9 20405afb call clear_key_buf 
+5afa 20204be1 branch hci_init 
+
+clear_key_buf:
+5afb 58000000 setarg 0 
+5afc 67e402f3 store 8 ,mem_ucode_keybuf 
+5afd e7e40005 istore 8 ,contw 
+5afe 18007004 force regidx_key ,regext_index 
+5aff 20406d02 call aes_clear 
+5b00 70805021 jam 0x21 ,core_clkoff 
+5b01 20600000 rtn 
+
+loadcode_timeout:
+5b02 20405b08 call loadcode_error_delay 
+5b03 6fe0c1e6 fetch 1 ,mem_loadcode_times 
+5b04 1fe0fe01 increase 1 ,pdata 
+5b05 1fe67c03 sub pdata ,3 ,null 
+5b06 67e0c1e6 store 1 ,mem_loadcode_times 
+5b07 20600000 rtn 
+
+loadcode_error_delay:
+5b08 6fe0c1e6 fetch 1 ,mem_loadcode_times 
+5b09 207a0000 rtn blank 
+5b0a 6fe08a06 fetch 1 ,mem_tmp_buffer + otp_loadcode_offset_loadcode_delay 
+5b0b 207a0000 rtn blank 
+5b0c 20207c56 branch delay_50ms 
+
+loadcode_iic_by_eeprom:
+5b0d 58000000 setarg 0x0 
+5b0e 67e102e4 store 2 ,mem_addr_mi 
+5b0f da605cd1 arg iicd_read_eep ,regc 
+5b10 20405c7d call iic_init_600khz 
+5b11 20405a46 call read_first_block 
+5b12 20205a57 branch load_storage 
+
+loadcode_check_times:
+5b13 6fe0c1e6 fetch 1 ,mem_loadcode_times 
+5b14 1fe0fe01 increase 1 ,pdata 
+5b15 1fe67c03 sub pdata ,3 ,null 
+5b16 24215b19 nbranch loadcode_error ,positive 
+5b17 67e0c1e6 store 1 ,mem_loadcode_times 
+5b18 20600000 rtn 
+
+loadcode_error:
+5b19 20405afb call clear_key_buf 
+5b1a 20205b7f branch app_lpm_mpu_lock_br_ble 
+
+set_ucode_status:
+5b1b 6fe082e1 fetch 1 ,mem_ucode_status 
+5b1c 1fe3fe00 lshift pdata ,pdata 
+5b1d 7920fe00 setflag true ,0 ,pdata 
+5b1e 2a2c000f isolate0 15 ,rega 
+5b1f 20608000 rtn true 
+5b20 67e082e1 store 1 ,mem_ucode_status 
+5b21 20600000 rtn 
+
+decrypt_code:
+5b22 6ff08085 fetch 1 ,core_aes_en 
+5b23 c4008000 rtnbit0 1 
+5b24 20205b28 branch decrypt_code_skip 
+
+decrypt_code_loop:
+5b25 6ff0812c fetch 1 ,core_dma_status 
+5b26 afefffff qisolate1 pdata 
+5b27 20608000 rtn true 
+
+decrypt_code_skip:
+5b28 6ff08108 fetch 1 ,core_misc_status 
+5b29 c300db25 bbit0 1 ,decrypt_code_loop 
+5b2a 20406c66 call do_aes_cbc 
+5b2b 20205b25 branch decrypt_code_loop 
+
+load_ucode:
+5b2c 6fe141a9 fetch 2 ,mem_patch_ptr 
+5b2d 207a0000 rtn blank 
+5b2e 70802380 jam 0x80 ,core_ucode_ctrl 
+5b2f 70802200 jam 0 ,core_ucode_hi 
+5b30 70802400 jam 0 ,core_ucode_low 
+5b31 684941ab fetcht 2 ,mem_patch_len 
+5b32 184bf200 lshift2 temp ,loopcnt 
+5b33 98000c00 iforce contr 
+
+load_ucode_loop:
+5b34 efe08006 ifetch 1 ,contr 
+5b35 67f08025 store 1 ,core_ucode_data 
+5b36 c2005b34 loop load_ucode_loop 
+5b37 70802300 jam 0x0 ,core_ucode_ctrl 
+5b38 20600000 rtn 
+
+app_read_efuse_app_vsel:
+5b39 6fe08a03 fetch 1 ,mem_tmp_buffer + otp_loadcode_offset_app_vdd_sel 
+5b3a 243a5b3c nbranch app_set_app_vsel ,blank 
+5b3b 58000004 setarg 0x04 
+
+app_set_app_vsel:
+5b3c 67e0c182 store 1 ,mem_lpm_ctrl3_app_vsel 
+5b3d 20201535 branch lpm_write_sel_vdd 
+
+app_lpm_peripheral_lock_check:
+5b3e 6fe08a04 fetch 1 ,mem_tmp_buffer + otp_loadcode_offset_device_lock 
+5b3f 1fe17e0f and pdata ,0x0f ,pdata 
+5b40 c0055b4b beq dvc_op_module ,app_lpm_peripheral_lock_module 
+5b41 c000db4b beq dvc_op_hci ,app_lpm_peripheral_lock_hci 
+5b42 c0025b4d beq dvc_op_dongle ,app_lpm_peripheral_lock_dongle 
+5b43 c0045b51 beq dvc_op_mouse ,app_lpm_peripheral_lock_mouse 
+5b44 c004db55 beq dvc_op_shutter ,app_lpm_peripheral_lock_shutter 
+5b45 c005db59 beq dvc_op_ali_mesh ,app_lpm_peripheral_lock_mesh 
+5b46 c0065b4b beq dvc_op_hci_boot ,app_lpm_peripheral_lock_hciboot 
+5b47 c006db5b beq dvc_op_remote_car ,app_lpm_peripheral_lock_remote_car 
+5b48 c0075b5f beq dvc_op_car ,app_lpm_peripheral_lock_car 
+5b49 c007db63 beq dvc_op_antilost ,app_lpm_peripheral_lock_antilost 
+5b4a 20600000 rtn 
+
+app_lpm_peripheral_lock_module:
+
+app_lpm_peripheral_lock_hci:
+
+app_lpm_peripheral_lock_hciboot:
+5b4b 20405b67 call app_lpm_mpu_lock_mesh 
+5b4c 20205b89 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_dongle:
+5b4d dfe037e5 arg module_init ,pdata 
+5b4e d8404b2d arg ui_soft_switch_power_off ,temp 
+5b4f 20405b6c call app_mpu_s0_lock 
+5b50 20205b89 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_mouse:
+5b51 dfe0328c arg antilost_init ,pdata 
+5b52 d8403c42 arg module_set_state ,temp 
+5b53 20405b6c call app_mpu_s0_lock 
+5b54 20205b89 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_shutter:
+5b55 dfe0328c arg antilost_init ,pdata 
+5b56 d84049b8 arg remote_car_moto_data_enable_user ,temp 
+5b57 20405b6c call app_mpu_s0_lock 
+5b58 20205b89 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_mesh:
+5b59 20405b70 call app_lpm_mpu_lock_app 
+5b5a 20205b89 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_remote_car:
+5b5b dfe0328c arg antilost_init ,pdata 
+5b5c d84048cc arg mouse_low_voltage_led_no_enter_lpm_blink ,temp 
+5b5d 20405b6c call app_mpu_s0_lock 
+5b5e 20205b89 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_car:
+5b5f dfe0366d arg dongle_init ,pdata 
+5b60 d8404b2d arg ui_soft_switch_power_off ,temp 
+5b61 20405b6c call app_mpu_s0_lock 
+5b62 20205b89 branch lpm_write_lock 
+
+app_lpm_peripheral_lock_antilost:
+5b63 dfe03431 arg car_init ,pdata 
+5b64 d8404b2d arg ui_soft_switch_power_off ,temp 
+5b65 20405b6c call app_mpu_s0_lock 
+5b66 20205b89 branch lpm_write_lock 
+
+app_lpm_mpu_lock_mesh:
+5b67 dfe02715 arg ali_mesh_access_layer_resolve_message ,pdata 
+5b68 d840312b arg ali_mesh_upper_transport_layer_clear_tx_buffer ,temp 
+5b69 20205b6c branch app_mpu_s0_lock 
+
+app_lpm_mpu_lock_module:
+5b6a dfe037e5 arg module_init ,pdata 
+5b6b d8403c42 arg module_set_state ,temp 
+
+app_mpu_s0_lock:
+5b6c 18500400 lshift16 temp ,temp 
+5b6d 9841fe00 ior temp ,pdata 
+5b6e 67f2004c store 4 ,core_lpm_reg 
+5b6f 20205ba0 branch lpm_write2_mpu_s0 
+
+app_lpm_mpu_lock_app:
+5b70 dfe0328c arg antilost_init ,pdata 
+5b71 d8404b2d arg ui_soft_switch_power_off ,temp 
+5b72 20205b6c branch app_mpu_s0_lock 
+
+app_lpm_mpu_lock_br:
+5b73 dfe052b1 arg parse_lmp ,pdata 
+5b74 d8405a08 arg remote_auth ,temp 
+5b75 20205b78 branch app_mpu_s1_lock 
+
+app_lpm_mpu_lock_ble:
+5b76 dfe01c5e arg le_parse_att ,pdata 
+5b77 d840215d arg le_send_ll_one_lenth ,temp 
+
+app_mpu_s1_lock:
+5b78 18500400 lshift16 temp ,temp 
+5b79 9841fe00 ior temp ,pdata 
+5b7a 67f2004c store 4 ,core_lpm_reg 
+5b7b 20205ba2 branch lpm_write2_mpu_s1 
+
+app_lpm_mpu_lock_24g:
+5b7c dfe02162 arg g24_prep ,pdata 
+5b7d d8402713 arg power_ctrl_pac_succ_cnt_reinit ,temp 
+5b7e 20205b78 branch app_mpu_s1_lock 
+
+app_lpm_mpu_lock_br_ble:
+5b7f 20405b73 call app_lpm_mpu_lock_br 
+5b80 dfe01c5e arg le_parse_att ,pdata 
+5b81 d840215d arg le_send_ll_one_lenth ,temp 
+5b82 20205b6c branch app_mpu_s0_lock 
+
+app_lpm_mpu_mode_lock:
+5b83 6fe08a05 fetch 1 ,mem_tmp_buffer + otp_loadcode_offset_peripherals_lock 
+5b84 1fe17ec0 and pdata ,0xc0 ,pdata 
+5b85 c0605b7f beq 0xc0 ,app_lpm_mpu_lock_br_ble 
+5b86 c2835b76 bbit1 otp_le_lock_bit ,app_lpm_mpu_lock_ble 
+5b87 c283db73 bbit1 otp_br_lock_bit ,app_lpm_mpu_lock_br 
+5b88 20600000 rtn 
+
+lpm_write_lock:
+5b89 20405b83 call app_lpm_mpu_mode_lock 
+5b8a 6fe08a05 fetch 1 ,mem_tmp_buffer + otp_loadcode_offset_peripherals_lock 
+5b8b 1fe1221f and pdata ,0x1f ,rega 
+5b8c 6fe08a01 fetch 1 ,mem_tmp_buffer + otp_loadcode_offset_ucode_flag 
+5b8d 1fe17e0f and pdata ,0x0f ,pdata 
+5b8e 68488a04 fetcht 1 ,mem_tmp_buffer + otp_loadcode_offset_device_lock 
+5b8f 1841040f and temp ,0x0f ,temp 
+5b90 18520400 lshift4 temp ,temp 
+5b91 9841fe00 ior temp ,pdata 
+5b92 1a2d2200 lshift8 rega ,rega 
+5b93 9a21fe00 ior rega ,pdata 
+5b94 79207e0d set1 lpmreg_rom_lock_bit ,pdata 
+5b95 79207e0e set1 lpmreg_ice_mode_bit ,pdata 
+5b96 67f2004c store 4 ,core_lpm_reg 
+5b97 20405b9a call lpm_write2_ctrl_option 
+5b98 70801108 jam 8 ,core_encrypt 
+5b99 20600000 rtn 
+
+lpm_write2_ctrl_option:
+5b9a 58000002 setarg lpmreg2_sel_option 
+
+lpm_write2:
+5b9b 37d98200 until null ,lpo_edge 
+5b9c 67f08012 store 1 ,core_lpm_wr2 
+5b9d 37d98200 until null ,lpo_edge 
+5b9e 37d98200 until null ,lpo_edge 
+5b9f 20600000 rtn 
+
+lpm_write2_mpu_s0:
+5ba0 58000004 setarg lpmreg2_sel_mpu_s0 
+5ba1 20205b9b branch lpm_write2 
+
+lpm_write2_mpu_s1:
+5ba2 58000008 setarg lpmreg2_sel_mpu_s1 
+5ba3 20205b9b branch lpm_write2 
+
+spid_init:
+5ba4 470fc023 bpatchx patch23_7 ,mem_patch23 
+
+spid_init_common:
+5ba5 6fe0c489 fetch 1 ,mem_spi_init_clk 
+5ba6 67f08086 store 1 ,core_spid_ctrl 
+5ba7 6fe0c48a fetch 1 ,mem_spi_init_delay_time 
+5ba8 67f08087 store 1 ,core_spid_delay 
+5ba9 580002e2 setarg mem_spid_tbuf 
+5baa 67f1008a store 2 ,core_spid_txaddr 
+5bab 580002e7 setarg mem_spid_rbuf 
+5bac 67f1008c store 2 ,core_spid_rxaddr 
+5bad 20205a26 branch twspi_disable 
+
+spid_write_reg:
+5bae 79207e07 set1 7 ,pdata 
+5baf 67e102e2 store 2 ,mem_spid_tbuf 
+5bb0 47104024 bpatchx patch24_0 ,mem_patch24 
+5bb1 70808802 jam 2 ,core_spid_txlen 
+5bb2 70808e00 jam 0 ,core_spid_rxlen 
+5bb3 70800602 jam spid_start ,core_misc_ctrl 
+5bb4 20205bbe branch wait_spid_done 
+
+spid_read_reg:
+5bb5 18000401 force 1 ,temp 
+
+spid_read_regs:
+5bb6 67e082e2 store 1 ,mem_spid_tbuf 
+5bb7 4710c024 bpatchx patch24_1 ,mem_patch24 
+5bb8 70808801 jam 1 ,core_spid_txlen 
+5bb9 6059008e storet 2 ,core_spid_rxlen 
+5bba 70800602 jam spid_start ,core_misc_ctrl 
+5bbb 20405bbe call wait_spid_done 
+5bbc 6fe082e7 fetch 1 ,mem_spid_rbuf 
+5bbd 20600000 rtn 
+
+wait_spid_done:
+5bbe 6fe140dd fetch 2 ,mem_afh_error_total 
+5bbf 1fe0fe01 increase 1 ,pdata 
+5bc0 67e140dd store 2 ,mem_afh_error_total 
+5bc1 6ff0812c fetch 1 ,core_dma_status 
+5bc2 c301dbbe bbit0 spid_done ,wait_spid_done 
+5bc3 20600000 rtn 
+
+flash_write:
+5bc4 78547c00 disable user 
+5bc5 1fe22400 copy pdata ,regb 
+5bc6 6fe0c4b1 fetch 1 ,mem_spi_write_flash_sm 
+5bc7 c1800000 rtnne flash_sm_no_buys 
+5bc8 78347c00 enable user 
+5bc9 1a427e00 copy regb ,pdata 
+5bca 20205bd2 branch spid_flash_write_start 
+
+flash_write_spi_sm_timer:
+5bcb 6fe0c4b1 fetch 1 ,mem_spi_write_flash_sm 
+5bcc c000dbd2 beq flash_sm_start ,spid_flash_write_start 
+5bcd c0015bd8 beq flash_sm_erase_sector ,spid_flash_erase_sector 
+5bce c001dbe0 beq flash_sm_wait_erase_sector ,spid_flash_wait_erase_sector 
+5bcf c0025be4 beq flash_sm_write_data ,spid_flash_write_data 
+5bd0 c002dbea beq flash_sm_wait_write_data ,spid_flash_wait_write_data 
+5bd1 20600000 rtn 
+
+spid_flash_write_start:
+5bd2 67e1c4aa store 3 ,mem_spi_write_addr 
+5bd3 1a227e00 copy rega ,pdata 
+5bd4 67e144ad store 2 ,mem_spi_write_ptr 
+5bd5 604944af storet 2 ,mem_spi_write_len 
+5bd6 7044b102 jam flash_sm_erase_sector ,mem_spi_write_flash_sm 
+5bd7 20205bff branch spid_init_flash 
+
+spid_flash_erase_sector:
+5bd8 20405bff call spid_init_flash 
+5bd9 7044b103 jam flash_sm_wait_erase_sector ,mem_spi_write_flash_sm 
+5bda 20405c04 call spid_unlock_flash 
+5bdb da2002e2 arg mem_spid_tbuf ,rega 
+5bdc 70808804 jam 4 ,core_spid_txlen 
+5bdd 6fe1c4aa fetch 3 ,mem_spi_write_addr 
+5bde d8400020 arg flash_command_sector_erase ,temp 
+5bdf 20205c15 branch spid_write_flash_common 
+
+spid_flash_wait_erase_sector:
+5be0 20405bff call spid_init_flash 
+5be1 20405c38 call wait_spid_flash_done 
+5be2 7044b104 jam flash_sm_write_data ,mem_spi_write_flash_sm 
+5be3 20600000 rtn 
+
+spid_flash_write_data:
+5be4 20405bff call spid_init_flash 
+5be5 7044b105 jam flash_sm_wait_write_data ,mem_spi_write_flash_sm 
+5be6 20405c04 call spid_unlock_flash 
+5be7 20405bf7 call spid_flash_data_preserve 
+5be8 20405c11 call spid_write_flash 
+5be9 20205bf2 branch spid_flash_data_recover 
+
+spid_flash_wait_write_data:
+5bea 20405bff call spid_init_flash 
+5beb 20405c04 call spid_unlock_flash 
+5bec 58000005 setarg flash_read_satus 
+5bed 20405bb5 call spid_read_reg 
+5bee c3800000 rtnbit1 flash_status_wip 
+5bef 7044b100 jam flash_sm_no_buys ,mem_spi_write_flash_sm 
+5bf0 6fe14476 fetch 2 ,mem_cb_spi_flash_write_complate 
+5bf1 20207d47 branch callback_func 
+
+spid_flash_data_recover:
+5bf2 6fe20964 fetch 4 ,mem_temp 
+5bf3 684944ad fetcht 2 ,mem_spi_write_ptr 
+
+spid_flash_data_recover_comm:
+5bf4 184085fc increase -4 ,temp 
+5bf5 e7e20002 istore 4 ,temp 
+5bf6 20600000 rtn 
+
+spid_flash_data_preserve:
+5bf7 684944ad fetcht 2 ,mem_spi_write_ptr 
+5bf8 18422200 copy temp ,rega 
+5bf9 184085fc increase -4 ,temp 
+5bfa efe20002 ifetch 4 ,temp 
+5bfb 67e20964 store 4 ,mem_temp 
+5bfc 684944af fetcht 2 ,mem_spi_write_len 
+5bfd 6fe1c4aa fetch 3 ,mem_spi_write_addr 
+5bfe 20600000 rtn 
+
+spid_init_flash:
+5bff 20405c63 call spi_gpio_init 
+5c00 20405a26 call twspi_disable 
+5c01 58000000 setarg 0 
+5c02 67e202e2 store 4 ,mem_spid_tbuf 
+5c03 20600000 rtn 
+
+spid_unlock_flash:
+5c04 7002e206 jam flash_command_write_enable ,mem_spid_tbuf 
+
+spid_sendcmd_common:
+5c05 58000000 setarg 0 
+5c06 67f1008e store 2 ,core_spid_rxlen 
+5c07 58000001 setarg 1 
+5c08 67f10088 store 2 ,core_spid_txlen 
+5c09 580002e2 setarg mem_spid_tbuf 
+5c0a 67f1008a store 2 ,core_spid_txaddr 
+5c0b 70800602 jam spid_start ,core_misc_ctrl 
+5c0c 20205bbe branch wait_spid_done 
+
+spid_flash_release_form_powerdown:
+5c0d 7002e2ab jam flash_command_release_from_powerdown ,mem_spid_tbuf 
+5c0e 20205c05 branch spid_sendcmd_common 
+
+spid_flash_powerdown:
+5c0f 7002e2b9 jam flash_command_powerdown ,mem_spid_tbuf 
+5c10 20205c05 branch spid_sendcmd_common 
+
+spid_write_flash:
+5c11 18408404 increase 4 ,temp 
+5c12 60590088 storet 2 ,core_spid_txlen 
+5c13 d8400002 arg flash_command_write_data ,temp 
+5c14 1a20a3fc increase -4 ,rega 
+
+spid_write_flash_common:
+5c15 e0408011 istoret 1 ,rega 
+5c16 1ff10400 rshift16 pdata ,temp 
+5c17 e0408005 istoret 1 ,contw 
+5c18 1fec8400 rshift8 pdata ,temp 
+5c19 e0408005 istoret 1 ,contw 
+5c1a e7e08005 istore 1 ,contw 
+5c1b 1a227e00 deposit rega 
+5c1c 67f1008a store 2 ,core_spid_txaddr 
+5c1d 58000000 setarg 0 
+5c1e 67f1008e store 2 ,core_spid_rxlen 
+5c1f 70800602 jam spid_start ,core_misc_ctrl 
+5c20 20405bbe call wait_spid_done 
+5c21 20205c38 branch wait_spid_flash_done 
+
+spid_read_flash:
+5c22 6059008e storet 2 ,core_spid_rxlen 
+5c23 1ff10400 rshift16 pdata ,temp 
+5c24 604882e3 storet 1 ,mem_addr_hi 
+5c25 1fec8400 rshift8 pdata ,temp 
+5c26 604882e4 storet 1 ,mem_addr_mi 
+5c27 67e082e5 store 1 ,mem_addr_lo 
+5c28 58000004 setarg 4 
+5c29 67f10088 store 2 ,core_spid_txlen 
+5c2a 7002e203 jam flash_command_read_data ,mem_spid_tbuf 
+5c2b 580002e2 setarg mem_spid_tbuf 
+5c2c 67f1008a store 2 ,core_spid_txaddr 
+5c2d 1a227e00 deposit rega 
+5c2e 67f1008c store 2 ,core_spid_rxaddr 
+5c2f 6ff08086 fetch 1 ,core_spid_ctrl 
+5c30 2a2c000f isolate0 15 ,rega 
+5c31 7920fe06 setflag true ,6 ,pdata 
+5c32 67f08086 store 1 ,core_spid_ctrl 
+5c33 70800602 jam spid_start ,core_misc_ctrl 
+
+spid_read_flash_wait:
+5c34 6ff0812c fetch 1 ,core_dma_status 
+5c35 c283dc34 bbit1 7 ,spid_read_flash_wait 
+5c36 d8e00003 arg spid_done ,queue 
+5c37 20205bbe branch wait_spid_done 
+
+wait_spid_flash_done:
+5c38 580007d0 setarg 2000 
+5c39 2040137d call sleep 
+5c3a 20405c04 call spid_unlock_flash 
+5c3b 580002e7 setarg mem_spid_rbuf 
+5c3c 67f1008c store 2 ,core_spid_rxaddr 
+5c3d 58000005 setarg flash_read_satus 
+5c3e 20405bb5 call spid_read_reg 
+5c3f c2805c38 bbit1 flash_status_wip ,wait_spid_flash_done 
+5c40 20600000 rtn 
+
+spid_load_flash:
+5c41 6059008e storet 2 ,core_spid_rxlen 
+5c42 58000004 setarg 4 
+5c43 67f10088 store 2 ,core_spid_txlen 
+5c44 7002e203 jam 3 ,mem_spid_tbuf 
+5c45 580002e2 setarg mem_spid_tbuf 
+5c46 67f1008a store 2 ,core_spid_txaddr 
+5c47 1a227e00 deposit rega 
+5c48 67f1008c store 2 ,core_spid_rxaddr 
+5c49 6ff08086 fetch 1 ,core_spid_ctrl 
+5c4a 2a2c000f isolate0 15 ,rega 
+5c4b 7920fe06 setflag true ,6 ,pdata 
+5c4c 67f08086 store 1 ,core_spid_ctrl 
+5c4d 70800602 jam spid_start ,core_misc_ctrl 
+
+spi_load_flash_wait:
+5c4e 6ff0812c fetch 1 ,core_dma_status 
+5c4f c283dc4e bbit1 7 ,spi_load_flash_wait 
+5c50 d8e00003 arg spid_done ,queue 
+5c51 20405b22 call decrypt_code 
+5c52 20405bbe call wait_spid_done 
+5c53 2feffe02 isolate1 spid_crcok ,pdata 
+5c54 20405b1b call set_ucode_status 
+5c55 6fe082e3 fetch 1 ,mem_addr_hi 
+5c56 1ff02400 lshift16 pdata ,regb 
+5c57 6fe082e4 fetch 1 ,mem_addr_mi 
+5c58 1fed7e00 lshift8 pdata ,pdata 
+5c59 9a41a400 ior regb ,regb 
+5c5a 6fe082e5 fetch 1 ,mem_addr_lo 
+5c5b 9a41fe00 ior regb ,pdata 
+5c5c 9840fe00 iadd temp ,pdata 
+5c5d 67e082e5 store 1 ,mem_addr_lo 
+5c5e 1fecfe00 rshift8 pdata ,pdata 
+5c5f 67e082e4 store 1 ,mem_addr_mi 
+5c60 1fecfe00 rshift8 pdata ,pdata 
+5c61 67e082e3 store 1 ,mem_addr_hi 
+5c62 20600000 rtn 
+
+spi_gpio_init:
+5c63 6fe0c4ba fetch 1 ,mem_spi_cs_gpio 
+5c64 6848c4bc fetcht 1 ,mem_spi_so_gpio 
+5c65 98467c00 isub temp ,null 
+5c66 2422dc68 nbranch spi_pin_set ,zero 
+5c67 20405c74 call spi_gpio_default_init 
+
+spi_pin_set:
+5c68 6fe0c4ba fetch 1 ,mem_spi_cs_gpio 
+5c69 d8400020 arg gpcfg_spid_ncs ,temp 
+5c6a 20405fb3 call gpio_config_function_int 
+5c6b 6fe0c4bd fetch 1 ,mem_spi_sclk_gpio 
+5c6c d8400021 arg gpcfg_spid_sck ,temp 
+5c6d 20405fb3 call gpio_config_function_int 
+5c6e 6fe0c4bb fetch 1 ,mem_spi_si_gpio 
+5c6f d8400022 arg gpcfg_spid_mosi ,temp 
+5c70 20405fb3 call gpio_config_function_int 
+5c71 6fe0c4bc fetch 1 ,mem_spi_so_gpio 
+5c72 d840001f arg gpcfg_spid_miso ,temp 
+5c73 20205fb3 branch gpio_config_function_int 
+
+spi_gpio_default_init:
+5c74 7044ba0f jam 15 ,mem_spi_cs_gpio 
+5c75 7044bb10 jam 16 ,mem_spi_si_gpio 
+5c76 7044bc12 jam 18 ,mem_spi_so_gpio 
+5c77 7044bd14 jam 20 ,mem_spi_sclk_gpio 
+5c78 7044be11 jam 17 ,mem_spi_wp_gpio 
+5c79 7044bf15 jam 21 ,mem_spi_hold_gpio 
+5c7a 20600000 rtn 
+
+soft_reset_chip:
+5c7b 70801001 jam 1 ,core_reset 
+5c7c 20600000 rtn 
+
+iic_init_600khz:
+5c7d 70809105 jam 5 ,core_iicd_scl_low 
+5c7e 70809207 jam 7 ,core_iicd_scl_high 
+5c7f 70809307 jam 7 ,core_iicd_start_setup 
+5c80 70809407 jam 7 ,core_iicd_start_hold 
+5c81 70809507 jam 7 ,core_iicd_stop_setup 
+5c82 70809605 jam 5 ,core_iicd_data_setup 
+5c83 70809700 jam 0 ,core_iicd_data_hold 
+5c84 20600000 rtn 
+
+iic_init_360khz:
+5c85 7080910c jam 12 ,core_iicd_scl_low 
+5c86 7080920d jam 13 ,core_iicd_scl_high 
+5c87 7080930d jam 13 ,core_iicd_start_setup 
+5c88 7080940d jam 13 ,core_iicd_start_hold 
+5c89 7080950d jam 13 ,core_iicd_stop_setup 
+5c8a 7080960c jam 12 ,core_iicd_data_setup 
+5c8b 70809700 jam 0 ,core_iicd_data_hold 
+5c8c 20600000 rtn 
+
+iicd_init_pin:
+5c8d 20405cc2 call iicd_eeprom_write_enable 
+
+iicd_init_pin_scl_sda:
+5c8e 6fe0c4c7 fetch 1 ,mem_eeprom_scl_gpio 
+5c8f d840006c arg gpcfg_iic_scl | gpcfg_pullup ,temp 
+5c90 20405fb3 call gpio_config_function_int 
+5c91 6fe0c4c8 fetch 1 ,mem_eeprom_sda_gpio 
+5c92 d840006d arg gpcfg_iic_sda | gpcfg_pullup ,temp 
+5c93 20205fb3 branch gpio_config_function_int 
+
+iicd_read_init_pin:
+5c94 20405cc9 call iicd_eeprom_write_disable 
+5c95 20205c8e branch iicd_init_pin_scl_sda 
+
+wait_iicd_done:
+5c96 6ff0812c fetch 1 ,core_dma_status 
+5c97 c302dc96 bbit0 iicd_done ,wait_iicd_done 
+5c98 20600000 rtn 
+
+iicd_read_data:
+5c99 67e082e6 store 1 ,mem_iicd_addr 
+5c9a 580002e6 setarg mem_iicd_addr 
+5c9b 67f1009a store 2 ,core_iicd_txaddr 
+5c9c 58000001 setarg 1 
+5c9d 67f10098 store 2 ,core_iicd_txlen 
+5c9e 6059009e storet 2 ,core_iicd_rxlen 
+5c9f 6231009c storer rega ,2 ,core_iicd_rxaddr 
+5ca0 70809001 jam 1 ,core_iicd_ctrl 
+5ca1 70800604 jam iicd_start ,core_misc_ctrl 
+5ca2 20205c96 branch wait_iicd_done 
+
+iic_write_data:
+5ca3 58000000 setarg 0 
+5ca4 67f1009e store 2 ,core_iicd_rxlen 
+5ca5 67f1009c store 2 ,core_iicd_rxaddr 
+5ca6 60590098 storet 2 ,core_iicd_txlen 
+5ca7 6231009a storer rega ,2 ,core_iicd_txaddr 
+5ca8 70809001 jam 1 ,core_iicd_ctrl 
+5ca9 70800604 jam iicd_start ,core_misc_ctrl 
+5caa 20205c96 branch wait_iicd_done 
+
+set_eeprom_size_2k:
+5cab 79200028 set1 mark_eeprom_size ,mark 
+5cac 70448808 jam 0x08 ,mem_eeprom_block_size 
+5cad 20600000 rtn 
+
+clear_eeprom_size_2k:
+5cae 793f8028 set0 mark_eeprom_size ,mark 
+5caf 70448820 jam 0x20 ,mem_eeprom_block_size 
+5cb0 20600000 rtn 
+
+iicd_read_eep_data_size_2k:
+5cb1 6fe0c47e fetch 1 ,mem_eeprom_base 
+5cb2 9a40fe00 iadd regb ,pdata 
+5cb3 67e082e4 store 1 ,mem_addr_mi 
+5cb4 20205cb8 branch iicd_read_eep_size_2k 
+
+iicd_read_eep_size_2k_lcadcode:
+5cb5 6fe102e4 fetch 2 ,mem_addr_mi 
+5cb6 1ff0fe00 byteswap pdata ,pdata 
+5cb7 67e082e4 store 1 ,mem_addr_mi 
+
+iicd_read_eep_size_2k:
+5cb8 58000003 setarg 3 
+5cb9 67f10098 store 2 ,core_iicd_txlen 
+5cba 7002e3a0 jam 0xa0 ,mem_iicd_tbuf 
+5cbb 7002e5a1 jam 0xa1 ,mem_iicd_tbuf + 2 
+5cbc 20205cd7 branch iicd_read_eep_common 
+
+iicd_write_protect_eep_data:
+5cbd 60490964 storet 2 ,mem_temp 
+5cbe 20405cc2 call iicd_eeprom_write_enable 
+5cbf 68490964 fetcht 2 ,mem_temp 
+5cc0 20405cf1 call iicd_write_eep_data 
+5cc1 20205cc9 branch iicd_eeprom_write_disable 
+
+iicd_eeprom_write_enable:
+5cc2 6fe0c4c6 fetch 1 ,mem_eeprom_wp_gpio 
+5cc3 c17f8000 rtneq gpio_disable 
+5cc4 c3035cc7 bbit0 6 ,iicd_wp_gpio_output_low 
+5cc5 580249f0 setarg 150000 
+5cc6 2040137d call sleep 
+
+iicd_wp_gpio_output_low:
+5cc7 6848c4c6 fetcht 1 ,mem_eeprom_wp_gpio 
+5cc8 20205f8d branch gpio_out_active 
+
+iicd_eeprom_write_disable:
+5cc9 6848c4c6 fetcht 1 ,mem_eeprom_wp_gpio 
+5cca 20205f89 branch gpio_out_inactive 
+
+iicd_read_eep_data:
+5ccb 47114024 bpatchx patch24_2 ,mem_patch24 
+5ccc c5145cb1 bmark1 mark_eeprom_size ,iicd_read_eep_data_size_2k 
+5ccd 6fe1447e fetch 2 ,mem_eeprom_base 
+5cce 9a40fe00 iadd regb ,pdata 
+5ccf 1ff0fe00 byteswap pdata ,pdata 
+5cd0 67e102e4 store 2 ,mem_addr_mi 
+
+iicd_read_eep:
+5cd1 4711c024 bpatchx patch24_3 ,mem_patch24 
+5cd2 c5145cb5 bmark1 mark_eeprom_size ,iicd_read_eep_size_2k_lcadcode 
+5cd3 58000004 setarg 4 
+5cd4 67f10098 store 2 ,core_iicd_txlen 
+5cd5 7002e3a0 jam 0xa0 ,mem_iicd_tbuf 
+5cd6 7002e6a1 jam 0xa1 ,mem_iicd_tbuf + 3 
+
+iicd_read_eep_common:
+5cd7 580002e3 setarg mem_iicd_tbuf 
+5cd8 67f1009a store 2 ,core_iicd_txaddr 
+5cd9 6059009e storet 2 ,core_iicd_rxlen 
+5cda 6231009c storer rega ,2 ,core_iicd_rxaddr 
+5cdb 58000002 setarg 2 
+5cdc 2a2c000f isolate0 15 ,rega 
+5cdd 7920fe00 setflag true ,0 ,pdata 
+5cde 67f08090 store 1 ,core_iicd_ctrl 
+5cdf 70800604 jam iicd_start ,core_misc_ctrl 
+5ce0 d8e00005 arg iicd_done ,queue 
+5ce1 20405b22 call decrypt_code 
+5ce2 20405c96 call wait_iicd_done 
+5ce3 2feffe04 isolate1 iicd_crcok ,pdata 
+5ce4 20405b1b call set_ucode_status 
+5ce5 c5145cec bmark1 mark_eeprom_size ,iicd_read_eep_load_code_size_2k 
+5ce6 6fe102e4 fetch 2 ,mem_addr_mi 
+5ce7 1ff0fe00 byteswap pdata ,pdata 
+5ce8 9840fe00 iadd temp ,pdata 
+5ce9 1ff0fe00 byteswap pdata ,pdata 
+5cea 67e102e4 store 2 ,mem_addr_mi 
+5ceb 20600000 rtn 
+
+iicd_read_eep_load_code_size_2k:
+5cec 6fe082e4 fetch 1 ,mem_addr_mi 
+5ced 9840fe00 iadd temp ,pdata 
+5cee 1ff0fe00 byteswap pdata ,pdata 
+5cef 67e102e4 store 2 ,mem_addr_mi 
+5cf0 20600000 rtn 
+
+iicd_write_eep_data:
+5cf1 6fe1447e fetch 2 ,mem_eeprom_base 
+5cf2 9a40fe00 iadd regb ,pdata 
+
+iicd_write_ota_data:
+5cf3 67e1095c store 2 ,mem_pdatatemp 
+5cf4 47124024 bpatchx patch24_4 ,mem_patch24 
+5cf5 60490964 storet 2 ,mem_temp 
+5cf6 6221097b storer rega ,2 ,mem_contr 
+
+iicd_write_eep_loop:
+5cf7 20405d06 call iicd_eep_transparency 
+5cf8 68490974 fetcht 2 ,mem_regb 
+5cf9 6a21097b fetchr rega ,2 ,mem_contr 
+5cfa 6fe1095c fetch 2 ,mem_pdatatemp 
+5cfb 20405d27 call iicd_write_eep 
+5cfc 6fe10974 fetch 2 ,mem_regb 
+5cfd 6849097b fetcht 2 ,mem_contr 
+5cfe 98408400 iadd temp ,temp 
+5cff 6049097b storet 2 ,mem_contr 
+5d00 6849095c fetcht 2 ,mem_pdatatemp 
+5d01 98408400 iadd temp ,temp 
+5d02 6049095c storet 2 ,mem_pdatatemp 
+5d03 6fe10964 fetch 2 ,mem_temp 
+5d04 243a5cf7 nbranch iicd_write_eep_loop ,blank 
+5d05 20600000 rtn 
+
+iicd_eep_transparency:
+5d06 4712c024 bpatchx patch24_5 ,mem_patch24 
+5d07 6fe0c488 fetch 1 ,mem_eeprom_block_size 
+5d08 1fe0ffff increase -1 ,pdata 
+5d09 6849095c fetcht 2 ,mem_pdatatemp 
+5d0a 9841fe00 ior temp ,pdata 
+5d0b 1fe0fe01 increase 1 ,pdata 
+5d0c 67e18978 store 3 ,mem_regc 
+5d0d 6fe10964 fetch 2 ,mem_temp 
+5d0e 9840fe00 iadd temp ,pdata 
+5d0f 68498978 fetcht 3 ,mem_regc 
+5d10 98467e00 isub temp ,pdata 
+5d11 24215d18 nbranch iicd_eep_deal_short_packet ,positive 
+5d12 67e10964 store 2 ,mem_temp 
+5d13 6fe18978 fetch 3 ,mem_regc 
+5d14 6849095c fetcht 2 ,mem_pdatatemp 
+5d15 98467e00 isub temp ,pdata 
+5d16 67e10974 store 2 ,mem_regb 
+5d17 20600000 rtn 
+
+iicd_eep_deal_short_packet:
+5d18 6fe10964 fetch 2 ,mem_temp 
+5d19 67e10974 store 2 ,mem_regb 
+5d1a 58000000 setarg 0 
+5d1b 67e10964 store 2 ,mem_temp 
+5d1c 20600000 rtn 
+
+iicd_write_eep_size_2k:
+5d1d 1a427e00 copy regb ,pdata 
+5d1e 18408402 increase 2 ,temp 
+5d1f 60590098 storet 2 ,core_iicd_txlen 
+5d20 1a20a3fe increase -2 ,rega 
+5d21 e8418011 ifetcht 3 ,rega 
+5d22 18422400 copy temp ,regb 
+5d23 d84000a0 arg 0xa0 ,temp 
+5d24 e0408011 istoret 1 ,rega 
+5d25 e7e08005 istore 1 ,contw 
+5d26 20205d34 branch iicd_write_eep_common 
+
+iicd_write_eep:
+5d27 1fe22400 copy pdata ,regb 
+5d28 47134024 bpatchx patch24_6 ,mem_patch24 
+5d29 c5145d1d bmark1 mark_eeprom_size ,iicd_write_eep_size_2k 
+5d2a 1a427e00 copy regb ,pdata 
+5d2b 18408403 increase 3 ,temp 
+5d2c 60590098 storet 2 ,core_iicd_txlen 
+5d2d 1a20a3fd increase -3 ,rega 
+5d2e e8418011 ifetcht 3 ,rega 
+5d2f 18422400 copy temp ,regb 
+5d30 d84000a0 arg 0xa0 ,temp 
+5d31 e0408011 istoret 1 ,rega 
+5d32 1ff0fe00 byteswap pdata ,pdata 
+5d33 e7e10005 istore 2 ,contw 
+
+iicd_write_eep_common:
+5d34 6231009a storer rega ,2 ,core_iicd_txaddr 
+5d35 58000000 setarg 0 
+5d36 67f1009e store 2 ,core_iicd_rxlen 
+5d37 70809001 jam 1 ,core_iicd_ctrl 
+5d38 70800604 jam iicd_start ,core_misc_ctrl 
+5d39 20405c96 call wait_iicd_done 
+5d3a e2418011 istorer regb ,3 ,rega 
+
+iic_check_eeprom_standby:
+5d3b 4713c024 bpatchx patch24_7 ,mem_patch24 
+5d3c 7002e600 jam 0 ,mem_iicd_tbuf + 3 
+
+iic_check_eeprom_standby_wait:
+5d3d 58000001 setarg 1 
+5d3e 67f10098 store 2 ,core_iicd_txlen 
+5d3f 7002e3a0 jam 0xa0 ,mem_iicd_tbuf 
+5d40 580002e3 setarg mem_iicd_tbuf 
+5d41 67f1009a store 2 ,core_iicd_txaddr 
+5d42 58000000 setarg 0 
+5d43 67f1009e store 2 ,core_iicd_rxlen 
+5d44 67f1009c store 2 ,core_iicd_rxaddr 
+5d45 58000003 setarg 3 
+5d46 67f08090 store 1 ,core_iicd_ctrl 
+5d47 70800604 jam iicd_start ,core_misc_ctrl 
+5d48 20405c96 call wait_iicd_done 
+5d49 6ff0812c fetch 1 ,core_dma_status 
+5d4a c4030000 rtnbit0 iicd_ack 
+5d4b 200005dc nop 1500 
+5d4c 6fe082e6 fetch 1 ,mem_iicd_tbuf + 3 
+5d4d 1fe0fe01 increase 1 ,pdata 
+5d4e 67e082e6 store 1 ,mem_iicd_tbuf + 3 
+5d4f 1fe67c28 sub pdata ,40 ,null 
+5d50 24610000 nrtn positive 
+5d51 20205d3d branch iic_check_eeprom_standby_wait 
+
+otp_prog_pwr_on:
+5d52 708aa004 jam 0x4 ,0x8aa0 
+5d53 708aa133 jam 0x33 ,0x8aa1 
+5d54 708aa201 jam 0x1 ,0x8aa2 
+5d55 20205d59 branch otp_pwr_on 
+
+otp_read_pwr_on:
+5d56 708aa00c jam 0xc ,0x8aa0 
+5d57 708aa1fb jam 0xfb ,0x8aa1 
+5d58 708aa203 jam 0x3 ,0x8aa2 
+
+otp_pwr_on:
+5d59 67e1096c store 2 ,mem_timeup 
+5d5a 708a01ff jam 0xff ,core_clkpll_ctrl1 
+5d5b 6ff08a0b fetch 1 ,core_rf_ldo_en1 
+5d5c 67e0896e store 1 ,mem_timeup + 2 
+5d5d 1fe1fe04 or_into 0x4 ,pdata 
+5d5e 67f08a0b store 1 ,core_rf_ldo_en1 
+5d5f 6ff08a13 fetch 1 ,core_rf_ldo_cfg7 
+5d60 67e0896f store 1 ,mem_timeup + 3 
+5d61 708a1311 jam 0x11 ,core_rf_ldo_cfg7 
+5d62 200003e8 nop 1000 
+5d63 6ff08a02 fetch 1 ,core_clkpll_ctrl2 
+5d64 1fe1fe01 or_into 0x1 ,pdata 
+5d65 67f08a02 store 1 ,core_clkpll_ctrl2 
+5d66 708a0003 jam 0x03 ,core_clkpll_ctrl0 
+5d67 6ff08aa0 fetch 1 ,0x8aa0 
+5d68 1fe1fed0 or_into 0xd0 ,pdata 
+5d69 67f08aa0 store 1 ,0x8aa0 
+5d6a 200003e8 nop 1000 
+5d6b 6ff08aa0 fetch 1 ,0x8aa0 
+5d6c 1fe1fe20 or_into 0x20 ,pdata 
+5d6d 67f08aa0 store 1 ,0x8aa0 
+5d6e 200003e8 nop 1000 
+5d6f 6fe1096c fetch 2 ,mem_timeup 
+5d70 20600000 rtn 
+
+otp_pwr_off:
+5d71 70804783 jam 0x83 ,core_otp_ctrl 
+5d72 708aa004 jam 0x4 ,0x8aa0 
+5d73 708aa143 jam 0x43 ,0x8aa1 
+5d74 708aa201 jam 0x1 ,0x8aa2 
+5d75 6ff08a02 fetch 1 ,core_clkpll_ctrl2 
+5d76 1fe17efe and_into 0xfe ,pdata 
+5d77 67f08a02 store 1 ,core_clkpll_ctrl2 
+5d78 6fe0896e fetch 1 ,mem_timeup + 2 
+5d79 67f08a0b store 1 ,core_rf_ldo_en1 
+5d7a 6fe0896f fetch 1 ,mem_timeup + 3 
+5d7b 67f08a13 store 1 ,core_rf_ldo_cfg7 
+5d7c 20600000 rtn 
+
+otp_set_addr:
+5d7d 1fe9fe00 lshift3 pdata ,pdata 
+5d7e 67f10045 store 2 ,core_otp_addr 
+5d7f 7080e200 jam 0 ,core_otpd_ctrl 
+5d80 7080dc00 jam 0 ,core_otp_din 
+5d81 20600000 rtn 
+
+otp_write:
+5d82 20405d52 call otp_prog_pwr_on 
+5d83 18427e00 copy temp ,pdata 
+5d84 20405d7d call otp_set_addr 
+5d85 20405db1 call otp_ce 
+
+otp_program:
+5d86 e8408011 ifetcht 1 ,rega 
+5d87 1a20a201 increase 1 ,rega 
+5d88 18000e00 force 0 ,queue 
+
+otp_program_bit:
+5d89 a84c0000 qisolate0 temp 
+5d8a 2020dda8 branch otp_skip_0 ,true 
+5d8b 6ff080dc fetch 1 ,core_otp_din 
+5d8c 79207e06 set1 6 ,pdata 
+5d8d 79207e07 set1 7 ,pdata 
+5d8e 67f080dc store 1 ,core_otp_din 
+5d8f 70804702 jam 0x02 ,core_otp_ctrl 
+5d90 70804782 jam 0x82 ,core_otp_ctrl 
+5d91 793ffe07 set0 7 ,pdata 
+5d92 67f080dc store 1 ,core_otp_din 
+5d93 7080478a jam 0x8a ,core_otp_ctrl 
+5d94 2000000b nop 11 
+5d95 708047ca jam 0xca ,core_otp_ctrl 
+5d96 20000021 nop 33 
+5d97 7080474a jam 0x4a ,core_otp_ctrl 
+5d98 2000002c nop 44 
+5d99 708047ca jam 0xca ,core_otp_ctrl 
+5d9a 20000016 nop 22 
+5d9b 7080478a jam 0x8a ,core_otp_ctrl 
+5d9c 20000021 nop 33 
+5d9d 70804782 jam 0x82 ,core_otp_ctrl 
+5d9e 20000001 nop 1 
+5d9f 70804792 jam 0x92 ,core_otp_ctrl 
+5da0 2000000a nop 10 
+5da1 708047b2 jam 0xb2 ,core_otp_ctrl 
+5da2 6ff08007 fetch 1 ,core_otp_rdata 
+5da3 70804792 jam 0x92 ,core_otp_ctrl 
+5da4 20000001 nop 1 
+5da5 70804782 jam 0x82 ,core_otp_ctrl 
+5da6 afec0000 qisolate0 pdata 
+5da7 2020dd89 branch otp_program_bit ,true 
+
+otp_skip_0:
+5da8 6ff10045 fetch 2 ,core_otp_addr 
+5da9 1fe0fe01 increase 1 ,pdata 
+5daa 67f10045 store 2 ,core_otp_addr 
+5dab 18e08e01 increase 1 ,queue 
+5dac 28e01e08 compare 8 ,queue ,0xf 
+5dad 2420dd89 nbranch otp_program_bit ,true 
+5dae c2005d86 loop otp_program 
+5daf 70804783 jam 0x83 ,core_otp_ctrl 
+5db0 20205d71 branch otp_pwr_off 
+
+otp_ce:
+5db1 70804783 jam 0x83 ,core_otp_ctrl 
+5db2 70804782 jam 0x82 ,core_otp_ctrl 
+5db3 2000000c nop 12 
+5db4 70804780 jam 0x80 ,core_otp_ctrl 
+5db5 70804782 jam 0x82 ,core_otp_ctrl 
+5db6 20000096 nop 150 
+5db7 20600000 rtn 
+
+otpd_read_init:
+5db8 20405db1 call otp_ce 
+5db9 708047a2 jam 0xa2 ,core_otp_ctrl 
+5dba 1a227e00 deposit rega 
+5dbb 67f100df store 2 ,core_otpd_addr 
+5dbc 605900e1 storet 2 ,core_otpd_len 
+5dbd 685880dc fetcht 1 ,core_otp_din 
+5dbe 2fec000f isolate0 15 ,pdata 
+5dbf 79208405 setflag true ,5 ,temp 
+5dc0 79200404 set1 4 ,temp 
+5dc1 605880dc storet 1 ,core_otp_din 
+5dc2 70800701 jam 1 ,core_otp_rdata 
+5dc3 20600000 rtn 
+
+otpd_wait_end:
+5dc4 6ff0812c fetch 1 ,core_dma_status 
+5dc5 c300ddc4 bbit0 otpd_done ,otpd_wait_end 
+5dc6 20600000 rtn 
+
+otpd_read_data:
+5dc7 20405d56 call otp_read_pwr_on 
+5dc8 20405d7d call otp_set_addr 
+5dc9 20405db8 call otpd_read_init 
+5dca 20405dc4 call otpd_wait_end 
+5dcb 20205d71 branch otp_pwr_off 
+
+otpd_read_code:
+5dcc 20405d56 call otp_read_pwr_on 
+5dcd 6ff10124 fetch 2 ,core_current_otp_addr 
+5dce 67f10045 store 2 ,core_otp_addr 
+5dcf 20405db8 call otpd_read_init 
+5dd0 d8e00001 arg otpd_done ,queue 
+5dd1 20405b22 call decrypt_code 
+5dd2 20405dc4 call otpd_wait_end 
+5dd3 2feffe00 isolate1 otpd_crcok ,pdata 
+5dd4 20405b1b call set_ucode_status 
+5dd5 20205d71 branch otp_pwr_off 
+
+uarta_init_dma_mem:
+5dd6 20407d92 call enable_user 
+5dd7 20205dda branch uart_init_dma_mem 
+
+uartb_init_dma_mem:
+5dd8 20407d94 call disable_user 
+5dd9 20205dda branch uart_init_dma_mem 
+
+uart_init_dma_mem:
+5dda 1ff10400 rshift16 pdata ,temp 
+5ddb 20545e0d call uarta_init_rx ,user 
+5ddc 24545e11 ncall uartb_init_rx ,user 
+5ddd 1fef7e00 rshift32 pdata ,pdata 
+5dde 1ff10400 rshift16 pdata ,temp 
+5ddf 20545e05 call uarta_init_tx ,user 
+5de0 24545e09 ncall uartb_init_tx ,user 
+5de1 24345de6 nbranch uartb_init_dma_turn_on_clk ,user 
+5de2 6ff10050 fetch 2 ,core_clkoff 
+5de3 793ffe0f set0 clock_off_uart ,pdata 
+5de4 67f10050 store 2 ,core_clkoff 
+5de5 20600000 rtn 
+
+uartb_init_dma_turn_on_clk:
+5de6 6ff10050 fetch 2 ,core_clkoff 
+5de7 793ffe0e set0 clock_off_uartb ,pdata 
+5de8 67f10050 store 2 ,core_clkoff 
+5de9 20600000 rtn 
+
+uarta_init_baud_rate:
+5dea 67f10052 store uart_baud_len ,core_uart_baud 
+5deb 20600000 rtn 
+
+uartb_init_baud_rate:
+5dec 67f10062 store uart_baud_len ,core_uartb_baud 
+5ded 20600000 rtn 
+
+uarta_calc_baud_rate_config:
+5dee 20405df2 call uart_calc_baud_rate_config 
+5def 20205dea branch uarta_init_baud_rate 
+
+uartb_calc_baud_rate_config:
+5df0 20405df2 call uart_calc_baud_rate_config 
+5df1 20205dec branch uartb_init_baud_rate 
+
+uart_calc_baud_rate_config:
+5df2 20405df7 call uart_calc_baud_rate_config_choice_uart_clock 
+5df3 9846fc00 idiv temp 
+5df4 20407d31 call wait_div_end 
+5df5 1807fe00 quotient pdata 
+5df6 20600000 rtn 
+
+uart_calc_baud_rate_config_choice_uart_clock:
+5df7 6ff08043 fetch 1 ,core_uart_clksel 
+5df8 c3005dfb bbit0 uart_clock_select_bit ,uart_calc_baud_rate_config_choice_uart_clock_crystal 
+5df9 5adc6c00 setarg uart_clock_freq_48m 
+5dfa 20600000 rtn 
+
+uart_calc_baud_rate_config_choice_uart_clock_crystal:
+5dfb 596e3600 setarg uart_clock_freq_24m 
+5dfc 20600000 rtn 
+
+uart_clock_select_main_freq_crystal:
+5dfd 6ff08043 fetch 1 ,core_uart_clksel 
+5dfe 1fe17efe and pdata ,uart_clock_select_crystal ,pdata 
+5dff 67f08043 store 1 ,core_uart_clksel 
+5e00 20600000 rtn 
+
+uart_clock_select_main_freq_dpll:
+5e01 6ff08043 fetch 1 ,core_uart_clksel 
+5e02 1fe1fe01 or pdata ,uart_clock_select_dpll ,pdata 
+5e03 67f08043 store 1 ,core_uart_clksel 
+5e04 20600000 rtn 
+
+uarta_init_tx:
+5e05 67f1005a store 2 ,core_uart_tsaddr 
+5e06 67f1005e store 2 ,core_uart_twptr 
+5e07 6059005c storet 2 ,core_uart_teaddr 
+5e08 20600000 rtn 
+
+uartb_init_tx:
+5e09 67f1006a store 2 ,core_uartb_tsaddr 
+5e0a 67f1006e store 2 ,core_uartb_twptr 
+5e0b 6059006c storet 2 ,core_uartb_teaddr 
+5e0c 20600000 rtn 
+
+uarta_init_rx:
+5e0d 67f10054 store 2 ,core_uart_rsaddr 
+5e0e 67f10058 store 2 ,core_uart_rrptr 
+5e0f 60590056 storet 2 ,core_uart_readdr 
+5e10 20600000 rtn 
+
+uartb_init_rx:
+5e11 67f10064 store 2 ,core_uartb_rsaddr 
+5e12 67f10068 store 2 ,core_uartb_rrptr 
+5e13 60590066 storet 2 ,core_uartb_readdr 
+5e14 20600000 rtn 
+
+uarta_prepare_tx:
+5e15 6951005a fetchr contus ,2 ,core_uart_tsaddr 
+5e16 6a11005c fetchr contue ,2 ,core_uart_teaddr 
+5e17 6871005e fetchr contu ,2 ,core_uart_twptr 
+5e18 20600000 rtn 
+
+uartb_prepare_tx:
+5e19 6951006a fetchr contus ,2 ,core_uartb_tsaddr 
+5e1a 6a11006c fetchr contue ,2 ,core_uartb_teaddr 
+5e1b 6871006e fetchr contu ,2 ,core_uartb_twptr 
+5e1c 20600000 rtn 
+
+uarta_prepare_rx:
+5e1d 69510054 fetchr contus ,2 ,core_uart_rsaddr 
+5e1e 6a110056 fetchr contue ,2 ,core_uart_readdr 
+5e1f 68710058 fetchr contu ,2 ,core_uart_rrptr 
+5e20 20600000 rtn 
+
+uartb_prepare_rx:
+5e21 69510064 fetchr contus ,2 ,core_uartb_rsaddr 
+5e22 6a110066 fetchr contue ,2 ,core_uartb_readdr 
+5e23 68710068 fetchr contu ,2 ,core_uartb_rrptr 
+5e24 20600000 rtn 
+
+uarta_send:
+5e25 6071005e storer contu ,2 ,core_uart_twptr 
+5e26 20600000 rtn 
+
+uartb_send:
+5e27 6071006e storer contu ,2 ,core_uartb_twptr 
+5e28 20600000 rtn 
+
+uarta_rxdone:
+5e29 60710058 storer contu ,2 ,core_uart_rrptr 
+5e2a 20600000 rtn 
+
+uartb_rxdone:
+5e2b 60710068 storer contu ,2 ,core_uartb_rrptr 
+5e2c 20600000 rtn 
+
+uarta_clear_current_rx:
+5e2d 20405e1d call uarta_prepare_rx 
+5e2e 6ff10112 fetch 2 ,core_uart_rxitems 
+5e2f 98608600 iadd contu ,contu 
+5e30 20205e29 branch uarta_rxdone 
+
+uartb_clear_current_rx:
+5e31 20405e21 call uartb_prepare_rx 
+5e32 6ff10158 fetch 2 ,core_uartb_rxitems 
+5e33 98608600 iadd contu ,contu 
+5e34 20205e2b branch uartb_rxdone 
+
+uarta_prepare_tx_register_push:
+5e35 20405e3d call uart_register_push 
+5e36 20205e15 branch uarta_prepare_tx 
+
+uartb_prepare_tx_register_push:
+5e37 20405e3d call uart_register_push 
+5e38 20205e19 branch uartb_prepare_tx 
+
+uarta_send_register_pop:
+5e39 20405e25 call uarta_send 
+5e3a 20205e41 branch uart_register_pop 
+
+uartb_send_register_pop:
+5e3b 20405e27 call uartb_send 
+5e3c 20205e41 branch uart_register_pop 
+
+uart_register_push:
+5e3d 60610983 storer contu ,2 ,mem_contu 
+5e3e 61410981 storer contus ,2 ,mem_contue 
+5e3f 6201097f storer contue ,2 ,mem_contus 
+5e40 20600000 rtn 
+
+uart_register_pop:
+5e41 68610983 fetchr contu ,2 ,mem_contu 
+5e42 69410981 fetchr contus ,2 ,mem_contue 
+5e43 6a01097f fetchr contue ,2 ,mem_contus 
+5e44 20600000 rtn 
+
+uart_copy_tx_bytes_fast:
+5e45 1f227e00 deposit loopcnt 
+5e46 207a0000 rtn blank 
+
+uart_copy_tx_bytes_fast_loop:
+5e47 1f20f3f8 increase -8 ,loopcnt 
+5e48 20415e53 call uart_tx_8_bytes ,positive 
+5e49 20628000 rtn zero 
+5e4a 20215e47 branch uart_copy_tx_bytes_fast_loop ,positive 
+5e4b 1f20f208 increase 8 ,loopcnt 
+
+uart_copy_tx_bytes_fast_loop_four:
+5e4c 1f20f3fc increase -4 ,loopcnt 
+5e4d 20415e56 call uart_tx_4_bytes ,positive 
+5e4e 20628000 rtn zero 
+5e4f 20215e4c branch uart_copy_tx_bytes_fast_loop_four ,positive 
+5e50 1f20f204 increase 4 ,loopcnt 
+5e51 20205e59 branch uart_copy_tx_bytes 
+
+uart_tx_16_bytes:
+5e52 20405e53 call uart_tx_8_bytes 
+
+uart_tx_8_bytes:
+5e53 efe40006 ifetch 8 ,contr 
+5e54 e7e40003 istore 8 ,contu 
+5e55 20600000 rtn 
+
+uart_tx_4_bytes:
+5e56 efe20006 ifetch 4 ,contr 
+5e57 e7e20003 istore 4 ,contu 
+5e58 20600000 rtn 
+
+uart_copy_tx_bytes:
+5e59 1f227e00 deposit loopcnt 
+5e5a 207a0000 rtn blank 
+
+uart_copy_tx_bytes_loop:
+5e5b efe08006 ifetch 1 ,contr 
+5e5c e7e08003 istore 1 ,contu 
+5e5d c2005e5b loop uart_copy_tx_bytes_loop 
+5e5e 20600000 rtn 
+
+uart_copy_rx_bytes_fast:
+5e5f 1f227e00 deposit loopcnt 
+5e60 207a0000 rtn blank 
+
+uart_copy_rx_bytes_fast_loop:
+5e61 1f20f3f8 increase -8 ,loopcnt 
+5e62 20415e6d call uart_rx_8_bytes ,positive 
+5e63 20628000 rtn zero 
+5e64 20215e61 branch uart_copy_rx_bytes_fast_loop ,positive 
+5e65 1f20f208 increase 8 ,loopcnt 
+
+uart_copy_rx_bytes_fast_loop_four:
+5e66 1f20f3fc increase -4 ,loopcnt 
+5e67 20415e70 call uart_rx_4_bytes ,positive 
+5e68 20628000 rtn zero 
+5e69 20215e66 branch uart_copy_rx_bytes_fast_loop_four ,positive 
+5e6a 1f20f204 increase 4 ,loopcnt 
+5e6b 20205e73 branch uart_copy_rx_bytes 
+
+uart_rx_16_bytes:
+5e6c 20405e6d call uart_rx_8_bytes 
+
+uart_rx_8_bytes:
+5e6d efe40003 ifetch 8 ,contu 
+5e6e e7e40005 istore 8 ,contw 
+5e6f 20600000 rtn 
+
+uart_rx_4_bytes:
+5e70 efe20003 ifetch 4 ,contu 
+5e71 e7e20005 istore 4 ,contw 
+5e72 20600000 rtn 
+
+uart_copy_rx_bytes:
+5e73 1f227e00 deposit loopcnt 
+5e74 207a0000 rtn blank 
+
+uart_copy_rx_bytes_loop:
+5e75 efe08003 ifetch 1 ,contu 
+5e76 e7e08005 istore 1 ,contw 
+5e77 c2005e75 loop uart_copy_rx_bytes_loop 
+5e78 20600000 rtn 
+
+app_store_nvram_event:
+5e79 70095b3d jam bt_evt_store_nvram ,mem_fifo_temp 
+5e7a 202077a7 branch ui_ipc_send_event 
+
+check_51cmd_store_reconn_info:
+
+check_51cmd_update_device_record:
+5e7b 47144025 bpatchx patch25_0 ,mem_patch25 
+5e7c 6fe0c48e fetch 1 ,mem_nv_data_number 
+5e7d 207a0000 rtn blank 
+5e7e 20405f20 call check_nvram 
+5e7f 2042df26 call init_device_list ,zero 
+5e80 20407d98 call disable_user2 
+5e81 20405eaf call nvram_find_addr_from_bd_list 
+
+write_device_record:
+5e82 6fe0c48e fetch 1 ,mem_nv_data_number 
+5e83 1fe22600 icopy regc 
+5e84 6849448c fetcht 2 ,mem_nv_data_ptr 
+5e85 604900ee storet 2 ,mem_list_item_ptr 
+
+write_device_loop_find:
+5e86 1a627e00 copy regc ,pdata 
+5e87 203a5e79 branch app_store_nvram_event ,blank 
+5e88 1a60a7ff increase -1 ,regc 
+5e89 18422200 copy temp ,rega 
+5e8a efe08011 ifetch 1 ,rega 
+5e8b 684880e6 fetcht 1 ,mem_select_list_item 
+5e8c 98467c00 isub temp ,null 
+5e8d 2042de96 call set_index_finded_device ,zero 
+5e8e 20215e92 branch write_device_loop_find0 ,positive 
+5e8f efe08011 ifetch 1 ,rega 
+5e90 1fe0fe01 increase 1 ,pdata 
+5e91 e7e08011 istore 1 ,rega 
+
+write_device_loop_find0:
+5e92 684900ee fetcht 2 ,mem_list_item_ptr 
+5e93 18408422 increase nv_data_len ,temp 
+5e94 604900ee storet 2 ,mem_list_item_ptr 
+5e95 20205e86 branch write_device_loop_find 
+
+set_index_finded_device:
+5e96 58000000 setarg 0 
+5e97 e7e08011 istore 1 ,rega 
+5e98 6fe080e7 fetch 1 ,mem_temp_reconn_record 
+5e99 e7e08005 istore 1 ,contw 
+5e9a c099dea4 bne rec_3_mode ,set_index_finded_device_ble_mode 
+5e9b da4041ce arg mem_link_key ,regb 
+
+set_index_find_device_master_addr:
+5e9c efe30006 ifetch 6 ,contr 
+5e9d e7e40005 istore 8 ,contw 
+5e9e 58000000 setarg 0 
+5e9f e7e40005 istore 8 ,contw 
+5ea0 1a420c00 copy regb ,contr 
+
+store_rec_data_common:
+5ea1 20407c4c call memcpy16 
+5ea2 18007c01 force 1 ,null 
+5ea3 20600000 rtn 
+
+set_index_finded_device_ble_mode:
+5ea4 c01b5ea8 beq rec_4_mode_random_resolvable_private_address ,set_index_finded_device_irk 
+5ea5 c01bdeac beq rec_4_mode_random_non_resolvable_private_address ,set_index_finded_device_ediv 
+5ea6 da404319 arg mem_le_ltk ,regb 
+5ea7 20205e9c branch set_index_find_device_master_addr 
+
+set_index_finded_device_irk:
+5ea8 d8c043af arg mem_le_irk ,contr 
+5ea9 20407c4c call memcpy16 
+
+store_ble_rec_data_common:
+5eaa d8c04319 arg mem_le_ltk ,contr 
+5eab 20205ea1 branch store_rec_data_common 
+
+set_index_finded_device_ediv:
+5eac d8c043a7 arg mem_le_rand ,contr 
+5ead 20407c4c call memcpy16 
+5eae 20205eaa branch store_ble_rec_data_common 
+
+nvram_find_addr_from_bd_list:
+5eaf 20407d94 call disable_user 
+5eb0 6fe0c48e fetch 1 ,mem_nv_data_number 
+5eb1 207a0000 rtn blank 
+5eb2 4714c025 bpatchx patch25_1 ,mem_patch25 
+5eb3 6fe14793 fetch 2 ,mem_ui_state_map 
+5eb4 c2805ed2 bbit1 ui_state_bt_connected ,find_addr_from_bd_list_spp_mode 
+5eb5 c4048000 rtnbit0 ui_state_ble_connected 
+
+find_addr_from_bd_list_ble_mode:
+5eb6 6fe0c36d fetch 1 ,mem_le_conn_peer_addr_type 
+5eb7 c0005ecb beq master_public_addr ,find_addr_from_bd_list_public_device_addr 
+5eb8 6fe0829c fetch 1 ,mem_le_plap + 5 
+5eb9 2fe180c0 compare 0xc0 ,pdata ,0xc0 
+5eba 2020debe branch find_addr_from_bd_list_static_addr ,true 
+5ebb 2fe18040 compare 0x40 ,pdata ,0xc0 
+5ebc 2020ded0 branch find_addr_from_bd_list_random_addr ,true 
+5ebd 20205ec5 branch find_addr_from_bd_list_random_non_resolvable_private_address_sc_or_legacy 
+
+find_addr_from_bd_list_static_addr:
+5ebe 20365ec2 branch find_addr_from_bd_list_static_addr_reconnect ,user2 
+5ebf 6fe0c351 fetch 1 ,mem_le_preq_init_key_distribution 
+5ec0 c300decb bbit0 le_initator_irk_bit ,find_addr_from_bd_list_public_device_addr 
+5ec1 20205ec5 branch find_addr_from_bd_list_static_addr_sc_or_legacy 
+
+find_addr_from_bd_list_static_addr_reconnect:
+5ec2 20405ecb call find_addr_from_bd_list_public_device_addr 
+5ec3 20740000 rtn user 
+5ec4 20205ec5 branch find_addr_from_bd_list_static_addr_sc_or_legacy 
+
+find_addr_from_bd_list_static_addr_sc_or_legacy:
+
+find_addr_from_bd_list_random_non_resolvable_private_address_sc_or_legacy:
+5ec5 6fe0c3a0 fetch 1 ,mem_le_pairing_mode 
+5ec6 c283dec8 bbit1 le_pairing_mode_secure_connect_bit ,find_addr_from_bd_list_random_non_resolvable_private_address_sc 
+5ec7 20205ece branch find_addr_from_bd_list_random_non_resolvable_private_address 
+
+find_addr_from_bd_list_static_addr_sc:
+
+find_addr_from_bd_list_random_non_resolvable_private_address_sc:
+5ec8 6fe30297 fetch 6 ,mem_le_plap 
+5ec9 67e443a7 store 8 ,mem_le_rand 
+5eca 20205ece branch find_addr_from_bd_list_random_non_resolvable_private_address 
+
+find_addr_from_bd_list_public_device_addr:
+5ecb 7000e735 jam rec_4_mode_static_address ,mem_temp_reconn_record 
+5ecc 6fe30297 fetch 6 ,mem_le_plap 
+5ecd 20205ed4 branch find_addr_from_bd_list_common 
+
+find_addr_from_bd_list_random_non_resolvable_private_address:
+5ece 7000e737 jam rec_4_mode_random_non_resolvable_private_address ,mem_temp_reconn_record 
+5ecf 20205ed4 branch find_addr_from_bd_list_common 
+
+find_addr_from_bd_list_random_addr:
+5ed0 7000e736 jam rec_4_mode_random_resolvable_private_address ,mem_temp_reconn_record 
+5ed1 20205ed4 branch find_addr_from_bd_list_common 
+
+find_addr_from_bd_list_spp_mode:
+5ed2 7000e733 jam rec_3_mode ,mem_temp_reconn_record 
+5ed3 6fe30040 fetch 6 ,mem_plap 
+
+find_addr_from_bd_list_common:
+5ed4 67e300e8 store 6 ,mem_temp_lap 
+5ed5 6fe1448c fetch 2 ,mem_nv_data_ptr 
+5ed6 e840803f ifetcht 1 ,pdata 
+5ed7 1fe0fe01 pincrease 1 
+5ed8 67e100ee store 2 ,mem_list_item_ptr 
+5ed9 604880e6 storet 1 ,mem_select_list_item 
+5eda 6fe0c48e fetch 1 ,mem_nv_data_number 
+5edb 1fe22600 icopy regc 
+
+nvram_find_addr_from_list:
+5edc 6fe100ee fetch 2 ,mem_list_item_ptr 
+5edd 1fe22200 copy pdata ,rega 
+5ede 20405eec call nvram_find_addr_from_list_compare 
+5edf 20740000 rtn user 
+5ee0 684900ee fetcht 2 ,mem_list_item_ptr 
+5ee1 18408422 increase nv_data_len ,temp 
+5ee2 604900ee storet 2 ,mem_list_item_ptr 
+5ee3 184085ff increase -1 ,temp 
+5ee4 efe08002 ifetch 1 ,temp 
+5ee5 67e080e6 store 1 ,mem_select_list_item 
+5ee6 1a60a7ff increase -1 ,regc 
+5ee7 2422dedc nbranch nvram_find_addr_from_list ,zero 
+5ee8 6fe0c48e fetch 1 ,mem_nv_data_number 
+5ee9 1fe0ffff pincrease decreased_one 
+5eea 67e080e6 store 1 ,mem_select_list_item 
+5eeb 20600000 rtn 
+
+nvram_find_addr_from_list_compare:
+5eec 6fe080e7 fetch 1 ,mem_temp_reconn_record 
+5eed c099def3 bne rec_3_mode ,find_addr_from_list_compare_ble_mode 
+
+find_master_addr_from_list_compare:
+5eee da4000e7 arg mem_temp_reconn_record ,regb 
+5eef df200007 arg 7 ,loopcnt 
+5ef0 20407d33 call string_compare 
+5ef1 2022fd92 branch enable_user ,zero 
+5ef2 20600000 rtn 
+
+find_addr_from_list_compare_ble_mode:
+5ef3 c01b5ef6 beq rec_4_mode_random_resolvable_private_address ,find_irk_form_list_compare 
+5ef4 c01bdf11 beq rec_4_mode_random_non_resolvable_private_address ,find_ediv_form_list_compare 
+5ef5 20205eee branch find_master_addr_from_list_compare 
+
+find_irk_form_list_compare:
+5ef6 e8408011 ifetcht 1 ,rega 
+5ef7 98467c00 isub temp ,null 
+5ef8 24628000 nrtn zero 
+5ef9 d8a0098e arg mem_le_prand ,contw 
+5efa df200010 arg 16 ,loopcnt 
+5efb 20407c68 call clear_mem 
+5efc 6fe1829a fetch 3 ,mem_le_plap + 3 
+5efd 67e1898e store 3 ,mem_le_prand 
+5efe 20405f08 call genernate_master_macaddress 
+5eff 6fe109ab fetch 2 ,mem_le_aes_128 + 13 
+5f00 1ff0fe00 byteswap pdata ,pdata 
+5f01 1fed0400 lshift8 pdata ,temp 
+5f02 efe08006 ifetch 1 ,contr 
+5f03 9840fe00 iadd temp ,pdata 
+5f04 68498297 fetcht 3 ,mem_le_plap 
+5f05 98467c00 isub temp ,null 
+5f06 2022fd92 branch enable_user ,zero 
+5f07 20600000 rtn 
+
+genernate_master_macaddress:
+5f08 d8c0098e arg mem_le_prand ,contr 
+5f09 20406cf3 call load_data128 
+5f0a efe08011 ifetch 1 ,rega 
+5f0b 20406cf4 call load_regext 
+5f0c 18006c38 force 0x38 ,aes_ctrl 
+5f0d 18006c00 force 0x0 ,aes_ctrl 
+5f0e 20406c61 call wait_aes 
+5f0f d8a0099e arg mem_le_aes_128 ,contw 
+5f10 20206d07 branch store_aes_result 
+
+find_ediv_form_list_compare:
+5f11 e8408011 ifetcht 1 ,rega 
+5f12 98467c00 isub temp ,null 
+5f13 24628000 nrtn zero 
+5f14 18c22200 copy contr ,rega 
+5f15 18c0a608 add contr ,8 ,regc 
+5f16 da4043a7 arg mem_le_rand ,regb 
+5f17 df200008 arg 8 ,loopcnt 
+5f18 20407d33 call string_compare 
+5f19 2022fd92 branch enable_user ,zero 
+5f1a 1a622200 copy regc ,rega 
+5f1b da4043af arg mem_le_irk ,regb 
+5f1c df200008 arg 8 ,loopcnt 
+5f1d 20407d33 call string_compare 
+5f1e 2022fd92 branch enable_user ,zero 
+5f1f 20600000 rtn 
+
+check_nvram:
+5f20 6fe1448c fetch 2 ,mem_nv_data_ptr 
+5f21 e840803f ifetcht 1 ,pdata 
+5f22 1fe0fe22 pincrease nv_data_len 
+5f23 efe0803f ifetch 1 ,pdata 
+5f24 98467c00 isub temp ,null 
+5f25 20600000 rtn 
+
+init_device_list:
+5f26 6fe0c48e fetch 1 ,mem_nv_data_number 
+5f27 1fe27200 icopy loopcnt 
+5f28 6849448c fetcht 2 ,mem_nv_data_ptr 
+5f29 58000000 setarg 0 
+
+init_device_list_loop:
+5f2a e7e08002 istore 1 ,temp 
+5f2b 18408422 increase nv_data_len ,temp 
+5f2c 1fe0fe01 pincrease 1 
+5f2d c2005f2a loop init_device_list_loop 
+5f2e 20600000 rtn 
+
+load_device_list:
+5f2f 47154025 bpatchx patch25_2 ,mem_patch25 
+5f30 20407d96 call enable_user2 
+5f31 20405eaf call nvram_find_addr_from_bd_list 
+5f32 6fe08030 fetch 1 ,mem_state 
+5f33 79347e06 setflag user ,state_combkey ,pdata 
+5f34 67e08030 store 1 ,mem_state 
+5f35 24345f3a nbranch clear_key_exists ,user 
+5f36 1a208c0a add rega ,10 ,contr 
+5f37 d8a041ce arg mem_link_key ,contw 
+5f38 20407c4c call memcpy16 
+5f39 20205f50 branch check_link_key_load 
+
+clear_key_exists:
+5f3a 7041cd00 jam 0 ,mem_link_key_exists 
+5f3b 20600000 rtn 
+
+load_device_list_mode_4:
+5f3c 20407d96 call enable_user2 
+5f3d 20405eaf call nvram_find_addr_from_bd_list 
+5f3e 24345f47 nbranch clear_ltk_exists ,user 
+5f3f 6fe100ee fetch 2 ,mem_list_item_ptr 
+5f40 1fe08c01 add pdata ,1 ,contr 
+5f41 d8a043af arg mem_le_irk ,contw 
+5f42 20407c4c call memcpy16 
+5f43 d8a04319 arg mem_le_ltk ,contw 
+5f44 20407c4c call memcpy16 
+5f45 70432901 jam 1 ,mem_ltk_exists 
+5f46 20600000 rtn 
+
+clear_ltk_exists:
+5f47 70432900 jam 0 ,mem_ltk_exists 
+5f48 20600000 rtn 
+
+eeprom_store_le_reconn_info:
+5f49 7000e734 jam rec_4_mode ,mem_record_bt_mode 
+5f4a 20205f4c branch eeprom_store_reconn_info 
+
+eeprom_store_bd_reconn_info:
+5f4b 7000e733 jam rec_3_mode ,mem_record_bt_mode 
+
+eeprom_store_reconn_info:
+5f4c 6fe0c09a fetch 1 ,mem_device_option 
+5f4d c0055e7b beq dvc_op_module ,check_51cmd_update_device_record 
+5f4e c00444a1 beq dvc_op_mouse ,mouse_store_remote_bdaddr 
+5f4f 20600000 rtn 
+
+check_link_key_load:
+5f50 6fe441ce fetch 8 ,mem_link_key 
+5f51 684c41d6 fetcht 8 ,mem_link_key + 8 
+5f52 9841fe00 ior temp ,pdata 
+5f53 207a0000 rtn blank 
+5f54 7041cd01 jam 1 ,mem_link_key_exists 
+5f55 20600000 rtn 
+
+gpio_set_wake_by_current_state:
+5f56 4715c025 bpatchx patch25_3 ,mem_patch25 
+5f57 79200407 set1 gpio_active_bit ,temp 
+5f58 20405f7d call gpio_get_bit 
+5f59 7d208407 nsetflag true ,gpio_active_bit ,temp 
+
+gpio_set_wake:
+5f5a 47164025 bpatchx patch25_4 ,mem_patch25 
+5f5b 18467cff sub temp ,ui_button_gpio_disable ,null 
+5f5c 20628000 rtn zero 
+5f5d 284c0007 isolate0 gpio_active_bit ,temp 
+5f5e 18410e1f and temp ,0x1f ,queue 
+5f5f 6fe2009e fetch 4 ,mem_gpio_wakeup_low 
+5f60 f920fe00 qsetflag true ,pdata 
+5f61 67e2009e store 4 ,mem_gpio_wakeup_low 
+5f62 6fe200a2 fetch 4 ,mem_gpio_wakeup_high 
+5f63 fd20fe00 nqsetflag true ,pdata 
+5f64 67e200a2 store 4 ,mem_gpio_wakeup_high 
+5f65 20600000 rtn 
+
+gpio_clr_wake:
+5f66 4716c025 bpatchx patch25_5 ,mem_patch25 
+5f67 18467cff sub temp ,ui_button_gpio_disable ,null 
+5f68 20628000 rtn zero 
+5f69 284c0007 isolate0 gpio_active_bit ,temp 
+5f6a 18410e1f and temp ,0x1f ,queue 
+5f6b 6fe2009e fetch 4 ,mem_gpio_wakeup_low 
+5f6c f93ffe00 qset0 pdata 
+5f6d 67e2009e store 4 ,mem_gpio_wakeup_low 
+5f6e 6fe200a2 fetch 4 ,mem_gpio_wakeup_high 
+5f6f f93ffe00 qset0 pdata 
+5f70 67e200a2 store 4 ,mem_gpio_wakeup_high 
+5f71 20600000 rtn 
+
+gpio_config_input_nowake:
+5f72 20405f66 call gpio_clr_wake 
+5f73 20205f77 branch gpio_config_input_without_wake 
+
+gpio_config_input:
+5f74 18467cff sub temp ,ui_button_gpio_disable ,null 
+5f75 20628000 rtn zero 
+5f76 2455df5a ncall gpio_set_wake ,wake 
+
+gpio_config_input_without_wake:
+5f77 20405fa6 call gpio_addr 
+5f78 58000000 setarg 0 
+5f79 284ffe07 isolate1 gpio_active_bit ,temp 
+5f7a 7d20fe06 nsetflag true ,6 ,pdata 
+5f7b 7920fe07 setflag true ,7 ,pdata 
+5f7c 20205fa1 branch gpio_write 
+
+gpio_get_bit:
+5f7d d8a0811c arg core_gpio_in ,contw 
+5f7e 18410e07 and temp ,0x07 ,queue 
+5f7f 18497e00 rshift3 temp ,pdata 
+5f80 1fe17e03 and_into 3 ,pdata 
+5f81 98a08a00 iadd contw ,contw 
+5f82 efe08005 ifetch 1 ,contw 
+5f83 284ffe07 isolate1 gpio_active_bit ,temp 
+5f84 2020df87 branch gpio_get_bit_reverse ,true 
+5f85 afec0000 qisolate0 pdata 
+5f86 20600000 rtn 
+
+gpio_get_bit_reverse:
+5f87 afefffff qisolate1 pdata 
+5f88 20600000 rtn 
+
+gpio_out_inactive:
+5f89 18467cff sub temp ,ui_button_gpio_disable ,null 
+5f8a 20628000 rtn zero 
+5f8b 2fcffe07 isolate1 gpio_active_bit ,null 
+5f8c 20205f90 branch gpio_out_flag 
+
+gpio_config_output:
+
+gpio_out_active:
+5f8d 18467cff sub temp ,ui_button_gpio_disable ,null 
+5f8e 20628000 rtn zero 
+5f8f 2fcc0007 isolate0 gpio_active_bit ,null 
+
+gpio_out_flag:
+5f90 58000000 setarg 0 
+5f91 7d20fe07 nsetflag true ,gpio_active_bit ,pdata 
+5f92 98428400 ixor temp ,temp 
+
+gpio_out:
+5f93 20405fa6 call gpio_addr 
+5f94 5800003f setarg gpcfg_output_high 
+5f95 284ffe07 isolate1 gpio_active_bit ,temp 
+5f96 7920fe00 setflag true ,0 ,pdata 
+5f97 20205fa1 branch gpio_write 
+
+gpio_check_active:
+5f98 20405fa6 call gpio_addr 
+5f99 efe08005 ifetch 1 ,contw 
+5f9a c2805f9d bbit1 0 ,gpio_check_active_high 
+5f9b 284c0007 isolate0 gpio_active_bit ,temp 
+5f9c 20600000 rtn 
+
+gpio_check_active_high:
+5f9d 284ffe07 isolate1 gpio_active_bit ,temp 
+5f9e 20600000 rtn 
+
+gpio_set_analog:
+5f9f 20405fa6 call gpio_addr 
+5fa0 580000c0 setarg gpcfg_no_ie 
+
+gpio_write:
+5fa1 e7e08005 istore 1 ,contw 
+5fa2 20600000 rtn 
+
+gpio_set_high_impedance:
+5fa3 20405fa6 call gpio_addr 
+5fa4 58000000 setarg gpcfg_high_impedance 
+5fa5 20205fa1 branch gpio_write 
+
+gpio_addr:
+5fa6 18417e3f and temp ,0x3f ,pdata 
+5fa7 1fe67c13 sub pdata ,19 ,null 
+5fa8 24215fac nbranch gpio_addr_ext ,positive 
+5fa9 d8a08070 arg core_gpio_conf ,contw 
+
+gpio_addr_next:
+5faa 98a08a00 iadd contw ,contw 
+5fab 20600000 rtn 
+
+gpio_addr_ext:
+5fac d8a080e5 arg core_gpio_conf1 ,contw 
+5fad 1fe0ffec increase -20 ,pdata 
+5fae 20205faa branch gpio_addr_next 
+
+gpio_config_param:
+5faf 1fe104ff and pdata ,0xff ,temp 
+5fb0 1fecfe00 rshift8 pdata ,pdata 
+5fb1 20205fb3 branch gpio_config_function_int 
+
+gpio_config_function:
+5fb2 c4038000 rtnbit0 gpio_active_bit 
+
+gpio_config_function_int:
+5fb3 1fe17e3f and_into 0x3f ,pdata 
+5fb4 1fe67c13 sub pdata ,19 ,null 
+5fb5 24215fba nbranch gpio_config_function_int_ext ,positive 
+5fb6 d8a08070 arg core_gpio_conf ,contw 
+
+gpio_config_function_int_next:
+5fb7 98a08a00 iadd contw ,contw 
+5fb8 e0408005 istoret 1 ,contw 
+5fb9 20600000 rtn 
+
+gpio_config_function_int_ext:
+5fba d8a080e5 arg core_gpio_conf1 ,contw 
+5fbb 1fe0ffec increase -20 ,pdata 
+5fbc 20205fb7 branch gpio_config_function_int_next 
+
+gpio_get_config:
+5fbd 1841043f and_into 0x3f ,temp 
+5fbe 58008070 setarg core_gpio_conf 
+5fbf 98408c00 iadd temp ,contr 
+5fc0 efe08006 ifetch 1 ,contr 
+5fc1 20600000 rtn 
+
+gpio_set_before_lpm:
+5fc2 df200014 arg 20 ,loopcnt 
+5fc3 d8c08070 arg core_gpio_conf ,contr 
+
+setgpio_loop:
+5fc4 18c20a00 copy contr ,contw 
+5fc5 efe08006 ifetch 1 ,contr 
+5fc6 c0015fdb beq gpcfg_qspi_ncs ,setgpio_pullup 
+5fc7 c001dfdb beq gpcfg_qspi_sck ,setgpio_pullup 
+5fc8 c0025fdb beq gpcfg_qspi_io0 ,setgpio_pullup 
+5fc9 c002dfdb beq gpcfg_qspi_io1 ,setgpio_pullup 
+5fca c0035fdb beq gpcfg_qspi_io2 ,setgpio_pullup 
+5fcb c003dfdb beq gpcfg_qspi_io3 ,setgpio_pullup 
+5fcc c00fdfdb beq gpcfg_spid_miso ,setgpio_pullup 
+5fcd c0105fdb beq gpcfg_spid_ncs ,setgpio_pullup 
+5fce c010dfdb beq gpcfg_spid_sck ,setgpio_pullup 
+5fcf c0115fdb beq gpcfg_spid_mosi ,setgpio_pullup 
+5fd0 c011dfdb beq gpcfg_spid_sdio ,setgpio_pullup 
+5fd1 c0165fdb beq gpcfg_iic_scl ,setgpio_pullup 
+5fd2 c016dfdb beq gpcfg_iic_sda ,setgpio_pullup 
+5fd3 c0005fdb beq gpcfg_input ,setgpio_pullup 
+
+setgpio_loop_end:
+5fd4 c2005fc4 loop setgpio_loop 
+5fd5 dfe080e8 arg core_gpio_conf1 + 3 ,pdata 
+5fd6 98c67c00 isub contr ,null 
+5fd7 20628000 rtn zero 
+
+gpio_set_before_lpm_ext:
+5fd8 df200003 arg 3 ,loopcnt 
+5fd9 d8c080e5 arg core_gpio_conf1 ,contr 
+5fda 20205fc4 branch setgpio_loop 
+
+setgpio_pullup:
+5fdb 58000040 setarg gpcfg_pullup 
+5fdc e7e08005 istore 1 ,contw 
+5fdd 20205fd4 branch setgpio_loop_end 
+
+setgpio_pulldown:
+5fde 58000080 setarg gpcfg_pulldown 
+5fdf e7e08005 istore 1 ,contw 
+5fe0 20205fd4 branch setgpio_loop_end 
+
+adc_init_data:
+5fe1 47174025 bpatchx patch25_6 ,mem_patch25 
+5fe2 58001fe0 setarg otp_offset_adc_param 
+5fe3 da204495 arg mem_3v_adc_io_data ,rega 
+5fe4 d840000c arg 12 ,temp 
+5fe5 20405dc7 call otpd_read_data 
+5fe6 6fe44495 fetch 8 ,mem_3v_adc_io_data 
+5fe7 247a0000 nrtn blank 
+
+adc_init_cal_data_default:
+5fe8 5800469a setarg 0x469a 
+5fe9 67e14495 store 2 ,mem_3v_adc_io_data 
+5fea 5800ab77 setarg 0xab77 
+5feb 67e1449b store 2 ,mem_1v_adc_io_data 
+5fec 580073d0 setarg 0x73d0 
+5fed 67e1449f store 2 ,mem_3v_adc_vinlpm_data 
+5fee 58009658 setarg 0x9658 
+5fef 67e14499 store 2 ,mem_2v_adc_vinlpm_data 
+5ff0 20600000 rtn 
+
+enable_adc:
+5ff1 4717c025 bpatchx patch25_7 ,mem_patch25 
+5ff2 6a508a12 fetchr regb ,1 ,core_rf_ldo_cfg6 
+5ff3 708a123d jam 0x3d ,core_rf_ldo_cfg6 
+5ff4 708a11aa jam 0xaa ,core_rf_ldo_cfg5 
+5ff5 708a0a0c jam 0x0c ,core_rf_ldo_en0 
+5ff6 6ff08a09 fetch 1 ,core_clkpll_cfg6 
+5ff7 79207e07 set1 7 ,pdata 
+5ff8 67f08a09 store 1 ,core_clkpll_cfg6 
+5ff9 708a0b04 jam 0x04 ,core_rf_ldo_en1 
+5ffa 2000003c nop 60 
+5ffb 708a1600 jam 0 ,core_syn_en 
+5ffc 708a1706 jam 6 ,core_rx_en0 
+5ffd 2040600d call read_adc_mode 
+5ffe 67f08a97 store 1 ,core_gpadc_ctrl 
+5fff 7080dc03 jam 0x03 ,core_sum_ctrl 
+6000 2000003c nop 60 
+6001 6ff08053 fetch 1 ,core_sum_en 
+6002 79207e07 set1 7 ,pdata 
+6003 67f08053 store 1 ,core_sum_en 
+6004 200003e8 nop 1000 
+6005 6ff10150 fetch 2 ,core_adc_sum 
+6006 67e144a7 store 2 ,mem_adc_current_value 
+6007 6ff08053 fetch 1 ,core_sum_en 
+6008 793ffe07 set0 7 ,pdata 
+6009 67f08053 store 1 ,core_sum_en 
+600a 708a9700 jam 0 ,core_gpadc_ctrl 
+600b 62508a12 storer regb ,1 ,core_rf_ldo_cfg6 
+600c 20600000 rtn 
+
+read_adc_mode:
+600d 6fe0c4a5 fetch 1 ,mem_adc_config_flag 
+600e c0006014 beq adc_config_vinlpm ,adc_mode_vdcdc 
+600f c000e016 beq adc_config_hvin ,adc_adc_mode_vbat 
+
+adc_check_gpio:
+6010 6fe0c4a6 fetch 1 ,mem_adc_channel 
+6011 1fe9fe00 lshift3 pdata ,pdata 
+6012 1fe1fe07 or pdata ,7 ,pdata 
+6013 20600000 rtn 
+
+adc_mode_vdcdc:
+6014 58000057 setarg 0x57 
+6015 20600000 rtn 
+
+adc_adc_mode_vbat:
+6016 5800004f setarg 0x4f 
+6017 20600000 rtn 
+
+vdd_calculate_by_mode:
+6018 47184026 bpatchx patch26_0 ,mem_patch26 
+6019 6fe0c4a5 fetch 1 ,mem_adc_config_flag 
+601a c000601e beq adc_config_vinlpm ,vdd_calculate_vinlpm 
+601b c000e024 beq adc_config_hvin ,vdd_calculate_hvin 
+601c c001602a beq adc_config_gpio ,vdd_calculate_io 
+601d 20600000 rtn 
+
+vdd_calculate_vinlpm:
+601e 58000064 setarg 100 
+601f 67e144a3 store 2 ,mem_reference_voltage 
+6020 6849449f fetcht 2 ,mem_3v_adc_vinlpm_data 
+6021 6fe14499 fetch 2 ,mem_2v_adc_vinlpm_data 
+6022 da60012c arg 300 ,regc 
+6023 2020602f branch vdd_calculate 
+
+vdd_calculate_hvin:
+6024 58000064 setarg 100 
+6025 67e144a3 store 2 ,mem_reference_voltage 
+6026 6849449d fetcht 2 ,mem_3v_adc_hvin_data 
+6027 6fe14497 fetch 2 ,mem_2v_adc_hvin_data 
+6028 da60012c arg 300 ,regc 
+6029 2020602f branch vdd_calculate 
+
+vdd_calculate_io:
+602a 580000c8 setarg 200 
+602b 67e144a3 store 2 ,mem_reference_voltage 
+602c 68494495 fetcht 2 ,mem_3v_adc_io_data 
+602d 6fe1449b fetch 2 ,mem_1v_adc_io_data 
+602e da60012c arg 300 ,regc 
+
+vdd_calculate:
+602f 98462200 isub temp ,rega 
+6030 6fe144a7 fetch 2 ,mem_adc_current_value 
+6031 98467e00 isub temp ,pdata 
+6032 2421603c nbranch vdd_calculate1 ,positive 
+6033 684944a3 fetcht 2 ,mem_reference_voltage 
+6034 984fa400 imul32 temp ,regb 
+6035 1a627e00 copy regc ,pdata 
+6036 9a2ffe00 imul32 rega ,pdata 
+6037 9a467e00 isub regb ,pdata 
+
+vdd_calculate2:
+6038 9a26fc00 idiv rega 
+6039 20407d31 call wait_div_end 
+603a 1807fe00 quotient pdata 
+603b 20600000 rtn 
+
+vdd_calculate1:
+603c 18427e00 copy temp ,pdata 
+603d 684944a7 fetcht 2 ,mem_adc_current_value 
+603e 98467e00 isub temp ,pdata 
+603f 684944a3 fetcht 2 ,mem_reference_voltage 
+6040 984fa400 imul32 temp ,regb 
+6041 1a627e00 copy regc ,pdata 
+6042 9a2ffe00 imul32 rega ,pdata 
+6043 9a40fe00 iadd regb ,pdata 
+6044 20206038 branch vdd_calculate2 
+
+adc_bat_percent_lowpower_out:
+6045 efe40011 ifetch 8 ,rega 
+6046 67e4095c store 8 ,mem_pdatatemp 
+6047 6fe1095c fetch 2 ,mem_pdatatemp 
+6048 6849095e fetcht 2 ,mem_pdatatemp + 2 
+6049 98462200 isub temp ,rega 
+604a 6fe10962 fetch 2 ,mem_pdatatemp + 6 
+604b 98462400 isub temp ,regb 
+604c 68490960 fetcht 2 ,mem_pdatatemp + 4 
+604d 98467c00 isub temp ,null 
+604e 24416055 ncall adc_set_low_power_flag ,positive 
+604f 1a4ffe64 mul32 regb ,100 ,pdata 
+6050 9a26fc00 idiv rega 
+6051 20407d31 call wait_div_end 
+6052 1807fe00 quotient pdata 
+6053 205a605d call adc_set_no_power_flag ,blank 
+6054 20600000 rtn 
+
+adc_set_low_power_flag:
+6055 6fe0c4a9 fetch 1 ,mem_adc_power_flag 
+6056 79207e00 set1 0 ,pdata 
+6057 67e0c4a9 store 1 ,mem_adc_power_flag 
+6058 20600000 rtn 
+
+adc_clear_low_power_flag:
+6059 6fe0c4a9 fetch 1 ,mem_adc_power_flag 
+605a 793ffe00 set0 0 ,pdata 
+605b 67e0c4a9 store 1 ,mem_adc_power_flag 
+605c 20600000 rtn 
+
+adc_set_no_power_flag:
+605d 6848c4a9 fetcht 1 ,mem_adc_power_flag 
+605e 79200401 set1 1 ,temp 
+605f 6048c4a9 storet 1 ,mem_adc_power_flag 
+6060 20600000 rtn 
+
+adc_clear_no_power_flag:
+6061 6848c4a9 fetcht 1 ,mem_adc_power_flag 
+6062 793f8401 set0 1 ,temp 
+6063 6048c4a9 storet 1 ,mem_adc_power_flag 
+6064 20600000 rtn 
+
+keyscan_key_init:
+6065 6fe144cb fetch 2 ,mem_key_num_ptr 
+6066 efe0803f ifetch 1 ,pdata 
+
+keyscan_key_init_next:
+6067 207a0000 rtn blank 
+6068 1fe27200 copy pdata ,loopcnt 
+6069 6fe144cb fetch 2 ,mem_keyscan_ptr 
+606a 1fe0fe03 increase 3 ,pdata 
+606b 1fe22200 copy pdata ,rega 
+
+keyscan_key_init_lp1:
+606c e8408011 ifetcht 1 ,rega 
+606d 20405f74 call gpio_config_input 
+606e 1a20a201 increase key_conf_struct_len ,rega 
+606f c200606c loop keyscan_key_init_lp1 
+
+keyscan_key_init_end:
+6070 20600000 rtn 
+
+keyscan_scan_key:
+6071 6fe144cb fetch 2 ,mem_keyscan_ptr 
+6072 1fe0fe03 increase 3 ,pdata 
+6073 1fe22200 copy pdata ,rega 
+6074 18002400 force 0 ,regb 
+6075 58000000 setarg 0 
+6076 67e109de store 2 ,mem_key_value_temp 
+
+keyscan_scan_key_lp1:
+6077 e8408011 ifetcht 1 ,rega 
+6078 20405f7d call gpio_get_bit 
+6079 4718c026 bpatchx patch26_1 ,mem_patch26 
+607a 6fe109de fetch 2 ,mem_key_value_temp 
+607b 1a420e00 copy regb ,queue 
+607c f920fe00 qsetflag true ,pdata 
+607d 67e109de store 2 ,mem_key_value_temp 
+607e 1a20a201 increase key_conf_struct_len ,rega 
+607f 1a40a401 increase 1 ,regb 
+6080 6fe144cb fetch 2 ,mem_key_num_ptr 
+6081 efe0803f ifetch 1 ,pdata 
+
+keyscan_scan_key_lp1_next:
+6082 9a42fc00 ixor regb ,null 
+6083 2422e077 nbranch keyscan_scan_key_lp1 ,zero 
+6084 6fe109de fetch 2 ,mem_key_value_temp 
+6085 684944cd fetcht 2 ,mem_key_value_retention 
+6086 9842fc00 ixor temp ,null 
+6087 20628000 rtn zero 
+6088 78347c00 enable user 
+6089 20600000 rtn 
+
+keyscan_process_lpm_before:
+608a 6fe144cb fetch 2 ,mem_key_num_ptr 
+608b efe0803f ifetch 1 ,pdata 
+
+keyscan_process_lpm_before_next:
+608c 207a0000 rtn blank 
+608d 1fe27200 copy pdata ,loopcnt 
+608e 6fe144cb fetch 2 ,mem_keyscan_ptr 
+608f 1fe0fe03 increase 3 ,pdata 
+6090 1fe22200 copy pdata ,rega 
+
+keyscan_process_lpm_before_lp1:
+6091 e8408011 ifetcht 1 ,rega 
+6092 20405f56 call gpio_set_wake_by_current_state 
+6093 1a20a201 increase key_conf_struct_len ,rega 
+6094 c2006091 loop keyscan_process_lpm_before_lp1 
+
+keyscan_process_lpm_before_end:
+6095 20600000 rtn 
+
+keyscan_key_process:
+6096 d8e00009 arg key_scan_timer ,queue 
+6097 20407cb6 call timer_check 
+6098 247a0000 nrtn blank 
+6099 58000020 setarg 0x20 
+609a d8e00009 arg key_scan_timer ,queue 
+609b 20407ca8 call timer_init 
+609c 78547c00 disable user 
+609d 2040608a call keyscan_process_lpm_before 
+609e 47194026 bpatchx patch26_2 ,mem_patch26 
+609f 6fe144cb fetch 2 ,mem_key_num_ptr 
+60a0 efe0803f ifetch 1 ,pdata 
+
+keyscan_key_process_next:
+60a1 207a0000 rtn blank 
+60a2 20406071 call keyscan_scan_key 
+60a3 24347720 nbranch lpm_button_clean_wake_lock ,user 
+60a4 2040771e call lpm_button_get_wake_lock 
+60a5 78547c00 disable user 
+60a6 6fe109de fetch 2 ,mem_key_value_temp 
+60a7 67e109e5 store 2 ,mem_key_value_temp4 
+60a8 7009e700 jam 0 ,mem_key_value_temp6 
+60a9 18000e00 force 0 ,queue 
+
+keyscan_key_lp1:
+60aa 6fe144cd fetch 2 ,mem_key_value_retention 
+60ab 1fe30400 rshift pdata ,temp 
+60ac 604944cd storet 2 ,mem_key_value_retention 
+60ad 1fe17e01 and pdata ,0x01 ,pdata 
+60ae 684909e5 fetcht 2 ,mem_key_value_temp4 
+60af 18412201 and temp ,0x01 ,rega 
+60b0 18430400 rshift temp ,temp 
+60b1 604909e5 storet 2 ,mem_key_value_temp4 
+60b2 9a22fc00 ixor rega ,null 
+60b3 2442e0bf ncall keyscan_send_key_data ,zero 
+60b4 6fe144cb fetch 2 ,mem_key_num_ptr 
+60b5 efe0803f ifetch 1 ,pdata 
+
+keyscan_key_lp1_next:
+60b6 684889e7 fetcht 1 ,mem_key_value_temp6 
+60b7 18408401 increase 1 ,temp 
+60b8 604889e7 storet 1 ,mem_key_value_temp6 
+60b9 18420e00 copy temp ,queue 
+60ba 98e2fc00 ixor queue ,null 
+60bb 2422e0aa nbranch keyscan_key_lp1 ,zero 
+60bc 6fe109de fetch 2 ,mem_key_value_temp 
+60bd 67e144cd store 2 ,mem_key_value_retention 
+60be 20600000 rtn 
+
+keyscan_send_key_data:
+60bf 4719c026 bpatchx patch26_3 ,mem_patch26 
+60c0 6fe144cb fetch 2 ,mem_keyscan_ptr 
+60c1 1fe0fe01 increase 1 ,pdata 
+60c2 efe1003f ifetch 2 ,pdata 
+60c3 20207d47 branch callback_func 
+
+pwm_init:
+60c4 6ff08042 fetch 1 ,core_clksel 
+60c5 9a21fe00 ior rega ,pdata 
+60c6 67f08042 store 1 ,core_clksel 
+60c7 6ff10050 fetch 2 ,core_clkoff 
+60c8 793ffe0d set0 clock_off_pwm ,pdata 
+60c9 67f10050 store 2 ,core_clkoff 
+
+delay_nop100:
+60ca 20000064 nop 100 
+60cb 20600000 rtn 
+
+pwm_clk_set:
+60cc 6ff08042 fetch 1 ,core_clksel 
+60cd c28360d1 bbit1 6 ,pwm_24m_clk_set 
+60ce c283e0d3 bbit1 7 ,pwm_33k_clk_set 
+
+pwm_12m_clk_set:
+60cf 58b71b00 setarg pwm_12mhz 
+60d0 20600000 rtn 
+
+pwm_24m_clk_set:
+60d1 596e3600 setarg pwm_24mhz 
+60d2 20600000 rtn 
+
+pwm_33k_clk_set:
+60d3 580080e8 setarg pwm_33khz 
+60d4 20600000 rtn 
+
+pwm_out_set:
+60d5 6849895e fetcht 3 ,mem_pdatatemp + 2 
+60d6 204060cc call pwm_clk_set 
+60d7 9846fc00 idiv temp 
+60d8 20407d31 call wait_div_end 
+60d9 18078400 quotient temp 
+60da 6fe08961 fetch 1 ,mem_pdatatemp + 5 
+60db 984ffe00 imul32 temp ,pdata 
+60dc 1fe6fc64 div pdata ,100 
+60dd 20407d31 call wait_div_end 
+60de 1807a200 quotient rega 
+60df 18427e00 copy temp ,pdata 
+60e0 9a262400 isub rega ,regb 
+60e1 6fe0895d fetch 1 ,mem_pdatatemp + 1 
+60e2 204060e9 call pwm_duty_cycle_set 
+60e3 6fe0895c fetch 1 ,mem_pdatatemp 
+60e4 6848895d fetcht 1 ,mem_pdatatemp + 1 
+60e5 1841040f and_into 0x0f ,temp 
+60e6 184d0400 lshift8 temp ,temp 
+60e7 9841fe00 ior temp ,pdata 
+60e8 20206129 branch pwm_enable 
+
+pwm_duty_cycle_set:
+60e9 98000e00 iforce queue 
+60ea 204060f7 call pwm_duty_cycle_set_without_autoload 
+60eb 202060ec branch pwm_autoload_set 
+
+pwm_autoload_set:
+60ec 6ff080e4 fetch 1 ,core_pwm_autoload 
+60ed f9207e00 qset1 pdata 
+60ee 67f080e4 store 1 ,core_pwm_autoload 
+60ef 68588042 fetcht 1 ,core_clksel 
+60f0 284ffe07 isolate1 7 ,temp 
+60f1 2040e0f5 call delay_1clk_of_33k ,true 
+60f2 f93ffe00 qset0 pdata 
+60f3 67f080e4 store 1 ,core_pwm_autoload 
+60f4 20600000 rtn 
+
+delay_1clk_of_33k:
+60f5 200001e0 nop 480 
+60f6 20600000 rtn 
+
+pwm_duty_cycle_set_without_autoload:
+60f7 1fe17e0f and_into 0x0f ,pdata 
+60f8 d8a080a0 arg core_pwm_pcnt0 ,contw 
+60f9 1feffe04 mul32 pdata ,4 ,pdata 
+60fa 98a08a00 iadd contw ,contw 
+60fb 1a227e00 copy rega ,pdata 
+60fc e7e10005 istore 2 ,contw 
+60fd 1a427e00 copy regb ,pdata 
+60fe e7e10005 istore 2 ,contw 
+60ff 20600000 rtn 
+
+pwm_enable_in_syncmode:
+6100 1a4c8e00 rshift8 regb ,queue 
+6101 2040611e call pwm_init_bit_set 
+6102 1a4c8e00 rshift8 regb ,queue 
+6103 20406118 call pwm_syncmode_set 
+6104 1a2c8e00 rshift8 rega ,queue 
+6105 7820fc00 enable true 
+6106 20406119 call pwm_syncmode_set_process 
+6107 1a227e00 deposit rega 
+6108 20406124 call pwm_gpio_select 
+6109 1a427e00 deposit regb 
+610a 20206129 branch pwm_enable 
+
+pwm_disable_in_syncmode:
+610b 1a227e00 deposit rega 
+610c 2040612c call pwm_disable 
+610d 1a427e00 deposit regb 
+610e 2040612c call pwm_disable 
+610f 1a2c8e00 rshift8 rega ,queue 
+6110 7840fc00 disable true 
+6111 20406119 call pwm_syncmode_set_process 
+6112 1a4c8e00 rshift8 regb ,queue 
+6113 7840fc00 disable true 
+6114 2040611f call pwm_init_bit_set_process 
+6115 1a4c8e00 rshift8 regb ,queue 
+6116 7840fc00 disable true 
+6117 20206119 branch pwm_syncmode_set_process 
+
+pwm_syncmode_set:
+6118 28effe07 isolate1 7 ,queue 
+
+pwm_syncmode_set_process:
+6119 18e10e0f and queue ,0x0f ,queue 
+611a 6ff080dd fetch 1 ,core_pwm_sync 
+611b f920fe00 qsetflag true ,pdata 
+611c 67f080dd store 1 ,core_pwm_sync 
+611d 20600000 rtn 
+
+pwm_init_bit_set:
+611e 28effe06 isolate1 6 ,queue 
+
+pwm_init_bit_set_process:
+611f 18e10e0f and queue ,0x0f ,queue 
+6120 6ff080d8 fetch 1 ,core_pwm_init 
+6121 f920fe00 qsetflag true ,pdata 
+6122 67f080d8 store 1 ,core_pwm_init 
+6123 20600000 rtn 
+
+pwm_gpio_select:
+6124 20406134 call pwm_select_channel 
+
+pwm_gpio_select_process:
+6125 1fed7e00 lshift8 pdata ,pdata 
+6126 18e08410 add queue ,gpcfg_pwm_out0 ,temp 
+6127 9841fe00 ior temp ,pdata 
+6128 20205faf branch gpio_config_param 
+
+pwm_enable:
+6129 78347c00 enable user 
+612a 20406124 call pwm_gpio_select 
+612b 2020612f branch pwm_set_select 
+
+pwm_disable:
+612c 78547c00 disable user 
+612d 20406134 call pwm_select_channel 
+612e 2020612f branch pwm_set_select 
+
+pwm_set_select:
+612f 18e10e0f and queue ,0x0f ,queue 
+6130 6ff08084 fetch 1 ,core_pwm_en 
+6131 f9347e00 qsetflag user ,pdata 
+6132 67f08084 store 1 ,core_pwm_en 
+6133 20600000 rtn 
+
+pwm_select_channel:
+6134 1fec8e00 rshift8 pdata ,queue 
+6135 18e10e0f and queue ,0x0f ,queue 
+6136 20600000 rtn 
+
+wdt_init_config:
+6137 d8402710 arg 0x2710 ,temp 
+6138 984ffe00 imul32 temp ,pdata 
+6139 d841312d arg 0x1312d ,temp 
+613a 9846fc00 idiv temp 
+613b 20407d31 call wait_div_end 
+613c 18078400 quotient temp 
+613d 58000800 setarg 2048 
+613e 98467e00 isub temp ,pdata 
+613f 1fe20400 copy pdata ,temp 
+6140 1841040f and_into 0x0f ,temp 
+6141 6058800b storet 1 ,core_write_wdt2 
+6142 1fe20400 copy pdata ,temp 
+6143 18518400 rshift4 temp ,temp 
+6144 60588004 storet 1 ,core_write_wdt 
+6145 20600000 rtn 
+
+wdt_set_enable:
+6146 78367c00 enable user2 
+6147 20206149 branch wdt_init_set 
+
+wdt_set_disable:
+6148 78567c00 disable user2 
+
+wdt_init_set:
+6149 6ff08043 fetch 1 ,core_config 
+614a 79367e03 setflag user2 ,3 ,pdata 
+614b 67f08043 store 1 ,core_config 
+614c 20600000 rtn 
+
+nec61212_init:
+614d d8400031 arg fun_nec_enable | fun_nec_clk_divide_24 ,temp 
+
+nec_init_config:
+614e 67f200ca store 4 ,core_nec_start_addr 
+614f 67f100ce store 2 ,core_nec_rptr 
+6150 605880d0 storet 1 ,core_nec_control 
+6151 20600000 rtn 
+
+nec_check_rxbuff_size:
+6152 6ff10130 fetch 2 ,core_nec_rxitem 
+6153 20600000 rtn 
+
+nec_prepare_read:
+6154 687100ce fetchr contu ,2 ,core_nec_rptr 
+6155 695100ca fetchr contus ,2 ,core_nec_start_addr 
+6156 6a1100cc fetchr contue ,2 ,core_nec_end_addr 
+6157 20600000 rtn 
+
+nec_read_done:
+6158 607100ce storer contu ,2 ,core_nec_rptr 
+6159 20600000 rtn 
+
+nec_parse_nec61212:
+615a 20407d92 call enable_user 
+615b dd600000 arg 0 ,rege 
+615c 20406152 call nec_check_rxbuff_size 
+615d c001619c beq 2 ,nec_parse_nec61212_check_timeout 
+615e 1fe67c04 sub pdata ,4 ,null 
+615f 20610000 rtn positive 
+6160 20406154 call nec_prepare_read 
+6161 e8410003 ifetcht 2 ,contu 
+6162 5800a654 setarg nec61212_data2repeat_time 
+6163 204061a5 call nec_check_pulse_range_legal_default_deviation 
+6164 2421618a nbranch nec_parse_nec61212_check_repeat_data ,positive 
+6165 1b020400 copy regd ,temp 
+6166 58017f8e setarg nec61212_repeat2repeat_time 
+6167 204061a5 call nec_check_pulse_range_legal_default_deviation 
+6168 2421618a nbranch nec_parse_nec61212_check_repeat_data ,positive 
+6169 1b020400 copy regd ,temp 
+616a 58002328 setarg nec61212_boot_code_start_time 
+616b 204061a5 call nec_check_pulse_range_legal_default_deviation 
+616c 20216181 branch nec_parse_nec61212_error_data ,positive 
+616d e8410003 ifetcht 2 ,contu 
+616e 58001194 setarg nec61212_boot_code_end_time 
+616f 204061a5 call nec_check_pulse_range_legal_default_deviation 
+6170 20216181 branch nec_parse_nec61212_error_data ,positive 
+6171 20406152 call nec_check_rxbuff_size 
+6172 1fe67c85 sub pdata ,133 ,null 
+6173 20610000 rtn positive 
+6174 df200020 arg 32 ,loopcnt 
+
+nec_parse_nec61212_data:
+6175 e8410003 ifetcht 2 ,contu 
+6176 58000230 setarg nec61212_data_bit_1_start_time 
+6177 204061a5 call nec_check_pulse_range_legal_default_deviation 
+6178 20216181 branch nec_parse_nec61212_error_data ,positive 
+6179 e8410003 ifetcht 2 ,contu 
+617a 5800069a setarg nec61212_data_bit_1_end_time 
+617b 204061a5 call nec_check_pulse_range_legal_default_deviation 
+617c 24216186 nbranch nec_parse_nec61212_add_bit1 ,positive 
+617d 1b020400 copy regd ,temp 
+617e 58000230 setarg nec61212_data_bit_0_end_time 
+617f 204061a5 call nec_check_pulse_range_legal_default_deviation 
+6180 24216187 nbranch nec_parse_nec61212_add_bit0 ,positive 
+
+nec_parse_nec61212_error_data:
+6181 1b020400 copy regd ,temp 
+6182 5800ffff setarg nec61212_timeout_time 
+6183 98467c00 isub temp ,null 
+6184 2022e1a1 branch nec_parse_nec61212_check_timeout_cb ,zero 
+6185 20206158 branch nec_read_done 
+
+nec_parse_nec61212_add_bit1:
+6186 79205620 set1 32 ,rege 
+
+nec_parse_nec61212_add_bit0:
+6187 1d635600 rshift rege ,rege 
+6188 c2006175 loop nec_parse_nec61212_data 
+6189 20206195 branch nec_parse_nec61212_check_stop_bit 
+
+nec_parse_nec61212_check_repeat_data:
+618a 20406152 call nec_check_rxbuff_size 
+618b 1fe67c07 sub pdata ,7 ,null 
+618c 20610000 rtn positive 
+618d e8410003 ifetcht 2 ,contu 
+618e 58002328 setarg nec61212_repeat_start_time 
+618f 204061a5 call nec_check_pulse_range_legal_default_deviation 
+6190 20216181 branch nec_parse_nec61212_error_data ,positive 
+6191 e8410003 ifetcht 2 ,contu 
+6192 580008ca setarg nec61212_repeat_end_time 
+6193 204061a5 call nec_check_pulse_range_legal_default_deviation 
+6194 20216181 branch nec_parse_nec61212_error_data ,positive 
+
+nec_parse_nec61212_check_stop_bit:
+6195 e8410003 ifetcht 2 ,contu 
+6196 58000230 setarg nec61212_stop_time 
+6197 204061a5 call nec_check_pulse_range_legal_default_deviation 
+6198 20216181 branch nec_parse_nec61212_error_data ,positive 
+6199 20406158 call nec_read_done 
+619a 1a627e00 copy regc ,pdata 
+619b 20207d47 branch callback_func 
+
+nec_parse_nec61212_check_timeout:
+619c 20406154 call nec_prepare_read 
+619d e8410003 ifetcht 2 ,contu 
+619e 5800ffff setarg nec61212_timeout_time 
+619f 98467c00 isub temp ,null 
+61a0 24628000 nrtn zero 
+
+nec_parse_nec61212_check_timeout_cb:
+61a1 20406158 call nec_read_done 
+61a2 20407d94 call disable_user 
+61a3 1a627e00 copy regc ,pdata 
+61a4 20207d47 branch callback_func 
+
+nec_check_pulse_range_legal_default_deviation:
+61a5 6a40c4d9 fetchr regb ,1 ,mem_nec_decode_error_value 
+
+nec_check_pulse_range_legal:
+61a6 18423000 copy temp ,regd 
+61a7 9a4fa400 imul32 regb ,regb 
+61a8 18438400 lshift temp ,temp 
+61a9 98462200 isub temp ,rega 
+61aa 244161ae ncall nec_check_pulse_range_legal_data_negative ,positive 
+61ab 1a2ffe64 mul32 rega ,100 ,pdata 
+61ac 9a467c00 isub regb ,null 
+61ad 20600000 rtn 
+
+nec_check_pulse_range_legal_data_negative:
+61ae 1a262200 sub rega ,0 ,rega 
+61af 20600000 rtn 
+
+select_system_clk_24m:
+61b0 7041f318 jam system_clk_24m ,mem_system_clk 
+61b1 70804201 jam clksel_dpll_24m ,core_clksel 
+61b2 58001d4b setarg 7499 
+61b3 67f10040 store 2 ,core_halfslot 
+
+calc_new_param:
+61b4 df20000b arg 11 ,loopcnt 
+61b5 da200155 arg mem_param_tx_setup ,rega 
+
+calc_new_param_loop:
+61b6 efe10011 ifetch 2 ,rega 
+61b7 1fe3fe00 lshift pdata ,pdata 
+61b8 e7e10011 istore 2 ,rega 
+61b9 1a20a202 increase 2 ,rega 
+61ba c20061b6 loop calc_new_param_loop 
+61bb 20600000 rtn 
+
+calc_new_le_time:
+61bc 1b63b600 lshift stop_watch ,stop_watch 
+61bd 20600000 rtn 
+
+select_system_clk_12m_xtal:
+61be 70804204 jam clksel_xtal ,core_clksel 
+
+select_system_clk_12m_common:
+61bf 7041f30c jam system_clk_12m ,mem_system_clk 
+61c0 58000ea5 setarg 3749 
+61c1 67f10040 store 2 ,core_halfslot 
+61c2 20600000 rtn 
+
+select_system_clk_12m_dpll:
+61c3 70804205 jam clksel_dpll ,core_clksel 
+61c4 202061bf branch select_system_clk_12m_common 
+
+rfcomm_init:
+61c5 20758000 rtn wake 
+61c6 70465900 jam 0 ,mem_rfcomm_send_more_pkt 
+61c7 7003c003 jam bits9600 ,memremoterpnbitrate 
+61c8 7003c103 jam databits8 ,memremoteprndatabits 
+61c9 7003c511 jam 0x11 ,memremoteprnxon 
+61ca 7003c613 jam 0x13 ,memremoteprnxoff 
+61cb 58000000 setarg 0 
+61cc 67e183c2 store 3 ,memremoteprnstopbit 
+61cd 67e0c4eb store 1 ,mem_spp_state 
+61ce 70479200 jam 0 ,memui_reconnect_mode 
+
+rfcomm_init_spp:
+61cf 58000000 setarg 0 
+61d0 67e0c4eb store 1 ,mem_spp_state 
+61d1 67e0c656 store 1 ,mem_remote_spp_channel 
+61d2 67e0c64f store 1 ,mem_pn_dlci 
+61d3 6fe0c65d fetch 1 ,mem_rfcomm_credit_flag 
+61d4 c000e1d7 beq credit_enable ,rfcomm_init_spp_with_credit 
+61d5 70465b50 jam 0x50 ,mem_credit_given 
+61d6 20600000 rtn 
+
+rfcomm_init_spp_with_credit:
+61d7 70465b00 jam 0x00 ,mem_credit_given 
+61d8 20600000 rtn 
+
+set_cr_bit:
+61d9 18418402 or_into 0x02 ,temp 
+61da 20600000 rtn 
+
+rfcomm_calculate_fcs_sabm:
+61db 18427e00 copy temp ,pdata 
+61dc 1fedfe00 reverse pdata ,pdata 
+61dd 67e0c654 store 1 ,memfcstemp3 
+61de 18007e3f force ini_tx_sabm ,pdata 
+61df 1fedfe00 reverse pdata ,pdata 
+61e0 67e0c653 store 1 ,memfcstemp2 
+61e1 18007e01 force 0x01 ,pdata 
+61e2 1fedfe00 reverse pdata ,pdata 
+61e3 67e0c652 store 1 ,memfcstemp1 
+61e4 20406211 call caculate_fcs 
+61e5 18427e00 copy temp ,pdata 
+61e6 20600000 rtn 
+
+rfcomm_calculate_fcs_ua:
+61e7 1fedfe00 reverse pdata ,pdata 
+61e8 67e0c654 store 1 ,memfcstemp3 
+61e9 18007e73 force rsp_tx_ua ,pdata 
+61ea 1fedfe00 reverse pdata ,pdata 
+61eb 67e0c653 store 1 ,memfcstemp2 
+61ec 18007e01 force 0x01 ,pdata 
+61ed 1fedfe00 reverse pdata ,pdata 
+61ee 67e0c652 store 1 ,memfcstemp1 
+61ef 20206211 branch caculate_fcs 
+
+rfcomm_calculate_fcs_dlci0:
+61f0 6fe0c655 fetch 1 ,mem_rfcomm_initiator 
+61f1 203a61f4 branch rfcomm_calculate_fcs_dlci0_res ,blank 
+61f2 58000070 setarg 0x70 
+61f3 20600000 rtn 
+
+rfcomm_calculate_fcs_dlci0_res:
+61f4 580000aa setarg 0xaa 
+61f5 20600000 rtn 
+
+rfcomm_save_fcs_uih:
+61f6 1fedfe00 reverse pdata ,pdata 
+61f7 67e0c654 store 1 ,memfcstemp3 
+61f8 18007eef force rsp_rx_uih ,pdata 
+61f9 20406205 call caculate_uihdata_fcs 
+61fa 684903ca fetcht 2 ,mem_contw_temp 
+61fb 18420a00 copy temp ,contw 
+61fc e7e08005 istore 1 ,contw 
+61fd 18a20400 copy contw ,temp 
+61fe 604903ca storet 2 ,mem_contw_temp 
+61ff 18007eff force rsp_rx_uih_wdata ,pdata 
+6200 20406205 call caculate_uihdata_fcs 
+6201 684903ca fetcht 2 ,mem_contw_temp 
+6202 18420a00 copy temp ,contw 
+6203 e7e08005 istore 1 ,contw 
+6204 20600000 rtn 
+
+caculate_uihdata_fcs:
+6205 1fedfe00 reverse pdata ,pdata 
+6206 67e0c653 store 1 ,memfcstemp2 
+6207 6fe14653 fetch 2 ,memfcstemp2 
+6208 1fed7e00 lshift8 pdata ,pdata 
+6209 67e183c7 store 3 ,mem_mod2div_temp 
+620a da200107 arg 0x107 ,rega 
+620b da40000f arg 0xf ,regb 
+620c 2040621e call mod2div 
+620d 1fe2fed7 xor_into 0xd7 ,pdata 
+620e 1fe47e00 invert pdata ,pdata 
+620f 1fedfe00 reverse pdata ,pdata 
+6210 20600000 rtn 
+
+caculate_fcs:
+6211 6fe1c652 fetch 3 ,memfcstemp1 
+6212 67e183c7 store 3 ,mem_mod2div_temp 
+6213 da200107 arg 0x107 ,rega 
+6214 da40000f arg 0xf ,regb 
+6215 2040621e call mod2div 
+6216 1fed7e00 lshift8 pdata ,pdata 
+6217 da400007 arg 0x7 ,regb 
+6218 2040621e call mod2div 
+6219 1fe2fe2b xor_into 0x2b ,pdata 
+621a 1fe47e00 invert pdata ,pdata 
+621b 1fedfe00 reverse pdata ,pdata 
+621c 1fe20400 copy pdata ,temp 
+621d 20600000 rtn 
+
+mod2div:
+621e da600000 arg 0 ,regc 
+621f 1a427200 copy regb ,loopcnt 
+6220 20407bfb call right_shift_n 
+6221 1fe20400 icopy temp 
+
+mod2div_loop:
+6222 18427e00 copy temp ,pdata 
+6223 1a63a600 lshift regc ,regc 
+6224 c3046227 bbit0 8 ,mod2div_not_enough_reduction 
+6225 9a228400 ixor rega ,temp 
+6226 1a60a601 increase 1 ,regc 
+
+mod2div_not_enough_reduction:
+6227 18438400 lshift temp ,temp 
+6228 6fe183c7 fetch 3 ,mem_mod2div_temp 
+6229 1a40a5ff increase -1 ,regb 
+622a 2a41feff compare 0xff ,regb ,0xff 
+622b 2020e231 branch mod2div_end ,true 
+622c 1a427200 copy regb ,loopcnt 
+622d 20407bfb call right_shift_n 
+622e 2feffe00 isolate1 0 ,pdata 
+622f 79208400 setflag true ,0 ,temp 
+6230 20206222 branch mod2div_loop 
+
+mod2div_end:
+6231 18437e00 rshift temp ,pdata 
+6232 20600000 rtn 
+
+get_rfcomm_snd_adss:
+6233 6848c64f fetcht 1 ,mem_pn_dlci 
+
+dlci_to_address_cmd:
+6234 184b8400 lshift2 temp ,temp 
+6235 79200400 set1 rfcomm_address_ext_len ,temp 
+6236 6fe0c655 fetch 1 ,mem_rfcomm_initiator 
+6237 245a61d9 ncall set_cr_bit ,blank 
+6238 604883e0 storet 1 ,mem_rfcomm_send_adss 
+6239 20600000 rtn 
+
+channel_to_dlci:
+623a 18438400 lshift temp ,temp 
+623b 6fe0c655 fetch 1 ,mem_rfcomm_initiator 
+623c 793a0400 setflag blank ,0 ,temp 
+623d 20600000 rtn 
+
+rfcomm_rx_process_dlci0_sabm:
+623e 684883cf fetcht 1 ,mem_current_channel 
+623f 7003d1d7 jam 0xd7 ,mem_current_fcs 
+6240 20406377 call rfcomm_send_ua 
+6241 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+6242 79207e06 set1 l2cap_channel_rfcomm_only_sabm ,pdata 
+6243 79207e07 set1 l2cap_channel_rfcomm_only_ua ,pdata 
+6244 67e0c4e8 store 1 ,mem_rfcomm_state 
+6245 70465500 jam 0 ,mem_rfcomm_initiator 
+6246 20206358 branch rfcomm_rx_process_end 
+
+rfcomm_rx_process_dlci0_ua:
+6247 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+6248 79207e07 set1 l2cap_channel_rfcomm_only_ua ,pdata 
+6249 67e0c4e8 store 1 ,mem_rfcomm_state 
+624a 20206358 branch rfcomm_rx_process_end 
+
+rfcomm_rx_process:
+624b 471a4026 bpatchx patch26_4 ,mem_patch26 
+624c 6fe0c792 fetch 1 ,memui_reconnect_mode 
+624d c000624f beq no_reconnection ,rfcomm_rx_process_remote_page 
+624e 2020630d branch rfcomm_rx_process_reconn 
+
+rfcomm_rx_process_remote_page:
+624f 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+6250 1fe20c00 copy pdata ,contr 
+6251 20406279 call get_rfcomm_head_struct 
+6252 6fe083cf fetch 1 ,mem_current_channel 
+6253 c0006255 beq 0 ,parse_dlci0_rp 
+6254 202062d9 branch parse_uih_rp 
+
+parse_dlci0_rp:
+6255 471ac026 bpatchx patch26_5 ,mem_patch26 
+6256 6fe083d0 fetch 1 ,mem_current_frame_type 
+6257 c01fe23e beq rfcomm_frame_type_sabm ,rfcomm_rx_process_dlci0_sabm 
+6258 c039e247 beq rfcomm_frame_type_ua ,rfcomm_rx_process_dlci0_ua 
+6259 c077e25c beq rfcomm_frame_type_uih ,parse_dlci0_rp_uih 
+625a c029e305 beq rfcomm_frame_type_disconn ,parse_uih_rp_spp_disconn_send_event 
+625b 20600000 rtn 
+
+parse_dlci0_rp_uih:
+625c 6fe103d4 fetch 2 ,mem_rfcomm_uih_payload_ptr 
+625d 1fe20c00 copy pdata ,contr 
+625e 20406284 call get_rfcomm_uih_head_struct 
+625f 6fe083d6 fetch 1 ,mem_uih_cmd_type 
+6260 c020e266 beq uih_param_neg_cmd ,parse_dlci0_rp_uih_pn_cmd 
+6261 c020626e beq uih_param_neg_res ,parse_dlci0_rp_uih_pn_res 
+6262 c038e2a7 beq uih_modem_status_cmd ,parse_dlci0_rp_uih_ms_cmd 
+6263 c03862b3 beq uih_modem_status_res ,parse_dlci0_rp_uih_ms_res 
+6264 c024e2be beq uih_param_cmd_remove_port ,parse_dlci0_rp_uih_cmd_port 
+6265 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_pn_cmd:
+6266 20406270 call parse_dlci0_rp_uih_pn_res_common 
+6267 20206268 branch parse_dlci0_rp_uih_pn_cmd_spp 
+
+parse_dlci0_rp_uih_pn_cmd_spp:
+6268 6fe0c4eb fetch 1 ,mem_spp_state 
+6269 79207e00 set1 rfcomm_channel_state_pn_cmd ,pdata 
+626a 79207e01 set1 rfcomm_channel_state_pn_res ,pdata 
+626b 67e0c4eb store 1 ,mem_spp_state 
+626c 204063a1 call rfcomm_send_param_neg_res 
+626d 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_pn_res:
+626e 20406270 call parse_dlci0_rp_uih_pn_res_common 
+626f 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_pn_res_common:
+6270 2040628c call get_param_payload_ptr 
+6271 20206298 branch get_rfcomm_prarmer_negotiation 
+
+get_rfcomm_param_modem_status:
+6272 2040628c call get_param_payload_ptr 
+6273 efe08006 ifetch 1 ,contr 
+6274 1fe97e00 rshift3 pdata ,pdata 
+6275 67e0c65c store 1 ,mem_ms_channel 
+6276 efe08006 ifetch 1 ,contr 
+6277 67e083db store 1 ,mem_ms_param 
+6278 20600000 rtn 
+
+get_rfcomm_head_struct:
+6279 efe08006 ifetch 1 ,contr 
+627a 67e083ce store 1 ,mem_current_adss 
+627b 1fe97e00 rshift3 pdata ,pdata 
+627c 67e083cf store 1 ,mem_current_channel 
+627d efe08006 ifetch 1 ,contr 
+627e 67e083d0 store 1 ,mem_current_frame_type 
+
+get_rfcomm_current_length:
+627f 2040628f call get_rfcomm_length_common 
+6280 604903d2 storet 2 ,mem_current_length 
+6281 18c27e00 copy contr ,pdata 
+6282 67e103d4 store 2 ,mem_rfcomm_uih_payload_ptr 
+6283 20600000 rtn 
+
+get_rfcomm_uih_head_struct:
+6284 efe08006 ifetch 1 ,contr 
+6285 1fe37e00 rshift pdata ,pdata 
+6286 67e083d6 store 1 ,mem_uih_cmd_type 
+6287 2040628f call get_rfcomm_length_common 
+6288 604903d7 storet 2 ,mem_uih_length 
+6289 18c27e00 copy contr ,pdata 
+628a 67e103d9 store 2 ,mem_param_payload_ptr 
+628b 20600000 rtn 
+
+get_param_payload_ptr:
+628c 6fe103d9 fetch 2 ,mem_param_payload_ptr 
+628d 1fe20c00 copy pdata ,contr 
+628e 20600000 rtn 
+
+get_rfcomm_length_common:
+628f efe08006 ifetch 1 ,contr 
+6290 1fe20400 copy pdata ,temp 
+6291 18430400 rshift temp ,temp 
+6292 c3800000 rtnbit1 0 
+6293 efe08006 ifetch 1 ,contr 
+6294 1fe9fe00 lshift3 pdata ,pdata 
+6295 1ff27e00 lshift4 pdata ,pdata 
+6296 98408400 iadd temp ,temp 
+6297 20600000 rtn 
+
+get_rfcomm_prarmer_negotiation:
+6298 efe08006 ifetch 1 ,contr 
+6299 67e0c64f store 1 ,mem_pn_dlci 
+629a efe08006 ifetch 1 ,contr 
+629b 67e083dc store 1 ,mem_pn_credit_flow_type_info 
+629c efe08006 ifetch 1 ,contr 
+629d 67e083dd store 1 ,mem_pn_priority 
+629e efe08006 ifetch 1 ,contr 
+629f 67e083de store 1 ,mem_pn_acknowledg_timer 
+62a0 efe10006 ifetch 2 ,contr 
+62a1 67e14650 store 2 ,mem_pn_max_frame_size 
+62a2 efe08006 ifetch 1 ,contr 
+62a3 67e083df store 1 ,mem_pn_max_retrans 
+62a4 efe08006 ifetch 1 ,contr 
+62a5 67e0c65a store 1 ,mem_remote_credits 
+62a6 20600000 rtn 
+
+parse_dlci0_rp_uih_ms_cmd:
+62a7 20406272 call get_rfcomm_param_modem_status 
+62a8 202062a9 branch parse_dlci0_rp_uih_ms_cmd_spp 
+
+parse_dlci0_rp_uih_ms_cmd_spp:
+62a9 6fe0c4eb fetch 1 ,mem_spp_state 
+62aa 79207e05 set1 rfcomm_channel_state_rcv_ms_cmd ,pdata 
+62ab 79207e06 set1 rfcomm_channel_state_snd_ms_res ,pdata 
+62ac 67e0c4eb store 1 ,mem_spp_state 
+62ad 6848c64f fetcht 1 ,mem_pn_dlci 
+62ae 184b8400 lshift2 temp ,temp 
+62af 18418403 or_into 3 ,temp 
+62b0 204063d2 call rfcomm_send_modem_status_res 
+62b1 70465903 jam more_pkt_msc_cmd_spp ,mem_rfcomm_send_more_pkt 
+62b2 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_ms_res:
+62b3 70095b08 jam bt_evt_spp_connected ,mem_fifo_temp 
+62b4 204077a7 call ui_ipc_send_event 
+62b5 20406272 call get_rfcomm_param_modem_status 
+62b6 6fe0c65c fetch 1 ,mem_ms_channel 
+62b7 1fe67c01 sub pdata ,1 ,null 
+62b8 2022e2ba branch parse_dlci0_rp_uih_ms_res_spp ,zero 
+62b9 2020137a branch assert 
+
+parse_dlci0_rp_uih_ms_res_spp:
+62ba 6fe0c4eb fetch 1 ,mem_spp_state 
+62bb 79207e07 set1 rfcomm_channel_state_rcv_ms_res ,pdata 
+62bc 67e0c4eb store 1 ,mem_spp_state 
+62bd 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_rp_uih_cmd_port:
+62be 2040628c call get_param_payload_ptr 
+62bf efe08006 ifetch 1 ,contr 
+62c0 67e0898e store 1 ,mem_rpn_dlci 
+62c1 20405242 call l2cap_malloc_rfcomm_channel 
+62c2 20405250 call l2cap_get_rfcomm_tx_buff 
+62c3 5800000e setarg 0x000e 
+62c4 e7e10005 istore 2 ,contw 
+62c5 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+62c6 e7e10005 istore 2 ,contw 
+62c7 6fe0c655 fetch 1 ,mem_rfcomm_initiator 
+62c8 1fe3fe00 lshift pdata ,pdata 
+62c9 79207e00 set1 0 ,pdata 
+62ca e7e08005 istore 1 ,contw 
+62cb 471b4026 bpatchx patch26_6 ,mem_patch26 
+62cc 580015ef setarg 0x15ef 
+62cd e7e10005 istore 2 ,contw 
+62ce 58001191 setarg 0x1191 
+62cf e7e10005 istore 2 ,contw 
+62d0 6fe0898e fetch 1 ,mem_rpn_dlci 
+62d1 e7e08005 istore 1 ,contw 
+62d2 58000007 setarg 0x000007 
+62d3 e7e28005 istore 5 ,contw 
+62d4 58000001 setarg 0x01 
+62d5 e7e10005 istore 2 ,contw 
+62d6 204061f0 call rfcomm_calculate_fcs_dlci0 
+62d7 e7e08005 istore 1 ,contw 
+62d8 20600000 rtn 
+
+parse_uih_rp:
+62d9 202062da branch parse_uih_rp_spp 
+
+parse_uih_rp_spp:
+62da 471bc026 bpatchx patch26_7 ,mem_patch26 
+62db 6fe083d0 fetch 1 ,mem_current_frame_type 
+62dc c039e2e2 beq rfcomm_frame_type_ua ,parse_uih_rp_spp_ua 
+62dd c01fe2e6 beq rfcomm_frame_type_sabm ,parse_uih_rp_spp_sabm 
+62de c077e300 beq rfcomm_frame_type_uih ,parse_uih_spp_uih 
+62df c07fe2f8 beq rfcomm_frame_type_uih_credits ,parse_uih_spp_uih_credits 
+62e0 c029e307 beq rfcomm_frame_type_disconn ,parse_uih_rp_spp_disconn 
+62e1 20600000 rtn 
+
+parse_uih_rp_spp_ua:
+62e2 6fe0c4eb fetch 1 ,mem_spp_state 
+62e3 79207e03 set1 rfcomm_channel_state_ua ,pdata 
+62e4 67e0c4eb store 1 ,mem_spp_state 
+62e5 20206358 branch rfcomm_rx_process_end 
+
+parse_uih_rp_spp_sabm:
+62e6 6fe0c4eb fetch 1 ,mem_spp_state 
+62e7 79207e03 set1 rfcomm_channel_state_ua ,pdata 
+62e8 79207e02 set1 rfcomm_channel_state_sabm ,pdata 
+62e9 67e0c4eb store 1 ,mem_spp_state 
+62ea 6fe083ce fetch 1 ,mem_current_adss 
+62eb 204061e7 call rfcomm_calculate_fcs_ua 
+62ec 67e083d1 store 1 ,mem_current_fcs 
+62ed 20406377 call rfcomm_send_ua 
+62ee 6fe083ce fetch 1 ,mem_current_adss 
+62ef 1feb7e00 rshift2 pdata ,pdata 
+62f0 67e0c64f store 1 ,mem_pn_dlci 
+62f1 1febfe00 lshift2 pdata ,pdata 
+62f2 793ffe01 set0 rfcomm_address_cr ,pdata 
+62f3 79207e00 set1 rfcomm_address_ext_len ,pdata 
+62f4 d8404657 arg mem_hiufcs_spp ,temp 
+62f5 604903ca storet 2 ,mem_contw_temp 
+62f6 204061f6 call rfcomm_save_fcs_uih 
+62f7 20206358 branch rfcomm_rx_process_end 
+
+parse_uih_spp_uih_credits:
+62f8 6fe103d4 fetch 2 ,mem_rfcomm_uih_payload_ptr 
+62f9 1fe20c00 copy pdata ,contr 
+62fa 1fe0fe01 increase 1 ,pdata 
+62fb 67e103d4 store 2 ,mem_rfcomm_uih_payload_ptr 
+62fc efe08006 ifetch 1 ,contr 
+62fd 6848c65a fetcht 1 ,mem_remote_credits 
+62fe 9840fe00 iadd temp ,pdata 
+62ff 67e0c65a store 1 ,mem_remote_credits 
+
+parse_uih_spp_uih:
+6300 20406403 call rfcomm_increase_credit_given 
+
+parse_uih_spp_uih_cont:
+6301 20406233 call get_rfcomm_snd_adss 
+6302 204063e9 call rfcomm_send_uih_without_payload 
+6303 2040640c call spp_process_rx_data 
+6304 20206358 branch rfcomm_rx_process_end 
+
+parse_uih_rp_spp_disconn_send_event:
+6305 70095b09 jam bt_evt_spp_disconnected ,mem_fifo_temp 
+6306 204077a7 call ui_ipc_send_event 
+
+parse_uih_rp_spp_disconn:
+6307 204061cf call rfcomm_init_spp 
+6308 6fe083ce fetch 1 ,mem_current_adss 
+6309 204061e7 call rfcomm_calculate_fcs_ua 
+630a 67e083d1 store 1 ,mem_current_fcs 
+630b 20406377 call rfcomm_send_ua 
+630c 20206358 branch rfcomm_rx_process_end 
+
+rfcomm_rx_process_reconn:
+630d 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+630e 1fe20c00 copy pdata ,contr 
+630f 20406279 call get_rfcomm_head_struct 
+6310 6fe083cf fetch 1 ,mem_current_channel 
+6311 c0006313 beq 0 ,parse_dlci0_reconn 
+6312 20206347 branch parse_uih_reconn 
+
+parse_dlci0_reconn:
+6313 471c4027 bpatchx patch27_0 ,mem_patch27 
+6314 6fe083d0 fetch 1 ,mem_current_frame_type 
+6315 c01fe23e beq rfcomm_frame_type_sabm ,rfcomm_rx_process_dlci0_sabm 
+6316 c039e247 beq rfcomm_frame_type_ua ,rfcomm_rx_process_dlci0_ua 
+6317 c077e319 beq rfcomm_frame_type_uih ,parse_dlci0_reconn_uih 
+6318 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih:
+6319 6fe103d4 fetch 2 ,mem_rfcomm_uih_payload_ptr 
+631a 1fe20c00 copy pdata ,contr 
+631b 20406284 call get_rfcomm_uih_head_struct 
+631c 6fe083d6 fetch 1 ,mem_uih_cmd_type 
+631d c020e322 beq uih_param_neg_cmd ,parse_dlci0_reconn_uih_pn_cmd 
+631e c0206322 beq uih_param_neg_res ,parse_dlci0_reconn_uih_pn_cmd 
+631f c038e32d beq uih_modem_status_cmd ,parse_dlci0_reconn_uih_ms_cmd 
+6320 c038633d beq uih_modem_status_res ,parse_dlci0_reconn_uih_ms_res 
+6321 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih_pn_cmd:
+6322 20406270 call parse_dlci0_rp_uih_pn_res_common 
+6323 6fe0c64f fetch 1 ,mem_pn_dlci 
+6324 1fe37e00 rshift pdata ,pdata 
+6325 6848c656 fetcht 1 ,mem_remote_spp_channel 
+6326 98467c00 isub temp ,null 
+6327 2022e329 branch parse_dlci0_reconn_uih_pn_cmd_spp ,zero 
+6328 2020137a branch assert 
+
+parse_dlci0_reconn_uih_pn_cmd_spp:
+6329 6fe0c4eb fetch 1 ,mem_spp_state 
+632a 79207e01 set1 rfcomm_channel_state_pn_res ,pdata 
+632b 67e0c4eb store 1 ,mem_spp_state 
+632c 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih_ms_cmd:
+632d 20406272 call get_rfcomm_param_modem_status 
+632e 6fe0c65c fetch 1 ,mem_ms_channel 
+632f 6848c656 fetcht 1 ,mem_remote_spp_channel 
+6330 98467c00 isub temp ,null 
+6331 2022e334 branch parse_dlci0_reconn_uih_ms_cmd_spp ,zero 
+6332 2020137a branch assert 
+6333 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih_ms_cmd_spp:
+6334 6fe0c4eb fetch 1 ,mem_spp_state 
+6335 79207e05 set1 rfcomm_channel_state_rcv_ms_cmd ,pdata 
+6336 79207e06 set1 rfcomm_channel_state_snd_ms_res ,pdata 
+6337 67e0c4eb store 1 ,mem_spp_state 
+6338 6848c64f fetcht 1 ,mem_pn_dlci 
+6339 184b8400 lshift2 temp ,temp 
+633a 18418403 or_into 3 ,temp 
+633b 204063d2 call rfcomm_send_modem_status_res 
+633c 20206358 branch rfcomm_rx_process_end 
+
+parse_dlci0_reconn_uih_ms_res:
+633d 20406272 call get_rfcomm_param_modem_status 
+633e 6fe0c65c fetch 1 ,mem_ms_channel 
+633f 6848c656 fetcht 1 ,mem_remote_spp_channel 
+6340 98467c00 isub temp ,null 
+6341 2022e343 branch parse_dlci0_reconn_uih_ms_res_spp ,zero 
+6342 2020137a branch assert 
+
+parse_dlci0_reconn_uih_ms_res_spp:
+6343 6fe0c4eb fetch 1 ,mem_spp_state 
+6344 79207e07 set1 rfcomm_channel_state_rcv_ms_res ,pdata 
+6345 67e0c4eb store 1 ,mem_spp_state 
+6346 20206358 branch rfcomm_rx_process_end 
+
+parse_uih_reconn:
+6347 6fe083cf fetch 1 ,mem_current_channel 
+6348 6848c656 fetcht 1 ,mem_remote_spp_channel 
+6349 98467c00 isub temp ,null 
+634a 2022e34d branch parse_uih_reconn_spp ,zero 
+634b 2020137a branch assert 
+634c 20206358 branch rfcomm_rx_process_end 
+
+parse_uih_reconn_spp:
+634d 6fe083d0 fetch 1 ,mem_current_frame_type 
+634e c039e352 beq rfcomm_frame_type_ua ,parse_uih_reconn_spp_ua 
+634f c077e300 beq rfcomm_frame_type_uih ,parse_uih_spp_uih 
+6350 c07fe2f8 beq rfcomm_frame_type_uih_credits ,parse_uih_spp_uih_credits 
+6351 c029e357 beq rfcomm_frame_type_disconn ,parse_uih_reconn_spp_disconn 
+
+parse_uih_reconn_spp_ua:
+6352 6fe0c4eb fetch 1 ,mem_spp_state 
+6353 79207e03 set1 rfcomm_channel_state_ua ,pdata 
+6354 67e0c4eb store 1 ,mem_spp_state 
+6355 20206358 branch rfcomm_rx_process_end 
+
+parse_uih_reconn_spp_sabm:
+6356 20206356 branch parse_uih_reconn_spp_sabm 
+
+parse_uih_reconn_spp_disconn:
+6357 20206307 branch parse_uih_rp_spp_disconn 
+
+rfcomm_rx_process_end:
+6358 20600000 rtn 
+
+rfcomm_send_more_pkt:
+6359 6fe0c659 fetch 1 ,mem_rfcomm_send_more_pkt 
+635a 207a0000 rtn blank 
+635b c001e35d beq more_pkt_msc_cmd_spp ,rfcomm_send_more_pkt_msc_cmd_spp 
+635c 2020137a branch assert 
+
+rfcomm_send_more_pkt_msc_cmd_spp:
+635d 70465900 jam 0 ,mem_rfcomm_send_more_pkt 
+635e 20405242 call l2cap_malloc_rfcomm_channel 
+635f d8400001 arg spp_slave_channel ,temp 
+6360 6848c64f fetcht 1 ,mem_pn_dlci 
+6361 184b8400 lshift2 temp ,temp 
+
+rfcomm_send_more_pkt_msc_cmd_spp0:
+6362 18418403 or_into 0x03 ,temp 
+6363 da2000aa arg 0xaa ,rega 
+6364 204063bd call rfcomm_send_modem_status_cmd 
+6365 20405250 call l2cap_get_rfcomm_tx_buff 
+6366 18a20c00 copy contw ,contr 
+6367 efe10006 ifetch 2 ,contr 
+6368 203a137a branch assert ,blank 
+6369 20600000 rtn 
+
+rfcomm_send_sabm:
+636a 20405250 call l2cap_get_rfcomm_tx_buff 
+636b 58000004 setarg 0x0004 
+636c e7e10005 istore 2 ,contw 
+636d 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+636e e7e10005 istore 2 ,contw 
+636f 6fe083ce fetch 1 ,mem_current_adss 
+6370 e7e08005 istore 1 ,contw 
+6371 471cc027 bpatchx patch27_1 ,mem_patch27 
+6372 5800013f setarg 0x013f 
+6373 e7e10005 istore 2 ,contw 
+6374 6fe083d1 fetch 1 ,mem_current_fcs 
+6375 e7e08005 istore 1 ,contw 
+6376 20600000 rtn 
+
+rfcomm_send_ua:
+6377 20405242 call l2cap_malloc_rfcomm_channel 
+6378 20405250 call l2cap_get_rfcomm_tx_buff 
+6379 58000004 setarg 0x0004 
+637a e7e10005 istore 2 ,contw 
+637b 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+637c e7e10005 istore 2 ,contw 
+637d 6fe083ce fetch 1 ,mem_current_adss 
+637e e7e08005 istore 1 ,contw 
+637f 471d4027 bpatchx patch27_2 ,mem_patch27 
+6380 58000173 setarg 0x0173 
+6381 e7e10005 istore 2 ,contw 
+6382 6fe083d1 fetch 1 ,mem_current_fcs 
+6383 e7e08005 istore 1 ,contw 
+6384 20600000 rtn 
+
+rfcomm_send_param_neg_cmd:
+6385 20405250 call l2cap_get_rfcomm_tx_buff 
+6386 5800000e setarg 0x000e 
+6387 e7e10005 istore 2 ,contw 
+6388 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+6389 e7e10005 istore 2 ,contw 
+638a 6fe0c655 fetch 1 ,mem_rfcomm_initiator 
+638b 1fe3fe00 lshift pdata ,pdata 
+638c 79207e00 set1 0 ,pdata 
+638d e7e08005 istore 1 ,contw 
+638e 471dc027 bpatchx patch27_3 ,mem_patch27 
+638f 580015ef setarg 0x15ef 
+6390 e7e10005 istore 2 ,contw 
+6391 58001183 setarg 0x1183 
+6392 e7e10005 istore 2 ,contw 
+6393 18427e00 copy temp ,pdata 
+6394 e7e08005 istore 1 ,contw 
+6395 580000f0 setarg 0x0000f0 
+6396 e7e18005 istore 3 ,contw 
+6397 5800007f setarg rfcomm_max_frame_size 
+6398 e7e10005 istore 2 ,contw 
+6399 58000000 setarg 0 
+639a e7e08005 istore 1 ,contw 
+639b 58000001 setarg 0x01 
+639c e7e08005 istore 1 ,contw 
+639d 204061f0 call rfcomm_calculate_fcs_dlci0 
+639e e7e08005 istore 1 ,contw 
+639f 70465b10 jam 0x10 ,mem_credit_given 
+63a0 20600000 rtn 
+
+rfcomm_send_param_neg_res:
+63a1 20405242 call l2cap_malloc_rfcomm_channel 
+63a2 20405250 call l2cap_get_rfcomm_tx_buff 
+63a3 5800000e setarg 0x000e 
+63a4 e7e10005 istore 2 ,contw 
+63a5 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+63a6 e7e10005 istore 2 ,contw 
+63a7 6fe0c655 fetch 1 ,mem_rfcomm_initiator 
+63a8 1fe3fe00 lshift pdata ,pdata 
+63a9 79207e00 set1 0 ,pdata 
+63aa e7e08005 istore 1 ,contw 
+63ab 471e4027 bpatchx patch27_4 ,mem_patch27 
+63ac 580015ef setarg 0x15ef 
+63ad e7e10005 istore 2 ,contw 
+63ae 58001181 setarg 0x1181 
+63af e7e10005 istore 2 ,contw 
+63b0 6fe0c64f fetch 1 ,mem_pn_dlci 
+63b1 e7e08005 istore 1 ,contw 
+63b2 580000e0 setarg 0x0000e0 
+63b3 e7e18005 istore 3 ,contw 
+63b4 6fe1465e fetch 2 ,mem_rfcomm_max_frame_size 
+63b5 e7e10005 istore 2 ,contw 
+63b6 58000000 setarg 0x00 
+63b7 e7e08005 istore 1 ,contw 
+63b8 6fe0c660 fetch 1 ,mem_rfcomm_credit_init_data 
+63b9 e7e08005 istore 1 ,contw 
+63ba 204061f0 call rfcomm_calculate_fcs_dlci0 
+63bb e7e08005 istore 1 ,contw 
+63bc 20600000 rtn 
+
+rfcomm_send_modem_status_cmd:
+63bd 20405250 call l2cap_get_rfcomm_tx_buff 
+63be 58000008 setarg 0x0008 
+63bf e7e10005 istore 2 ,contw 
+63c0 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+63c1 e7e10005 istore 2 ,contw 
+63c2 6fe0c655 fetch 1 ,mem_rfcomm_initiator 
+63c3 1fe3fe00 lshift pdata ,pdata 
+63c4 79207e00 set1 0 ,pdata 
+63c5 e7e08005 istore 1 ,contw 
+63c6 471ec027 bpatchx patch27_5 ,mem_patch27 
+63c7 580009ef setarg 0x09ef 
+63c8 e7e10005 istore 2 ,contw 
+63c9 580005e3 setarg 0x05e3 
+63ca e7e10005 istore 2 ,contw 
+63cb 18427e00 copy temp ,pdata 
+63cc e7e08005 istore 1 ,contw 
+63cd 5800008d setarg 0x8d 
+63ce e7e08005 istore 1 ,contw 
+63cf 204061f0 call rfcomm_calculate_fcs_dlci0 
+63d0 e7e08005 istore 1 ,contw 
+63d1 20600000 rtn 
+
+rfcomm_send_modem_status_res:
+63d2 20405242 call l2cap_malloc_rfcomm_channel 
+63d3 20405250 call l2cap_get_rfcomm_tx_buff 
+63d4 58000008 setarg 0x0008 
+63d5 e7e10005 istore 2 ,contw 
+63d6 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+63d7 e7e10005 istore 2 ,contw 
+63d8 18421600 copy temp ,timeup 
+63d9 6fe0c655 fetch 1 ,mem_rfcomm_initiator 
+63da 1fe3fe00 lshift pdata ,pdata 
+63db 79207e00 set1 0 ,pdata 
+63dc e7e08005 istore 1 ,contw 
+63dd 471f4027 bpatchx patch27_6 ,mem_patch27 
+63de 580009ef setarg 0x09ef 
+63df e7e10005 istore 2 ,contw 
+63e0 580005e1 setarg 0x05e1 
+63e1 e7e10005 istore 2 ,contw 
+63e2 19627e00 copy timeup ,pdata 
+63e3 e7e08005 istore 1 ,contw 
+63e4 5800008d setarg 0x8d 
+63e5 e7e08005 istore 1 ,contw 
+63e6 204061f0 call rfcomm_calculate_fcs_dlci0 
+63e7 e7e08005 istore 1 ,contw 
+63e8 20600000 rtn 
+
+rfcomm_send_uih_without_payload:
+63e9 471fc027 bpatchx patch27_7 ,mem_patch27 
+63ea 6fe0c65b fetch 1 ,mem_credit_given 
+63eb 207a0000 rtn blank 
+63ec 6ff10112 fetch 2 ,core_uart_rxitems 
+63ed 247a0000 nrtn blank 
+63ee 1a227e00 copy rega ,pdata 
+63ef 67e0895d store 1 ,mem_pdatatemp + 1 
+63f0 6048895c storet 1 ,mem_pdatatemp 
+63f1 2040520e call l2cap_malloc_is_fifo_full 
+63f2 247a0000 nrtn blank 
+63f3 20405242 call l2cap_malloc_rfcomm_channel 
+63f4 20405250 call l2cap_get_rfcomm_tx_buff 
+63f5 58000005 setarg 0x05 
+63f6 e7e10005 istore 2 ,contw 
+63f7 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+63f8 e7e10005 istore 2 ,contw 
+63f9 6fe083e0 fetch 1 ,mem_rfcomm_send_adss 
+63fa e7e08005 istore 1 ,contw 
+63fb 580001ff setarg 0x01ff 
+63fc e7e10005 istore 2 ,contw 
+63fd 6fe0c65b fetch 1 ,mem_credit_given 
+63fe e7e08005 istore 1 ,contw 
+63ff 6fe0c658 fetch 1 ,mem_hiufcs_spp_wcredits 
+6400 e7e08005 istore 1 ,contw 
+6401 70465b00 jam 0 ,mem_credit_given 
+6402 20600000 rtn 
+
+rfcomm_increase_credit_given:
+6403 47204028 bpatchx patch28_0 ,mem_patch28 
+6404 6fe0c65d fetch 1 ,mem_rfcomm_credit_flag 
+6405 c1008000 rtneq credit_enable 
+6406 6fe103d2 fetch 2 ,mem_current_length 
+6407 207a0000 rtn blank 
+6408 6fe0c65b fetch 1 ,mem_credit_given 
+6409 1fe0fe01 increase 1 ,pdata 
+640a 67e0c65b store 1 ,mem_credit_given 
+640b 20600000 rtn 
+
+spp_process_rx_data:
+640c 6fe14661 fetch 2 ,mem_cb_receive_spp_data 
+640d 20207d47 branch callback_func 
+
+spp_tx_rfcomm_packet:
+640e 4720c028 bpatchx patch28_1 ,mem_patch28 
+640f 6fe0c65a fetch 1 ,mem_remote_credits 
+6410 207a0000 rtn blank 
+6411 1fe0ffff increase -1 ,pdata 
+6412 67e0c65a store 1 ,mem_remote_credits 
+6413 6fe14650 fetch 2 ,mem_pn_max_frame_size 
+6414 684947b0 fetcht 2 ,mem_current_packet_length 
+6415 98467c00 isub temp ,null 
+6416 20216418 branch ssp_tx_rfcomm_from_uart ,positive 
+6417 67e147b0 store 2 ,mem_current_packet_length 
+
+ssp_tx_rfcomm_from_uart:
+6418 6fe0c65b fetch 1 ,mem_credit_given 
+6419 203a6420 branch ssp_tx_rfcomm_from_uart_without_credit ,blank 
+641a 7003e301 jam 1 ,mem_rfcomm_send_offset 
+641b 6fe0c658 fetch 1 ,mem_hiufcs_spp_wcredits 
+641c 67e083e2 store 1 ,mem_rfcomm_send_fcs 
+641d 580000ff setarg rsp_rx_uih_wdata 
+641e 67e083e1 store 1 ,mem_rfcomm_send_frame_type 
+641f 20206425 branch ssp_tx_rfcomm_from_uart_common 
+
+ssp_tx_rfcomm_from_uart_without_credit:
+6420 7003e300 jam 0 ,mem_rfcomm_send_offset 
+6421 6fe0c657 fetch 1 ,mem_hiufcs_spp 
+6422 67e083e2 store 1 ,mem_rfcomm_send_fcs 
+6423 580000ef setarg rsp_tx_uih 
+6424 67e083e1 store 1 ,mem_rfcomm_send_frame_type 
+
+ssp_tx_rfcomm_from_uart_common:
+6425 47214028 bpatchx patch28_2 ,mem_patch28 
+6426 6fe147b0 fetch 2 ,mem_current_packet_length 
+6427 1fe67c7f sub pdata ,127 ,null 
+6428 2021642c branch ssp_tx_rfcomm_from_uart_common0 ,positive 
+6429 6fe083e3 fetch 1 ,mem_rfcomm_send_offset 
+642a 1fe0fe01 increase 1 ,pdata 
+642b 67e083e3 store 1 ,mem_rfcomm_send_offset 
+
+ssp_tx_rfcomm_from_uart_common0:
+642c 20406233 call get_rfcomm_snd_adss 
+642d 6fe147b0 fetch 2 ,mem_current_packet_length 
+642e 1fe0fe08 increase 8 ,pdata 
+642f 684883e3 fetcht 1 ,mem_rfcomm_send_offset 
+6430 9840a200 iadd temp ,rega 
+6431 204051ba call l2cap_malloc 
+6432 67e10328 store 2 ,mem_rfcomm_tx_buff_ptr 
+6433 1fe0fe04 increase 4 ,pdata 
+6434 67e1032a store 2 ,mem_rfcomm_tx_payload_ptr 
+6435 1fe20a00 copy pdata ,contw 
+6436 6fe083e0 fetch 1 ,mem_rfcomm_send_adss 
+6437 e7e08005 istore 1 ,contw 
+6438 6fe083e1 fetch 1 ,mem_rfcomm_send_frame_type 
+6439 e7e08005 istore 1 ,contw 
+643a 20406456 call ssp_tx_write_length 
+643b 20406467 call ssp_tx_write_given_credit 
+643c 4721c028 bpatchx patch28_3 ,mem_patch28 
+643d 6fe14663 fetch 2 ,mem_nl_rx_data_src 
+643e 1fe20600 copy pdata ,contu 
+643f 6fe147b0 fetch 2 ,mem_current_packet_length 
+6440 1fe27200 copy pdata ,loopcnt 
+6441 20405e5f call uart_copy_rx_bytes_fast 
+6442 18a20400 copy contw ,temp 
+6443 18627e00 copy contu ,pdata 
+6444 67e14663 store 2 ,mem_nl_rx_data_src 
+6445 18420a00 copy temp ,contw 
+6446 6fe083e2 fetch 1 ,mem_rfcomm_send_fcs 
+6447 e7e08005 istore 1 ,contw 
+6448 6fe10328 fetch 2 ,mem_rfcomm_tx_buff_ptr 
+6449 1fe20a00 copy pdata ,contw 
+644a 6fe147b0 fetch 2 ,mem_current_packet_length 
+644b 684883e3 fetcht 1 ,mem_rfcomm_send_offset 
+644c 9840fe00 iadd temp ,pdata 
+644d 1fe0fe04 increase 4 ,pdata 
+644e e7e10005 istore 2 ,contw 
+644f 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+6450 e7e10005 istore 2 ,contw 
+6451 70465b00 jam 0 ,mem_credit_given 
+6452 6fe14665 fetch 2 ,mem_nl_rx_len_all 
+6453 c000393a beq 0 ,module_hci_command_tx_spp_tx_complete 
+6454 7009d100 jam hci_not_discard_packet ,mem_module_temp_nl_discard_packet 
+6455 20600000 rtn 
+
+ssp_tx_write_length:
+6456 47224028 bpatchx patch28_4 ,mem_patch28 
+6457 6fe147b0 fetch 2 ,mem_current_packet_length 
+6458 1fe67c7f sub pdata ,0x7f ,null 
+6459 2421645e nbranch ssp_tx_write_long_packet ,positive 
+645a 1fe3fe00 lshift pdata ,pdata 
+645b 79207e00 set1 0 ,pdata 
+645c e7e08005 istore 1 ,contw 
+645d 20600000 rtn 
+
+ssp_tx_write_long_packet:
+645e 6fe147b0 fetch 2 ,mem_current_packet_length 
+645f 1fe97e00 rshift3 pdata ,pdata 
+6460 1ff18400 rshift4 pdata ,temp 
+6461 1fe17e7f and_into 0x7f ,pdata 
+6462 1fe3fe00 lshift pdata ,pdata 
+6463 793ffe00 set0 0 ,pdata 
+6464 e7e08005 istore 1 ,contw 
+6465 e0408005 istoret 1 ,contw 
+6466 20600000 rtn 
+
+ssp_tx_write_given_credit:
+6467 6fe0c65b fetch 1 ,mem_credit_given 
+6468 207a0000 rtn blank 
+6469 e7e08005 istore 1 ,contw 
+646a 20600000 rtn 
+
+scheduler_process:
+646b 4722c028 bpatchx patch28_5 ,mem_patch28 
+646c 204077bd call check_51cmd 
+646d 20403157 call app_process_bb_event 
+646e 2040595d call process_conn_sm 
+646f 47234028 bpatchx patch28_6 ,mem_patch28 
+6470 20406fa2 call sp_calc_sequence 
+6471 20406f7b call simple_pairing_sequence 
+6472 20406f8c call master_simple_paring_sequence 
+6473 2040520e call l2cap_malloc_is_fifo_full 
+6474 247a0000 nrtn blank 
+6475 20404d21 call l2cap_call_proc_sigal_pending 
+6476 2040520e call l2cap_malloc_is_fifo_full 
+6477 247a0000 nrtn blank 
+6478 4723c028 bpatchx patch28_7 ,mem_patch28 
+6479 204064b5 call process_upper_sm 
+647a 20404edf call l2cap_send_config_req 
+647b 20406359 call rfcomm_send_more_pkt 
+
+scheduler_process0:
+647c 2040647f call scheduler_tx_disconnect_hid 
+647d 47244029 bpatchx patch29_0 ,mem_patch29 
+647e 20203153 branch app_process_bt 
+
+scheduler_tx_disconnect_hid:
+647f 6fe08330 fetch 1 ,mem_control_tasks 
+6480 c2805002 bbit1 l2cap_disconnect_interrupt ,l2cap_disconnect_interrupt_req 
+6481 c283d00c bbit1 l2cap_disconnect_control ,l2cap_disconnect_control_req 
+6482 20600000 rtn 
+
+scheduler_tx_l2cap_pkt:
+6483 4724c029 bpatchx patch29_1 ,mem_patch29 
+6484 20405214 call l2cap_malloc_is_fifo_empty 
+6485 207a0000 rtn blank 
+6486 6fe0804b fetch 1 ,mem_op 
+6487 c3830000 rtnbit1 op_txl2cap 
+6488 204051f8 call l2cap_malloc_fifo_out 
+6489 67e100be store 2 ,mem_txptr 
+648a 1fe20c00 copy pdata ,contr 
+648b efe10006 ifetch 2 ,contr 
+648c 1fe0fe04 increase 4 ,pdata 
+648d 67e141e9 store 2 ,mem_tx_len 
+648e 7041e806 jam 6 ,mem_tx_lch 
+648f 47254029 bpatchx patch29_2 ,mem_patch29 
+6490 6fe144dd fetch 2 ,mem_l2cap_tx_multi_offset 
+6491 203a649e branch scheduler_tx_l2cap_start_pkt ,blank 
+6492 6fe0804b fetch 1 ,mem_op 
+6493 c4038000 rtnbit0 op_pkt_comp 
+6494 793ffe07 set0 op_pkt_comp ,pdata 
+6495 67e0804b store 1 ,mem_op 
+6496 7041e805 jam 5 ,mem_tx_lch 
+6497 684944dd fetcht 2 ,mem_l2cap_tx_multi_offset 
+6498 6fe100be fetch 2 ,mem_txptr 
+6499 9840fe00 iadd temp ,pdata 
+649a 67e100be store 2 ,mem_txptr 
+649b 6fe141e9 fetch 2 ,mem_tx_len 
+649c 98467e00 isub temp ,pdata 
+649d 67e141e9 store 2 ,mem_tx_len 
+
+scheduler_tx_l2cap_start_pkt:
+649e 6fe141e9 fetch 2 ,mem_tx_len 
+649f 203a137a branch assert ,blank 
+64a0 d8400104 arg l2cap_max_pkt_len ,temp 
+64a1 98467e00 isub temp ,pdata 
+64a2 2022e4a9 branch scheduler_tx_l2cap_last_pkt ,zero 
+64a3 242164a9 nbranch scheduler_tx_l2cap_last_pkt ,positive 
+64a4 604941e9 storet 2 ,mem_tx_len 
+64a5 6fe144dd fetch 2 ,mem_l2cap_tx_multi_offset 
+64a6 9840fe00 iadd temp ,pdata 
+64a7 67e144dd store 2 ,mem_l2cap_tx_multi_offset 
+64a8 202064ab branch scheduler_tx_l2cap_pkt_end 
+
+scheduler_tx_l2cap_last_pkt:
+64a9 58000000 setarg 0 
+64aa 67e144dd store 2 ,mem_l2cap_tx_multi_offset 
+
+scheduler_tx_l2cap_pkt_end:
+64ab 6fe0804b fetch 1 ,mem_op 
+64ac 79207e06 set1 op_txl2cap ,pdata 
+64ad 67e0804b store 1 ,mem_op 
+64ae 20600000 rtn 
+
+scheduler_start_upper_sm:
+64af 6fe0c795 fetch 1 ,mem_ui_profile_supported 
+64b0 c28064b3 bbit1 support_hid ,scheduler_start_upper_sm_hid 
+64b1 70033801 jam uppersm_reconn_sdp_conn ,mem_upper_sm_reconn 
+64b2 20600000 rtn 
+
+scheduler_start_upper_sm_hid:
+64b3 7003380f jam uppersm_reconn_hid_ctrl_conn ,mem_upper_sm_reconn 
+64b4 20600000 rtn 
+
+process_upper_sm:
+64b5 6fe0c792 fetch 1 ,memui_reconnect_mode 
+64b6 243a64bb nbranch process_upper_sm_reconn ,blank 
+
+process_upper_sm_remote_page:
+64b7 6fe08337 fetch 1 ,mem_upper_sm_remote_page 
+64b8 207a0000 rtn blank 
+64b9 70033700 jam 0 ,mem_upper_sm_remote_page 
+
+process_upper_sm_rp_wait:
+64ba 20600000 rtn 
+
+process_upper_sm_reconn:
+64bb 4725c029 bpatchx patch29_3 ,mem_patch29 
+64bc 6fe08338 fetch 1 ,mem_upper_sm_reconn 
+64bd 207a0000 rtn blank 
+64be c000e4db beq uppersm_reconn_sdp_conn ,process_upper_sm_reconn_sdp_conn 
+64bf c0016534 beq uppersm_reconn_sdp_conn_wait ,process_upper_sm_reconn_sdp_conn_wait 
+64c0 c001e4e1 beq uppersm_reconn_sdp_cfg ,process_upper_sm_reconn_sdp_cfg 
+64c1 c0026538 beq uppersm_reconn_sdp_cfg_wait ,process_upper_sm_reconn_sdp_cfg_wait 
+64c2 c01de4eb beq uppersm_reconn_ss_spp ,process_upper_sm_reconn_ss_spp 
+64c3 c01e653b beq uppersm_reconn_ss_spp_wait ,process_upper_sm_reconn_ss_spp_wait 
+64c4 c006e4f0 beq uppersm_reconn_sdp_disconn ,process_upper_sm_reconn_sdp_disconn 
+64c5 c0076540 beq uppersm_reconn_sdp_disconn_wait ,process_upper_sm_reconn_sdp_disconn_wait 
+64c6 c007e4f3 beq uppersm_reconn_hid_ctrl_conn ,process_upper_sm_reconn_hid_ctrl_conn 
+64c7 c0086546 beq uppersm_reconn_hid_ctrl_conn_wait ,process_upper_sm_reconn_hid_ctrl_conn_wait 
+64c8 c008e4f9 beq uppersm_reconn_hid_ctrl_cfg ,process_upper_sm_reconn_hid_ctrl_cfg 
+64c9 c009654a beq uppersm_reconn_hid_ctrl_cfg_wait ,process_upper_sm_reconn_hid_ctrl_cfg_wait 
+64ca c009e4ff beq uppersm_reconn_hid_int_conn ,process_upper_sm_reconn_hid_int_conn 
+64cb c00a654e beq uppersm_reconn_hid_int_conn_wait ,process_upper_sm_reconn_hid_int_conn_wait 
+64cc c00ae505 beq uppersm_reconn_hid_int_cfg ,process_upper_sm_reconn_hid_int_cfg 
+64cd c00b6552 beq uppersm_reconn_hid_int_cfg_wait ,process_upper_sm_reconn_hid_int_cfg_wait 
+64ce c00be50b beq uppersm_reconn_rfcomm_conn ,process_upper_sm_reconn_rfcomm_conn 
+64cf c00c6557 beq uppersm_reconn_rfcomm_conn_wait ,process_upper_sm_reconn_rfcomm_conn_wait 
+64d0 c00ce511 beq uppersm_reconn_rfcomm_cfg ,process_upper_sm_reconn_rfcomm_cfg 
+64d1 c00d655b beq uppersm_reconn_rfcomm_cfg_wait ,process_upper_sm_reconn_rfcomm_cfg_wait 
+64d2 c00de517 beq uppersm_reconn_rfcomm_sabm ,process_upper_sm_reconn_rfcomm_sabm 
+64d3 c00e655f beq uppersm_reconn_rfcomm_sabm_wait ,process_upper_sm_reconn_rfcomm_sabm_wait 
+64d4 c00ee51d beq uppersm_reconn_spp_cmd_pn ,process_upper_sm_reconn_spp_cmd_pn 
+64d5 c00f6564 beq uppersm_reconn_spp_cmd_pn_wait ,process_upper_sm_reconn_spp_cmd_pn_wait 
+64d6 c00fe523 beq uppersm_reconn_spp_sabm ,process_upper_sm_reconn_spp_sabm 
+64d7 c0106568 beq uppersm_reconn_spp_sabm_wait ,process_upper_sm_reconn_spp_sabm_wait 
+64d8 c010e52e beq uppersm_reconn_spp_cmd_ms ,process_upper_sm_reconn_spp_cmd_ms 
+64d9 c011656c beq uppersm_reconn_spp_cmd_ms_wait ,process_upper_sm_reconn_spp_cmd_ms_wait 
+
+process_upper_sm_reconn_wait:
+64da 20600000 rtn 
+
+process_upper_sm_reconn_sdp_conn:
+64db 20406577 call upper_sm_send_sdp_conn 
+64dc 70033802 jam uppersm_reconn_sdp_conn_wait ,mem_upper_sm_reconn 
+64dd 6fe0c4e7 fetch 1 ,mem_sdp_state 
+64de 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+64df 67e0c4e7 store 1 ,mem_sdp_state 
+64e0 20600000 rtn 
+
+process_upper_sm_reconn_sdp_cfg:
+64e1 70033804 jam uppersm_reconn_sdp_cfg_wait ,mem_upper_sm_reconn 
+64e2 6fe0c4e7 fetch 1 ,mem_sdp_state 
+64e3 c3810000 rtnbit1 l2cap_channel_state_snd_cfg_req 
+64e4 70033803 jam uppersm_reconn_sdp_cfg ,mem_upper_sm_reconn 
+64e5 2040657e call upper_sm_send_sdp_cfg 
+64e6 70033804 jam uppersm_reconn_sdp_cfg_wait ,mem_upper_sm_reconn 
+64e7 6fe0c4e7 fetch 1 ,mem_sdp_state 
+64e8 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+64e9 67e0c4e7 store 1 ,mem_sdp_state 
+64ea 20600000 rtn 
+
+process_upper_sm_reconn_ss_spp:
+64eb 20405214 call l2cap_malloc_is_fifo_empty 
+64ec 247a0000 nrtn blank 
+64ed 2040658d call upper_sm_send_ss_spp 
+64ee 7003383c jam uppersm_reconn_ss_spp_wait ,mem_upper_sm_reconn 
+64ef 20600000 rtn 
+
+process_upper_sm_reconn_sdp_disconn:
+64f0 20406583 call upper_sm_send_sdp_disconn 
+64f1 7003380e jam uppersm_reconn_sdp_disconn_wait ,mem_upper_sm_reconn 
+64f2 20600000 rtn 
+
+process_upper_sm_reconn_hid_ctrl_conn:
+64f3 2040659d call upper_sm_send_hid_ctrl_conn 
+64f4 70033810 jam uppersm_reconn_hid_ctrl_conn_wait ,mem_upper_sm_reconn 
+64f5 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+64f6 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+64f7 67e0c4e9 store 1 ,mem_hid_control_state 
+64f8 20600000 rtn 
+
+process_upper_sm_reconn_hid_ctrl_cfg:
+64f9 204065a4 call upper_sm_send_hid_ctrl_cfg 
+64fa 70033812 jam uppersm_reconn_hid_ctrl_cfg_wait ,mem_upper_sm_reconn 
+64fb 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+64fc 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+64fd 67e0c4e9 store 1 ,mem_hid_control_state 
+64fe 20600000 rtn 
+
+process_upper_sm_reconn_hid_int_conn:
+64ff 204065a9 call upper_sm_send_hid_int_conn 
+6500 70033814 jam uppersm_reconn_hid_int_conn_wait ,mem_upper_sm_reconn 
+6501 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+6502 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+6503 67e0c4ea store 1 ,mem_hid_interrupt_state 
+6504 20600000 rtn 
+
+process_upper_sm_reconn_hid_int_cfg:
+6505 204065b0 call upper_sm_send_hid_int_cfg 
+6506 70033816 jam uppersm_reconn_hid_int_cfg_wait ,mem_upper_sm_reconn 
+6507 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+6508 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+6509 67e0c4ea store 1 ,mem_hid_interrupt_state 
+650a 20600000 rtn 
+
+process_upper_sm_reconn_rfcomm_conn:
+650b 20406591 call upper_sm_send_rfcomm_conn 
+650c 70033818 jam uppersm_reconn_rfcomm_conn_wait ,mem_upper_sm_reconn 
+650d 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+650e 79207e00 set1 l2cap_channel_state_conn_req ,pdata 
+650f 67e0c4e8 store 1 ,mem_rfcomm_state 
+6510 20600000 rtn 
+
+process_upper_sm_reconn_rfcomm_cfg:
+6511 20406598 call upper_sm_send_rfcomm_cfg 
+6512 7003381a jam uppersm_reconn_rfcomm_cfg_wait ,mem_upper_sm_reconn 
+6513 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+6514 79207e02 set1 l2cap_channel_state_snd_cfg_req ,pdata 
+6515 67e0c4e8 store 1 ,mem_rfcomm_state 
+6516 20600000 rtn 
+
+process_upper_sm_reconn_rfcomm_sabm:
+6517 204065b5 call upper_sm_send_rfcomm_sabm 
+6518 7003381c jam uppersm_reconn_rfcomm_sabm_wait ,mem_upper_sm_reconn 
+6519 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+651a 79207e06 set1 l2cap_channel_rfcomm_only_sabm ,pdata 
+651b 67e0c4e8 store 1 ,mem_rfcomm_state 
+651c 20600000 rtn 
+
+process_upper_sm_reconn_spp_cmd_pn:
+651d 204065bc call upper_sm_send_spp_cmd_pn 
+651e 6fe0c4eb fetch 1 ,mem_spp_state 
+651f 79207e00 set1 rfcomm_channel_state_pn_cmd ,pdata 
+6520 67e0c4eb store 1 ,mem_spp_state 
+6521 7003381e jam uppersm_reconn_spp_cmd_pn_wait ,mem_upper_sm_reconn 
+6522 20600000 rtn 
+
+process_upper_sm_reconn_spp_sabm:
+6523 204065c2 call upper_sm_send_spp_sabm 
+6524 6fe0c4eb fetch 1 ,mem_spp_state 
+6525 79207e02 set1 rfcomm_channel_state_sabm ,pdata 
+6526 67e0c4eb store 1 ,mem_spp_state 
+6527 70033820 jam uppersm_reconn_spp_sabm_wait ,mem_upper_sm_reconn 
+6528 6fe0c656 fetch 1 ,mem_remote_spp_channel 
+6529 1fe9fe00 lshift3 pdata ,pdata 
+652a 1fe1fe03 or_into 3 ,pdata 
+652b d8404657 arg mem_hiufcs_spp ,temp 
+652c 604903ca storet 2 ,mem_contw_temp 
+652d 202061f6 branch rfcomm_save_fcs_uih 
+
+process_upper_sm_reconn_spp_cmd_ms:
+652e 204065cc call upper_sm_send_spp_cmd_ms 
+652f 6fe0c4eb fetch 1 ,mem_spp_state 
+6530 79207e04 set1 rfcomm_channel_state_snd_ms_cmd ,pdata 
+6531 67e0c4eb store 1 ,mem_spp_state 
+6532 70033822 jam uppersm_reconn_spp_cmd_ms_wait ,mem_upper_sm_reconn 
+6533 20600000 rtn 
+
+process_upper_sm_reconn_sdp_conn_wait:
+6534 6fe0c4e7 fetch 1 ,mem_sdp_state 
+6535 c4008000 rtnbit0 l2cap_channel_state_conn_res 
+6536 70033803 jam uppersm_reconn_sdp_cfg ,mem_upper_sm_reconn 
+6537 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_sdp_cfg_wait:
+6538 6fe0c4e7 fetch 1 ,mem_sdp_state 
+6539 c19f8000 rtnne l2cap_channel_setup_complete 
+653a 7003383b jam uppersm_reconn_ss_spp ,mem_upper_sm_reconn 
+
+process_upper_sm_reconn_ss_spp_wait:
+653b 6fe08336 fetch 1 ,mem_message_to_uppersm 
+653c c18b8000 rtnne recieve_ss_reasult_hf 
+653d 70033600 jam 0 ,mem_message_to_uppersm 
+653e 7003380d jam uppersm_reconn_sdp_disconn ,mem_upper_sm_reconn 
+653f 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_sdp_disconn_wait:
+6540 6fe0c4e7 fetch 1 ,mem_sdp_state 
+6541 247a0000 nrtn blank 
+6542 6fe0c795 fetch 1 ,mem_ui_profile_supported 
+6543 c280656f bbit1 support_hid ,process_upper_sm_reconn_setup_hid 
+6544 c2836571 bbit1 support_spp ,process_upper_sm_reconn_setup_rfcomm 
+6545 20206575 branch process_upper_sm_reconn_termination 
+
+process_upper_sm_reconn_hid_ctrl_conn_wait:
+6546 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+6547 c4008000 rtnbit0 l2cap_channel_state_conn_res 
+6548 70033811 jam uppersm_reconn_hid_ctrl_cfg ,mem_upper_sm_reconn 
+6549 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_hid_ctrl_cfg_wait:
+654a 6fe0c4e9 fetch 1 ,mem_hid_control_state 
+654b c19f8000 rtnne l2cap_channel_setup_complete 
+654c 70033813 jam uppersm_reconn_hid_int_conn ,mem_upper_sm_reconn 
+654d 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_hid_int_conn_wait:
+654e 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+654f c4008000 rtnbit0 l2cap_channel_state_conn_res 
+6550 70033815 jam uppersm_reconn_hid_int_cfg ,mem_upper_sm_reconn 
+6551 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_hid_int_cfg_wait:
+6552 6fe0c4ea fetch 1 ,mem_hid_interrupt_state 
+6553 c19f8000 rtnne l2cap_channel_setup_complete 
+6554 6fe0c795 fetch 1 ,mem_ui_profile_supported 
+6555 c2836571 bbit1 support_spp ,process_upper_sm_reconn_setup_rfcomm 
+6556 20206575 branch process_upper_sm_reconn_termination 
+
+process_upper_sm_reconn_rfcomm_conn_wait:
+6557 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+6558 c4008000 rtnbit0 l2cap_channel_state_conn_res 
+6559 70033819 jam uppersm_reconn_rfcomm_cfg ,mem_upper_sm_reconn 
+655a 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_rfcomm_cfg_wait:
+655b 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+655c c19f8000 rtnne l2cap_channel_setup_complete 
+655d 7003381b jam uppersm_reconn_rfcomm_sabm ,mem_upper_sm_reconn 
+655e 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_rfcomm_sabm_wait:
+655f 6fe0c4e8 fetch 1 ,mem_rfcomm_state 
+6560 c1ff8000 rtnne l2cap_channel_rfcomm_dlci0_opened 
+6561 6fe0c795 fetch 1 ,mem_ui_profile_supported 
+6562 c2836573 bbit1 support_spp ,process_upper_sm_reconn_setup_spp 
+6563 20206575 branch process_upper_sm_reconn_termination 
+
+process_upper_sm_reconn_spp_cmd_pn_wait:
+6564 6fe0c4eb fetch 1 ,mem_spp_state 
+6565 c4008000 rtnbit0 rfcomm_channel_state_pn_res 
+6566 7003381f jam uppersm_reconn_spp_sabm ,mem_upper_sm_reconn 
+6567 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_spp_sabm_wait:
+6568 6fe0c4eb fetch 1 ,mem_spp_state 
+6569 c4018000 rtnbit0 rfcomm_channel_state_ua 
+656a 70033821 jam uppersm_reconn_spp_cmd_ms ,mem_upper_sm_reconn 
+656b 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_spp_cmd_ms_wait:
+656c 6fe0c4eb fetch 1 ,mem_spp_state 
+656d c1ff8000 rtnne rfcomm_channel_setup_complete 
+656e 20206575 branch process_upper_sm_reconn_termination 
+
+process_upper_sm_reconn_setup_hid:
+656f 7003380f jam uppersm_reconn_hid_ctrl_conn ,mem_upper_sm_reconn 
+6570 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_setup_rfcomm:
+6571 70033817 jam uppersm_reconn_rfcomm_conn ,mem_upper_sm_reconn 
+6572 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_setup_spp:
+6573 7003381d jam uppersm_reconn_spp_cmd_pn ,mem_upper_sm_reconn 
+6574 202064bb branch process_upper_sm_reconn 
+
+process_upper_sm_reconn_termination:
+6575 70033800 jam 0 ,mem_upper_sm_reconn 
+6576 20600000 rtn 
+
+upper_sm_send_sdp_conn:
+6577 47264029 bpatchx patch29_4 ,mem_patch29 
+6578 20405228 call l2cap_malloc_signal_channel 
+6579 58000001 setarg psm_sdp 
+657a 1fe20400 copy pdata ,temp 
+657b 58000050 setarg l2cap_sdp_channel 
+657c 1fe21600 copy pdata ,timeup 
+657d 20205023 branch ml2cap_send_signal_connect_req 
+
+upper_sm_send_sdp_cfg:
+657e 4726c029 bpatchx patch29_5 ,mem_patch29 
+657f 20405228 call l2cap_malloc_signal_channel 
+6580 6fe144df fetch 2 ,mem_sdp_remote_cid 
+6581 1fe20400 copy pdata ,temp 
+6582 20205032 branch ml2cap_send_signal_config_req 
+
+upper_sm_send_sdp_disconn:
+6583 47274029 bpatchx patch29_6 ,mem_patch29 
+6584 20405228 call l2cap_malloc_signal_channel 
+6585 6fe144df fetch 2 ,mem_sdp_remote_cid 
+6586 1fe20400 copy pdata ,temp 
+6587 d9600050 arg l2cap_sdp_channel ,timeup 
+6588 20405047 call ml2cap_send_signal_disconn_req 
+6589 6fe0c4e7 fetch 1 ,mem_sdp_state 
+658a 793ffe05 set0 l2cap_channel_state_rcv_cfg_res ,pdata 
+658b 67e0c4e7 store 1 ,mem_sdp_state 
+658c 20600000 rtn 
+
+upper_sm_send_ss_spp:
+658d 4727c029 bpatchx patch29_7 ,mem_patch29 
+658e 20405235 call l2cap_malloc_sdp_channel 
+658f 204068f8 call sdp_send_spp_request 
+6590 20205062 branch msdp_send_req_done 
+
+upper_sm_send_rfcomm_conn:
+6591 4728402a bpatchx patch2a_0 ,mem_patch2a 
+6592 20405228 call l2cap_malloc_signal_channel 
+6593 58000003 setarg psm_rfcomm 
+6594 1fe20400 copy pdata ,temp 
+6595 58000051 setarg l2cap_rfcomm_channel 
+6596 1fe21600 copy pdata ,timeup 
+6597 20205023 branch ml2cap_send_signal_connect_req 
+
+upper_sm_send_rfcomm_cfg:
+6598 4728c02a bpatchx patch2a_1 ,mem_patch2a 
+6599 20405228 call l2cap_malloc_signal_channel 
+659a 6fe144e1 fetch 2 ,mem_rfcomm_remote_cid 
+659b 1fe20400 copy pdata ,temp 
+659c 20205032 branch ml2cap_send_signal_config_req 
+
+upper_sm_send_hid_ctrl_conn:
+659d 4729402a bpatchx patch2a_2 ,mem_patch2a 
+659e 20405228 call l2cap_malloc_signal_channel 
+659f 58000011 setarg psm_hid_control 
+65a0 1fe20400 copy pdata ,temp 
+65a1 58000052 setarg l2cap_hid_control_channel 
+65a2 1fe21600 copy pdata ,timeup 
+65a3 20205023 branch ml2cap_send_signal_connect_req 
+
+upper_sm_send_hid_ctrl_cfg:
+65a4 4729c02a bpatchx patch2a_3 ,mem_patch2a 
+65a5 20405228 call l2cap_malloc_signal_channel 
+65a6 6fe144e3 fetch 2 ,mem_hid_ctrl_remote_cid 
+65a7 1fe20400 copy pdata ,temp 
+65a8 20205032 branch ml2cap_send_signal_config_req 
+
+upper_sm_send_hid_int_conn:
+65a9 472a402a bpatchx patch2a_4 ,mem_patch2a 
+65aa 20405228 call l2cap_malloc_signal_channel 
+65ab 58000013 setarg psm_hid_interrupt 
+65ac 1fe20400 copy pdata ,temp 
+65ad 58000053 setarg l2cap_hid_interrupt_channel 
+65ae 1fe21600 copy pdata ,timeup 
+65af 20205023 branch ml2cap_send_signal_connect_req 
+
+upper_sm_send_hid_int_cfg:
+65b0 472ac02a bpatchx patch2a_5 ,mem_patch2a 
+65b1 20405228 call l2cap_malloc_signal_channel 
+65b2 6fe144e5 fetch 2 ,mem_hid_int_remote_cid 
+65b3 1fe20400 copy pdata ,temp 
+65b4 20205032 branch ml2cap_send_signal_config_req 
+
+upper_sm_send_rfcomm_sabm:
+65b5 472b402a bpatchx patch2a_6 ,mem_patch2a 
+65b6 20405242 call l2cap_malloc_rfcomm_channel 
+65b7 7003ce03 jam 3 ,mem_current_adss 
+65b8 7003d11c jam 0x1c ,mem_current_fcs 
+65b9 2040636a call rfcomm_send_sabm 
+65ba 70465501 jam 1 ,mem_rfcomm_initiator 
+65bb 20600000 rtn 
+
+upper_sm_send_spp_cmd_pn:
+65bc 472bc02a bpatchx patch2a_7 ,mem_patch2a 
+65bd 20405242 call l2cap_malloc_rfcomm_channel 
+65be 6848c656 fetcht 1 ,mem_remote_spp_channel 
+65bf 2040623a call channel_to_dlci 
+65c0 6048c64f storet 1 ,mem_pn_dlci 
+65c1 20206385 branch rfcomm_send_param_neg_cmd 
+
+upper_sm_send_spp_sabm:
+65c2 472c402b bpatchx patch2b_0 ,mem_patch2b 
+65c3 20405242 call l2cap_malloc_rfcomm_channel 
+65c4 6848c64f fetcht 1 ,mem_pn_dlci 
+65c5 20406234 call dlci_to_address_cmd 
+65c6 204061db call rfcomm_calculate_fcs_sabm 
+65c7 67e083d1 store 1 ,mem_current_fcs 
+65c8 6848c64f fetcht 1 ,mem_pn_dlci 
+65c9 20406234 call dlci_to_address_cmd 
+65ca 604883ce storet 1 ,mem_current_adss 
+65cb 2020636a branch rfcomm_send_sabm 
+
+upper_sm_send_spp_cmd_ms:
+65cc 472cc02b bpatchx patch2b_1 ,mem_patch2b 
+65cd 20405242 call l2cap_malloc_rfcomm_channel 
+65ce 6848c64f fetcht 1 ,mem_pn_dlci 
+65cf 20406234 call dlci_to_address_cmd 
+65d0 202063bd branch rfcomm_send_modem_status_cmd 
+
+sdp_process:
+65d1 472d402b bpatchx patch2b_2 ,mem_patch2b 
+65d2 6fe10315 fetch 2 ,mem_l2cap_payload_ptr 
+65d3 98000c00 iforce contr 
+65d4 efe08006 ifetch 1 ,contr 
+65d5 1fe22400 copy pdata ,regb 
+65d6 67e083ee store 1 ,mem_sdp_pduid 
+65d7 efe10006 ifetch 2 ,contr 
+65d8 67e103ef store 2 ,mem_sdp_transactionid 
+65d9 efe08006 ifetch 1 ,contr 
+65da 1fed1600 lshift8 pdata ,timeup 
+65db efe08006 ifetch 1 ,contr 
+65dc 99609600 iadd timeup ,timeup 
+65dd 472dc02b bpatchx patch2b_3 ,mem_patch2b 
+65de 18c20400 copy contr ,temp 
+65df df200004 arg 4 ,loopcnt 
+65e0 d8a003fd arg mem_sdp_handle_list ,contw 
+65e1 20407c59 call memset0 
+65e2 18420c00 copy temp ,contr 
+65e3 1a427e00 deposit regb 
+65e4 c000e77a beq sdp_error_res ,sdp_process_error_res 
+65e5 c00165ec beq sdp_search_req ,sdp_process_ss_req 
+65e6 c001e77a beq sdp_search_res ,sdp_process_ss_res 
+65e7 c0026614 beq sdp_attribute_req ,sdp_process_sa_req 
+65e8 c002e77a beq sdp_attribute_res ,sdp_process_sa_res 
+65e9 c00366c2 beq sdp_searchattrib_req ,sdp_process_ssa_req 
+65ea c003e77a beq sdp_searchattrib_res ,sdp_process_ssa_res 
+65eb 20206781 branch sdp_insufficient_resource 
+
+sdp_process_ss_req:
+65ec 472e402b bpatchx patch2b_4 ,mem_patch2b 
+65ed 20406790 call ask_serviceclassid 
+65ee 2841fe01 compare 1 ,temp ,0xff 
+65ef 2020e800 branch ss_empty_rsp ,true 
+65f0 2841feff compare 0xff ,temp ,0xff 
+65f1 2020e784 branch sdp_invalid_request_syntax ,true 
+65f2 efe10006 ifetch 2 ,contr 
+65f3 67e103f5 store 2 ,mem_sdp_record_maxcnt 
+65f4 196097fe increase -2 ,timeup 
+65f5 196097ff increase -1 ,timeup 
+65f6 2422e77e nbranch sdp_invalid_pdu_size ,zero 
+65f7 d96003e4 arg mem_sdp_uuid_search_ptr ,timeup 
+65f8 efe1000b ifetch 2 ,timeup 
+65f9 207a0000 rtn blank 
+65fa 20406842 call search_all_uuid 
+65fb 20405240 call l2cap_get_sdp_tx_payload 
+65fc 18007e03 force 3 ,pdata 
+65fd e7e08005 istore 1 ,contw 
+65fe 6fe103ef fetch 2 ,mem_sdp_transactionid 
+65ff e7e10005 istore 2 ,contw 
+6600 18ebfe00 lshift2 queue ,pdata 
+6601 1fe0fe05 add pdata ,5 ,pdata 
+6602 1fe0a605 add pdata ,5 ,regc 
+6603 1ff0fe00 byteswap pdata ,pdata 
+6604 e7e10005 istore 2 ,contw 
+6605 18e27e00 deposit queue 
+6606 1ff0fe00 byteswap pdata ,pdata 
+6607 e7e10005 istore 2 ,contw 
+6608 e7e10005 istore 2 ,contw 
+6609 d8c003fd arg mem_sdp_handle_list ,contr 
+660a 18e27200 copy queue ,loopcnt 
+660b 2022e60f branch ss_req_blank ,zero 
+
+ss_req_loop:
+660c efe20006 ifetch 4 ,contr 
+660d e7e20005 istore 4 ,contw 
+660e c200660c loop ss_req_loop 
+
+ss_req_blank:
+660f 18007e00 force 0 ,pdata 
+6610 e7e08005 istore 1 ,contw 
+6611 1a627e00 deposit regc 
+6612 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+6613 20600000 rtn 
+
+sdp_process_sa_req:
+6614 472ec02b bpatchx patch2b_5 ,mem_patch2b 
+6615 efe20006 ifetch 4 ,contr 
+6616 67e203f7 store 4 ,mem_sdp_record_handle 
+6617 196097fc increase -4 ,timeup 
+6618 204066ee call sdp_store_maxbyte 
+6619 67e103f3 store 2 ,mem_sdp_attribute_maxbyte 
+661a 196097fe increase -2 ,timeup 
+661b 204067e8 call dataelementtype6 
+661c 2022e784 branch sdp_invalid_request_syntax ,zero 
+661d 2a21fe05 compare 5 ,rega ,0xff 
+661e 2020e622 branch sa_judge_wholerange ,true 
+
+sa_isnot_wholerange:
+661f d8a003fd arg mem_sdp_attrib_list ,contw 
+6620 18000e00 force 0 ,queue 
+6621 20206631 branch sa_req_loop 
+
+sa_judge_wholerange:
+6622 efe08006 ifetch 1 ,contr 
+6623 c0856784 bne sdp_attribute_range ,sdp_invalid_request_syntax 
+6624 efe10006 ifetch 2 ,contr 
+6625 243a662f nbranch sa_judge_wholerange_false1 ,blank 
+6626 efe08006 ifetch 1 ,contr 
+6627 c0ffe62d bne 0xff ,sa_judge_wholerange_false2 
+6628 efe08006 ifetch 1 ,contr 
+6629 c0ffe62b bne 0xff ,sa_judge_wholerange_false3 
+662a 20206678 branch sa_req_all 
+
+sa_judge_wholerange_false3:
+662b 18c08dfb increase -5 ,contr 
+662c 2020661f branch sa_isnot_wholerange 
+
+sa_judge_wholerange_false2:
+662d 18c08dfc increase -4 ,contr 
+662e 2020661f branch sa_isnot_wholerange 
+
+sa_judge_wholerange_false1:
+662f 18c08dfd increase -3 ,contr 
+6630 2020661f branch sa_isnot_wholerange 
+
+sa_req_loop:
+6631 efe08006 ifetch 1 ,contr 
+6632 c004e646 beq sdp_attribute_id ,sa_req_one_id 
+6633 c0056634 beq sdp_attribute_range ,sa_req_range 
+
+sa_req_range:
+6634 efe10006 ifetch 2 ,contr 
+6635 e7e10005 istore 2 ,contw 
+6636 18e08e01 increase 1 ,queue 
+6637 1ff0a400 byteswap pdata ,regb 
+6638 efe10006 ifetch 2 ,contr 
+6639 1ff0fe00 byteswap pdata ,pdata 
+
+sa_req_range_id_increase:
+663a 1a40a401 increase 1 ,regb 
+663b 9a467c00 isub regb ,null 
+663c 24216643 nbranch sa_req_range_id_finish ,positive 
+663d 1fe22600 copy pdata ,regc 
+663e 1a50fe00 byteswap regb ,pdata 
+663f e7e10005 istore 2 ,contw 
+6640 18e08e01 increase 1 ,queue 
+6641 1a627e00 copy regc ,pdata 
+6642 2020663a branch sa_req_range_id_increase 
+
+sa_req_range_id_finish:
+6643 196097fb increase -5 ,timeup 
+6644 1a20a3fb increase -5 ,rega 
+6645 2020664b branch sa_req_check_next_id 
+
+sa_req_one_id:
+6646 efe10006 ifetch 2 ,contr 
+6647 e7e10005 istore 2 ,contw 
+6648 18e08e01 increase 1 ,queue 
+6649 196097fd increase -3 ,timeup 
+664a 1a20a3fd increase -3 ,rega 
+
+sa_req_check_next_id:
+664b 24216784 nbranch sdp_invalid_request_syntax ,positive 
+664c 2422e631 nbranch sa_req_loop ,zero 
+664d 196097ff increase -1 ,timeup 
+664e 2422e784 nbranch sdp_invalid_request_syntax ,zero 
+664f 20405240 call l2cap_get_sdp_tx_payload 
+6650 18a08a0a increase 10 ,contw 
+6651 da2003fd arg mem_sdp_attrib_list ,rega 
+
+sa_req_handle_attributelist_next:
+6652 18e27e00 copy queue ,pdata 
+6653 203a6665 branch sa_req_handle_attributelist_end ,blank 
+6654 efe10011 ifetch 2 ,rega 
+6655 203a6665 branch sa_req_handle_attributelist_end ,blank 
+6656 98002400 iforce regb 
+6657 6fe203f7 fetch 4 ,mem_sdp_record_handle 
+6658 98000400 iforce temp 
+6659 204068a7 call search_handle_attrib 
+665a 18c27e00 copy contr ,pdata 
+665b 203a6662 branch sa_req_handle_attributelist_notfound ,blank 
+665c 18c08dfd increase -3 ,contr 
+665d efe18006 ifetch 3 ,contr 
+665e e7e18005 istore 3 ,contw 
+665f 2040681b call sdp_data_len 
+6660 98007200 iforce loopcnt 
+6661 20407ca1 call memcpy 
+
+sa_req_handle_attributelist_notfound:
+6662 1a20a202 increase 2 ,rega 
+6663 18e08fff increase -1 ,queue 
+6664 20206652 branch sa_req_handle_attributelist_next 
+
+sa_req_handle_attributelist_end:
+6665 da200005 arg sdp_attribute_res ,rega 
+6666 20406744 call ssa_req_range_lastfreg_common 
+6667 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+6668 c005e803 beq 11 ,sa_empty_rsp 
+6669 2020675a branch ssa_req_range_attrbutes_length_no_continue 
+
+sdp_store_continue_common:
+666a efe08006 ifetch 1 ,contr 
+666b c000666e beq 0 ,sdp_store_continue_0byte 
+666c c000e670 beq 1 ,sdp_store_continue_1byte 
+666d c0016673 beq 2 ,sdp_store_continue_2byte 
+
+sdp_store_continue_0byte:
+666e 196097ff increase -1 ,timeup 
+666f 20206676 branch sdp_store_continue_end 
+
+sdp_store_continue_1byte:
+6670 efe08006 ifetch 1 ,contr 
+6671 196097fe increase -2 ,timeup 
+6672 20206676 branch sdp_store_continue_end 
+
+sdp_store_continue_2byte:
+6673 efe10006 ifetch 2 ,contr 
+6674 1ff0fe00 byteswap pdata ,pdata 
+6675 196097fd increase -3 ,timeup 
+
+sdp_store_continue_end:
+6676 67e103ec store 2 ,mem_sdp_continue_byte 
+6677 20600000 rtn 
+
+sa_req_all:
+6678 196097fb increase -5 ,timeup 
+6679 2040666a call sdp_store_continue_common 
+667a 2422e77e nbranch sdp_invalid_pdu_size ,zero 
+667b 684a03f7 fetcht 4 ,mem_sdp_record_handle 
+667c 20406871 call search_handle 
+667d 2422e77b nbranch sdp_invalid_service_record_handle ,zero 
+667e 18c22200 copy contr ,rega 
+667f 20405240 call l2cap_get_sdp_tx_payload 
+6680 1a220c00 copy rega ,contr 
+6681 18a08a03 increase 3 ,contw 
+6682 18c21600 copy contr ,timeup 
+6683 20406822 call sdp_get_data 
+6684 1fe22200 copy pdata ,rega 
+6685 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+6686 1fe22400 copy pdata ,regb 
+6687 1a227e00 copy rega ,pdata 
+6688 9a462400 isub regb ,regb 
+6689 6fe103f3 fetch 2 ,mem_sdp_attribute_maxbyte 
+668a 9a467c00 isub regb ,null 
+668b 242166a7 nbranch sa_req_all_fragment_sdp ,positive 
+668c 78547c00 disable user 
+668d 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+668e 203a669a branch sa_req_all_fisrt_fragment ,blank 
+668f 99608c00 iadd timeup ,contr 
+6690 1a40a403 increase 3 ,regb 
+6691 1a427200 copy regb ,loopcnt 
+6692 1f227e00 copy loopcnt ,pdata 
+6693 1fe0fe03 increase 3 ,pdata 
+6694 1ff0fe00 byteswap pdata ,pdata 
+6695 e7e10005 istore 2 ,contw 
+6696 1f227e00 copy loopcnt ,pdata 
+6697 1ff0fe00 byteswap pdata ,pdata 
+6698 e7e10005 istore 2 ,contw 
+6699 202066b5 branch sa_req_all_answer_attributelist_full_loop 
+
+sa_req_all_fisrt_fragment:
+669a 1a20f206 add rega ,6 ,loopcnt 
+669b 2034669e branch sa_req_all_parlength_continue_byte ,user 
+669c 1f30fe00 byteswap loopcnt ,pdata 
+669d 202066a1 branch sa_req_all_parlength_continue_byte_end 
+
+sa_req_all_parlength_continue_byte:
+669e 1f227e00 copy loopcnt ,pdata 
+669f 1fe0fe02 increase 2 ,pdata 
+66a0 1ff0fe00 byteswap pdata ,pdata 
+
+sa_req_all_parlength_continue_byte_end:
+66a1 e7e10005 istore 2 ,contw 
+66a2 1f20f3fd increase -3 ,loopcnt 
+66a3 1f30fe00 byteswap loopcnt ,pdata 
+66a4 e7e10005 istore 2 ,contw 
+66a5 19620c00 copy timeup ,contr 
+66a6 202066b5 branch sa_req_all_answer_attributelist_full_loop 
+
+sa_req_all_fragment_sdp:
+66a7 78347c00 enable user 
+66a8 6fe103f3 fetch 2 ,mem_sdp_attribute_maxbyte 
+66a9 1fe22200 copy pdata ,rega 
+66aa 1a227200 copy rega ,loopcnt 
+66ab 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+66ac 203a669a branch sa_req_all_fisrt_fragment ,blank 
+66ad 99608c00 iadd timeup ,contr 
+66ae 1a227e00 copy rega ,pdata 
+66af 1fe0fe05 increase 5 ,pdata 
+66b0 1ff0fe00 byteswap pdata ,pdata 
+66b1 e7e10005 istore 2 ,contw 
+66b2 1a227e00 copy rega ,pdata 
+66b3 1ff0fe00 byteswap pdata ,pdata 
+66b4 e7e10005 istore 2 ,contw 
+
+sa_req_all_answer_attributelist_full_loop:
+66b5 20407ca1 call memcpy 
+66b6 243466be nbranch sa_req_all_last_frag_continue ,user 
+66b7 18007e02 force 2 ,pdata 
+66b8 e7e08005 istore 1 ,contw 
+66b9 18c27e00 copy contr ,pdata 
+66ba 99667e00 isub timeup ,pdata 
+66bb 1ff0fe00 byteswap pdata ,pdata 
+66bc e7e10005 istore 2 ,contw 
+66bd 202066c0 branch sa_req_all_frag_end 
+
+sa_req_all_last_frag_continue:
+66be 18007e00 force 0 ,pdata 
+66bf e7e08005 istore 1 ,contw 
+
+sa_req_all_frag_end:
+66c0 da200005 arg sdp_attribute_res ,rega 
+66c1 20206770 branch ssa_req_range_common 
+
+sdp_process_ssa_req:
+66c2 472f402b bpatchx patch2b_6 ,mem_patch2b 
+66c3 20406790 call ask_serviceclassid 
+66c4 2841feff compare 0xff ,temp ,0xff 
+66c5 2020e784 branch sdp_invalid_request_syntax ,true 
+66c6 204066ee call sdp_store_maxbyte 
+66c7 67e103f3 store 2 ,mem_sdp_attribute_maxbyte 
+66c8 196097fe increase -2 ,timeup 
+66c9 204067e8 call dataelementtype6 
+66ca d8a003fd arg mem_sdp_attrib_list ,contw 
+66cb 18000e00 force 0 ,queue 
+
+ssa_req_loop:
+66cc efe08006 ifetch 1 ,contr 
+66cd c00566f6 beq sdp_attribute_range ,ssa_req_range 
+66ce efe10006 ifetch 2 ,contr 
+66cf e7e10005 istore 2 ,contw 
+66d0 18e08e01 increase 1 ,queue 
+66d1 196097fd increase -3 ,timeup 
+66d2 1a20a3fd increase -3 ,rega 
+66d3 24216784 nbranch sdp_invalid_request_syntax ,positive 
+66d4 2422e6cc nbranch ssa_req_loop ,zero 
+66d5 196097ff increase -1 ,timeup 
+66d6 2422e784 nbranch sdp_invalid_request_syntax ,zero 
+66d7 20405240 call l2cap_get_sdp_tx_payload 
+66d8 18a08a0d increase 13 ,contw 
+66d9 6fe103e4 fetch 2 ,mem_sdp_uuid_search_ptr 
+66da 98002600 iforce regc 
+66db da2003fd arg mem_sdp_attrib_list ,rega 
+
+ssa_req_attributelist_next:
+66dc efe10011 ifetch 2 ,rega 
+66dd 203a66e9 branch ssa_req_attributelist_end ,blank 
+66de 98002400 iforce regb 
+66df 20406886 call search_attrib 
+66e0 203a66e7 branch ssa_req_attributelist_notfound ,blank 
+66e1 18c08dfd increase -3 ,contr 
+66e2 efe18006 ifetch 3 ,contr 
+66e3 e7e18005 istore 3 ,contw 
+66e4 2040681b call sdp_data_len 
+66e5 98007200 iforce loopcnt 
+66e6 20407ca1 call memcpy 
+
+ssa_req_attributelist_notfound:
+66e7 1a20a202 increase 2 ,rega 
+66e8 202066dc branch ssa_req_attributelist_next 
+
+ssa_req_attributelist_end:
+66e9 20406743 call ssa_req_range_lastfreg 
+66ea 6fe10326 fetch 2 ,mem_sdp_tx_pkt_length 
+66eb c0076806 beq 14 ,ssa_empty_rsp 
+66ec 2040675a call ssa_req_range_attrbutes_length_no_continue 
+66ed 2020675a branch ssa_req_range_attrbutes_length_no_continue 
+
+sdp_store_maxbyte:
+66ee efe10006 ifetch 2 ,contr 
+66ef 1ff0fe00 byteswap pdata ,pdata 
+66f0 1fe0fffd increase -3 ,pdata 
+66f1 d84000c8 arg 200 ,temp 
+66f2 98467c00 isub temp ,null 
+66f3 24610000 nrtn positive 
+66f4 580000c8 setarg 200 
+66f5 20600000 rtn 
+
+ssa_req_range:
+66f6 18c08c04 increase 4 ,contr 
+66f7 196097fb increase -5 ,timeup 
+66f8 1a20a3fb increase -5 ,rega 
+66f9 2422e784 nbranch sdp_invalid_request_syntax ,zero 
+66fa 2040666a call sdp_store_continue_common 
+66fb 2422e77e nbranch sdp_invalid_pdu_size ,zero 
+66fc d96003e4 arg mem_sdp_uuid_search_ptr ,timeup 
+66fd 20406842 call search_all_uuid 
+66fe 18e27e00 deposit queue 
+66ff 203a6806 branch ssa_empty_rsp ,blank 
+6700 67e08421 store 1 ,mem_handle_humber 
+6701 1a427e00 copy regb ,pdata 
+6702 67e1041f store 2 ,mem_sdp_all_length 
+6703 d8e00000 arg 0 ,queue 
+6704 da200000 arg 0 ,rega 
+6705 20405240 call l2cap_get_sdp_tx_payload 
+6706 18a08a0a increase 10 ,contw 
+
+ssa_req_range_find_handle:
+6707 2040672c call ssa_req_range_get_length 
+6708 2434137a nbranch assert ,user 
+6709 18c21600 copy contr ,timeup 
+670a 1fe22600 copy pdata ,regc 
+670b 9a20a200 iadd rega ,rega 
+670c 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+670d 1fe22400 copy pdata ,regb 
+670e 203a6735 branch ssa_req_range_first_freg ,blank 
+
+ssa_req_range_later_freg_with_continue:
+670f 1a227e00 copy rega ,pdata 
+6710 9a462400 isub regb ,regb 
+6711 2022e727 branch ssa_req_range_next_handle ,zero 
+6712 24216727 nbranch ssa_req_range_next_handle ,positive 
+6713 6fe103f3 fetch 2 ,mem_sdp_attribute_maxbyte 
+6714 9a467c00 isub regb ,null 
+6715 2022e71e branch ssa_req_range_maxbyte_with_continue ,zero 
+6716 2421671e nbranch ssa_req_range_maxbyte_with_continue ,positive 
+
+ssa_req_range_send_not_maxbyte:
+6717 1a427200 copy regb ,loopcnt 
+6718 20406721 call ssa_req_range_maxbyte_with_continue_cpy 
+6719 6fe08421 fetch 1 ,mem_handle_humber 
+671a 18e08e01 increase 1 ,queue 
+671b 98e67c00 isub queue ,null 
+671c 2022e743 branch ssa_req_range_lastfreg ,zero 
+671d 20206760 branch ssa_req_range_freg_with_continue 
+
+ssa_req_range_maxbyte_with_continue:
+671e 1fe27200 copy pdata ,loopcnt 
+671f 20406721 call ssa_req_range_maxbyte_with_continue_cpy 
+6720 20206760 branch ssa_req_range_freg_with_continue 
+
+ssa_req_range_maxbyte_with_continue_cpy:
+6721 18a08bfd increase -3 ,contw 
+6722 1f220400 copy loopcnt ,temp 
+6723 1a627e00 copy regc ,pdata 
+6724 9a467e00 isub regb ,pdata 
+6725 99608c00 iadd timeup ,contr 
+6726 20207ca1 branch memcpy 
+
+ssa_req_range_next_handle:
+6727 6fe08421 fetch 1 ,mem_handle_humber 
+6728 18e08e01 increase 1 ,queue 
+6729 98e67c00 isub queue ,null 
+672a 20628000 rtn zero 
+672b 20206707 branch ssa_req_range_find_handle 
+
+ssa_req_range_get_length:
+672c 20407d94 call disable_user 
+672d d8c003fd arg mem_sdp_handle_list ,contr 
+672e 18ebfe00 lshift2 queue ,pdata 
+672f 98c08c00 iadd contr ,contr 
+6730 e8420006 ifetcht 4 ,contr 
+6731 20406871 call search_handle 
+6732 24628000 nrtn zero 
+6733 2040681b call sdp_data_len 
+6734 20207d92 branch enable_user 
+
+ssa_req_range_first_freg:
+6735 6fe103f3 fetch 2 ,mem_sdp_attribute_maxbyte 
+6736 9a267c00 isub rega ,null 
+6737 2421674f nbranch ssa_req_range_firstfreg_maxbyte_with_continue ,positive 
+6738 1a227200 copy rega ,loopcnt 
+6739 1f220400 copy loopcnt ,temp 
+673a 19620c00 copy timeup ,contr 
+673b 20407ca1 call memcpy 
+673c 6fe1041f fetch 2 ,mem_sdp_all_length 
+673d 9a267c00 isub rega ,null 
+673e 2022e741 branch ssa_req_range_freg_no_continue ,zero 
+
+ssa_req_range_firstfreg_not_maxbyte_with_continue:
+673f 20406760 call ssa_req_range_freg_with_continue 
+6740 20206754 branch ssa_req_range_attrbutes_length 
+
+ssa_req_range_freg_no_continue:
+6741 20406743 call ssa_req_range_lastfreg 
+6742 20206754 branch ssa_req_range_attrbutes_length 
+
+ssa_req_range_lastfreg:
+6743 da200007 arg sdp_searchattrib_res ,rega 
+
+ssa_req_range_lastfreg_common:
+6744 18007e00 force 0 ,pdata 
+6745 e7e08005 istore 1 ,contw 
+6746 20406770 call ssa_req_range_common 
+6747 68490326 fetcht 2 ,mem_sdp_tx_pkt_length 
+6748 184085fb increase -5 ,temp 
+6749 1850fe00 byteswap temp ,pdata 
+674a e7e10005 istore 2 ,contw 
+674b 184085fd increase -3 ,temp 
+674c 1850fe00 byteswap temp ,pdata 
+674d e7e10005 istore 2 ,contw 
+674e 20600000 rtn 
+
+ssa_req_range_firstfreg_maxbyte_with_continue:
+674f 1fe27200 copy pdata ,loopcnt 
+6750 1f220400 copy loopcnt ,temp 
+6751 19620c00 copy timeup ,contr 
+6752 20407ca1 call memcpy 
+6753 20406760 call ssa_req_range_freg_with_continue 
+
+ssa_req_range_attrbutes_length:
+6754 58000036 setarg 0x36 
+6755 e7e08005 istore 1 ,contw 
+6756 6fe1041f fetch 2 ,mem_sdp_all_length 
+6757 1ff0fe00 byteswap pdata ,pdata 
+6758 e7e10005 istore 2 ,contw 
+6759 20600000 rtn 
+
+ssa_req_range_attrbutes_length_no_continue:
+675a 58000036 setarg 0x36 
+675b e7e08005 istore 1 ,contw 
+675c 184085fd increase -3 ,temp 
+675d 1850fe00 byteswap temp ,pdata 
+675e e7e10005 istore 2 ,contw 
+675f 20600000 rtn 
+
+ssa_req_range_freg_with_continue:
+6760 da200007 arg sdp_searchattrib_res ,rega 
+6761 58000002 setarg 2 
+6762 e7e08005 istore 1 ,contw 
+6763 6fe103ec fetch 2 ,mem_sdp_continue_byte 
+6764 98408400 iadd temp ,temp 
+6765 1850fe00 byteswap temp ,pdata 
+6766 e7e10005 istore 2 ,contw 
+6767 20406770 call ssa_req_range_common 
+6768 68490326 fetcht 2 ,mem_sdp_tx_pkt_length 
+6769 184085fb increase -5 ,temp 
+676a 1850fe00 byteswap temp ,pdata 
+676b e7e10005 istore 2 ,contw 
+676c 184085fb increase -5 ,temp 
+676d 1850fe00 byteswap temp ,pdata 
+676e e7e10005 istore 2 ,contw 
+676f 20600000 rtn 
+
+ssa_req_range_common:
+6770 6fe10324 fetch 2 ,mem_sdp_tx_payload_ptr 
+6771 98a67e00 isub contw ,pdata 
+6772 1fe67e00 sub pdata ,0 ,pdata 
+6773 67e10326 store 2 ,mem_sdp_tx_pkt_length 
+6774 20405240 call l2cap_get_sdp_tx_payload 
+6775 1a227e00 copy rega ,pdata 
+6776 e7e08005 istore 1 ,contw 
+6777 6fe103ef fetch 2 ,mem_sdp_transactionid 
+6778 e7e10005 istore 2 ,contw 
+6779 20600000 rtn 
+
+sdp_process_ssa_res:
+
+sdp_process_ss_res:
+
+sdp_process_sa_res:
+
+sdp_process_error_res:
+677a 20600000 rtn 
+
+sdp_invalid_service_record_handle:
+677b 58000200 setarg 0x0200 
+677c 67e1041d store 2 ,mem_sdp_error_code 
+677d 20206786 branch sdp_error_response 
+
+sdp_invalid_pdu_size:
+677e 58000400 setarg 0x0400 
+677f 67e1041d store 2 ,mem_sdp_error_code 
+6780 20206786 branch sdp_error_response 
+
+sdp_insufficient_resource:
+6781 58000600 setarg 0x0600 
+6782 67e1041d store 2 ,mem_sdp_error_code 
+6783 20206786 branch sdp_error_response 
+
+sdp_invalid_request_syntax:
+6784 58000300 setarg 0x0300 
+6785 67e1041d store 2 ,mem_sdp_error_code 
+
+sdp_error_response:
+6786 20405240 call l2cap_get_sdp_tx_payload 
+6787 e7e08005 istore 1 ,contw 
+6788 6fe103ef fetch 2 ,mem_sdp_transactionid 
+6789 e7e10005 istore 2 ,contw 
+678a 58000200 setarg 0x0200 
+678b e7e10005 istore 2 ,contw 
+678c 6fe1041d fetch 2 ,mem_sdp_error_code 
+678d e7e10005 istore 2 ,contw 
+678e 70032607 jam 7 ,mem_sdp_tx_pkt_length 
+678f 20600000 rtn 
+
+ask_serviceclassid:
+6790 da400000 arg 0 ,regb 
+6791 18000400 force 0 ,temp 
+6792 d8a003e4 arg mem_sdp_uuid_search_ptr ,contw 
+6793 204067e8 call dataelementtype6 
+6794 2022e7e6 branch asksrv_error ,zero 
+
+classidloop:
+6795 1a40a401 increase 1 ,regb 
+6796 efe08006 ifetch 1 ,contr 
+6797 1a20a3ff increase -1 ,rega 
+6798 196097ff increase -1 ,timeup 
+6799 2fe1f018 compare 0x18 ,pdata ,0xf8 
+679a 2420e7e6 nbranch asksrv_error ,true 
+679b 2fe00e04 compare 0x04 ,pdata ,0x07 
+679c 2420e7b3 nbranch cmp032 ,true 
+679d 18000401 force 1 ,temp 
+
+skip2bytes:
+679e efe08006 ifetch 1 ,contr 
+679f 1a20a3ff increase -1 ,rega 
+67a0 196097ff increase -1 ,timeup 
+67a1 c08067a7 bne 0x00 ,frstbwrong 
+67a2 efe08006 ifetch 1 ,contr 
+67a3 1a20a3ff increase -1 ,rega 
+67a4 196097ff increase -1 ,timeup 
+67a5 c00067b8 beq 0x00 ,cmpuuid 
+67a6 202067aa branch scndbwrong 
+
+frstbwrong:
+67a7 18c08c01 increase 1 ,contr 
+67a8 1a20a3ff increase -1 ,rega 
+67a9 196097ff increase -1 ,timeup 
+
+scndbwrong:
+67aa 18c08c02 increase 2 ,contr 
+67ab 1a20a3fe increase -2 ,rega 
+67ac 196097fe increase -2 ,timeup 
+67ad 2841fe00 compare 0x00 ,temp ,0xff 
+67ae 2020e7e0 branch loopornot ,true 
+67af 18c08c0c increase 12 ,contr 
+67b0 1a20a3f4 increase -12 ,rega 
+67b1 196097f4 increase -12 ,timeup 
+67b2 202067e0 branch loopornot 
+
+cmp032:
+67b3 2fe00e02 compare 0x02 ,pdata ,0x07 
+67b4 2420e7b6 nbranch cmp016 ,true 
+67b5 2020679e branch skip2bytes 
+
+cmp016:
+67b6 2fe00e01 compare 0x01 ,pdata ,0x07 
+67b7 2420e7e6 nbranch asksrv_error ,true 
+
+cmpuuid:
+67b8 1a20a3fe increase -2 ,rega 
+67b9 196097fe increase -2 ,timeup 
+67ba efe10006 ifetch 2 ,contr 
+67bb 1a467c04 sub regb ,4 ,null 
+67bc 2022e7be branch uuidsize ,zero 
+67bd e7e10005 istore 2 ,contw 
+
+uuidsize:
+67be 2841fe00 compare 0x00 ,temp ,0xff 
+67bf 2020e7e0 branch loopornot ,true 
+67c0 18c20400 copy contr ,temp 
+67c1 efe08006 ifetch 1 ,contr 
+67c2 c08067d9 bne 0x00 ,wrong12b 
+67c3 efe08006 ifetch 1 ,contr 
+67c4 c08067d9 bne 0x00 ,wrong12b 
+67c5 efe08006 ifetch 1 ,contr 
+67c6 c08867d9 bne 0x10 ,wrong12b 
+67c7 efe08006 ifetch 1 ,contr 
+67c8 c08067d9 bne 0x00 ,wrong12b 
+67c9 efe08006 ifetch 1 ,contr 
+67ca c0c067d9 bne 0x80 ,wrong12b 
+67cb efe08006 ifetch 1 ,contr 
+67cc c08067d9 bne 0x00 ,wrong12b 
+67cd efe08006 ifetch 1 ,contr 
+67ce c08067d9 bne 0x00 ,wrong12b 
+67cf efe08006 ifetch 1 ,contr 
+67d0 c0c067d9 bne 0x80 ,wrong12b 
+67d1 efe08006 ifetch 1 ,contr 
+67d2 c0afe7d9 bne 0x5f ,wrong12b 
+67d3 efe08006 ifetch 1 ,contr 
+67d4 c0cde7d9 bne 0x9b ,wrong12b 
+67d5 efe08006 ifetch 1 ,contr 
+67d6 c09a67d9 bne 0x34 ,wrong12b 
+67d7 efe08006 ifetch 1 ,contr 
+67d8 c07de7de beq 0xfb ,chck12dn 
+
+wrong12b:
+67d9 18420c00 copy temp ,contr 
+
+wrong12b1:
+67da 18c08c0c increase 12 ,contr 
+67db 18000e00 force 0x00 ,queue 
+67dc 18000400 force 0x00 ,temp 
+67dd 202067de branch chck12dn 
+
+chck12dn:
+67de 196097f4 increase -12 ,timeup 
+67df 1a20a3f4 increase -12 ,rega 
+
+loopornot:
+67e0 18000400 force 0x00 ,temp 
+67e1 2a21fe00 compare 0x00 ,rega ,0xff 
+67e2 2420e795 nbranch classidloop ,true 
+67e3 18007e00 force 0 ,pdata 
+67e4 e7e10005 istore 2 ,contw 
+67e5 20600000 rtn 
+
+asksrv_error:
+67e6 d84000ff arg 0xff ,temp 
+67e7 20600000 rtn 
+
+dataelementtype6:
+67e8 4730c02c bpatchx patch2c_1 ,mem_patch2c 
+67e9 efe08006 ifetch 1 ,contr 
+67ea 196097ff increase -1 ,timeup 
+67eb 2fe1f030 compare 0x30 ,pdata ,0xf8 
+67ec 2420e7fe nbranch dsize_error ,true 
+67ed 2fe00e07 compare 0x07 ,pdata ,0x07 
+67ee 2020e7f7 branch dsize32 ,true 
+67ef 2fe00e06 compare 0x06 ,pdata ,0x07 
+67f0 2020e7f9 branch dsize16 ,true 
+67f1 2fe00e05 compare 0x05 ,pdata ,0x07 
+67f2 2420e7fe nbranch dsize_error ,true 
+67f3 efe08006 ifetch 1 ,contr 
+67f4 1fe22200 copy pdata ,rega 
+67f5 196097ff increase -1 ,timeup 
+67f6 202067fc branch dsize 
+
+dsize32:
+67f7 18c08c02 increase 2 ,contr 
+67f8 196097fe increase -2 ,timeup 
+
+dsize16:
+67f9 efe10006 ifetch 2 ,contr 
+67fa 1ff0a200 byteswap pdata ,rega 
+67fb 196097fe increase -2 ,timeup 
+
+dsize:
+67fc 18007e01 force 0x01 ,pdata 
+67fd 20600000 rtn 
+
+dsize_error:
+67fe 18007e00 force 0x00 ,pdata 
+67ff 20600000 rtn 
+
+ss_empty_rsp:
+6800 58000003 setarg sdp_search_res 
+6801 67e083ee store 1 ,mem_sdp_pduid 
+6802 20206808 branch empty_response 
+
+sa_empty_rsp:
+6803 58000005 setarg sdp_attribute_res 
+6804 67e083ee store 1 ,mem_sdp_pduid 
+6805 20206808 branch empty_response 
+
+ssa_empty_rsp:
+6806 58000007 setarg sdp_searchattrib_res 
+6807 67e083ee store 1 ,mem_sdp_pduid 
+
+empty_response:
+6808 20405240 call l2cap_get_sdp_tx_payload 
+6809 6fe083ee fetch 1 ,mem_sdp_pduid 
+680a 1fe22400 copy pdata ,regb 
+680b e7e08005 istore 1 ,contw 
+680c 6fe103ef fetch 2 ,mem_sdp_transactionid 
+680d e7e10005 istore 2 ,contw 
+680e 58000500 setarg 0x0500 
+680f e7e10005 istore 2 ,contw 
+6810 2a41fe05 compare sdp_attribute_res ,regb ,0xff 
+6811 2020e817 branch fullsearch ,true 
+6812 2a41fe07 compare sdp_searchattrib_res ,regb ,0xff 
+6813 2020e817 branch fullsearch ,true 
+6814 58000000 setarg 0x000000 
+6815 e7e28005 istore 5 ,contw 
+6816 20206819 branch outempty 
+
+fullsearch:
+6817 58350200 setarg 0x350200 
+6818 e7e28005 istore 5 ,contw 
+
+outempty:
+6819 7003260a jam 10 ,mem_sdp_tx_pkt_length 
+681a 20600000 rtn 
+
+sdp_data_len:
+681b 20407c26 call store_contw 
+681c 20407c29 call store_contr 
+681d 20406822 call sdp_get_data 
+681e 20407c20 call get_contw 
+681f 20407c23 call get_contr 
+6820 18427e00 copy temp ,pdata 
+6821 20600000 rtn 
+
+sdp_get_data:
+6822 efe08006 ifetch 1 ,contr 
+6823 1fe17207 and pdata ,0x7 ,loopcnt 
+6824 1fe97e00 rshift3 pdata ,pdata 
+6825 c080682c bne 0 ,sdp_get_data_type_not0 
+
+sdp_get_data_type0:
+6826 18007e01 force 1 ,pdata 
+6827 18000401 force 1 ,temp 
+6828 20600000 rtn 
+
+sdp_get_data_type_not0_sizeindex01234:
+6829 20407c00 call left_shift_n 
+682a 1fe08401 add pdata ,1 ,temp 
+682b 20600000 rtn 
+
+sdp_get_data_type_not0:
+682c 1f227e00 deposit loopcnt 
+682d 1fe67c04 sub pdata ,4 ,null 
+682e 20216829 branch sdp_get_data_type_not0_sizeindex01234 ,positive 
+682f c002e833 beq 5 ,sdp_get_data_type_not0_sizeindex5 
+6830 c0036836 beq 6 ,sdp_get_data_type_not0_sizeindex6 
+6831 c003e83a beq 7 ,sdp_get_data_type_not0_sizeindex7 
+6832 20600000 rtn 
+
+sdp_get_data_type_not0_sizeindex5:
+6833 efe08006 ifetch 1 ,contr 
+6834 1fe08402 add pdata ,2 ,temp 
+6835 20600000 rtn 
+
+sdp_get_data_type_not0_sizeindex6:
+6836 efe10006 ifetch 2 ,contr 
+6837 1ff0fe00 byteswap pdata ,pdata 
+6838 1fe08403 add pdata ,3 ,temp 
+6839 20600000 rtn 
+
+sdp_get_data_type_not0_sizeindex7:
+683a efe10006 ifetch 2 ,contr 
+683b 1ff0fe00 byteswap pdata ,pdata 
+683c e8410006 ifetcht 2 ,contr 
+683d 18508400 byteswap temp ,temp 
+683e 18500400 lshift16 temp ,temp 
+683f 9840fe00 iadd temp ,pdata 
+6840 1fe08405 add pdata ,5 ,temp 
+6841 20600000 rtn 
+
+search_all_uuid:
+6842 4731402c bpatchx patch2c_2 ,mem_patch2c 
+6843 18000e00 force 0 ,queue 
+6844 da400000 arg 0 ,regb 
+6845 d8a003fd arg mem_sdp_handle_list ,contw 
+
+search_all_uuid_llop:
+6846 efe1000b ifetch 2 ,timeup 
+6847 207a0000 rtn blank 
+6848 2040684d call search_uuid 
+6849 18e27e00 copy queue ,pdata 
+684a c1038000 rtneq sdp_max_handle_number 
+684b 19609602 increase 2 ,timeup 
+684c 20206846 branch search_all_uuid_llop 
+
+search_uuid:
+684d 98002600 iforce regc 
+684e 6fe14667 fetch 2 ,mem_ui_uuid_table 
+684f 98000c00 iforce contr 
+
+search_uuid_next:
+6850 18e27e00 copy queue ,pdata 
+6851 c1038000 rtneq sdp_max_handle_number 
+6852 78547c00 disable user 
+6853 efe08006 ifetch 1 ,contr 
+6854 207a0000 rtn blank 
+6855 98007200 iforce loopcnt 
+
+search_uuid_loop:
+6856 efe10006 ifetch 2 ,contr 
+6857 9a667c00 isub regc ,null 
+6858 2422e85a nbranch search_uuid_not_found ,zero 
+6859 78347c00 enable user 
+
+search_uuid_not_found:
+685a c2006856 loop search_uuid_loop 
+685b e8420006 ifetcht 4 ,contr 
+685c 18c22200 copy contr ,rega 
+685d 2434686d nbranch search_uuid_nomatch ,user 
+685e d8c003fd arg mem_sdp_handle_list ,contr 
+685f df200007 arg sdp_max_handle_number ,loopcnt 
+
+search_uuid_check_same_handle:
+6860 efe20006 ifetch 4 ,contr 
+6861 203a6866 branch search_uuid_store_handle ,blank 
+6862 98467c00 isub temp ,null 
+6863 2022e86d branch search_uuid_nomatch ,zero 
+6864 c2006860 loop search_uuid_check_same_handle 
+6865 20600000 rtn 
+
+search_uuid_store_handle:
+6866 e0420005 istoret 4 ,contw 
+6867 18e08e01 increase 1 ,queue 
+6868 1a220c00 copy rega ,contr 
+6869 2040681b call sdp_data_len 
+686a 9a40a400 iadd regb ,regb 
+686b 98c08c00 iadd contr ,contr 
+686c 20206850 branch search_uuid_next 
+
+search_uuid_nomatch:
+686d 1a220c00 copy rega ,contr 
+686e 20406822 call sdp_get_data 
+686f 98c08c00 iadd contr ,contr 
+6870 20206850 branch search_uuid_next 
+
+search_handle:
+6871 4731c02c bpatchx patch2c_3 ,mem_patch2c 
+6872 6fe14667 fetch 2 ,mem_ui_uuid_table 
+6873 98000c00 iforce contr 
+
+search_handle_loop:
+6874 efe08006 ifetch 1 ,contr 
+6875 203a7d8e branch disable_zero ,blank 
+6876 1fe3fe00 lshift pdata ,pdata 
+6877 98c08c00 iadd contr ,contr 
+6878 efe20006 ifetch 4 ,contr 
+6879 98467c00 isub temp ,null 
+687a 20628000 rtn zero 
+687b 18a27e00 deposit contw 
+687c 67e1097d store 2 ,mem_contw 
+687d 604c0964 storet 8 ,mem_temp 
+687e 20406822 call sdp_get_data 
+687f 98c08c00 iadd contr ,contr 
+6880 18c27e00 copy contr ,pdata 
+6881 6849097d fetcht 2 ,mem_contw 
+6882 18420a00 copy temp ,contw 
+6883 684c0964 fetcht 8 ,mem_temp 
+6884 1fe20c00 copy pdata ,contr 
+6885 20206874 branch search_handle_loop 
+
+search_attrib:
+6886 4732402c bpatchx patch2c_4 ,mem_patch2c 
+6887 6fe14667 fetch 2 ,mem_ui_uuid_table 
+6888 98000c00 iforce contr 
+
+search_attrib_next:
+6889 efe08006 ifetch 1 ,contr 
+688a 203a68a4 branch search_attrib_end ,blank 
+688b 98007200 iforce loopcnt 
+
+search_attrib_loop:
+688c efe10006 ifetch 2 ,contr 
+688d 9a667c00 isub regc ,null 
+688e 2022e894 branch search_attrib_found_uuid ,zero 
+688f c200688c loop search_attrib_loop 
+6890 18c08c04 increase 4 ,contr 
+6891 20406822 call sdp_get_data 
+6892 98c08c00 iadd contr ,contr 
+6893 20206889 branch search_attrib_next 
+
+search_attrib_found_uuid:
+6894 1f20f3ff increase -1 ,loopcnt 
+6895 1f23fe00 lshift loopcnt ,pdata 
+6896 98c08c00 iadd contr ,contr 
+6897 18c08c04 increase 4 ,contr 
+6898 20406822 call sdp_get_data 
+6899 98c09600 iadd contr ,timeup 
+
+search_attrib_loop_attribs:
+689a 18c08c01 increase 1 ,contr 
+689b efe10006 ifetch 2 ,contr 
+689c 9a467c00 isub regb ,null 
+689d 2022fd9c branch disable_blank ,zero 
+689e 2040681b call sdp_data_len 
+689f 98c08c00 iadd contr ,contr 
+68a0 19627e00 deposit timeup 
+68a1 98c67c00 isub contr ,null 
+68a2 2022e8a4 branch search_attrib_end ,zero 
+68a3 2020689a branch search_attrib_loop_attribs 
+
+search_attrib_end:
+68a4 18000c00 force 0 ,contr 
+68a5 18007e00 force 0 ,pdata 
+68a6 20600000 rtn 
+
+search_handle_attrib:
+68a7 4732c02c bpatchx patch2c_5 ,mem_patch2c 
+68a8 6fe14667 fetch 2 ,mem_ui_uuid_table 
+68a9 98000c00 iforce contr 
+
+search_handle_attrib_next:
+68aa efe08006 ifetch 1 ,contr 
+68ab 203a68c0 branch search_handle_attrib_end ,blank 
+68ac 1fe3fe00 lshift pdata ,pdata 
+68ad 98c08c00 iadd contr ,contr 
+68ae efe20006 ifetch 4 ,contr 
+68af 98467c00 isub temp ,null 
+68b0 2022e8b4 branch search_handl_attrib_found_handle ,zero 
+68b1 20406822 call sdp_get_data 
+68b2 98c08c00 iadd contr ,contr 
+68b3 202068aa branch search_handle_attrib_next 
+
+search_handl_attrib_found_handle:
+68b4 20406822 call sdp_get_data 
+68b5 98c09600 iadd contr ,timeup 
+
+search_handle_attrib_loop_attribs:
+68b6 18c08c01 increase 1 ,contr 
+68b7 efe10006 ifetch 2 ,contr 
+68b8 9a467c00 isub regb ,null 
+68b9 20628000 rtn zero 
+68ba 2040681b call sdp_data_len 
+68bb 98c08c00 iadd contr ,contr 
+68bc 19627e00 deposit timeup 
+68bd 98c67c00 isub contr ,null 
+68be 2022e8c0 branch search_handle_attrib_end ,zero 
+68bf 202068b6 branch search_handle_attrib_loop_attribs 
+
+search_handle_attrib_end:
+68c0 18000c00 force 0 ,contr 
+68c1 20600000 rtn 
+
+search_rfcomm_cn:
+68c2 da400400 arg 0x0400 ,regb 
+68c3 204068b4 call search_handl_attrib_found_handle 
+68c4 da400300 arg 0x0300 ,regb 
+68c5 204068cd call search_uuid_in_data 
+68c6 24740000 nrtn user 
+68c7 1a267c03 sub rega ,3 ,null 
+68c8 20217d94 branch disable_user ,positive 
+68c9 efe08006 ifetch 1 ,contr 
+68ca c0847d94 bne 0x08 ,disable_user 
+68cb efe08006 ifetch 1 ,contr 
+68cc 20600000 rtn 
+
+search_uuid_in_data:
+68cd 4733402c bpatchx patch2c_6 ,mem_patch2c 
+68ce 20406822 call sdp_get_data 
+68cf 1fe22200 copy pdata ,rega 
+
+search_uuid_in_data_loop:
+68d0 efe08006 ifetch 1 ,contr 
+68d1 1fe17207 and pdata ,0x7 ,loopcnt 
+68d2 1fe97e00 rshift3 pdata ,pdata 
+68d3 1fe67c03 sub pdata ,3 ,null 
+68d4 2022e8e9 branch search_uuid_in_data_found_uuid ,zero 
+68d5 1f227e00 copy loopcnt ,pdata 
+68d6 c002e8e0 beq 5 ,search_uuid_in_data_found_element_index5 
+68d7 c00368e3 beq 6 ,search_uuid_in_data_found_element_index6 
+68d8 c003e8e6 beq 7 ,search_uuid_in_data_found_element_index7 
+68d9 18c08dff increase -1 ,contr 
+68da 20406822 call sdp_get_data 
+68db 98c08c00 iadd contr ,contr 
+68dc 1a227e00 copy rega ,pdata 
+68dd 98462200 isub temp ,rega 
+68de 2022fd94 branch disable_user ,zero 
+68df 202068d0 branch search_uuid_in_data_loop 
+
+search_uuid_in_data_found_element_index5:
+68e0 1a20a3fe increase -2 ,rega 
+68e1 18c08c01 increase 1 ,contr 
+68e2 202068d0 branch search_uuid_in_data_loop 
+
+search_uuid_in_data_found_element_index6:
+68e3 1a20a3fd increase -3 ,rega 
+68e4 18c08c02 increase 2 ,contr 
+68e5 202068d0 branch search_uuid_in_data_loop 
+
+search_uuid_in_data_found_element_index7:
+68e6 1a20a3fb increase -5 ,rega 
+68e7 18c08c04 increase 4 ,contr 
+68e8 202068d0 branch search_uuid_in_data_loop 
+
+search_uuid_in_data_found_uuid:
+68e9 1a20a3ff increase -1 ,rega 
+68ea 1f227e00 copy loopcnt ,pdata 
+68eb c000e8f2 beq 1 ,search_uuid_in_data_type_uuid_16 
+68ec c00168f0 beq 2 ,search_uuid_in_data_type_uuid_32 
+68ed c00268ef beq 4 ,search_uuid_in_data_type_uuid_128 
+68ee 20207d94 branch disable_user 
+
+search_uuid_in_data_type_uuid_128:
+68ef 1a20a3f4 increase -12 ,rega 
+
+search_uuid_in_data_type_uuid_32:
+68f0 efe10006 ifetch 2 ,contr 
+68f1 1a20a3fe increase -2 ,rega 
+
+search_uuid_in_data_type_uuid_16:
+68f2 efe10006 ifetch 2 ,contr 
+68f3 9a467c00 isub regb ,null 
+68f4 2022fd92 branch enable_user ,zero 
+68f5 1a20a3fe increase -2 ,rega 
+68f6 2022fd94 branch disable_user ,zero 
+68f7 202068d0 branch search_uuid_in_data_loop 
+
+sdp_send_spp_request:
+68f8 20405240 call l2cap_get_sdp_tx_payload 
+68f9 1fe20a00 copy pdata ,contw 
+68fa 58000006 setarg 6 
+68fb e7e08005 istore 1 ,contw 
+68fc 5800006e setarg sdp_tid_spp 
+68fd e7e10005 istore 2 ,contw 
+68fe 58000f00 setarg 0x0f00 
+68ff e7e10005 istore 2 ,contw 
+6900 581a0535 setarg 0x1a0535 
+6901 e7e18005 istore 3 ,contw 
+6902 58000111 setarg 0x0111 
+6903 1ff07e00 lshift16 pdata ,pdata 
+6904 e7e20005 istore 4 ,contw 
+6905 58002600 setarg 0x2600 
+6906 e7e10005 istore 2 ,contw 
+6907 58000335 setarg 0x0335 
+6908 e7e10005 istore 2 ,contw 
+6909 58000009 setarg 0x0009 
+690a e7e10005 istore 2 ,contw 
+690b 58000004 setarg 0x0004 
+690c e7e10005 istore 2 ,contw 
+690d 70032614 jam 0x14 ,mem_sdp_tx_pkt_length 
+690e 20600000 rtn 
+
+function_g2:
+690f 4733c02c bpatchx patch2c_7 ,mem_patch2c 
+6910 7004a750 jam 80 ,mem_aes_cmac_data_length 
+6911 d8a004a8 arg memdat ,contw 
+6912 d8c0433a arg mem_le_srand ,contr 
+6913 20407c4c call memcpy16 
+6914 d8c046e3 arg mem_sc_pubkey_local_x_256 ,contr 
+6915 20407c4a call memcpy32 
+6916 d8c00880 arg mem_le_pubkey_remote_x_256 ,contr 
+6917 20407c4a call memcpy32 
+6918 204069ca call inverse_memdat 
+6919 d8c00277 arg mem_le_mrand ,contr 
+691a 204069c5 call store_inverse_k 
+691b 20406990 call function_aes_cmac 
+691c d8a009be arg mem_aes_cmac_temp ,contw 
+691d 204069c1 call load_inverse_result 
+691e 580f4240 setarg 1000000 
+691f 1fe22200 copy pdata ,rega 
+6920 6fe209be fetch 4 ,mem_aes_cmac_temp 
+6921 9a26fc00 idiv rega 
+6922 20407d31 call wait_div_end 
+6923 18077e00 remainder pdata 
+6924 67e2087c store 4 ,mem_gkey 
+6925 20600000 rtn 
+
+function_f6_eb:
+6926 7004a741 jam 65 ,mem_aes_cmac_data_length 
+6927 d8a004a8 arg memdat ,contw 
+6928 20406975 call store_addr_common_a 
+6929 20406970 call store_addr_common_b 
+692a 6fe1c354 fetch 3 ,mem_le_pres + 1 
+692b e7e18005 istore 3 ,contw 
+692c 20406936 call get_r 
+692d d8c00277 arg mem_le_mrand ,contr 
+692e 20407c4c call memcpy16 
+692f d8c0433a arg mem_le_srand ,contr 
+6930 20407c4c call memcpy16 
+6931 204069ca call inverse_memdat 
+6932 d8c009de arg mem_le_mackey ,contr 
+6933 d8a0098e arg mem_aes_cmac_k ,contw 
+6934 20407c4c call memcpy16 
+6935 20206990 branch function_aes_cmac 
+
+get_r:
+6936 6fe243a1 fetch 4 ,mem_le_tk 
+6937 e7e20005 istore 4 ,contw 
+6938 20407c61 call memset0_4 
+6939 20207c5e branch memset0_8 
+
+function_f6_ea:
+693a 4734402d bpatchx patch2d_0 ,mem_patch2d 
+693b 7004a741 jam 65 ,mem_aes_cmac_data_length 
+693c d8a004a8 arg memdat ,contw 
+693d 20406970 call store_addr_common_b 
+693e 20406975 call store_addr_common_a 
+693f 6fe1c34d fetch 3 ,mem_le_preq + 1 
+6940 e7e18005 istore 3 ,contw 
+6941 20406936 call get_r 
+6942 d8c0433a arg mem_le_srand ,contr 
+6943 20407c4c call memcpy16 
+6944 d8c00277 arg mem_le_mrand ,contr 
+6945 20407c4c call memcpy16 
+6946 204069ca call inverse_memdat 
+6947 d8c009de arg mem_le_mackey ,contr 
+6948 d8a0098e arg mem_aes_cmac_k ,contw 
+6949 20407c4c call memcpy16 
+694a 20406990 call function_aes_cmac 
+694b d8a009be arg mem_aes_cmac_temp ,contw 
+694c 202069c1 branch load_inverse_result 
+
+function_f5:
+694d 7004a720 jam 32 ,mem_aes_cmac_data_length 
+694e d8c008c0 arg mem_le_dhkey_256 ,contr 
+694f d8a004a8 arg memdat ,contw 
+6950 20407c4a call memcpy32 
+6951 204069ca call inverse_memdat 
+6952 d8c00860 arg mem_le_slat ,contr 
+6953 204069c5 call store_inverse_k 
+6954 20406990 call function_aes_cmac 
+6955 d8a0098e arg mem_aes_cmac_k ,contw 
+6956 20406d07 call store_aes_result 
+6957 d8400001 arg 1 ,temp 
+6958 2040695f call function_f5_common 
+6959 d8a04319 arg mem_le_ltk ,contw 
+695a 204069c1 call load_inverse_result 
+695b d8400000 arg 0 ,temp 
+695c 2040695f call function_f5_common 
+695d d8a009de arg mem_le_mackey ,contw 
+695e 20206d07 branch store_aes_result 
+
+function_f5_common:
+695f 4734c02d bpatchx patch2d_1 ,mem_patch2d 
+6960 7004a735 jam 53 ,mem_aes_cmac_data_length 
+6961 58000100 setarg 0x100 
+6962 67e104a8 store 2 ,memdat 
+6963 20406970 call store_addr_common_b 
+6964 20406975 call store_addr_common_a 
+6965 d8c0433a arg mem_le_srand ,contr 
+6966 20407c4c call memcpy16 
+6967 d8c00277 arg mem_le_mrand ,contr 
+6968 20407c4c call memcpy16 
+6969 58006c65 setarg 0x6c65 
+696a e7e10005 istore 2 ,contw 
+696b 58006274 setarg 0x6274 
+696c e7e10005 istore 2 ,contw 
+696d e0408005 istoret 1 ,contw 
+696e 204069ca call inverse_memdat 
+696f 20206990 branch function_aes_cmac 
+
+store_addr_common_b:
+6970 6fe3437d fetch 6 ,mem_le_lap 
+6971 e7e30005 istore 6 ,contw 
+6972 6fe0c374 fetch 1 ,mem_le_conn_own_addr_type 
+6973 e7e08005 istore 1 ,contw 
+6974 20600000 rtn 
+
+store_addr_common_a:
+6975 6fe30297 fetch 6 ,mem_le_plap 
+6976 e7e30005 istore 6 ,contw 
+6977 6fe0c36d fetch 1 ,mem_le_conn_peer_addr_type 
+6978 e7e08005 istore 1 ,contw 
+6979 20600000 rtn 
+
+function_f4_ca:
+697a 7004a741 jam 65 ,mem_aes_cmac_data_length 
+697b 6fe0c775 fetch 1 ,mem_passkey_1bit 
+697c 67e084a8 store 1 ,memdat 
+697d d8c046e3 arg mem_sc_pubkey_local_x_256 ,contr 
+697e 20407c4a call memcpy32 
+697f d8c00880 arg mem_le_pubkey_remote_x_256 ,contr 
+6980 20407c4a call memcpy32 
+6981 204069ca call inverse_memdat 
+6982 d8c00277 arg mem_le_mrand ,contr 
+6983 204069c5 call store_inverse_k 
+6984 20206990 branch function_aes_cmac 
+
+function_f4_cb:
+6985 7004a741 jam 65 ,mem_aes_cmac_data_length 
+6986 6fe0c775 fetch 1 ,mem_passkey_1bit 
+6987 67e084a8 store 1 ,memdat 
+6988 d8c00880 arg mem_le_pubkey_remote_x_256 ,contr 
+6989 20407c4a call memcpy32 
+698a d8c046e3 arg mem_sc_pubkey_local_x_256 ,contr 
+698b 20407c4a call memcpy32 
+698c 204069ca call inverse_memdat 
+698d d8c0433a arg mem_le_srand ,contr 
+698e 204069c5 call store_inverse_k 
+698f 20206990 branch function_aes_cmac 
+
+function_aes_cmac:
+6990 4735402d bpatchx patch2d_2 ,mem_patch2d 
+6991 204069df call function_aes_cmac_generate_subkey 
+6992 6fe084a7 fetch 1 ,mem_aes_cmac_data_length 
+6993 1fe20400 copy pdata ,temp 
+
+function_ceil16:
+6994 1fe0fe0f increase 15 ,pdata 
+6995 1ff1fe00 rshift4 pdata ,pdata 
+6996 1fe22400 copy pdata ,regb 
+6997 203a69a2 branch function_aes_cmac_set_flag_0_balnk ,blank 
+6998 18417e0f and temp ,0x0f ,pdata 
+6999 243a69a5 nbranch function_aes_cmac_set_flag_0 ,blank 
+699a da60099e arg mem_aes_cmac_k1 ,regc 
+699b dfe004a8 arg memdat ,pdata 
+699c 1fe0fff0 increase -16 ,pdata 
+699d 9840a200 iadd temp ,rega 
+699e d8a009ce arg mem_aes_cmac_m_last ,contw 
+699f df200004 arg 4 ,loopcnt 
+69a0 20407c71 call xor_loop 
+69a1 202069b0 branch function_aes_cmac_aes 
+
+function_aes_cmac_set_flag_0_balnk:
+69a2 da400001 arg 1 ,regb 
+69a3 da200000 arg 0 ,rega 
+69a4 202069a6 branch function_aes_cmac_set_flag_0_common 
+
+function_aes_cmac_set_flag_0:
+69a5 1841220f and temp ,0x0f ,rega 
+
+function_aes_cmac_set_flag_0_common:
+69a6 dfe004a8 arg memdat ,pdata 
+69a7 9840fe00 iadd temp ,pdata 
+69a8 9a260c00 isub rega ,contr 
+69a9 d8a009be arg mem_aes_cmac_temp ,contw 
+69aa 20406a05 call function_aes_cmac_padding 
+69ab da6009ae arg mem_aes_cmac_k2 ,regc 
+69ac da2009be arg mem_aes_cmac_temp ,rega 
+69ad d8a009ce arg mem_aes_cmac_m_last ,contw 
+69ae df200004 arg 4 ,loopcnt 
+69af 20407c71 call xor_loop 
+
+function_aes_cmac_aes:
+69b0 20406d01 call aes_clear_data 
+69b1 20406c6c call aes_init 
+69b2 d8c004a8 arg memdat ,contr 
+
+function_aes_cmac_aes_loop:
+69b3 1a40a5ff increase -1 ,regb 
+69b4 1a427e00 deposit regb 
+69b5 203a69b9 branch function_aes_cmac_aes_loop_end ,blank 
+69b6 20406cf3 call load_data128 
+69b7 20406c66 call do_aes_cbc 
+69b8 202069b3 branch function_aes_cmac_aes_loop 
+
+function_aes_cmac_aes_loop_end:
+69b9 d8a009be arg mem_aes_cmac_temp ,contw 
+69ba 20406d07 call store_aes_result 
+69bb d8c009ce arg mem_aes_cmac_m_last ,contr 
+69bc 20406cf3 call load_data128 
+69bd 20406c6c call aes_init 
+69be d8c009be arg mem_aes_cmac_temp ,contr 
+69bf 20406cf3 call load_data128 
+69c0 20206c66 branch do_aes_cbc 
+
+load_inverse_result:
+69c1 18a22200 copy contw ,rega 
+69c2 20406d07 call store_aes_result 
+69c3 df200010 arg 16 ,loopcnt 
+69c4 20207c79 branch inverse_data 
+
+store_inverse_k:
+69c5 d8a0098e arg mem_aes_cmac_k ,contw 
+69c6 20407c4c call memcpy16 
+
+inverse_k:
+69c7 df200010 arg 16 ,loopcnt 
+69c8 da20098e arg mem_aes_cmac_k ,rega 
+69c9 20207c79 branch inverse_data 
+
+inverse_memdat:
+69ca 6fe084a7 fetch 1 ,mem_aes_cmac_data_length 
+69cb 1fe27200 copy pdata ,loopcnt 
+69cc da2004a8 arg memdat ,rega 
+69cd 20207c79 branch inverse_data 
+
+bn_lshift_0_inverse:
+69ce efe08011 ifetch 1 ,rega 
+69cf 1fe3fe00 lshift pdata ,pdata 
+69d0 2a6ffe00 isolate1 0 ,regc 
+69d1 7920fe00 setflag true ,0 ,pdata 
+69d2 2feffe08 isolate1 8 ,pdata 
+69d3 7920a600 setflag true ,0 ,regc 
+69d4 e7e08011 istore 1 ,rega 
+69d5 1a20a3ff increase -1 ,rega 
+69d6 c20069ce loop bn_lshift_0_inverse 
+69d7 20600000 rtn 
+
+function_aes_cmac_k1_inverse:
+69d8 da20099e arg mem_aes_cmac_k1 ,rega 
+
+function_aes_cmac_inverse_common:
+69d9 1a20a20f increase 15 ,rega 
+69da 18007210 force 16 ,loopcnt 
+69db 18002600 force 0 ,regc 
+69dc 202069ce branch bn_lshift_0_inverse 
+
+function_aes_cmac_k2_inverse:
+69dd da2009ae arg mem_aes_cmac_k2 ,rega 
+69de 202069d9 branch function_aes_cmac_inverse_common 
+
+function_aes_cmac_generate_subkey:
+69df d8c0098e arg mem_aes_cmac_k ,contr 
+69e0 20406cf1 call load_key 
+69e1 18007008 force regidx_xor ,regext_index 
+69e2 20406d02 call aes_clear 
+69e3 20406d01 call aes_clear_data 
+69e4 20406c63 call do_aes_ocb 
+69e5 d8a0099e arg mem_aes_cmac_k1 ,contw 
+69e6 20406d07 call store_aes_result 
+
+function_aes_cmac_k1:
+69e7 4735c02d bpatchx patch2d_3 ,mem_patch2d 
+69e8 6fe0899e fetch 1 ,mem_aes_cmac_k1 
+69e9 2feffe07 isolate1 7 ,pdata 
+69ea 2420e9f0 nbranch function_aes_cmac_k1_0 ,true 
+69eb 204069d8 call function_aes_cmac_k1_inverse 
+69ec da60099e arg mem_aes_cmac_k1 ,regc 
+69ed d8a0099e arg mem_aes_cmac_k1 ,contw 
+69ee 204069fa call function_aes_cmac_xor_rb 
+69ef 202069f1 branch function_aes_cmac_k2 
+
+function_aes_cmac_k1_0:
+69f0 204069d8 call function_aes_cmac_k1_inverse 
+
+function_aes_cmac_k2:
+69f1 d8c0099e arg mem_aes_cmac_k1 ,contr 
+69f2 d8a009ae arg mem_aes_cmac_k2 ,contw 
+69f3 20407c4c call memcpy16 
+69f4 6fe089ae fetch 1 ,mem_aes_cmac_k2 
+69f5 2feffe07 isolate1 7 ,pdata 
+69f6 2420e9dd nbranch function_aes_cmac_k2_inverse ,true 
+69f7 204069dd call function_aes_cmac_k2_inverse 
+69f8 da6009ae arg mem_aes_cmac_k2 ,regc 
+69f9 d8a009ae arg mem_aes_cmac_k2 ,contw 
+
+function_aes_cmac_xor_rb:
+69fa df200003 arg 3 ,loopcnt 
+
+function_aes_cmac_xor_rb_loop:
+69fb d8400000 arg 0 ,temp 
+69fc 20406a01 call function_aes_cmac_xor_loop_common 
+69fd 1a60a604 increase 4 ,regc 
+69fe c20069fb loop function_aes_cmac_xor_rb_loop 
+69ff d8408700 arg 0x8700 ,temp 
+6a00 18500400 lshift16 temp ,temp 
+
+function_aes_cmac_xor_loop_common:
+6a01 efe20013 ifetch 4 ,regc 
+6a02 9842fe00 ixor temp ,pdata 
+6a03 e7e20005 istore 4 ,contw 
+6a04 20600000 rtn 
+
+function_aes_cmac_padding:
+6a05 4736402d bpatchx patch2d_4 ,mem_patch2d 
+6a06 df200010 arg 16 ,loopcnt 
+6a07 dfe00000 arg 0 ,pdata 
+
+function_aes_cmac_padding_loop:
+6a08 9a267c00 isub rega ,null 
+6a09 2022ea10 branch function_aes_cmac_padding_beq_length ,zero 
+6a0a 20216a13 branch function_aes_cmac_padding_big_length ,positive 
+6a0b e8408006 ifetcht 1 ,contr 
+6a0c e0408005 istoret 1 ,contw 
+
+function_aes_cmac_padding_loop2:
+6a0d 1fe0fe01 increase 1 ,pdata 
+6a0e c2006a08 loop function_aes_cmac_padding_loop 
+6a0f 20600000 rtn 
+
+function_aes_cmac_padding_beq_length:
+6a10 d8400080 arg 0x80 ,temp 
+
+function_aes_cmac_padding_common:
+6a11 e0408005 istoret 1 ,contw 
+6a12 20206a0d branch function_aes_cmac_padding_loop2 
+
+function_aes_cmac_padding_big_length:
+6a13 d8400000 arg 0 ,temp 
+6a14 20206a11 branch function_aes_cmac_padding_common 
+
+generate_kinit:
+6a15 20406a28 call function_e22 
+6a16 d8c00454 arg mem_input_store ,contr 
+6a17 d8a00444 arg mem_kinit ,contw 
+6a18 20207c4c branch memcpy16 
+
+function_e21:
+6a19 78547c00 disable user 
+6a1a 20406b1f call function_expand 
+6a1b d8c00424 arg mem_random_number ,contr 
+6a1c d8a00464 arg mem_x ,contw 
+6a1d 1800720f force 15 ,loopcnt 
+6a1e 20407ca1 call memcpy 
+6a1f efe08006 ifetch 1 ,contr 
+6a20 1fe2fe06 xor_into 6 ,pdata 
+6a21 e7e08005 istore 1 ,contw 
+6a22 58000474 setarg mem_y 
+6a23 67e10498 store 2 ,memp_ar_input 
+6a24 58000464 setarg mem_x 
+6a25 67e10496 store 2 ,memp_ar_key 
+6a26 79200012 set1 mark_ar2 ,mark 
+6a27 20206a68 branch function_ar 
+
+function_e22:
+6a28 6848c79a fetcht 1 ,mem_pin_length 
+6a29 18002410 force 16 ,regb 
+6a2a 1840a606 add temp ,6 ,regc 
+6a2b 1a667c10 sub regc ,16 ,null 
+6a2c 20216a2e branch function_e22_pin_init ,positive 
+6a2d 18002610 force 16 ,regc 
+
+function_e22_pin_init:
+6a2e d8a00464 arg mem_x ,contw 
+
+function_e22_genx_pin:
+6a2f d8c0479b arg mem_pin ,contr 
+6a30 18427200 copy temp ,loopcnt 
+6a31 78547c00 disable user 
+
+function_e22_genx_loop:
+6a32 efe08006 ifetch 1 ,contr 
+6a33 e7e08005 istore 1 ,contw 
+6a34 1a40a5ff increase -1 ,regb 
+6a35 2022ea3c branch function_e22_genx_end ,zero 
+6a36 c2006a32 loop function_e22_genx_loop 
+6a37 20346a2f branch function_e22_genx_pin ,user 
+6a38 78347c00 enable user 
+6a39 18007206 force 6 ,loopcnt 
+6a3a 1a220c00 copy rega ,contr 
+6a3b 20206a32 branch function_e22_genx_loop 
+
+function_e22_genx_end:
+6a3c d8c00424 arg mem_random_number ,contr 
+6a3d d8a00474 arg mem_y ,contw 
+6a3e 20407c4c call memcpy16 
+6a3f 6fe08483 fetch 1 ,mem_y15 
+6a40 9a62fe00 ixor regc ,pdata 
+6a41 67e08483 store 1 ,mem_y15 
+6a42 58000474 setarg mem_y 
+6a43 67e10498 store 2 ,memp_ar_input 
+6a44 58000464 setarg mem_x 
+6a45 67e10496 store 2 ,memp_ar_key 
+6a46 79200012 set1 mark_ar2 ,mark 
+6a47 20206a68 branch function_ar 
+
+function_e1:
+6a48 78547c00 disable user 
+6a49 20406b1f call function_expand 
+6a4a 20206a52 branch function_hash 
+
+function_e3:
+6a4b da200056 arg mem_aco ,rega 
+6a4c 78347c00 enable user 
+6a4d 20406b1f call function_expand 
+6a4e 20406a52 call function_hash 
+6a4f d8c00454 arg mem_input_store ,contr 
+6a50 d8a00062 arg mem_kc ,contw 
+6a51 20207c4c branch memcpy16 
+
+function_hash:
+6a52 58000424 setarg mem_random_number 
+6a53 67e10498 store 2 ,memp_ar_input 
+6a54 580041ce setarg mem_link_key 
+6a55 67e10496 store 2 ,memp_ar_key 
+6a56 793f8012 set0 mark_ar2 ,mark 
+6a57 20406a68 call function_ar 
+6a58 da200454 arg mem_input_store ,rega 
+6a59 da400424 arg mem_random_number ,regb 
+6a5a d8a00464 arg mem_x ,contw 
+6a5b 20406b12 call xor16 
+6a5c da200464 arg mem_x ,rega 
+6a5d da400474 arg mem_y ,regb 
+6a5e 1a420a00 copy regb ,contw 
+6a5f 78347c00 enable user 
+6a60 20406b10 call add16 
+6a61 20406b2a call key_offset 
+6a62 58000474 setarg mem_y 
+6a63 67e10498 store 2 ,memp_ar_input 
+6a64 58000464 setarg mem_x 
+6a65 67e10496 store 2 ,memp_ar_key 
+6a66 79200012 set1 mark_ar2 ,mark 
+6a67 20206a68 branch function_ar 
+
+function_ar:
+6a68 70049a00 jam 0 ,mem_ar_hround 
+6a69 6fe10496 fetch 2 ,memp_ar_key 
+6a6a 98000c00 iforce contr 
+6a6b d8a00484 arg mem_key_store ,contw 
+6a6c 20407c4c call memcpy16 
+6a6d 6fe10498 fetch 2 ,memp_ar_input 
+6a6e 98000c00 iforce contr 
+6a6f d8a00454 arg mem_input_store ,contw 
+6a70 20407c4c call memcpy16 
+
+function_ar_loop:
+6a71 20406a8f call key_scheduling 
+6a72 78547c00 disable user 
+6a73 c5896a79 bmark0 mark_ar2 ,function_ar_original 
+6a74 6fe0849a fetch 1 ,mem_ar_hround 
+6a75 c0826a79 bne 4 ,function_ar_original 
+6a76 6fe10498 fetch 2 ,memp_ar_input 
+6a77 98002400 iforce regb 
+6a78 20406ac1 call xor_mod32_ar2 
+
+function_ar_original:
+6a79 20406ac0 call xor_mod32 
+6a7a 20406ad3 call el_boxes 
+6a7b 6fe0849a fetch 1 ,mem_ar_hround 
+6a7c 1fe0fe01 increase 1 ,pdata 
+6a7d 67e0849a store 1 ,mem_ar_hround 
+6a7e 20406a8f call key_scheduling 
+6a7f 78347c00 enable user 
+6a80 20406ac0 call xor_mod32 
+6a81 20406ae2 call pht 
+6a82 20406af1 call permute 
+6a83 20406ae2 call pht 
+6a84 20406af1 call permute 
+6a85 20406ae2 call pht 
+6a86 20406af1 call permute 
+6a87 20406ae2 call pht 
+6a88 6fe0849a fetch 1 ,mem_ar_hround 
+6a89 1fe0fe01 increase 1 ,pdata 
+6a8a 67e0849a store 1 ,mem_ar_hround 
+6a8b c0886a71 bne 16 ,function_ar_loop 
+6a8c 20406a8f call key_scheduling 
+6a8d 78547c00 disable user 
+6a8e 20206ac0 branch xor_mod32 
+
+key_scheduling:
+6a8f 6fe0849a fetch 1 ,mem_ar_hround 
+6a90 d8c00484 arg mem_key_store ,contr 
+6a91 203a6ab6 branch key_sched_zero ,blank 
+6a92 98002400 iforce regb 
+6a93 18007211 force 17 ,loopcnt 
+6a94 18c20a00 copy contr ,contw 
+
+key_rotateloop:
+6a95 efe08006 ifetch 1 ,contr 
+6a96 1fe98400 lshift3 pdata ,temp 
+6a97 1feb7e00 rshift2 pdata ,pdata 
+6a98 1fe97e00 rshift3 pdata ,pdata 
+6a99 9841fe00 ior temp ,pdata 
+6a9a e7e08005 istore 1 ,contw 
+6a9b c2006a95 loop key_rotateloop 
+6a9c 58000484 setarg mem_key_store 
+6a9d 9a408c00 iadd regb ,contr 
+6a9e 18007210 force 16 ,loopcnt 
+6a9f d8a00434 arg mem_round_key ,contw 
+
+key_select_octet_loop:
+6aa0 efe08006 ifetch 1 ,contr 
+6aa1 e7e08005 istore 1 ,contw 
+6aa2 28c1fe95 compare mem_key_store_end ,contr ,0xff 
+6aa3 2420eaa5 nbranch key_select_octet_nwrap ,true 
+6aa4 18c08def increase -17 ,contr 
+
+key_select_octet_nwrap:
+6aa5 c2006aa0 loop key_select_octet_loop 
+6aa6 18002200 force 0 ,rega 
+6aa7 1a40a7ff add regb ,-1 ,regc 
+6aa8 1a6ba600 lshift2 regc ,regc 
+6aa9 1a6ba600 lshift2 regc ,regc 
+6aaa 20406d29 call enable_authrom 
+6aab 58009000 setarg mem_b_box 
+6aac 9a60a600 iadd regc ,regc 
+6aad d8a00434 arg mem_round_key ,contw 
+6aae 18007210 force 16 ,loopcnt 
+
+bias_round_key_loop:
+6aaf e8408013 ifetcht 1 ,regc 
+6ab0 efe08005 ifetch 1 ,contw 
+6ab1 9840fe00 iadd temp ,pdata 
+6ab2 e7e08005 istore 1 ,contw 
+6ab3 1a60a601 increase 1 ,regc 
+6ab4 c2006aaf loop bias_round_key_loop 
+6ab5 20206d2d branch disable_authrom 
+
+key_sched_zero:
+6ab6 18007210 force 16 ,loopcnt 
+6ab7 18000400 force 0 ,temp 
+
+create_byte_16_loop:
+6ab8 efe08006 ifetch 1 ,contr 
+6ab9 98428400 ixor temp ,temp 
+6aba c2006ab8 loop create_byte_16_loop 
+6abb 18427e00 deposit temp 
+6abc e7e08006 istore 1 ,contr 
+6abd d8c00484 arg mem_key_store ,contr 
+6abe d8a00434 arg mem_round_key ,contw 
+6abf 20207c4c branch memcpy16 
+
+xor_mod32:
+6ac0 da400434 arg mem_round_key ,regb 
+
+xor_mod32_ar2:
+6ac1 18007210 force 16 ,loopcnt 
+6ac2 da200454 arg mem_input_store ,rega 
+6ac3 1a220a00 copy rega ,contw 
+
+xor_mod32_loop:
+6ac4 e8408011 ifetcht 1 ,rega 
+6ac5 efe08012 ifetch 1 ,regb 
+6ac6 9842e000 ixor temp ,alarm 
+6ac7 1f212603 and loopcnt ,3 ,regc 
+6ac8 24346aca nbranch xor_mod32_invert ,user 
+6ac9 1a62a603 xor_into 3 ,regc 
+
+xor_mod32_invert:
+6aca 1a662601 sub regc ,1 ,regc 
+6acb 20216acd branch xor_even ,positive 
+6acc 9840e000 iadd temp ,alarm 
+
+xor_even:
+6acd 1e027e00 deposit alarm 
+6ace e7e08005 istore 1 ,contw 
+6acf 1a20a201 increase 1 ,rega 
+6ad0 1a40a401 increase 1 ,regb 
+6ad1 c2006ac4 loop xor_mod32_loop 
+6ad2 20600000 rtn 
+
+el_boxes:
+6ad3 20406d29 call enable_authrom 
+6ad4 18007210 force 16 ,loopcnt 
+6ad5 da200454 arg mem_input_store ,rega 
+
+el_box_loop:
+6ad6 efe08011 ifetch 1 ,rega 
+6ad7 d8c09100 arg mem_e_box ,contr 
+6ad8 1f212603 and loopcnt ,3 ,regc 
+6ad9 1a667c01 sub regc ,1 ,null 
+6ada 20216adc branch e_boxes ,positive 
+6adb d8c09200 arg mem_l_box ,contr 
+
+e_boxes:
+6adc 98c08c00 iadd contr ,contr 
+6add efe08006 ifetch 1 ,contr 
+6ade e7e08011 istore 1 ,rega 
+6adf 1a20a201 increase 1 ,rega 
+6ae0 c2006ad6 loop el_box_loop 
+6ae1 20206d2d branch disable_authrom 
+
+pht:
+6ae2 18007208 force 8 ,loopcnt 
+6ae3 d8c00454 arg mem_input_store ,contr 
+6ae4 18c20a00 copy contr ,contw 
+
+pht_loop:
+6ae5 efe08006 ifetch 1 ,contr 
+6ae6 98002200 iforce rega 
+6ae7 efe08006 ifetch 1 ,contr 
+6ae8 98002400 iforce regb 
+6ae9 1a23fe00 lshift rega ,pdata 
+6aea 9a40fe00 iadd regb ,pdata 
+6aeb e7e08005 istore 1 ,contw 
+6aec 1a227e00 deposit rega 
+6aed 9a40fe00 iadd regb ,pdata 
+6aee e7e08005 istore 1 ,contw 
+6aef c2006ae5 loop pht_loop 
+6af0 20600000 rtn 
+
+permute:
+6af1 588ae42c setarg 0x8ae42c 
+6af2 98000400 iforce temp 
+6af3 18007207 force 7 ,loopcnt 
+6af4 20406b00 call permute_exchange 
+6af5 580d751b setarg 0xd751b 
+6af6 98000400 iforce temp 
+6af7 18007205 force 5 ,loopcnt 
+6af8 20406b00 call permute_exchange 
+6af9 6fe08463 fetch 1 ,mem_input_store + 15 
+6afa 98002200 iforce rega 
+6afb 6fe08457 fetch 1 ,mem_input_store + 3 
+6afc 67e08463 store 1 ,mem_input_store + 15 
+6afd 1a227e00 deposit rega 
+6afe 67e08457 store 1 ,mem_input_store + 3 
+6aff 20600000 rtn 
+
+permute_exchange:
+6b00 1841240f and temp ,0xf ,regb 
+
+permute_loop:
+6b01 18417e0f and temp ,0xf ,pdata 
+6b02 d8a00454 arg mem_input_store ,contw 
+6b03 98a08a00 iadd contw ,contw 
+6b04 efe08005 ifetch 1 ,contw 
+6b05 98002600 iforce regc 
+6b06 1a227e00 deposit rega 
+6b07 e7e08005 istore 1 ,contw 
+6b08 1a622200 copy regc ,rega 
+6b09 18518400 rshift4 temp ,temp 
+6b0a c2006b01 loop permute_loop 
+6b0b 58000454 setarg mem_input_store 
+6b0c 9a408a00 iadd regb ,contw 
+6b0d 1a227e00 deposit rega 
+6b0e e7e08005 istore 1 ,contw 
+6b0f 20600000 rtn 
+
+add16:
+6b10 78347c00 enable user 
+6b11 20206b13 branch xor_add16 
+
+xor16:
+6b12 78547c00 disable user 
+
+xor_add16:
+6b13 18007210 force 16 ,loopcnt 
+
+xoradd_loop:
+6b14 e8408011 ifetcht 1 ,rega 
+6b15 efe08012 ifetch 1 ,regb 
+6b16 20346b19 branch xoradd_add ,user 
+6b17 9842fe00 ixor temp ,pdata 
+6b18 20206b1a branch xoradd_store 
+
+xoradd_add:
+6b19 9840fe00 iadd temp ,pdata 
+
+xoradd_store:
+6b1a e7e08005 istore 1 ,contw 
+6b1b 1a20a201 increase 1 ,rega 
+6b1c 1a40a401 increase 1 ,regb 
+6b1d c2006b14 loop xoradd_loop 
+6b1e 20600000 rtn 
+
+function_expand:
+6b1f d8a00474 arg mem_y ,contw 
+6b20 efe30011 ifetch 6 ,rega 
+6b21 e7e30005 istore 6 ,contw 
+6b22 20346b25 branch expand_12 ,user 
+6b23 efe30011 ifetch 6 ,rega 
+6b24 20206b26 branch expand_cont 
+
+expand_12:
+6b25 efe30006 ifetch 6 ,contr 
+
+expand_cont:
+6b26 e7e30005 istore 6 ,contw 
+6b27 efe20011 ifetch 4 ,rega 
+6b28 e7e20005 istore 4 ,contw 
+6b29 20600000 rtn 
+
+key_offset:
+6b2a d8c041ce arg mem_link_key ,contr 
+6b2b d8a00464 arg mem_x ,contw 
+6b2c d8400000 arg 0 ,temp 
+6b2d 588395a7 setarg 0x8395a7 
+6b2e 20406b4b call concatenate_temp24 
+6b2f 58b3c1df setarg 0xb3c1df 
+6b30 20406b4b call concatenate_temp24 
+6b31 5800e5e9 setarg 0xe5e9 
+6b32 20406b4c call concatenate_temp16 
+6b33 18422800 copy temp ,regab 
+6b34 78547c00 disable user 
+6b35 20406b39 call key_addxor 
+6b36 1a820400 copy regab ,temp 
+6b37 78347c00 enable user 
+6b38 20206b39 branch key_addxor 
+
+key_addxor:
+6b39 18007208 force 8 ,loopcnt 
+
+key_addxor_loop:
+6b3a efe08006 ifetch 1 ,contr 
+6b3b 2f200201 compare 1 ,loopcnt ,1 
+6b3c 20346b40 branch key_high ,user 
+6b3d 2020eb41 branch key_xor ,true 
+
+key_add:
+6b3e 9840fe00 iadd temp ,pdata 
+6b3f 20206b42 branch key_store 
+
+key_high:
+6b40 2020eb3e branch key_add ,true 
+
+key_xor:
+6b41 9842fe00 ixor temp ,pdata 
+
+key_store:
+6b42 e7e08005 istore 1 ,contw 
+6b43 184c8400 rshift8 temp ,temp 
+6b44 c2006b3a loop key_addxor_loop 
+6b45 20600000 rtn 
+
+copy_aco:
+6b46 6fe30458 fetch 6 ,mem_input_store + 4 
+6b47 67e30056 store 6 ,mem_aco 
+6b48 efe30006 ifetch 6 ,contr 
+6b49 e7e30005 istore 6 ,contw 
+6b4a 20600000 rtn 
+
+concatenate_temp24:
+6b4b 184d0400 lshift8 temp ,temp 
+
+concatenate_temp16:
+6b4c 18500400 lshift16 temp ,temp 
+6b4d 98418400 ior temp ,temp 
+6b4e 20600000 rtn 
+
+loop1:
+6b4f 20206b4f branch loop1 
+
+generate_stk:
+6b50 4736c02d bpatchx patch2d_5 ,mem_patch2d 
+6b51 20406c98 call function_s1 
+6b52 d8a04319 arg mem_le_ltk ,contw 
+6b53 20206d07 branch store_aes_result 
+
+authenticate_rconfirm:
+6b54 d8a0433a arg mem_le_srand ,contw 
+6b55 2034eb57 branch authenticate_mconfirm ,master 
+6b56 d8a00277 arg mem_le_mrand ,contw 
+
+authenticate_mconfirm:
+6b57 18c22200 copy contr ,rega 
+6b58 20407c4c call memcpy16 
+6b59 20406cad call function_c1 
+6b5a d8c0432a arg mem_le_rconfirm ,contr 
+6b5b 20206d20 branch compare_res 
+
+generate_confirm:
+6b5c da200277 arg mem_le_mrand ,rega 
+6b5d 2034eb5f branch generate_mrand ,master 
+6b5e da20433a arg mem_le_srand ,rega 
+
+generate_mrand:
+6b5f 1a220a00 copy rega ,contw 
+6b60 2040594e call generate_random 
+6b61 20206cad branch function_c1 
+
+generate_sk:
+6b62 d8c04387 arg mem_le_skdm ,contr 
+6b63 20406cf3 call load_data128 
+6b64 d8c04319 arg mem_le_ltk ,contr 
+6b65 20406cf4 call load_regext 
+6b66 18006c38 force 0x38 ,aes_ctrl 
+6b67 18006c00 force 0x0 ,aes_ctrl 
+6b68 20406c61 call wait_aes 
+6b69 d8a002c7 arg mem_le_sk ,contw 
+6b6a 20206d07 branch store_aes_result 
+
+ccm_b0:
+6b6b 18007008 force regidx_xor ,regext_index 
+6b6c 18007e49 force 0x49 ,pdata 
+6b6d 20206b72 branch iv_common 
+
+first_block_counter:
+6b6e 18007e49 force 0x49 ,pdata 
+6b6f 20206b71 branch first_block 
+
+first_block_data:
+6b70 18007e01 force 1 ,pdata 
+
+first_block:
+6b71 18007000 force regidx_data ,regext_index 
+
+iv_common:
+6b72 184d5e00 lshift8 temp ,regext 
+6b73 9de1de00 ior regext ,regext 
+6b74 1f00f001 increase 1 ,regext_index 
+6b75 184cde00 rshift8 temp ,regext 
+6b76 1df15e00 rshift16 regext ,regext 
+6b77 6fe146b1 fetch 2 ,mem_ccm_iv 
+6b78 1ff07e00 lshift16 pdata ,pdata 
+6b79 9de1de00 ior regext ,regext 
+6b7a 1f00f001 increase 1 ,regext_index 
+6b7b ede20006 ifetchr regext ,4 ,contr 
+6b7c 1f00f001 increase 1 ,regext_index 
+6b7d efe10006 ifetch 2 ,contr 
+6b7e 1a30de00 byteswap rega ,regext 
+6b7f 1df05e00 lshift16 regext ,regext 
+6b80 9de1de00 ior regext ,regext 
+6b81 1f00f001 increase 1 ,regext_index 
+6b82 20600000 rtn 
+
+generate_mic:
+6b83 1a608c01 add regc ,1 ,contr 
+6b84 efe08006 ifetch 1 ,contr 
+6b85 98002200 iforce rega 
+6b86 20406b6e call first_block_counter 
+6b87 20406c63 call do_aes_ocb 
+6b88 18007000 force regidx_data ,regext_index 
+6b89 efe08013 ifetch 1 ,regc 
+6b8a 1fe17e03 and_into 0x3 ,pdata 
+6b8b 1ff05e00 lshift16 pdata ,regext 
+6b8c 79205e08 set1 8 ,regext 
+6b8d 20406cfc call clear_hidata 
+6b8e 20406c66 call do_aes_cbc 
+6b8f 1a227200 copy rega ,loopcnt 
+6b90 1a608c02 add regc ,2 ,contr 
+6b91 20406cdb call padding_data 
+
+generate_mic_loop:
+6b92 20406ce5 call aes_load_data 
+6b93 20406c66 call do_aes_cbc 
+6b94 1f227e00 deposit loopcnt 
+6b95 203a6b97 branch generate_mic_end ,blank 
+6b96 20206b92 branch generate_mic_loop 
+
+generate_mic_end:
+6b97 1800700c force regidx_result ,regext_index 
+6b98 1de27e00 deposit regext 
+6b99 67e2026f store 4 ,mem_le_mic 
+6b9a 20600000 rtn 
+
+aes_crypt_data:
+6b9b 1a20a201 increase 1 ,rega 
+6b9c 20406b70 call first_block_data 
+6b9d 1a620c00 copy regc ,contr 
+6b9e 20406cef call aes_load_xor 
+6b9f 20406c69 call do_aes_ctr 
+6ba0 20406d0e call store_enc_data 
+6ba1 1a60a610 increase 16 ,regc 
+6ba2 1a40a5f0 increase -16 ,regb 
+6ba3 20216b9b branch aes_crypt_data ,positive 
+6ba4 20600000 rtn 
+
+ccm_br_enc_new:
+6ba5 20406c56 call ccm_init_common 
+6ba6 4737402d bpatchx patch2d_6 ,mem_patch2d 
+6ba7 d8c00062 arg mem_kc ,contr 
+6ba8 20406cf1 call load_key 
+6ba9 7080d500 jam 0 ,core_ccm_aad0 
+6baa 18217e0f and type ,0x0f ,pdata 
+6bab 1fe9fe00 lshift3 pdata ,pdata 
+6bac 9881fe00 ior am_addr ,pdata 
+6bad 67f080d6 store 1 ,core_ccm_aad1 
+6bae 6fe0c1e7 fetch 1 ,mem_llid 
+6baf 67f080d7 store 1 ,core_ccm_aad2 
+6bb0 627100d1 storer regc ,2 ,core_ccm_input_playload_addr 
+6bb1 627100d3 storer regc ,2 ,core_ccm_output_playload_addr 
+6bb2 6a2146b9 fetchr rega ,2 ,mem_ccm_len 
+6bb3 684ac6a3 fetcht 5 ,mem_ccm_pcnt_tx 
+6bb4 20406bc7 call ccm_br_check_0_length_continuation 
+6bb5 20406b6b call ccm_b0 
+6bb6 70800a02 jam 2 ,core_ccm_ctrl 
+6bb7 70800a03 jam 3 ,core_ccm_ctrl 
+6bb8 6fe146b9 fetch 2 ,mem_ccm_len 
+6bb9 67f100da store 2 ,core_ccm_inptr 
+6bba 1fe0fe04 increase 4 ,pdata 
+6bbb 67e146b9 store 2 ,mem_ccm_len 
+6bbc 1a627e00 copy regc ,pdata 
+6bbd 9a20a200 iadd rega ,rega 
+6bbe 20406c5d call wait_ccm_done 
+6bbf df00000c arg regidx_result ,regext_index 
+6bc0 e5e20011 istorer regext ,4 ,rega 
+6bc1 65e2026f storer regext ,4 ,mem_le_mic 
+6bc2 20600000 rtn 
+
+ccm_br_pcnt_tx_add:
+6bc3 6fe2c6a3 fetch 5 ,mem_ccm_pcnt_tx 
+6bc4 1fe0fe01 increase 1 ,pdata 
+6bc5 67e2c6a3 store 5 ,mem_ccm_pcnt_tx 
+6bc6 20206bcd branch ccm_br_pcnt_tx_set 
+
+ccm_br_check_0_length_continuation:
+6bc7 6fe0c1e7 fetch 1 ,mem_llid 
+6bc8 c1808000 rtnne llid_l2cap_cont 
+6bc9 6fe146b9 fetch 2 ,mem_ccm_len 
+6bca 247a0000 nrtn blank 
+6bcb 79200424 set1 br_ccm_0_length_continuation ,temp 
+6bcc 20600000 rtn 
+
+ccm_br_pcnt_tx_set:
+6bcd 6fe0c6a7 fetch 1 ,mem_ccm_pcnt_tx + 4 
+6bce 1fe17e0f and pdata ,0x0f ,pdata 
+6bcf 1fe1fe20 or pdata ,0x20 ,pdata 
+6bd0 67e0c6a7 store 1 ,mem_ccm_pcnt_tx + 4 
+6bd1 20600000 rtn 
+
+ccm_br_pcnt_rx_set:
+6bd2 6fe0c6ac fetch 1 ,mem_ccm_pcnt_rx + 4 
+6bd3 1fe17e0f and pdata ,0x0f ,pdata 
+6bd4 67e0c6ac store 1 ,mem_ccm_pcnt_rx + 4 
+6bd5 20600000 rtn 
+
+ccm_br_decrypt_new:
+6bd6 18a27e00 copy contw ,pdata 
+6bd7 684900ae fetcht 2 ,mem_len 
+6bd8 18408404 increase 4 ,temp 
+6bd9 98467e00 isub temp ,pdata 
+6bda 67e146bb store 2 ,mem_ccm_rx_ptr 
+6bdb 67f100d1 store 2 ,core_ccm_input_playload_addr 
+6bdc 67f100d3 store 2 ,core_ccm_output_playload_addr 
+6bdd 20407d98 call disable_user2 
+6bde 20406c56 call ccm_init_common 
+6bdf d8c00062 arg mem_kc ,contr 
+6be0 20406cf1 call load_key 
+6be1 7080d500 jam 0 ,core_ccm_aad0 
+6be2 6fe08019 fetch 1 ,mem_rx_type 
+6be3 1fe17e0f and pdata ,0x0f ,pdata 
+6be4 1fe9fe00 lshift3 pdata ,pdata 
+6be5 9881fe00 ior am_addr ,pdata 
+6be6 67f080d6 store 1 ,core_ccm_aad1 
+6be7 6fe080e4 fetch 1 ,mem_lch_code 
+6be8 1fe17e03 and pdata ,0x3 ,pdata 
+6be9 67e0c1e7 store 1 ,mem_llid 
+6bea 67f080d7 store 1 ,core_ccm_aad2 
+6beb 6a2100ae fetchr rega ,2 ,mem_len 
+6bec 622146b9 storer rega ,2 ,mem_ccm_len 
+6bed 6fe146bb fetch 2 ,mem_ccm_rx_ptr 
+6bee 9a208c00 iadd rega ,contr 
+6bef 18007000 force regidx_data ,regext_index 
+6bf0 ede20006 ifetchr regext ,4 ,contr 
+6bf1 65e20273 storer regext ,4 ,mem_le_peer_mic 
+6bf2 684ac6a8 fetcht 5 ,mem_ccm_pcnt_rx 
+6bf3 20406bc7 call ccm_br_check_0_length_continuation 
+6bf4 20406b6b call ccm_b0 
+6bf5 70800a06 jam 6 ,core_ccm_ctrl 
+6bf6 70800a07 jam 7 ,core_ccm_ctrl 
+6bf7 6fe100ae fetch 2 ,mem_len 
+6bf8 67f100da store 2 ,core_ccm_inptr 
+6bf9 20406c5d call wait_ccm_done 
+6bfa 6ff08108 fetch 1 ,core_misc_status 
+6bfb c4038000 rtnbit0 7 
+6bfc 20207d96 branch enable_user2 
+
+ccm_br_pcnt_rx_add:
+6bfd c6078000 rtnmark1 mark_old_packet 
+6bfe 684a0273 fetcht 4 ,mem_le_peer_mic 
+6bff 604a46ad storet 4 ,mem_ccm_last_mic 
+6c00 6fe2c6a8 fetch 5 ,mem_ccm_pcnt_rx 
+6c01 1fe0fe01 increase 1 ,pdata 
+6c02 67e2c6a8 store 5 ,mem_ccm_pcnt_rx 
+6c03 20206bd2 branch ccm_br_pcnt_rx_set 
+
+le_decrypt_new:
+6c04 20406c56 call ccm_init_common 
+6c05 7080d500 jam 0 ,core_ccm_aad0 
+6c06 7080d601 jam 1 ,core_ccm_aad1 
+6c07 6fe0816b fetch 1 ,mem_le_rxbuf_data_header 
+6c08 1fe17e03 and_into 0x3 ,pdata 
+6c09 67f080d7 store 1 ,core_ccm_aad2 
+6c0a 5800016d setarg mem_le_rxbuf_data_payload 
+6c0b 67f100d1 store 2 ,core_ccm_input_playload_addr 
+6c0c 67f100d3 store 2 ,core_ccm_output_playload_addr 
+6c0d 6a20816c fetchr rega ,1 ,mem_le_rxbuf_data_length 
+6c0e 1a20a3fc increase -4 ,rega 
+6c0f 24217d9c nbranch disable_blank ,positive 
+6c10 6220816c storer rega ,1 ,mem_le_rxbuf_data_length 
+6c11 5800016d setarg mem_le_rxbuf_data_payload 
+6c12 9a208c00 iadd rega ,contr 
+6c13 18007000 force regidx_data ,regext_index 
+6c14 ede20006 ifetchr regext ,4 ,contr 
+6c15 65e20273 storer regext ,4 ,mem_le_peer_mic 
+6c16 684ac6a8 fetcht 5 ,mem_ccm_pcnt_rx 
+6c17 20406b6b call ccm_b0 
+6c18 70800a06 jam 6 ,core_ccm_ctrl 
+6c19 70800a07 jam 7 ,core_ccm_ctrl 
+6c1a 6fe0816c fetch 1 ,mem_le_rxbuf_data_length 
+6c1b 67f100da store 2 ,core_ccm_inptr 
+6c1c 20406c5d call wait_ccm_done 
+6c1d 6ff08108 fetch 1 ,core_misc_status 
+6c1e c303fd9c bbit0 7 ,disable_blank 
+6c1f 684a0273 fetcht 4 ,mem_le_peer_mic 
+6c20 6fe246ad fetch 4 ,mem_ccm_last_mic 
+6c21 98467e00 isub temp ,pdata 
+6c22 207a0000 rtn blank 
+6c23 604a46ad storet 4 ,mem_ccm_last_mic 
+6c24 6fe2c6a8 fetch 5 ,mem_ccm_pcnt_rx 
+6c25 1fe0fe01 increase 1 ,pdata 
+6c26 79207e27 set1 le_ccm_directionbit ,pdata 
+6c27 67e2c6a8 store 5 ,mem_ccm_pcnt_rx 
+6c28 18007e00 force 0 ,pdata 
+6c29 20600000 rtn 
+
+le_encrypt_new:
+6c2a 20406c31 call le_encrypt_new_start 
+6c2b 580041fa setarg mem_le_txpayload 
+6c2c 9a20a200 iadd rega ,rega 
+6c2d 20406c5d call wait_ccm_done 
+6c2e df00000c arg regidx_result ,regext_index 
+6c2f e5e20011 istorer regext ,4 ,rega 
+6c30 20600000 rtn 
+
+le_encrypt_new_start:
+6c31 20406c56 call ccm_init_common 
+6c32 4737c02d bpatchx patch2d_7 ,mem_patch2d 
+6c33 7080d500 jam 0 ,core_ccm_aad0 
+6c34 7080d601 jam 1 ,core_ccm_aad1 
+6c35 6fe0c1f8 fetch 1 ,mem_le_txheader 
+6c36 1fe17e03 and_into 0x3 ,pdata 
+6c37 67f080d7 store 1 ,core_ccm_aad2 
+6c38 6fe1097b fetch 2 ,mem_contr 
+6c39 67f100d1 store 2 ,core_ccm_input_playload_addr 
+6c3a 580041fa setarg mem_le_txpayload 
+6c3b 67f100d3 store 2 ,core_ccm_output_playload_addr 
+6c3c 6a20c1f9 fetchr rega ,1 ,mem_le_txlen 
+6c3d 684ac6a3 fetcht 5 ,mem_ccm_pcnt_tx 
+6c3e 20406b6b call ccm_b0 
+6c3f 70800a02 jam 2 ,core_ccm_ctrl 
+6c40 70800a03 jam 3 ,core_ccm_ctrl 
+6c41 6fe0c1f9 fetch 1 ,mem_le_txlen 
+6c42 67f100da store 2 ,core_ccm_inptr 
+6c43 1fe0fe04 increase 4 ,pdata 
+6c44 67e0c1f9 store 1 ,mem_le_txlen 
+6c45 6fe2c6a3 fetch 5 ,mem_ccm_pcnt_tx 
+6c46 1fe0fe01 increase 1 ,pdata 
+6c47 793ffe27 set0 le_ccm_directionbit ,pdata 
+6c48 67e2c6a3 store 5 ,mem_ccm_pcnt_tx 
+6c49 20600000 rtn 
+
+ccm_wait_enc:
+6c4a 6ff1011a fetch 2 ,core_ccm_outptr 
+6c4b 98467c00 isub temp ,null 
+6c4c 20628000 rtn zero 
+6c4d 247a0000 nrtn blank 
+6c4e 20206c4a branch ccm_wait_enc 
+
+ccm_check_enc_done:
+6c4f 6ff08108 fetch 1 ,core_misc_status 
+6c50 c303137a bbit0 6 ,assert 
+
+ccm_enc_done:
+6c51 580041fa setarg mem_le_txpayload 
+6c52 98408a00 iadd temp ,contw 
+6c53 df00000c arg regidx_result ,regext_index 
+6c54 e5e20005 istorer regext ,4 ,contw 
+6c55 20206c5f branch ccm_ctrl_clr 
+
+ccm_init_common:
+6c56 4738402e bpatchx patch2e_0 ,mem_patch2e 
+6c57 1800700c force regidx_result ,regext_index 
+6c58 20406d02 call aes_clear 
+6c59 20406d01 call aes_clear_data 
+6c5a 58000000 setarg 0 
+6c5b 67f100da store 2 ,core_ccm_inptr 
+6c5c 20600000 rtn 
+
+wait_ccm_done:
+6c5d 6ff08108 fetch 1 ,core_misc_status 
+6c5e c3036c5d bbit0 6 ,wait_ccm_done 
+
+ccm_ctrl_clr:
+6c5f 70800a00 jam 0 ,core_ccm_ctrl 
+6c60 20600000 rtn 
+
+wait_aes:
+6c61 243bec61 nbranch wait_aes ,aes_ready 
+6c62 20600000 rtn 
+
+do_aes_ocb:
+6c63 18006c30 force 0x30 ,aes_ctrl 
+6c64 18006c00 force 0x0 ,aes_ctrl 
+6c65 20206c61 branch wait_aes 
+
+do_aes_cbc:
+6c66 18006c32 force 0x32 ,aes_ctrl 
+6c67 18006c02 force 0x2 ,aes_ctrl 
+6c68 20206c61 branch wait_aes 
+
+do_aes_ctr:
+6c69 18006c34 force 0x34 ,aes_ctrl 
+6c6a 18006c04 force 0x4 ,aes_ctrl 
+6c6b 20206c61 branch wait_aes 
+
+aes_init:
+6c6c 18006c01 force 1 ,aes_ctrl 
+6c6d 18006c00 force 0 ,aes_ctrl 
+6c6e 20600000 rtn 
+
+wait_keyinit_done:
+6c6f 6ff08148 fetch 1 ,core_aes_decode_key_init 
+6c70 c302ec6f bbit0 5 ,wait_keyinit_done 
+6c71 20600000 rtn 
+
+dec_key_initial:
+6c72 67f100e8 store 2 ,core_keybuf_saddr 
+6c73 18006cc0 force 0xc0 ,aes_ctrl 
+6c74 18006c80 force 0x80 ,aes_ctrl 
+6c75 20206c6f branch wait_keyinit_done 
+
+do_aes_ecb_dec:
+6c76 18007000 force regidx_data ,regext_index 
+6c77 1a420c00 copy regb ,contr 
+6c78 18007204 force 4 ,loopcnt 
+6c79 20406c85 call aes_ecb_dec_loop 
+6c7a 18006d80 force 0x180 ,aes_ctrl 
+6c7b 18006c80 force 0x80 ,aes_ctrl 
+6c7c 20406c61 call wait_aes 
+
+ecb_dec_generate:
+6c7d 1800700c force regidx_result ,regext_index 
+6c7e 1a620a00 copy regc ,contw 
+6c7f 18007204 force 4 ,loopcnt 
+
+ecb_dec_generate_loop:
+6c80 1de27e00 copy regext ,pdata 
+6c81 e7e20005 istore 4 ,contw 
+6c82 1f00f001 increase 1 ,regext_index 
+6c83 c2006c80 loop ecb_dec_generate_loop 
+6c84 20600000 rtn 
+
+aes_ecb_dec_loop:
+6c85 efe10006 ifetch 2 ,contr 
+6c86 e8410006 ifetcht 2 ,contr 
+6c87 18500400 lshift16 temp ,temp 
+6c88 9841de00 ior temp ,regext 
+6c89 1f00f001 increase 1 ,regext_index 
+6c8a c2006c85 loop aes_ecb_dec_loop 
+6c8b 20600000 rtn 
+
+do_aes_cbc_dec:
+6c8c 18007008 force regidx_xor ,regext_index 
+6c8d 1a220c00 copy rega ,contr 
+6c8e 18007204 force 4 ,loopcnt 
+6c8f 20406c85 call aes_ecb_dec_loop 
+6c90 18007000 force regidx_data ,regext_index 
+6c91 1a420c00 copy regb ,contr 
+6c92 18007204 force 4 ,loopcnt 
+6c93 20406c85 call aes_ecb_dec_loop 
+6c94 18006d82 force 0x182 ,aes_ctrl 
+6c95 18006c82 force 0x82 ,aes_ctrl 
+6c96 20406c61 call wait_aes 
+6c97 20206c7d branch ecb_dec_generate 
+
+function_s1:
+6c98 18007000 force regidx_data ,regext_index 
+6c99 6fe20277 fetch 4 ,mem_le_mrand 
+6c9a 98005e00 iforce regext 
+6c9b 1f00f001 increase 1 ,regext_index 
+6c9c efe20006 ifetch 4 ,contr 
+6c9d 98005e00 iforce regext 
+6c9e 1f00f001 increase 1 ,regext_index 
+6c9f 6fe2433a fetch 4 ,mem_le_srand 
+6ca0 98005e00 iforce regext 
+6ca1 1f00f001 increase 1 ,regext_index 
+6ca2 efe20006 ifetch 4 ,contr 
+6ca3 98005e00 iforce regext 
+6ca4 1f00f001 increase 1 ,regext_index 
+6ca5 20406d02 call aes_clear 
+6ca6 1f00f1fc increase -4 ,regext_index 
+6ca7 6fe243a1 fetch 4 ,mem_le_tk 
+6ca8 1fe25e00 copy pdata ,regext 
+6ca9 1f00f004 increase 4 ,regext_index 
+6caa 18006c38 force 0x38 ,aes_ctrl 
+6cab 18006c08 force 0x8 ,aes_ctrl 
+6cac 20206c61 branch wait_aes 
+
+function_c1:
+6cad 4738c02e bpatchx patch2e_1 ,mem_patch2e 
+6cae 6fe3437d fetch 6 ,mem_le_lap 
+6caf 684b0297 fetcht 6 ,mem_le_plap 
+6cb0 2034ecb3 branch function_c1_master ,master 
+6cb1 6fe30297 fetch 6 ,mem_le_plap 
+6cb2 684b437d fetcht 6 ,mem_le_lap 
+
+function_c1_master:
+6cb3 18007008 force regidx_xor ,regext_index 
+6cb4 18425e00 copy temp ,regext 
+6cb5 1f00f001 increase 1 ,regext_index 
+6cb6 184f5e00 rshift32 temp ,regext 
+6cb7 1ff07e00 lshift16 pdata ,pdata 
+6cb8 9de1de00 ior regext ,regext 
+6cb9 1f00f001 increase 1 ,regext_index 
+6cba 1fef5e00 rshift32 pdata ,regext 
+6cbb 1f00f001 increase 1 ,regext_index 
+6cbc 18005e00 force 0 ,regext 
+6cbd 18007e00 force 0 ,pdata 
+6cbe 6fe0c36d fetch 1 ,mem_le_conn_peer_addr_type 
+6cbf 6848c42e fetcht 1 ,mem_le_adv_own_addr_type 
+6cc0 2434ecc3 nbranch function_c1_irat ,master 
+6cc1 6fe0c374 fetch 1 ,mem_le_conn_own_addr_type 
+6cc2 6848c36d fetcht 1 ,mem_le_conn_peer_addr_type 
+
+function_c1_irat:
+6cc3 67e0c34a store 1 ,mem_le_iat 
+6cc4 6048c34b storet 1 ,mem_le_rat 
+6cc5 18007000 force regidx_data ,regext_index 
+6cc6 da40434a arg mem_le_iat ,regb 
+6cc7 18007204 force 4 ,loopcnt 
+
+function_c1_loop1:
+6cc8 efe20011 ifetch 4 ,rega 
+6cc9 e8420012 ifetcht 4 ,regb 
+6cca 9842de00 ixor temp ,regext 
+6ccb 1f00f001 increase 1 ,regext_index 
+6ccc 1a20a204 increase 4 ,rega 
+6ccd 1a40a404 increase 4 ,regb 
+6cce c2006cc8 loop function_c1_loop1 
+6ccf 20406d02 call aes_clear 
+6cd0 1f00f1fc increase -4 ,regext_index 
+6cd1 6fe243a1 fetch 4 ,mem_le_tk 
+6cd2 1fe25e00 copy pdata ,regext 
+6cd3 1f00f004 increase 4 ,regext_index 
+6cd4 18006c38 force 0x38 ,aes_ctrl 
+6cd5 18006c0c force 0xc ,aes_ctrl 
+6cd6 20406c61 call wait_aes 
+6cd7 20406d01 call aes_clear_data 
+6cd8 18006c3a force 0x3a ,aes_ctrl 
+6cd9 18006c08 force 0x8 ,aes_ctrl 
+6cda 20206c61 branch wait_aes 
+
+padding_data:
+6cdb 2f200600 compare 0 ,loopcnt ,3 
+6cdc 20608000 rtn true 
+6cdd 18c27e00 deposit contr 
+6cde 9f208a00 iadd loopcnt ,contw 
+6cdf 18007e00 force 0 ,pdata 
+
+padding_loop:
+6ce0 e7e08005 istore 1 ,contw 
+6ce1 1f20f201 increase 1 ,loopcnt 
+6ce2 2f200600 compare 0 ,loopcnt ,3 
+6ce3 20608000 rtn true 
+6ce4 20206ce0 branch padding_loop 
+
+aes_load_data:
+6ce5 18007000 force regidx_data ,regext_index 
+
+load_data_loop:
+6ce6 1f227e00 deposit loopcnt 
+6ce7 203a6cea branch load_data_padding ,blank 
+6ce8 efe20006 ifetch 4 ,contr 
+6ce9 1f20f3fc increase -4 ,loopcnt 
+
+load_data_padding:
+6cea 98005e00 iforce regext 
+6ceb 1f00f001 increase 1 ,regext_index 
+6cec 2f001e04 compare regidx_key ,regext_index ,0xf 
+6ced 20608000 rtn true 
+6cee 20206ce6 branch load_data_loop 
+
+aes_load_xor:
+6cef 18007008 force regidx_xor ,regext_index 
+6cf0 20206cf4 branch load_regext 
+
+load_key:
+6cf1 18007004 force regidx_key ,regext_index 
+6cf2 20206cf4 branch load_regext 
+
+load_data128:
+6cf3 18007000 force regidx_data ,regext_index 
+
+load_regext:
+6cf4 18007204 force 4 ,loopcnt 
+
+load_regext_loop:
+6cf5 efe20006 ifetch 4 ,contr 
+6cf6 98005e00 iforce regext 
+6cf7 1f00f001 increase 1 ,regext_index 
+6cf8 c2006cf5 loop load_regext_loop 
+6cf9 20600000 rtn 
+
+load_sk:
+6cfa d8c002c7 arg mem_le_sk ,contr 
+6cfb 20206cf1 branch load_key 
+
+clear_hidata:
+6cfc 18007204 force 4 ,loopcnt 
+6cfd 20206d04 branch clear_data_rest 
+
+regext_clear:
+6cfe 18007000 force 0 ,regext_index 
+6cff 18007210 force 16 ,loopcnt 
+6d00 20206d03 branch clear_loop 
+
+aes_clear_data:
+6d01 18007000 force regidx_data ,regext_index 
+
+aes_clear:
+6d02 18007204 force 4 ,loopcnt 
+
+clear_loop:
+6d03 18005e00 force 0 ,regext 
+
+clear_data_rest:
+6d04 1f00f001 increase 1 ,regext_index 
+6d05 c2006d03 loop clear_loop 
+6d06 20600000 rtn 
+
+store_aes_result:
+6d07 1800700c force regidx_result ,regext_index 
+6d08 18007204 force 4 ,loopcnt 
+
+send_aes_result_loop:
+6d09 1de27e00 deposit regext 
+6d0a e7e20005 istore 4 ,contw 
+6d0b 1f00f001 increase 1 ,regext_index 
+6d0c c2006d09 loop send_aes_result_loop 
+6d0d 20600000 rtn 
+
+store_enc_data:
+6d0e 1800700c force regidx_result ,regext_index 
+6d0f 1a620a00 copy regc ,contw 
+6d10 1a40f201 add regb ,1 ,loopcnt 
+6d11 1f267c0f sub loopcnt ,15 ,null 
+6d12 20216d14 branch store_enc_loop ,positive 
+6d13 18007210 force 16 ,loopcnt 
+
+store_enc_loop:
+6d14 1de27e00 deposit regext 
+6d15 1f267c03 sub loopcnt ,3 ,null 
+6d16 20216d1c branch store_enc_byte ,positive 
+6d17 e7e20005 istore 4 ,contw 
+6d18 1f20f3fc increase -4 ,loopcnt 
+6d19 20628000 rtn zero 
+6d1a 1f00f001 increase 1 ,regext_index 
+6d1b 20206d14 branch store_enc_loop 
+
+store_enc_byte:
+6d1c e7e08005 istore 1 ,contw 
+6d1d 1fecfe00 rshift8 pdata ,pdata 
+6d1e c2006d1c loop store_enc_byte 
+6d1f 20600000 rtn 
+
+compare_res:
+6d20 1800700c force regidx_result ,regext_index 
+6d21 18007204 force 4 ,loopcnt 
+
+compare_res_loop:
+6d22 efe20006 ifetch 4 ,contr 
+6d23 9de67c00 isub regext ,null 
+6d24 24628000 nrtn zero 
+6d25 1f00f001 increase 1 ,regext_index 
+6d26 c2006d22 loop compare_res_loop 
+6d27 18007c00 force 0 ,null 
+6d28 20600000 rtn 
+
+enable_authrom:
+6d29 6ff08050 fetch 1 ,core_clkoff 
+6d2a 793ffe00 set0 clock_off_auth_rom ,pdata 
+6d2b 67f08050 store 1 ,core_clkoff 
+6d2c 20600000 rtn 
+
+disable_authrom:
+6d2d 6ff08050 fetch 1 ,core_clkoff 
+6d2e 79207e00 set1 clock_off_auth_rom ,pdata 
+6d2f 67f08050 store 1 ,core_clkoff 
+6d30 20600000 rtn 
+
+init_memp:
+6d31 d8a00748 arg mem_p ,contw 
+6d32 3803ffff setsect 0 ,0x3ffff 
+6d33 3807ffff setsect 1 ,0x3ffff 
+6d34 380bffff setsect 2 ,0x3ffff 
+6d35 380ffbff setsect 3 ,0x3fbff 
+6d36 e7e48005 istore 9 ,contw 
+6d37 3803ffff setsect 0 ,0x3ffff 
+6d38 3807ffff setsect 1 ,0x3ffff 
+6d39 380bffff setsect 2 ,0x3ffff 
+6d3a 380fffff setsect 3 ,0x3ffff 
+6d3b e7e48005 istore 9 ,contw 
+6d3c 3803ffff setsect 0 ,0x3ffff 
+6d3d 3807ffff setsect 1 ,0x3ffff 
+6d3e 380bcfff setsect 2 ,0x3cfff 
+6d3f 380fffff setsect 3 ,0x3ffff 
+6d40 e7e48005 istore 9 ,contw 
+6d41 3803ffff setsect 0 ,0x3ffff 
+6d42 3807ffff setsect 1 ,0x3ffff 
+6d43 380bffef setsect 2 ,0x3ffef 
+6d44 380fffff setsect 3 ,0x3ffff 
+6d45 e7e48005 istore 9 ,contw 
+6d46 3803ffff setsect 0 ,0x3ffff 
+6d47 3807ffff setsect 1 ,0x3ffff 
+6d48 380bffff setsect 2 ,0x3ffff 
+6d49 380fffff setsect 3 ,0x3ffff 
+6d4a e7e48005 istore 9 ,contw 
+6d4b 3803ffff setsect 0 ,0x3ffff 
+6d4c 38066c7f setsect 1 ,0x26c7f 
+6d4d 3808146b setsect 2 ,0x146b 
+6d4e 380f7bb3 setsect 3 ,0x37bb3 
+6d4f e7e48005 istore 9 ,contw 
+6d50 3801feb8 setsect 0 ,0x1feb8 
+6d51 38050c12 setsect 1 ,0x10c12 
+6d52 380ab722 setsect 2 ,0x2b722 
+6d53 380e9fa6 setsect 3 ,0x29fa6 
+6d54 e7e48005 istore 9 ,contw 
+6d55 3800e70f setsect 0 ,0xe70f 
+6d56 38056720 setsect 1 ,0x16720 
+6d57 3808519e setsect 2 ,0x519e 
+6d58 380d9084 setsect 3 ,0x19084 
+6d59 e7e48005 istore 9 ,contw 
+6d5a 38031012 setsect 0 ,0x31012 
+6d5b 380760bf setsect 1 ,0x360bf 
+6d5c 380bf0af setsect 2 ,0x3f0af 
+6d5d 380c03d3 setsect 3 ,0x3d3 
+6d5e e7e48005 istore 9 ,contw 
+6d5f 3803a188 setsect 0 ,0x3a188 
+6d60 38043ad0 setsect 1 ,0x3ad0 
+6d61 380bcbf2 setsect 2 ,0x3cbf2 
+6d62 380e43d9 setsect 3 ,0x243d9 
+6d63 e7e48005 istore 9 ,contw 
+6d64 3802b030 setsect 0 ,0x2b030 
+6d65 38076a03 setsect 1 ,0x36a03 
+6d66 38091188 setsect 2 ,0x11188 
+6d67 380de520 setsect 3 ,0x1e520 
+6d68 e7e48005 istore 9 ,contw 
+6d69 3803a11e setsect 0 ,0x3a11e 
+6d6a 3804fe5d setsect 1 ,0xfe5d 
+6d6b 3808dd57 setsect 2 ,0xdd57 
+6d6c 380dac93 setsect 3 ,0x1ac93 
+6d6d e7e48005 istore 9 ,contw 
+6d6e 380011ed setsect 0 ,0x11ed 
+6d6f 380618c4 setsect 1 ,0x218c4 
+6d70 38088da7 setsect 2 ,0x8da7 
+6d71 380e57ff setsect 3 ,0x257ff 
+6d72 e7e48005 istore 9 ,contw 
+6d73 3803192b setsect 0 ,0x3192b 
+6d74 38074641 setsect 1 ,0x34641 
+6d75 3809be0c setsect 2 ,0x1be0c 
+6d76 380f66ad setsect 3 ,0x366ad 
+6d77 e7e48005 istore 9 ,contw 
+6d78 38001f83 setsect 0 ,0x1f83 
+6d79 38055a23 setsect 1 ,0x15a23 
+6d7a 380bf9b0 setsect 2 ,0x3f9b0 
+6d7b 380c3949 setsect 3 ,0x3949 
+6d7c e7e48005 istore 9 ,contw 
+6d7d 38013a51 setsect 0 ,0x13a51 
+6d7e 380553fd setsect 1 ,0x153fd 
+6d7f 380b372a setsect 2 ,0x3372a 
+6d80 380cf1bb setsect 3 ,0xf1bb 
+6d81 e7e48005 istore 9 ,contw 
+6d82 3803ae85 setsect 0 ,0x3ae85 
+6d83 3805eed9 setsect 1 ,0x1eed9 
+6d84 38089e66 setsect 2 ,0x9e66 
+6d85 380c01a8 setsect 3 ,0x1a8 
+6d86 e7e40005 istore 8 ,contw 
+6d87 20600000 rtn 
+
+init_memp_256:
+6d88 d8a007e0 arg mem_p_256 ,contw 
+6d89 3803ffff setsect 0 ,0x3ffff 
+6d8a 3807ffff setsect 1 ,0x3ffff 
+6d8b 380bffff setsect 2 ,0x3ffff 
+6d8c 380fffff setsect 3 ,0x3ffff 
+6d8d e7e48005 istore 9 ,contw 
+6d8e 3803ffff setsect 0 ,0x3ffff 
+6d8f 3804003f setsect 1 ,0x3f 
+6d90 38080000 setsect 2 ,0x0 
+6d91 380c0000 setsect 3 ,0x0 
+6d92 e7e48005 istore 9 ,contw 
+6d93 38000000 setsect 0 ,0x0 
+6d94 38040000 setsect 1 ,0x0 
+6d95 38081000 setsect 2 ,0x1000 
+6d96 380c0000 setsect 3 ,0x0 
+6d97 e7e48005 istore 9 ,contw 
+6d98 3803ff00 setsect 0 ,0x3ff00 
+6d99 3807ffff setsect 1 ,0x3ffff 
+6d9a 380bffcf setsect 2 ,0x3ffcf 
+6d9b 380fffff setsect 3 ,0x3ffff 
+6d9c e7e48005 istore 9 ,contw 
+6d9d 3803ffff setsect 0 ,0x3ffff 
+6d9e 3807ffff setsect 1 ,0x3ffff 
+6d9f 380bffff setsect 2 ,0x3ffff 
+6da0 380c03ff setsect 3 ,0x3ff 
+6da1 e7e48005 istore 9 ,contw 
+6da2 38000000 setsect 0 ,0x0 
+6da3 38040000 setsect 1 ,0x0 
+6da4 38080000 setsect 2 ,0x0 
+6da5 380c0000 setsect 3 ,0x0 
+6da6 e7e48005 istore 9 ,contw 
+6da7 38010000 setsect 0 ,0x10000 
+6da8 38040000 setsect 1 ,0x0 
+6da9 380bf000 setsect 2 ,0x3f000 
+6daa 380fffff setsect 3 ,0x3ffff 
+6dab e7e48005 istore 9 ,contw 
+6dac 380296ff setsect 0 ,0x296ff 
+6dad 38062630 setsect 1 ,0x22630 
+6dae 380b945d setsect 2 ,0x3945d 
+6daf 380fd284 setsect 3 ,0x3d284 
+6db0 e7e48005 istore 9 ,contw 
+6db1 380333a0 setsect 0 ,0x333a0 
+6db2 38044b7a setsect 1 ,0x4b7a 
+6db3 380837d8 setsect 2 ,0x37d8 
+6db4 380fc9dc setsect 3 ,0x3c9dc 
+6db5 e7e48005 istore 9 ,contw 
+6db6 3803a440 setsect 0 ,0x3a440 
+6db7 3805b958 setsect 1 ,0x1b958 
+6db8 380b8bce setsect 2 ,0x38bce 
+6db9 380d091f setsect 3 ,0x1091f 
+6dba e7e48005 istore 9 ,contw 
+6dbb 3802e12c setsect 0 ,0x2e12c 
+6dbc 3805f47c setsect 1 ,0x1f47c 
+6dbd 380b56b1 setsect 2 ,0x356b1 
+6dbe 380efd47 setsect 3 ,0x2fd47 
+6dbf e7e48005 istore 9 ,contw 
+6dc0 38006837 setsect 0 ,0x6837 
+6dc1 3806ed90 setsect 1 ,0x2ed90 
+6dc2 3809ecec setsect 2 ,0x1ecec 
+6dc3 380dacc5 setsect 3 ,0x1acc5 
+6dc4 e7e48005 istore 9 ,contw 
+6dc5 38023357 setsect 0 ,0x23357 
+6dc6 38058af3 setsect 1 ,0x18af3 
+6dc7 3808f9e1 setsect 2 ,0xf9e1 
+6dc8 380d29f0 setsect 3 ,0x129f0 
+6dc9 e7e48005 istore 9 ,contw 
+6dca 3802e7eb setsect 0 ,0x2e7eb 
+6dcb 3807e6e3 setsect 1 ,0x3e6e3 
+6dcc 380be1a7 setsect 2 ,0x3e1a7 
+6dcd 380d0b8b setsect 3 ,0x10b8b 
+6dce e7e48005 istore 9 ,contw 
+6dcf 38024fe3 setsect 0 ,0x24fe3 
+6dd0 380420ef setsect 1 ,0x20ef 
+6dd1 3809b5a6 setsect 2 ,0x1b5a6 
+6dd2 380cdc2f setsect 3 ,0xdc2f 
+6dd3 e7e48005 istore 9 ,contw 
+6dd4 38013860 setsect 0 ,0x13860 
+6dd5 3806bd69 setsect 1 ,0x2bd69 
+6dd6 3808391a setsect 2 ,0x391a 
+6dd7 380db222 setsect 3 ,0x1b222 
+6dd8 e7e48005 istore 9 ,contw 
+6dd9 20600000 rtn 
+
+publickey_init:
+6dda 6fe0c76b fetch 1 ,mem_ssp_enable 
+6ddb 243a6df5 nbranch sp_initialize ,blank 
+6ddc 20207477 branch sp_initialize_256 
+
+sp_calc_sequence_256_check:
+6ddd 4739402e bpatchx patch2e_2 ,mem_patch2e 
+6dde 6fe0c76b fetch 1 ,mem_ssp_enable 
+6ddf 207a0000 rtn blank 
+6de0 6fe0c6c0 fetch 1 ,mem_sp_local_key_invalid 
+6de1 c1808000 rtnne sp_key_valid 
+6de2 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+6de3 207a0000 rtn blank 
+6de4 6fe0c6c2 fetch 1 ,mem_sc_local_key_invalid 
+6de5 c1018000 rtneq sp_key_valid_256 
+6de6 6fe14793 fetch 2 ,mem_ui_state_map 
+6de7 c2806deb bbit1 ui_state_bt_connected ,stop_publickey_calc_256 
+6de8 6fe0c6c1 fetch 1 ,mem_sc_calc 
+6de9 c0007477 beq sp_calc_standby ,sp_initialize_256 
+6dea 20600000 rtn 
+
+stop_publickey_calc_256:
+6deb 7046c100 jam sp_calc_standby ,mem_sc_calc 
+6dec 20600000 rtn 
+
+sp_br_secure_connection_enable:
+6ded 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+6dee 79207e01 set1 secure_connections_br_bit ,pdata 
+6def 67e0c6bf store 1 ,mem_secure_connections_enable 
+6df0 20600000 rtn 
+
+sp_br_secure_connection_disable:
+6df1 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+6df2 793ffe01 set0 secure_connections_br_bit ,pdata 
+6df3 67e0c6bf store 1 ,mem_secure_connections_enable 
+6df4 20600000 rtn 
+
+sp_initialize:
+6df5 4739c02e bpatchx patch2e_3 ,mem_patch2e 
+6df6 6fe0c76b fetch 1 ,mem_ssp_enable 
+6df7 243a6f31 nbranch sp_pubkey_calc ,blank 
+
+sp_reset:
+6df8 20406e02 call sp_clear_flags 
+6df9 7046c000 jam sp_key_invalid ,mem_sp_local_key_invalid 
+6dfa 70087400 jam sp_calc_standby ,mem_sp_calc 
+6dfb 20600000 rtn 
+
+sp_wait_pubkey_calc_done:
+6dfc 6fe0c76b fetch 1 ,mem_ssp_enable 
+6dfd 207a0000 rtn blank 
+6dfe 6fe0c6c0 fetch 1 ,mem_sp_local_key_invalid 
+6dff c1008000 rtneq sp_key_valid 
+6e00 20406fa2 call sp_calc_sequence 
+6e01 20206dfc branch sp_wait_pubkey_calc_done 
+
+sp_clear_flags:
+6e02 473a402e bpatchx patch2e_4 ,mem_patch2e 
+6e03 58000880 setarg mem_sp_state_end 
+6e04 d8a00870 arg mem_sp_state_start ,contw 
+6e05 98a67200 isub contw ,loopcnt 
+6e06 20407c68 call clear_mem 
+6e07 58004777 setarg mem_sp_state_xmem_end 
+6e08 d8a0476f arg mem_sp_state_xmem ,contw 
+6e09 98a67200 isub contw ,loopcnt 
+6e0a 20207c68 branch clear_mem 
+
+sp_generate_local_key:
+6e0b 70087201 jam sp_flag_commit ,mem_sp_flag 
+6e0c 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+6e0d c0016e10 beq encapsulated_minor_type_p256 ,sp_generate_local_key0_256 
+6e0e c000ee1b beq encapsulated_minor_type_p192 ,sp_generate_local_key0_192 
+6e0f 20600000 rtn 
+
+sp_generate_local_key0_256:
+6e10 6fe0c6c2 fetch 1 ,mem_sc_local_key_invalid 
+6e11 c001ee13 beq sp_key_valid_256 ,sp_start_send_pubkey_256 
+6e12 20207498 branch sp_pubkey_calc_256 
+
+sp_start_send_pubkey_256:
+6e13 204074b7 call sp_dhkey_calc_256 
+6e14 6fe08871 fetch 1 ,mem_master_sp_state 
+6e15 247a0000 nrtn blank 
+6e16 70087003 jam sp_stat_key_send ,mem_sp_state 
+6e17 20600000 rtn 
+
+sp_master_generate_local_key:
+6e18 6fe0c6c0 fetch 1 ,mem_sp_local_key_invalid 
+6e19 c000ef50 beq sp_key_valid ,sp_dhkey_calc 
+6e1a 2020137a branch assert 
+
+sp_generate_local_key0_192:
+6e1b 6fe0c6c0 fetch 1 ,mem_sp_local_key_invalid 
+6e1c c000ee1e beq sp_key_valid ,sp_start_send_pubkey 
+6e1d 20206f31 branch sp_pubkey_calc 
+
+sp_start_send_pubkey:
+6e1e 20406f50 call sp_dhkey_calc 
+6e1f 6fe08871 fetch 1 ,mem_master_sp_state 
+6e20 247a0000 nrtn blank 
+6e21 70087003 jam sp_stat_key_send ,mem_sp_state 
+6e22 20600000 rtn 
+
+sp_calc_check_publickey_256:
+6e23 20406e3e call sp_calc_b256 
+6e24 da2008a0 arg mem_le_pubkey_remote_y_256 ,rega 
+6e25 d8a00728 arg mem_t7_256 ,contw 
+6e26 20407697 call bn_sqrmod_256 
+6e27 da200880 arg mem_le_pubkey_remote_x_256 ,rega 
+6e28 d8a006e8 arg mem_t2_256 ,contw 
+6e29 20407697 call bn_sqrmod_256 
+6e2a da2006e8 arg mem_t2_256 ,rega 
+6e2b da400880 arg mem_le_pubkey_remote_x_256 ,regb 
+6e2c d8a006e8 arg mem_t2_256 ,contw 
+6e2d 204075ff call bn_mulmod_256 
+6e2e da200800 arg mem_a_256 ,rega 
+6e2f da400880 arg mem_le_pubkey_remote_x_256 ,regb 
+6e30 d8a00708 arg mem_t3_256 ,contw 
+6e31 204075ff call bn_mulmod_256 
+6e32 da200708 arg mem_t3_256 ,rega 
+6e33 da4006e8 arg mem_t2_256 ,regb 
+6e34 d8a006e8 arg mem_t2_256 ,contw 
+6e35 2040769b call bn_addmod_256 
+6e36 da2006c8 arg mem_t0_256 ,rega 
+6e37 da4006e8 arg mem_t2_256 ,regb 
+6e38 d8a006c8 arg mem_t0_256 ,contw 
+6e39 2040769b call bn_addmod_256 
+6e3a df200020 arg 32 ,loopcnt 
+6e3b da200728 arg mem_t7_256 ,rega 
+6e3c da4006c8 arg mem_t0_256 ,regb 
+6e3d 20207d33 branch string_compare 
+
+sp_calc_b256:
+6e3e da200840 arg mem_gy_256 ,rega 
+6e3f d8a006c8 arg mem_t0_256 ,contw 
+6e40 20407697 call bn_sqrmod_256 
+6e41 da200820 arg mem_gx_256 ,rega 
+6e42 d8a006e8 arg mem_t2_256 ,contw 
+6e43 20407697 call bn_sqrmod_256 
+6e44 da2006e8 arg mem_t2_256 ,rega 
+6e45 da400820 arg mem_gx_256 ,regb 
+6e46 d8a006e8 arg mem_t2_256 ,contw 
+6e47 204075ff call bn_mulmod_256 
+6e48 da200800 arg mem_a_256 ,rega 
+6e49 da400820 arg mem_gx_256 ,regb 
+6e4a d8a00708 arg mem_t3_256 ,contw 
+6e4b 204075ff call bn_mulmod_256 
+6e4c da200708 arg mem_t3_256 ,rega 
+6e4d da4006e8 arg mem_t2_256 ,regb 
+6e4e d8a006e8 arg mem_t2_256 ,contw 
+6e4f 2040769b call bn_addmod_256 
+6e50 da2006c8 arg mem_t0_256 ,rega 
+6e51 da4006e8 arg mem_t2_256 ,regb 
+6e52 d8a006c8 arg mem_t0_256 ,contw 
+6e53 202076b4 branch bn_submod_256 
+
+sp_calc_check_publickey:
+6e54 20406e6f call sp_calc_b 
+6e55 da2008a8 arg mem_sp_pubkey_remote_y ,rega 
+6e56 d8a00728 arg mem_t7_256 ,contw 
+6e57 2040706e call bn_sqrmod 
+6e58 da200888 arg mem_sp_pubkey_remote_x ,rega 
+6e59 d8a006e8 arg mem_t2_256 ,contw 
+6e5a 2040706e call bn_sqrmod 
+6e5b da2006e8 arg mem_t2_256 ,rega 
+6e5c da400888 arg mem_sp_pubkey_remote_x ,regb 
+6e5d d8a006e8 arg mem_t2_256 ,contw 
+6e5e 2040704c call bn_mulmod 
+6e5f da200760 arg mem_a ,rega 
+6e60 da400888 arg mem_sp_pubkey_remote_x ,regb 
+6e61 d8a00708 arg mem_t3_256 ,contw 
+6e62 2040704c call bn_mulmod 
+6e63 da200708 arg mem_t3_256 ,rega 
+6e64 da4006e8 arg mem_t2_256 ,regb 
+6e65 d8a006e8 arg mem_t2_256 ,contw 
+6e66 2040701b call bn_addmod 
+6e67 da2006c8 arg mem_t0_256 ,rega 
+6e68 da4006e8 arg mem_t2_256 ,regb 
+6e69 d8a006c8 arg mem_t0_256 ,contw 
+6e6a 2040701b call bn_addmod 
+6e6b df200018 arg 24 ,loopcnt 
+6e6c da200728 arg mem_t7_256 ,rega 
+6e6d da4006c8 arg mem_t0_256 ,regb 
+6e6e 20207d33 branch string_compare 
+
+sp_calc_b:
+6e6f da2007a8 arg mem_gy ,rega 
+6e70 d8a006c8 arg mem_t0_256 ,contw 
+6e71 2040706e call bn_sqrmod 
+6e72 da200790 arg mem_gx ,rega 
+6e73 d8a006e8 arg mem_t2_256 ,contw 
+6e74 2040706e call bn_sqrmod 
+6e75 da2006e8 arg mem_t2_256 ,rega 
+6e76 da400790 arg mem_gx ,regb 
+6e77 d8a006e8 arg mem_t2_256 ,contw 
+6e78 2040704c call bn_mulmod 
+6e79 da200760 arg mem_a ,rega 
+6e7a da400790 arg mem_gx ,regb 
+6e7b d8a00708 arg mem_t3_256 ,contw 
+6e7c 2040704c call bn_mulmod 
+6e7d da200708 arg mem_t3_256 ,rega 
+6e7e da4006e8 arg mem_t2_256 ,regb 
+6e7f d8a006e8 arg mem_t2_256 ,contw 
+6e80 2040701b call bn_addmod 
+6e81 da2006c8 arg mem_t0_256 ,rega 
+6e82 da4006e8 arg mem_t2_256 ,regb 
+6e83 d8a006c8 arg mem_t0_256 ,contw 
+6e84 2020701e branch bn_submod 
+
+sp_calculate_commitment:
+6e85 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+6e86 c0016e89 beq encapsulated_minor_type_p256 ,sp_calculate_commitment_256 
+6e87 c000ee99 beq encapsulated_minor_type_p192 ,sp_calculate_commitment_192 
+6e88 20600000 rtn 
+
+sp_calculate_commitment_256:
+6e89 6fe0c6c1 fetch 1 ,mem_sc_calc 
+6e8a c0806eb7 bne sp_calc_standby ,sp_calculate_commitment_wait_dhkey_calc 
+6e8b 20406eb4 call sp_local_random_key_generator 
+6e8c d8a00940 arg mem_sp_prarm_stack ,contw 
+6e8d 580008f0 setarg mem_sp_random_local_end 
+6e8e e7e10005 istore 2 ,contw 
+6e8f 58004703 setarg mem_sc_pubkey_local_x_256 + 32 
+6e90 e7e10005 istore 2 ,contw 
+6e91 580008a0 setarg mem_le_pubkey_remote_x_256 + 32 
+6e92 e7e10005 istore 2 ,contw 
+
+sp_calculate_commitment0_256:
+6e93 20407360 call function_f1_256 
+6e94 6fe08871 fetch 1 ,mem_master_sp_state 
+6e95 c0026eb1 beq sp_stat_commit_calc ,master_sp_calculate_commitment0 
+6e96 70087201 jam sp_flag_commit ,mem_sp_flag 
+6e97 70087005 jam sp_stat_commit_send ,mem_sp_state 
+6e98 20600000 rtn 
+
+sp_calculate_commitment_192:
+6e99 6fe08874 fetch 1 ,mem_sp_calc 
+6e9a c0806eb7 bne sp_calc_standby ,sp_calculate_commitment_wait_dhkey_calc 
+6e9b 20406eb4 call sp_local_random_key_generator 
+6e9c d8a00940 arg mem_sp_prarm_stack ,contw 
+6e9d 580008f0 setarg mem_sp_random_local_end 
+6e9e e7e10005 istore 2 ,contw 
+6e9f 58004753 setarg mem_sp_pubkey_local_x_end 
+6ea0 e7e10005 istore 2 ,contw 
+6ea1 580008a0 setarg mem_sp_pubkey_remote_x_end 
+6ea2 e7e10005 istore 2 ,contw 
+6ea3 20206eab branch sp_calculate_commitment0 
+
+master_sp_calculate_commitment:
+6ea4 d8a00940 arg mem_sp_prarm_stack ,contw 
+6ea5 58000900 setarg mem_sp_random_remote_end 
+6ea6 e7e10005 istore 2 ,contw 
+6ea7 580008a0 setarg mem_sp_pubkey_remote_x_end 
+6ea8 e7e10005 istore 2 ,contw 
+6ea9 58004753 setarg mem_sp_pubkey_local_x_end 
+6eaa e7e10005 istore 2 ,contw 
+
+sp_calculate_commitment0:
+6eab 20407287 call function_f1_192 
+6eac 6fe08871 fetch 1 ,mem_master_sp_state 
+6ead c0026eb1 beq sp_stat_commit_calc ,master_sp_calculate_commitment0 
+6eae 70087201 jam sp_flag_commit ,mem_sp_flag 
+6eaf 70087005 jam sp_stat_commit_send ,mem_sp_state 
+6eb0 20600000 rtn 
+
+master_sp_calculate_commitment0:
+6eb1 70087114 jam sp_stat_commitment_compare ,mem_master_sp_state 
+6eb2 20406e18 call sp_master_generate_local_key 
+6eb3 20206f9e branch master_set_mem_master_sp_flag 
+
+sp_local_random_key_generator:
+6eb4 d8a008e0 arg mem_sp_random_local ,contw 
+6eb5 18000e08 force 8 ,queue 
+6eb6 20206f68 branch random_generator 
+
+sp_calculate_commitment_wait_dhkey_calc:
+6eb7 70087201 jam sp_flag_commit ,mem_sp_flag 
+6eb8 20600000 rtn 
+
+sp_confirm_check:
+6eb9 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+6eba c0016ebf beq encapsulated_minor_type_p256 ,sp_confirm_check_256 
+6ebb c000eec2 beq encapsulated_minor_type_p192 ,sp_confirm_check_192 
+
+sp_confirm_check_wait:
+6ebc 70087009 jam sp_stat_confirm_check ,mem_sp_state 
+6ebd 70087201 jam sp_flag_commit ,mem_sp_flag 
+6ebe 20600000 rtn 
+
+sp_confirm_check_256:
+6ebf 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+6ec0 c081eebc bne sp_key_valid_256 ,sp_confirm_check_wait 
+6ec1 20206ec4 branch sp_confirm_check_common 
+
+sp_confirm_check_192:
+6ec2 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+6ec3 c080eebc bne sp_key_valid ,sp_confirm_check_wait 
+
+sp_confirm_check_common:
+6ec4 d8a005e9 arg mem_addr_value ,contw 
+6ec5 6fe340a8 fetch 6 ,mem_lap 
+6ec6 e7e30005 istore 6 ,contw 
+6ec7 6fe30040 fetch 6 ,mem_plap 
+6ec8 e7e30005 istore 6 ,contw 
+6ec9 6fe1c76f fetch 3 ,mem_sp_iocap_remote 
+6eca e7e18005 istore 3 ,contw 
+6ecb 2040737f call function_f3a 
+6ecc da200910 arg mem_sp_calc_result_high ,rega 
+6ecd da400920 arg mem_sp_check_result ,regb 
+6ece 18000e04 force 4 ,queue 
+6ecf 20406f6d call compare4 
+6ed0 2420eedd nbranch sp_confirm_check_failed ,true 
+6ed1 20406ed4 call sp_confirm_check_success 
+6ed2 70007d41 jam lmp_dhkey_check ,mem_lmi_opcode2 
+6ed3 2020593a branch tid_set_reply 
+
+sp_confirm_check_success:
+6ed4 6fe08871 fetch 1 ,mem_master_sp_state 
+6ed5 c004eeda beq sp_stat_confirm_check ,sp_confirm_check_success_master 
+6ed6 7008700a jam sp_stat_confirm_calc ,mem_sp_state 
+6ed7 70087201 jam sp_flag_commit ,mem_sp_flag 
+6ed8 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+6ed9 20600000 rtn 
+
+sp_confirm_check_success_master:
+6eda 70007c03 jam lmp_accepted ,mem_lmo_opcode2 
+6edb 70087115 jam sp_state_end ,mem_master_sp_state 
+6edc 20206f9e branch master_set_mem_master_sp_flag 
+
+sp_confirm_check_failed:
+6edd 6fe08871 fetch 1 ,mem_master_sp_state 
+6ede c004eee3 beq sp_stat_confirm_check ,sp_confirm_check_failed_master 
+6edf 70087000 jam sp_stat_null ,mem_sp_state 
+6ee0 70007c04 jam lmp_not_accepted ,mem_lmo_opcode2 
+6ee1 70007e05 jam authentication_failure_error ,mem_lmo_reason2 
+6ee2 20600000 rtn 
+
+sp_confirm_check_failed_master:
+6ee3 70007c04 jam lmp_not_accepted ,mem_lmo_opcode2 
+6ee4 70087100 jam sp_stat_null ,mem_master_sp_state 
+6ee5 20600000 rtn 
+
+sp_confirm_calc:
+6ee6 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+6ee7 c0016eea beq encapsulated_minor_type_p256 ,sp_confirm_calc_256 
+6ee8 c000eeee beq encapsulated_minor_type_p192 ,sp_confirm_calc_192 
+6ee9 20600000 rtn 
+
+sp_confirm_calc_256:
+6eea 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+6eeb c001eef2 beq sp_key_valid_256 ,sp_confirm_calc_ready 
+6eec 7008710a jam sp_stat_confirm_calc ,mem_master_sp_state 
+6eed 20206f9e branch master_set_mem_master_sp_flag 
+
+sp_confirm_calc_192:
+6eee 6fe08875 fetch 1 ,mem_sp_dh_ready 
+6eef c000eef2 beq sp_flag_commit ,sp_confirm_calc_ready 
+6ef0 7008710a jam sp_stat_confirm_calc ,mem_master_sp_state 
+6ef1 20206f9e branch master_set_mem_master_sp_flag 
+
+sp_confirm_calc_ready:
+6ef2 d8a005e9 arg mem_addr_value ,contw 
+6ef3 6fe30040 fetch 6 ,mem_plap 
+6ef4 e7e30005 istore 6 ,contw 
+6ef5 6fe340a8 fetch 6 ,mem_lap 
+6ef6 e7e30005 istore 6 ,contw 
+6ef7 6fe1c76c fetch 3 ,mem_lmp_io_cap_payload_iocap 
+6ef8 e7e18005 istore 3 ,contw 
+6ef9 204073c2 call function_f3b 
+6efa 6fe08871 fetch 1 ,mem_master_sp_state 
+6efb c0056eff beq sp_stat_confirm_calc ,sp_confirm_calc_master 
+6efc 7008700b jam sp_stat_confirm_send ,mem_sp_state 
+6efd 70087201 jam sp_flag_commit ,mem_sp_flag 
+6efe 20600000 rtn 
+
+sp_confirm_calc_master:
+6eff 7008710b jam sp_stat_confirm_send ,mem_master_sp_state 
+6f00 70087301 jam sp_flag_commit ,mem_master_sp_flag 
+6f01 20600000 rtn 
+
+sp_master_key_prarm_push:
+6f02 d8a00940 arg mem_sp_prarm_stack ,contw 
+6f03 6fe30040 fetch 6 ,mem_plap 
+6f04 e7e30005 istore 6 ,contw 
+6f05 6fe340a8 fetch 6 ,mem_lap 
+6f06 e7e30005 istore 6 ,contw 
+6f07 580008f0 setarg mem_sp_random_local_end 
+6f08 e7e10005 istore 2 ,contw 
+6f09 58000900 setarg mem_sp_random_remote_end 
+6f0a e7e10005 istore 2 ,contw 
+6f0b 20206f16 branch sp_link_key_calc 
+
+sp_link_key_prarm_push:
+6f0c 7008700f jam sp_stat_done ,mem_sp_state 
+6f0d d8a00940 arg mem_sp_prarm_stack ,contw 
+6f0e 6fe340a8 fetch 6 ,mem_lap 
+6f0f e7e30005 istore 6 ,contw 
+6f10 6fe30040 fetch 6 ,mem_plap 
+6f11 e7e30005 istore 6 ,contw 
+6f12 58000900 setarg mem_sp_random_remote_end 
+6f13 e7e10005 istore 2 ,contw 
+6f14 580008f0 setarg mem_sp_random_local_end 
+6f15 e7e10005 istore 2 ,contw 
+
+sp_link_key_calc:
+6f16 d8a005e9 arg mem_addr_value ,contw 
+6f17 6fe30940 fetch 6 ,mem_sp_prarm_stack 
+6f18 e7e30005 istore 6 ,contw 
+6f19 6fe30946 fetch 6 ,mem_sp_prarm_stack + 6 
+6f1a e7e30005 istore 6 ,contw 
+6f1b 204073d6 call function_f2 
+6f1c 7041cd01 jam 1 ,mem_link_key_exists 
+6f1d d8a041ce arg mem_link_key ,contw 
+6f1e d8c00910 arg mem_sp_calc_result_high ,contr 
+6f1f 20407c4c call memcpy16 
+6f20 202009c6 branch generate_linkkey_continue 
+
+sp_debug_private:
+6f21 d8a04723 arg mem_sp_private_key ,contw 
+6f22 380118ff setsect 0 ,0x118ff 
+6f23 3807fd29 setsect 1 ,0x3fd29 
+6f24 3809ed2e setsect 2 ,0x1ed2e 
+6f25 380cad89 setsect 3 ,0xad89 
+6f26 e7e48005 istore 9 ,contw 
+6f27 38030c14 setsect 0 ,0x30c14 
+6f28 380475b3 setsect 1 ,0x75b3 
+6f29 380805df setsect 2 ,0x5df 
+6f2a 380f709c setsect 3 ,0x3709c 
+6f2b e7e48005 istore 9 ,contw 
+6f2c 3802918d setsect 0 ,0x2918d 
+6f2d 380457e1 setsect 1 ,0x57e1 
+6f2e 38080079 setsect 2 ,0x79 
+6f2f e7e30005 istore 6 ,contw 
+6f30 20600000 rtn 
+
+sp_pubkey_calc:
+6f31 473ac02e bpatchx patch2e_5 ,mem_patch2e 
+6f32 6fe0c6c0 fetch 1 ,mem_sp_local_key_invalid 
+6f33 c1800000 rtnne sp_key_invalid 
+6f34 6fe08874 fetch 1 ,mem_sp_calc 
+6f35 c1800000 rtnne sp_calc_standby 
+6f36 d8a04723 arg mem_sp_private_key ,contw 
+6f37 18000e0b force 11 ,queue 
+6f38 20406f68 call random_generator 
+6f39 180a7e00 random pdata 
+6f3a 1fe37e00 rshift pdata ,pdata 
+6f3b e7e10005 istore 2 ,contw 
+6f3c 6fe0c6be fetch 1 ,mem_sp_debug_mode 
+6f3d 245a6f21 ncall sp_debug_private ,blank 
+6f3e d8a00580 arg mem_k ,contw 
+6f3f d8c04723 arg mem_sp_private_key ,contr 
+6f40 20407c4b call memcpy24 
+6f41 d8a004a8 arg mem_ax ,contw 
+6f42 d8c00790 arg mem_gx ,contr 
+6f43 20407c49 call memcpy48 
+6f44 d8a004d8 arg mem_az ,contw 
+6f45 20407c58 call bn_zero 
+6f46 7004d801 jam 1 ,mem_az 
+6f47 20407344 call eckp_calc_init 
+6f48 70087401 jam sp_calc_pubkey ,mem_sp_calc 
+6f49 20600000 rtn 
+
+sp_pubkey_generated:
+6f4a d8a0473b arg mem_sp_pubkey_local ,contw 
+6f4b d8c004f0 arg mem_bx ,contr 
+6f4c 20407c49 call memcpy48 
+6f4d 7046c001 jam sp_key_valid ,mem_sp_local_key_invalid 
+6f4e 70087400 jam sp_calc_standby ,mem_sp_calc 
+6f4f 20600000 rtn 
+
+sp_dhkey_calc:
+6f50 473b402e bpatchx patch2e_6 ,mem_patch2e 
+6f51 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+6f52 c1800000 rtnne sp_key_invalid 
+6f53 6fe08874 fetch 1 ,mem_sp_calc 
+6f54 c1800000 rtnne sp_calc_standby 
+6f55 d8a00580 arg mem_k ,contw 
+6f56 d8c04723 arg mem_sp_private_key ,contr 
+6f57 20407c4b call memcpy24 
+6f58 d8a004a8 arg mem_ax ,contw 
+6f59 d8c00888 arg mem_sp_pubkey_remote ,contr 
+6f5a 20407c49 call memcpy48 
+6f5b d8a004d8 arg mem_az ,contw 
+6f5c 20407c58 call bn_zero 
+6f5d 7004d801 jam 1 ,mem_az 
+6f5e 20407344 call eckp_calc_init 
+6f5f 70087402 jam sp_calc_dhkey ,mem_sp_calc 
+6f60 20600000 rtn 
+
+sp_dhkey_generated:
+6f61 70087501 jam sp_flag_commit ,mem_sp_dh_ready 
+6f62 d8a008c8 arg mem_sp_dhkey ,contw 
+6f63 d8c004f0 arg mem_bx ,contr 
+6f64 20407c4b call memcpy24 
+6f65 70087b01 jam sp_key_valid ,mem_sp_dhkey_invalid 
+6f66 70087400 jam sp_calc_standby ,mem_sp_calc 
+6f67 20600000 rtn 
+
+random_generator:
+6f68 18e08fff increase -1 ,queue 
+6f69 24610000 nrtn positive 
+6f6a 180a7e00 random pdata 
+6f6b e7e10005 istore 2 ,contw 
+6f6c 20206f68 branch random_generator 
+
+compare4:
+6f6d 18e08fff increase -1 ,queue 
+6f6e 24216f79 nbranch compare4_success ,positive 
+6f6f efe20011 ifetch 4 ,rega 
+6f70 1fe20400 copy pdata ,temp 
+6f71 efe20012 ifetch 4 ,regb 
+6f72 9842fe00 iflip temp ,pdata 
+6f73 2422ef77 nbranch compare4_failed ,zero 
+6f74 1a20a204 increase 4 ,rega 
+6f75 1a40a404 increase 4 ,regb 
+6f76 20206f6d branch compare4 
+
+compare4_failed:
+6f77 7840fc00 disable true 
+6f78 20600000 rtn 
+
+compare4_success:
+6f79 7820fc00 enable true 
+6f7a 20600000 rtn 
+
+simple_pairing_sequence:
+6f7b 473bc02e bpatchx patch2e_7 ,mem_patch2e 
+6f7c 6fe08872 fetch 1 ,mem_sp_flag 
+6f7d 207a0000 rtn blank 
+6f7e 204058fe call lmo_fifo_check 
+6f7f 247a0000 nrtn blank 
+6f80 70087200 jam sp_flag_standby ,mem_sp_flag 
+6f81 6fe08870 fetch 1 ,mem_sp_state 
+6f82 c001d824 beq sp_stat_key_send ,sp_send_lmp_encapsulated_header 
+6f83 c002d846 beq sp_stat_commit_send ,sp_send_lmp_simple_pairing_comfirm 
+6f84 c003d851 beq sp_stat_random_send ,sp_send_lmp_simple_pairing_number 
+6f85 c005d866 beq sp_stat_confirm_send ,sp_send_lmp_dhkey_check 
+6f86 c0016e0b beq sp_stat_key_generate ,sp_generate_local_key 
+6f87 c0026e85 beq sp_stat_commit_calc ,sp_calculate_commitment 
+6f88 c004eeb9 beq sp_stat_confirm_check ,sp_confirm_check 
+6f89 c0056ee6 beq sp_stat_confirm_calc ,sp_confirm_calc 
+6f8a c0066f0c beq sp_stat_link_key_calc ,sp_link_key_prarm_push 
+6f8b 20600000 rtn 
+
+master_simple_paring_sequence:
+6f8c 473c402f bpatchx patch2f_0 ,mem_patch2f 
+6f8d 6fe08873 fetch 1 ,mem_master_sp_flag 
+6f8e 207a0000 rtn blank 
+6f8f 204058fe call lmo_fifo_check 
+6f90 247a0000 nrtn blank 
+6f91 70087300 jam sp_flag_standby ,mem_master_sp_flag 
+6f92 6fe08871 fetch 1 ,mem_master_sp_state 
+6f93 c0095808 beq sp_master_stat_start_skip ,sp_master_send_io_cap_get 
+6f94 c009d80d beq sp_master_stat_start_done ,sp_master_send_io_cap_send 
+6f95 c001d811 beq sp_stat_key_send ,sp_master_send_lmp_encapsulated_header 
+6f96 c0026ea4 beq sp_stat_commit_calc ,master_sp_calculate_commitment 
+6f97 c00a5815 beq sp_stat_commitment_compare ,sp_master_commitment_compare 
+6f98 c003d822 beq sp_stat_random_send ,sp_master_send_lmp_simple_pairing_number 
+6f99 c0056ee6 beq sp_stat_confirm_calc ,sp_confirm_calc 
+6f9a c005d865 beq sp_stat_confirm_send ,master_sp_send_lmp_dhkey_check 
+6f9b c004eeb9 beq sp_stat_confirm_check ,sp_confirm_check 
+6f9c c00ad85f beq sp_state_end ,master_sp_sm_end 
+6f9d 20600000 rtn 
+
+master_set_mem_master_sp_flag:
+6f9e 70087301 jam sp_flag_commit ,mem_master_sp_flag 
+6f9f 20600000 rtn 
+
+master_clear_mem_master_sp_flag:
+6fa0 70087300 jam sp_flag_standby ,mem_master_sp_flag 
+6fa1 20600000 rtn 
+
+sp_calc_sequence:
+6fa2 473cc02f bpatchx patch2f_1 ,mem_patch2f 
+6fa3 6fe0c76b fetch 1 ,mem_ssp_enable 
+6fa4 207a0000 rtn blank 
+6fa5 6fe08874 fetch 1 ,mem_sp_calc 
+6fa6 207a0000 rtn blank 
+6fa7 1fe0fe80 increase 0x80 ,pdata 
+6fa8 67e08874 store 1 ,mem_sp_calc 
+6fa9 c3838000 rtnbit1 7 
+6faa 6fe084a5 fetch 1 ,mem_ec_loopc 
+6fab 203a6fad branch sp_calc_sequence_done ,blank 
+6fac 2020734f branch eckp_calc 
+
+sp_calc_sequence_done:
+6fad 20407199 call ecunmapz 
+6fae 6fe08874 fetch 1 ,mem_sp_calc 
+6faf c000ef4a beq sp_calc_pubkey ,sp_pubkey_generated 
+6fb0 c0016f61 beq sp_calc_dhkey ,sp_dhkey_generated 
+6fb1 20600000 rtn 
+
+bn_testbit:
+6fb2 1fe10e07 and pdata ,7 ,queue 
+6fb3 1fe97e00 rshift3 pdata ,pdata 
+6fb4 98c08c00 iadd contr ,contr 
+6fb5 efe08006 ifetch 1 ,contr 
+6fb6 afec0000 qisolate0 pdata 
+6fb7 20600000 rtn 
+
+ec_copy:
+6fb8 20407c4b call memcpy24 
+6fb9 20407c4b call memcpy24 
+6fba 20207c4b branch memcpy24 
+
+bn_eq_zero:
+6fbb efe40006 ifetch 8 ,contr 
+6fbc 247a0000 nrtn blank 
+6fbd efe40006 ifetch 8 ,contr 
+6fbe 247a0000 nrtn blank 
+6fbf efe40006 ifetch 8 ,contr 
+6fc0 20600000 rtn 
+
+bn_eq_0:
+6fc1 efe20011 ifetch 4 ,rega 
+6fc2 98000400 iforce temp 
+6fc3 efe20012 ifetch 4 ,regb 
+6fc4 98467c00 isub temp ,null 
+6fc5 24628000 nrtn zero 
+6fc6 1a20a204 increase 4 ,rega 
+6fc7 1a40a404 increase 4 ,regb 
+6fc8 c2006fc1 loop bn_eq_0 
+6fc9 20600000 rtn 
+
+bn_bigeq:
+6fca 18007206 force 6 ,loopcnt 
+6fcb 1a20a214 increase 20 ,rega 
+6fcc 1a40a414 increase 20 ,regb 
+
+bn_bigeq_0:
+6fcd efe20012 ifetch 4 ,regb 
+6fce 98000400 iforce temp 
+6fcf efe20011 ifetch 4 ,rega 
+6fd0 98467e00 isub temp ,pdata 
+6fd1 24610000 nrtn positive 
+6fd2 247a0000 nrtn blank 
+6fd3 1a20a3fc increase -4 ,rega 
+6fd4 1a40a5fc increase -4 ,regb 
+6fd5 c2006fcd loop bn_bigeq_0 
+6fd6 20600000 rtn 
+
+bn_add:
+6fd7 18007206 force 6 ,loopcnt 
+6fd8 18002600 force 0 ,regc 
+
+bn_add_0:
+6fd9 efe20011 ifetch 4 ,rega 
+6fda 98000400 iforce temp 
+6fdb efe20012 ifetch 4 ,regb 
+6fdc 9840fe00 iadd temp ,pdata 
+6fdd 9a60fe00 iadd regc ,pdata 
+6fde e7e20005 istore 4 ,contw 
+6fdf 2feffe20 isolate1 32 ,pdata 
+6fe0 7920a600 setflag true ,0 ,regc 
+6fe1 1a20a204 increase 4 ,rega 
+6fe2 1a40a404 increase 4 ,regb 
+6fe3 c2006fd9 loop bn_add_0 
+6fe4 20600000 rtn 
+
+bn_sub:
+6fe5 18007206 force 6 ,loopcnt 
+6fe6 18002600 force 0 ,regc 
+
+bn_sub_0:
+6fe7 efe20012 ifetch 4 ,regb 
+6fe8 98000400 iforce temp 
+6fe9 efe20011 ifetch 4 ,rega 
+6fea 98467e00 isub temp ,pdata 
+6feb 9a667e00 isub regc ,pdata 
+6fec e7e20005 istore 4 ,contw 
+6fed 2feffe20 isolate1 32 ,pdata 
+6fee 7920a600 setflag true ,0 ,regc 
+6fef 1a20a204 increase 4 ,rega 
+6ff0 1a40a404 increase 4 ,regb 
+6ff1 c2006fe7 loop bn_sub_0 
+6ff2 20600000 rtn 
+
+bn_rshift6:
+6ff3 18007206 force 6 ,loopcnt 
+6ff4 1a20a214 increase 20 ,rega 
+
+bn_rshift:
+6ff5 18002600 force 0 ,regc 
+
+bn_rshift_0:
+6ff6 efe20011 ifetch 4 ,rega 
+6ff7 2feffe00 isolate1 0 ,pdata 
+6ff8 7920a601 setflag true ,1 ,regc 
+6ff9 1fe37e00 rshift pdata ,pdata 
+6ffa 2a6ffe00 isolate1 0 ,regc 
+6ffb 7920fe1f setflag true ,31 ,pdata 
+6ffc e7e20011 istore 4 ,rega 
+6ffd 1a20a3fc increase -4 ,rega 
+6ffe 1a632600 rshift regc ,regc 
+6fff c2006ff6 loop bn_rshift_0 
+7000 20600000 rtn 
+
+bn_lshift:
+7001 18007206 force 6 ,loopcnt 
+7002 18002600 force 0 ,regc 
+
+bn_lshift_0:
+7003 efe20011 ifetch 4 ,rega 
+7004 2feffe1f isolate1 31 ,pdata 
+7005 7920a601 setflag true ,1 ,regc 
+7006 1fe3fe00 lshift pdata ,pdata 
+7007 2a6ffe00 isolate1 0 ,regc 
+7008 7920fe00 setflag true ,0 ,pdata 
+7009 e7e20011 istore 4 ,rega 
+700a 1a20a204 increase 4 ,rega 
+700b 1a632600 rshift regc ,regc 
+700c c2007003 loop bn_lshift_0 
+700d 20600000 rtn 
+
+bn_lshiftmod:
+700e 20407001 call bn_lshift 
+
+bn_lshiftmod_ismod:
+700f 2a6ffe00 isolate1 0 ,regc 
+7010 2020f017 branch bn_lshiftmod_0 ,true 
+7011 da400748 arg mem_p ,regb 
+7012 1a222600 copy rega ,regc 
+7013 1a20a3e8 increase -24 ,rega 
+7014 20406fca call bn_bigeq 
+7015 24610000 nrtn positive 
+7016 1a622200 copy regc ,rega 
+
+bn_lshiftmod_0:
+7017 1a20a3e8 increase -24 ,rega 
+7018 da400748 arg mem_p ,regb 
+7019 1a220a00 copy rega ,contw 
+701a 20206fe5 branch bn_sub 
+
+bn_addmod:
+701b 20406fd7 call bn_add 
+701c 18a22200 copy contw ,rega 
+701d 2020700f branch bn_lshiftmod_ismod 
+
+bn_submod:
+701e 20406fe5 call bn_sub 
+701f 2a6c0000 isolate0 0 ,regc 
+7020 20608000 rtn true 
+7021 da400748 arg mem_p ,regb 
+7022 18a0a3e8 add contw ,-24 ,rega 
+7023 1a220a00 copy rega ,contw 
+7024 20206fd7 branch bn_add 
+
+bn_p192mod:
+7025 18a21600 copy contw ,timeup 
+7026 1a226000 copy rega ,alarm 
+7027 da4005d8 arg mem_tmp2 ,regb 
+7028 1a420a00 copy regb ,contw 
+7029 1a208c18 add rega ,24 ,contr 
+702a efe40006 ifetch 8 ,contr 
+702b e7e40005 istore 8 ,contw 
+702c e7e40005 istore 8 ,contw 
+702d 18007e00 force 0 ,pdata 
+702e e7e40005 istore 8 ,contw 
+702f 19620a00 copy timeup ,contw 
+7030 2040701b call bn_addmod 
+7031 da4005d8 arg mem_tmp2 ,regb 
+7032 1a420a00 copy regb ,contw 
+7033 18007e00 force 0 ,pdata 
+7034 e7e40005 istore 8 ,contw 
+7035 1e008c20 add alarm ,32 ,contr 
+7036 efe40006 ifetch 8 ,contr 
+7037 e7e40005 istore 8 ,contw 
+7038 e7e40005 istore 8 ,contw 
+7039 19622200 copy timeup ,rega 
+703a 1a220a00 copy rega ,contw 
+703b 2040701b call bn_addmod 
+703c da4005d8 arg mem_tmp2 ,regb 
+703d 1a420a00 copy regb ,contw 
+703e 1e008c28 add alarm ,40 ,contr 
+703f efe40006 ifetch 8 ,contr 
+7040 e7e40005 istore 8 ,contw 
+7041 e7e40005 istore 8 ,contw 
+7042 e7e40005 istore 8 ,contw 
+7043 19622200 copy timeup ,rega 
+7044 1a220a00 copy rega ,contw 
+7045 2020701b branch bn_addmod 
+
+bn_load:
+7046 18007206 force 6 ,loopcnt 
+
+bn_load_0:
+7047 efe20006 ifetch 4 ,contr 
+7048 98005e00 iforce regext 
+7049 1f00f001 increase 1 ,regext_index 
+704a c2007047 loop bn_load_0 
+704b 20600000 rtn 
+
+bn_mulmod:
+704c 18a21600 copy contw ,timeup 
+704d d8a005a8 arg mem_tmp1 ,contw 
+704e 20407c58 call bn_zero 
+704f d8a005a8 arg mem_tmp1 ,contw 
+7050 1a220c00 copy rega ,contr 
+7051 18007000 force 0 ,regext_index 
+7052 20407046 call bn_load 
+7053 1a420c00 copy regb ,contr 
+7054 20407046 call bn_load 
+7055 18002400 force 0 ,regb 
+
+bn_mulmod_1:
+7056 18000400 force 0 ,temp 
+7057 18002606 force 6 ,regc 
+
+bn_mulmod_0:
+7058 efe20005 ifetch 4 ,contw 
+7059 98002200 iforce rega 
+705a 1a427000 copy regb ,regext_index 
+705b 1de27e00 deposit regext 
+705c 1a627000 copy regc ,regext_index 
+705d 9deffe00 imul32 regext ,pdata 
+705e 9a20fe00 iadd rega ,pdata 
+705f 9840fe00 iadd temp ,pdata 
+7060 e7e20005 istore 4 ,contw 
+7061 1fef0400 rshift32 pdata ,temp 
+7062 1a60a601 increase 1 ,regc 
+7063 2a61fe0c compare 12 ,regc ,0xff 
+7064 2420f058 nbranch bn_mulmod_0 ,true 
+7065 18427e00 deposit temp 
+7066 e7e20005 istore 4 ,contw 
+7067 18a08be8 increase -24 ,contw 
+7068 1a40a401 increase 1 ,regb 
+7069 2a41fe06 compare 6 ,regb ,0xff 
+706a 2420f056 nbranch bn_mulmod_1 ,true 
+706b da2005a8 arg mem_tmp1 ,rega 
+706c 19620a00 copy timeup ,contw 
+706d 20207025 branch bn_p192mod 
+
+bn_sqrmod:
+706e 1a222400 copy rega ,regb 
+706f 2020704c branch bn_mulmod 
+
+bn_rshifteven:
+7070 1a226000 copy rega ,alarm 
+
+bn_rshifteven_1:
+7071 1e022200 copy alarm ,rega 
+7072 efe08011 ifetch 1 ,rega 
+7073 2feffe00 isolate1 0 ,pdata 
+7074 20608000 rtn true 
+7075 20406ff3 call bn_rshift6 
+7076 efe08012 ifetch 1 ,regb 
+7077 2fec0000 isolate0 0 ,pdata 
+7078 2020f080 branch bn_rshifteven_0 ,true 
+7079 da200748 arg mem_p ,rega 
+707a 1a420a00 copy regb ,contw 
+707b 20406fd7 call bn_add 
+707c efe08012 ifetch 1 ,regb 
+707d 9a60fe00 iadd regc ,pdata 
+707e e7e08012 istore 1 ,regb 
+707f 1a40a5e8 increase -24 ,regb 
+
+bn_rshifteven_0:
+7080 1a40a218 add regb ,24 ,rega 
+7081 18007207 force 7 ,loopcnt 
+7082 20406ff5 call bn_rshift 
+7083 20207071 branch bn_rshifteven_1 
+
+bn_invmod:
+7084 18a21600 copy contw ,timeup 
+7085 d8a00608 arg mem_tmp0 ,contw 
+7086 20407c58 call bn_zero 
+7087 18007e00 force 0 ,pdata 
+7088 67e205c0 store 4 ,mem_tmp5 
+7089 67e20620 store 4 ,mem_t2 
+708a 70060801 jam 1 ,mem_tmp0 
+708b d8a005a8 arg mem_tmp1 ,contw 
+708c 20407c58 call bn_zero 
+708d d8c00748 arg mem_p ,contr 
+708e d8a005d8 arg mem_tmp2 ,contw 
+708f 20407c4b call memcpy24 
+7090 1a220c00 copy rega ,contr 
+7091 d8a005f0 arg mem_tmp3 ,contw 
+7092 20407c4b call memcpy24 
+
+bn_invmod_2:
+7093 d8c005f0 arg mem_tmp3 ,contr 
+7094 20406fbb call bn_eq_zero 
+7095 203a70bc branch bn_invmod_0 ,blank 
+7096 da2005f0 arg mem_tmp3 ,rega 
+7097 da400608 arg mem_tmp0 ,regb 
+7098 20407070 call bn_rshifteven 
+7099 da2005d8 arg mem_tmp2 ,rega 
+709a da4005a8 arg mem_tmp1 ,regb 
+709b 20407070 call bn_rshifteven 
+709c da2005f0 arg mem_tmp3 ,rega 
+709d da4005d8 arg mem_tmp2 ,regb 
+709e 20406fca call bn_bigeq 
+709f 202170ae branch bn_invmod_1 ,positive 
+70a0 da2005d8 arg mem_tmp2 ,rega 
+70a1 da4005f0 arg mem_tmp3 ,regb 
+70a2 1a220a00 copy rega ,contw 
+70a3 20406fe5 call bn_sub 
+70a4 da200608 arg mem_tmp0 ,rega 
+70a5 da4005a8 arg mem_tmp1 ,regb 
+70a6 1a420a00 copy regb ,contw 
+70a7 20406fd7 call bn_add 
+70a8 efe08011 ifetch 1 ,rega 
+70a9 9a60a600 iadd regc ,regc 
+70aa efe08012 ifetch 1 ,regb 
+70ab 9a60fe00 iadd regc ,pdata 
+70ac e7e08012 istore 1 ,regb 
+70ad 20207093 branch bn_invmod_2 
+
+bn_invmod_1:
+70ae da2005f0 arg mem_tmp3 ,rega 
+70af da4005d8 arg mem_tmp2 ,regb 
+70b0 1a220a00 copy rega ,contw 
+70b1 20406fe5 call bn_sub 
+70b2 da2005a8 arg mem_tmp1 ,rega 
+70b3 da400608 arg mem_tmp0 ,regb 
+70b4 1a420a00 copy regb ,contw 
+70b5 20406fd7 call bn_add 
+70b6 efe08011 ifetch 1 ,rega 
+70b7 9a60a600 iadd regc ,regc 
+70b8 efe08012 ifetch 1 ,regb 
+70b9 9a60fe00 iadd regc ,pdata 
+70ba e7e08012 istore 1 ,regb 
+70bb 20207093 branch bn_invmod_2 
+
+bn_invmod_0:
+70bc d8a00608 arg mem_tmp0 ,contw 
+70bd 20407c58 call bn_zero 
+70be 6fe085c0 fetch 1 ,mem_tmp5 
+70bf 67e08608 store 1 ,mem_tmp0 
+70c0 67e08610 store 1 ,mem_tmp0a 
+70c1 da200608 arg mem_tmp0 ,rega 
+70c2 da4005a8 arg mem_tmp1 ,regb 
+70c3 1a420a00 copy regb ,contw 
+70c4 2040701b call bn_addmod 
+70c5 da200748 arg mem_p ,rega 
+70c6 da4005a8 arg mem_tmp1 ,regb 
+70c7 19620a00 copy timeup ,contw 
+70c8 2020701e branch bn_submod 
+
+ecdbl:
+70c9 da200568 arg mem_cz ,rega 
+70ca d8a00620 arg mem_t2 ,contw 
+70cb 2040706e call bn_sqrmod 
+70cc da200620 arg mem_t2 ,rega 
+70cd d8a00638 arg mem_t3 ,contw 
+70ce 2040706e call bn_sqrmod 
+70cf da200760 arg mem_a ,rega 
+70d0 da400638 arg mem_t3 ,regb 
+70d1 d8a00638 arg mem_t3 ,contw 
+70d2 2040704c call bn_mulmod 
+70d3 da200538 arg mem_cx ,rega 
+70d4 d8a00620 arg mem_t2 ,contw 
+70d5 2040706e call bn_sqrmod 
+70d6 d8c00620 arg mem_t2 ,contr 
+70d7 d8a005f0 arg mem_t1 ,contw 
+70d8 20407c4b call memcpy24 
+70d9 da2005f0 arg mem_t1 ,rega 
+70da 2040700e call bn_lshiftmod 
+70db da200620 arg mem_t2 ,rega 
+70dc da4005f0 arg mem_t1 ,regb 
+70dd d8a00620 arg mem_t2 ,contw 
+70de 2040701b call bn_addmod 
+70df da200620 arg mem_t2 ,rega 
+70e0 da400638 arg mem_t3 ,regb 
+70e1 d8a00620 arg mem_t2 ,contw 
+70e2 2040701b call bn_addmod 
+70e3 d8c00538 arg mem_cx ,contr 
+70e4 d8a005f0 arg mem_t1 ,contw 
+70e5 20407c4b call memcpy24 
+70e6 da200550 arg mem_cy ,rega 
+70e7 d8a00638 arg mem_t3 ,contw 
+70e8 2040706e call bn_sqrmod 
+70e9 da2005f0 arg mem_t1 ,rega 
+70ea 2040700e call bn_lshiftmod 
+70eb da2005f0 arg mem_t1 ,rega 
+70ec 2040700e call bn_lshiftmod 
+70ed da2005f0 arg mem_t1 ,rega 
+70ee da400638 arg mem_t3 ,regb 
+70ef d8a005f0 arg mem_t1 ,contw 
+70f0 2040704c call bn_mulmod 
+70f1 da200638 arg mem_t3 ,rega 
+70f2 d8a00608 arg mem_t0 ,contw 
+70f3 2040706e call bn_sqrmod 
+70f4 da200608 arg mem_t0 ,rega 
+70f5 2040700e call bn_lshiftmod 
+70f6 da200608 arg mem_t0 ,rega 
+70f7 2040700e call bn_lshiftmod 
+70f8 da200608 arg mem_t0 ,rega 
+70f9 2040700e call bn_lshiftmod 
+70fa d8c00550 arg mem_cy ,contr 
+70fb d8a00638 arg mem_t3 ,contw 
+70fc 20407c4b call memcpy24 
+70fd da200638 arg mem_t3 ,rega 
+70fe 2040700e call bn_lshiftmod 
+70ff da200638 arg mem_t3 ,rega 
+7100 da400568 arg mem_cz ,regb 
+7101 d8a00568 arg mem_cz ,contw 
+7102 2040704c call bn_mulmod 
+7103 da200620 arg mem_t2 ,rega 
+7104 d8a00638 arg mem_t3 ,contw 
+7105 2040706e call bn_sqrmod 
+7106 da200638 arg mem_t3 ,rega 
+7107 da4005f0 arg mem_t1 ,regb 
+7108 d8a00638 arg mem_t3 ,contw 
+7109 2040701e call bn_submod 
+710a da200638 arg mem_t3 ,rega 
+710b da4005f0 arg mem_t1 ,regb 
+710c d8a00538 arg mem_cx ,contw 
+710d 2040701e call bn_submod 
+710e da2005f0 arg mem_t1 ,rega 
+710f da400538 arg mem_cx ,regb 
+7110 d8a00638 arg mem_t3 ,contw 
+7111 2040701e call bn_submod 
+7112 da200638 arg mem_t3 ,rega 
+7113 da400620 arg mem_t2 ,regb 
+7114 d8a00638 arg mem_t3 ,contw 
+7115 2040704c call bn_mulmod 
+7116 da200638 arg mem_t3 ,rega 
+7117 da400608 arg mem_t0 ,regb 
+7118 d8a00550 arg mem_cy ,contw 
+7119 2020701e branch bn_submod 
+
+ecadd:
+711a da2004d8 arg mem_az ,rega 
+711b d8a00650 arg mem_t7 ,contw 
+711c 2040706e call bn_sqrmod 
+711d da200538 arg mem_cx ,rega 
+711e da400650 arg mem_t7 ,regb 
+711f d8a00608 arg mem_t0 ,contw 
+7120 2040704c call bn_mulmod 
+7121 da2004d8 arg mem_az ,rega 
+7122 da400650 arg mem_t7 ,regb 
+7123 d8a00650 arg mem_t7 ,contw 
+7124 2040704c call bn_mulmod 
+7125 da200550 arg mem_cy ,rega 
+7126 da400650 arg mem_t7 ,regb 
+7127 d8a005f0 arg mem_t1 ,contw 
+7128 2040704c call bn_mulmod 
+7129 da200568 arg mem_cz ,rega 
+712a d8a00650 arg mem_t7 ,contw 
+712b 2040706e call bn_sqrmod 
+712c da2004a8 arg mem_ax ,rega 
+712d da400650 arg mem_t7 ,regb 
+712e d8a00620 arg mem_t2 ,contw 
+712f 2040704c call bn_mulmod 
+7130 da200568 arg mem_cz ,rega 
+7131 da400650 arg mem_t7 ,regb 
+7132 d8a00650 arg mem_t7 ,contw 
+7133 2040704c call bn_mulmod 
+7134 da2004c0 arg mem_ay ,rega 
+7135 da400650 arg mem_t7 ,regb 
+7136 d8a00638 arg mem_t3 ,contw 
+7137 2040704c call bn_mulmod 
+7138 da200608 arg mem_t0 ,rega 
+7139 da400620 arg mem_t2 ,regb 
+713a d8a00650 arg mem_t7 ,contw 
+713b 2040701e call bn_submod 
+713c da200608 arg mem_t0 ,rega 
+713d da400620 arg mem_t2 ,regb 
+713e d8a00608 arg mem_t0 ,contw 
+713f 2040701b call bn_addmod 
+7140 da2005f0 arg mem_t1 ,rega 
+7141 da400638 arg mem_t3 ,regb 
+7142 d8a00620 arg mem_t2 ,contw 
+7143 2040701e call bn_submod 
+7144 da2005f0 arg mem_t1 ,rega 
+7145 da400638 arg mem_t3 ,regb 
+7146 d8a005f0 arg mem_t1 ,contw 
+7147 2040701b call bn_addmod 
+7148 da2005f0 arg mem_t1 ,rega 
+7149 da400650 arg mem_t7 ,regb 
+714a d8a005f0 arg mem_t1 ,contw 
+714b 2040704c call bn_mulmod 
+714c da200568 arg mem_cz ,rega 
+714d da4004d8 arg mem_az ,regb 
+714e d8a00638 arg mem_t3 ,contw 
+714f 2040704c call bn_mulmod 
+7150 da200638 arg mem_t3 ,rega 
+7151 da400650 arg mem_t7 ,regb 
+7152 d8a00568 arg mem_cz ,contw 
+7153 2040704c call bn_mulmod 
+7154 da200650 arg mem_t7 ,rega 
+7155 d8a00650 arg mem_t7 ,contw 
+7156 2040706e call bn_sqrmod 
+7157 da200650 arg mem_t7 ,rega 
+7158 da400608 arg mem_t0 ,regb 
+7159 d8a00638 arg mem_t3 ,contw 
+715a 2040704c call bn_mulmod 
+715b da200650 arg mem_t7 ,rega 
+715c da4005f0 arg mem_t1 ,regb 
+715d d8a005f0 arg mem_t1 ,contw 
+715e 2040704c call bn_mulmod 
+715f da200620 arg mem_t2 ,rega 
+7160 d8a00538 arg mem_cx ,contw 
+7161 2040706e call bn_sqrmod 
+7162 da200538 arg mem_cx ,rega 
+7163 da400638 arg mem_t3 ,regb 
+7164 d8a00538 arg mem_cx ,contw 
+7165 2040701e call bn_submod 
+7166 d8c00538 arg mem_cx ,contr 
+7167 d8a00650 arg mem_t7 ,contw 
+7168 20407c4b call memcpy24 
+7169 da200650 arg mem_t7 ,rega 
+716a 2040700e call bn_lshiftmod 
+716b da200638 arg mem_t3 ,rega 
+716c da400650 arg mem_t7 ,regb 
+716d d8a00638 arg mem_t3 ,contw 
+716e 2040701e call bn_submod 
+716f da200638 arg mem_t3 ,rega 
+7170 da400620 arg mem_t2 ,regb 
+7171 d8a00620 arg mem_t2 ,contw 
+7172 2040704c call bn_mulmod 
+7173 da200620 arg mem_t2 ,rega 
+7174 da4005f0 arg mem_t1 ,regb 
+7175 d8a00550 arg mem_cy ,contw 
+7176 2040701e call bn_submod 
+7177 da200550 arg mem_cy ,rega 
+7178 da400748 arg mem_p ,regb 
+7179 d8a00550 arg mem_cy ,contw 
+717a 18002600 force 0 ,regc 
+717b 6fe08550 fetch 1 ,mem_cy 
+717c 2feffe00 isolate1 0 ,pdata 
+717d 2040efd7 call bn_add ,true 
+717e 1a626000 copy regc ,alarm 
+717f da200550 arg mem_cy ,rega 
+7180 20406ff3 call bn_rshift6 
+7181 6fe08567 fetch 1 ,mem_cy5 
+7182 2e0ffe00 isolate1 0 ,alarm 
+7183 7920fe07 setflag true ,7 ,pdata 
+7184 67e08567 store 1 ,mem_cy5 
+7185 20600000 rtn 
+
+eckp_0:
+7186 6fe084a5 fetch 1 ,mem_ec_loopc 
+7187 1fe0ffff increase -1 ,pdata 
+7188 24610000 nrtn positive 
+7189 67e084a5 store 1 ,mem_ec_loopc 
+718a 6fe084a4 fetch 1 ,mem_ec_infinite 
+718b 205a70c9 call ecdbl ,blank 
+718c 6fe084a5 fetch 1 ,mem_ec_loopc 
+718d d8c00580 arg mem_k ,contr 
+718e 20406fb2 call bn_testbit 
+718f 2020f186 branch eckp_0 ,true 
+7190 6fe084a4 fetch 1 ,mem_ec_infinite 
+7191 243a7194 nbranch eckp_1 ,blank 
+7192 2040711a call ecadd 
+7193 20207186 branch eckp_0 
+
+eckp_1:
+7194 7004a400 jam 0 ,mem_ec_infinite 
+7195 d8c004a8 arg mem_ax ,contr 
+7196 d8a00538 arg mem_cx ,contw 
+7197 20406fb8 call ec_copy 
+7198 20207186 branch eckp_0 
+
+ecunmapz:
+7199 da200568 arg mem_cz ,rega 
+719a d8a00638 arg mem_t3 ,contw 
+719b 20407084 call bn_invmod 
+719c da200638 arg mem_t3 ,rega 
+719d d8a005f0 arg mem_t1 ,contw 
+719e 2040706e call bn_sqrmod 
+719f da200538 arg mem_cx ,rega 
+71a0 da4005f0 arg mem_t1 ,regb 
+71a1 d8a004f0 arg mem_bx ,contw 
+71a2 2040704c call bn_mulmod 
+71a3 da200638 arg mem_t3 ,rega 
+71a4 da4005f0 arg mem_t1 ,regb 
+71a5 d8a00620 arg mem_t2 ,contw 
+71a6 2040704c call bn_mulmod 
+71a7 da200550 arg mem_cy ,rega 
+71a8 da400620 arg mem_t2 ,regb 
+71a9 d8a00508 arg mem_by ,contw 
+71aa 2020704c branch bn_mulmod 
+
+sha_endian_swap2:
+71ab efe20006 ifetch 4 ,contr 
+71ac 18002204 force 4 ,rega 
+71ad 18a08a03 increase 3 ,contw 
+
+sha_endian_loop:
+71ae e7e08005 istore 1 ,contw 
+71af 1fecfe00 rshift8 pdata ,pdata 
+71b0 18a08bfe increase -2 ,contw 
+71b1 1a20a3ff increase -1 ,rega 
+71b2 2422f1ae nbranch sha_endian_loop ,zero 
+71b3 18a08a05 increase 5 ,contw 
+71b4 c20071ab loop sha_endian_swap2 
+71b5 20600000 rtn 
+
+sha_getw:
+71b6 18ebfe00 lshift2 queue ,pdata 
+71b7 99608c00 iadd timeup ,contr 
+71b8 efe20006 ifetch 4 ,contr 
+71b9 20600000 rtn 
+
+sha_r:
+71ba 18006010 force 16 ,alarm 
+71bb d96004a8 arg memdat ,timeup 
+
+sha_r_loop:
+71bc 1e008ff9 add alarm ,-7 ,queue 
+71bd 204071b6 call sha_getw 
+71be 98000400 iforce temp 
+71bf 1e008ff0 add alarm ,-16 ,queue 
+71c0 204071b6 call sha_getw 
+71c1 98408400 iadd temp ,temp 
+71c2 1e008ffe add alarm ,-2 ,queue 
+71c3 204071b6 call sha_getw 
+71c4 1fee7e01 shasx pdata ,1 ,pdata 
+71c5 98408400 iadd temp ,temp 
+71c6 1e008ff1 add alarm ,-15 ,queue 
+71c7 204071b6 call sha_getw 
+71c8 1fee7e00 shasx pdata ,0 ,pdata 
+71c9 98408400 iadd temp ,temp 
+71ca 1e0bfe00 lshift2 alarm ,pdata 
+71cb 99608a00 iadd timeup ,contw 
+71cc e0420005 istoret 4 ,contw 
+71cd 1e00e001 increase 1 ,alarm 
+71ce 2e01fe40 compare 64 ,alarm ,0xff 
+71cf 2420f1bc nbranch sha_r_loop ,true 
+71d0 20600000 rtn 
+
+sha_init:
+71d1 d8c007c0 arg memh0 ,contr 
+71d2 18007007 force 7 ,regext_index 
+
+sha_init_0:
+71d3 efe20006 ifetch 4 ,contr 
+71d4 98005e00 iforce regext 
+71d5 1f00f1ff increase -1 ,regext_index 
+71d6 202171d3 branch sha_init_0 ,positive 
+71d7 20600000 rtn 
+
+sha:
+71d8 473d402f bpatchx patch2f_2 ,mem_patch2f 
+71d9 204071ba call sha_r 
+71da d8a005a8 arg memahbak ,contw 
+71db 18007000 force 0 ,regext_index 
+
+sha_0:
+71dc 1de27e00 deposit regext 
+71dd e7e20005 istore 4 ,contw 
+71de 1f00f001 increase 1 ,regext_index 
+71df 2f01fe08 compare 8 ,regext_index ,0xff 
+71e0 2420f1dc nbranch sha_0 ,true 
+71e1 20406d29 call enable_authrom 
+71e2 d9609300 arg memk ,timeup 
+71e3 de0004a8 arg memdat ,alarm 
+71e4 18007240 force 64 ,loopcnt 
+
+sha_loop:
+71e5 e8420030 ifetcht 4 ,alarm 
+71e6 efe2000b ifetch 4 ,timeup 
+71e7 19609604 increase 4 ,timeup 
+71e8 1e00e004 increase 4 ,alarm 
+71e9 9840fe00 iadd temp ,pdata 
+71ea 18007007 force 7 ,regext_index 
+71eb 9de08400 iadd regext ,temp 
+71ec 18007004 force 4 ,regext_index 
+71ed 1dee7e03 shasx regext ,3 ,pdata 
+71ee 98408400 iadd temp ,temp 
+71ef 18007005 force 5 ,regext_index 
+71f0 1de27e00 deposit regext 
+71f1 18007006 force 6 ,regext_index 
+71f2 9de2fe00 ixor regext ,pdata 
+71f3 18007004 force 4 ,regext_index 
+71f4 9de17e00 iand regext ,pdata 
+71f5 18007006 force 6 ,regext_index 
+71f6 9de2fe00 ixor regext ,pdata 
+71f7 98408400 iadd temp ,temp 
+71f8 18007007 force 7 ,regext_index 
+71f9 18425e00 copy temp ,regext 
+71fa 18007003 force 3 ,regext_index 
+71fb 1de27e00 deposit regext 
+71fc 9840de00 iadd temp ,regext 
+71fd 18007000 force 0 ,regext_index 
+71fe 1de27e00 deposit regext 
+71ff 18007001 force 1 ,regext_index 
+7200 9de10400 iand regext ,temp 
+7201 9de1fe00 ior regext ,pdata 
+7202 18007002 force 2 ,regext_index 
+7203 9de17e00 iand regext ,pdata 
+7204 98418400 ior temp ,temp 
+7205 18007000 force 0 ,regext_index 
+7206 1dee7e02 shasx regext ,2 ,pdata 
+7207 9840fe00 iadd temp ,pdata 
+7208 18007007 force 7 ,regext_index 
+7209 9de0de00 iadd regext ,regext 
+720a 980efc00 regexrot 
+720b c20071e5 loop sha_loop 
+720c d8c005a8 arg memahbak ,contr 
+720d 18007000 force 0 ,regext_index 
+
+sha_1:
+720e efe20006 ifetch 4 ,contr 
+720f 9de0de00 iadd regext ,regext 
+7210 1f00f001 increase 1 ,regext_index 
+7211 2f01fe08 compare 8 ,regext_index ,0xff 
+7212 2420f20e nbranch sha_1 ,true 
+7213 20206d2d branch disable_authrom 
+
+sha_result:
+7214 d8a00900 arg memresult ,contw 
+7215 18007007 force 7 ,regext_index 
+
+sha_regext_save:
+7216 1de27e00 deposit regext 
+7217 e7e20005 istore 4 ,contw 
+7218 1f00f1ff increase -1 ,regext_index 
+7219 20217216 branch sha_regext_save ,positive 
+721a 20600000 rtn 
+
+pad_xor:
+721b d8a004a8 arg memdat ,contw 
+721c 18c08dfc increase -4 ,contr 
+721d 1f262210 sub loopcnt ,16 ,rega 
+
+pad_xor_0:
+721e efe20006 ifetch 4 ,contr 
+721f 9842fe00 ixor temp ,pdata 
+7220 e7e20005 istore 4 ,contw 
+7221 18c08df8 increase -8 ,contr 
+7222 c200721e loop pad_xor_0 
+7223 1a227200 copy rega ,loopcnt 
+7224 18427e00 deposit temp 
+
+pad_xor_1:
+7225 e7e20005 istore 4 ,contw 
+7226 c2007225 loop pad_xor_1 
+7227 20600000 rtn 
+
+g_noninit_number_confirm:
+7228 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+7229 c001722f beq encapsulated_minor_type_p256 ,g_noninit_number_confirm_256 
+722a c000f22c beq encapsulated_minor_type_p192 ,g_noninit_number_confirm_192 
+722b 20600000 rtn 
+
+g_noninit_number_confirm_192:
+722c 20407234 call g_noninit0_192 
+722d 20407214 call sha_result 
+722e 2020725a branch g_common0 
+
+g_noninit_number_confirm_256:
+722f 2040726e call g_noninit0_256 
+7230 20407214 call sha_result 
+7231 2020725a branch g_common0 
+
+g_noninit_192:
+7232 20407234 call g_noninit0_192 
+7233 2020725a branch g_common0 
+
+g_noninit0_192:
+7234 d8c008a0 arg mem_sp_pubkey_remote_x_end ,contr 
+7235 d8a004a8 arg memdat ,contw 
+7236 18007206 force 6 ,loopcnt 
+7237 20407358 call memcpy_dword_swap 
+7238 d8c04753 arg mem_sp_pubkey_local_x_end ,contr 
+7239 18007206 force 6 ,loopcnt 
+723a 20407358 call memcpy_dword_swap 
+723b d8c00900 arg mem_sp_random_remote_end ,contr 
+723c 20407357 call memcpy_dword_swap4 
+723d 204071d1 call sha_init 
+723e 204071d8 call sha 
+723f d8c008f0 arg mem_sp_random_local_end ,contr 
+7240 d8a004a8 arg memdat ,contw 
+7241 20207251 branch g_common_192 
+
+g_init_192:
+7242 d8c04753 arg mem_sp_pubkey_local_x_end ,contr 
+7243 d8a004a8 arg memdat ,contw 
+7244 18007206 force 6 ,loopcnt 
+7245 20407358 call memcpy_dword_swap 
+7246 d8c008a0 arg mem_sp_pubkey_remote_x_end ,contr 
+7247 18007206 force 6 ,loopcnt 
+7248 20407358 call memcpy_dword_swap 
+7249 d8c008f0 arg mem_sp_random_local_end ,contr 
+724a 20407357 call memcpy_dword_swap4 
+724b 204071d1 call sha_init 
+724c 204071d8 call sha 
+724d d8c00900 arg mem_sp_random_remote_end ,contr 
+724e d8a004a8 arg memdat ,contw 
+724f 20407251 call g_common_192 
+7250 2020725a branch g_common0 
+
+g_common_192:
+7251 20407357 call memcpy_dword_swap4 
+7252 58800000 setarg 0x800000 
+7253 1fed7e00 lshift8 pdata ,pdata 
+7254 e7e20005 istore 4 ,contw 
+7255 18007205 force 5 ,loopcnt 
+7256 20407c59 call memset0 
+7257 58000280 setarg 640 
+7258 e7e20005 istore 4 ,contw 
+7259 202071d8 branch sha 
+
+g_common0:
+725a 6fe20900 fetch 4 ,memresult 
+725b da2003e8 arg 1000 ,rega 
+725c 9a26fc00 idiv rega 
+725d 20407d31 call wait_div_end 
+725e 18077e00 remainder pdata 
+725f 67e2087c store 4 ,mem_gkey 
+7260 1807fe00 quotient pdata 
+7261 da2003e8 arg 1000 ,rega 
+7262 9a26fc00 idiv rega 
+7263 20407d31 call wait_div_end 
+7264 18077e00 remainder pdata 
+7265 da2003e8 arg 1000 ,rega 
+7266 9a2ffe00 imul32 rega ,pdata 
+7267 684a087c fetcht 4 ,mem_gkey 
+7268 9840fe00 iadd temp ,pdata 
+7269 67e2087c store 4 ,mem_gkey 
+726a 20600000 rtn 
+
+noninit_number_confirm:
+726b 2040726e call g_noninit0_256 
+726c 20407214 call sha_result 
+726d 2020725a branch g_common0 
+
+g_noninit0_256:
+726e d8c008a0 arg mem_le_pubkey_remote_x_256 + 32 ,contr 
+726f d8a004a8 arg memdat ,contw 
+7270 18007208 force 8 ,loopcnt 
+7271 20407358 call memcpy_dword_swap 
+7272 d8c04703 arg mem_sc_pubkey_local_x_256 + 32 ,contr 
+7273 18007208 force 8 ,loopcnt 
+7274 20407358 call memcpy_dword_swap 
+7275 204071d1 call sha_init 
+7276 204071d8 call sha 
+7277 d8c00900 arg mem_sp_random_remote_end ,contr 
+7278 d8a004a8 arg memdat ,contw 
+7279 20407357 call memcpy_dword_swap4 
+727a d8c008f0 arg mem_sp_random_local_end ,contr 
+727b 2020727c branch g_common_256 
+
+g_common_256:
+727c 20407357 call memcpy_dword_swap4 
+727d 58800000 setarg 0x800000 
+727e 1fed7e00 lshift8 pdata ,pdata 
+727f e7e20005 istore 4 ,contw 
+7280 18007203 force 3 ,loopcnt 
+7281 20407c59 call memset0 
+7282 58000300 setarg 768 
+7283 e7e20005 istore 4 ,contw 
+7284 202071d8 branch sha 
+
+function_f1_192_no_key:
+7285 70477500 jam 0 ,mem_passkey_1bit 
+7286 20207289 branch function_f1_192_common 
+
+function_f1_192:
+7287 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+7288 c0817285 bne ssp_mode_passkey_entry_flag ,function_f1_192_no_key 
+
+function_f1_192_common:
+7289 473dc02f bpatchx patch2f_3 ,mem_patch2f 
+728a 58363636 setarg 0x363636 
+728b 1fed0400 lshift8 pdata ,temp 
+728c 18418436 or_into 0x36 ,temp 
+728d 6fe10940 fetch 2 ,mem_sp_prarm_stack 
+728e 1fe20c00 copy pdata ,contr 
+728f 18007204 force 4 ,loopcnt 
+7290 2040721b call pad_xor 
+7291 204071d1 call sha_init 
+7292 204071d8 call sha 
+7293 6fe10942 fetch 2 ,mem_sp_prarm_stack + 2 
+7294 1fe20c00 copy pdata ,contr 
+7295 d8a004a8 arg memdat ,contw 
+7296 18007206 force 6 ,loopcnt 
+7297 20407358 call memcpy_dword_swap 
+7298 6fe10944 fetch 2 ,mem_sp_prarm_stack + 4 
+7299 1fe20c00 copy pdata ,contr 
+729a 18007206 force 6 ,loopcnt 
+729b 20407358 call memcpy_dword_swap 
+729c 58800000 setarg 0x800000 
+729d e7e18005 istore 3 ,contw 
+729e 6fe0c775 fetch 1 ,mem_passkey_1bit 
+729f e7e08005 istore 1 ,contw 
+72a0 18007e00 force 0 ,pdata 
+72a1 e7e40005 istore 8 ,contw 
+72a2 58000388 setarg 0x0388 
+72a3 e7e20005 istore 4 ,contw 
+
+function_f1_common2:
+72a4 204071d8 call sha 
+72a5 20407214 call sha_result 
+72a6 d8c00900 arg memresult ,contr 
+72a7 d8a005c8 arg memahsave ,contw 
+72a8 20407c4a call memcpy32 
+72a9 585c5c5c setarg 0x5c5c5c 
+72aa 1fed0400 lshift8 pdata ,temp 
+72ab 1841845c or_into 0x5c ,temp 
+72ac 6fe10940 fetch 2 ,mem_sp_prarm_stack 
+72ad 1fe20c00 copy pdata ,contr 
+72ae 18007204 force 4 ,loopcnt 
+72af 2040721b call pad_xor 
+72b0 204071d1 call sha_init 
+72b1 204071d8 call sha 
+72b2 d8c005e8 arg memahsave_end ,contr 
+72b3 d8a004a8 arg memdat ,contw 
+72b4 18007208 force 8 ,loopcnt 
+72b5 20407358 call memcpy_dword_swap 
+72b6 58800000 setarg 0x800000 
+72b7 1fed7e00 lshift8 pdata ,pdata 
+72b8 e7e20005 istore 4 ,contw 
+72b9 20407c58 call bn_zero 
+72ba 58000300 setarg 0x0300 
+72bb e7e20005 istore 4 ,contw 
+72bc 204071d8 call sha 
+72bd 20207214 branch sha_result 
+
+function_f2_192:
+72be 58363636 setarg 0x363636 
+72bf 1fed0400 lshift8 pdata ,temp 
+72c0 18418436 or_into 0x36 ,temp 
+72c1 d8c008e0 arg mem_sp_dhkey_end ,contr 
+72c2 18007206 force 6 ,loopcnt 
+72c3 2040721b call pad_xor 
+72c4 204071d1 call sha_init 
+72c5 204071d8 call sha 
+72c6 6fe1094c fetch 2 ,mem_sp_prarm_stack + 12 
+72c7 1fe20c00 copy pdata ,contr 
+72c8 d8a004a8 arg memdat ,contw 
+72c9 20407357 call memcpy_dword_swap4 
+72ca 6fe1094e fetch 2 ,mem_sp_prarm_stack + 14 
+72cb 1fe20c00 copy pdata ,contr 
+72cc 20407357 call memcpy_dword_swap4 
+72cd 5862746c setarg 0x62746c 
+72ce 1fed7e00 lshift8 pdata ,pdata 
+72cf 1fe1fe6b or_into 0x6b ,pdata 
+72d0 e7e20005 istore 4 ,contw 
+72d1 d8c005f5 arg mem_addr_value_end ,contr 
+72d2 18007203 force 3 ,loopcnt 
+72d3 20407358 call memcpy_dword_swap 
+72d4 58800000 setarg 0x800000 
+72d5 1fed7e00 lshift8 pdata ,pdata 
+72d6 e7e20005 istore 4 ,contw 
+72d7 18007e00 force 0 ,pdata 
+72d8 e7e40005 istore 8 ,contw 
+72d9 58000380 setarg 0x0380 
+72da e7e20005 istore 4 ,contw 
+72db 204071d8 call sha 
+72dc 20407214 call sha_result 
+72dd d8c00900 arg memresult ,contr 
+72de d8a005c8 arg memahsave ,contw 
+72df 20407c4a call memcpy32 
+72e0 585c5c5c setarg 0x5c5c5c 
+72e1 1fed0400 lshift8 pdata ,temp 
+72e2 1841845c or_into 0x5c ,temp 
+72e3 d8c008e0 arg mem_sp_dhkey_end ,contr 
+72e4 18007206 force 6 ,loopcnt 
+72e5 2040721b call pad_xor 
+72e6 204071d1 call sha_init 
+72e7 204071d8 call sha 
+72e8 d8c005e8 arg memahsave_end ,contr 
+72e9 d8a004a8 arg memdat ,contw 
+72ea 18007208 force 8 ,loopcnt 
+72eb 20407358 call memcpy_dword_swap 
+72ec 58800000 setarg 0x800000 
+72ed 1fed7e00 lshift8 pdata ,pdata 
+72ee e7e20005 istore 4 ,contw 
+72ef 20407c58 call bn_zero 
+72f0 58000300 setarg 0x0300 
+72f1 e7e20005 istore 4 ,contw 
+72f2 204071d8 call sha 
+72f3 20207214 branch sha_result 
+
+function_f3a_192:
+72f4 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+72f5 c0817305 bne ssp_mode_passkey_entry_flag ,function_f3a_no_pin 
+
+function_f3a_common:
+72f6 473e402f bpatchx patch2f_4 ,mem_patch2f 
+72f7 58363636 setarg 0x363636 
+72f8 1fed0400 lshift8 pdata ,temp 
+72f9 18418436 or_into 0x36 ,temp 
+72fa d8c008e0 arg mem_sp_dhkey_end ,contr 
+72fb 18007206 force 6 ,loopcnt 
+72fc 2040721b call pad_xor 
+72fd 204071d1 call sha_init 
+72fe 204071d8 call sha 
+72ff d8c00900 arg mem_sp_random_remote_end ,contr 
+7300 d8a004a8 arg memdat ,contw 
+7301 20407357 call memcpy_dword_swap4 
+7302 d8c008f0 arg mem_sp_random_local_end ,contr 
+7303 20407357 call memcpy_dword_swap4 
+7304 2020731a branch function_f3_common 
+
+function_f3a_no_pin:
+7305 58000000 setarg 0 
+7306 67e2479b store 4 ,mem_pin 
+7307 202072f6 branch function_f3a_common 
+
+function_f3b_no_pin:
+7308 58000000 setarg 0 
+7309 67e2479b store 4 ,mem_pin 
+730a 2020730d branch function_f3b_common 
+
+function_f3b_192:
+730b 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+730c c0817308 bne ssp_mode_passkey_entry_flag ,function_f3b_no_pin 
+
+function_f3b_common:
+730d 58363636 setarg 0x363636 
+730e 1fed0400 lshift8 pdata ,temp 
+730f 18418436 or_into 0x36 ,temp 
+7310 d8c008e0 arg mem_sp_dhkey_end ,contr 
+7311 18007206 force 6 ,loopcnt 
+7312 2040721b call pad_xor 
+7313 204071d1 call sha_init 
+7314 204071d8 call sha 
+7315 d8c008f0 arg mem_sp_random_local_end ,contr 
+7316 d8a004a8 arg memdat ,contw 
+7317 20407357 call memcpy_dword_swap4 
+7318 d8c00900 arg mem_sp_random_remote_end ,contr 
+7319 20407357 call memcpy_dword_swap4 
+
+function_f3_common:
+731a 58000000 setarg 0x0 
+731b e7e40005 istore 8 ,contw 
+731c e7e20005 istore 4 ,contw 
+731d 6fe2479b fetch 4 ,mem_pin 
+731e e7e20005 istore 4 ,contw 
+731f 18a20400 copy contw ,temp 
+7320 7005e880 jam 0x80 ,mem_addr_padding 
+7321 18420a00 copy temp ,contw 
+7322 d8c005f8 arg mem_addr_iocap_end ,contr 
+7323 20407357 call memcpy_dword_swap4 
+7324 204071d8 call sha 
+7325 d8a004a8 arg memdat ,contw 
+7326 18007207 force 7 ,loopcnt 
+7327 20407c59 call memset0 
+7328 e7e20005 istore 4 ,contw 
+7329 580003f8 setarg 0x03F8 
+732a e7e20005 istore 4 ,contw 
+732b 204071d8 call sha 
+732c 20407214 call sha_result 
+732d d8c00900 arg memresult ,contr 
+732e d8a005c8 arg memahsave ,contw 
+732f 20407c4a call memcpy32 
+7330 585c5c5c setarg 0x5c5c5c 
+7331 1fed0400 lshift8 pdata ,temp 
+7332 1841845c or_into 0x5c ,temp 
+7333 d8c008e0 arg mem_sp_dhkey_end ,contr 
+7334 18007206 force 6 ,loopcnt 
+7335 2040721b call pad_xor 
+7336 204071d1 call sha_init 
+7337 204071d8 call sha 
+7338 d8c005e8 arg memahsave_end ,contr 
+7339 d8a004a8 arg memdat ,contw 
+733a 18007208 force 8 ,loopcnt 
+733b 20407358 call memcpy_dword_swap 
+733c 58800000 setarg 0x800000 
+733d 1fed7e00 lshift8 pdata ,pdata 
+733e e7e20005 istore 4 ,contw 
+733f 20407c58 call bn_zero 
+7340 58000300 setarg 0x0300 
+7341 e7e20005 istore 4 ,contw 
+7342 204071d8 call sha 
+7343 20207214 branch sha_result 
+
+eckp_calc_init:
+7344 7004a5c0 jam 192 ,mem_ec_loopc 
+
+eckp_calc_init_1:
+7345 6fe084a5 fetch 1 ,mem_ec_loopc 
+7346 207a0000 rtn blank 
+7347 1fe0ffff increase -1 ,pdata 
+7348 67e084a5 store 1 ,mem_ec_loopc 
+7349 d8c00580 arg mem_k ,contr 
+734a 20406fb2 call bn_testbit 
+734b 2020f345 branch eckp_calc_init_1 ,true 
+734c d8c004a8 arg mem_ax ,contr 
+734d d8a00538 arg mem_cx ,contw 
+734e 20206fb8 branch ec_copy 
+
+eckp_calc:
+734f 204070c9 call ecdbl 
+7350 6fe084a5 fetch 1 ,mem_ec_loopc 
+7351 1fe0ffff increase -1 ,pdata 
+7352 67e084a5 store 1 ,mem_ec_loopc 
+7353 d8c00580 arg mem_k ,contr 
+7354 20406fb2 call bn_testbit 
+7355 20608000 rtn true 
+7356 2020711a branch ecadd 
+
+memcpy_dword_swap4:
+7357 18007204 force 4 ,loopcnt 
+
+memcpy_dword_swap:
+7358 18c08dfc increase -4 ,contr 
+
+memcpy_dword_swap_loop:
+7359 efe20006 ifetch 4 ,contr 
+735a e7e20005 istore 4 ,contw 
+735b 18c08df8 increase -8 ,contr 
+735c c2007359 loop memcpy_dword_swap_loop 
+735d 20600000 rtn 
+
+function_f1_no_key_256:
+735e 70477500 jam 0 ,mem_passkey_1bit 
+735f 20207362 branch function_f1_common_256 
+
+function_f1_256:
+7360 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+7361 c081735e bne ssp_mode_passkey_entry_flag ,function_f1_no_key_256 
+
+function_f1_common_256:
+7362 58363636 setarg 0x363636 
+7363 1fed0400 lshift8 pdata ,temp 
+7364 18418436 or_into 0x36 ,temp 
+7365 6fe10940 fetch 2 ,mem_sp_prarm_stack 
+7366 1fe20c00 copy pdata ,contr 
+7367 18007204 force 4 ,loopcnt 
+7368 2040721b call pad_xor 
+7369 204071d1 call sha_init 
+736a 204071d8 call sha 
+736b 6fe10942 fetch 2 ,mem_sp_prarm_stack + 2 
+736c 1fe20c00 copy pdata ,contr 
+736d d8a004a8 arg memdat ,contw 
+736e 18007208 force 8 ,loopcnt 
+736f 20407358 call memcpy_dword_swap 
+7370 6fe10944 fetch 2 ,mem_sp_prarm_stack + 4 
+7371 1fe20c00 copy pdata ,contr 
+7372 18007208 force 8 ,loopcnt 
+7373 20407358 call memcpy_dword_swap 
+7374 204071d8 call sha 
+7375 d8a004a8 arg memdat ,contw 
+7376 58800000 setarg 0x800000 
+7377 e7e18005 istore 3 ,contw 
+7378 6fe0c775 fetch 1 ,mem_passkey_1bit 
+7379 e7e08005 istore 1 ,contw 
+737a df200007 arg 7 ,loopcnt 
+737b 20407c59 call memset0 
+737c 58000408 setarg 0x0408 
+737d e7e20005 istore 4 ,contw 
+737e 202072a4 branch function_f1_common2 
+
+function_f3a:
+737f 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+7380 c0017383 beq encapsulated_minor_type_p256 ,function_f3a_256 
+7381 c000f2f4 beq encapsulated_minor_type_p192 ,function_f3a_192 
+7382 20600000 rtn 
+
+function_f3a_256:
+7383 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+7384 c08173bc bne ssp_mode_passkey_entry_flag ,function_f3a_no_pin_256 
+
+function_f3a_common_256:
+7385 58363636 setarg 0x363636 
+7386 1fed0400 lshift8 pdata ,temp 
+7387 18418436 or_into 0x36 ,temp 
+7388 d8c008e0 arg mem_sp_dhkey_end ,contr 
+7389 18007208 force 8 ,loopcnt 
+738a 2040721b call pad_xor 
+738b 204071d1 call sha_init 
+738c 204071d8 call sha 
+738d d8c00900 arg mem_sp_random_remote_end ,contr 
+738e d8a004a8 arg memdat ,contw 
+738f 20407357 call memcpy_dword_swap4 
+7390 d8c008f0 arg mem_sp_random_local_end ,contr 
+7391 20407357 call memcpy_dword_swap4 
+
+function_f3_common_256:
+7392 58000000 setarg 0x0 
+7393 e7e40005 istore 8 ,contw 
+7394 e7e20005 istore 4 ,contw 
+7395 6fe2479b fetch 4 ,mem_pin 
+7396 e7e20005 istore 4 ,contw 
+7397 18a20400 copy contw ,temp 
+7398 7005e880 jam 0x80 ,mem_addr_padding 
+7399 18420a00 copy temp ,contw 
+739a d8c005f8 arg mem_addr_iocap_end ,contr 
+739b 20407357 call memcpy_dword_swap4 
+739c 204071d8 call sha 
+739d d8a004a8 arg memdat ,contw 
+739e 18007207 force 7 ,loopcnt 
+739f 20407c59 call memset0 
+73a0 e7e20005 istore 4 ,contw 
+73a1 580003f8 setarg 0x03F8 
+73a2 e7e20005 istore 4 ,contw 
+73a3 204071d8 call sha 
+73a4 20407214 call sha_result 
+73a5 d8c00900 arg memresult ,contr 
+73a6 d8a005c8 arg memahsave ,contw 
+73a7 20407c4a call memcpy32 
+73a8 585c5c5c setarg 0x5c5c5c 
+73a9 1fed0400 lshift8 pdata ,temp 
+73aa 1841845c or_into 0x5c ,temp 
+73ab d8c008e0 arg mem_sp_dhkey_end ,contr 
+73ac 18007208 force 8 ,loopcnt 
+
+sha_end_common:
+73ad 2040721b call pad_xor 
+73ae 204071d1 call sha_init 
+73af 204071d8 call sha 
+73b0 d8c005e8 arg memahsave_end ,contr 
+73b1 d8a004a8 arg memdat ,contw 
+73b2 18007208 force 8 ,loopcnt 
+73b3 20407358 call memcpy_dword_swap 
+73b4 58800000 setarg 0x800000 
+73b5 1fed7e00 lshift8 pdata ,pdata 
+73b6 e7e20005 istore 4 ,contw 
+73b7 20407c58 call bn_zero 
+73b8 58000300 setarg 0x0300 
+73b9 e7e20005 istore 4 ,contw 
+73ba 204071d8 call sha 
+73bb 20207214 branch sha_result 
+
+function_f3a_no_pin_256:
+73bc 58000000 setarg 0 
+73bd 67e2479b store 4 ,mem_pin 
+73be 20207385 branch function_f3a_common_256 
+
+function_f3b_no_pin_256:
+73bf 58000000 setarg 0 
+73c0 67e2479b store 4 ,mem_pin 
+73c1 202073c8 branch function_f3b_common_256 
+
+function_f3b:
+73c2 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+73c3 c00173c6 beq encapsulated_minor_type_p256 ,function_f3b_256 
+73c4 c000f30b beq encapsulated_minor_type_p192 ,function_f3b_192 
+73c5 20600000 rtn 
+
+function_f3b_256:
+73c6 6fe0c773 fetch 1 ,mem_ssp_mode_flag 
+73c7 c08173bf bne ssp_mode_passkey_entry_flag ,function_f3b_no_pin_256 
+
+function_f3b_common_256:
+73c8 58363636 setarg 0x363636 
+73c9 1fed0400 lshift8 pdata ,temp 
+73ca 18418436 or_into 0x36 ,temp 
+73cb d8c008e0 arg mem_sp_dhkey_end ,contr 
+73cc 18007208 force 8 ,loopcnt 
+73cd 2040721b call pad_xor 
+73ce 204071d1 call sha_init 
+73cf 204071d8 call sha 
+73d0 d8c008f0 arg mem_sp_random_local_end ,contr 
+73d1 d8a004a8 arg memdat ,contw 
+73d2 20407357 call memcpy_dword_swap4 
+73d3 d8c00900 arg mem_sp_random_remote_end ,contr 
+73d4 20407357 call memcpy_dword_swap4 
+73d5 20207392 branch function_f3_common_256 
+
+function_f2:
+73d6 6fe0c64c fetch 1 ,mem_encapsulated_minor_type 
+73d7 c00173da beq encapsulated_minor_type_p256 ,function_f2_256 
+73d8 c000f2be beq encapsulated_minor_type_p192 ,function_f2_192 
+73d9 20600000 rtn 
+
+function_f2_256:
+73da 58363636 setarg 0x363636 
+73db 1fed0400 lshift8 pdata ,temp 
+73dc 18418436 or_into 0x36 ,temp 
+73dd d8c008e0 arg mem_sp_dhkey_end ,contr 
+73de 18007208 force 8 ,loopcnt 
+73df 2040721b call pad_xor 
+73e0 204071d1 call sha_init 
+73e1 204071d8 call sha 
+73e2 6fe1094c fetch 2 ,mem_sp_prarm_stack + 12 
+73e3 1fe20c00 copy pdata ,contr 
+73e4 d8a004a8 arg memdat ,contw 
+73e5 20407357 call memcpy_dword_swap4 
+73e6 6fe1094e fetch 2 ,mem_sp_prarm_stack + 14 
+73e7 1fe20c00 copy pdata ,contr 
+73e8 20407357 call memcpy_dword_swap4 
+73e9 5862746c setarg 0x62746c 
+73ea 1fed7e00 lshift8 pdata ,pdata 
+73eb 1fe1fe6b or_into 0x6b ,pdata 
+73ec e7e20005 istore 4 ,contw 
+73ed d8c005f5 arg mem_addr_value_end ,contr 
+73ee 18007203 force 3 ,loopcnt 
+73ef 20407358 call memcpy_dword_swap 
+73f0 58800000 setarg 0x800000 
+73f1 1fed7e00 lshift8 pdata ,pdata 
+73f2 e7e20005 istore 4 ,contw 
+73f3 18007e00 force 0 ,pdata 
+73f4 e7e40005 istore 8 ,contw 
+73f5 58000380 setarg 0x0380 
+73f6 e7e20005 istore 4 ,contw 
+73f7 204071d8 call sha 
+73f8 20407214 call sha_result 
+73f9 d8c00900 arg memresult ,contr 
+73fa d8a005c8 arg memahsave ,contw 
+73fb 20407c4a call memcpy32 
+73fc 585c5c5c setarg 0x5c5c5c 
+73fd 1fed0400 lshift8 pdata ,temp 
+73fe 1841845c or_into 0x5c ,temp 
+73ff d8c008e0 arg mem_sp_dhkey_end ,contr 
+7400 18007208 force 8 ,loopcnt 
+7401 202073ad branch sha_end_common 
+
+function_h3:
+7402 6fe340a8 fetch 6 ,mem_lap 
+7403 67e305e9 store 6 ,mem_addr_value 
+7404 6fe30040 fetch 6 ,mem_plap 
+7405 e7e30005 istore 6 ,contw 
+7406 58363636 setarg 0x363636 
+7407 1fed0400 lshift8 pdata ,temp 
+7408 18418436 or_into 0x36 ,temp 
+7409 d8c041de arg mem_link_key + 16 ,contr 
+740a 18007204 force 4 ,loopcnt 
+740b 2040721b call pad_xor 
+740c 204071d1 call sha_init 
+740d 204071d8 call sha 
+740e 58627461 setarg 0x627461 
+740f 1fed7e00 lshift8 pdata ,pdata 
+7410 1fe1fe6b or_into 0x6b ,pdata 
+7411 67e204a8 store 4 ,memdat 
+7412 d8c005f5 arg mem_addr_value + 12 ,contr 
+7413 18007203 force 3 ,loopcnt 
+7414 20407358 call memcpy_dword_swap 
+7415 d8c046b9 arg mem_ccm_iv + 8 ,contr 
+7416 df200002 arg 2 ,loopcnt 
+7417 20407358 call memcpy_dword_swap 
+7418 58800000 setarg 0x800000 
+7419 1fed7e00 lshift8 pdata ,pdata 
+741a e7e20005 istore 4 ,contw 
+741b df200004 arg 4 ,loopcnt 
+741c 20407c59 call memset0 
+741d 580002c0 setarg 704 
+741e e7e20005 istore 4 ,contw 
+741f 204071d8 call sha 
+7420 20407214 call sha_result 
+7421 d8c00900 arg memresult ,contr 
+7422 d8a005c8 arg memahsave ,contw 
+7423 20407c4a call memcpy32 
+7424 585c5c5c setarg 0x5c5c5c 
+7425 1fed0400 lshift8 pdata ,temp 
+7426 1841845c or_into 0x5c ,temp 
+7427 d8c041de arg mem_link_key + 16 ,contr 
+7428 18007204 force 4 ,loopcnt 
+7429 202073ad branch sha_end_common 
+
+function_h4:
+742a 6fe340a8 fetch 6 ,mem_lap 
+742b 67e305e9 store 6 ,mem_addr_value 
+742c 6fe30040 fetch 6 ,mem_plap 
+742d e7e30005 istore 6 ,contw 
+742e 58363636 setarg 0x363636 
+742f 1fed0400 lshift8 pdata ,temp 
+7430 18418436 or_into 0x36 ,temp 
+7431 d8c041de arg mem_link_key + 16 ,contr 
+7432 18007204 force 4 ,loopcnt 
+7433 2040721b call pad_xor 
+7434 204071d1 call sha_init 
+7435 204071d8 call sha 
+7436 58627464 setarg 0x627464 
+7437 1fed7e00 lshift8 pdata ,pdata 
+7438 1fe1fe6b or_into 0x6b ,pdata 
+7439 67e204a8 store 4 ,memdat 
+743a d8c005f5 arg mem_addr_value + 12 ,contr 
+743b 18007203 force 3 ,loopcnt 
+743c 20407358 call memcpy_dword_swap 
+743d 58800000 setarg 0x800000 
+743e 1fed7e00 lshift8 pdata ,pdata 
+743f e7e20005 istore 4 ,contw 
+7440 df200005 arg 5 ,loopcnt 
+7441 20407c59 call memset0 
+7442 58000280 setarg 640 
+7443 e7e20005 istore 4 ,contw 
+7444 204071d8 call sha 
+7445 20407214 call sha_result 
+7446 d8c00900 arg memresult ,contr 
+7447 d8a005c8 arg memahsave ,contw 
+7448 20407c4a call memcpy32 
+7449 585c5c5c setarg 0x5c5c5c 
+744a 1fed0400 lshift8 pdata ,temp 
+744b 1841845c or_into 0x5c ,temp 
+744c d8c041de arg mem_link_key + 16 ,contr 
+744d 18007204 force 4 ,loopcnt 
+744e 202073ad branch sha_end_common 
+
+function_h5:
+744f d8c00910 arg mem_sp_calc_result_high ,contr 
+7450 d8a00454 arg mem_input_store ,contw 
+7451 20407c4c call memcpy16 
+7452 58000900 setarg mem_sp_random_remote + 16 
+7453 67e10940 store 2 ,mem_sp_prarm_stack 
+7454 58000434 setarg mem_random_number + 16 
+7455 e7e10005 istore 2 ,contw 
+7456 58363636 setarg 0x363636 
+7457 1fed0400 lshift8 pdata ,temp 
+7458 18418436 or_into 0x36 ,temp 
+7459 d8c00464 arg mem_input_store + 16 ,contr 
+745a 18007204 force 4 ,loopcnt 
+745b 2040721b call pad_xor 
+745c 204071d1 call sha_init 
+745d 204071d8 call sha 
+745e d8a004a8 arg memdat ,contw 
+745f 6fe10940 fetch 2 ,mem_sp_prarm_stack 
+7460 1fe20c00 copy pdata ,contr 
+7461 20407357 call memcpy_dword_swap4 
+7462 6fe10942 fetch 2 ,mem_sp_prarm_stack + 2 
+7463 1fe20c00 copy pdata ,contr 
+7464 20407357 call memcpy_dword_swap4 
+7465 58800000 setarg 0x800000 
+7466 1fed7e00 lshift8 pdata ,pdata 
+7467 e7e20005 istore 4 ,contw 
+7468 df200003 arg 3 ,loopcnt 
+7469 20407c59 call memset0 
+746a 58000300 setarg 768 
+746b e7e20005 istore 4 ,contw 
+746c 204071d8 call sha 
+746d 20407214 call sha_result 
+746e d8c00900 arg memresult ,contr 
+746f d8a005c8 arg memahsave ,contw 
+7470 20407c4a call memcpy32 
+7471 585c5c5c setarg 0x5c5c5c 
+7472 1fed0400 lshift8 pdata ,temp 
+7473 1841845c or_into 0x5c ,temp 
+7474 d8c00464 arg mem_input_store + 16 ,contr 
+7475 18007204 force 4 ,loopcnt 
+7476 202073ad branch sha_end_common 
+
+sp_initialize_256:
+7477 473ec02f bpatchx patch2f_5 ,mem_patch2f 
+7478 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+7479 243a7498 nbranch sp_pubkey_calc_256 ,blank 
+
+sc_reset:
+747a 7046c100 jam sp_calc_standby ,mem_sc_calc 
+747b 7046c200 jam sp_key_invalid ,mem_sc_local_key_invalid 
+747c 20600000 rtn 
+
+sp_wait_pubkey_calc_256_done:
+747d 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+747e 207a0000 rtn blank 
+747f 6fe0c6c2 fetch 1 ,mem_sc_local_key_invalid 
+7480 c1018000 rtneq sp_key_valid_256 
+7481 204074cd call sp_calc_sequence_256 
+7482 2020747d branch sp_wait_pubkey_calc_256_done 
+
+sp_debug_private_256:
+7483 d8a046c3 arg mem_sc_private_key_256 ,contw 
+7484 38001abd setsect 0 ,0x1abd 
+7485 3805b34f setsect 1 ,0x1b34f 
+7486 38099b8a setsect 2 ,0x19b8a 
+7487 380e6562 setsect 3 ,0x26562 
+7488 e7e48005 istore 9 ,contw 
+7489 380340b7 setsect 0 ,0x340b7 
+748a 38041efa setsect 1 ,0x1efa 
+748b 3808aff6 setsect 2 ,0xaff6 
+748c 380cfd41 setsect 3 ,0xfd41 
+748d e7e48005 istore 9 ,contw 
+748e 3803d210 setsect 0 ,0x3d210 
+748f 38066cf8 setsect 1 ,0x26cf8 
+7490 380b874c setsect 2 ,0x3874c 
+7491 380f157c setsect 3 ,0x3157c 
+7492 e7e48005 istore 9 ,contw 
+7493 3802d4a3 setsect 0 ,0x2d4a3 
+7494 3807d27d setsect 1 ,0x3d27d 
+7495 38080003 setsect 2 ,0x3 
+7496 e7e28005 istore 5 ,contw 
+7497 20600000 rtn 
+
+sp_pubkey_calc_256:
+7498 6fe0c6c2 fetch 1 ,mem_sc_local_key_invalid 
+7499 c1800000 rtnne sp_key_invalid 
+749a 6fe0c6c1 fetch 1 ,mem_sc_calc 
+749b c1800000 rtnne sp_calc_standby 
+749c 20406d88 call init_memp_256 
+749d d8a046c3 arg mem_sc_private_key_256 ,contw 
+749e 18000e0f force 15 ,queue 
+749f 20406f68 call random_generator 
+74a0 180a7e00 random pdata 
+74a1 1fe37e00 rshift pdata ,pdata 
+74a2 e7e10005 istore 2 ,contw 
+74a3 6fe0c6be fetch 1 ,mem_sp_debug_mode 
+74a4 245a7483 ncall sp_debug_private_256 ,blank 
+74a5 d8a00628 arg mem_k_256 ,contw 
+74a6 d8c046c3 arg mem_sc_private_key_256 ,contr 
+74a7 20407c4a call memcpy32 
+74a8 d8a00508 arg mem_ax_256 ,contw 
+74a9 d8c00820 arg mem_gx_256 ,contr 
+74aa 20407c3d call memcpy64 
+74ab d8a00548 arg mem_az_256 ,contw 
+74ac 20407c64 call clear_mem_256 
+74ad 70054801 jam 1 ,mem_az_256 
+74ae 204074e5 call eckp_calc_init_256 
+74af 7046c103 jam sp_calc_pubkey_256 ,mem_sc_calc 
+74b0 20600000 rtn 
+
+sp_pubkey_generated_256:
+74b1 d8a046e3 arg mem_sc_pubkey_local_x_256 ,contw 
+74b2 d8c00568 arg mem_bx_256 ,contr 
+74b3 20407c3d call memcpy64 
+74b4 7046c203 jam sp_key_valid_256 ,mem_sc_local_key_invalid 
+74b5 7046c100 jam sp_calc_standby ,mem_sc_calc 
+74b6 20600000 rtn 
+
+sp_dhkey_calc_256:
+74b7 6fe0887b fetch 1 ,mem_sp_dhkey_invalid 
+74b8 c1800000 rtnne sp_key_invalid 
+74b9 6fe0c6c1 fetch 1 ,mem_sc_calc 
+74ba c1800000 rtnne sp_calc_standby 
+74bb d8a00628 arg mem_k_256 ,contw 
+74bc d8c046c3 arg mem_sc_private_key_256 ,contr 
+74bd 20407c4a call memcpy32 
+74be d8a00508 arg mem_ax_256 ,contw 
+74bf d8c00880 arg mem_le_pubkey_remote_x_256 ,contr 
+74c0 20407c3d call memcpy64 
+74c1 d8a00548 arg mem_az_256 ,contw 
+74c2 20407c64 call clear_mem_256 
+74c3 70054801 jam 1 ,mem_az_256 
+74c4 204074e5 call eckp_calc_init_256 
+74c5 7046c104 jam sp_calc_dhkey_256 ,mem_sc_calc 
+74c6 20600000 rtn 
+
+sp_dhkey_generated_256:
+74c7 d8a008c0 arg mem_le_dhkey_256 ,contw 
+74c8 d8c00568 arg mem_bx_256 ,contr 
+74c9 20407c4a call memcpy32 
+74ca 70087b03 jam sp_key_valid_256 ,mem_sp_dhkey_invalid 
+74cb 7046c100 jam sp_calc_standby ,mem_sc_calc 
+74cc 20600000 rtn 
+
+sp_calc_sequence_256:
+74cd 6fe0c6bf fetch 1 ,mem_secure_connections_enable 
+74ce 207a0000 rtn blank 
+74cf 6fe0c6c1 fetch 1 ,mem_sc_calc 
+74d0 207a0000 rtn blank 
+74d1 1fe0fe80 increase 0x80 ,pdata 
+74d2 67e0c6c1 store 1 ,mem_sc_calc 
+74d3 c3838000 rtnbit1 7 
+74d4 6fe104a5 fetch 2 ,mem_ec_loopc 
+74d5 203a74d7 branch sp_calc_sequence_done_256 ,blank 
+74d6 202074dd branch eckp_calc_256 
+
+sp_calc_sequence_done_256:
+74d7 473f402f bpatchx patch2f_6 ,mem_patch2f 
+74d8 204074f2 call ecunmapz_256 
+74d9 6fe0c6c1 fetch 1 ,mem_sc_calc 
+74da c001f4b1 beq sp_calc_pubkey_256 ,sp_pubkey_generated_256 
+74db c00274c7 beq sp_calc_dhkey_256 ,sp_dhkey_generated_256 
+74dc 20600000 rtn 
+
+eckp_calc_256:
+74dd 20407504 call ecdbl_256 
+74de 6fe104a5 fetch 2 ,mem_ec_loopc 
+74df 1fe0ffff increase -1 ,pdata 
+74e0 67e104a5 store 2 ,mem_ec_loopc 
+74e1 d8c00628 arg mem_k_256 ,contr 
+74e2 20406fb2 call bn_testbit 
+74e3 20608000 rtn true 
+74e4 20207555 branch ecadd_256 
+
+eckp_calc_init_256:
+74e5 473fc02f bpatchx patch2f_7 ,mem_patch2f 
+74e6 58000100 setarg 256 
+74e7 67e104a5 store 2 ,mem_ec_loopc 
+
+eckp_calc_init_256_1:
+74e8 6fe104a5 fetch 2 ,mem_ec_loopc 
+74e9 207a0000 rtn blank 
+74ea 1fe0ffff increase -1 ,pdata 
+74eb 67e104a5 store 2 ,mem_ec_loopc 
+74ec d8c00628 arg mem_k_256 ,contr 
+74ed 20406fb2 call bn_testbit 
+74ee 2020f4e8 branch eckp_calc_init_256_1 ,true 
+74ef d8c00508 arg mem_ax_256 ,contr 
+74f0 d8a005c8 arg mem_cx_256 ,contw 
+74f1 20207c3c branch memcpy96 
+
+ecunmapz_256:
+74f2 da200608 arg mem_cz_256 ,rega 
+74f3 d8a00708 arg mem_t3_256 ,contw 
+74f4 204075c1 call bn_invmod_256 
+74f5 da200708 arg mem_t3_256 ,rega 
+74f6 d8a006a8 arg mem_t1_256 ,contw 
+74f7 20407697 call bn_sqrmod_256 
+74f8 da2005c8 arg mem_cx_256 ,rega 
+74f9 da4006a8 arg mem_t1_256 ,regb 
+74fa d8a00568 arg mem_bx_256 ,contw 
+74fb 204075ff call bn_mulmod_256 
+74fc da200708 arg mem_t3_256 ,rega 
+74fd da4006a8 arg mem_t1_256 ,regb 
+74fe d8a006e8 arg mem_t2_256 ,contw 
+74ff 204075ff call bn_mulmod_256 
+7500 da2005e8 arg mem_cy_256 ,rega 
+7501 da4006e8 arg mem_t2_256 ,regb 
+7502 d8a00588 arg mem_by_256 ,contw 
+7503 202075ff branch bn_mulmod_256 
+
+ecdbl_256:
+7504 da200608 arg mem_cz_256 ,rega 
+7505 d8a006e8 arg mem_t2_256 ,contw 
+7506 20407697 call bn_sqrmod_256 
+7507 da2006e8 arg mem_t2_256 ,rega 
+7508 d8a00708 arg mem_t3_256 ,contw 
+7509 20407697 call bn_sqrmod_256 
+750a da200800 arg mem_a_256 ,rega 
+750b da400708 arg mem_t3_256 ,regb 
+750c d8a00708 arg mem_t3_256 ,contw 
+750d 204075ff call bn_mulmod_256 
+750e da2005c8 arg mem_cx_256 ,rega 
+750f d8a006e8 arg mem_t2_256 ,contw 
+7510 20407697 call bn_sqrmod_256 
+7511 d8c006e8 arg mem_t2_256 ,contr 
+7512 d8a006a8 arg mem_t1_256 ,contw 
+7513 20407c4a call memcpy32 
+7514 da2006a8 arg mem_t1_256 ,rega 
+7515 2040769e call bn_lshiftmod_256 
+7516 da2006e8 arg mem_t2_256 ,rega 
+7517 da4006a8 arg mem_t1_256 ,regb 
+7518 d8a006e8 arg mem_t2_256 ,contw 
+7519 2040769b call bn_addmod_256 
+751a da2006e8 arg mem_t2_256 ,rega 
+751b da400708 arg mem_t3_256 ,regb 
+751c d8a006e8 arg mem_t2_256 ,contw 
+751d 2040769b call bn_addmod_256 
+751e d8c005c8 arg mem_cx_256 ,contr 
+751f d8a006a8 arg mem_t1_256 ,contw 
+7520 20407c4a call memcpy32 
+7521 da2005e8 arg mem_cy_256 ,rega 
+7522 d8a00708 arg mem_t3_256 ,contw 
+7523 20407697 call bn_sqrmod_256 
+7524 da2006a8 arg mem_t1_256 ,rega 
+7525 2040769e call bn_lshiftmod_256 
+7526 da2006a8 arg mem_t1_256 ,rega 
+7527 2040769e call bn_lshiftmod_256 
+7528 da2006a8 arg mem_t1_256 ,rega 
+7529 da400708 arg mem_t3_256 ,regb 
+752a d8a006a8 arg mem_t1_256 ,contw 
+752b 204075ff call bn_mulmod_256 
+752c da200708 arg mem_t3_256 ,rega 
+752d d8a006c8 arg mem_t0_256 ,contw 
+752e 20407697 call bn_sqrmod_256 
+752f da2006c8 arg mem_t0_256 ,rega 
+7530 2040769e call bn_lshiftmod_256 
+7531 da2006c8 arg mem_t0_256 ,rega 
+7532 2040769e call bn_lshiftmod_256 
+7533 da2006c8 arg mem_t0_256 ,rega 
+7534 2040769e call bn_lshiftmod_256 
+7535 d8c005e8 arg mem_cy_256 ,contr 
+7536 d8a00708 arg mem_t3_256 ,contw 
+7537 20407c4a call memcpy32 
+7538 da200708 arg mem_t3_256 ,rega 
+7539 2040769e call bn_lshiftmod_256 
+753a da200708 arg mem_t3_256 ,rega 
+753b da400608 arg mem_cz_256 ,regb 
+753c d8a00608 arg mem_cz_256 ,contw 
+753d 204075ff call bn_mulmod_256 
+753e da2006e8 arg mem_t2_256 ,rega 
+753f d8a00708 arg mem_t3_256 ,contw 
+7540 20407697 call bn_sqrmod_256 
+7541 da200708 arg mem_t3_256 ,rega 
+7542 da4006a8 arg mem_t1_256 ,regb 
+7543 d8a00708 arg mem_t3_256 ,contw 
+7544 204076b4 call bn_submod_256 
+7545 da200708 arg mem_t3_256 ,rega 
+7546 da4006a8 arg mem_t1_256 ,regb 
+7547 d8a005c8 arg mem_cx_256 ,contw 
+7548 204076b4 call bn_submod_256 
+7549 da2006a8 arg mem_t1_256 ,rega 
+754a da4005c8 arg mem_cx_256 ,regb 
+754b d8a00708 arg mem_t3_256 ,contw 
+754c 204076b4 call bn_submod_256 
+754d da200708 arg mem_t3_256 ,rega 
+754e da4006e8 arg mem_t2_256 ,regb 
+754f d8a00708 arg mem_t3_256 ,contw 
+7550 204075ff call bn_mulmod_256 
+7551 da200708 arg mem_t3_256 ,rega 
+7552 da4006c8 arg mem_t0_256 ,regb 
+7553 d8a005e8 arg mem_cy_256 ,contw 
+7554 202076b4 branch bn_submod_256 
+
+ecadd_256:
+7555 da200548 arg mem_az_256 ,rega 
+7556 d8a00728 arg mem_t7_256 ,contw 
+7557 20407697 call bn_sqrmod_256 
+7558 da2005c8 arg mem_cx_256 ,rega 
+7559 da400728 arg mem_t7_256 ,regb 
+755a d8a006c8 arg mem_t0_256 ,contw 
+755b 204075ff call bn_mulmod_256 
+755c da200548 arg mem_az_256 ,rega 
+755d da400728 arg mem_t7_256 ,regb 
+755e d8a00728 arg mem_t7_256 ,contw 
+755f 204075ff call bn_mulmod_256 
+7560 da2005e8 arg mem_cy_256 ,rega 
+7561 da400728 arg mem_t7_256 ,regb 
+7562 d8a006a8 arg mem_t1_256 ,contw 
+7563 204075ff call bn_mulmod_256 
+7564 da200608 arg mem_cz_256 ,rega 
+7565 d8a00728 arg mem_t7_256 ,contw 
+7566 20407697 call bn_sqrmod_256 
+7567 da200508 arg mem_ax_256 ,rega 
+7568 da400728 arg mem_t7_256 ,regb 
+7569 d8a006e8 arg mem_t2_256 ,contw 
+756a 204075ff call bn_mulmod_256 
+756b da200608 arg mem_cz_256 ,rega 
+756c da400728 arg mem_t7_256 ,regb 
+756d d8a00728 arg mem_t7_256 ,contw 
+756e 204075ff call bn_mulmod_256 
+756f da200528 arg mem_ay_256 ,rega 
+7570 da400728 arg mem_t7_256 ,regb 
+7571 d8a00708 arg mem_t3_256 ,contw 
+7572 204075ff call bn_mulmod_256 
+7573 da4006c8 arg mem_t0_256 ,regb 
+7574 da2006e8 arg mem_t2_256 ,rega 
+7575 d8a00728 arg mem_t7_256 ,contw 
+7576 204076b4 call bn_submod_256 
+7577 da2006c8 arg mem_t0_256 ,rega 
+7578 da4006e8 arg mem_t2_256 ,regb 
+7579 d8a006c8 arg mem_t0_256 ,contw 
+757a 2040769b call bn_addmod_256 
+757b da4006a8 arg mem_t1_256 ,regb 
+757c da200708 arg mem_t3_256 ,rega 
+757d d8a006e8 arg mem_t2_256 ,contw 
+757e 204076b4 call bn_submod_256 
+757f da2006a8 arg mem_t1_256 ,rega 
+7580 da400708 arg mem_t3_256 ,regb 
+7581 d8a006a8 arg mem_t1_256 ,contw 
+7582 2040769b call bn_addmod_256 
+7583 da2006a8 arg mem_t1_256 ,rega 
+7584 da400728 arg mem_t7_256 ,regb 
+7585 d8a006a8 arg mem_t1_256 ,contw 
+7586 204075ff call bn_mulmod_256 
+7587 da200608 arg mem_cz_256 ,rega 
+7588 da400548 arg mem_az_256 ,regb 
+7589 d8a00708 arg mem_t3_256 ,contw 
+758a 204075ff call bn_mulmod_256 
+758b da200708 arg mem_t3_256 ,rega 
+758c da400728 arg mem_t7_256 ,regb 
+758d d8a00608 arg mem_cz_256 ,contw 
+758e 204075ff call bn_mulmod_256 
+758f da200728 arg mem_t7_256 ,rega 
+7590 d8a00728 arg mem_t7_256 ,contw 
+7591 20407697 call bn_sqrmod_256 
+7592 da200728 arg mem_t7_256 ,rega 
+7593 da4006c8 arg mem_t0_256 ,regb 
+7594 d8a00708 arg mem_t3_256 ,contw 
+7595 204075ff call bn_mulmod_256 
+7596 da200728 arg mem_t7_256 ,rega 
+7597 da4006a8 arg mem_t1_256 ,regb 
+7598 d8a006a8 arg mem_t1_256 ,contw 
+7599 204075ff call bn_mulmod_256 
+759a da2006e8 arg mem_t2_256 ,rega 
+759b d8a005c8 arg mem_cx_256 ,contw 
+759c 20407697 call bn_sqrmod_256 
+759d da2005c8 arg mem_cx_256 ,rega 
+759e da400708 arg mem_t3_256 ,regb 
+759f d8a005c8 arg mem_cx_256 ,contw 
+75a0 204076b4 call bn_submod_256 
+75a1 d8c005c8 arg mem_cx_256 ,contr 
+75a2 d8a00728 arg mem_t7_256 ,contw 
+75a3 20407c4a call memcpy32 
+75a4 da200728 arg mem_t7_256 ,rega 
+75a5 2040769e call bn_lshiftmod_256 
+75a6 da200708 arg mem_t3_256 ,rega 
+75a7 da400728 arg mem_t7_256 ,regb 
+75a8 d8a00708 arg mem_t3_256 ,contw 
+75a9 204076b4 call bn_submod_256 
+75aa da200708 arg mem_t3_256 ,rega 
+75ab da4006e8 arg mem_t2_256 ,regb 
+75ac d8a006e8 arg mem_t2_256 ,contw 
+75ad 204075ff call bn_mulmod_256 
+75ae da2006e8 arg mem_t2_256 ,rega 
+75af da4006a8 arg mem_t1_256 ,regb 
+75b0 d8a005e8 arg mem_cy_256 ,contw 
+75b1 204076b4 call bn_submod_256 
+75b2 da2005e8 arg mem_cy_256 ,rega 
+75b3 da4007e0 arg mem_p_256 ,regb 
+75b4 d8a005e8 arg mem_cy_256 ,contw 
+75b5 18002600 force 0 ,regc 
+75b6 6fe085e8 fetch 1 ,mem_cy_256 
+75b7 2feffe00 isolate1 0 ,pdata 
+75b8 2040f699 call bn_add_256 ,true 
+75b9 1a626000 copy regc ,alarm 
+75ba da2005e8 arg mem_cy_256 ,rega 
+75bb 204076c9 call bn_rshift_256 
+75bc 6fe08607 fetch 1 ,mem_cy5_256 
+75bd 2e0ffe00 isolate1 0 ,alarm 
+75be 7920fe07 setflag true ,7 ,pdata 
+75bf 67e08607 store 1 ,mem_cy5_256 
+75c0 20600000 rtn 
+
+bn_invmod_256:
+75c1 18a21600 copy contw ,timeup 
+75c2 d8a006c8 arg mem_tmp0_256 ,contw 
+75c3 20407c64 call clear_mem_256 
+75c4 18007e00 force 0 ,pdata 
+75c5 67e206e8 store 4 ,mem_t2_256 
+75c6 7006c801 jam 1 ,mem_tmp0_256 
+75c7 d8a00648 arg mem_tmp1_256 ,contw 
+75c8 20407c66 call clear_mem_512 
+75c9 d8c007e0 arg mem_p_256 ,contr 
+75ca d8a00688 arg mem_tmp2_256 ,contw 
+75cb 20407c4a call memcpy32 
+75cc 1a220c00 copy rega ,contr 
+75cd d8a006a8 arg mem_tmp3_256 ,contw 
+75ce 20407c4a call memcpy32 
+
+bn_invmod_256_2:
+75cf d8c006a8 arg mem_tmp3_256 ,contr 
+75d0 204076d3 call bn_eq_zero_256 
+75d1 203a75f8 branch bn_invmod_256_0 ,blank 
+75d2 da2006a8 arg mem_tmp3_256 ,rega 
+75d3 da4006c8 arg mem_tmp0_256 ,regb 
+75d4 204076d6 call bn_rshifteven_256 
+75d5 da200688 arg mem_tmp2_256 ,rega 
+75d6 da400648 arg mem_tmp1_256 ,regb 
+75d7 204076d6 call bn_rshifteven_256 
+75d8 da2006a8 arg mem_tmp3_256 ,rega 
+75d9 da400688 arg mem_tmp2_256 ,regb 
+75da 204076cf call bn_bigeq_256 
+75db 202175ea branch bn_invmod_256_1 ,positive 
+75dc da200688 arg mem_tmp2_256 ,rega 
+75dd da4006a8 arg mem_tmp3_256 ,regb 
+75de 1a220a00 copy rega ,contw 
+75df 204076c7 call bn_sub_256 
+75e0 da2006c8 arg mem_tmp0_256 ,rega 
+75e1 da400648 arg mem_tmp1_256 ,regb 
+75e2 1a420a00 copy regb ,contw 
+75e3 20407699 call bn_add_256 
+75e4 efe08011 ifetch 1 ,rega 
+75e5 9a60a600 iadd regc ,regc 
+75e6 efe08012 ifetch 1 ,regb 
+75e7 9a60fe00 iadd regc ,pdata 
+75e8 e7e08012 istore 1 ,regb 
+75e9 202075cf branch bn_invmod_256_2 
+
+bn_invmod_256_1:
+75ea da2006a8 arg mem_tmp3_256 ,rega 
+75eb da400688 arg mem_tmp2_256 ,regb 
+75ec 1a220a00 copy rega ,contw 
+75ed 204076c7 call bn_sub_256 
+75ee da200648 arg mem_tmp1_256 ,rega 
+75ef da4006c8 arg mem_tmp0_256 ,regb 
+75f0 1a420a00 copy regb ,contw 
+75f1 20407699 call bn_add_256 
+75f2 efe08011 ifetch 1 ,rega 
+75f3 9a60a600 iadd regc ,regc 
+75f4 efe08012 ifetch 1 ,regb 
+75f5 9a60fe00 iadd regc ,pdata 
+75f6 e7e08012 istore 1 ,regb 
+75f7 202075cf branch bn_invmod_256_2 
+
+bn_invmod_256_0:
+75f8 da200648 arg mem_tmp1_256 ,rega 
+75f9 19620a00 copy timeup ,contw 
+75fa 20407628 call bn_p256mod 
+75fb da2007e0 arg mem_p_256 ,rega 
+75fc 19622400 copy timeup ,regb 
+75fd 19620a00 copy timeup ,contw 
+75fe 202076b4 branch bn_submod_256 
+
+bn_mulmod_256:
+75ff 18a21600 copy contw ,timeup 
+7600 18007000 force 0 ,regext_index 
+7601 d8a00648 arg mem_tmp1_256 ,contw 
+7602 20407c66 call clear_mem_512 
+7603 d8a0099e arg mem_regext ,contw 
+7604 20407c66 call clear_mem_512 
+7605 1a220c00 copy rega ,contr 
+7606 70099e00 jam 0 ,mem_regext 
+7607 58000000 setarg 0 
+7608 20407691 call bn_load_mem 
+7609 1a420c00 copy regb ,contr 
+760a 20407695 call bn_load_256 
+760b 18000e00 force 0 ,queue 
+760c d8a00648 arg mem_tmp1_256 ,contw 
+
+bn_mulmod_256_1:
+760d d840099e arg mem_regext ,temp 
+760e 18e22400 copy queue ,regb 
+760f 1a4bfe00 lshift2 regb ,pdata 
+7610 9840a400 iadd temp ,regb 
+7611 18000400 force 0 ,temp 
+7612 18002600 force 0 ,regc 
+
+bn_mulmod_256_0:
+7613 efe20005 ifetch 4 ,contw 
+7614 98002200 iforce rega 
+7615 efe20012 ifetch 4 ,regb 
+7616 1a627000 copy regc ,regext_index 
+7617 9deffe00 imul32 regext ,pdata 
+7618 9a20fe00 iadd rega ,pdata 
+7619 9840fe00 iadd temp ,pdata 
+761a e7e20005 istore 4 ,contw 
+761b 1fef0400 rshift32 pdata ,temp 
+761c 1a60a601 increase 1 ,regc 
+761d 2a61fe08 compare 8 ,regc ,0xff 
+761e 2420f613 nbranch bn_mulmod_256_0 ,true 
+761f 18427e00 deposit temp 
+7620 e7e20005 istore 4 ,contw 
+7621 18a08be0 increase -32 ,contw 
+7622 18e08e01 increase 1 ,queue 
+7623 28e1fe08 compare 8 ,queue ,0xff 
+7624 2420f60d nbranch bn_mulmod_256_1 ,true 
+7625 da200648 arg mem_tmp1_256 ,rega 
+7626 19620a00 copy timeup ,contw 
+7627 20207628 branch bn_p256mod 
+
+bn_p256mod:
+7628 47404030 bpatchx patch30_0 ,mem_patch30 
+7629 18a21600 copy contw ,timeup 
+762a 1a226000 copy rega ,alarm 
+762b da400688 arg mem_tmp2_256 ,regb 
+762c 1a420a00 copy regb ,contw 
+762d 20407c61 call memset0_4 
+762e e7e40005 istore 8 ,contw 
+762f 1a208c2c add rega ,44 ,contr 
+7630 20407c46 call memcpy8 
+7631 20407c40 call memcpy12 
+7632 1a422200 copy regb ,rega 
+7633 2040769e call bn_lshiftmod_256 
+7634 da400688 arg mem_tmp2_256 ,regb 
+7635 1e022200 copy alarm ,rega 
+7636 19620a00 copy timeup ,contw 
+7637 2040769b call bn_addmod_256 
+7638 da400688 arg mem_tmp2_256 ,regb 
+7639 1a420a00 copy regb ,contw 
+763a 20407c61 call memset0_4 
+763b e7e40005 istore 8 ,contw 
+763c 1e008c30 add alarm ,48 ,contr 
+763d 20407c4c call memcpy16 
+763e 20407c61 call memset0_4 
+763f 1a422200 copy regb ,rega 
+7640 2040769e call bn_lshiftmod_256 
+7641 da400688 arg mem_tmp2_256 ,regb 
+7642 19622200 copy timeup ,rega 
+7643 1a220a00 copy rega ,contw 
+7644 2040769b call bn_addmod_256 
+7645 da400688 arg mem_tmp2_256 ,regb 
+7646 1a420a00 copy regb ,contw 
+7647 1e008c20 add alarm ,32 ,contr 
+7648 20407c40 call memcpy12 
+7649 20407c61 call memset0_4 
+764a e7e40005 istore 8 ,contw 
+764b 1e008c38 add alarm ,56 ,contr 
+764c 20407c46 call memcpy8 
+764d 19622200 copy timeup ,rega 
+764e 1a220a00 copy rega ,contw 
+764f 2040769b call bn_addmod_256 
+7650 da400688 arg mem_tmp2_256 ,regb 
+7651 1a420a00 copy regb ,contw 
+7652 1e008c24 add alarm ,36 ,contr 
+7653 20407c40 call memcpy12 
+7654 1e008c34 add alarm ,52 ,contr 
+7655 20407c40 call memcpy12 
+7656 1e008c34 add alarm ,52 ,contr 
+7657 20407c41 call memcpy4 
+7658 1e008c20 add alarm ,32 ,contr 
+7659 20407c41 call memcpy4 
+765a 19622200 copy timeup ,rega 
+765b 1a220a00 copy rega ,contw 
+765c 2040769b call bn_addmod_256 
+765d da400688 arg mem_tmp2_256 ,regb 
+765e 1a420a00 copy regb ,contw 
+765f 1e008c2c add alarm ,44 ,contr 
+7660 20407c40 call memcpy12 
+7661 20407c61 call memset0_4 
+7662 e7e40005 istore 8 ,contw 
+7663 1e008c20 add alarm ,32 ,contr 
+7664 20407c41 call memcpy4 
+7665 1e008c28 add alarm ,40 ,contr 
+7666 20407c41 call memcpy4 
+7667 19622200 copy timeup ,rega 
+7668 1a220a00 copy rega ,contw 
+7669 204076b4 call bn_submod_256 
+766a da400688 arg mem_tmp2_256 ,regb 
+766b 1a420a00 copy regb ,contw 
+766c 1e008c30 add alarm ,48 ,contr 
+766d 20407c46 call memcpy8 
+766e 20407c46 call memcpy8 
+766f 18007e00 force 0 ,pdata 
+7670 e7e40005 istore 8 ,contw 
+7671 1e008c24 add alarm ,36 ,contr 
+7672 20407c41 call memcpy4 
+7673 1e008c2c add alarm ,44 ,contr 
+7674 20407c41 call memcpy4 
+7675 19622200 copy timeup ,rega 
+7676 1a220a00 copy rega ,contw 
+7677 204076b4 call bn_submod_256 
+7678 da400688 arg mem_tmp2_256 ,regb 
+7679 1a420a00 copy regb ,contw 
+767a 1e008c34 add alarm ,52 ,contr 
+767b 20407c40 call memcpy12 
+767c 1e008c20 add alarm ,32 ,contr 
+767d 20407c40 call memcpy12 
+767e 20407c61 call memset0_4 
+767f 1e008c30 add alarm ,48 ,contr 
+7680 20407c41 call memcpy4 
+7681 19622200 copy timeup ,rega 
+7682 1a220a00 copy rega ,contw 
+7683 204076b4 call bn_submod_256 
+7684 da400688 arg mem_tmp2_256 ,regb 
+7685 1a420a00 copy regb ,contw 
+7686 1e008c38 add alarm ,56 ,contr 
+7687 20407c46 call memcpy8 
+7688 20407c61 call memset0_4 
+7689 1e008c24 add alarm ,36 ,contr 
+768a 20407c40 call memcpy12 
+768b 20407c61 call memset0_4 
+768c 1e008c34 add alarm ,52 ,contr 
+768d 20407c41 call memcpy4 
+768e 19622200 copy timeup ,rega 
+768f 1a220a00 copy rega ,contw 
+7690 202076b4 branch bn_submod_256 
+
+bn_load_mem:
+7691 18007220 force 32 ,loopcnt 
+7692 d8a0099e arg mem_regext ,contw 
+7693 98a08a00 iadd contw ,contw 
+7694 20207ca1 branch memcpy 
+
+bn_load_256:
+7695 18007208 force 8 ,loopcnt 
+7696 20207047 branch bn_load_0 
+
+bn_sqrmod_256:
+7697 1a222400 copy rega ,regb 
+7698 202075ff branch bn_mulmod_256 
+
+bn_add_256:
+7699 18007208 force 8 ,loopcnt 
+769a 20206fd8 branch bn_add + 1 
+
+bn_addmod_256:
+769b 20407699 call bn_add_256 
+769c 18a22200 copy contw ,rega 
+769d 2020769f branch bn_lshiftmod_ismod_256 
+
+bn_lshiftmod_256:
+769e 204076cc call bn_lshift_256 
+
+bn_lshiftmod_ismod_256:
+769f 2a6ffe00 isolate1 0 ,regc 
+76a0 2020f6a8 branch bn_lshiftmod_p_256 ,true 
+76a1 da4007e0 arg mem_p_256 ,regb 
+76a2 1a222600 copy rega ,regc 
+76a3 1a20a3e0 increase -32 ,rega 
+76a4 204076cf call bn_bigeq_256 
+76a5 24610000 nrtn positive 
+76a6 1a622200 copy regc ,rega 
+76a7 202076b0 branch sub_p2_256 
+
+bn_lshiftmod_p_256:
+76a8 204076b0 call sub_p2_256 
+76a9 1a222600 copy rega ,regc 
+76aa 1a20a3e0 increase -32 ,rega 
+76ab da4007e0 arg mem_p_256 ,regb 
+76ac 204076cf call bn_bigeq_256 
+76ad 24610000 nrtn positive 
+76ae 1a622200 copy regc ,rega 
+76af 202076b0 branch sub_p2_256 
+
+sub_p2_256:
+76b0 1a20a3e0 increase -32 ,rega 
+76b1 da4007e0 arg mem_p_256 ,regb 
+76b2 1a220a00 copy rega ,contw 
+76b3 202076c7 branch bn_sub_256 
+
+bn_submod_256:
+76b4 204076c7 call bn_sub_256 
+76b5 2020f6be branch bn_submod_256_np ,true 
+76b6 18a0a3e0 add contw ,-32 ,rega 
+76b7 da4007e0 arg mem_p_256 ,regb 
+76b8 204076cf call bn_bigeq_256 
+76b9 24610000 nrtn positive 
+76ba da4007e0 arg mem_p_256 ,regb 
+76bb 18a0a3e0 add contw ,-32 ,rega 
+76bc 1a220a00 copy rega ,contw 
+76bd 202076c7 branch bn_sub_256 
+
+bn_submod_256_np:
+76be 18a0a3e0 add contw ,-32 ,rega 
+76bf da4007e0 arg mem_p_256 ,regb 
+76c0 1a220a00 copy rega ,contw 
+76c1 20407699 call bn_add_256 
+76c2 20608000 rtn true 
+76c3 18a0a3e0 add contw ,-32 ,rega 
+76c4 da4007e0 arg mem_p_256 ,regb 
+76c5 1a220a00 copy rega ,contw 
+76c6 20207699 branch bn_add_256 
+
+bn_sub_256:
+76c7 18007208 force 8 ,loopcnt 
+76c8 20206fe6 branch bn_sub + 1 
+
+bn_rshift_256:
+76c9 18007208 force 8 ,loopcnt 
+76ca 1a20a21c increase 28 ,rega 
+76cb 20206ff5 branch bn_rshift 
+
+bn_lshift_256:
+76cc 18007208 force 8 ,loopcnt 
+76cd 18002600 force 0 ,regc 
+76ce 20207003 branch bn_lshift_0 
+
+bn_bigeq_256:
+76cf 18007208 force 8 ,loopcnt 
+76d0 1a20a21c increase 28 ,rega 
+76d1 1a40a41c increase 28 ,regb 
+76d2 20206fcd branch bn_bigeq_0 
+
+bn_eq_zero_256:
+76d3 efe40006 ifetch 8 ,contr 
+76d4 247a0000 nrtn blank 
+76d5 20206fbb branch bn_eq_zero 
+
+bn_rshifteven_256:
+76d6 1a226000 copy rega ,alarm 
+
+bn_rshifteven_256_1:
+76d7 1e022200 copy alarm ,rega 
+76d8 efe08011 ifetch 1 ,rega 
+76d9 2feffe00 isolate1 0 ,pdata 
+76da 20608000 rtn true 
+76db 204076c9 call bn_rshift_256 
+76dc efe08012 ifetch 1 ,regb 
+76dd 2fec0000 isolate0 0 ,pdata 
+76de 2020f6e6 branch bn_rshifteven_256_0 ,true 
+76df da2007e0 arg mem_p_256 ,rega 
+76e0 1a420a00 copy regb ,contw 
+76e1 20407699 call bn_add_256 
+76e2 efe08012 ifetch 1 ,regb 
+76e3 9a60fe00 iadd regc ,pdata 
+76e4 e7e08012 istore 1 ,regb 
+76e5 1a40a5e0 increase -32 ,regb 
+
+bn_rshifteven_256_0:
+76e6 1a40a220 add regb ,32 ,rega 
+76e7 18007209 force 9 ,loopcnt 
+76e8 20406ff5 call bn_rshift 
+76e9 202076d7 branch bn_rshifteven_256_1 
+
+ui_init:
+76ea 20401578 call lpm_disable_exen_output 
+76eb 20758000 rtn wake 
+76ec 204076f1 call ui_button_init 
+76ed 20407797 call ui_timer_init 
+76ee 20207726 branch ui_led_init_global 
+
+ui_dispatch:
+76ef 20407747 call ui_led_dispatch 
+76f0 20207786 branch ui_timer_check 
+
+ui_button_init:
+76f1 6fe0c797 fetch 1 ,mem_ui_button_gpio 
+76f2 c17f8000 rtneq ui_button_gpio_disable 
+76f3 98000400 iforce temp 
+76f4 20405f8d call gpio_config_output 
+76f5 6848c797 fetcht 1 ,mem_ui_button_gpio 
+76f6 20405f89 call gpio_out_inactive 
+76f7 20000064 nop 100 
+76f8 6848c797 fetcht 1 ,mem_ui_button_gpio 
+76f9 20405f74 call gpio_config_input 
+76fa 202076fb branch ui_button_polling 
+
+ui_button_polling:
+76fb 4740c030 bpatchx patch30_1 ,mem_patch30 
+76fc 6fe0c797 fetch 1 ,mem_ui_button_gpio 
+76fd c17f8000 rtneq ui_button_gpio_disable 
+76fe 1fe20400 copy pdata ,temp 
+76ff 20405f7d call gpio_get_bit 
+7700 2420f70d nbranch ui_button_up ,true 
+
+ui_button_down:
+7701 20407717 call ui_button_check_long_press 
+7702 6fe14793 fetch 2 ,mem_ui_state_map 
+7703 79207e0c set1 ui_state_btn_down ,pdata 
+7704 67e14793 store 2 ,mem_ui_state_map 
+7705 6fe0c78a fetch 1 ,mem_ui_button_last_state 
+7706 c1000000 rtneq ui_button_state_down 
+7707 70478a00 jam ui_button_state_down ,mem_ui_button_last_state 
+7708 6fe0c796 fetch 1 ,mem_ui_button_timeout 
+7709 67e0c789 store 1 ,mem_ui_button_timer 
+770a 2040771e call lpm_button_get_wake_lock 
+770b 70095b2c jam bt_evt_button_down ,mem_fifo_temp 
+770c 202077a7 branch ui_ipc_send_event 
+
+ui_button_up:
+770d 6fe14793 fetch 2 ,mem_ui_state_map 
+770e 793ffe0c set0 ui_state_btn_down ,pdata 
+770f 67e14793 store 2 ,mem_ui_state_map 
+7710 6fe0c78a fetch 1 ,mem_ui_button_last_state 
+7711 c1008000 rtneq ui_button_state_up 
+7712 70478a01 jam ui_button_state_up ,mem_ui_button_last_state 
+7713 70478900 jam 0 ,mem_ui_button_timer 
+7714 20407720 call lpm_button_clean_wake_lock 
+7715 70095b2d jam bt_evt_button_up ,mem_fifo_temp 
+7716 202077a7 branch ui_ipc_send_event 
+
+ui_button_check_long_press:
+7717 6fe0c789 fetch 1 ,mem_ui_button_timer 
+7718 207a0000 rtn blank 
+7719 1fe0ffff increase -1 ,pdata 
+771a 67e0c789 store 1 ,mem_ui_button_timer 
+771b 247a0000 nrtn blank 
+771c 70095b10 jam bt_evt_button_long_pressed ,mem_fifo_temp 
+771d 202077a7 branch ui_ipc_send_event 
+
+lpm_button_get_wake_lock:
+771e d8e00007 arg wake_lock_button ,queue 
+771f 20201547 branch lpm_get_wake_lock 
+
+lpm_button_clean_wake_lock:
+7720 d8e00007 arg wake_lock_button ,queue 
+7721 2020154b branch lpm_put_wake_lock 
+
+calc_curr_struct_prt:
+7722 6fe14492 fetch 2 ,mem_ui_led_struct_ptr 
+7723 1a2fa40b mul32 rega ,led_offset_length ,regb 
+7724 9a40a400 iadd regb ,regb 
+7725 20600000 rtn 
+
+ui_led_init_global:
+7726 6fe0c491 fetch 1 ,mem_ui_led_struct_num 
+7727 207a0000 rtn blank 
+7728 1fe27200 copy pdata ,loopcnt 
+7729 6fe14492 fetch 2 ,mem_ui_led_struct_ptr 
+772a 1fe22400 copy pdata ,regb 
+
+ui_led_init_loop:
+772b 1a40a602 add regb ,led_offset_led_gpio ,regc 
+772c e8408013 ifetcht 1 ,regc 
+772d 20405f8d call gpio_config_output 
+772e 20407750 call ui_led_off_static 
+772f 1a40a40b increase led_offset_length ,regb 
+7730 c200772b loop ui_led_init_loop 
+7731 20600000 rtn 
+
+ui_led_on_global:
+7732 20407722 call calc_curr_struct_prt 
+7733 58000002 setarg ui_led_state_lighting 
+7734 e7e08012 istore 1 ,regb 
+7735 20407780 call ui_led_stop_timer 
+7736 20207755 branch ui_led_on_static 
+
+ui_led_blink_stop_global:
+
+ui_led_off_global:
+7737 20407722 call calc_curr_struct_prt 
+7738 58000003 setarg ui_led_state_darking 
+7739 e7e08012 istore 1 ,regb 
+773a 20407780 call ui_led_stop_timer 
+773b 20207750 branch ui_led_off_static 
+
+ui_led_blink_start_global:
+773c 20407722 call calc_curr_struct_prt 
+773d 58000001 setarg ui_led_state_blink_start 
+773e e7e08012 istore 1 ,regb 
+773f 580000ff setarg led_infinite_flash_num 
+7740 e7e08005 istore 1 ,contw 
+7741 20207750 branch ui_led_off_static 
+
+ui_led_set_style_global:
+7742 20407722 call calc_curr_struct_prt 
+7743 df20000b arg led_offset_length ,loopcnt 
+7744 1a620c00 copy regc ,contr 
+7745 1a420a00 copy regb ,contw 
+7746 20207c94 branch memcpy_fast 
+
+ui_led_dispatch:
+7747 6fe0c491 fetch 1 ,mem_ui_led_struct_num 
+7748 207a0000 rtn blank 
+7749 da200000 arg 0 ,rega 
+
+ui_led_blink_polling:
+774a 2040775a call ui_led_change_style_by_type 
+774b 1a20a201 increase 1 ,rega 
+774c 6fe0c491 fetch 1 ,mem_ui_led_struct_num 
+774d 9a267c00 isub rega ,null 
+774e 20628000 rtn zero 
+774f 2020774a branch ui_led_blink_polling 
+
+ui_led_off_static:
+7750 1a40a602 add regb ,led_offset_led_gpio ,regc 
+7751 e8408013 ifetcht 1 ,regc 
+7752 6fe0c09a fetch 1 ,mem_device_option 
+7753 c004485d beq dvc_op_mouse ,mouse_ui_led_off_static 
+7754 20205f89 branch gpio_out_inactive 
+
+ui_led_on_static:
+7755 1a40a602 add regb ,led_offset_led_gpio ,regc 
+7756 e8408013 ifetcht 1 ,regc 
+7757 6fe0c09a fetch 1 ,mem_device_option 
+7758 c0044869 beq dvc_op_mouse ,mouse_ui_led_on_static 
+7759 20205f8d branch gpio_out_active 
+
+ui_led_change_style_by_type:
+775a 1a208e0b add rega ,ui_led_blink ,queue 
+775b 20407cb6 call timer_check 
+775c 247a0000 nrtn blank 
+775d 20407722 call calc_curr_struct_prt 
+775e efe08012 ifetch 1 ,regb 
+775f c0017755 beq ui_led_state_lighting ,ui_led_on_static 
+7760 c001f750 beq ui_led_state_darking ,ui_led_off_static 
+7761 c0007750 beq ui_led_state_blink_stop ,ui_led_off_static 
+7762 c002f76e beq ui_led_state_blink_darking ,ui_led_blink_state_darking 
+
+ui_led_blink_state_lighting:
+7763 20407755 call ui_led_on_static 
+7764 1a40a607 add regb ,led_offset_cb_ledon ,regc 
+7765 20407c06 call push_stack 
+7766 efe10013 ifetch 2 ,regc 
+7767 20407d47 call callback_func 
+7768 20407c12 call pop_stack 
+7769 58000005 setarg ui_led_state_blink_darking 
+776a e7e08012 istore 1 ,regb 
+776b 1a40a603 add regb ,led_offset_on_time ,regc 
+776c efe10013 ifetch 2 ,regc 
+776d 2020777e branch ui_led_blink_timer_start 
+
+ui_led_blink_state_darking:
+776e 20407750 call ui_led_off_static 
+776f 1a40a609 add regb ,led_offset_cb_ledoff ,regc 
+7770 20407c06 call push_stack 
+7771 efe10013 ifetch 2 ,regc 
+7772 20407d47 call callback_func 
+7773 20407c12 call pop_stack 
+7774 1a40a601 add regb ,led_offset_blink_count ,regc 
+7775 efe08013 ifetch 1 ,regc 
+7776 c07ff77a beq led_infinite_flash_num ,ui_led_blink_infinite 
+7777 1fe0ffff increase -1 ,pdata 
+7778 e7e08013 istore 1 ,regc 
+7779 203a7737 branch ui_led_blink_stop_global ,blank 
+
+ui_led_blink_infinite:
+777a 58000004 setarg ui_led_state_blink_lighting 
+777b e7e08012 istore 1 ,regb 
+777c 1a40a605 add regb ,led_offset_off_time ,regc 
+777d efe10013 ifetch 2 ,regc 
+
+ui_led_blink_timer_start:
+777e 1a208e0b add rega ,ui_led_blink ,queue 
+777f 20207ca8 branch timer_init 
+
+ui_led_stop_timer:
+7780 58000000 setarg 0 
+7781 2020777e branch ui_led_blink_timer_start 
+
+ui_timer_timeout:
+7782 58001000 setarg 0x1000 
+7783 1ff07e00 lshift16 pdata ,pdata 
+7784 9a40a400 iadd regb ,regb 
+7785 20600000 rtn 
+
+ui_timer_check:
+7786 47414030 bpatchx patch30_2 ,mem_patch30 
+7787 da200000 arg 0 ,rega 
+7788 684a478b fetcht 4 ,mem_ui_timer_last_btclk 
+7789 1c422400 copy clkn_bt ,regb 
+778a 1a427e00 copy regb ,pdata 
+778b 98467c00 isub temp ,null 
+778c 24417782 ncall ui_timer_timeout ,positive 
+
+ui_timer_check_loop:
+778d 1a427e00 copy regb ,pdata 
+778e 184084a0 increase 160 ,temp 
+778f 184084a0 increase 160 ,temp 
+7790 98467c00 isub temp ,null 
+7791 2421779a nbranch ui_timer_check_end ,positive 
+7792 1a20a201 increase 1 ,rega 
+7793 1a217e0f and rega ,0x0f ,pdata 
+7794 243a778d nbranch ui_timer_check_loop ,blank 
+7795 da200000 arg 0 ,rega 
+7796 204077a0 call ui_timer_check_send_evt 
+
+ui_timer_init:
+7797 1c427e00 copy clkn_bt ,pdata 
+7798 67e2478b store 4 ,mem_ui_timer_last_btclk 
+7799 20600000 rtn 
+
+ui_timer_check_end:
+779a 1a227e00 copy rega ,pdata 
+779b 207a0000 rtn blank 
+779c 18408560 increase -160 ,temp 
+779d 18408560 increase -160 ,temp 
+779e 793f841c set0 28 ,temp 
+779f 604a478b storet 4 ,mem_ui_timer_last_btclk 
+
+ui_timer_check_send_evt:
+77a0 202031c1 branch app_evt_timer 
+
+ui_ipc_get_lock:
+77a1 70477701 jam 1 ,mem_ipc_lock_bt 
+
+ui_ipc_get_lock_wait:
+77a2 6fe0c778 fetch 1 ,mem_ipc_lock_c51 
+77a3 243a77a2 nbranch ui_ipc_get_lock_wait ,blank 
+77a4 20600000 rtn 
+
+ui_ipc_put_lock:
+77a5 70477700 jam 0 ,mem_ipc_lock_bt 
+77a6 20600000 rtn 
+
+ui_ipc_send_event:
+77a7 4741c030 bpatchx patch30_3 ,mem_patch30 
+77a8 204077a1 call ui_ipc_get_lock 
+77a9 1a227e00 copy rega ,pdata 
+77aa 67e20953 store 4 ,mem_ipc_rega_temp 
+77ab da204779 arg mem_ipc_fifo_bt2c51 ,rega 
+77ac 20407d63 call fifo_in 
+77ad 6fe20953 fetch 4 ,mem_ipc_rega_temp 
+77ae 1fe22200 copy pdata ,rega 
+77af 202077a5 branch ui_ipc_put_lock 
+
+ui_ipc_send_cmd:
+77b0 47424030 bpatchx patch30_4 ,mem_patch30 
+77b1 204077a1 call ui_ipc_get_lock 
+77b2 1a227e00 copy rega ,pdata 
+77b3 67e20953 store 4 ,mem_ipc_rega_temp 
+77b4 da204781 arg mem_ipc_fifo_c512bt ,rega 
+77b5 20407d63 call fifo_in 
+77b6 6fe20953 fetch 4 ,mem_ipc_rega_temp 
+77b7 1fe22200 copy pdata ,rega 
+77b8 202077a5 branch ui_ipc_put_lock 
+
+ui_ipc_clean_all_fifo:
+77b9 58000000 setarg 0 
+77ba 67e44781 store util_fifo_len ,mem_ipc_fifo_c512bt 
+77bb 67e44779 store util_fifo_len ,mem_ipc_fifo_bt2c51 
+77bc 20600000 rtn 
+
+check_51cmd:
+77bd 4742c030 bpatchx patch30_5 ,mem_patch30 
+77be 6fe0c1de fetch 1 ,mem_hci_cmd 
+77bf 247a0000 nrtn blank 
+77c0 da204781 arg mem_ipc_fifo_c512bt ,rega 
+77c1 20407d7b call fifo_is_empty 
+77c2 207a0000 rtn blank 
+77c3 70095200 jam ipc_continue_process ,mem_ipc_skip_continue_proc 
+77c4 204077c8 call check_51cmd_once 
+77c5 6fe08952 fetch 1 ,mem_ipc_skip_continue_proc 
+77c6 203a77bd branch check_51cmd ,blank 
+77c7 20600000 rtn 
+
+check_51cmd_once:
+77c8 204077a1 call ui_ipc_get_lock 
+77c9 da204781 arg mem_ipc_fifo_c512bt ,rega 
+77ca 20407d6f call fifo_out 
+77cb 1fe20400 copy pdata ,temp 
+77cc 204077a5 call ui_ipc_put_lock 
+77cd 47434030 bpatchx patch30_6 ,mem_patch30 
+77ce 18427e00 copy temp ,pdata 
+77cf 207a0000 rtn blank 
+77d0 c000f7fa beq bt_cmd_start_discovery ,check_51cmd_start_discovery 
+77d1 c00177ff beq bt_cmd_stop_discovery ,check_51cmd_stop_discovery 
+77d2 c001f805 beq bt_cmd_reconnect ,check_51cmd_reconnect 
+77d3 c006f824 beq bt_cmd_start_adv ,check_51cmd_adv 
+77d4 c007782a beq bt_cmd_stop_adv ,check_51cmd_stop_adv 
+77d5 c007f82f beq bt_cmd_start_direct_adv ,check_51cmd_direct_adv 
+77d6 c0087835 beq bt_cmd_stop_direct_adv ,check_51cmd_stop_direct_adv 
+77d7 c009f83f beq bt_cmd_led_off ,check_51cmd_led_off 
+77d8 c00a7841 beq bt_cmd_led_on ,check_51cmd_led_on 
+77d9 c00af843 beq bt_cmd_led_blink ,check_51cmd_led_start_blink 
+77da c00b784d beq bt_cmd_le_start_conn ,check_51cmd_le_start_con 
+77db c00bf850 beq bt_cmd_le_start_scan ,check_51cmd_start_scan 
+77dc c00c7852 beq bt_cmd_le_stop_scan ,check_51cmd_stop_scan 
+77dd c00cf855 beq bt_cmd_enter_hibernate ,check_51cmd_hibernate 
+77de c00f7867 beq bt_cmd_bb_reconn_cancel ,check_51cmd_bb_reconn_cancel 
+77df 67e0895b store 1 ,mem_fifo_temp 
+77e0 204058fe call lmo_fifo_check 
+77e1 243a77f8 nbranch check_51cmd_restore ,blank 
+
+check_51cmd_once_continue:
+77e2 6fe0895b fetch 1 ,mem_fifo_temp 
+77e3 c584f7f3 bmark0 mark_context ,check_51cmd_check_idle 
+77e4 4743c030 bpatchx patch30_7 ,mem_patch30 
+77e5 6fe0895b fetch 1 ,mem_fifo_temp 
+77e6 c0027807 beq bt_cmd_disconnect ,check_51cmd_disconnect 
+77e7 c002f80a beq bt_cmd_enter_sniff ,check_51cmd_enter_sniff 
+77e8 c0037815 beq bt_cmd_exit_sniff ,check_51cmd_exit_sniff 
+77e9 c0057817 beq bt_cmd_set_pin_code ,check_51cmd_pincode 
+77ea c008f83a beq bt_cmd_le_disconnect ,check_51cmd_le_disconnect 
+77eb c00df85d beq bt_cmd_le_smp_security_request ,check_51cmd_le_smp_sec_req 
+77ec c009783e beq bt_cmd_le_update_conn ,check_51cmd_ble_update_connect_param 
+77ed c00ef85e beq bt_cmd_role_switch ,check_51cmd_role_switch 
+77ee c00fdf49 beq bt_cmd_store_reconn_info_le ,eeprom_store_le_reconn_info 
+77ef c0105f4b beq bt_cmd_store_reconn_info_bt ,eeprom_store_bd_reconn_info 
+77f0 c010f869 beq bt_cmd_dhkey_not_accept ,check_51cmd_dhkey_not_accept 
+77f1 c012de7b beq bt_cmd_store_reconn_info ,check_51cmd_store_reconn_info 
+77f2 20600000 rtn 
+
+check_51cmd_check_idle:
+77f3 67e0895b store 1 ,mem_fifo_temp 
+77f4 20400a5f call context_check_idle 
+77f5 2022f7f8 branch check_51cmd_restore ,zero 
+77f6 20400a67 call context_search_plap 
+77f7 24628000 nrtn zero 
+
+check_51cmd_restore:
+77f8 70095201 jam ipc_skip_continue_process ,mem_ipc_skip_continue_proc 
+77f9 202077b0 branch ui_ipc_send_cmd 
+
+check_51cmd_start_discovery:
+77fa 6fe14793 fetch 2 ,mem_ui_state_map 
+77fb 79207e06 set1 ui_state_bt_discovery ,pdata 
+77fc 67e14793 store 2 ,mem_ui_state_map 
+77fd 70409b03 jam 3 ,mem_scan_mode 
+77fe 20600000 rtn 
+
+check_51cmd_stop_discovery:
+77ff 70479100 jam 0 ,mem_hid_handshake_timer_count 
+7800 70409b00 jam 0 ,mem_scan_mode 
+7801 6fe14793 fetch 2 ,mem_ui_state_map 
+7802 793ffe06 set0 ui_state_bt_discovery ,pdata 
+7803 67e14793 store 2 ,mem_ui_state_map 
+7804 20600000 rtn 
+
+check_51cmd_reconnect:
+7805 7041de05 jam hci_cmd_create_conn ,mem_hci_cmd 
+7806 20600000 rtn 
+
+check_51cmd_disconnect:
+7807 70007c07 jam lmp_detach ,mem_lmo_opcode2 
+7808 70039e13 jam other_end_terminated ,mem_disconn_reason_send 
+7809 20600000 rtn 
+
+check_51cmd_enter_sniff:
+780a 70007c17 jam lmp_sniff_req ,mem_lmo_opcode2 
+780b d8a003ac arg mem_sniff_payload ,contw 
+780c 58000000 setarg 0 
+780d 2d0ffe1b isolate1 27 ,clke_bt 
+780e 7920fe01 setflag true ,1 ,pdata 
+780f e7e08005 istore 1 ,contw 
+7810 58000000 setarg 0 
+7811 e7e10005 istore 2 ,contw 
+7812 6fe34458 fetch 6 ,mem_sniff_param_interval 
+7813 e7e30005 istore 6 ,contw 
+7814 20600000 rtn 
+
+check_51cmd_exit_sniff:
+7815 70007c18 jam lmp_unsniff_req ,mem_lmo_opcode2 
+7816 20600000 rtn 
+
+check_51cmd_pincode:
+7817 7003a802 jam pincode_state_pincode_ready ,mem_pincode_state 
+7818 6fe0804b fetch 1 ,mem_op 
+7819 c281781d bbit1 op_inrand_req ,check_51cmd_pincode_pair_passive 
+781a 20405931 call tid_initiate 
+781b 70007c08 jam lmp_in_rand ,mem_lmo_opcode2 
+781c 20600000 rtn 
+
+check_51cmd_pincode_pair_passive:
+781d 793ffe02 set0 op_inrand_req ,pdata 
+781e 67e0804b store 1 ,mem_op 
+781f 2040560f call lmp_accept_inrand 
+7820 58000000 setarg 0 
+7821 7934fe01 setflag master ,smap_lmptid ,pdata 
+7822 67e0807f store 1 ,mem_lmo_tid2 
+7823 20600000 rtn 
+
+check_51cmd_adv:
+7824 70442a01 jam on ,mem_le_adv_enable 
+7825 70442d00 jam adv_ind ,mem_le_adv_type 
+7826 6fe14793 fetch 2 ,mem_ui_state_map 
+7827 79207e0b set1 ui_state_ble_adv ,pdata 
+7828 67e14793 store 2 ,mem_ui_state_map 
+7829 20600000 rtn 
+
+check_51cmd_stop_adv:
+782a 6fe14793 fetch 2 ,mem_ui_state_map 
+782b 793ffe0b set0 ui_state_ble_adv ,pdata 
+782c 67e14793 store 2 ,mem_ui_state_map 
+782d 70442a00 jam off ,mem_le_adv_enable 
+782e 20600000 rtn 
+
+check_51cmd_direct_adv:
+782f 70442a01 jam on ,mem_le_adv_enable 
+7830 70442d01 jam adv_direct_ind ,mem_le_adv_type 
+7831 6fe14793 fetch 2 ,mem_ui_state_map 
+7832 79207e0b set1 ui_state_ble_adv ,pdata 
+7833 67e14793 store 2 ,mem_ui_state_map 
+7834 20600000 rtn 
+
+check_51cmd_stop_direct_adv:
+7835 6fe14793 fetch 2 ,mem_ui_state_map 
+7836 793ffe0b set0 ui_state_ble_adv ,pdata 
+7837 67e14793 store 2 ,mem_ui_state_map 
+7838 70442a00 jam off ,mem_le_adv_enable 
+7839 20600000 rtn 
+
+check_51cmd_le_disconnect:
+783a 58000014 setarg 20 
+783b 67e102b5 store 2 ,mem_le_superto 
+783c 67e14397 store 2 ,mem_le_init_superto 
+783d 20202115 branch le_send_terminate_ind_user_terminated 
+
+check_51cmd_ble_update_connect_param:
+783e 20201ee5 branch le_l2cap_tx_update_req 
+
+check_51cmd_led_off:
+783f da200000 arg 0 ,rega 
+7840 20207737 branch ui_led_off_global 
+
+check_51cmd_led_on:
+7841 da200000 arg 0 ,rega 
+7842 20207732 branch ui_led_on_global 
+
+check_51cmd_led_start_blink:
+7843 da200000 arg 0 ,rega 
+7844 20407722 call calc_curr_struct_prt 
+7845 efe08012 ifetch 1 ,regb 
+7846 c000f84a beq ui_led_state_blink_start ,check_51cmd_led_start_blink_in_blink 
+7847 c002784a beq ui_led_state_blink_lighting ,check_51cmd_led_start_blink_in_blink 
+7848 c002f84a beq ui_led_state_blink_darking ,check_51cmd_led_start_blink_in_blink 
+7849 2020773c branch ui_led_blink_start_global 
+
+check_51cmd_led_start_blink_in_blink:
+784a efe08006 ifetch 1 ,contr 
+784b c17f8000 rtneq led_infinite_flash_num 
+784c 2020773c branch ui_led_blink_start_global 
+
+check_51cmd_le_start_con:
+784d 7043e501 jam on ,mem_le_scan_enable 
+784e 7041de1b jam hci_cmd_le_create_conn ,mem_hci_cmd 
+784f 20600000 rtn 
+
+check_51cmd_start_scan:
+7850 7043e501 jam on ,mem_le_scan_enable 
+7851 20600000 rtn 
+
+check_51cmd_stop_scan:
+7852 7043e500 jam off ,mem_le_scan_enable 
+7853 7041de00 jam 0 ,mem_hci_cmd 
+7854 20600000 rtn 
+
+check_51cmd_hibernate:
+7855 6fe14460 fetch 2 ,mem_cb_before_hibernate 
+7856 20407d47 call callback_func 
+7857 6fe0c797 fetch 1 ,mem_ui_button_gpio 
+7858 c07ff85b beq ui_button_gpio_disable ,check_51cmd_hibernate_btn_disabled 
+7859 1fe20400 copy pdata ,temp 
+785a 20405f74 call gpio_config_input 
+
+check_51cmd_hibernate_btn_disabled:
+785b 204077b9 call ui_ipc_clean_all_fifo 
+785c 2020143a branch lpm_hibernate 
+
+check_51cmd_le_smp_sec_req:
+785d 20201f27 branch le_send_smp_security_request 
+
+check_51cmd_role_switch:
+785e 70007c34 jam lmp_slot_offset ,mem_lmo_opcode2 
+785f 79200003 set1 mark_switch_initiated ,mark 
+7860 24748000 nrtn master 
+7861 70464900 jam switch_flag_init ,mem_switch_flag 
+7862 70007c13 jam lmp_switch_req ,mem_lmo_opcode2 
+7863 6fe080bc fetch 1 ,mem_connection_options 
+7864 793ffe02 set0 connection_switch ,pdata 
+7865 67e080bc store 1 ,mem_connection_options 
+7866 20600000 rtn 
+
+check_51cmd_bb_reconn_cancel:
+7867 18000e03 force page_length_timer ,queue 
+7868 20207ca7 branch timer_stop 
+
+check_51cmd_dhkey_not_accept:
+7869 2040593a call tid_set_reply 
+786a 70007d41 jam lmp_dhkey_check ,mem_lmi_opcode2 
+786b 202055ab branch lmp_reject_pdu_not_allowed 
+
+ui_check_paring_button:
+786c 6fe0c793 fetch 1 ,mem_ui_state_map 
+786d c4060000 rtnbit0 ui_state_btn_down 
+786e c4038000 rtnbit0 ui_state_bt_reconnect 
+786f 20207867 branch check_51cmd_bb_reconn_cancel 
+
+queue_init:
+7870 6fe1448f fetch 2 ,mem_queue_ptr 
+7871 1fe08a02 add pdata ,queue_offset_curr_num ,contw 
+7872 58000000 setarg 0 
+7873 e7e18005 istore 3 ,contw 
+7874 20600000 rtn 
+
+queue_push:
+7875 20407d94 call disable_user 
+7876 204078bf call queue_full 
+7877 207a0000 rtn blank 
+7878 6fe1448f fetch 2 ,mem_queue_ptr 
+7879 1fe0a402 add pdata ,queue_offset_curr_num ,regb 
+787a e8408012 ifetcht 1 ,regb 
+787b 18408401 increase 1 ,temp 
+787c e0408012 istoret 1 ,regb 
+787d e840803f ifetcht 1 ,pdata 
+787e 18427200 copy temp ,loopcnt 
+787f 1fe0a404 add pdata ,queue_offset_write_ptr ,regb 
+7880 efe08012 ifetch 1 ,regb 
+7881 984ffe00 imul32 temp ,pdata 
+7882 98c08a00 iadd contr ,contw 
+7883 1a220c00 copy rega ,contr 
+
+calc_queue_next_ptr:
+7884 20407ca1 call memcpy 
+7885 204078c3 call queue_get_size 
+7886 1fe0ffff pincrease -1 
+7887 e8408012 ifetcht 1 ,regb 
+7888 18408401 increase 1 ,temp 
+7889 98410400 iand temp ,temp 
+788a e0408012 istoret 1 ,regb 
+788b 20207d92 branch enable_user 
+
+queue_pop:
+788c 20407d94 call disable_user 
+788d 204078bb call queue_empty 
+788e 207a0000 rtn blank 
+788f 6fe1448f fetch 2 ,mem_queue_ptr 
+7890 1fe0a402 add pdata ,queue_offset_curr_num ,regb 
+7891 e8408012 ifetcht 1 ,regb 
+7892 184085ff increase -1 ,temp 
+7893 e0408012 istoret 1 ,regb 
+7894 e840803f ifetcht 1 ,pdata 
+7895 18427200 copy temp ,loopcnt 
+7896 1fe0a403 add pdata ,queue_offset_read_ptr ,regb 
+7897 efe08012 ifetch 1 ,regb 
+7898 984ffe00 imul32 temp ,pdata 
+7899 98c08c00 iadd contr ,contr 
+789a 18c08c01 increase 1 ,contr 
+789b 1a220a00 copy rega ,contw 
+789c 20207884 branch calc_queue_next_ptr 
+
+queue_get_new_ele:
+789d 20407d94 call disable_user 
+789e 204078bb call queue_empty 
+789f 207a0000 rtn blank 
+78a0 6fe1448f fetch 2 ,mem_queue_ptr 
+78a1 e840803f ifetcht 1 ,pdata 
+78a2 18427200 copy temp ,loopcnt 
+78a3 1fe0a403 add pdata ,queue_offset_read_ptr ,regb 
+78a4 efe08012 ifetch 1 ,regb 
+78a5 984ffe00 imul32 temp ,pdata 
+78a6 98c08c00 iadd contr ,contr 
+78a7 18c08c01 increase 1 ,contr 
+78a8 18c22400 copy contr ,regb 
+78a9 1a220a00 copy rega ,contw 
+78aa 20407ca1 call memcpy 
+78ab 20207d92 branch enable_user 
+
+queue_store_new_ele:
+78ac 20407d94 call disable_user 
+78ad 204078bb call queue_empty 
+78ae 207a0000 rtn blank 
+78af 6fe1448f fetch 2 ,mem_queue_ptr 
+78b0 e840803f ifetcht 1 ,pdata 
+78b1 18427200 copy temp ,loopcnt 
+78b2 1fe0a403 add pdata ,queue_offset_read_ptr ,regb 
+78b3 efe08012 ifetch 1 ,regb 
+78b4 984ffe00 imul32 temp ,pdata 
+78b5 98c08c00 iadd contr ,contr 
+78b6 18c08a02 add contr ,2 ,contw 
+78b7 1a220c00 copy rega ,contr 
+78b8 1f20f3ff increase -1 ,loopcnt 
+78b9 20407ca1 call memcpy 
+78ba 20207d92 branch enable_user 
+
+queue_empty:
+78bb 6fe1448f fetch 2 ,mem_queue_ptr 
+78bc 1fe08c02 add pdata ,queue_offset_curr_num ,contr 
+78bd efe08006 ifetch 1 ,contr 
+78be 20600000 rtn 
+
+queue_full:
+78bf 204078c3 call queue_get_size 
+78c0 e8408006 ifetcht 1 ,contr 
+78c1 98467e00 isub temp ,pdata 
+78c2 20600000 rtn 
+
+queue_get_size:
+78c3 6fe1448f fetch 2 ,mem_queue_ptr 
+78c4 1fe08c01 add pdata ,queue_offset_length ,contr 
+78c5 efe08006 ifetch 1 ,contr 
+78c6 20600000 rtn 
+
+usb_isr:
+78c7 47444031 bpatchx patch31_0 ,mem_patch31 
+78c8 6ff08c23 fetch 1 ,core_usb_status 
+78c9 2feffe03 isolate1 usb_status_reset ,pdata 
+78ca 2040f8d3 call usb_init ,true 
+78cb 6ff08c23 fetch 1 ,core_usb_status 
+78cc 67f08c23 store 1 ,core_usb_status 
+78cd 67e089f6 store 1 ,mem_usb_status 
+78ce 20407933 call usb_nak_state_judge 
+78cf 2040795b call usb_rx 
+78d0 20407b4c call usb0_tx 
+78d1 20407b94 call usb_tx 
+78d2 2020792b branch usb_nak_state 
+
+usb_init:
+78d3 4744c031 bpatchx patch31_1 ,mem_patch31 
+78d4 20406d29 call enable_authrom 
+78d5 204078f2 call usb_init_param 
+78d6 708c0000 jam 0x00 ,core_usb_config 
+78d7 20002710 nop 10000 
+78d8 708c18c0 jam 0xc0 ,core_usb_trig 
+78d9 6ff10050 fetch 2 ,core_clkoff 
+78da 793ffe0a set0 clock_off_usb ,pdata 
+78db 67f10050 store 2 ,core_clkoff 
+78dc 708c1100 jam 0x0 ,core_usb_hmode 
+78dd 708c003c jam 0x3c ,core_usb_config 
+78de 58000a4f setarg mem_usb_rxbuf 
+78df 67f10c03 store 2 ,core_usb_rx_saddr 
+78e0 67f10c07 store 2 ,core_usb_rxptr 
+78e1 58000a8f setarg mem_usb_rxbuf_end 
+78e2 67f10c05 store 2 ,core_usb_rx_eaddr 
+78e3 708c1104 jam 0x4 ,core_usb_hmode 
+78e4 708c0200 jam 0 ,core_usb_addr 
+78e5 708c23ff jam 0xff ,core_usb_status 
+78e6 58000c4b setarg mem_usb_clear_mem_end 
+78e7 d8a00b59 arg mem_usb_clear_mem_start ,contw 
+78e8 98a67200 isub contw ,loopcnt 
+78e9 20207c68 branch clear_mem 
+
+usb_offline_check_init:
+78ea 68488b58 fetcht 1 ,mem_usb_offline_check_gpio 
+78eb 20205f74 branch gpio_config_input 
+
+usb_offline_state:
+78ec 6fe08bfa fetch 1 ,mem_usb_device_enumeration_endflag 
+78ed 207a0000 rtn blank 
+78ee 68488b58 fetcht 1 ,mem_usb_offline_check_gpio 
+78ef 20405f7d call gpio_get_bit 
+78f0 2020f8d3 branch usb_init ,true 
+78f1 20600000 rtn 
+
+usb_init_param:
+78f2 700b5702 jam dev_default ,mem_usb0_state 
+78f3 58000000 setarg 0x0 
+78f4 67e08a92 store 1 ,mem_remain 
+78f5 67e10b51 store 2 ,mem_usb_zero_packet 
+78f6 1fe0fe01 pincrease 1 
+78f7 67e10b53 store 2 ,mem_usb_ones_packet 
+78f8 1fe0fe01 pincrease 1 
+78f9 67e10b55 store 2 ,mem_usb_two_packet 
+78fa d8a00ae6 arg mem_string0 ,contw 
+78fb 58030404 setarg 0x030404 
+78fc e7e18005 istore 3 ,contw 
+78fd 58000409 setarg 0x0409 
+78fe e7e10005 istore 2 ,contw 
+78ff d8a00aeb arg mem_string1 ,contw 
+7900 38015906 setsect 0 ,0x15906 
+7901 380610d2 setsect 1 ,0x210d2 
+7902 38090494 setsect 2 ,0x10494 
+7903 380c0001 setsect 3 ,0x1 
+7904 e7e48005 istore 9 ,contw 
+7905 d8a00b09 arg mem_string2 ,contw 
+7906 3801570f setsect 0 ,0x1570f 
+7907 38055c9a setsect 1 ,0x15c9a 
+7908 380a56c6 setsect 2 ,0x256c6 
+7909 380dcdcd setsect 3 ,0x1cdcd 
+790a e7e48005 istore 9 ,contw 
+790b 38014420 setsect 0 ,0x14420 
+790c 38065d99 setsect 1 ,0x25d99 
+790d 380a5636 setsect 2 ,0x25636 
+790e 380c0001 setsect 3 ,0x1 
+790f e7e38005 istore 7 ,contw 
+7910 d8a00b27 arg mem_string3 ,contw 
+7911 3801620a setsect 0 ,0x1620a 
+7912 38040c8c setsect 1 ,0xc8c 
+7913 380b0333 setsect 2 ,0x30333 
+7914 380cc0c0 setsect 3 ,0xc0c0 
+7915 e7e48005 istore 9 ,contw 
+7916 38003130 setsect 0 ,0x3130 
+7917 e7e10005 istore 2 ,contw 
+7918 580099a4 setarg usb_kbdata_vendor_define_addr 
+7919 67e10a93 store 2 ,mem_hidreportdesc_kb 
+791a 580099ff setarg usb_msdata_addr 
+791b 67e10a95 store 2 ,mem_hidreportdesc_m 
+791c d8c09aa3 arg usb_devicedata_addr ,contr 
+791d d8a00a97 arg mem_devicedesc ,contw 
+791e df200013 arg 19 ,loopcnt 
+791f 20407ca1 call memcpy 
+7920 d8c09ab6 arg usb_confdata_addr ,contr 
+7921 d8a00aaa arg mem_confdesc ,contw 
+7922 df20003c arg 60 ,loopcnt 
+7923 20407ca1 call memcpy 
+
+usb_config_cb:
+7924 6fe10b45 fetch 2 ,mem_cb_usb_config 
+7925 20207d47 branch callback_func 
+
+usb_tx_interval_config:
+7926 6fe08b47 fetch 1 ,mem_usb_tx_interval 
+7927 207a0000 rtn blank 
+7928 67e08acc store 1 ,mem_confdesc + 34 
+7929 67e08ae5 store 1 ,mem_confdesc + 59 
+792a 20600000 rtn 
+
+usb_nak_state:
+792b d8e00000 arg timer_nak ,queue 
+792c 20407cb6 call timer_check 
+792d 247a0000 nrtn blank 
+792e 6fe08bfb fetch 1 ,mem_usb_wakestate_onetime_flag 
+792f 247a0000 nrtn blank 
+7930 6fe08bfa fetch 1 ,mem_usb_device_enumeration_endflag 
+7931 245a7bea ncall usb_mac_wakeup_judge ,blank 
+7932 20600000 rtn 
+
+usb_nak_state_judge:
+7933 6fe089f6 fetch 1 ,mem_usb_status 
+7934 c2817936 bbit1 usb_status_nak ,usb_nak_state_timer_init 
+7935 20600000 rtn 
+
+usb_nak_state_timer_init:
+7936 2040793b call usb0_attached_state_judge 
+7937 20407cb5 call timer_reinit 
+7938 58000280 setarg timer_nak_delay 
+7939 d8e00000 arg timer_nak ,queue 
+793a 20207ca8 branch timer_init 
+
+usb0_attached_state_judge:
+793b 6fe08bec fetch 1 ,mem_usb_state 
+793c c0817940 bne usb_connected ,usb_clear_halt_dispose 
+793d 700bfb00 jam 0 ,mem_usb_wakestate_onetime_flag 
+793e 700bfc00 jam 0 ,mem_usb_mac_wakeup_trig 
+793f 20600000 rtn 
+
+usb_clear_halt_dispose:
+7940 6fe08bfe fetch 1 ,mem_usb_clear_halt 
+7941 207a0000 rtn blank 
+7942 700bfe00 jam 0 ,mem_usb_clear_halt 
+7943 700bec02 jam usb_connected ,mem_usb_state 
+7944 700bfa01 jam 1 ,mem_usb_device_enumeration_endflag 
+7945 20600000 rtn 
+
+usb_rx_no_data:
+7946 6fe089f6 fetch 1 ,mem_usb_status 
+7947 c2807968 bbit1 usb_status_setup ,usb_class_type 
+7948 20600000 rtn 
+
+usb_rx_data:
+7949 6ff08c24 fetch 1 ,core_usb_txbusy 
+794a c3830000 rtnbit1 usb_status_rxempty 
+794b 69510c03 fetchr contus ,2 ,core_usb_rx_saddr 
+794c 6a110c05 fetchr contue ,2 ,core_usb_rx_eaddr 
+794d 68710c07 fetchr contu ,2 ,core_usb_rxptr 
+794e efe10003 ifetch 2 ,contu 
+794f 1fec8400 rshift8 pdata ,temp 
+7950 18518400 rshift4 temp ,temp 
+7951 d8c00fff arg 0xfff ,contr 
+7952 98c17200 iand contr ,loopcnt 
+7953 1f222200 copy loopcnt ,rega 
+
+usb_rx_read:
+7954 efe08003 ifetch 1 ,contu 
+7955 e7e08005 istore 1 ,contw 
+7956 c2007954 loop usb_rx_read 
+7957 60710c07 storer contu ,2 ,core_usb_rxptr 
+7958 622109f8 storer rega ,2 ,mem_usb_read_len 
+7959 20600000 rtn 
+
+usb_data_rx:
+795a 20600000 rtn 
+
+usb_rx:
+795b 47454031 bpatchx patch31_2 ,mem_patch31 
+795c 6fe089f6 fetch 1 ,mem_usb_status 
+795d c4028000 rtnbit0 usb_status_rxready 
+795e d8a00b59 arg mem_usb_setup ,contw 
+795f 20407949 call usb_rx_data 
+7960 18427e00 copy temp ,pdata 
+7961 c0007963 beq 0 ,usb0_rx 
+7962 2020795a branch usb_data_rx 
+
+usb0_rx:
+7963 6fe089f8 fetch 1 ,mem_usb_read_len 
+7964 c0007946 beq 0x00 ,usb_rx_no_data 
+7965 c000f96f beq 0x01 ,usb_out_one_byte 
+7966 1fe67c07 sub pdata ,7 ,null 
+7967 20610000 rtn positive 
+
+usb_class_type:
+7968 4745c031 bpatchx patch31_3 ,mem_patch31 
+7969 793f8023 set0 mark_isstr ,mark 
+796a 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+796b 1fe17e80 and_into 0x80 ,pdata 
+796c c0407973 beq in_device ,usb_in_device 
+796d c000797b beq out_device ,usb_out_device 
+796e 2020137a branch assert 
+
+usb_out_one_byte:
+796f 6fe08b59 fetch 1 ,mem_usb_setup 
+7970 c3838000 rtnbit1 7 
+7971 20407b21 call usb_get_led_status 
+7972 202079a1 branch usb0_reply_zerolen 
+
+usb_in_device:
+7973 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7974 1ff1fe00 rshift4 pdata ,pdata 
+7975 1fe37e00 rshift pdata ,pdata 
+7976 1fe17e03 and_into 0x03 ,pdata 
+7977 c0007983 beq standard_req ,usb_in_standard_req 
+7978 c000f989 beq class_req ,usb_in_class_req 
+7979 c001798e beq manufacturer_req ,usb_in_manufacturer_req 
+797a 2020137a branch assert 
+
+usb_out_device:
+797b 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+797c 1ff1fe00 rshift4 pdata ,pdata 
+797d 1fe37e00 rshift pdata ,pdata 
+797e 1fe17e03 and_into 0x03 ,pdata 
+797f c000798f beq standard_req ,usb_out_standard_req 
+7980 c000f997 beq class_req ,usb_out_class_req 
+7981 c001799c beq manufacturer_req ,usb_out_manufacturer_req 
+7982 2020137a branch assert 
+
+usb_in_standard_req:
+7983 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+7984 c00479a3 beq get_configuration ,usb0_request_get_configuration 
+7985 c00379b9 beq get_descriptor ,usb0_request_get_descriptor 
+7986 c00579fe beq get_interface ,usb0_request_get_interface 
+7987 c0007a10 beq get_status ,usb0_request_get_status 
+7988 2020799d branch usb0_force_stall 
+
+usb_in_class_req:
+7989 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+798a c0017a45 beq get_idle ,usb_get_idle 
+798b c000fa49 beq get_report ,usb_get_report 
+798c c001fa5a beq get_protocol ,usb_get_protocol_req 
+798d 2020799d branch usb0_force_stall 
+
+usb_in_manufacturer_req:
+798e 2020799d branch usb0_force_stall 
+
+usb_out_standard_req:
+798f 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+7990 c000fa64 beq clear_feature ,usb0_request_clear_feature 
+7991 c001fa93 beq set_feature ,usb0_request_set_feature 
+7992 c002fabe beq set_address ,usb0_request_set_address 
+7993 c004fad7 beq set_configuration ,usb0_request_set_configuration 
+7994 c005faf2 beq set_interface ,usb0_request_set_interface 
+7995 c003f99d beq set_descriptor ,usb0_force_stall 
+7996 2020799d branch usb0_force_stall 
+
+usb_out_class_req:
+7997 6fe08b5a fetch 1 ,mem_usb_setup_brequest 
+7998 c0057b03 beq set_idle ,usb_set_idle 
+7999 c004fb15 beq set_report ,usb_set_report 
+799a c005fb33 beq set_protocol ,usb_set_protocol_req 
+799b 2020799d branch usb0_force_stall 
+
+usb_out_manufacturer_req:
+799c 2020799d branch usb0_force_stall 
+
+usb0_force_stall:
+799d 6ff08c19 fetch 1 ,core_usb_stall 
+799e 79207e00 set1 0 ,pdata 
+799f 67f08c19 store 1 ,core_usb_stall 
+79a0 202079a1 branch usb0_reply_zerolen 
+
+usb0_reply_zerolen:
+79a1 708c1810 jam 0x10 ,core_usb_trig 
+79a2 20600000 rtn 
+
+usb0_request_get_configuration:
+79a3 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+79a4 c0c0799d bne in_device ,usb0_force_stall 
+79a5 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+79a6 c080799d bne 0 ,usb0_force_stall 
+79a7 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+79a8 c080799d bne 0 ,usb0_force_stall 
+79a9 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+79aa c080f99d bne 1 ,usb0_force_stall 
+79ab 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+79ac c080799d bne 0 ,usb0_force_stall 
+79ad 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+79ae c080799d bne 0 ,usb0_force_stall 
+79af 6fe08b5c fetch 1 ,mem_usb_setup_bvalue + 1 
+79b0 c080799d bne 0 ,usb0_force_stall 
+79b1 6fe08b57 fetch 1 ,mem_usb0_state 
+79b2 c00279b5 beq dev_configured ,usb0_request_get_cfg_dev_cfg 
+79b3 c001f9b7 beq dev_address ,usb0_request_get_cfg_dev_addr 
+79b4 2020799d branch usb0_force_stall 
+
+usb0_request_get_cfg_dev_cfg:
+79b5 da400001 arg 1 ,regb 
+79b6 20207a2a branch usb_send_ones_packet 
+
+usb0_request_get_cfg_dev_addr:
+79b7 da400001 arg 1 ,regb 
+79b8 20207a28 branch usb_send_zero_packet 
+
+usb0_request_get_descriptor:
+79b9 47464031 bpatchx patch31_4 ,mem_patch31 
+79ba 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+79bb c000f9cc beq dsc_device ,dsc_device_info 
+79bc c00179e5 beq dsc_config ,dsc_config_info 
+79bd c001f9e8 beq dsc_string ,dsc_string_info 
+79be c010f9c1 beq dsc_hid ,dsc_hid_info 
+79bf c01179f6 beq dsc_hid_report ,dsc_hid_report_info 
+79c0 2020799d branch usb0_force_stall 
+
+dsc_hid_info:
+79c1 700be900 jam 0 ,mem_usb_get_protocol_flag 
+79c2 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+79c3 c00079c6 beq 0 ,dsc_hid_info_interface0 
+79c4 c000f9c9 beq 1 ,dsc_hid_info_interface1 
+79c5 2020799d branch usb0_force_stall 
+
+dsc_hid_info_interface0:
+79c6 6a408abd fetchr regb ,1 ,mem_confdesc + 19 
+79c7 da200abd arg mem_confdesc + 19 ,rega 
+79c8 20207b42 branch usb0_respond 
+
+dsc_hid_info_interface1:
+79c9 6a408ad6 fetchr regb ,1 ,mem_confdesc + 44 
+79ca da200ad6 arg mem_confdesc + 44 ,rega 
+79cb 20207b42 branch usb0_respond 
+
+dsc_device_info:
+79cc 6fe08bfd fetch 1 ,mem_usb_set_high_addr_flag 
+79cd 245a79dd ncall usb_set_high_addr ,blank 
+79ce 58000a97 setarg mem_devicedesc 
+79cf 68488a97 fetcht 1 ,mem_devicedesc 
+
+dsc_info_set_data_len:
+79d0 67e10bf4 store 2 ,mem_dsc_info_data_pointer 
+79d1 60488bf6 storet 1 ,mem_dsc_info_len 
+79d2 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+79d3 98467c00 isub temp ,null 
+79d4 242179db nbranch dsc_info_set_current_data_len ,positive 
+
+dsc_info_set_initial_data_len:
+79d5 6fe08bf6 fetch 1 ,mem_dsc_info_len 
+
+dsc_info_set_data_size_completed:
+79d6 98002400 iforce regb 
+79d7 6fe10bf4 fetch 2 ,mem_dsc_info_data_pointer 
+79d8 1fe0fe01 add pdata ,1 ,pdata 
+79d9 98002200 iforce rega 
+79da 20207b42 branch usb0_respond 
+
+dsc_info_set_current_data_len:
+79db 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+79dc 202079d6 branch dsc_info_set_data_size_completed 
+
+usb_set_high_addr:
+79dd 6ff08c02 fetch 1 ,core_usb_addr 
+79de 245a79e1 ncall usb0_set_addr ,blank 
+79df 700bfd00 jam 0 ,mem_usb_set_high_addr_flag 
+79e0 20600000 rtn 
+
+usb0_set_addr:
+79e1 6ff08c02 fetch 1 ,core_usb_addr 
+79e2 79207e07 set1 7 ,pdata 
+79e3 67f08c02 store 1 ,core_usb_addr 
+79e4 20600000 rtn 
+
+dsc_config_info:
+79e5 58000aaa setarg mem_confdesc 
+79e6 68488aaa fetcht 1 ,mem_confdesc 
+79e7 202079d0 branch dsc_info_set_data_len 
+
+dsc_string_info:
+79e8 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+79e9 1fe67c03 sub pdata ,3 ,null 
+79ea 2421799d nbranch usb0_force_stall ,positive 
+79eb 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+79ec da200ae6 arg mem_string0 ,rega 
+79ed c0007b40 beq 0 ,usb0_respond_length 
+79ee 79200023 set1 mark_isstr ,mark 
+79ef da200aeb arg mem_string1 ,rega 
+79f0 c000fb40 beq 1 ,usb0_respond_length 
+79f1 da200b09 arg mem_string2 ,rega 
+79f2 c0017b40 beq 2 ,usb0_respond_length 
+79f3 da200b27 arg mem_string3 ,rega 
+79f4 c001fb40 beq 3 ,usb0_respond_length 
+79f5 20600000 rtn 
+
+dsc_hid_report_info:
+79f6 6fe10b5d fetch 2 ,mem_usb_setup_windex 
+79f7 c000f9fa beq 1 ,dsc_hid_report_info0 
+79f8 6a210a93 fetchr rega ,2 ,mem_hidreportdesc_kb 
+79f9 20207b40 branch usb0_respond_length 
+
+dsc_hid_report_info0:
+79fa 700bfa01 jam 1 ,mem_usb_device_enumeration_endflag 
+79fb 700bec01 jam usb_got_report_req ,mem_usb_state 
+79fc 6a210a95 fetchr rega ,2 ,mem_hidreportdesc_m 
+79fd 20207b40 branch usb0_respond_length 
+
+usb0_request_get_interface:
+79fe 6fe08b57 fetch 1 ,mem_usb0_state 
+79ff c082799d bne dev_configured ,usb0_force_stall 
+7a00 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7a01 c0c0f99d bne in_interface ,usb0_force_stall 
+7a02 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7a03 c080799d bne 0 ,usb0_force_stall 
+7a04 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7a05 c080799d bne 0 ,usb0_force_stall 
+7a06 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7a07 c080f99d bne 1 ,usb0_force_stall 
+7a08 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7a09 c080799d bne 0 ,usb0_force_stall 
+7a0a 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7a0b c080799d bne 0 ,usb0_force_stall 
+7a0c 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7a0d c080799d bne 0 ,usb0_force_stall 
+7a0e da400001 arg 1 ,regb 
+7a0f 20207a28 branch usb_send_zero_packet 
+
+usb0_request_get_status:
+7a10 6fe08b57 fetch 1 ,mem_usb0_state 
+7a11 c001799d beq dev_default ,usb0_force_stall 
+7a12 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7a13 c080799d bne 0 ,usb0_force_stall 
+7a14 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7a15 c080799d bne 0 ,usb0_force_stall 
+7a16 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7a17 c081799d bne 2 ,usb0_force_stall 
+7a18 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7a19 c080799d bne 0 ,usb0_force_stall 
+7a1a 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7a1b c080799d bne 0 ,usb0_force_stall 
+7a1c 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7a1d c0407a23 beq in_device ,usb0_get_status_in_device 
+7a1e c040fa2e beq in_interface ,usb0_get_status_in_interface 
+7a1f c0417a32 beq in_endpoint ,usb0_get_status_in_endpoint 
+7a20 2020799d branch usb0_force_stall 
+
+usb0_sdsystem_dispose:
+7a21 700bef01 jam 1 ,mem_sdsystem_wakeup_flag 
+7a22 20207a2c branch usb_send_two_packet 
+
+usb0_get_status_in_device:
+7a23 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7a24 c080799d bne 0 ,usb0_force_stall 
+7a25 da400002 arg 2 ,regb 
+7a26 6fe08bed fetch 1 ,mem_usb_remote_wakeup 
+7a27 c000fa21 beq 0x01 ,usb0_sdsystem_dispose 
+
+usb_send_zero_packet:
+7a28 da200b51 arg mem_usb_zero_packet ,rega 
+7a29 20207b42 branch usb0_respond 
+
+usb_send_ones_packet:
+7a2a da200b53 arg mem_usb_ones_packet ,rega 
+7a2b 20207b42 branch usb0_respond 
+
+usb_send_two_packet:
+7a2c da200b55 arg mem_usb_two_packet ,rega 
+7a2d 20207b42 branch usb0_respond 
+
+usb0_get_status_in_interface:
+7a2e 6fe08b57 fetch 1 ,mem_usb0_state 
+7a2f c082799d bne dev_configured ,usb0_force_stall 
+7a30 da400002 arg 2 ,regb 
+7a31 20207a28 branch usb_send_zero_packet 
+
+usb0_get_status_in_endpoint:
+7a32 6fe08b57 fetch 1 ,mem_usb0_state 
+7a33 c082799d bne dev_configured ,usb0_force_stall 
+7a34 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7a35 c040fa3f beq in_ep1 ,usb0_get_status_in_ep_in_ep1 
+7a36 c0417a41 beq in_ep2 ,usb0_get_status_in_ep_in_ep2 
+7a37 c041fa43 beq in_ep3 ,usb0_get_status_in_ep_in_ep3 
+7a38 1fe17e7f and_into 0x7f ,pdata 
+7a39 c0007a3b beq 0x00 ,usb0_get_status_in_ep_in_ep0 
+7a3a 2020799d branch usb0_force_stall 
+
+usb0_get_status_in_ep_in_ep0:
+7a3b 6fe08bf0 fetch 1 ,mem_usb_ep0_stall_status 
+
+usb0_get_status_in_ep_in_ack:
+7a3c da400002 arg 2 ,regb 
+7a3d c000fa2a beq 1 ,usb_send_ones_packet 
+7a3e 20207a28 branch usb_send_zero_packet 
+
+usb0_get_status_in_ep_in_ep1:
+7a3f 6fe08bf1 fetch 1 ,mem_usb_ep1_stall_status 
+7a40 20207a3c branch usb0_get_status_in_ep_in_ack 
+
+usb0_get_status_in_ep_in_ep2:
+7a41 6fe08bf2 fetch 1 ,mem_usb_ep2_stall_status 
+7a42 20207a3c branch usb0_get_status_in_ep_in_ack 
+
+usb0_get_status_in_ep_in_ep3:
+7a43 6fe08bf3 fetch 1 ,mem_usb_ep3_stall_status 
+7a44 20207a3c branch usb0_get_status_in_ep_in_ack 
+
+usb_get_idle:
+7a45 700be701 jam 1 ,mem_usb_idle_flag 
+7a46 da200be8 arg mem_usb_idle_rate ,rega 
+7a47 da400001 arg 1 ,regb 
+7a48 20207b42 branch usb0_respond 
+
+usb_get_report:
+7a49 6fe10b5b fetch 2 ,mem_usb_setup_bvalue 
+7a4a d84001ba arg pc_get_report ,temp 
+7a4b 98467c00 isub temp ,null 
+7a4c 2422f99d nbranch usb0_force_stall ,zero 
+
+usb_get_report_dispose:
+7a4d 6fe08be4 fetch 1 ,mem_usb0_data_ready_report 
+7a4e 243a7a57 nbranch usb_get_report_data_success ,blank 
+7a4f 700ba100 jam pc_get_nondata ,mem_usb0_get_report_data 
+
+usb_get_report_send_data:
+7a50 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7a51 98002400 iforce regb 
+7a52 da200ba1 arg mem_usb0_get_report_data ,rega 
+7a53 20407b42 call usb0_respond 
+
+usb_get_report_data_release:
+7a54 d8a00ba1 arg mem_usb0_get_report_data ,contw 
+7a55 df200008 arg 8 ,loopcnt 
+7a56 20207c59 branch memset0 
+
+usb_get_report_data_success:
+7a57 700be400 jam 0 ,mem_usb0_data_ready_report 
+7a58 700ba101 jam pc_get_data ,mem_usb0_get_report_data 
+7a59 20207a50 branch usb_get_report_send_data 
+
+usb_get_protocol_req:
+7a5a 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7a5b c080f99d bne 1 ,usb0_force_stall 
+7a5c 700be901 jam 1 ,mem_usb_get_protocol_flag 
+7a5d da400001 arg 1 ,regb 
+7a5e 6fe08beb fetch 1 ,mem_usb_set_protocol_value 
+7a5f c0007a62 beq 0 ,usb_get_report_protocol 
+7a60 c000fa63 beq 1 ,usb_get_boot_protocol 
+7a61 20207a28 branch usb_send_zero_packet 
+
+usb_get_report_protocol:
+7a62 20207a2a branch usb_send_ones_packet 
+
+usb_get_boot_protocol:
+7a63 20207a28 branch usb_send_zero_packet 
+
+usb0_request_clear_feature:
+7a64 6fe08b57 fetch 1 ,mem_usb0_state 
+7a65 c082799d bne dev_configured ,usb0_force_stall 
+7a66 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7a67 c080799d bne 0 ,usb0_force_stall 
+7a68 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7a69 c080799d bne 0 ,usb0_force_stall 
+7a6a 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7a6b c080799d bne 0 ,usb0_force_stall 
+7a6c 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7a6d c080799d bne 0 ,usb0_force_stall 
+7a6e 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7a6f c0007a73 beq out_device ,usb0_request_clear_feature_out_device 
+7a70 c000fa80 beq out_interface ,usb0_request_clear_feature_out_interface 
+7a71 c0017a81 beq out_endpoint ,usb0_request_clear_feature_out_endpoint 
+7a72 2020799d branch usb0_force_stall 
+
+usb0_request_clear_feature_out_device:
+7a73 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7a74 c080f99d bne device_remote_wakeup ,usb0_force_stall 
+7a75 6ff08c00 fetch 1 ,core_usb_config 
+7a76 793ffe07 set0 7 ,pdata 
+7a77 67f08c00 store 1 ,core_usb_config 
+7a78 700bed00 jam 0 ,mem_usb_remote_wakeup 
+7a79 700bee01 jam 1 ,mem_usb_clear_remote_wakeup 
+7a7a 6fe08bef fetch 1 ,mem_sdsystem_wakeup_flag 
+7a7b 203a79a1 branch usb0_reply_zerolen ,blank 
+7a7c 700bef00 jam 0 ,mem_sdsystem_wakeup_flag 
+7a7d 700bee00 jam 0 ,mem_usb_clear_remote_wakeup 
+7a7e 700bec02 jam usb_connected ,mem_usb_state 
+7a7f 202079a1 branch usb0_reply_zerolen 
+
+usb0_request_clear_feature_out_interface:
+7a80 2020799d branch usb0_force_stall 
+
+usb0_request_clear_feature_out_endpoint:
+7a81 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7a82 c080799d bne endpoint_halt ,usb0_force_stall 
+7a83 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7a84 c040fa8c beq in_ep1 ,usb0_force_stall_ep1_in_off 
+7a85 c0417a8f beq in_ep2 ,usb0_force_stall_ep2_in_off 
+7a86 c041fa91 beq in_ep3 ,usb0_force_stall_ep3_in_off 
+7a87 1fe17e7f and_into 0x7f ,pdata 
+7a88 c0007a8a beq 0x00 ,usb0_force_stall_ep0_in_off 
+7a89 2020799d branch usb0_force_stall 
+
+usb0_force_stall_ep0_in_off:
+7a8a 700bf000 jam 0 ,mem_usb_ep0_stall_status 
+7a8b 202079a1 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep1_in_off:
+7a8c 700bf100 jam 0 ,mem_usb_ep1_stall_status 
+
+usb0_force_stall_ep1_in_off_reply:
+7a8d 700bfe01 jam 1 ,mem_usb_clear_halt 
+7a8e 202079a1 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep2_in_off:
+7a8f 700bf200 jam 0 ,mem_usb_ep2_stall_status 
+7a90 20207a8d branch usb0_force_stall_ep1_in_off_reply 
+
+usb0_force_stall_ep3_in_off:
+7a91 700bf300 jam 0 ,mem_usb_ep3_stall_status 
+7a92 20207a8d branch usb0_force_stall_ep1_in_off_reply 
+
+usb0_request_set_feature:
+7a93 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7a94 c080799d bne 0 ,usb0_force_stall 
+7a95 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7a96 c080799d bne 0 ,usb0_force_stall 
+7a97 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7a98 c0007a9c beq out_device ,usb0_request_set_feature_out_device 
+7a99 c000faaa beq out_interface ,usb0_request_set_feature_out_interface 
+7a9a c0017aab beq out_endpoint ,usb0_request_set_feature_out_endpoint 
+7a9b 2020799d branch usb0_force_stall 
+
+usb0_request_set_feature_out_device:
+7a9c 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7a9d c080f99d bne device_remote_wakeup ,usb0_force_stall 
+7a9e 2040374a call dongle_set_pc_sleep_flag 
+7a9f 6ff08c00 fetch 1 ,core_usb_config 
+7aa0 79207e07 set1 7 ,pdata 
+7aa1 67f08c00 store 1 ,core_usb_config 
+7aa2 700bed01 jam 1 ,mem_usb_remote_wakeup 
+7aa3 700bec03 jam usb_sleep ,mem_usb_state 
+7aa4 700be500 jam 0 ,mem_usb_tx_win_enable 
+7aa5 204079a1 call usb0_reply_zerolen 
+
+usb_wakeup_timer_reinit:
+7aa6 20407cb5 call timer_reinit 
+7aa7 58001388 setarg timer_wakeup_delay 
+7aa8 d8e0000f arg timer_wakeup ,queue 
+7aa9 20207ca8 branch timer_init 
+
+usb0_request_set_feature_out_interface:
+7aaa 2020799d branch usb0_force_stall 
+
+usb0_request_set_feature_out_endpoint:
+7aab 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7aac c080799d bne endpoint_halt ,usb0_force_stall 
+7aad 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7aae c080799d bne 0 ,usb0_force_stall 
+7aaf 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7ab0 c040fab8 beq in_ep1 ,usb0_force_stall_ep1_in_on 
+7ab1 c0417aba beq in_ep2 ,usb0_force_stall_ep2_in_on 
+7ab2 c041fabc beq in_ep3 ,usb0_force_stall_ep3_in_on 
+7ab3 1fe17e7f and_into 0x7f ,pdata 
+7ab4 c0007ab6 beq 0x00 ,usb0_force_stall_ep0_in_on 
+7ab5 2020799d branch usb0_force_stall 
+
+usb0_force_stall_ep0_in_on:
+7ab6 700bf001 jam 1 ,mem_usb_ep0_stall_status 
+7ab7 202079a1 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep1_in_on:
+7ab8 700bf101 jam 1 ,mem_usb_ep1_stall_status 
+7ab9 202079a1 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep2_in_on:
+7aba 700bf201 jam 1 ,mem_usb_ep2_stall_status 
+7abb 202079a1 branch usb0_reply_zerolen 
+
+usb0_force_stall_ep3_in_on:
+7abc 700bf301 jam 1 ,mem_usb_ep3_stall_status 
+7abd 202079a1 branch usb0_reply_zerolen 
+
+usb0_request_set_address:
+7abe 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7abf c080799d bne out_device ,usb0_force_stall 
+7ac0 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7ac1 c080799d bne 0 ,usb0_force_stall 
+7ac2 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7ac3 c080799d bne 0 ,usb0_force_stall 
+7ac4 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7ac5 c080799d bne 0 ,usb0_force_stall 
+7ac6 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7ac7 c080799d bne 0 ,usb0_force_stall 
+7ac8 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7ac9 c080799d bne 0 ,usb0_force_stall 
+7aca 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7acb 1fe17e80 and_into 0x80 ,pdata 
+7acc c080799d bne 0 ,usb0_force_stall 
+7acd 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7ace c0807ad5 bne 0 ,usb_usb0_state_set_dev_addr 
+
+usb_usb0_state_set_dev_default:
+7acf 700b5702 jam dev_default ,mem_usb0_state 
+
+usb0_request_set_wait_address:
+7ad0 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7ad1 67f08c02 store 1 ,core_usb_addr 
+7ad2 204079a1 call usb0_reply_zerolen 
+7ad3 700bfd01 jam 1 ,mem_usb_set_high_addr_flag 
+7ad4 20600000 rtn 
+
+usb_usb0_state_set_dev_addr:
+7ad5 700b5703 jam dev_address ,mem_usb0_state 
+7ad6 20207ad0 branch usb0_request_set_wait_address 
+
+usb0_request_set_configuration:
+7ad7 6fe08b57 fetch 1 ,mem_usb0_state 
+7ad8 c001799d beq dev_default ,usb0_force_stall 
+7ad9 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7ada c080799d bne out_device ,usb0_force_stall 
+7adb 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7adc c080799d bne 0 ,usb0_force_stall 
+7add 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7ade c080799d bne 0 ,usb0_force_stall 
+7adf 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7ae0 c080799d bne 0 ,usb0_force_stall 
+7ae1 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7ae2 c080799d bne 0 ,usb0_force_stall 
+7ae3 6fe08b5c fetch 1 ,mem_usb_setup_bvalue + 1 
+7ae4 c080799d bne 0 ,usb0_force_stall 
+7ae5 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7ae6 1fe67c01 sub pdata ,usb_max_num_cfg ,null 
+7ae7 2421799d nbranch usb0_force_stall ,positive 
+7ae8 6fe08b57 fetch 1 ,mem_usb0_state 
+7ae9 c001faec beq dev_address ,usb0_request_set_cfg_addr_state 
+7aea c0027aec beq dev_configured ,usb0_request_set_cfg_cfg_state 
+7aeb 2020799d branch usb0_force_stall 
+
+usb0_request_set_cfg_addr_state:
+
+usb0_request_set_cfg_cfg_state:
+7aec 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7aed c0007af0 beq 0 ,usb0_request_set_cfg_stay_addr_state 
+7aee 700b5704 jam dev_configured ,mem_usb0_state 
+7aef 202079a1 branch usb0_reply_zerolen 
+
+usb0_request_set_cfg_stay_addr_state:
+7af0 700b5703 jam dev_address ,mem_usb0_state 
+7af1 202079a1 branch usb0_reply_zerolen 
+
+usb0_request_set_interface:
+7af2 6fe08b57 fetch 1 ,mem_usb0_state 
+7af3 c082799d bne dev_configured ,usb0_force_stall 
+7af4 6fe08b59 fetch 1 ,mem_usb_setup_bmrequesttype 
+7af5 c080f99d bne out_interface ,usb0_force_stall 
+7af6 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7af7 c080799d bne 0 ,usb0_force_stall 
+7af8 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7af9 c080799d bne 0 ,usb0_force_stall 
+7afa 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7afb c080799d bne 0 ,usb0_force_stall 
+7afc 6fe08b60 fetch 1 ,mem_usb_setup_blengthh 
+7afd c080799d bne 0 ,usb0_force_stall 
+7afe 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7aff c080799d bne 0 ,usb0_force_stall 
+7b00 6fe08b5e fetch 1 ,mem_usb_setup_windex + 1 
+7b01 c080799d bne 0 ,usb0_force_stall 
+7b02 202079a1 branch usb0_reply_zerolen 
+
+usb_set_idle:
+7b03 4746c031 bpatchx patch31_5 ,mem_patch31 
+7b04 700be701 jam 1 ,mem_usb_idle_flag 
+7b05 6fe08b5c fetch 1 ,mem_usb_setup_bvalueh 
+7b06 67e08be8 store 1 ,mem_usb_idle_rate 
+7b07 6fe08b5d fetch 1 ,mem_usb_setup_windex 
+7b08 1fe67c01 sub pdata ,1 ,null 
+7b09 2042fb11 call usb_clear_remote_wakeup_set0 ,zero 
+7b0a 6fe08bec fetch 1 ,mem_usb_state 
+7b0b c08279a1 bne usb_resume ,usb0_reply_zerolen 
+7b0c 700bec02 jam usb_connected ,mem_usb_state 
+7b0d 204079a1 call usb0_reply_zerolen 
+7b0e 20007530 nop 30000 
+7b0f 20007530 nop 30000 
+7b10 20600000 rtn 
+
+usb_clear_remote_wakeup_set0:
+7b11 700bfa01 jam 1 ,mem_usb_device_enumeration_endflag 
+7b12 700bee00 jam 0 ,mem_usb_clear_remote_wakeup 
+7b13 700bec04 jam usb_resume ,mem_usb_state 
+7b14 20600000 rtn 
+
+usb_set_report:
+7b15 d8a00b61 arg mem_usb0_set_report_data ,contw 
+7b16 20407949 call usb_rx_data 
+7b17 700be301 jam 1 ,mem_usb0_get_set_report 
+7b18 20407b25 call usb_set_report_resume_judge 
+7b19 6fe10b5b fetch 2 ,mem_usb_setup_bvalue 
+7b1a 67e10be1 store 2 ,mem_usb_setup_bvalue_temp 
+7b1b 204079a1 call usb0_reply_zerolen 
+7b1c 6fe0c09a fetch 1 ,mem_device_option 
+7b1d c1820000 rtnne dvc_op_dongle 
+7b1e 6fe08be5 fetch 1 ,mem_usb_tx_win_enable 
+7b1f 207a0000 rtn blank 
+7b20 6fe08b61 fetch 1 ,mem_usb0_set_report_data 
+
+usb_get_led_status:
+7b21 67e0c8d2 store 1 ,mem_24g_led_status 
+7b22 700be500 jam 0 ,mem_usb_tx_win_enable 
+7b23 7048c203 jam kb_led_ackpayload ,mem_24g_ackpayload_enable 
+7b24 20600000 rtn 
+
+usb_set_report_resume_judge:
+7b25 6fe10b5b fetch 2 ,mem_usb_setup_bvalue 
+7b26 d8400200 arg pc_set_report_bvalue ,temp 
+7b27 98467c00 isub temp ,null 
+7b28 24628000 nrtn zero 
+7b29 6fe10b5d fetch 2 ,mem_usb_setup_windex 
+7b2a d8400000 arg pc_set_report_windex ,temp 
+7b2b 98467c00 isub temp ,null 
+7b2c 24628000 nrtn zero 
+7b2d 6fe10b5f fetch 2 ,mem_usb_setup_blength 
+7b2e d8400001 arg pc_set_report_blength ,temp 
+7b2f 98467c00 isub temp ,null 
+7b30 24628000 nrtn zero 
+7b31 700be501 jam 1 ,mem_usb_tx_win_enable 
+7b32 20600000 rtn 
+
+usb_set_protocol_req:
+7b33 6fe08b5f fetch 1 ,mem_usb_setup_blength 
+7b34 c080799d bne 0 ,usb0_force_stall 
+7b35 6fe08b5b fetch 1 ,mem_usb_setup_bvalue 
+7b36 c0007b39 beq boot_protocol ,usb_set_boot_protocol 
+7b37 c000fb3c beq report_protocol ,usb_set_report_protocol 
+7b38 2020799d branch usb0_force_stall 
+
+usb_set_boot_protocol:
+7b39 700bea00 jam 0 ,mem_usb_set_protocol_status 
+7b3a 700beb01 jam 1 ,mem_usb_set_protocol_value 
+7b3b 202079a1 branch usb0_reply_zerolen 
+
+usb_set_report_protocol:
+7b3c 700be601 jam 1 ,mem_usb_tx_mac_enable 
+7b3d 700bea01 jam 1 ,mem_usb_set_protocol_status 
+7b3e 700beb00 jam 0 ,mem_usb_set_protocol_value 
+7b3f 202079a1 branch usb0_reply_zerolen 
+
+usb0_respond_length:
+7b40 ea408011 ifetchr regb ,1 ,rega 
+7b41 1a20a201 increase 1 ,rega 
+
+usb0_respond:
+7b42 47474031 bpatchx patch31_6 ,mem_patch31 
+7b43 7920000e set1 mark_usb_first_resp ,mark 
+7b44 c591fb47 bmark0 mark_isstr ,usb0_respond_nostr 
+7b45 1a40a401 increase 1 ,regb 
+7b46 1a43a400 lshift regb ,regb 
+
+usb0_respond_nostr:
+7b47 62210a90 storer rega ,2 ,mem_bufptr 
+7b48 62408a92 storer regb ,1 ,mem_remain 
+7b49 20207b4c branch usb0_tx 
+
+usb_no_respond_data:
+7b4a d8e00000 arg 0 ,queue 
+7b4b 20207b8c branch usb_trig 
+
+usb0_tx:
+7b4c 4747c031 bpatchx patch31_7 ,mem_patch31 
+7b4d 6ff08c24 fetch 1 ,core_usb_txbusy 
+7b4e c3800000 rtnbit1 0 
+7b4f 6fe08a92 fetch 1 ,mem_remain 
+7b50 207a0000 rtn blank 
+7b51 1fe27200 copy pdata ,loopcnt 
+7b52 98000400 iforce temp 
+7b53 6fe10b5f fetch 2 ,mem_usb_setup_blength 
+7b54 1fe67c40 sub pdata ,ep0_packet_size ,null 
+7b55 20217b5a branch usb0_tx_short ,positive 
+7b56 1f267c40 sub loopcnt ,ep0_packet_size ,null 
+7b57 20217b5e branch usb0_tx_info ,positive 
+7b58 18007240 force ep0_packet_size ,loopcnt 
+7b59 20207b5e branch usb0_tx_info 
+
+usb0_tx_short:
+7b5a 9f267c00 isub loopcnt ,null 
+7b5b 20217b5e branch usb0_tx_info ,positive 
+7b5c 98007200 iforce loopcnt 
+7b5d 67e08a92 store 1 ,mem_remain 
+
+usb0_tx_info:
+7b5e 6fe08a92 fetch 1 ,mem_remain 
+7b5f 9f267e00 isub loopcnt ,pdata 
+7b60 67e08a92 store 1 ,mem_remain 
+7b61 1f20ffff add loopcnt ,-1 ,pdata 
+7b62 67e089fa store 1 ,mem_usb_txbuf 
+7b63 c591fb70 bmark0 mark_isstr ,usb0_tx_nostr 
+7b64 1fe37e00 rshift pdata ,pdata 
+7b65 1f20ffff add loopcnt ,-1 ,pdata 
+7b66 67e089fa store 1 ,mem_usb_txbuf 
+7b67 c5877b70 bmark0 mark_usb_first_resp ,usb0_tx_nostr 
+7b68 793f800e set0 mark_usb_first_resp ,mark 
+7b69 e0408005 istoret 1 ,contw 
+7b6a 58000003 setarg 3 
+7b6b e7e08005 istore 1 ,contw 
+7b6c 1f20f3ff increase -1 ,loopcnt 
+7b6d 1f227e00 copy loopcnt ,pdata 
+7b6e 2422fb70 nbranch usb0_tx_nostr ,zero 
+7b6f 1f20f201 increase 1 ,loopcnt 
+
+usb0_tx_nostr:
+7b70 6fe10a90 fetch 2 ,mem_bufptr 
+7b71 1fe20c00 copy pdata ,contr 
+
+usb0_tx0:
+7b72 efe08006 ifetch 1 ,contr 
+7b73 e7e08005 istore 1 ,contw 
+7b74 c591fb77 bmark0 mark_isstr ,usb0_tx1 
+7b75 58000000 setarg 0 
+7b76 e7e08005 istore 1 ,contw 
+
+usb0_tx1:
+7b77 c2007b72 loop usb0_tx0 
+7b78 18c27e00 copy contr ,pdata 
+7b79 67e10a90 store 2 ,mem_bufptr 
+7b7a 580009fa setarg mem_usb_txbuf 
+7b7b 67f10c09 store 2 ,core_usb_tx_saddr0 
+7b7c d8e00000 arg 0 ,queue 
+7b7d 20407b8c call usb_trig 
+7b7e 6fe08a92 fetch 1 ,mem_remain 
+7b7f 247a0000 nrtn blank 
+7b80 6fe08bec fetch 1 ,mem_usb_state 
+7b81 c1808000 rtnne usb_got_report_req 
+7b82 700bec02 jam usb_connected ,mem_usb_state 
+7b83 20600000 rtn 
+
+usb_tx_ep1:
+7b84 d8e00001 arg 1 ,queue 
+7b85 da200a3b arg mem_usb_txbuf1 ,rega 
+7b86 62310c0b storer rega ,2 ,core_usb_tx_saddr1 
+
+usb_tx_buf:
+7b87 1f20ffff add loopcnt ,-1 ,pdata 
+7b88 e7e08011 istore 1 ,rega 
+
+usb_tx_loop:
+7b89 efe08006 ifetch 1 ,contr 
+7b8a e7e08005 istore 1 ,contw 
+7b8b c2007b89 loop usb_tx_loop 
+
+usb_trig:
+7b8c 58000000 setarg 0 
+7b8d f9207e00 qset1 pdata 
+7b8e 67f08c18 store 1 ,core_usb_trig 
+7b8f 20600000 rtn 
+
+usb_tx_ep2:
+7b90 d8e00002 arg 2 ,queue 
+7b91 da200a45 arg mem_usb_txbuf2 ,rega 
+7b92 62310c0d storer rega ,2 ,core_usb_tx_saddr2 
+7b93 20207b87 branch usb_tx_buf 
+
+usb_tx:
+7b94 47484032 bpatchx patch32_0 ,mem_patch32 
+7b95 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7b96 207a0000 rtn blank 
+7b97 6fe08bfa fetch 1 ,mem_usb_device_enumeration_endflag 
+7b98 203a7bb8 branch usb_tx_fifo_release ,blank 
+7b99 6fe08bec fetch 1 ,mem_usb_state 
+7b9a c001fbf2 beq usb_sleep ,usb_windows_wakeup 
+7b9b c0817bb8 bne usb_connected ,usb_tx_fifo_release 
+7b9c 6fe08bee fetch 1 ,mem_usb_clear_remote_wakeup 
+7b9d 243a7bb8 nbranch usb_tx_fifo_release ,blank 
+7b9e 20407ba0 call usb_tx_data_ep1 
+7b9f 20207bab branch usb_tx_data_ep2 
+
+usb_tx_data_ep1:
+7ba0 6ff08c24 fetch 1 ,core_usb_txbusy 
+7ba1 c3808000 rtnbit1 1 
+7ba2 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7ba3 c4008000 rtnbit0 1 
+7ba4 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7ba5 793ffe01 set0 1 ,pdata 
+7ba6 67e08bf9 store 1 ,mem_usb_tx_enable 
+7ba7 6fe08bf7 fetch 1 ,mem_usb_ep1_data 
+7ba8 207a0000 rtn blank 
+7ba9 c0087bda beq usb_ep1_kb ,usb_tx_kb_normal_data 
+7baa 2020137a branch assert 
+
+usb_tx_data_ep2:
+7bab 6ff08c24 fetch 1 ,core_usb_txbusy 
+7bac c3810000 rtnbit1 2 
+7bad 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7bae c4010000 rtnbit0 2 
+7baf 6fe08bf9 fetch 1 ,mem_usb_tx_enable 
+7bb0 793ffe02 set0 2 ,pdata 
+7bb1 67e08bf9 store 1 ,mem_usb_tx_enable 
+7bb2 6fe08bf8 fetch 1 ,mem_usb_ep2_data 
+7bb3 207a0000 rtn blank 
+7bb4 c0107bbb beq usb_ep2_ms ,usb_tx_ms_data 
+7bb5 c010fbd6 beq usb_ep2_multikey ,usb_tx_kb_multikey_data 
+7bb6 c0117bde beq usb_ep2_systemkey ,usb_tx_kb_systemkey_data 
+7bb7 2020137a branch assert 
+
+usb_tx_fifo_release:
+7bb8 d8a00bff arg mem_usb_mouse_data ,contw 
+7bb9 df200008 arg 8 ,loopcnt 
+7bba 20207c59 branch memset0 
+
+usb_tx_ms_data:
+7bbb 6fe08be7 fetch 1 ,mem_usb_idle_flag 
+7bbc 68488be9 fetcht 1 ,mem_usb_get_protocol_flag 
+7bbd 98417e00 iand temp ,pdata 
+7bbe 203a7bd2 branch usb_tx_ms_data_normal_mode ,blank 
+7bbf 68488bea fetcht 1 ,mem_usb_set_protocol_status 
+7bc0 9840fe00 iadd temp ,pdata 
+7bc1 c000fbc3 beq mac_boot_mode ,usb_tx_ms_data_mac_boot_mode 
+7bc2 20207bd2 branch usb_tx_ms_data_normal_mode 
+
+usb_tx_ms_data_mac_boot_mode:
+7bc3 700bf800 jam 0 ,mem_usb_ep2_data 
+
+usb_tx_ms_data_mac_boot_regroup:
+7bc4 6fe08c00 fetch 1 ,mem_usb_mouse_data + 1 
+7bc5 c0017bd3 beq r_key ,usb_tx_mac_boot_ms_regroup_r_or_lrkey 
+7bc6 c001fbd3 beq lr_key ,usb_tx_mac_boot_ms_regroup_r_or_lrkey 
+7bc7 6fe08c00 fetch 1 ,mem_usb_mouse_data + 1 
+7bc8 67e08bff store 1 ,mem_usb_mouse_data 
+7bc9 6fe08c01 fetch 1 ,mem_usb_mouse_data + 2 
+7bca e7e08005 istore 1 ,contw 
+7bcb 6fe08c03 fetch 1 ,mem_usb_mouse_data + 4 
+7bcc e7e08005 istore 1 ,contw 
+7bcd 6fe08c05 fetch 1 ,mem_usb_mouse_data + 6 
+7bce e7e08005 istore 1 ,contw 
+7bcf df200004 arg 4 ,loopcnt 
+7bd0 d8c00bff arg mem_usb_mouse_data ,contr 
+7bd1 20207b90 branch usb_tx_ep2 
+
+usb_tx_ms_data_normal_mode:
+7bd2 700bf800 jam 0 ,mem_usb_ep2_data 
+
+usb_tx_mac_boot_ms_regroup_r_or_lrkey:
+7bd3 df200008 arg 8 ,loopcnt 
+7bd4 d8c00bff arg mem_usb_mouse_data ,contr 
+7bd5 20207b90 branch usb_tx_ep2 
+
+usb_tx_kb_multikey_data:
+7bd6 700bf800 jam 0 ,mem_usb_ep2_data 
+7bd7 df200003 arg 3 ,loopcnt 
+7bd8 d8c00c1f arg mem_usb_kb_multikey ,contr 
+7bd9 20207b90 branch usb_tx_ep2 
+
+usb_tx_kb_normal_data:
+7bda 700bf700 jam 0 ,mem_usb_ep1_data 
+7bdb df200008 arg 8 ,loopcnt 
+7bdc d8c00c0f arg mem_usb_kb_data ,contr 
+7bdd 20207b84 branch usb_tx_ep1 
+
+usb_tx_kb_systemkey_data:
+7bde 700bf800 jam 0 ,mem_usb_ep2_data 
+7bdf df200002 arg 2 ,loopcnt 
+7be0 d8c00c2f arg mem_usb_kb_system ,contr 
+7be1 20207b90 branch usb_tx_ep2 
+
+usb_inwake_state_tx_dispose:
+7be2 6fe08bec fetch 1 ,mem_usb_state 
+7be3 c0017be5 beq usb_connected ,usb_mac_wakeup_trig 
+7be4 20600000 rtn 
+
+usb_mac_wakeup_trig:
+7be5 6ff08c00 fetch 1 ,core_usb_config 
+7be6 79207e07 set1 7 ,pdata 
+7be7 67f08c00 store 1 ,core_usb_config 
+7be8 700bfc01 jam 1 ,mem_usb_mac_wakeup_trig 
+7be9 20600000 rtn 
+
+usb_mac_wakeup_judge:
+7bea 6fe08bec fetch 1 ,mem_usb_state 
+7beb c1018000 rtneq usb_sleep 
+7bec c0017bee beq usb_connected ,usb_mac_wakeup 
+7bed 20600000 rtn 
+
+usb_mac_wakeup:
+7bee 6fe08bfc fetch 1 ,mem_usb_mac_wakeup_trig 
+7bef 207a0000 rtn blank 
+7bf0 700bfb01 jam 1 ,mem_usb_wakestate_onetime_flag 
+7bf1 20207bf5 branch usb_wakeup 
+
+usb_windows_wakeup:
+7bf2 d8e0000f arg timer_wakeup ,queue 
+7bf3 20407cb6 call timer_check 
+7bf4 247a0000 nrtn blank 
+
+usb_wakeup:
+7bf5 6ff08c00 fetch 1 ,core_usb_config 
+7bf6 c4038000 rtnbit0 7 
+7bf7 708c00fc jam 0xfc ,core_usb_config 
+7bf8 20007530 nop 30000 
+7bf9 708c003c jam 0x3c ,core_usb_config 
+7bfa 20600000 rtn 
+
+right_shift_n:
+7bfb 1f267c00 sub loopcnt ,0 ,null 
+7bfc 20628000 rtn zero 
+
+right_shift_n_loop:
+7bfd 1fe37e00 rshift pdata ,pdata 
+7bfe c2007bfd loop right_shift_n_loop 
+7bff 20600000 rtn 
+
+left_shift_n:
+7c00 18007e01 force 1 ,pdata 
+7c01 1f267c00 sub loopcnt ,0 ,null 
+7c02 20628000 rtn zero 
+
+left_shift_n_loop:
+7c03 1fe3fe00 lshift pdata ,pdata 
+7c04 c2007c03 loop left_shift_n_loop 
+7c05 20600000 rtn 
+
+push_stack:
+7c06 60a1097d storer contw ,2 ,mem_contw 
+7c07 604c0964 storet 8 ,mem_temp 
+7c08 6162096c storer timeup ,4 ,mem_timeup 
+7c09 20407c0e call push_stack_rega_b_c 
+7c0a 60c1097b storer contr ,2 ,mem_contr 
+7c0b 67210987 storer loopcnt ,2 ,mem_loopcnt 
+7c0c 60e10985 storer queue ,2 ,mem_queue 
+7c0d 20600000 rtn 
+
+push_stack_rega_b_c:
+7c0e 62220970 storer rega ,4 ,mem_rega 
+7c0f 62420974 storer regb ,4 ,mem_regb 
+7c10 62618978 storer regc ,3 ,mem_regc 
+7c11 20600000 rtn 
+
+pop_stack:
+7c12 6fe1097d fetch 2 ,mem_contw 
+7c13 98000a00 iforce contw 
+7c14 684c0964 fetcht 8 ,mem_temp 
+7c15 6962096c fetchr timeup ,4 ,mem_timeup 
+7c16 20407c1c call pop_stack_rega_b_c 
+7c17 6f210987 fetchr loopcnt ,2 ,mem_loopcnt 
+7c18 68e10985 fetchr queue ,2 ,mem_queue 
+7c19 6fe1097b fetch 2 ,mem_contr 
+7c1a 98000c00 iforce contr 
+7c1b 20600000 rtn 
+
+pop_stack_rega_b_c:
+7c1c 6a220970 fetchr rega ,4 ,mem_rega 
+7c1d 6a420974 fetchr regb ,4 ,mem_regb 
+7c1e 6a618978 fetchr regc ,3 ,mem_regc 
+7c1f 20600000 rtn 
+
+get_contw:
+7c20 6fe1097d fetch 2 ,mem_contw 
+7c21 1fe20a00 copy pdata ,contw 
+7c22 20600000 rtn 
+
+get_contr:
+7c23 6fe1097b fetch 2 ,mem_contr 
+7c24 1fe20c00 copy pdata ,contr 
+7c25 20600000 rtn 
+
+store_contw:
+7c26 18a27e00 copy contw ,pdata 
+7c27 67e1097d store 2 ,mem_contw 
+7c28 20600000 rtn 
+
+store_contr:
+7c29 18c27e00 copy contr ,pdata 
+7c2a 67e1097b store 2 ,mem_contr 
+7c2b 20600000 rtn 
+
+save_cont_pointers:
+7c2c 18a27e00 copy contw ,pdata 
+7c2d 67e10959 store 2 ,mem_hold_contw 
+7c2e 18c27e00 copy contr ,pdata 
+7c2f 67e10957 store 2 ,mem_hold_contr 
+7c30 20600000 rtn 
+
+load_cont_pointers:
+7c31 6fe10959 fetch 2 ,mem_hold_contw 
+7c32 1fe20a00 copy pdata ,contw 
+7c33 6fe10957 fetch 2 ,mem_hold_contr 
+7c34 1fe20c00 copy pdata ,contr 
+7c35 20600000 rtn 
+
+get_diff:
+7c36 98462200 isub temp ,rega 
+7c37 20610000 rtn positive 
+7c38 da200100 arg 0x100 ,rega 
+7c39 9a20fe00 iadd rega ,pdata 
+7c3a 98462200 isub temp ,rega 
+7c3b 20600000 rtn 
+
+memcpy96:
+7c3c 20407c4a call memcpy32 
+
+memcpy64:
+7c3d 20407c4a call memcpy32 
+7c3e 20207c4a branch memcpy32 
+
+memcpy20:
+7c3f 20407c46 call memcpy8 
+
+memcpy12:
+7c40 20407c46 call memcpy8 
+
+memcpy4:
+7c41 efe08006 ifetch 1 ,contr 
+7c42 e7e08005 istore 1 ,contw 
+
+memcpy3:
+7c43 efe18006 ifetch 3 ,contr 
+7c44 e7e18005 istore 3 ,contw 
+7c45 20600000 rtn 
+
+memcpy8:
+7c46 efe40006 ifetch 8 ,contr 
+7c47 e7e40005 istore 8 ,contw 
+7c48 20600000 rtn 
+
+memcpy48:
+7c49 20407c4c call memcpy16 
+
+memcpy32:
+7c4a 20407c46 call memcpy8 
+
+memcpy24:
+7c4b 20407c46 call memcpy8 
+
+memcpy16:
+7c4c 20407c46 call memcpy8 
+7c4d 20207c46 branch memcpy8 
+
+delay:
+7c4e 1fe0ffff increase -1 ,pdata 
+7c4f 20000026 nop 38 
+7c50 243a7c4e nbranch delay ,blank 
+7c51 20600000 rtn 
+
+delay_10ms:
+7c52 df20000a arg 10 ,loopcnt 
+
+delay_ms_wait:
+7c53 20002ee0 nop 12000 
+7c54 c2007c53 loop delay_ms_wait 
+7c55 20600000 rtn 
+
+delay_50ms:
+7c56 df200032 arg 50 ,loopcnt 
+7c57 20207c53 branch delay_ms_wait 
+
+bn_zero:
+7c58 18007203 force 3 ,loopcnt 
+
+memset0:
+7c59 18007e00 force 0 ,pdata 
+
+memset8:
+7c5a e7e40005 istore 8 ,contw 
+7c5b c2007c5a loop memset8 
+7c5c 20600000 rtn 
+
+memset0_16:
+7c5d 20407c5e call memset0_8 
+
+memset0_8:
+7c5e 18007e00 force 0 ,pdata 
+7c5f e7e40005 istore 8 ,contw 
+7c60 20600000 rtn 
+
+memset0_4:
+7c61 18007e00 force 0 ,pdata 
+7c62 e7e20005 istore 4 ,contw 
+7c63 20600000 rtn 
+
+clear_mem_256:
+7c64 18007204 force 4 ,loopcnt 
+7c65 20207c59 branch memset0 
+
+clear_mem_512:
+7c66 18007208 force 8 ,loopcnt 
+7c67 20207c59 branch memset0 
+
+clear_mem:
+7c68 1f227e00 deposit loopcnt 
+7c69 207a0000 rtn blank 
+7c6a 58000000 setarg 0 
+
+clear_mem_loop:
+7c6b e7e08005 istore 1 ,contw 
+7c6c c2007c6b loop clear_mem_loop 
+7c6d 20600000 rtn 
+
+clear_temp_block:
+7c6e df200020 arg 32 ,loopcnt 
+7c6f d8a0098e arg mem_temp_block0 ,contw 
+7c70 20207c68 branch clear_mem 
+
+xor_loop:
+7c71 efe20013 ifetch 4 ,regc 
+7c72 e8420011 ifetcht 4 ,rega 
+7c73 9842fe00 ixor temp ,pdata 
+7c74 e7e20005 istore 4 ,contw 
+7c75 1a20a204 increase 4 ,rega 
+7c76 1a60a604 increase 4 ,regc 
+7c77 c2007c71 loop xor_loop 
+7c78 20600000 rtn 
+
+inverse_data:
+7c79 4748c032 bpatchx patch32_1 ,mem_patch32 
+7c7a 1f227e00 copy loopcnt ,pdata 
+7c7b 1fe67c01 sub pdata ,1 ,null 
+7c7c 20610000 rtn positive 
+7c7d 9a20a400 iadd rega ,regb 
+7c7e 1a40a5ff increase -1 ,regb 
+7c7f 1f237200 rshift loopcnt ,loopcnt 
+
+inverse_loop:
+7c80 e8408011 ifetcht 1 ,rega 
+7c81 efe08012 ifetch 1 ,regb 
+7c82 e7e08011 istore 1 ,rega 
+7c83 e0408012 istoret 1 ,regb 
+7c84 1a40a5ff increase -1 ,regb 
+7c85 1a20a201 increase 1 ,rega 
+7c86 c2007c80 loop inverse_loop 
+7c87 20600000 rtn 
+
+le2be_6byte:
+
+inverse_data_6byte:
+7c88 1fef0400 rshift32 pdata ,temp 
+7c89 20407c8e call inverse_data_4byte 
+7c8a 18508400 byteswap temp ,temp 
+7c8b 1ff07e00 lshift16 pdata ,pdata 
+7c8c 9841fe00 ior temp ,pdata 
+7c8d 20600000 rtn 
+
+le2be_4byte:
+
+inverse_data_4byte:
+7c8e 1ff10c00 rshift16 pdata ,contr 
+7c8f 18d08c00 byteswap contr ,contr 
+7c90 1ff0fe00 byteswap pdata ,pdata 
+7c91 1ff07e00 lshift16 pdata ,pdata 
+7c92 98c1fe00 ior contr ,pdata 
+7c93 20600000 rtn 
+
+memcpy_fast:
+7c94 1f227e00 deposit loopcnt 
+7c95 207a0000 rtn blank 
+
+memcpy_fast_loop:
+7c96 1f20f3f8 increase -8 ,loopcnt 
+7c97 20417c46 call memcpy8 ,positive 
+7c98 20628000 rtn zero 
+7c99 20217c96 branch memcpy_fast_loop ,positive 
+7c9a 1f20f208 increase 8 ,loopcnt 
+
+memcpy_fast_loop_four:
+7c9b 1f20f3fc increase -4 ,loopcnt 
+7c9c 20417c41 call memcpy4 ,positive 
+7c9d 20628000 rtn zero 
+7c9e 20217c9b branch memcpy_fast_loop_four ,positive 
+7c9f 1f20f204 increase 4 ,loopcnt 
+7ca0 20207ca1 branch memcpy 
+
+memcpy:
+7ca1 1f227e00 deposit loopcnt 
+7ca2 207a0000 rtn blank 
+
+memcpy_loop:
+7ca3 efe08006 ifetch 1 ,contr 
+7ca4 e7e08005 istore 1 ,contw 
+7ca5 c2007ca3 loop memcpy_loop 
+7ca6 20600000 rtn 
+
+timer_stop:
+7ca7 58000000 setarg 0 
+
+timer_init:
+7ca8 1c430400 rshift clkn_bt ,temp 
+7ca9 604a409c storet 4 ,mem_last_clkn 
+7caa d8a041ad arg mem_timers ,contw 
+7cab 98000400 iforce temp 
+7cac 18e3fe00 lshift queue ,pdata 
+7cad 98a08a00 iadd contw ,contw 
+7cae e0410005 istoret 2 ,contw 
+7caf 47494032 bpatchx patch32_2 ,mem_patch32 
+7cb0 20600000 rtn 
+
+timer_check_timeout:
+7cb1 d9600800 arg 0x800 ,timeup 
+7cb2 19701600 lshift16 timeup ,timeup 
+7cb3 9960fe00 iadd timeup ,pdata 
+7cb4 20600000 rtn 
+
+timer_reinit:
+7cb5 d8e00000 arg 0 ,queue 
+
+timer_check:
+7cb6 4749c032 bpatchx patch32_3 ,mem_patch32 
+7cb7 684a409c fetcht 4 ,mem_last_clkn 
+7cb8 1c437e00 rshift clkn_bt ,pdata 
+7cb9 67e2409c store 4 ,mem_last_clkn 
+7cba 98467c00 isub temp ,null 
+7cbb 24417cb1 ncall timer_check_timeout ,positive 
+7cbc 98461600 isub temp ,timeup 
+7cbd 19620400 copy timeup ,temp 
+7cbe d8c041ad arg mem_timers ,contr 
+7cbf 18c20a00 copy contr ,contw 
+7cc0 df200010 arg 16 ,loopcnt 
+
+timer_loop:
+7cc1 efe10006 ifetch 2 ,contr 
+7cc2 98467e00 isub temp ,pdata 
+7cc3 20217cc5 branch timer_counting ,positive 
+7cc4 18007e00 force 0 ,pdata 
+
+timer_counting:
+7cc5 e7e10005 istore 2 ,contw 
+7cc6 c2007cc1 loop timer_loop 
+7cc7 d8c041ad arg mem_timers ,contr 
+7cc8 18e3fe00 lshift queue ,pdata 
+7cc9 98c08c00 iadd contr ,contr 
+7cca efe10006 ifetch 2 ,contr 
+7ccb 20600000 rtn 
+
+clk_add:
+7ccc 98408400 iadd temp ,temp 
+7ccd 18427200 copy temp ,loopcnt 
+7cce 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+7ccf 9f267e00 isub loopcnt ,pdata 
+7cd0 20610000 rtn positive 
+7cd1 1fe67e00 sub pdata ,0 ,pdata 
+7cd2 18510400 rshift16 temp ,temp 
+7cd3 18408401 increase 1 ,temp 
+7cd4 18500400 lshift16 temp ,temp 
+7cd5 98418400 ior temp ,temp 
+7cd6 20600000 rtn 
+
+clk_diff_rt:
+7cd7 20407cd9 call clk_diff 
+7cd8 20207ce6 branch clk2rt 
+
+clk_diff:
+7cd9 78547c00 disable user 
+7cda 98467e00 isub temp ,pdata 
+7cdb 20217cde branch clk_diff_pos ,positive 
+7cdc 78347c00 enable user 
+7cdd 1fe67e00 sub pdata ,0 ,pdata 
+
+clk_diff_pos:
+7cde c4078000 rtnbit0 15 
+7cdf 1fe22800 copy pdata ,regab 
+7ce0 d8410000 arg 0x10000 ,temp 
+7ce1 6fe10163 fetch 2 ,mem_param_rt_rthalfslot 
+7ce2 98467e00 isub temp ,pdata 
+7ce3 9a80fe00 iadd regab ,pdata 
+7ce4 793ffe40 set0 64 ,pdata 
+7ce5 20600000 rtn 
+
+clk2rt:
+7ce6 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+7ce7 98000c00 iforce contr 
+7ce8 1ff17e00 rshift16 pdata ,pdata 
+7ce9 984ffe00 imul32 temp ,pdata 
+7cea 98c0fe00 iadd contr ,pdata 
+7ceb 20600000 rtn 
+
+clk2lpo:
+7cec 1fed7e00 lshift8 pdata ,pdata 
+7ced 1ff27e00 lshift4 pdata ,pdata 
+7cee 6849c174 fetcht 3 ,mem_clks_per_lpo 
+7cef 9846fc00 idiv temp 
+7cf0 20407d31 call wait_div_end 
+7cf1 18078400 quotient temp 
+7cf2 20600000 rtn 
+
+clk2bt:
+7cf3 68490163 fetcht 2 ,mem_param_rt_rthalfslot 
+7cf4 9846fc00 idiv temp 
+7cf5 20407d2e call get_div_result 
+7cf6 1ff07e00 lshift16 pdata ,pdata 
+7cf7 18070400 remainder temp 
+7cf8 98418400 ior temp ,temp 
+7cf9 20600000 rtn 
+
+string2dec_from_uart:
+7cfa d8400000 arg 0 ,temp 
+
+string2dec_from_uart_done:
+7cfb 18422800 copy temp ,regab 
+7cfc efe08003 ifetch 1 ,contu 
+7cfd 20407d06 call uchar2dialog 
+7cfe 1a820400 copy regab ,temp 
+7cff 20407d40 call swap 
+7d00 da40000a arg 10 ,regb 
+7d01 9a4ffe00 imul32 regb ,pdata 
+7d02 9840fe00 iadd temp ,pdata 
+7d03 1fe20400 copy pdata ,temp 
+7d04 c2007cfb loop string2dec_from_uart_done 
+7d05 20600000 rtn 
+
+uchar2dialog:
+7d06 d840003a arg 0x3a ,temp 
+7d07 98467c00 isub temp ,null 
+7d08 24217d0f nbranch uchar2dialog_number ,positive 
+7d09 d8400061 arg 0x61 ,temp 
+7d0a 98467c00 isub temp ,null 
+7d0b 20217d12 branch uchar2dialog_a2f ,positive 
+7d0c d8400037 arg 0x37 ,temp 
+7d0d 98467e00 isub temp ,pdata 
+7d0e 20600000 rtn 
+
+uchar2dialog_number:
+7d0f d8400030 arg 0x30 ,temp 
+7d10 98467e00 isub temp ,pdata 
+7d11 20600000 rtn 
+
+uchar2dialog_a2f:
+7d12 d8400057 arg 0x57 ,temp 
+7d13 98467e00 isub temp ,pdata 
+7d14 20600000 rtn 
+
+pn9:
+7d15 18426000 copy temp ,alarm 
+7d16 580001ff setarg 0x1ff 
+7d17 18002400 force 0 ,regb 
+
+pn9_loop:
+7d18 1fe92200 rshift3 pdata ,rega 
+7d19 1a232200 rshift rega ,rega 
+7d1a 9a22a200 ixor rega ,rega 
+7d1b 2a2ffe00 isolate1 0 ,rega 
+7d1c 7920fe09 setflag true ,9 ,pdata 
+7d1d 18430400 rshift temp ,temp 
+7d1e 2feffe00 isolate1 0 ,pdata 
+7d1f 79208407 setflag true ,7 ,temp 
+7d20 1fe37e00 rshift pdata ,pdata 
+7d21 1a40a401 increase 1 ,regb 
+7d22 2a400e00 compare 0 ,regb ,0x7 
+7d23 2420fd18 nbranch pn9_loop ,true 
+7d24 e0408005 istoret 1 ,contw 
+7d25 c2007d18 loop pn9_loop 
+7d26 1e020400 copy alarm ,temp 
+7d27 20600000 rtn 
+
+calc_average:
+7d28 58000000 setarg 0 
+7d29 1f222200 copy loopcnt ,rega 
+
+calc_average_loop:
+7d2a e8410006 ifetcht 2 ,contr 
+7d2b 9840fe00 iadd temp ,pdata 
+7d2c c2007d2a loop calc_average_loop 
+7d2d 9a26fc00 idiv rega 
+
+get_div_result:
+7d2e 20407d31 call wait_div_end 
+7d2f 1807fe00 quotient pdata 
+7d30 20600000 rtn 
+
+wait_div_end:
+7d31 207a8000 rtn modone 
+7d32 20207d31 branch wait_div_end 
+
+compare_loop:
+
+string_compare:
+7d33 efe08011 ifetch 1 ,rega 
+7d34 e8408012 ifetcht 1 ,regb 
+7d35 98467c00 isub temp ,null 
+7d36 24628000 nrtn zero 
+7d37 1a20a201 increase 1 ,rega 
+7d38 1a40a401 increase 1 ,regb 
+7d39 c2007d33 loop string_compare 
+7d3a 18007c00 force 0 ,null 
+7d3b 20600000 rtn 
+
+ceiling:
+7d3c 98467c00 isub temp ,null 
+7d3d 24610000 nrtn positive 
+7d3e 18427e00 deposit temp 
+7d3f 20600000 rtn 
+
+swap:
+7d40 9840fe00 iadd temp ,pdata 
+7d41 98460400 isub temp ,temp 
+7d42 98467e00 isub temp ,pdata 
+7d43 20600000 rtn 
+
+clean_mem:
+7d44 df200400 arg 0x400 ,loopcnt 
+7d45 d8a04000 arg 0x4000 ,contw 
+7d46 20207c59 branch memset0 
+
+callback_func:
+7d47 207a0000 rtn blank 
+7d48 1fe27a00 copy pdata ,pc 
+
+wait_uarttx:
+7d49 6ff1010e fetch 2 ,core_uart_txitems 
+7d4a 243a7d49 nbranch wait_uarttx ,blank 
+7d4b 20600000 rtn 
+
+ice_break:
+7d4c 70820301 jam 0x1 ,core_ice_ctrl 
+7d4d 20600000 rtn 
+
+ice_setbp:
+7d4e 67f10205 store 2 ,core_ice_break0 
+7d4f 6ff08203 fetch 1 ,core_ice_ctrl 
+7d50 79207e04 set1 4 ,pdata 
+7d51 67f08203 store 1 ,core_ice_ctrl 
+7d52 20600000 rtn 
+
+ice_setbp2:
+7d53 67f10207 store 2 ,core_ice_break1 
+7d54 6ff08203 fetch 1 ,core_ice_ctrl 
+7d55 79207e06 set1 6 ,pdata 
+7d56 67f08203 store 1 ,core_ice_ctrl 
+7d57 20600000 rtn 
+
+ice_set_write_bp:
+7d58 67f10205 store 2 ,core_ice_break0 
+7d59 70820330 jam 0x30 ,core_ice_ctrl 
+7d5a 20600000 rtn 
+
+test_enable_white:
+7d5b 6ff08043 fetch 1 ,core_config 
+7d5c 793ffe04 set0 whiteoff_bit ,pdata 
+7d5d 67f08043 store 1 ,core_config 
+7d5e 20600000 rtn 
+
+check_uart_tx_buff:
+7d5f 6ff1010e fetch 2 ,core_uart_txitems 
+7d60 d8400200 arg uart_air_control_threshold ,temp 
+
+pdata_sub_temp:
+7d61 98467c00 isub temp ,null 
+7d62 20600000 rtn 
+
+fifo_in:
+7d63 474a4032 bpatchx patch32_4 ,mem_patch32 
+7d64 e8440011 ifetcht util_fifo_len ,rega 
+7d65 18417eff and temp ,0xff ,pdata 
+7d66 243a7d69 nbranch fifo_in_push ,blank 
+7d67 184cfe00 rshift8 temp ,pdata 
+7d68 e7e40011 istore util_fifo_len ,rega 
+
+fifo_in_push:
+7d69 1a20a207 increase util_fifo_len + util_fifo_offset ,rega 
+7d6a efe08011 ifetch 1 ,rega 
+7d6b 243a137a nbranch assert ,blank 
+7d6c 6fe0895b fetch 1 ,mem_fifo_temp 
+7d6d e7e08011 istore 1 ,rega 
+7d6e 20600000 rtn 
+
+fifo_out:
+7d6f 474ac032 bpatchx patch32_5 ,mem_patch32 
+7d70 df200008 arg util_fifo_len ,loopcnt 
+7d71 efe40011 ifetch util_fifo_len ,rega 
+7d72 207a0000 rtn blank 
+
+fifo_out_loop:
+7d73 efe08011 ifetch 1 ,rega 
+7d74 243a7d78 nbranch fifo_out_end ,blank 
+7d75 1a20a201 increase 1 ,rega 
+7d76 c2007d73 loop fifo_out_loop 
+7d77 2020137a branch assert 
+
+fifo_out_end:
+7d78 d8400000 arg 0 ,temp 
+7d79 e0408011 istoret 1 ,rega 
+7d7a 20600000 rtn 
+
+fifo_is_empty:
+7d7b efe40011 ifetch util_fifo_len ,rega 
+7d7c 20600000 rtn 
+
+fifo_is_full:
+7d7d efe08011 ifetch 1 ,rega 
+7d7e 20600000 rtn 
+
+fifo_is_near_full:
+7d7f efe10011 ifetch 2 ,rega 
+7d80 20600000 rtn 
+
+fifo_content_count:
+7d81 d8400000 arg 0 ,temp 
+
+fifo_content_count_loop:
+7d82 6fe08006 fetch 1 ,contr 
+7d83 c2007d82 loop fifo_content_count_loop ,blank 
+7d84 18408401 increase 1 ,temp 
+7d85 c2007d82 loop fifo_content_count_loop 
+7d86 18427e00 copy temp ,pdata 
+7d87 20600000 rtn 
+
+not_greater_than:
+7d88 98467c00 isub temp ,null 
+7d89 24610000 nrtn positive 
+
+copy_temp2pdata:
+7d8a 18427e00 copy temp ,pdata 
+7d8b 20600000 rtn 
+
+disable_positive:
+7d8c 18007dff force -1 ,null 
+7d8d 20600000 rtn 
+
+enable_positive:
+
+disable_zero:
+7d8e 18007c01 force 1 ,null 
+7d8f 20600000 rtn 
+
+enable_zero:
+7d90 18007c00 force 0 ,null 
+7d91 20600000 rtn 
+
+enable_user:
+7d92 78347c00 enable user 
+7d93 20600000 rtn 
+
+disable_user:
+7d94 78547c00 disable user 
+7d95 20600000 rtn 
+
+enable_user2:
+7d96 78367c00 enable user2 
+7d97 20600000 rtn 
+
+disable_user2:
+7d98 78567c00 disable user2 
+7d99 20600000 rtn 
+
+enable_user7:
+7d9a 7838fc00 enable user7 
+7d9b 20600000 rtn 
+
+disable_blank:
+7d9c 58000001 setarg 1 
+7d9d 20600000 rtn 
+
+enable_blank:
+
+set_pdata_0:
+7d9e 58000000 setarg 0 
+7d9f 20600000 rtn 
+
+cal_sum:
+7da0 1f267c00 sub loopcnt ,0 ,null 
+7da1 20628000 rtn zero 
+
+cal_sum_loop:
+7da2 e8408006 ifetcht 1 ,contr 
+7da3 9840fe00 iadd temp ,pdata 
+7da4 c2007da2 loop cal_sum_loop 
+7da5 20600000 rtn 
+
+reverse_byte:
+7da6 1f227e00 copy loopcnt ,pdata 
+7da7 207a0000 rtn blank 
+7da8 18c27e00 copy contr ,pdata 
+7da9 9f20fe00 iadd loopcnt ,pdata 
+7daa 1fe0ffff increase -1 ,pdata 
+7dab 1fe20c00 copy pdata ,contr 
+
+reverse_loop:
+7dac efe08006 ifetch 1 ,contr 
+7dad 18c08dfe increase -2 ,contr 
+7dae e7e08005 istore 1 ,contw 
+7daf c2007dac loop reverse_loop 
+7db0 20600000 rtn 
+
+calc_k12:
+7db1 19622400 copy timeup ,regb 
+
+calc_k:
+7db2 da609420 arg mem_local_sig ,regc 
+7db3 18007224 force 36 ,loopcnt 
+7db4 18005600 force 0 ,rege 
+7db5 18006e00 force 0 ,regf 
+
+rxcal_k1_loop:
+7db6 20407dc6 call complex_mult16to8 
+7db7 52207e00 preload rega 
+7db8 9d60d600 iadd rege ,rege 
+7db9 50407e00 preload temp 
+7dba 9ee0ee00 iadd regf ,regf 
+7dbb 1a40a404 increase 4 ,regb 
+7dbc 1a60a602 increase 2 ,regc 
+7dbd c2007db6 loop rxcal_k1_loop 
+7dbe 55607e00 preload rege 
+7dbf d8400024 arg 36 ,temp 
+7dc0 20407e12 call signed_div 
+7dc1 e7e20005 istore 4 ,contw 
+7dc2 56e07e00 preload regf 
+7dc3 20407e12 call signed_div 
+7dc4 e7e20005 istore 4 ,contw 
+7dc5 20600000 rtn 
+
+complex_mult16to8:
+7dc6 edc10012 ifetchr nap ,2 ,regb 
+7dc7 eb808013 ifetchr fhs_misc ,1 ,regc 
+7dc8 20407df7 call signed_ext16by8 
+7dc9 98482200 imults temp ,rega 
+7dca eb808006 ifetchr fhs_misc ,1 ,contr 
+7dcb 20347dcd branch complex_not_conj ,user 
+7dcc 1b863800 sub fhs_misc ,0 ,fhs_misc 
+
+complex_not_conj:
+7dcd 1a408c02 add regb ,2 ,contr 
+7dce edc10006 ifetchr nap ,2 ,contr 
+7dcf 20407df7 call signed_ext16by8 
+7dd0 98483000 imults temp ,regd 
+7dd1 52207e00 preload rega 
+7dd2 9b062200 isub regd ,rega 
+7dd3 edc10012 ifetchr nap ,2 ,regb 
+7dd4 55c07e00 preload nap 
+7dd5 98483000 imults temp ,regd 
+7dd6 edc10006 ifetchr nap ,2 ,contr 
+7dd7 eb808013 ifetchr fhs_misc ,1 ,regc 
+7dd8 20407df7 call signed_ext16by8 
+7dd9 98480400 imults temp ,temp 
+7dda 53007e00 preload regd 
+7ddb 98408400 iadd temp ,temp 
+7ddc 20600000 rtn 
+
+complex_mult32to32:
+7ddd efe20012 ifetch 4 ,regb 
+7dde ea220013 ifetchr rega ,4 ,regc 
+7ddf 9a285600 imults rega ,rege 
+7de0 ea220006 ifetchr rega ,4 ,contr 
+7de1 52206e00 aligned rega ,regf 
+7de2 1a408c04 add regb ,4 ,contr 
+7de3 efe20006 ifetch 4 ,contr 
+7de4 9a280400 imults rega ,temp 
+7de5 55607e00 preload rege 
+7de6 98465600 isub temp ,rege 
+7de7 efe20012 ifetch 4 ,regb 
+7de8 9ee86e00 imults regf ,regf 
+7de9 efe20006 ifetch 4 ,contr 
+7dea ea220013 ifetchr rega ,4 ,regc 
+7deb 9a287e00 imults rega ,pdata 
+7dec 9ee0ee00 iadd regf ,regf 
+7ded 20600000 rtn 
+
+lshift14:
+7dee 1ff07e00 lshift16 pdata ,pdata 
+
+rshift2:
+7def 1feb7e00 rshift2 pdata ,pdata 
+7df0 20600000 rtn 
+
+lshift6:
+7df1 1fed7e00 lshift8 pdata ,pdata 
+7df2 20207def branch rshift2 
+
+calc_vok:
+7df3 9feffe00 imul32 pdata ,pdata 
+
+rshift7:
+7df4 1ff1fe00 rshift4 pdata ,pdata 
+7df5 1fe97e00 rshift3 pdata ,pdata 
+7df6 20600000 rtn 
+
+signed_ext16by8:
+7df7 55c07e00 preload nap 
+7df8 53800400 aligned fhs_misc ,temp 
+7df9 20600000 rtn 
+
+abs32:
+7dfa c40f8000 rtnbit0 31 
+7dfb 18000400 force 0 ,temp 
+7dfc 79200420 set1 32 ,temp 
+7dfd 184085ff increase -1 ,temp 
+7dfe 9842fe00 ixor temp ,pdata 
+7dff 1fe0fe01 pincrease 1 
+7e00 20600000 rtn 
+
+sqrt:
+7e01 98002200 iforce rega 
+7e02 db000000 arg 0 ,regd 
+7e03 7920301e set1 30 ,regd 
+7e04 da400000 arg 0 ,regb 
+7e05 df200010 arg 16 ,loopcnt 
+
+sqrt_loop:
+7e06 1b027e00 deposit regd 
+7e07 9a40fe00 iadd regb ,pdata 
+7e08 1a432400 rshift regb ,regb 
+7e09 9a267e00 isub rega ,pdata 
+7e0a 2022fe0c branch sqrt_less ,zero 
+7e0b 20217e0f branch sqrt_greater ,positive 
+
+sqrt_less:
+7e0c 1fe62200 sub pdata ,0 ,rega 
+7e0d 1b027e00 deposit regd 
+7e0e 9a41a400 ior regb ,regb 
+
+sqrt_greater:
+7e0f 1b0b3000 rshift2 regd ,regd 
+7e10 c2007e06 loop sqrt_loop 
+7e11 20600000 rtn 
+
+signed_div:
+7e12 793f802c set0 mark_temp ,mark 
+7e13 c31ffe16 bbit0 63 ,signed_div_unsigna 
+7e14 7920002c set1 mark_temp ,mark 
+7e15 1fe67e00 sub pdata ,0 ,pdata 
+
+signed_div_unsigna:
+7e16 284c003f isolate0 63 ,temp 
+7e17 2020fe1a branch signed_div_unsignb ,true 
+7e18 7940002c setflip mark_temp ,mark 
+7e19 18460400 sub temp ,0 ,temp 
+
+signed_div_unsignb:
+7e1a 9846fc00 idiv temp 
+7e1b 20407d2e call get_div_result 
+7e1c c6960000 rtnmark0 mark_temp 
+7e1d 1fe67e00 sub pdata ,0 ,pdata 
+7e1e 20600000 rtn 
+
+rx_iq_comp:
+7e1f 20407e25 call calc_k1 
+7e20 20407e28 call calc_k2 
+7e21 20407e2a call calc_absk12_sqr 
+7e22 20407e39 call calc_g 
+7e23 20407e48 call calc_a 
+7e24 20207e55 branch calc_c22 
+
+calc_k1:
+7e25 78347c00 enable user 
+7e26 d8a00a01 arg mem_tmp_buffer ,contw 
+7e27 20207db1 branch calc_k12 
+
+calc_k2:
+7e28 78547c00 disable user 
+7e29 20207db1 branch calc_k12 
+
+calc_absk12_sqr:
+7e2a 6fe20a01 fetch 4 ,mem_tmp_buffer 
+7e2b 684a0a09 fetcht 4 ,mem_tmp_buffer + 8 
+7e2c 9840fe00 iadd temp ,pdata 
+7e2d 20407dfa call abs32 
+7e2e 98000400 iforce temp 
+7e2f 984fd600 imul32 temp ,rege 
+7e30 6fe20a05 fetch 4 ,mem_tmp_buffer + 4 
+7e31 684a0a0d fetcht 4 ,mem_tmp_buffer + 12 
+7e32 98467e00 isub temp ,pdata 
+7e33 20407dfa call abs32 
+7e34 98000400 iforce temp 
+7e35 984ffe00 imul32 temp ,pdata 
+7e36 9d60fe00 iadd rege ,pdata 
+7e37 67e40a11 store 8 ,mem_tmp_buffer + 16 
+7e38 20600000 rtn 
+
+calc_g:
+7e39 da400a01 arg mem_tmp_buffer ,regb 
+7e3a da600a09 arg mem_tmp_buffer + 8 ,regc 
+7e3b 20407ddd call complex_mult32to32 
+7e3c 55607e00 preload rege 
+7e3d 1fe67e00 sub pdata ,0 ,pdata 
+7e3e 1ff07e00 lshift16 pdata ,pdata 
+7e3f 1febfe00 lshift2 pdata ,pdata 
+7e40 684c0a11 fetcht 8 ,mem_tmp_buffer + 16 
+7e41 9848fc00 idiv48 temp 
+7e42 da210000 arg 0x10000 ,rega 
+7e43 20407d2e call get_div_result 
+7e44 9a20fe00 iadd rega ,pdata 
+7e45 20407e01 call sqrt 
+7e46 1a425600 copy regb ,rege 
+7e47 20600000 rtn 
+
+calc_a:
+7e48 184f7e00 rshift32 temp ,pdata 
+7e49 9a4fa200 imul32 regb ,rega 
+7e4a 1a427e00 deposit regb 
+7e4b 984f8400 imul32 temp ,temp 
+7e4c 1a307e00 lshift16 rega ,pdata 
+7e4d 1ff07e00 lshift16 pdata ,pdata 
+7e4e 98408400 iadd temp ,temp 
+7e4f 56e07e00 preload regf 
+7e50 1fe67e00 sub pdata ,0 ,pdata 
+7e51 1ff07e00 lshift16 pdata ,pdata 
+7e52 1fe3fe00 lshift pdata ,pdata 
+7e53 9848fc00 idiv48 temp 
+7e54 20207d2e branch get_div_result 
+
+calc_c22:
+7e55 1fe32600 rshift pdata ,regc 
+7e56 9fef8400 imul32 pdata ,temp 
+7e57 58010000 setarg 0x10000 
+7e58 98467e00 isub temp ,pdata 
+7e59 20407e01 call sqrt 
+7e5a 1a427e00 deposit regb 
+7e5b 9d6f8400 imul32 rege ,temp 
+7e5c 58000000 setarg 0 
+7e5d 79207e1c set1 28 ,pdata 
+7e5e 9848fc00 idiv48 temp 
+7e5f 20407d31 call wait_div_end 
+7e60 18078400 quotient temp 
+7e61 58001000 setarg 0x1000 
+7e62 98466e00 isub temp ,regf 
+7e63 20600000 rtn 
+
+tx_iq_precomp:
+7e64 20407e6a call calc_vok1 
+7e65 20407e6e call calc_sumvok 
+7e66 20407e75 call calc_ad_bc 
+7e67 20407e7c call calc_omega 
+7e68 20407e8b call calc_b1 
+7e69 20207e96 branch calc_b2 
+
+calc_vok1:
+7e6a 6fe089f6 fetch 1 ,mem_vdk 
+7e6b 20407df3 call calc_vok 
+7e6c 67e089f8 store 1 ,mem_vok 
+7e6d 20600000 rtn 
+
+calc_sumvok:
+7e6e 98002600 iforce regc 
+7e6f 9fef8400 imul32 pdata ,temp 
+7e70 efe08006 ifetch 1 ,contr 
+7e71 20407df3 call calc_vok 
+7e72 e7e08005 istore 1 ,contw 
+7e73 9a60a200 iadd regc ,rega 
+7e74 20600000 rtn 
+
+calc_ad_bc:
+7e75 9feffe00 imul32 pdata ,pdata 
+7e76 9840a400 iadd temp ,regb 
+7e77 1a227e00 deposit rega 
+7e78 9a2f8400 imul32 rega ,temp 
+7e79 1a43fe00 lshift regb ,pdata 
+7e7a 98460400 isub temp ,temp 
+7e7b 20600000 rtn 
+
+calc_omega:
+7e7c 58400000 setarg 0x400000 
+7e7d 9846fc00 idiv temp 
+7e7e 20407d2e call get_div_result 
+7e7f 67e109fc store 2 ,mem_omega 
+7e80 1a307e00 lshift16 rega ,pdata 
+7e81 1feb7e00 rshift2 pdata ,pdata 
+7e82 9846fc00 idiv temp 
+7e83 20407d2e call get_div_result 
+7e84 e7e10005 istore 2 ,contw 
+7e85 1a4d7e00 lshift8 regb ,pdata 
+7e86 1fe37e00 rshift pdata ,pdata 
+7e87 9846fc00 idiv temp 
+7e88 20407d2e call get_div_result 
+7e89 e7e10005 istore 2 ,contw 
+7e8a 20600000 rtn 
+
+calc_b1:
+7e8b 1a707e00 lshift16 regc ,pdata 
+7e8c 1feb7e00 rshift2 pdata ,pdata 
+7e8d 9a46fc00 idiv regb 
+7e8e 20407d2e call get_div_result 
+7e8f 67e10a02 store 2 ,mem_b1 
+7e90 6fe089f6 fetch 1 ,mem_vdk 
+7e91 20407df1 call lshift6 
+7e92 9a26fc00 idiv rega 
+7e93 20407d2e call get_div_result 
+7e94 e7e10005 istore 2 ,contw 
+7e95 20600000 rtn 
+
+calc_b2:
+7e96 6fe089f9 fetch 1 ,mem_vok + 1 
+7e97 20407dee call lshift14 
+7e98 9a46fc00 idiv regb 
+7e99 20407d2e call get_div_result 
+7e9a 67e10a06 store 2 ,mem_b2 
+7e9b 6fe089f7 fetch 1 ,mem_vdk + 1 
+7e9c 20407df1 call lshift6 
+7e9d 9a26fc00 idiv rega 
+7e9e 20407d2e call get_div_result 
+7e9f e7e10005 istore 2 ,contw 
+7ea0 20600000 rtn 
+
+tx_iq_cal:
+7ea1 d8a00a2a arg mem_q ,contw 
+7ea2 df200002 arg 2 ,loopcnt 
+7ea3 20407c59 call memset0 
+7ea4 d8e00004 arg 4 ,queue 
+
+tx_iq_cal_loop:
+7ea5 20407ec1 call calc_mk1 
+7ea6 20407ec4 call calc_d 
+7ea7 20407ec7 call calc_c 
+7ea8 20407ed0 call calc_est1 
+7ea9 20407ed6 call calc_est2 
+7eaa 20407edc call calc_u1 
+7eab 20407ee2 call calc_u2 
+7eac 20407ee8 call calc_qest 
+7ead 19609620 increase 32 ,timeup 
+7eae 18e08fff increase -1 ,queue 
+7eaf 2422fea5 nbranch tx_iq_cal_loop ,zero 
+
+calc_tx_c22:
+7eb0 6fe20a2a fetch 4 ,mem_q 
+7eb1 d8c00100 arg 0x100 ,contr 
+7eb2 98c0d600 iadd contr ,rege 
+7eb3 6fe20a2e fetch 4 ,mem_q + 4 
+7eb4 9fe80400 imults pdata ,temp 
+7eb5 58010000 setarg 0x10000 
+7eb6 98467e00 isub temp ,pdata 
+7eb7 20407e01 call sqrt 
+7eb8 1a427e00 deposit regb 
+7eb9 9d680400 imults rege ,temp 
+7eba 58000000 setarg 0 
+7ebb 79207e1c set1 28 ,pdata 
+7ebc 20407e12 call signed_div 
+7ebd d8401000 arg 0x1000 ,temp 
+7ebe 98467e00 isub temp ,pdata 
+7ebf 1fe67e00 sub pdata ,0 ,pdata 
+7ec0 20600000 rtn 
+
+calc_mk1:
+7ec1 19620c00 copy timeup ,contr 
+7ec2 df200008 arg 8 ,loopcnt 
+7ec3 20207d28 branch calc_average 
+
+calc_d:
+7ec4 98002400 iforce regb 
+7ec5 df200008 arg 8 ,loopcnt 
+7ec6 20207d28 branch calc_average 
+
+calc_c:
+7ec7 9a40a600 iadd regb ,regc 
+7ec8 684889f9 fetcht 1 ,mem_vok + 1 
+7ec9 984f8400 imul32 temp ,temp 
+7eca 6fe089f8 fetch 1 ,mem_vok 
+7ecb 9a4ffe00 imul32 regb ,pdata 
+7ecc 9840fe00 iadd temp ,pdata 
+7ecd 1ff1fe00 rshift4 pdata ,pdata 
+7ece 1fe92200 rshift3 pdata ,rega 
+7ecf 20600000 rtn 
+
+calc_est1:
+7ed0 6fe109fe fetch 2 ,mem_omega + 2 
+7ed1 9a6f8400 imul32 regc ,temp 
+7ed2 6fe109fc fetch 2 ,mem_omega 
+7ed3 9a2ffe00 imul32 rega ,pdata 
+7ed4 98462400 isub temp ,regb 
+7ed5 20600000 rtn 
+
+calc_est2:
+7ed6 6fe109fe fetch 2 ,mem_omega + 2 
+7ed7 9a2f8400 imul32 rega ,temp 
+7ed8 efe10006 ifetch 2 ,contr 
+7ed9 9a6ffe00 imul32 regc ,pdata 
+7eda 98462200 isub temp ,rega 
+7edb 20600000 rtn 
+
+calc_u1:
+7edc 6fe089f8 fetch 1 ,mem_vok 
+7edd 20407f03 call mults_rshift7 
+7ede 9a20ee00 iadd rega ,regf 
+7edf 19622600 copy timeup ,regc 
+7ee0 d8a00a0a arg mem_u1 ,contw 
+7ee1 20207f06 branch theta_mul 
+
+calc_u2:
+7ee2 6fe089f9 fetch 1 ,mem_vok + 1 
+7ee3 20407f03 call mults_rshift7 
+7ee4 9a20ee00 iadd rega ,regf 
+7ee5 1960a610 add timeup ,16 ,regc 
+7ee6 d8a00a1a arg mem_u2 ,contw 
+7ee7 20207f06 branch theta_mul 
+
+calc_qest:
+7ee8 52406e00 aligned regb ,regf 
+7ee9 6a410a02 fetchr regb ,2 ,mem_b1 
+7eea 6a610a06 fetchr regc ,2 ,mem_b2 
+7eeb da200a0a arg mem_u1 ,rega 
+7eec ddc00a1a arg mem_u2 ,nap 
+7eed d8a00a2a arg mem_q ,contw 
+7eee 20407ef4 call calc_q 
+7eef 20407ef4 call calc_q 
+7ef0 6a410a04 fetchr regb ,2 ,mem_b1 + 2 
+7ef1 6a610a08 fetchr regc ,2 ,mem_b2 + 2 
+7ef2 20407ef4 call calc_q 
+7ef3 20207ef4 branch calc_q 
+
+calc_q:
+7ef4 efe20011 ifetch 4 ,rega 
+7ef5 18c22200 copy contr ,rega 
+7ef6 9a485600 imults regb ,rege 
+7ef7 efe2002e ifetch 4 ,nap 
+7ef8 18c25c00 copy contr ,nap 
+7ef9 9a687e00 imults regc ,pdata 
+7efa 9d60fe00 iadd rege ,pdata 
+7efb 1fed7e00 lshift8 pdata ,pdata 
+7efc 1ee20400 copy regf ,temp 
+7efd 20407e12 call signed_div 
+7efe ed620005 ifetchr rege ,4 ,contw 
+7eff 9d667e00 isub rege ,pdata 
+7f00 1fe63000 sub pdata ,0 ,regd 
+7f01 e3020005 istorer regd ,4 ,contw 
+7f02 20600000 rtn 
+
+mults_rshift7:
+7f03 9a480400 imults regb ,temp 
+7f04 50407e00 preload temp 
+7f05 20207df4 branch rshift7 
+
+theta_mul:
+7f06 d9000004 arg 4 ,debug 
+7f07 ddc09400 arg mem_theta ,nap 
+
+theta_mul_loop0:
+7f08 dd600000 arg 0 ,rege 
+7f09 df200008 arg 8 ,loopcnt 
+
+theta_mul_loop1:
+7f0a efe10013 ifetch 2 ,regc 
+7f0b 18c22600 copy contr ,regc 
+7f0c 9ee67e00 isub regf ,pdata 
+7f0d eb80802e ifetchr fhs_misc ,1 ,nap 
+7f0e 18c25c00 copy contr ,nap 
+7f0f 53800400 aligned fhs_misc ,temp 
+7f10 98487e00 imults temp ,pdata 
+7f11 9d60d600 iadd rege ,rege 
+7f12 c2007f0a loop theta_mul_loop1 
+7f13 1d6cfe00 rshift8 rege ,pdata 
+7f14 1fe37e00 rshift pdata ,pdata 
+7f15 e7e20005 istore 4 ,contw 
+7f16 1a60a7f0 increase -16 ,regc 
+7f17 190091ff increase -1 ,debug 
+7f18 2422ff08 nbranch theta_mul_loop0 ,zero 
+7f19 20600000 rtn 
+
+clear_wake:
+7f1a 58000000 setarg 0 
+7f1b 79207e13 set1 19 ,pdata 
+7f1c 67e4009e store 8 ,mem_gpio_wakeup_low 
+7f1d 20600000 rtn 
+
Index: output/ramcode.rom
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/ramcode.rom	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/ramcode.rom	(working copy)
@@ -0,0 +1,1440 @@
+c2840017
+c0000021
+c00180a2
+c041003e
+c0450031
+c045803b
+c04f804e
+c0520050
+c056805a
+c0610353
+c062bd33
+c0630367
+c0638369
+c0640373
+c06604b0
+c0678407
+c0688408
+c0690408
+c06a0410
+c06b844c
+c06d8343
+c06e0409
+2020137c
+c17f8000
+c041040c
+c06f838c
+c070039b
+c07403a5
+c07483ba
+c07503e9
+c07583f4
+c0760401
+2020137c
+20403cfe
+24340802
+6fe0cbf5
+203a0802
+6fe0c924
+c07f8802
+1fe20e00
+6fe2098a
+afec0000
+204082fb
+20200802
+6fe0804c
+793ffe05
+793ffe02
+67e0804c
+20200b40
+6fe0c1eb
+c04a0035
+c04f8038
+2020121b
+708a3910
+708a3a00
+20201226
+708a39b0
+708a3a00
+20201226
+708a7503
+708a8500
+20201252
+18002a08
+18002a00
+7850fc00
+78507c00
+782f7c00
+70890005
+20000002
+70890000
+2040115d
+708a1600
+708a0a80
+6ff08a09
+793ffe07
+67f08a09
+708a0b00
+2020129c
+70007f00
+202013b7
+20401417
+6fe1c174
+207a0000
+6fe0cd4e
+247a0000
+6fe0cd4f
+247a0000
+6fe0cd73
+247a0000
+20201491
+20406d29
+20400061
+2040007e
+2040009c
+20758000
+20403c54
+20203c50
+20758000
+20403146
+204025f1
+20402296
+20403cac
+2040006f
+6848cc10
+20405f89
+20400482
+6fe44bbd
+c29e8302
+c289c550
+c2894511
+20600000
+58004d77
+67e14667
+20400466
+704c9800
+58000195
+67e148eb
+5800012c
+e7e10005
+5800014b
+e7e10005
+20600000
+6ff08121
+58000000
+67f0804d
+20205b9a
+6848c919
+20403e71
+6848c91a
+20403e71
+6848c924
+6048c926
+20403e71
+58004c1a
+67e14c42
+58004c22
+67e14c44
+58004c36
+67e14c46
+6fe14c42
+1fe22400
+df200008
+e8408012
+18467cff
+2442be71
+1a40a401
+c200008e
+6fe14c44
+1fe22400
+df200014
+e8408012
+284ffe07
+2440dfa3
+1a40a401
+c2000096
+20203d48
+585d4800
+67e248c0
+6fe0c4a9
+c4000000
+204046ed
+20600000
+204000a6
+20400131
+204002b9
+20200813
+2040008b
+2040012b
+58000000
+67e14c95
+d8c04c48
+d8a04c5c
+df200014
+20407ca1
+58004c48
+67e14c8f
+58004c84
+67e14c91
+20400129
+20400123
+20400127
+6fe14c95
+1fe0fe01
+67e14c95
+c2848118
+6848cc0f
+20405f7d
+242080b5
+204000df
+204000f9
+20400129
+6fe14c46
+1fe22400
+704c9400
+e8408012
+6fe14c44
+1fe22200
+1a222600
+df200014
+efe08011
+98467c00
+202280d3
+1a20a201
+c20000c7
+1a40a401
+6fe0cc94
+1fe0fe01
+67e0cc94
+1fe67c0a
+202100c2
+20600000
+6fe14c8f
+1fe20a00
+1a227e00
+9a667e00
+98a08a00
+6fe14c91
+1fe22600
+6fe0cc94
+9a60a600
+efe08013
+e7e08005
+202000cc
+20000014
+704c9700
+2040012b
+704c9400
+20400125
+204000ec
+20400123
+204000ec
+1fe67c09
+202100e3
+20400125
+204000ec
+20200127
+704c9300
+20000096
+2040010c
+6fe14c91
+1fe20a00
+6fe0cc94
+98a08a00
+6fe0cc93
+e7e08005
+6fe0cc94
+1fe0fe01
+67e0cc94
+20600000
+6fe14c44
+1fe22400
+704c9400
+704c9300
+e8408012
+284ffe07
+20208106
+20405f8d
+2040010c
+e8408012
+20405f89
+e8408012
+20405fa3
+1a40a401
+6fe14c8f
+204000f0
+1fe67c13
+202100fc
+20600000
+6fe14c42
+1fe22600
+df200008
+e8408013
+20405f7d
+6fe0cc93
+1fe37e00
+7920fe07
+67e0cc93
+1a60a601
+c200010f
+20600000
+6848cc10
+20405f8d
+20000014
+6848cc10
+20405f89
+20001770
+6fe0cc97
+1fe0fe01
+67e0cc97
+c2835c7b
+202000a6
+6848cc0f
+20205f89
+6848cc0f
+20205f8d
+6848cc0f
+20205f74
+6848cc0e
+20205f89
+6848cc0e
+20205f8d
+704c9800
+6fe14c99
+67e14c9b
+20600000
+da204c48
+da404c5c
+df200014
+20407d33
+2422812d
+2040016b
+205a012d
+20400177
+6fe0cbac
+247a0000
+6fe0cd70
+c1008000
+c1010000
+c1020000
+704c9400
+da204c48
+da404c70
+e8408011
+efe08012
+9842fe00
+203a0163
+67e0cc93
+6048cca3
+e0408012
+704ca101
+704ca400
+6fe0cc93
+c3000158
+6fe0cc94
+1feffe08
+6848cca4
+9840fe00
+d8c04cae
+98c08c00
+efe08006
+67e0cca2
+204001a5
+204001f5
+20400283
+6fe0cc93
+1fe37e00
+67e0cc93
+6fe0cca3
+1fe37e00
+67e0cca3
+6fe0cca4
+1fe0fe01
+67e0cca4
+1fe67c07
+2021014b
+1a20a201
+1a40a401
+6fe0cc94
+1fe0fe01
+67e0cc94
+1fe67c13
+20210142
+20600000
+6fe44c48
+247a0000
+6fe44c50
+247a0000
+6fe24c58
+247a0000
+6fe0cd73
+247a0000
+6fe0cd70
+c1030000
+704d7000
+20600000
+704bac00
+704c9e00
+da204c48
+df200014
+704c9d00
+efe08011
+203a01a0
+6848cc9d
+18408401
+6048cc9d
+1fe20400
+1fe0ffff
+98417e00
+2422817e
+6fe0cc9d
+6848cc9e
+98408400
+6048cc9e
+1fe67c01
+202101a0
+18467c02
+202101a0
+704c9400
+704c9f00
+e8408011
+da404c48
+6fe0cc94
+1fe0fe01
+67e0cc94
+1fe67c13
+242101a0
+efe08012
+98417c00
+202281a3
+6fe0cc9f
+1fe0fe01
+67e0cc9f
+1fe67c01
+202101a3
+704bac01
+20600000
+1a20a201
+c200017b
+20600000
+1a40a401
+20200191
+6fe0cca3
+245a020a
+6fe0cd4e
+245a01bb
+6fe0cd5d
+6848cd4e
+9842fe00
+202281b8
+6fe0cca2
+c01481c6
+1fe67c45
+24610000
+d840003a
+98467e00
+24610000
+d8c04d5f
+98c08c00
+efe08006
+202001e5
+6fe0cca2
+c02601c8
+20600000
+6fe0cca2
+c02901ca
+c02881ce
+c02801d2
+c02781d6
+c07001da
+c01601e2
+c00b01e7
+c00381ed
+c00201f1
+20600000
+6fe0cd5e
+202001e5
+6fe0cd6b
+202001e5
+6fe0cd6c
+207a0000
+5800004b
+202001e5
+6fe0cd6c
+207a0000
+5800004e
+202001e5
+6fe0cd6c
+207a0000
+5800004a
+202001e5
+6fe0cd6c
+207a0000
+5800004d
+202001e5
+6fe0cd6d
+207a0000
+6fe0cfa9
+c00001e0
+580000fd
+202001e5
+580000aa
+202001e5
+6fe0cd6e
+207a0000
+580000ab
+67e0cca2
+20600000
+6fe0cd6f
+207a0000
+704fa901
+704c1606
+58000000
+202001e5
+6fe0cd6f
+207a0000
+704fa900
+202001ea
+6fe0cd6f
+207a0000
+704fa902
+202001ea
+6fe0cca2
+c023020c
+c0258212
+c0270218
+c025021a
+c026821c
+c052821e
+c0530225
+c0538227
+c0540229
+c054822b
+c0550236
+c056823d
+c0558244
+c056024f
+c07d8258
+20600000
+6fe0cca3
+c4000000
+704d730a
+20600000
+704d7300
+20600000
+6fe0cfa9
+c1000000
+c1008000
+704d710a
+704d7220
+2020025d
+704d7252
+6fe0cfa9
+c1000000
+c1008000
+704d7108
+2020025d
+704d7251
+20200213
+704d7250
+20200213
+704d724f
+20200213
+704d7204
+704d7101
+6fe0cfa9
+c000025d
+c000825d
+704d7108
+2020025d
+704d7206
+2020021f
+704d7219
+2020021f
+704d721b
+2020021f
+6fe0cfa9
+c0000230
+c0018233
+580000fc
+202001e5
+704d7108
+704d720f
+2020025d
+704d7109
+704d7214
+2020025d
+6fe0cfa9
+c000023a
+580000fd
+202001e5
+704d7109
+704d7212
+2020025d
+6fe0cfa9
+c0018241
+580000fa
+202001e5
+704d7108
+704d722c
+2020025d
+6fe0cfa9
+c000024b
+c000824d
+704d7101
+704d722c
+20400206
+2020025d
+704d7108
+20200248
+704d7102
+20200248
+6fe0cfa9
+c0000255
+c0008255
+704d7101
+704d7252
+2020025d
+704d7108
+704d722b
+2020025d
+6fe0cfa9
+c1800000
+704d7108
+704d7207
+2020025d
+704ca200
+6fe0cca3
+c3000264
+6fe0cd70
+c0018270
+704d7001
+20600000
+704d7004
+20600000
+704d7006
+20600000
+67e0cc02
+6048cc04
+20407d92
+704c0100
+202004ef
+6fe0cd71
+d8400000
+20400268
+704d7002
+20600000
+704d7003
+6fe0cd71
+6848cd72
+20200268
+704c0100
+6fe0cd71
+d8400000
+20400268
+6fe0cd73
+203a0266
+704d7005
+20600000
+2020026a
+704d7000
+dfe00000
+d8400000
+20200268
+6fe0cca2
+d84000e0
+98467c00
+24210295
+1fe67ce7
+242102b2
+1fe17e07
+1fe20e00
+6fe0cca3
+c2800291
+6fe0cca5
+f93ffe00
+67e0cca5
+20600000
+6fe0cca5
+f9207e00
+67e0cca5
+20600000
+704cad00
+6fe0cca3
+c28002a6
+6848cca2
+df200006
+d8c04ca7
+efe08006
+98467c00
+242282a4
+efe08006
+18c08dfe
+e7e08006
+207a0000
+18c08c01
+e0408006
+c200029b
+20600000
+6848cca2
+df200006
+d8c04ca7
+efe08006
+203a02af
+98467c00
+20628000
+c20002a9
+20600000
+18c08dff
+e0408006
+20600000
+704d7401
+6fe0cca3
+2fec0000
+204082b7
+20200295
+704d7402
+20600000
+204002cd
+704d4e00
+704d4f00
+704d5000
+704feb00
+6fe0cca5
+245a02f7
+d8c04ca7
+df200006
+efe08006
+1fe67c7f
+204282f9
+1fe67cde
+204282fb
+c20002c2
+6fe0cd51
+203a02dd
+6fe0c93f
+c00002e2
+20600000
+6fe0cd51
+247a0000
+6848c924
+18467cff
+20628000
+20405f7d
+242082d9
+df200008
+d8a04ca5
+20407c68
+704ca7de
+20600000
+6fe0cca7
+c1ef0000
+704ca700
+20600000
+6fe0cd50
+207a0000
+6fe0c93f
+c00002ed
+20600000
+6fe14ca7
+68494d54
+98467c00
+202282e9
+18508400
+98467c00
+24628000
+704feb01
+20600000
+704feb00
+204002fb
+704d5800
+204002fd
+704ca100
+6fe1488b
+247a0000
+58000000
+67e14ac4
+20400494
+20400496
+20204741
+704d4f01
+20600000
+704d4e01
+20600000
+704d5001
+20600000
+6fe14fc2
+d8400528
+98467c00
+24610000
+2020137a
+6fe0c93f
+c0000305
+20600000
+db000050
+58000400
+9b06fc00
+20407d31
+1807fe00
+67e1095c
+dfe01fcc
+d8400004
+dd600004
+2020030f
+60488964
+da204faa
+da600000
+1fe22400
+68488964
+20405dc7
+6fe44faa
+684c4fb2
+9841fe00
+684c4fba
+9841fe00
+203a0322
+1a60a601
+6fe1095c
+9a667c00
+24210342
+1a427e00
+9b067e00
+20200312
+1a667c00
+20228332
+1a427e00
+9b00fe00
+9d667e00
+1fe22400
+68488964
+20405dc7
+6fe44faa
+684c4fb2
+9841fe00
+684c4fba
+9841fe00
+203a0334
+1a427e00
+20200326
+6560cfc2
+20600000
+58001fd0
+9a467e00
+67e14fc2
+1a427e00
+9d60fe00
+68488964
+da204faa
+20405dc7
+6fe0c93f
+c000033f
+20600000
+6fe34faa
+67e2499a
+202044fe
+2020137a
+6fe44bbd
+c29e8346
+2020450e
+6fe0c93f
+c0000349
+20600000
+68494fc2
+58001fd0
+98460400
+da20499a
+df200004
+20405d82
+68494fc2
+18408404
+60494fc2
+20600000
+20400476
+6fe44bbd
+c30a0361
+20405ff1
+20406018
+6849449b
+6fe144a7
+1fe6fc02
+20407d2e
+98467c00
+20210354
+20403dd4
+6fe0c4a9
+c280be39
+6fe0cd51
+205a02dd
+6fe0cd50
+247a0000
+6fe0c93f
+c0004726
+704926ff
+20203d35
+20407f1a
+20400482
+20403d43
+6fe44bbd
+c40a0000
+6fe0c905
+c1810000
+6fe0c904
+d84000c0
+20205fb3
+20407f1a
+20403ea3
+6848c919
+20405f56
+6848c91a
+20405f56
+6848c924
+20405f5a
+6fe14c44
+1fe22400
+df200014
+e8408012
+284ffe07
+2440df8d
+1a40a401
+c200037e
+6fe14c42
+1fe22400
+df200008
+e8408012
+18467cff
+2442df56
+1a40a401
+c2000386
+20600000
+70489300
+6fe0c887
+c0810396
+704bf800
+6fe14bf6
+1fe0fe01
+67e14bf6
+6fe0cbf6
+c00022d8
+20600000
+6fe0cbf8
+1fe0fe01
+67e0cbf8
+c07fa303
+202022d8
+6fe0c887
+c17f8000
+c001039f
+202022fe
+6fe0c862
+203a230e
+6fe24813
+207a0000
+67e24899
+2020230e
+6fe14891
+1fe17ee0
+203a03ac
+6fe14891
+1fe0fe01
+67e14891
+20600000
+20402586
+20402645
+242c258d
+2437a58d
+204003b2
+20202572
+2040265c
+6fe0c7ac
+2fe1f008
+24608000
+6fe0c7ad
+c07f843e
+67e0cd59
+20600000
+2040261b
+243403bf
+204003ce
+204026d5
+20202612
+6fe44c48
+243a2612
+6fe44c50
+243a2612
+6fe24c58
+243a2612
+6fe0c8c5
+c1008000
+20402689
+204026a4
+24740000
+6fe0cbf3
+245a3d40
+6fe24863
+202026a1
+7048ae00
+6961015f
+34730200
+20402645
+6fe0c833
+c000a63b
+242c03d9
+243783d9
+204003b2
+704bf300
+2020263b
+6fe0c8af
+247a0000
+6fe148ab
+1fe0fe01
+67e148ab
+6fe0c8ab
+c07fa663
+2feffe06
+204083e4
+20402668
+202003cf
+204000a6
+6fe0cc49
+1fe67c09
+2022c5d9
+20600000
+6fe0c8ae
+1fe0fe01
+67e0c8ae
+1fe17e03
+203a03ef
+20600000
+6fe24843
+684a4895
+98467c00
+2022a262
+20202686
+78347c00
+20401417
+6fe1c174
+203a7d94
+6fe0cd4e
+243a7d94
+6fe0cd4f
+243a7d94
+6fe0cd73
+243a7d94
+6fe0c8c5
+c000fd94
+202026a9
+6fe24843
+684a4895
+98467c00
+2422a6d6
+7041eb9f
+20600000
+58000000
+20600000
+204048ba
+2040786c
+20203ea3
+6fe0cbf5
+245a7797
+704bf500
+20207787
+1a627e00
+c01c8415
+c01e0418
+c01d0431
+20204251
+2040042c
+2040445f
+20204771
+2040042c
+6fe24843
+67e24899
+67e2499a
+2040256a
+204047f0
+2040445f
+20204768
+704c0b02
+2040059d
+704be003
+20600000
+df200006
+d8c04c04
+efe08006
+c029842c
+c01c842c
+c023842c
+c2000426
+20600000
+704d5a03
+704ca101
+20600000
+704d5801
+20600000
+6fe0c8ad
+243a043e
+6fe0c893
+c0010437
+c001c753
+20204750
+6fe44bbd
+c297c72b
+c298472b
+c31d4720
+6fe2499a
+203a02ed
+20204720
+7048ad00
+2040263c
+5fffffff
+67e44863
+58000000
+67e3c8d8
+704bf301
+202003c8
+6fe0c902
+203a044a
+7048ef4d
+20600000
+7048ef4b
+20600000
+20403db7
+20400446
+20404880
+204022c2
+20402542
+204046e6
+20400469
+20400471
+20400476
+2040047a
+2040441a
+20404450
+20403f3d
+20404462
+20400487
+204004a2
+204004a7
+2040045f
+202004aa
+6fe0cfeb
+203a0466
+6fe0cfea
+1fe0ffff
+203a02eb
+67e0cfea
+20600000
+6fe0cfe9
+67e0cfea
+20600000
+6fe0cd58
+207a0000
+704d5800
+6fe0c8a9
+247a0000
+704ca101
+2040261b
+202003ce
+da604d5b
+da400474
+202031cf
+704d5a00
+20600000
+6fe0c4a9
+c3808000
+6fe0c93f
+c00047e8
+6fe14ac4
+207a0000
+6fe0cc16
+207a0000
+1fe0ffff
+67e0cc16
+c280484a
+2020483c
+2040483c
+20400494
+20400496
+6848cc13
+20204855
+6fe0cc11
+c17f8000
+6fe0cbb9
+247a0000
+6fe14ac4
+207a0000
+6fe14bd0
+68494ac4
+98460400
+6fe14c14
+98467e00
+20210498
+20400496
+6848cc11
+20205f89
+6848cc12
+20205f89
+2040049d
+6fe0cd59
+c3008494
+6848cc11
+20205f8d
+6fe0cd59
+c3000496
+704936ff
+6848cc12
+20205f8d
+da604c9b
+da4004a5
+202031d6
+704c9801
+2020325c
+da604d73
+da400266
+202031cf
+da604ac4
+da4004ad
+202031d6
+6fe0c93f
+c000043e
+20204236
+78547c00
+704b9d00
+704b9e00
+704b9f00
+6fe0cd70
+c000826d
+c0010272
+c0018272
+c0020276
+c003027f
+6fe0cca1
+203a04c9
+1fe0ffff
+67e0cca1
+204004d7
+704d5b0a
+2040445f
+6fe0cd70
+c002827e
+d8a04c01
+df20000a
+20407c68
+204004da
+704c0b00
+20600000
+6fe0cd5a
+207a0000
+6fe0cd58
+247a0000
+6848cd5c
+6fe0cd5b
+98467c00
+67e0cd5c
+20628000
+d8a04c01
+df20000a
+20407c68
+20407d92
+202004ef
+70417703
+704ac10a
+20600000
+6fe0cd74
+c0010567
+d8c04ca7
+df200006
+efe08006
+1fe67ce7
+24210502
+c20004de
+6fe0cc9e
+205a04f8
+704c0100
+6fe0cca7
+1fe67c7f
+202284fb
+d8c04ca5
+d8a04c02
+df200008
+efe08006
+c03f8500
+e7e08005
+c20004eb
+20400572
+6fe0cc0b
+c000fd92
+c00104f6
+c00184f6
+c00204f6
+c00284f6
+20404095
+20207d92
+d8a04ca5
+df200009
+20207c68
+6fe14ca5
+67e14c02
+6fe34ca8
+67e34c04
+202004ef
+58000000
+202004ed
+704c0103
+6848cc9e
+18467c00
+20228567
+c074051e
+c0748521
+c0750524
+c0758527
+c076052a
+c076852d
+c0770530
+c0778533
+c0780536
+c0788539
+c079053c
+c079853f
+c07a0542
+c07a8545
+c07b0548
+c07b854b
+c07c054e
+c07c8551
+c07d0554
+c07d8557
+c07e055c
+c07e855f
+c07f856e
+202004ef
+58000183
+67e14c02
+202004ef
+580000cd
+67e14c02
+202004ef
+580000b7
+67e14c02
+202004ef
+580000b6
+67e14c02
+202004ef
+580000b5
+67e14c02
+202004ef
+580000ea
+67e14c02
+202004ef
+580000e9
+67e14c02
+202004ef
+580000e2
+67e14c02
+202004ef
+58000194
+67e14c02
+202004ef
+5800018a
+67e14c02
+202004ef
+58000192
+67e14c02
+202004ef
+58000070
+67e14c02
+202004ef
+5800006f
+67e14c02
+202004ef
+5800022a
+67e14c02
+202004ef
+58000225
+67e14c02
+202004ef
+58000224
+67e14c02
+202004ef
+58000226
+67e14c02
+202004ef
+58000227
+67e14c02
+202004ef
+58000221
+67e14c02
+202004ef
+6fe0cfa9
+c1000000
+58000223
+67e14c02
+202004ef
+58000030
+67e14c02
+202004ef
+6fe0cfa9
+c0008564
+580001ae
+67e14c02
+202004ef
+58000307
+67e14c02
+202004ef
+704ca102
+6fe0cc9e
+205a04f8
+704d7400
+58000003
+67e1cc01
+202004ef
+704c0102
+58000002
+67e0cc02
+202004ef
+6fe0c93f
+c0800579
+704d5800
+6fe14c01
+245a042f
+6fe34c04
+245a042f
+6fe0cc01
+c0000584
+c000857f
+c001858d
+c0010595
+20600000
+704c0b01
+d8c04c01
+d8a048d8
+df200007
+20207ca1
+704c0b02
+2040059d
+20400424
+6fe0cd5a
+67e0cc03
+d8c04c01
+d8a04bde
+df200009
+20207ca1
+704c0b04
+2040059d
+58000003
+20404621
+d8c04c02
+d8a04bdf
+df200002
+20207ca1
+704c0b05
+2040059d
+58000002
+67e44bde
+67e44be7
+6fe0cc02
+67e0cbdf
+20600000
+df200012
+d8a04bde
+20207c68
Index: output/romcode.rom
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/romcode.rom	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/romcode.rom	(working copy)
@@ -0,0 +1,30720 @@
+204013c3
+44804000
+20800000
+20403146
+20401246
+20405c85
+20401384
+20404ce4
+4480c000
+204061c5
+2040529e
+204076ea
+20403130
+44814000
+2055b13d
+20406dda
+20406dfc
+20559465
+4481c000
+20406fa2
+204074cd
+20406ddd
+20401b20
+20400838
+2040314e
+44824000
+20400890
+20400b05
+20400b77
+20400821
+2040215f
+2040148d
+20200812
+20400826
+c6848000
+793f8009
+20400a30
+2020163f
+4482c000
+20400a6b
+2422882f
+20400a17
+1a208c01
+efe08006
+c28015ac
+c2808969
+20200bdc
+20400a38
+1f227c00
+20628000
+20400a17
+6fe08030
+c28188d3
+6fe08031
+c2808969
+20200bdc
+6fe0c1de
+207a0000
+c0008848
+c001084d
+c0018850
+c0028855
+c00d8845
+20400a64
+20628000
+20400a67
+20628000
+7041de00
+20600000
+7002e01b
+7041de00
+20600000
+7920001c
+793f801e
+70008cff
+70008a1f
+20200843
+793f801c
+18003600
+20200843
+20400a67
+20628000
+18000401
+7000bd05
+2020085c
+44834000
+6fe341e0
+20000001
+70479201
+70005503
+2020085b
+18000425
+4483c000
+6fe080a7
+203a0862
+1fe9fe00
+1ff27e00
+1fe0ffff
+67e0c0ae
+67e080a6
+70008b1f
+793f800c
+20400a48
+24228884
+2040135d
+67e08077
+6048807c
+6fe341e0
+67e30040
+44844001
+20407cb5
+6848807c
+18007e00
+2841fe01
+7d20fe05
+79207e03
+67e08030
+70095b03
+204077a7
+18007e00
+7920fe04
+67e0804c
+58000000
+79207e01
+67e08031
+7834fc00
+20400a30
+7854fc00
+18000e03
+6fe140c1
+20407ca8
+20200843
+4484c001
+6fe341e0
+67e30040
+2841fe01
+2020888a
+20200843
+d8a00a01
+df200008
+20407c59
+70095b04
+204077a7
+20200843
+c68e0000
+18000e01
+20407cb6
+7d3a001c
+243a0896
+20600000
+44854001
+684940c3
+18000e04
+20400f40
+20740000
+204010f6
+18004800
+20618000
+793f800b
+793f8000
+1c40c201
+280ffe1e
+7920c802
+2c200400
+242088bf
+4485c001
+6fe08012
+1fe0fe01
+67e08012
+2040112a
+20401124
+20401144
+2040133e
+20401343
+20401351
+20400e7c
+204008b2
+2020089d
+44864001
+6fe0808a
+1fe0ffff
+67e0808a
+20610000
+70008a1f
+6fe0808c
+1fe0ffff
+67e0808c
+20610000
+7940001e
+70008cff
+20600000
+4486c001
+2040112a
+2040111e
+20401144
+20401348
+204012d3
+204012f9
+202c08c9
+204008b2
+202008a0
+44874001
+2040127d
+20401359
+20400d43
+793f8001
+c6858000
+6fe08013
+1fe0fe01
+67e08013
+20600000
+4487c001
+7834fc00
+78387c00
+6fe140bd
+203a08db
+18000e08
+20407cb6
+247a0000
+44884002
+684940bf
+18000e28
+20400f40
+20340914
+18000e03
+20407cb6
+243a08f0
+6fe0804c
+c28208e6
+202008e9
+d8a00a01
+df200008
+20407c59
+4488c002
+70003000
+2040529f
+70479200
+70095b13
+204077a7
+20200914
+44894002
+18001600
+34730200
+6fe080a8
+1fe0ffff
+9c42fe00
+2fe00600
+242088f0
+18827e00
+67e080e5
+18004c00
+18004800
+4489c002
+20218914
+2040112e
+69610157
+34730200
+448a4002
+6fe200a8
+98004200
+1fe0fe01
+67e200a8
+280ffe0c
+7920c802
+2c200400
+24208928
+6fe0800c
+1fe0fe01
+67e0800c
+20401124
+2040133e
+20401343
+20401351
+20400e7c
+2040091a
+202008fc
+448ac002
+7854fc00
+6fe140bd
+207a0000
+18000e08
+20207ca8
+448b4002
+6fe0808b
+1fe0ffff
+67e0808b
+20610000
+70008b1f
+6fe080a6
+1fe0ffff
+67e080a6
+20610000
+7940000c
+6fe0c0ae
+67e080a6
+20600000
+448bc002
+2040111e
+20401348
+204012d3
+204012f9
+202c0930
+2040091a
+20200901
+20400e7c
+6fe0800d
+1fe0fe01
+67e0800d
+18003600
+6fe200a8
+448c4003
+2040133c
+2040112e
+1cc0cc01
+1c2143fd
+1c8149fc
+20401124
+2040133e
+20401343
+20401351
+1c427e00
+67e200b0
+18000800
+18000202
+20401359
+20400f8a
+448cc003
+2040133a
+1c21c202
+1c8149fc
+2040111e
+20401348
+204012d3
+204012f9
+204c0e7c
+202c0955
+6fe08010
+203a08fc
+1fe0ffff
+67e08010
+20200936
+448d4003
+6fe0800e
+1fe0fe01
+67e0800e
+20400c42
+79200033
+20400aff
+202c0961
+793f8033
+20400c62
+243a095a
+202008fc
+448dc003
+793f8033
+6fe08030
+793ffe03
+67e08030
+20400c4d
+7854fc00
+20600000
+448e4003
+7834fc00
+78387c00
+204009e3
+20740000
+2040133c
+1c40c201
+20401134
+18004803
+20406483
+20400c96
+20401124
+2040133e
+20401343
+20401351
+20400f86
+448ec003
+204052b1
+20400af1
+24368982
+20401376
+20400f4c
+6fe0800f
+1fe0fe01
+67e0800f
+448f4003
+2040646b
+2040098d
+24748000
+20400f1c
+243a098a
+7854fc00
+20600000
+20400c96
+20400ae7
+20200979
+20368990
+2040136d
+2021099e
+204009a9
+2434099e
+6fe0804c
+c4020000
+c3818000
+6fe0804b
+c3818000
+204009b0
+247a0000
+6fe080bd
+1fe0ffff
+67e080bd
+247a0000
+20205614
+448fc003
+20400c6a
+7854fc00
+6fe0804c
+c28209a4
+20600000
+6fe0804c
+c3818000
+d8a00a01
+df200008
+20207c59
+44904004
+78347c00
+6fe0804b
+c4018000
+204009b0
+247a0000
+20207d94
+6fe08072
+1fe0ffff
+67e08072
+20600000
+4490c004
+6fe08030
+c28389bd
+6fe08877
+203a09bd
+70087700
+70095b18
+204077a7
+202009bd
+44914004
+20400a61
+6fe08030
+79207e07
+67e08030
+7041cd01
+6fe08055
+c08b09c5
+20600000
+70087701
+6fe08030
+793ffe07
+67e08030
+20600000
+4491c004
+78547c00
+6fe10032
+d840ffff
+98467c00
+24628000
+6fe20034
+203809d5
+9d067e00
+202009d6
+9c467e00
+1fe67c04
+24610000
+18007e00
+67e10032
+20207d92
+1fe20400
+604a0034
+44924004
+70464901
+5800ffff
+67e10032
+70007301
+20600000
+4492c004
+204009cb
+24740000
+78547c00
+70001120
+793f800b
+793f8031
+2040133c
+20400af3
+c50589f8
+20400c62
+243a09ea
+c5188a02
+44934004
+78547c00
+1c427e00
+67e240d1
+78387c00
+7834fc00
+70095b2a
+202077a7
+4493c004
+2040133a
+d8200010
+20400ae9
+79200031
+793f800b
+6fe08077
+98000800
+70001102
+202009ea
+6fe200b4
+1fe0fe08
+67e200b4
+78587c00
+7854fc00
+20401035
+20400c42
+44944005
+20400c89
+20368a0f
+20400c62
+243a0a09
+202009f0
+6fe08031
+793ffe01
+67e08031
+20401376
+2040105d
+78347c00
+70095b2b
+202077a7
+4494c005
+79200009
+1a227e00
+67e1001e
+18007258
+d8a00287
+1a208c01
+efe08006
+1a220c00
+c2807ca1
+d8a00030
+20407ca1
+78577c00
+6fe08077
+98000800
+70008801
+20348a29
+70008801
+6fe08030
+c4008000
+6fe08073
+67e08088
+6fe08074
+67e08089
+20600000
+44954005
+6fe1001e
+98000a00
+18007258
+d8c00287
+203b7ca1
+d8c00030
+20207ca1
+df200001
+68488015
+18408401
+2841fe01
+24208a3e
+d8400000
+60488015
+184ffe58
+da204040
+9a20a200
+efe08011
+c2808a46
+c3800000
+c3818000
+c2000a3a
+20600000
+4495c005
+da600a77
+20400a6e
+24628000
+1a227e00
+67e1001e
+18007c00
+20600000
+20400f49
+20208a58
+6fe1001e
+1fe08a17
+6fe08047
+e7e08005
+da600ab7
+20200a6e
+6fe08047
+2feffe03
+20208a5d
+18007c01
+20600000
+18007c00
+20600000
+da600ab4
+20200a6e
+6849001e
+da600adc
+20200a6e
+6848c1df
+da600a82
+20200a6e
+44964005
+684b41e0
+da600a7b
+20200a6e
+da600a88
+20200a6e
+da600ad3
+4496c005
+da204040
+df200001
+efe08011
+1a627a00
+1a20a258
+c2000a71
+18007c01
+20600000
+c2800a73
+c2818a73
+18007c00
+20600000
+c2818a7d
+c3000a73
+1a208c10
+efe30006
+98467c00
+20628000
+20200a73
+c3000a73
+1a208c16
+efe08006
+98467c00
+20628000
+20200a73
+c3008a73
+20400ac0
+20400aa4
+98467e00
+1fe0fe01
+20210a9e
+18c22400
+67e48964
+6fe0c6c1
+243a0a96
+6fe48964
+1a420c00
+1fe0fe05
+20200a99
+6fe48964
+1a420c00
+1fe0fe14
+24210a73
+18424200
+20400acc
+18007c00
+20600000
+98002400
+1a208c02
+efe10006
+203a0a9a
+20400acc
+20200a89
+1ff11600
+196c9600
+20228aae
+29601e0f
+24608000
+18511600
+196c9600
+24628000
+7920041c
+20600000
+18511600
+196c9600
+29601e0f
+24608000
+79207e1c
+20600000
+c3000a73
+18007c00
+20600000
+c3000a73
+1a208c01
+efe08006
+c2800a73
+1a208c17
+efe08006
+c3018a73
+18007c00
+20600000
+1a208c01
+e8408006
+1c427e00
+284ffe01
+1a208c04
+e8420006
+20608000
+1a208c08
+efe30006
+20401073
+1d027e00
+20600000
+1a208c02
+1a208a04
+efe10006
+98409600
+19627e00
+e7e20005
+20201692
+c3008a73
+20400ac0
+9b60fe00
+9b60fe00
+98e0fe00
+98467c00
+24210a73
+18007c00
+20600000
+c3000a73
+18427e00
+9a267c00
+203f0a73
+1a208c01
+efe08006
+c2800a73
+efe08011
+793ffe07
+e7e08011
+20200a73
+44974005
+2040133c
+1c40c201
+20401134
+18004803
+20401124
+2040133e
+20401343
+20401351
+20200f86
+4497c005
+2040133a
+1c40c201
+20401134
+18004803
+2040111e
+20400c37
+204012d8
+20401348
+204012d3
+204012f9
+246c0000
+2040127d
+20200d40
+44984006
+6fe080e5
+98000800
+18000201
+20400ae7
+20200af1
+6fe0c09b
+c4000000
+18000e04
+20407cb6
+247a0000
+684940b5
+18000e04
+20400f40
+20740000
+20400b15
+18000e04
+6fe140b7
+242c7ca8
+180a7e00
+9ea17e00
+20207ca8
+4498c006
+7000e500
+78587c00
+78577c00
+204010f6
+1c4143fc
+18004801
+2040112a
+2040111e
+7940001d
+6fe08006
+1fe0fe01
+67e08006
+20401144
+204012d3
+20401300
+246c0000
+44994006
+18003600
+2040114b
+6fe08007
+1fe0fe01
+67e08007
+2040112a
+2040133a
+1c21c202
+18004801
+20401124
+20401144
+2040133e
+2040134c
+1c427e00
+67e200b0
+20401351
+18000202
+18000800
+20401359
+20400f8a
+20400b3f
+1c2143fd
+1cc0cc01
+20600000
+4499c006
+6fe0c0d8
+207a0000
+d8a000f0
+6fe0c603
+1fe27200
+1fe0fe01
+e7e08005
+18a20400
+1fe0fe01
+67e141e9
+18420a00
+58000009
+e7e08005
+d8c04604
+20407ca1
+da60467f
+df200004
+20400b61
+da604669
+df200001
+20400b61
+1800020a
+7041e802
+580000f0
+67e100be
+2040133a
+20401124
+2040133e
+2040134c
+20401351
+20401359
+20400f8a
+20600000
+18a20400
+1a620c00
+efe08006
+207a0000
+1fe3fe00
+c2000b65
+1fe22200
+1fe0fe02
+1fe20e00
+6fe141e9
+98e0fe00
+67e141e9
+18420a00
+1a227e00
+1fe0fe01
+e7e08005
+1a620c00
+efe08006
+efe08006
+e7e08005
+1a227200
+20207ca1
+6fe0c09b
+c4008000
+18000e05
+20407cb6
+247a0000
+684940b9
+18000e28
+20400f40
+20740000
+18000800
+70001008
+793f800b
+20400b87
+18000e05
+6fe140bb
+20207ca8
+449a4006
+78587c00
+204010f6
+6fe08008
+1fe0fe01
+67e08008
+18004c00
+20401134
+1c40c201
+18004802
+449ac006
+2040111e
+204012d3
+20401300
+246c0000
+2040114b
+6fe08009
+1fe0fe01
+67e08009
+18003600
+2040133a
+1c21c202
+18004801
+20401124
+2040133e
+2040134c
+20401351
+20400e7c
+18000800
+69610157
+35330200
+1d01d003
+1c2143fd
+449b4006
+1cc0cc01
+2040111e
+204012d3
+204012f3
+242c0bb1
+20401359
+20400d43
+c5058bb8
+449bc006
+6fe08010
+207a0000
+1fe0ffff
+67e08010
+2040133c
+20200ba8
+449c4007
+793fd001
+79205000
+6fe0800a
+1fe0fe01
+67e0800a
+2040133a
+1c21c202
+20401124
+2040133e
+2040134c
+20401351
+20400e7c
+2d000603
+20208bc9
+37cb8200
+20200bc5
+6fe200b4
+1fe1fe03
+1fe25000
+449cc007
+6fe300c7
+67e30040
+20400c42
+20400c89
+20368bd5
+20400c62
+243a0bd0
+20600000
+449d4007
+20400c4d
+20400a48
+24628000
+70003100
+2040105d
+20200a30
+449dc007
+2040106f
+20400c01
+20740000
+449e4007
+2040646b
+20400d38
+24368bf0
+6fe1447a
+20407d47
+20401376
+20406483
+20400c96
+20400f7b
+20400f4c
+204052b1
+6fe0800b
+1fe0fe01
+67e0800b
+2040105d
+449ec007
+204014d6
+2040136d
+20210bf9
+204009a9
+24340bf9
+20400f1c
+243a0be0
+20600000
+449f4007
+700a5100
+7000e300
+20400c6a
+793f8011
+20407d5b
+6fe08030
+20600000
+204009cb
+24740000
+18820400
+2040135d
+67e080e5
+18420800
+70001120
+449fc007
+2040133c
+18000202
+20400f73
+1c427e00
+67e200b0
+20400f86
+2040133a
+7837fc00
+20400d19
+202c0c1a
+2040114b
+20400c62
+243a0c08
+c6820000
+70007c34
+79200003
+20600000
+78387c00
+20400c42
+204010f6
+44a04008
+20400aff
+202c0c26
+20400c62
+243a0c1d
+78587c00
+1d027e00
+67e240d1
+20600000
+7834fc00
+c5820c2c
+793f8004
+70007c03
+70007d33
+2040593a
+18827e00
+67e08077
+18007e00
+67e30038
+6fe08031
+79207e01
+67e08031
+20401376
+7854fc00
+78347c00
+20600000
+44a0c008
+7856fc00
+793f8005
+793f800a
+793f8010
+793f800f
+6fe08047
+793ffe05
+79207e04
+67e08047
+20600000
+44a14008
+70001120
+70004750
+6fe140c6
+67e1003e
+1c427e00
+67e240d1
+20780000
+1d027e00
+67e240d1
+20600000
+44a1c008
+204052ad
+20400c66
+67e08046
+58000000
+67e1030e
+58001c80
+67e10051
+6fe08030
+79207e00
+67e08030
+70004b00
+70004c00
+70009d00
+20201376
+44a24008
+18007e00
+67e441ce
+e7e40005
+204009c7
+20200a61
+6fe08011
+1fe0ffff
+67e08011
+20600000
+6fe0c0d6
+1fe0fe01
+67e0c0d6
+20600000
+44a2c008
+6fe0c1de
+c0018c6f
+6fe08048
+c0808c73
+20404ca5
+24228c73
+204009a6
+7041de00
+44a34008
+20403211
+20400f12
+70095b02
+204077a7
+2040529f
+20404ce5
+20406e02
+6fe08030
+793ffe00
+67e08030
+70479200
+6fe0804c
+2fe18000
+20208c83
+793f8001
+6fe08047
+c3018c85
+6fe0804b
+c4030000
+793f8002
+20600000
+44a3c008
+6fe080c3
+207a0000
+1fe20800
+20400d38
+24768000
+18000200
+20400f7b
+18827e00
+67e08077
+18007e00
+67e080c3
+20600000
+44a44009
+6fe08030
+c3010ca3
+18000207
+c5838ca2
+20400f49
+24208ca3
+20370ca3
+20400ce4
+58000002
+67e140cf
+20600000
+24770000
+44a4c009
+20400a50
+24228cb4
+6fe08047
+c3018cbd
+c5028cc1
+6fe080e3
+c2830cc7
+6fe140cf
+1fe0ffff
+67e140cf
+203a0cb2
+6fe0c0cc
+98000200
+20600000
+44a54009
+20400eb7
+20400f49
+20208cbd
+20405618
+20340ccb
+6fe0804b
+c2830cd7
+c5028cc1
+6fe080e3
+c2830cc7
+18000201
+20748000
+18000200
+20600000
+44a5c009
+6fe08019
+98000200
+c1808000
+18000200
+20600000
+6fe08a58
+1fe1020f
+79200005
+20600000
+18000213
+20400ce4
+20400ddd
+207a0000
+7041e703
+6fe0838a
+1fe17ff8
+1fe97e00
+67e146b9
+1fe22200
+da60038b
+20206ba5
+20400ced
+20400ce4
+20400ddd
+207a0000
+6fe0c1e8
+1fe17e03
+67e0c1e7
+6fe141e9
+1fe22200
+67e146b9
+6fe100be
+1fe22600
+20206ba5
+44a64009
+68488047
+79200403
+60488047
+18227e00
+67e0c0cc
+5800ffff
+67e140cf
+20600000
+44a6c009
+6fe0804c
+2feffe05
+6fe141e9
+20208d03
+18000203
+1fe67c11
+20610000
+18000204
+1fe67c1b
+20610000
+1800020a
+1fe67c79
+20610000
+1800020b
+1fe67cb7
+20610000
+1800020e
+1fe67ce0
+20610000
+1800020f
+20600000
+18000203
+1fe67c11
+20610000
+18000204
+1fe67c36
+20610000
+1800020a
+d840016f
+98467c00
+24610000
+1800020e
+d84002a7
+98467c00
+24610000
+1800020f
+20600000
+6fe08030
+c3008d18
+6fe10032
+203a0d18
+24370d1a
+2040133c
+1d00c201
+78287c00
+6fe1003e
+1fe37e00
+6849015d
+9840fe00
+20401311
+2040113c
+18004803
+2040111e
+20400c37
+204012d8
+44a74009
+6fe1003e
+1fe37e00
+20401311
+204012d3
+7826fc00
+6fe1003e
+6849015b
+9840b600
+37c18400
+1b420400
+604b0097
+7846fc00
+246c0000
+6fe1015b
+1fe25200
+1c225000
+20359425
+20600000
+44a7c009
+20400d13
+242c114b
+2040127d
+c5888d40
+6fe109f6
+1fe0fe01
+67e109f6
+20404bd6
+1c230400
+18419c40
+44a8400a
+7823fc00
+78257c00
+7825fc00
+09800003
+198cfe00
+67e080ac
+09800004
+08008007
+19827e00
+67e08019
+09800003
+198cfe00
+67e080ad
+6fe08019
+1fe67c03
+20210d58
+c0038d58
+6fe0804c
+2feffe05
+7920aa01
+44a8c00a
+09800008
+7845fc00
+78457c00
+20230e5f
+c5888d61
+6fe109f8
+1fe0fe01
+67e109f8
+44a9400a
+6fe080ac
+2fe00e00
+7920800a
+20208d6f
+a8800e00
+20208d6d
+c5838e7c
+6fe08047
+793ffe05
+79207e04
+67e08047
+20404bd9
+7836fc00
+44a9c00a
+6fe08019
+1fe20200
+c5050d7e
+684880ad
+6fe08047
+793ffe00
+284ffe00
+7920fe00
+284ffe01
+7920fe01
+67e08047
+284c0001
+20208d7e
+20400eb7
+44aa400a
+d8400000
+20401309
+18217e0f
+c0008d9a
+c0000e7c
+c0010e88
+684880ad
+6fe08047
+a8400800
+24208d8c
+c5850d8b
+c3038d8c
+7920000f
+44aac00a
+18227e00
+c0018d9c
+c0020da0
+c0040d9f
+d8400004
+20401309
+c0050d9b
+c0058d9e
+d8400008
+20401309
+c0070d9b
+c0078d9e
+20600000
+20200e7c
+79200010
+78267c00
+20200da1
+79200010
+79202a02
+7826fc00
+44ab400a
+c5198e7c
+c5008e7c
+2aac0001
+20208dae
+7843fc00
+7826fc00
+78467c00
+1c409602
+34530400
+242c0e6b
+79200010
+7823fc00
+44abc00a
+78277c00
+7824fc00
+09800003
+198cfe00
+67e080e4
+09800005
+c5080db9
+19897200
+1f297200
+20200dbc
+09800005
+19837200
+09800003
+44ac400b
+1f227e00
+67e100ae
+203a0dd4
+20400ddd
+203a0dc4
+1f20f204
+1f227e00
+9ea67c00
+20210e6b
+44acc00b
+793f8000
+6fe080e4
+1fe17e03
+d8a000ce
+c0018de2
+c5088dd2
+6fe080e4
+1fe17e03
+c0010de7
+c0008dfb
+20200e6b
+d8a01000
+20200e0c
+20400ddd
+203a0e10
+58000000
+67e146b9
+09800020
+1fef7e00
+1fecfe00
+67e20273
+20200e10
+6fe0804c
+c3017d9e
+6fe0c64c
+c0817d9e
+20207d9c
+6fe100ae
+1fe67c11
+24210e6b
+c5078e4c
+20200e0c
+44ad400b
+c5078e4c
+6fe100ae
+d84002e0
+98467c00
+20210e6b
+6fe08314
+c3000df1
+c3008df6
+20200e7c
+70031201
+6fe1030e
+c0800e7c
+d8a01000
+20200e0c
+70031202
+6fe10310
+c0800e7c
+d8a01400
+20200e0c
+44adc00b
+c5078e4c
+6fe100ae
+d84002e0
+98467c00
+20210e6b
+6fe08312
+c0008e05
+c0010e09
+20200e7c
+d8a01000
+6fe1030e
+98a08a00
+20200e0c
+d8a01400
+6fe10310
+98a08a00
+09800008
+19897e00
+e7e08005
+c2000e0c
+44ae400b
+09800010
+20230e65
+20400ddd
+20407d96
+245a6bd6
+24360e6c
+20404bd5
+6fe0c5fa
+c0008e6c
+c5088e39
+c5078e79
+6fe080e4
+2fe00603
+20208e39
+6fe100ae
+203a0e39
+44aec00b
+6fe08312
+c0008e26
+c0010e30
+2020137a
+6fe1030e
+684900ae
+9840fe00
+67e1030e
+207a0000
+68491000
+18408404
+98467c00
+20428f6b
+20200e39
+6fe10310
+684900ae
+9840fe00
+67e10310
+207a0000
+68491400
+18408404
+98467c00
+20428f6f
+44af400b
+6848804c
+6fe080e4
+2fe00603
+79208406
+7d208407
+6048804c
+24208e42
+79200001
+c5888e4c
+284ffe06
+20208e4c
+6fe109fa
+1fe0fe01
+67e109fa
+79200005
+793f8407
+793f8001
+6048804c
+44afc00b
+20400ddd
+245a6bfd
+684880ad
+6fe08047
+79207e05
+284ffe02
+7920fe02
+280ffe0a
+7920fe07
+67e08047
+6fe100ae
+243a0e7c
+6fe0804c
+793ffe07
+67e0804c
+6fe080e4
+2fe00e01
+20200e7c
+44b0400c
+7856fc00
+6fe1001a
+1fe0fe01
+67e1001a
+20200e7c
+6fe1001c
+1fe0fe01
+67e1001c
+20400e6d
+c5888e6b
+79200005
+20200e7c
+20200e65
+44b0c00c
+6fe080e4
+2fe00603
+24208e75
+6848804c
+793f8406
+6048804c
+20600000
+6848804c
+793f8407
+6048804c
+20600000
+6fe08047
+79207e05
+67e08047
+44b1400c
+784efc00
+784e7c00
+7846fc00
+78467c00
+7844fc00
+78477c00
+7843fc00
+2030914b
+37d38200
+20000064
+2020114b
+44b1c00c
+7824fc00
+78267c00
+09800048
+2feffe3a
+79208000
+1c020400
+57e04000
+57e03c00
+782afc00
+380bffff
+380cffff
+20000020
+29a80000
+1d827e00
+67e180c7
+1da27e00
+67e080ca
+18424000
+20208e9d
+20200e6b
+44b2400c
+09800048
+57e03e00
+57e00800
+57e05c00
+57e02400
+18007e00
+09800010
+20230e6b
+20404bd5
+5ffffffc
+9a417e00
+67e200b4
+1ba27e00
+67e180c4
+1b827e00
+67e080c2
+18827e00
+67e080c3
+1dc27e00
+67e100cb
+1c227e00
+08008220
+28201e02
+7920800b
+20200e7c
+44b2c00c
+6fe08047
+c4018000
+793ffe03
+79407e06
+67e08047
+20400ddd
+245a6bc3
+6fe0c0cc
+c0098ece
+c1038000
+6fe0804b
+c4030000
+793ffe06
+79207e07
+67e0804b
+793f8002
+6fe144dd
+247a0000
+6fe0804b
+793ffe07
+67e0804b
+202051fd
+44b3400c
+6fe0c5fd
+1fe37e00
+c0088ee1
+c0090eeb
+c00c0f12
+c03f8ed9
+c1818000
+6fe0838c
+c0088edc
+20600000
+6fe0838c
+79207e07
+20600000
+20748000
+6fe08030
+c3820000
+70007c31
+20600000
+44b3c00c
+6fe0804c
+79207e02
+67e0804c
+70801101
+18007e00
+67e2c6a8
+79207e25
+67e2c6a3
+20600000
+44b4400d
+6fe0804c
+793ffe02
+67e0804c
+70801100
+20600000
+44b4c00d
+1c40a203
+20348ef5
+1d00a203
+68490032
+1a227e00
+793ffe1b
+9846fc00
+6fe10075
+20407d31
+18072600
+9a667e00
+20210eff
+9840fe00
+9a20fe00
+67e20034
+70464900
+6fe08030
+79207e01
+67e08030
+6fe08073
+67e08088
+58000000
+67e1c16e
+67e1c171
+67e0c15e
+70095b0b
+204077a7
+6fe140c8
+67e1003e
+24748000
+18808fff
+20600000
+44b5400d
+6fe08030
+c4008000
+793ffe01
+67e08030
+6fe140c6
+67e1003e
+7855fc00
+70095b0c
+202077a7
+44b5c00d
+78377c00
+6fe08030
+c2808f29
+c6088000
+6fe08047
+c3818000
+6fe08048
+247a0000
+6fe0804b
+c3830000
+18007e00
+20600000
+c3010f33
+6fe08088
+c0010f2f
+6fe08047
+c2818f3c
+c5840f3c
+24348f3c
+6fe08048
+243a0f3c
+20200f27
+6fe08088
+c0808f3c
+6fe08089
+203a0f3c
+1fe0ffff
+67e08089
+6fe08047
+c3818000
+24768000
+6fe08088
+1fe0ffff
+67e08088
+20600000
+44b6400d
+78487c00
+18423600
+20400a6d
+78547c00
+24628000
+18003600
+78347c00
+20600000
+6fe0c15d
+a881fe00
+20600000
+44b6c00d
+793f8001
+70031b00
+6fe08314
+207a0000
+2feffe00
+d8c01000
+2040ccf3
+44b7400d
+6fe0831b
+c0008f5f
+70031b00
+6fe08314
+c4008000
+d8c01400
+20404cf3
+6fe0831b
+c0008f65
+20600000
+6fe08314
+793ffe00
+67e08314
+58000000
+67e1030e
+20600000
+6fe08314
+793ffe01
+67e08314
+58000000
+67e10310
+20600000
+6fe08314
+79207e00
+67e08314
+20600000
+6fe08314
+79207e01
+67e08314
+20600000
+44b7c00d
+1d00c201
+2040113c
+18004803
+20401124
+2040133e
+2040134c
+20201351
+44b8400e
+2040133a
+1d027e00
+684a40d1
+98467e00
+c1808000
+28203e00
+24208f85
+6fe08019
+207a0000
+20400f73
+28203e10
+20208e7c
+1c230400
+18419c40
+44b8c00e
+7823fc00
+78257c00
+782dfc00
+793f8010
+18827e00
+08008603
+18227e00
+08008604
+6fe08047
+08008004
+08008603
+78247c00
+08008608
+784dfc00
+78447c00
+78457c00
+793faa02
+d8400000
+20401309
+44b9400e
+18217e1f
+c0098fce
+c0000e7c
+c0008e7c
+c0010faf
+c0018fdd
+c0020fe3
+c0040fe2
+d8400004
+20401309
+c0050fdf
+c0058fe5
+d8400008
+20401309
+c0078fe5
+20200fdf
+44b9c00e
+6fe080e5
+1fe20800
+6fe0808d
+1fe23800
+6fe1c0b2
+1fe23a00
+6fe140ac
+1fe25c00
+7824fc00
+782e7c00
+1c022200
+20401134
+782afc00
+20000020
+1c221600
+6fe200b0
+1fe24200
+53c07e00
+79207e3a
+08008648
+53e07e00
+08008648
+19624200
+1a224000
+78247c00
+08008610
+78447c00
+20200e7c
+78477c00
+20200fd2
+44ba400e
+20400ddd
+243a0fcc
+78277c00
+7824fc00
+782e7c00
+6fe0838a
+1fe105f8
+d8c0038a
+18408408
+18497200
+efe08006
+08008608
+c2000fd9
+2020100f
+782e7c00
+20200fe8
+782e7c00
+79200010
+20200fe8
+79202a02
+782efc00
+20200fe8
+79202a02
+782efc00
+79200010
+44bac00e
+6fe0804c
+c3028ffd
+18267c03
+20210ffd
+78477c00
+784e7c00
+782efc00
+7843fc00
+79202a01
+2aaffe02
+20208ff7
+580abeee
+08008614
+20200ffb
+585faeba
+08008618
+58000012
+08008606
+7823fc00
+79200010
+78277c00
+7824fc00
+c502901d
+6fe0c1e8
+08008603
+6fe141e9
+98007200
+c5081007
+08008605
+20201008
+0800860d
+1f227e00
+203a100f
+6fe100be
+98000c00
+efe08006
+08008608
+c200100c
+44bb400e
+20400ddd
+203a1014
+6fe2026f
+08008620
+78247c00
+08008610
+78447c00
+20400ce4
+6fe0804c
+c3028e7c
+18007e00
+08008606
+20200e7c
+44bbc00e
+c5081025
+6fe080e4
+08008603
+6fe080ae
+98002600
+08008605
+2020102a
+6fe080e4
+08008603
+6fe100ae
+98002600
+0800860d
+d8c01000
+1a627c00
+20229031
+efe08006
+08008608
+1a60a7ff
+2020102b
+6fe109fc
+1fe0fe01
+67e109fc
+2020100f
+6fe200b4
+1fe0a207
+6fe100c0
+243a103b
+1a20a3fd
+20201043
+1feffe0c
+68590040
+18408401
+98467e00
+24211042
+1a20a3ff
+2020103e
+1fe67e00
+37d18200
+2c400600
+24209043
+98005200
+1a225000
+98005200
+20600000
+44bc400f
+37d10200
+1b427e00
+98000c00
+1ff17e00
+9c467200
+1f217203
+24229054
+18007e00
+20201058
+68490163
+18007e00
+9840fe00
+c2001056
+98c0fe00
+1fe6fc0c
+20407d2e
+67e100c0
+20600000
+44bcc00f
+1b427e00
+1b220400
+98467c00
+7d217e2c
+98460400
+6fe10163
+284c000f
+2020906b
+18426000
+d8410000
+6fe10163
+98467e00
+9e008400
+604b028f
+207b0000
+604b0038
+20600000
+78587c00
+6fe3028f
+203b1073
+6fe30038
+9b20e000
+1e00e00a
+6fe10163
+9e067e00
+2fec000f
+2020907f
+58010000
+6b010163
+9b067e00
+9e00e000
+1e023400
+20600000
+18007c00
+2020107d
+203b10a9
+58402c17
+67e189ee
+19317e00
+1fe90400
+df200030
+58000000
+67e189f1
+18437e00
+9842fe00
+1fe17e03
+c300908e
+1fe0ffff
+d8a009f1
+98a08a00
+efe08005
+1fe0fe01
+e7e08005
+18430400
+c2001089
+da2009f3
+da4009ee
+da600000
+df200003
+efe08011
+e8408012
+984ffe00
+9a60a600
+1a20a3ff
+1a40a401
+c2001099
+6fe089ef
+1fed7e00
+1ff27e00
+9a66fc00
+20407d31
+1807fe00
+67f10938
+67e109f4
+20600000
+6fe109f4
+67f10938
+20600000
+58402d19
+67e189ee
+192f7e00
+1fe90400
+df200020
+20201087
+44bd400f
+2040115d
+1c227e00
+1fe17f80
+2c800e03
+242090bb
+1fe97e00
+9ae0fe00
+202010bc
+1ae27e00
+1fe6fc4f
+782afc00
+20407d31
+18072200
+1a2085d8
+202110c4
+1a238400
+202010c6
+18438400
+18408401
+44bdc00f
+6fe08031
+c30190d7
+6fe240d9
+9c267c00
+202110d7
+204010f6
+6fe0c0e0
+207a0000
+6fe08031
+79207e02
+67e08031
+6fe2c0ee
+67e2c0e1
+efe28006
+67e2c0e6
+204010fb
+6fe08031
+c4010000
+2c2ffe01
+202090f3
+18492200
+18410e07
+580040e1
+9a20a200
+efe08011
+afec0000
+202090e4
+18427e00
+202010f0
+6fe0c0eb
+98002400
+1c227e00
+1fe17f80
+1fe97e00
+9ae0fe00
+9a46fc00
+580040f9
+20407d31
+18072200
+9a208c00
+efe08006
+67e0c0ec
+98000400
+20600000
+6fe0c0ec
+98000400
+20600000
+6fe08031
+793ffe02
+793ffe03
+67e08031
+20600000
+44be400f
+d8a040f9
+1800720a
+20407c59
+d8a040f9
+18002600
+18000e02
+6fe2c0e1
+98000400
+28e1fe02
+20209107
+18430400
+284c0000
+2020910b
+1a627e00
+e7e08005
+184b0400
+1a60a602
+2a61fc28
+24209114
+6fe2c0e6
+98000400
+28e1fe02
+20209114
+18430400
+1a667c4e
+20211107
+18002601
+18e08fff
+24229102
+da2040f9
+18a27e00
+9a267e00
+67e0c0eb
+20600000
+44bec00f
+204010b2
+6fe080e3
+c3029123
+684883a0
+2020118b
+44bf400f
+204010b2
+6fe080e3
+c3021129
+6848839f
+20201201
+18005a00
+6fe1c0af
+98005800
+20600000
+44bfc00f
+6fe0c1e3
+1fe25a00
+6fe1c1e0
+1fe25800
+20600000
+44c04010
+6fe140ac
+1fe25c00
+6fe0c0ab
+1fe25a00
+6fe1c0a8
+1fe25800
+20600000
+44c0c010
+6fe10044
+1fe25c00
+6fe08043
+1fe25a00
+6fe18040
+1fe25800
+20600000
+c5101147
+c68e8000
+c68f8000
+1d815900
+782afc00
+20000020
+20600000
+44c14010
+20404bd4
+18002a08
+18002a00
+7850fc00
+78507c00
+782f7c00
+70890005
+20000002
+70890000
+2040115d
+708a1600
+708a0a10
+6ff08a09
+793ffe07
+67f08a09
+708a0b00
+2020129c
+44c1c010
+70890005
+20000002
+70890000
+6fe0c0c5
+c00c1164
+c0041179
+708a10aa
+708a11aa
+708a1215
+708a0a78
+6ff08a09
+79207e07
+67f08a09
+708a0b04
+2000003c
+708a167a
+708a1700
+708a1800
+708a1900
+708a1a00
+708a112a
+708a0a78
+6ff08a09
+793ffe07
+67f08a09
+708a4300
+20600000
+708a8be6
+708a10aa
+708a11aa
+708a1215
+708a0a78
+6ff08a09
+79207e07
+67f08a09
+708a0b04
+2000003c
+708a163a
+708a1700
+708a1800
+708a1900
+708a1a00
+708a112a
+708a0a38
+20201174
+44c24010
+6fe0c0c5
+1fe67c18
+20429196
+2442919c
+60488017
+1840fe00
+c5169194
+1840fe01
+204011c1
+20201081
+708a4300
+708a3d04
+708a3e00
+708a8403
+708a8940
+20600000
+708a4330
+708a3d06
+708a3e00
+708a8420
+708a8915
+20600000
+44c2c010
+20404bce
+6fe0c1ed
+c07f91ab
+d8c041ee
+98c08c00
+efe08006
+67f08961
+70896027
+6848c1f1
+6ff08960
+9841fe00
+67f08960
+708a10aa
+708a112a
+708a1213
+708a0a7f
+6ff08a09
+793ffe07
+67f08a09
+2000003c
+708a171f
+708a18f8
+708a1918
+708a1000
+708a1120
+2000000a
+70890004
+20000002
+7089000c
+20600000
+44c34010
+d8c00960
+98c0fe00
+6848c0c5
+202011d0
+44c3c010
+6fe0c0c5
+1fe67c18
+204291f3
+244291fa
+58000960
+9a20fe00
+1fe3fe00
+6848c0c5
+184f8403
+18438400
+9846fc00
+20407d31
+1807fe00
+67f08a3f
+18077e00
+1ff07e00
+1fed7e00
+9846fc00
+20407d31
+1807fe00
+67f08a42
+1fecfe00
+67f08a41
+1fecfe00
+67f08a40
+68588a43
+184104f0
+60588a43
+2000000c
+6fe0c0c5
+c00c11e7
+c00411ed
+1841840c
+60588a43
+2000000c
+18418403
+60588a43
+20600000
+1841843c
+60588a43
+2000000c
+18418433
+60588a43
+20600000
+708a4300
+708a3d12
+708a3e00
+708a8403
+708a8ba6
+708a8940
+20600000
+708a4330
+708a3d15
+708a3e00
+708a8420
+708a8ba6
+708a8915
+20600000
+44c44011
+708a3d12
+60488017
+1840a202
+204011c6
+200003c0
+44c4c011
+708a10aa
+708a112a
+708a1210
+708a0a7f
+6ff08a09
+793ffe07
+67f08a09
+708a0b07
+2000003c
+708a190d
+708a1af9
+708a1000
+708a1120
+2000000a
+70890001
+20000002
+70890003
+44c54011
+6fe0c1eb
+c0019229
+c002922e
+c0031231
+c0039234
+c0051237
+c041923a
+c042923d
+c04a1240
+c04f1243
+708a396a
+708a3a07
+708a14a3
+708a1507
+20600000
+708a3966
+708a3a0b
+708a14aa
+708a150a
+20600000
+708a396c
+708a3a0d
+2020122b
+708a396b
+708a3a0f
+2020122b
+708a39a7
+708a3a0f
+2020122b
+708a39b6
+708a3a0f
+2020122b
+708a3968
+708a3a05
+20201226
+708a3960
+708a3a05
+20201226
+708a3953
+708a3a01
+20201226
+708a394c
+708a3a00
+20201226
+70804206
+6fe140ca
+c3071247
+98000c00
+d8408a00
+efe08006
+c07f9251
+98418a00
+efe08006
+e7e08005
+2020124b
+44c5c011
+6fe0c4da
+205a6148
+708a0305
+708a7a94
+20401278
+20401273
+2040126e
+708a8be6
+708a8390
+708a0e0b
+708a0f05
+70896876
+70896976
+6fe0c0c5
+c0841262
+708a0834
+708a01ff
+20000064
+708a020e
+708a0003
+20401224
+708a9a2b
+708a9b13
+204012d1
+2000000a
+70804205
+7041f30c
+2020163f
+6fe0c4d6
+243a1271
+58000029
+67f08a87
+20600000
+6fe0c4d7
+243a1276
+58000000
+67f08a0d
+20600000
+6fe0c4d8
+203a127b
+580000d3
+67f08a6c
+20600000
+44c64011
+70015420
+6ff089a0
+67e0c1ec
+1fe67cfc
+24610000
+1fe67c7f
+20610000
+6ff089a3
+1fe1040f
+18438400
+1ff1fe00
+98408400
+184f8403
+6fe0c1ec
+1fe67eff
+9840fe00
+1fe0fffb
+67e08154
+20600000
+6fe08154
+20401295
+67e08018
+20600000
+1fe17eff
+1fe6fc0a
+20407d2e
+1ff27e00
+18070400
+9841fe00
+20600000
+6fe0c1ed
+c17f8000
+242c12c2
+6fe0c1ec
+1fe67cf0
+242112c6
+1fe67c7f
+202112c6
+6a308961
+6fe0c1ed
+c1000000
+d8c041ee
+98c08c00
+efe08006
+9a267c00
+24628000
+18c08dfe
+e8408006
+1851fe00
+1a31a400
+9a462400
+18417e0f
+1a21220f
+9a262200
+1a23fe00
+9a40a400
+1a4fa403
+6848c1ec
+18417e80
+207a0000
+58000100
+98460400
+1a427e00
+98467e00
+20610000
+1fe17eff
+c17f8000
+c17f0000
+6fe0c1ed
+c00092cb
+c00112cd
+202012cb
+6fe0c1ed
+c00012cd
+c00092c9
+7041ed02
+20600000
+7041ed00
+20600000
+7041ed01
+20600000
+58000f0f
+20201524
+5800080f
+20201524
+44c6c011
+78507c00
+7830fc00
+782b7c00
+202011a2
+44c74011
+20400ddd
+243a12e8
+6fe0804c
+2feffe02
+7920fe00
+67f08011
+d8c00062
+efe48006
+98006400
+efe38006
+98006600
+6fe08054
+1fe0e9ff
+782d7c00
+20600000
+70801100
+20600000
+1b427e00
+67e30097
+7846fc00
+242c114b
+6fe1015b
+1fe25200
+1d00d001
+1d0151fc
+20600000
+7826fc00
+37cb8400
+202c12ea
+2d000402
+242092f4
+202012ea
+44c7c011
+69610159
+7826fc00
+34730400
+7846fc00
+242c114b
+20600000
+44c84012
+7826fc00
+37c18400
+7846fc00
+242c114b
+6fe1015b
+1fe25200
+1d0151fc
+20600000
+44c8c012
+98002200
+1c227e00
+98409600
+19627e00
+67e240d1
+1a227e00
+20600000
+1fe20400
+44c94012
+18427e00
+20407cf3
+1c307e00
+79207e2c
+20407cd9
+793ffe2c
+20401365
+20407cd9
+20740000
+20407ce6
+98003600
+37c18200
+20600000
+44c9c012
+20381325
+35330200
+1d020400
+20201328
+20371327
+34730200
+1c420400
+20341334
+28400601
+24209320
+44ca4012
+6fe08030
+c4000000
+6fe240d1
+98467e00
+24610000
+1fe67cff
+20211320
+20600000
+28400603
+24209320
+2020132b
+44cac012
+69610157
+20201320
+78547c00
+20201337
+78347c00
+20201337
+44cb4012
+204012d8
+7850fc00
+78307c00
+20600000
+44cbc012
+69610155
+34730200
+782b7c00
+20600000
+44cc4013
+6961015f
+34730200
+20600000
+44ccc013
+69610155
+35330200
+782b7c00
+20600000
+44cd4013
+20404bdc
+51207e00
+782efc00
+79202a00
+08008648
+784efc00
+20600000
+1ca20400
+18418460
+18421c00
+20600000
+44cdc013
+6fe0c098
+1fe0fe01
+c0839362
+18007e01
+67e0c098
+98000800
+20600000
+1b220400
+20748000
+1b420400
+20600000
+1c427e00
+20748000
+1d027e00
+20600000
+44ce4013
+684a004d
+20401369
+98461600
+19627e00
+68490051
+18438400
+98467e00
+20600000
+44cec013
+20401369
+67e2004d
+20600000
+44cf4013
+2020137a
+2020137c
+207a0000
+1fe37e00
+1fe0fffd
+1fe0ffff
+24229380
+18007e00
+20600000
+df200010
+d8a00000
+20407c59
+d8a00287
+df20000a
+20407c59
+70087400
+70095b00
+7002df00
+7000e300
+7003a500
+7000bc00
+700a5100
+700a5c00
+589e8b33
+67e1c0af
+70008d60
+7040d705
+70001402
+58000e43
+67e10155
+58000600
+67e10157
+58000600
+67e10159
+58000d00
+67e1015f
+580003bb
+67e1015b
+58000500
+67e1015d
+580007d0
+67e10161
+58000ea6
+67e10163
+580001e0
+67e10165
+58000120
+67e10167
+5800011a
+67e10169
+58001400
+67e143e1
+58000100
+67e143e3
+20406d31
+58000880
+d8a00870
+98a67200
+20407c68
+44cfc013
+20758000
+58000000
+67e141e9
+1c437e00
+67e2409c
+20600000
+70804206
+70804201
+2000000a
+58001d4a
+67f10040
+20600000
+5800ee21
+67f10050
+6ff2011c
+67e2098a
+6ff0813b
+67e08989
+6ff0813e
+c301da94
+7835fc00
+c30393d4
+7855fc00
+1ce27e00
+243a13d4
+6ff0813b
+c28113d4
+d85fffff
+20201460
+6ff20134
+67f2004c
+6ff08135
+1fe17ee0
+67f0804d
+2040153c
+6ff1813c
+67f1804c
+efe08006
+1fe1feef
+e7e08005
+2040152f
+6ff0804f
+79207e04
+67f0804f
+2040152f
+20559401
+6ff0804e
+793ffe03
+67f0804e
+2040152f
+2435da94
+c6958000
+70800608
+20600000
+6fe0c4d5
+c00093f5
+c00113f9
+c00193fd
+6fe0c183
+1fe17ee0
+67e0c183
+20600000
+6fe0c183
+1fe17ee0
+1fe1fe1d
+202013f3
+6fe0c183
+1fe17ee0
+1fe1fe1b
+202013f3
+6fe0c183
+1fe17ee0
+1fe1fe17
+202013f3
+6fe0c1a8
+67f08086
+d8c04186
+d8a08070
+20407c3f
+d8a080e5
+20407c43
+6fe441a0
+98000000
+6ff40140
+67e4009e
+20205b2c
+18027e00
+67e441a0
+d8c08070
+d8a04186
+20407c3f
+d8c080e5
+20407c43
+6ff08086
+67e0c1a8
+2020153e
+6ff08085
+1ff1fe00
+243a1420
+6fe1c174
+247a0000
+6ff08085
+1fe1fec0
+67f08085
+70800680
+6ff0812d
+c4008000
+6ff18149
+67e1c174
+20600000
+44d04014
+1b427e00
+20407cd7
+684a4164
+18467cff
+20610000
+1fed7e00
+1ff27e00
+9846fc00
+20407d2e
+d84000c8
+20407d3c
+67e08096
+24341434
+1fe67e00
+6849c174
+9840fe00
+67e1c174
+58000000
+67e24164
+20600000
+d85fffff
+6fe0c17b
+793ffe07
+67e0c17b
+44d0c014
+2040153e
+6fe0c15c
+67e0c181
+6fe0c17f
+79207e07
+67e0c17f
+44d14014
+204012cf
+6fe1447c
+20407d47
+6fe24164
+9840fe00
+67e24164
+2040140d
+204013ed
+6fe24182
+1fe22400
+6fe2c17d
+67f2004c
+1fef2200
+37d98200
+1b227e00
+67e34168
+70800502
+37d98200
+37d98200
+1a227e00
+67f0804f
+70800502
+37d98200
+37d98200
+6252004c
+70800520
+37d98200
+37d98200
+605a004c
+70800510
+37df8200
+44d1c014
+58000000
+1ce27c00
+20229470
+6ff0813c
+6858813d
+98467c00
+2021146e
+18427e00
+9ce67e00
+1fe0fe01
+1fe0fe0a
+37d98200
+9e20fe00
+684a4160
+9840fe00
+6849c174
+984ffe00
+1fecfe00
+1ff1fe00
+1fe0fe6e
+68490163
+9846fc00
+20407d2e
+1ff07e00
+18070400
+9841fe00
+684b4168
+20407ccc
+18423200
+6fe34048
+20401073
+1b427e00
+67e3095c
+1ce27e00
+e7e08005
+6ff0811d
+1fe1fef0
+e7e08005
+20600000
+44d24014
+20401417
+6fe1c174
+207a0000
+6fe0c099
+207a0000
+6fe0c76b
+203a1497
+6fe0c6c0
+207a0000
+6fe0c6c1
+247a0000
+da600ab7
+20400a6e
+20628000
+2040154f
+247a0000
+6fe0c040
+2fe00e03
+242094c3
+6fe14042
+207a0000
+20758000
+44d2c014
+6848809d
+6fe14042
+984ffe00
+18518400
+184b0400
+98467e00
+684a4044
+9840fe00
+6848c15b
+98467e00
+1ff06000
+44d34014
+6fe1404e
+1fe37e00
+20407cf3
+1e027e00
+20407cd9
+1b420400
+20407cd7
+20740000
+20407cec
+44d3c014
+6fe0c17d
+98467c00
+20211437
+604a4160
+20403189
+2040526b
+684a4160
+20201445
+44d44015
+6fe0c040
+c3800000
+c3818000
+6fe0c76b
+203a14cb
+6fe0c6c0
+207a0000
+6fe0c42a
+243a14cf
+6fe0c09b
+207a0000
+6fe14159
+207a0000
+6848c15b
+98467e00
+d8401d4c
+984ffe00
+202014b9
+44d4c015
+7855fc00
+6fe08030
+c4008000
+243694f8
+204014f3
+6fe140c8
+67e1003e
+6fe08047
+c2819506
+c5869506
+20405214
+243a1506
+6fe0c64a
+c2809506
+6fe14474
+20407d47
+243a1506
+70009d00
+c5869506
+6fe0c179
+203a150a
+1fe0ffff
+67e0c179
+20600000
+d8e00001
+20205701
+d8e00001
+20205705
+70415e00
+6fe1c16e
+1fe0fe01
+67e1c16e
+20600000
+44d54015
+684940c8
+18430400
+6fe1003e
+9840fe00
+67e1003e
+70009d00
+6fe1c171
+1fe0fe01
+67e1c171
+6fe0c15e
+1fe0fe01
+67e0c15e
+20600000
+70009d00
+6fe0c178
+67e0c179
+20600000
+6848c177
+6048809d
+20600000
+6fe0c17d
+247a0000
+70804206
+58000f0c
+20401524
+58030d40
+2040137d
+37d98200
+1e226000
+204012cf
+70804204
+2000000a
+37d98200
+1e227e00
+9e067e00
+1fe0fe30
+d84000ff
+20407d3c
+67e0c17d
+20007530
+20007530
+20007530
+20600000
+d8a00fff
+98a10a00
+6fe0c17a
+1fe17ef0
+1fed7e00
+98a1fe00
+67f1004c
+efe10006
+e7e10005
+58000001
+20201530
+58000002
+37d98200
+67f08005
+37d98200
+37d98200
+20600000
+6ff20134
+67f2004c
+6ff08134
+1fe17e41
+6848c182
+9841fe00
+67f0804c
+58000020
+20201530
+44d5c015
+6fe2009e
+67f2004c
+58000004
+20401530
+6fe200a2
+67f2004c
+58000008
+20201530
+6fe14157
+f9207e00
+67e14157
+20600000
+6fe14157
+f93ffe00
+67e14157
+20600000
+44d64015
+20403187
+6fe14157
+1fe22200
+6fe0804c
+2feffe06
+7920a20b
+6fe08078
+6848807c
+9840fe00
+68488048
+9840fe00
+7d3a220a
+6fe1c4f7
+7d3a2201
+6fe1030e
+68490310
+9840fe00
+7d3a220d
+6fe44779
+7d3a220f
+6fe44781
+7d3a220e
+6fe0c1de
+7d3a2208
+6fe0c09a
+2fe1fe0a
+2040956e
+1a227e00
+67e14157
+20600000
+6ff10112
+7d3a2206
+6ff1010e
+7d3a2205
+20600000
+6ff20138
+793ffe1b
+67f2004c
+2040152d
+2020137a
+6ff2013c
+793ffe14
+67f2004c
+2020152f
+474b4032
+7855fc00
+70029d01
+70028703
+70029e01
+5fffffff
+67e102a1
+18007e00
+67e0829f
+67e082aa
+67e1c16e
+67e1c171
+204018e2
+7041f801
+7041f900
+7002bc01
+7002bd01
+70443800
+202019bd
+474bc032
+7834fc00
+70028803
+70443a01
+70099e01
+5800ffff
+67e109a0
+18007e00
+67e2c6a8
+79207e27
+67e2c6a3
+2020157c
+474c4033
+7854fc00
+58000017
+67e14385
+1fe0fe04
+67e14447
+70028801
+70442a00
+70009d00
+20401607
+6fe102b5
+67e14397
+6fe10289
+1feffe05
+1ff1fe00
+67e102b5
+2020157c
+474cc033
+20401632
+6fe08287
+2feffe04
+79208032
+20403155
+6fe08288
+c28095b5
+202015c7
+474d4033
+7834fc00
+204019b4
+202115c4
+20401683
+204018f7
+7856fc00
+204017b5
+24768000
+6fe08005
+1fe0fe01
+67e08005
+204018a8
+7854fc00
+20600000
+204015fb
+7854fc00
+20600000
+474dc033
+7043e000
+793f8030
+204074cd
+20402045
+78577c00
+204019b4
+202115fb
+6fe082bc
+20401618
+20401683
+204016db
+242c15ed
+2040160b
+203695d8
+c51815d8
+202015e7
+474e4033
+6fe0c3e0
+1fe0fe01
+67e0c3e0
+c00615e7
+204018a8
+204018f7
+6fe082bd
+20401618
+204017c3
+2040195a
+6fe14470
+20407d47
+204015f0
+203415f5
+474ec033
+2040200b
+20402002
+204077bd
+6fe082aa
+c28195fb
+474f4033
+20401a87
+2020105d
+78547c00
+c5157d92
+c514fd92
+c5187d92
+20600000
+474fc033
+78377c00
+204017b9
+203695d8
+c51815d8
+202015e7
+47504034
+20401602
+20403216
+20401607
+20402053
+70095b15
+202077a7
+d8a044ed
+20407c5d
+70029d00
+70028800
+70028700
+4750c034
+70439f00
+70439e00
+20206e02
+47514034
+6fe08005
+1fe0fe01
+67e08005
+6fe08287
+c3818000
+79207e03
+67e08287
+6fe14397
+67e102b5
+58000000
+67e243bf
+20600000
+1fe20400
+4751c034
+18427e00
+c2801632
+c2809621
+c3011632
+c283962f
+c2811627
+20201632
+20401632
+7920002d
+793f802f
+70890103
+70892084
+20600000
+20401632
+7920002f
+793f802e
+70890105
+70892080
+70893020
+7089340a
+20600000
+20401627
+7920002e
+20600000
+47524034
+783b7c00
+793f802d
+793f802f
+70890101
+70892080
+708925a7
+70893003
+70893358
+7089340a
+70893740
+708a6d09
+20600000
+4752c034
+785b7c00
+793f8032
+70890100
+70892080
+708925a3
+70893003
+70893368
+70893409
+70893728
+708a6d09
+20600000
+7844fc00
+7843fc00
+6fe182af
+98001e00
+6fe08016
+1fed8400
+79200401
+18431c00
+20600000
+2040165d
+2040118b
+6fe1015d
+2040137d
+202011a2
+20369207
+c5181207
+2040165d
+20201201
+47534034
+2040115d
+6fe082df
+243a1670
+6fe08016
+1fe67c24
+2021166a
+18000400
+c1128000
+18000418
+c1130000
+1800044e
+20600000
+1fe67c0a
+2021166d
+1fe0fe01
+1fe3fe00
+1fe08402
+20600000
+6fe08016
+1fe38400
+20600000
+d84001f4
+207a0000
+d84000fa
+c1008000
+d8400096
+c1010000
+d8400064
+c1018000
+d840004b
+c1020000
+d8400032
+c1028000
+d8400028
+c1030000
+d8400014
+20600000
+4753c034
+78287c00
+6fe202ab
+98001200
+204010ac
+204016b9
+58000200
+2034968d
+6fe10295
+1fe37e00
+6849015d
+9840fe00
+20401311
+1b427e00
+20600000
+47544035
+20407c0e
+67210987
+1a208c01
+efe08006
+c4000000
+1a208a1a
+efe10005
+1fe0fe01
+e7e10005
+20401825
+2040184a
+20401853
+204016a3
+20407c1c
+6f210987
+20600000
+1a208c19
+efe08006
+1a208a18
+e8408005
+9840fe00
+1fe67c24
+202116ab
+1fe0ffdb
+e7e08005
+20600000
+1a208c30
+efe28006
+18000400
+18007225
+c30016b3
+18408401
+1fe37e00
+c20016b1
+1840ffff
+1a208a22
+e7e08005
+20600000
+4754c035
+6fe0829f
+98000e00
+684a82b7
+a84fffff
+202096ce
+6fe082a9
+98e67e00
+202116c4
+1fe60fff
+202016bf
+18e27200
+18000e00
+a84fffff
+202096c9
+1f20f201
+1f227e00
+203a16ce
+18e08e01
+1f20f3ff
+202016c6
+18e27e00
+67e08016
+20600000
+203496d4
+37c18200
+20600000
+d9600ea0
+34730200
+20600000
+78487c00
+6fe143e8
+1fe21600
+202016e1
+47554035
+20401745
+78287c00
+6fe10295
+684a43bf
+98409600
+20401654
+4755c035
+2040164b
+c59796e9
+783cfc00
+2000001e
+2040164b
+19699600
+7856fc00
+7826fc00
+7830fc00
+78507c00
+19623600
+37c18400
+203716f2
+1b420400
+604b0097
+242c1780
+47564035
+78287c00
+d8404ea9
+6fe0c1f3
+984fb600
+20404bd6
+203716ff
+20401784
+6fe08287
+c30196ff
+684b0097
+20559425
+2040127d
+7823fc00
+7824fc00
+09800008
+19897e00
+67e0816b
+09800008
+19897e00
+67e0816c
+1fe27200
+20229724
+c5191710
+09800008
+19897e00
+e7e08005
+c200170b
+20201724
+18a22400
+204018a1
+6a20816c
+1a20a3fc
+24211778
+2040174a
+1a420a00
+d8400000
+6f20816c
+1f20f3fc
+20229722
+09800008
+19897e00
+e7e08005
+18408401
+18417c0f
+20429767
+c200171b
+2040176f
+1a420a00
+4756c035
+09800018
+1fef7e00
+1ff17e00
+e7e18005
+78287c00
+20401792
+2023177c
+c5991736
+6fe0816c
+203a1736
+1fe0fffc
+67e0816c
+20406c5d
+6ff08108
+c3039778
+1800700c
+65e20273
+20404bd5
+7836fc00
+793f8030
+20406c5f
+6fe082bc
+7d3e7e07
+67e082bc
+47574035
+68488017
+1840a202
+c5169742
+1840a202
+7846fc00
+2040115d
+202011c6
+c6990000
+20406cfa
+1800700c
+20406d02
+20206d01
+7080d500
+7080d601
+6fe0816b
+1fe17e03
+67f080d7
+5800016d
+67f100d1
+67f100d3
+6a20816c
+1a20a3fc
+684ac6a8
+280ffe0f
+2040975d
+20406b6b
+58000000
+67f100da
+70800a06
+70800a07
+20600000
+18467c00
+20229762
+184085ff
+79200427
+20600000
+58ffffff
+1ff07e00
+d840ffff
+98418400
+20600000
+18a22400
+6fe0816c
+1fe0fffc
+98467c00
+20628000
+605900da
+1a420a00
+20600000
+09800020
+1fef7e00
+1fecfe00
+e7e20005
+18a22400
+18007000
+1fe25e00
+605900da
+20600000
+20201782
+20401792
+20400e7c
+20201736
+20404bd7
+c5181780
+79200030
+20201739
+793f8030
+20201782
+20406c5f
+20200e7c
+c517978a
+c516978e
+6fe10165
+1fe25200
+1c225000
+20600000
+6fe10169
+1fe25200
+1c20d001
+20600000
+6fe10167
+1fe25200
+1c225000
+20600000
+6fe0816c
+1fe08405
+18498400
+6fe082bc
+c5179799
+c280179b
+c280979c
+203e179e
+202017a1
+202017a6
+18430400
+202017a6
+18408403
+18438400
+202017a3
+18408403
+18498400
+58000028
+98408400
+202017a6
+6fe0c1f3
+984f8400
+da204e20
+9a2ffe00
+98460400
+1b627e00
+98463600
+20600000
+204017c5
+68488017
+2040118b
+204011a2
+78287c00
+d960157c
+202016e2
+4757c035
+6fe082bd
+20401618
+204017c5
+6fe082bc
+20401618
+68488017
+2040118b
+204011a2
+78287c00
+d960157c
+c59796e2
+d9602134
+202016e2
+204017c5
+20200e7c
+47584036
+2040164b
+20401659
+20404bdc
+79202a00
+782efc00
+78307c00
+7850fc00
+204016d1
+785d7c00
+c5179807
+c5169819
+19317e00
+1fecfe00
+1ff1fe00
+08008628
+7823fc00
+7824fc00
+4758c036
+6fe0c1f8
+08008608
+efe08006
+1fe27200
+08008608
+1f267c00
+202297e6
+6ff0800a
+203a17e2
+c51917fc
+d8c041fa
+efe08006
+08008608
+c20017e3
+78247c00
+08008618
+78447c00
+c59797ed
+7843fc00
+58000000
+08008603
+37d38200
+20000064
+784efc00
+785c7c00
+2040115d
+20404bda
+6fe0c1f8
+1fe17e03
+c1818000
+6fe0c39f
+c00118e2
+c1828000
+6fe0c1fa
+c00298dd
+20600000
+1f20f3fc
+1f220400
+20406c4a
+d8c041fa
+efe08006
+08008608
+c2001800
+20406c4f
+1de27e00
+08008620
+202017e6
+df20000a
+5800003c
+08008608
+c2001808
+784efc00
+783c7c00
+19317e00
+1ff17e00
+1ff1fe00
+08008620
+c5171816
+58000001
+08008605
+783d7c00
+202017d5
+58000000
+08008605
+202017d5
+6fe0c1f3
+1fe37200
+20000002
+c200181b
+19317e00
+1fecfe00
+1ff18400
+18427e00
+08008608
+18427e00
+08008628
+202017d5
+da601829
+da40183d
+d8e00005
+20201881
+1a208c04
+e8420006
+1a208c37
+efe08006
+1a208a2b
+e7e08005
+efe10006
+1febfe00
+98409600
+1a208a04
+19627e00
+e7e20005
+efe10006
+1febfe00
+1a208a02
+e7e10005
+efe20006
+1a208a2c
+e7e20005
+202019c0
+efe08011
+793ffe03
+e7e08011
+6fe102b5
+67e14397
+62210970
+70095b44
+204077a7
+6a210970
+1a208c2e
+efe10006
+67e14397
+20600000
+da600000
+da40184e
+d8e00006
+20201881
+1a208c37
+efe28006
+1a208a30
+e7e28005
+202016ad
+da600000
+da401857
+d8e00007
+20201881
+1a208c37
+efe08006
+20401864
+e7e08005
+1a208c38
+efe08006
+20401872
+e7e08005
+62210970
+70095b42
+204077a7
+6a210970
+20600000
+205a186c
+1a208a35
+24748000
+6848c445
+284ffe07
+7920fe07
+1a208a36
+20600000
+1a208c35
+efe08006
+24748000
+1a208c36
+efe08006
+20600000
+205a187b
+6848c445
+284ffe07
+7920fe07
+1a208a36
+24748000
+793ffe07
+1a208a35
+20600000
+1a208c36
+efe08006
+24748000
+1a208c35
+efe08006
+20600000
+efe08011
+afec0000
+20608000
+1a208c1a
+e8410006
+1a208c20
+efe10006
+98467e00
+20229890
+24211895
+1fe67c01
+2022988e
+20600000
+1a627e00
+20207d47
+efe08011
+f93ffe00
+e7e08011
+1a427e00
+20207d47
+1a208c1a
+efe10006
+1a208c20
+efe10006
+98467e00
+d840ffff
+98467c00
+20229890
+d840f000
+98467c00
+24211890
+20600000
+6848829e
+6fe0816b
+1fe37e00
+9842fe00
+2feffe02
+7920800f
+20600000
+47594036
+204019bd
+c6180000
+204018cf
+6fe0816b
+2feffe04
+7920802a
+1fe37e00
+9842fe00
+2feffe02
+7920800f
+c6078000
+6fe0816c
+203a18c1
+6fe08287
+c30218c1
+684a0273
+6fe246ad
+98467c00
+2022937a
+604a46ad
+6fe2c6a8
+1fe0fe01
+79207e27
+67e2c6a8
+6848829e
+79400402
+6048829e
+6fe0c3c3
+c4030000
+4759c036
+6fe0816c
+207a0000
+6fe0816b
+2fe00601
+20209eb8
+2fe00602
+20209ea6
+20600000
+475a4036
+6848829e
+284c0005
+20608000
+6fe0816b
+1fe3fe00
+9842fe00
+c4018000
+793f8405
+79400403
+6048829e
+28400603
+24608000
+20600000
+6fe08287
+79207e04
+67e08287
+79200032
+20600000
+475ac036
+70439f00
+dfe00000
+67e246ad
+67e2c6a3
+79207e27
+67e2c6a8
+6fe08287
+793ffe04
+67e08287
+793f8032
+20600000
+da200001
+6fe0816b
+c3830000
+da200000
+20600000
+18c20a00
+68494447
+18a20c00
+20600000
+475b4036
+6fe0829e
+c3828000
+20401918
+20401aee
+203a193c
+efe10006
+e8410006
+18422200
+9a267e00
+204018f3
+20407d88
+1fe20400
+e8208006
+1a227e00
+98c0fe00
+67e1097b
+2040192c
+2040193e
+20401aee
+efe10006
+1fe22200
+18c22600
+e8410006
+18422400
+9a467e00
+204018f3
+20407d88
+9a40fe00
+e7e10013
+9a267c00
+24628000
+20201b07
+2040191f
+c6148000
+6fe0c3c3
+c301192a
+20401af1
+203a192a
+20201928
+20401aee
+203a192a
+efe10006
+e8410006
+98462200
+204018f3
+18427e00
+9a267c00
+2021192a
+79200029
+20600000
+793f8029
+20600000
+1a227e00
+207a0000
+d8200001
+20600000
+475bc036
+18408401
+204019ef
+18c08dfe
+efe10006
+d8402902
+98467c00
+24628000
+18c08c01
+18c22200
+efe08006
+20600000
+18000400
+18000201
+475c4037
+6048c1f9
+6848829e
+79200405
+18417efc
+9821fe00
+67e0829e
+1fe17e1f
+280ffe29
+7920fe04
+67e0c1f8
+6fe0c1f8
+28200601
+2420994e
+6fe0c1f9
+207a0000
+c5191954
+6f20c1f9
+6fe1097b
+1fe20c00
+d8a041fa
+20207c94
+20406cfa
+20206c31
+d8e00000
+20201547
+d8e00000
+2020154b
+475cc037
+c6078000
+c6180000
+6fe0816b
+1fe17e03
+67e0c3d6
+6fe0816c
+207a0000
+5800016d
+67e143db
+475d4037
+6fe0c3d6
+c001a099
+20401974
+24341956
+20401958
+58000000
+67e143d9
+6fe143db
+1fe08c02
+475dc037
+efe10006
+c0021c5e
+c0031f1a
+c0029edc
+20600000
+6fe0c3d6
+c0011983
+c000999a
+20600000
+20407d92
+d8400004
+9fe67c00
+20628000
+d8400005
+9fe67c00
+20628000
+d8400006
+9fe67c00
+20628000
+20207d94
+6fe143db
+1fe20c00
+efe10006
+67e143d7
+efe10006
+20401978
+24740000
+6848816c
+604943d9
+6fe143d7
+1fe0fe04
+98467c00
+2022fd92
+6f20816c
+d8a01000
+6fe143db
+1fe20c00
+20407c94
+20207d94
+20407d92
+6fe143d9
+247a0000
+20207d94
+20401996
+24740000
+6fe143d9
+d8a01000
+98a0a200
+6848816c
+9840fe00
+67e143d9
+6f20816c
+1a220a00
+6fe143db
+1fe20c00
+20407c94
+58001000
+67e143db
+6fe143d7
+1fe0fe04
+684943d9
+98467c00
+2022fd92
+20207d94
+20407c29
+d8a0435c
+20201ea0
+6fe1446e
+20207d47
+684a02a3
+20401369
+98461600
+19627e00
+684902b5
+18520400
+18438400
+98467e00
+20600000
+20401369
+67e202a3
+20600000
+475e4037
+1a208c50
+efe08006
+20401673
+1a208c02
+efe10006
+984ffe00
+68490163
+984ffe00
+d84f4240
+9846fc00
+d8400682
+6fe0c1f3
+984f8400
+1a208c2b
+efe08006
+984ffe00
+9840fe00
+67e243bf
+6fe140c8
+20407d31
+18078400
+9840fe00
+1a208a0e
+e7e10005
+20600000
+475ec037
+6fe1099e
+98002400
+6fe109a0
+98002600
+6fe14399
+98000c00
+78347c00
+20600000
+efe10006
+1fe17eff
+207a0000
+9a467c00
+24610000
+9a667c00
+20628000
+202119ed
+18007c01
+20600000
+18007e00
+20600000
+204019f2
+202299ff
+20600000
+475f4037
+6fe14399
+98000c00
+efe10006
+1fe17eff
+207a0000
+98467c00
+20628000
+efe08006
+98c08c00
+efe08006
+98c08c00
+202019f5
+efe08006
+98c08c00
+20600000
+475fc037
+6fe14399
+98000c00
+efe10006
+1fe17eff
+207a0000
+efe08006
+98c08c00
+18c08dfe
+efe10006
+98467c00
+20628000
+efe08006
+98c08c00
+20201a05
+6fe14399
+98000c00
+efe10006
+1fe17eff
+207a0000
+1fe08401
+efe08006
+98c08c00
+efe08006
+98c08c00
+18c20a00
+20201a13
+6fe109b4
+20201a21
+47604038
+6fe14399
+98000c00
+efe10006
+1fe17eff
+203a1a2c
+98467c00
+20229a2d
+efe08006
+98c08c00
+efe08006
+98c08c00
+20201a22
+20207d9c
+efe08006
+67e089ba
+1fe27200
+d8a009bb
+20407c94
+efe08006
+67e089b3
+20407c29
+20207d9e
+4760c038
+20401a39
+20201a4b
+d8402a00
+20401a02
+207a0000
+efe08006
+18c20a00
+6848c2fa
+18427200
+98467c00
+24211a48
+98460400
+d8c042fb
+20407c94
+18427200
+24429a83
+20600000
+1fe27200
+d8c042fb
+20207c94
+da60440a
+da2043eb
+20401a58
+58000000
+79347e00
+67e0895c
+da60442a
+da20440b
+20401a58
+20740000
+6fe0895c
+203a137a
+20600000
+47614038
+20407d92
+20407c6e
+da400000
+d8a0098f
+20401a72
+6fe0c2fa
+1fe08401
+9a40a200
+1a20a202
+1a267c1f
+24211a70
+e0408005
+d8400009
+e0408005
+98007200
+20407c94
+1a222400
+1a427e00
+67e0898e
+d8c0098e
+5fffffe0
+9a608a00
+20207c4a
+20407d94
+20201a6a
+efe08011
+207a0000
+1fe0fe01
+e8408006
+18467c09
+20229a81
+9a40a400
+1a220c00
+98007200
+20407c94
+18c22200
+1a227e00
+9a667c00
+20610000
+20201a72
+9a20a200
+20201a7d
+58000020
+e7e08005
+c2001a83
+20600000
+4761c038
+7855fc00
+20371a8b
+24369a99
+204014f3
+6fe140c8
+67e10295
+24369506
+c5079506
+6fe0816c
+243a1506
+6fe0c1f9
+243a1506
+6fe0c3c3
+c2829506
+6fe08287
+c2829506
+202014e5
+684940c8
+18430400
+6fe10295
+9840fe00
+67e10295
+202014fe
+d8e00000
+20201ab7
+d8e00000
+20201abb
+d8e00001
+20201ab7
+d8e00001
+20201abb
+d8e00002
+20201ab7
+d8e00002
+20201abb
+d8e00003
+20201ab7
+d8e00003
+20201abb
+d8e00004
+20201ab7
+d8e00004
+20201abb
+d8e00005
+20201ab7
+d8e00005
+20201abb
+6fe0c3c3
+f9207e00
+67e0c3c3
+20600000
+6fe0c3c3
+f93ffe00
+67e0c3c3
+20600000
+58112233
+67e1c3c4
+58445566
+e7e18005
+58778899
+e7e18005
+58001122
+e7e18005
+58334455
+e7e18005
+58000066
+e7e08005
+20600000
+59000302
+67e24353
+58010010
+67e1c357
+7043a001
+20600000
+da200000
+d8200001
+20201ae3
+d8200003
+20401ae3
+1a427e00
+e7e08005
+20600000
+18000202
+1a20a204
+20401ae3
+1a20a3fc
+1a227e00
+e7e10005
+1a427e00
+e7e10005
+20600000
+47624038
+1a20a205
+204051be
+1a20a3fb
+1a227e00
+e7e10005
+58000000
+e7e10005
+18227e00
+e7e08005
+20600000
+204051f8
+1fe20c00
+20600000
+6fe144f5
+20600000
+20401af6
+1fe20c00
+20600000
+6fe144f8
+20600000
+20401aee
+18c08c05
+20600000
+20401aee
+18c08c09
+20600000
+20401af3
+18c08c09
+20600000
+20401af3
+18c08c05
+20600000
+2020520e
+20205211
+20205214
+202051fd
+67e4444f
+20201b1a
+184122ff
+20401b0e
+184ca200
+20201b14
+6220c445
+2a2ffe01
+20409b16
+2a2ffe02
+20409b18
+20600000
+6220c446
+20201b0f
+d8e00008
+20201b1c
+d8e0000b
+20201b1c
+d8e00005
+20201b1c
+6fe4443d
+f9207e00
+67e4443d
+20600000
+7002bc01
+7002bd01
+20401632
+20401b26
+20401ba4
+2020163f
+4762c038
+6fe0c3e5
+c1808000
+d8e00002
+20407cb6
+247a0000
+6fe143e6
+684943e8
+98467e00
+d8e00002
+20407ca8
+7854fc00
+20401bc5
+20401b45
+24768000
+47634038
+6fe3016d
+67e30297
+6fe08002
+1fe0fe01
+67e08002
+20401b4c
+20748000
+20401bec
+24768000
+6fe08004
+1fe0fe01
+67e08004
+6fe48173
+67e48a01
+20600000
+4763c038
+20401c37
+204016d7
+6fe08001
+1fe0fe01
+67e08001
+20600000
+47644039
+6fe082e0
+c18d8000
+6fe30297
+684b436e
+98467c00
+24628000
+20400a48
+24628000
+20401b5c
+2040158f
+7041de00
+7002d700
+7043e500
+7002e000
+20200a30
+4764c039
+18007fff
+38080001
+67e282b7
+da200287
+204016ad
+18007204
+d8a002ab
+2040594f
+6fe1437b
+67e102b5
+180a7e00
+1fe17e0f
+1fe67c04
+20211b67
+67e082a0
+67e085a8
+47654039
+684941f6
+60490289
+18422600
+1c40fe07
+9a66fc00
+20407d31
+18072200
+9a267e00
+9a60fe00
+684941f4
+9840fe00
+67e2028b
+9c462200
+1a20a3fa
+da402205
+6fe0c374
+7d3a2406
+6fe0c36d
+7d3a2407
+1a427e00
+67e141f8
+6fe3437d
+e7e30005
+6fe30297
+e7e30005
+6fe202ab
+e7e20005
+180a7e00
+e7e10005
+180a7e00
+e7e08005
+18007e02
+e7e08005
+1a2b7e00
+e7e10005
+1a6b7e00
+e7e10005
+4765c039
+58000000
+e7e10005
+6fe1437b
+e7e10005
+6fe282b7
+e7e28005
+6fe082a0
+d84000a0
+9841fe00
+e7e08005
+204017c3
+580041f8
+1fe08c12
+efe18006
+67e182af
+20600000
+70001624
+70098e00
+6fe0c42a
+207a0000
+d8e00000
+20407cb6
+247a0000
+47664039
+78287c00
+20401bc5
+20401c37
+20401bce
+24369bb8
+6fe08003
+1fe0fe01
+67e08003
+6fe0816b
+1fe17e0f
+c0019bfd
+c0029c0f
+4766c039
+6fe0898e
+6848c435
+98467c00
+24229ba6
+180a7e00
+d84001ff
+98417e00
+1fe0fefa
+20407c4e
+d8e00000
+6fe1442b
+20207ca8
+47674039
+7854fc00
+588e89be
+1fed7e00
+1fe1fed6
+98001200
+58555555
+67e182af
+202010ac
+4767c039
+6fe0c42d
+6848c42e
+18520400
+184b8400
+98408400
+6048c1f8
+c0009bdf
+6848c3ea
+1840fe06
+67e0c1f9
+6fe3437d
+67e341fa
+18427200
+d8c043eb
+20407c94
+20201be5
+5800000c
+67e0c1f9
+6fe3437d
+67e341fa
+6fe341e0
+e7e30005
+4768403a
+6fe08000
+1fe0fe01
+67e08000
+db600708
+7856fc00
+202017ae
+4768c03a
+6fe0c436
+c1808000
+6fe08000
+1fe0fe01
+67e08000
+d8400c03
+6fe0c437
+7d3a0406
+1a227e00
+7d3a0407
+604941f8
+6fe3437d
+e7e30005
+6fe30297
+e7e30005
+202017ae
+6fe30173
+684b437d
+98467c00
+24628000
+d8400004
+6fe0c42e
+7d3a0406
+6048c1f8
+6848c40a
+1840fe06
+67e0c1f9
+6fe3437d
+67e341fa
+d8c0440b
+18427200
+20407c94
+204017c3
+20201bb8
+6fe30173
+684b437d
+98467c00
+24628000
+204018ee
+6220c36d
+6fe3016d
+67e30297
+6fe40179
+67e402ab
+68490181
+4769403a
+184b8400
+6fe10183
+1febfe00
+67e10289
+67e2028b
+98467e00
+1fe0d1fe
+6fe48185
+67e482b3
+6fe0818e
+1fe1041f
+604882a0
+1ff18400
+18430400
+604882d7
+da200287
+204019c0
+da200287
+204016ad
+2040159b
+20400a48
+24628000
+4769c03a
+2040105d
+20401ef9
+70095b14
+204077a7
+20200a30
+476a403a
+6fe08016
+c0129c3d
+c0131c43
+c0139c49
+20201c49
+6848c435
+284ffe01
+20209c54
+284ffe02
+20209c59
+20201c4f
+6848c435
+284ffe02
+20209c59
+284ffe00
+20209c4f
+20201c54
+6848c435
+284ffe00
+20209c4f
+284ffe01
+20209c54
+20201c59
+70001625
+6fe0898e
+79207e00
+67e0898e
+20600000
+70001626
+6fe0898e
+79207e01
+67e0898e
+20600000
+70001627
+6fe0898e
+79207e02
+67e0898e
+20600000
+efe18006
+67e1c439
+c0011c75
+c0019c7d
+c0021c80
+c0031ca9
+c0041cf6
+c0051d74
+c0061da3
+c0081db9
+c0091dfc
+c00b1e20
+c00c1e33
+c00f1e38
+c0291e3c
+20600000
+18002203
+20401e61
+58000002
+e7e08005
+6fe14383
+e7e10005
+20600000
+20401c7d
+18002203
+20401e61
+58000003
+e7e08005
+6fe14383
+e7e10005
+20600000
+1fecfe00
+67e14385
+20600000
+20401e91
+20407d92
+20201c83
+d9600003
+204019da
+204019e3
+203a1ca7
+24211ca4
+18c08dfe
+20407c29
+20407c20
+24341c97
+20407c0e
+20407d94
+6162096c
+18002214
+20401e61
+6962096c
+20407c1c
+58000005
+e7e08005
+58000001
+e7e08005
+20407c23
+efe10006
+1fe17eff
+e7e10005
+efe08006
+1fe27200
+20407ca1
+20407c26
+196097ff
+20229ca7
+efe08006
+98c08c00
+20201c85
+efe08006
+98c08c00
+20201ca1
+20341e55
+20201e84
+20401e91
+efe10006
+67e1435d
+20407c29
+d8a009a2
+6fe143d7
+1fe0fff9
+20401ea2
+20201cbc
+78547c00
+6849099e
+6fe109a0
+98467c00
+24211cb9
+18427e00
+c1800000
+78347c00
+7002d801
+20201e56
+20401cb2
+20740000
+6849435d
+58002800
+98467c00
+20229cc3
+20201e55
+70443c00
+6849099e
+60490964
+20401a1f
+243a1e55
+68490964
+20401a1f
+243a1cdc
+18c22200
+6fe089b3
+1fe27200
+684889a2
+98467c00
+24229cd8
+da4009a3
+20407d33
+20229cdf
+6fe109bb
+6849435d
+98467c00
+20229ce7
+6fe10964
+1fe0fe01
+67e10964
+20201cc8
+6fe0c43c
+c0009ce7
+20201e55
+6fe109bb
+6849435d
+98467c00
+24229cd8
+70443c01
+68490964
+604909b6
+20201cd8
+6fe0c43c
+c0001cd8
+70443c02
+68490964
+184085ff
+604909b8
+da200005
+20401e61
+58000007
+e7e08005
+6fe109b6
+e7e10005
+6fe109b8
+e7e10005
+20600000
+20401e91
+20401e9e
+20201cf9
+6849099e
+60490964
+204019da
+204019f2
+18c08dfe
+18c27e00
+67e109b4
+684909a3
+58002a00
+98467c00
+20229d60
+58002803
+98467c00
+24229d4c
+d9600002
+20401e67
+24211d29
+68490964
+20401a1d
+243a1d29
+20401e6b
+24229d27
+24341d2b
+78547c00
+da200014
+20401e61
+58000009
+e7e08005
+18a26000
+18a08a01
+20401d39
+20401e63
+20401a1d
+20401d40
+6fe089ba
+1fe0a205
+e2208030
+1a267c07
+2442fd96
+2042fd98
+20401e96
+9a26fc00
+20407d31
+18079600
+196097ff
+20229d29
+20401e63
+20201d08
+20341e55
+20201e84
+20401e76
+20401e63
+20401a1d
+20401dea
+243a1d29
+20407c20
+6fe10964
+1fe0ffff
+e7e10005
+20401e80
+20401d40
+196097ff
+20229d29
+20201d27
+6fe10964
+e7e10005
+6fe089b3
+1fe27200
+20407c23
+20407c94
+20207c26
+20407c20
+6fe10964
+e7e10005
+20407c26
+6fe089ba
+1fe27200
+20407c20
+20407c23
+9f260c00
+18c08dff
+20407c94
+20207c26
+20401a02
+203a1e55
+18c22600
+18c08dfb
+efe10006
+67e10964
+da200014
+20401e61
+58000009
+e7e08005
+efe08013
+1fe27200
+1fe0fe02
+e7e08005
+6fe10964
+e7e10005
+1a608c01
+20407c94
+20407c26
+20201e84
+d8402a00
+20401a02
+207a0000
+18c08dfb
+efe10006
+67e10964
+da200014
+20401e61
+58000009
+e7e08005
+6fe0c2fa
+1fe27200
+1fe0fe02
+e7e08005
+6fe10964
+e7e10005
+d8c042fb
+20407c94
+20407c26
+20201e84
+20401e1a
+6849443a
+6fe0c3c3
+c2819d99
+204019f2
+24229e55
+20541d9f
+20740000
+204019ff
+18c08dfe
+efe10006
+d8402a00
+98467c00
+20229d8f
+efe08006
+1fe67c16
+20211d86
+18007e16
+1fe22600
+20407c29
+1a60a201
+20401e61
+5800000b
+e7e08005
+1a627200
+20407c23
+20207ca1
+20407c29
+6fe0c2fa
+1fe0a201
+20401e61
+5800000b
+e7e08005
+6fe0c2fa
+1fe27200
+d8c042fb
+20207ca1
+6fe143d4
+98467c00
+24229d78
+24341d78
+7002d805
+20201e56
+18c08dfe
+efe10006
+c2871d9d
+20207d94
+efe10006
+67e109a2
+da200014
+20401e61
+5800000d
+e7e08005
+6fe109a2
+98002200
+6849443a
+204019ef
+203a1e55
+efe08006
+9a267200
+24211e55
+1f267c16
+20211db4
+18007216
+1a227e00
+98c08c00
+20407c94
+20407c26
+20201e84
+20401e91
+20401e9e
+20201dbc
+d9600002
+6849099e
+60490964
+204019f2
+18c08dfe
+18c27e00
+67e109b4
+20401e67
+24211df2
+68490964
+20401a1d
+243a1df5
+20401e6b
+24229de8
+19627e00
+c0001df5
+24341dde
+78547c00
+da200014
+20401e61
+58000011
+e7e08005
+6fe089b3
+1fe0a204
+e2208005
+20407c26
+1a267c06
+2442fd96
+2042fd98
+20401e96
+9a26fc00
+20407d31
+18079600
+20201de4
+20401dec
+243a1df5
+6fe10964
+1fe0ffff
+67e109b8
+20401e7b
+6fe10964
+67e109b6
+20401e76
+196097ff
+20401e63
+20201dc3
+6fe089ba
+20201ded
+6fe089b3
+20361df0
+1fe0fffe
+20600000
+1fe0fff0
+20600000
+6fe10964
+67e109b8
+20201df9
+6fe10964
+1fe0ffff
+67e109b8
+20201df9
+20341e55
+20401e7b
+20201e84
+18c22200
+6fe143d7
+1fe0a5fd
+204019b2
+20401e1a
+6849443a
+204019f2
+24229e18
+20541e14
+20740000
+6fe0c3c3
+c3021e0f
+6849443a
+6fe143d4
+98467c00
+24229e0f
+20401e1a
+24341e0f
+20201d9d
+18002201
+20401e61
+58000013
+e7e08005
+20600000
+18c08dfe
+efe10006
+c2879d9d
+20207d94
+7002d801
+20201e56
+20407d94
+6fe0c3a0
+c1000000
+6fe0c040
+c3820000
+20207d92
+18c0a202
+6fe143d7
+1fe0a5fb
+204019b2
+20201e25
+6fe143d7
+1fe22200
+20401e61
+58000017
+e7e08005
+6fe1443a
+e7e10005
+6fe143d7
+1fe0f3fb
+6fe143db
+1fe08c07
+efe10006
+e7e10005
+20207c94
+18002201
+20401e61
+58000019
+e7e08005
+20600000
+6fe0c438
+793ffe00
+67e0c438
+20600000
+18c22200
+6fe143d7
+1fe0a5fd
+202019b2
+18422600
+1a20a203
+20401e61
+1a20a3fd
+5800001b
+e7e08005
+1a620400
+e0410005
+20600000
+6fe0c438
+79207e00
+67e0c438
+18422600
+1a20a203
+20401e61
+1a20a3fd
+5800001d
+e7e08005
+1a620400
+e0410005
+20600000
+7002d80a
+18002205
+20401e61
+58000001
+e7e08005
+6fe0c439
+e7e08005
+6fe1443a
+e7e10005
+6fe082d8
+e7e08005
+20600000
+18002404
+20201ada
+68490964
+18408401
+60490964
+20600000
+68490964
+6fe109a0
+98467c00
+20600000
+684889a2
+da2009a3
+6fe089ba
+1fe27200
+98467c00
+24628000
+da4009bb
+20207d33
+6848c35c
+da20435d
+20201e6d
+6fe089b3
+67e08a01
+1fe27200
+20407c23
+20207c94
+20407c20
+6fe109b6
+e7e10005
+6fe109b8
+e7e10005
+6fe08a01
+1fe27200
+20407c94
+20207c26
+476ac03a
+20407c20
+20401afe
+18a27e00
+98c62200
+20401b01
+1a227e00
+e7e10006
+1a20a204
+20401af3
+1a227e00
+e7e08006
+20600000
+1fecfe00
+67e1099e
+efe10006
+67e109a0
+20600000
+6fe14385
+1fe0fffe
+68494383
+184085fe
+20407d88
+d84000f0
+20407d88
+20600000
+20407c29
+d8a009a2
+6fe143d7
+1fe0fffb
+e7e08005
+1fe27200
+20407c23
+20207c94
+6fe1016f
+c1820000
+6fe0c438
+79207e01
+67e0c438
+6fe18171
+67e1c439
+7920000f
+c0091ec1
+c0291ec6
+c00c1e33
+c0011c75
+c00f1e38
+793f800f
+6fe0c438
+793ffe01
+67e0c438
+20600000
+6fe0c438
+c4008000
+7920000f
+20401ed0
+20401ed6
+20541eb4
+6fe0c439
+c0091e00
+20600000
+20401ec6
+20201ec3
+20401ed6
+24740000
+20201e00
+20401ec9
+da200174
+202019b2
+6fe0816c
+1fe0a5f9
+1fe0fffc
+67e143d9
+6849016d
+604943d7
+20600000
+6a40816c
+6fe143d9
+9a408400
+604943d9
+da20016d
+202019b2
+20407d94
+6fe143d9
+684943d7
+98467c00
+24628000
+20207d92
+efe08006
+e8408006
+e8410006
+c0099ee1
+20600000
+efe10006
+67e143de
+70095b40
+202077a7
+da20000c
+da600012
+20401eed
+58000008
+e7e10005
+6fe44375
+e7e40005
+20600000
+20401ef5
+da400005
+20401ada
+1a627e00
+e7e08005
+6fe0c3dd
+e7e08005
+20600000
+6fe0c3dd
+1fe0fe01
+67e0c3dd
+c1800000
+7043dd01
+20600000
+6fe0c3a0
+c0001f0a
+c0009f0d
+c0011f0f
+c0409f03
+c0411f05
+c0419f08
+20600000
+7043560d
+20201f0b
+7043560d
+70435401
+20600000
+7043560d
+20201f10
+70435600
+70435403
+20600000
+70435605
+20201f0b
+70435605
+70435400
+20600000
+6fe0c6bf
+79207e00
+67e0c6bf
+20600000
+6fe0c6bf
+793ffe00
+67e0c6bf
+20600000
+efe08006
+c0009f2e
+c0019f55
+c0021f76
+c0029f83
+c0039feb
+c0041fd7
+c0049fe7
+c0051feb
+c0059feb
+c0061fec
+c0069ff1
+20600000
+18002202
+20402097
+5800000b
+e7e08005
+6fe0c356
+e7e08005
+20600000
+67e0c34c
+efe30006
+e7e30005
+6fe0c3a0
+c0001f88
+20401f50
+6fe0c6bd
+203a1f3a
+6fe0c34f
+c301b254
+6fe0c3a0
+c303b254
+70439e03
+6fe0c34d
+c0001f42
+c0009f42
+c0019f42
+6fe0c3a0
+c0011f45
+c1418000
+dfe00000
+67e243a1
+20600000
+6fe0c3c3
+c2801f4e
+da2043a1
+1a220a00
+df200003
+2040594f
+6fe143a3
+1fe17e07
+67e143a3
+70095b34
+202077a7
+18002207
+20402097
+6fe3c353
+e7e38005
+20600000
+70439e05
+d8a0432a
+20407c4c
+6fe0c3a0
+c0419f5d
+c0021f60
+c0421f62
+20201f65
+70439b02
+70439c08
+20600000
+70095b43
+202077a7
+6fe243a1
+203a1f60
+20201f5d
+70439e06
+6fe0c3a0
+c2839f6e
+20406b5c
+18002211
+20402097
+58000003
+e7e08005
+20206d07
+d8a0433a
+2040594e
+20406985
+18002211
+20402097
+58000003
+e7e08005
+202069c1
+18c22200
+6fe0c3a0
+c2839f8a
+1a220c00
+20406b54
+20229f9f
+7002d904
+18002202
+20402097
+58000005
+e7e08005
+6fe082d9
+e7e08005
+18000e0a
+20407ca7
+70439e00
+70095b30
+202077a7
+7002d905
+20201f7d
+d8a00277
+1a220c00
+20407c4c
+6fe0c3a0
+c0419f96
+c0421f96
+2040690f
+20401fa4
+6fe0c3a0
+c1c10000
+70095b3b
+202077a7
+2040697a
+d8a009be
+204069c1
+da2009be
+da40432a
+df200010
+20407d33
+24229f7c
+20201fa4
+20406b50
+70095b31
+204077a7
+70432901
+70439e09
+18002211
+20402097
+58000004
+e7e08005
+d8c0433a
+20207c4c
+18002211
+20402097
+58000006
+e7e08005
+6fe0c3c3
+c2809fb2
+d8c04319
+20207c4c
+d8c043c4
+20207c4c
+d8a043a5
+1800720a
+2040594f
+1800220b
+20402097
+58000007
+e7e08005
+6fe143a5
+e7e10005
+6fe443a7
+e7e40005
+20600000
+18002211
+20402097
+58000008
+e7e08005
+58000000
+e7e40005
+e7e40005
+20600000
+18002208
+20402097
+58000009
+e7e08005
+6fe0c374
+e7e08005
+6fe3437d
+e7e30005
+20600000
+7002d908
+20201f7d
+6fe0c358
+6848c358
+98417e00
+20600000
+d8a043af
+20407c4c
+20401fd3
+2fec0001
+20209fd1
+6fe0c09a
+c1850000
+20401fe1
+24740000
+20203262
+20407d94
+6fe0c36d
+c1000000
+6fe0c351
+c4008000
+20207d92
+20401fd3
+2fec0001
+20209fd1
+20600000
+20600000
+d8a00880
+20407c3d
+70439b02
+70439c01
+20600000
+d8a00930
+20407c4c
+70439c06
+70439b02
+20600000
+18002241
+20402097
+5800000c
+e7e08005
+d8c046e3
+20207c3d
+20406926
+18002211
+20402097
+5800000d
+e7e08005
+202069c1
+6fe0c39e
+c17f8000
+d8400003
+98467c00
+24610000
+d8e0000a
+20407cb6
+247a0000
+20201fd1
+476b403a
+20401b05
+247a0000
+6fe0c39e
+c0002018
+c000a01e
+c0012018
+c001a020
+c004a024
+c005a034
+c0062036
+c006a03d
+20600000
+6fe0c39f
+c1820000
+70439fff
+70439eff
+70095b3f
+202077a7
+70439e02
+20201f27
+70439e04
+58017700
+d8e0000a
+20207ca8
+6fe0c39f
+c0022027
+20600000
+6fe0c3a0
+c283a032
+70439e0b
+20401faa
+70095b29
+204077a7
+6fe0c09a
+c1850000
+20401fe1
+20740000
+20203262
+70439e0c
+2020202b
+70439e0c
+20201fb4
+6fe0c352
+6848c359
+98417e00
+2fec0001
+2020a03f
+70439e0d
+20201fc0
+20401fc8
+2020203f
+18000e0a
+20407ca7
+70439fff
+70439eff
+70095b3e
+202077a7
+476bc03a
+6fe0c3a0
+c4038000
+6fe0c39b
+c1810000
+70439b00
+6fe0c39c
+c000a08d
+c0012094
+c001a085
+c003206a
+c003a061
+c0042057
+20600000
+70439b00
+70439c00
+70439d00
+20600000
+6fe0c774
+1fe20e00
+1fe0fe01
+67e0c774
+6fe243a1
+afefffff
+58000080
+7920fe00
+67e0c775
+20202089
+6fe0c39d
+70439d00
+c000a066
+70439b02
+20600000
+70095b31
+204077a7
+70439e09
+20201ffc
+6fe0887b
+c001a06e
+70439b02
+20600000
+2040694d
+6fe0c3a0
+c041a073
+c0422073
+20401f42
+2040693a
+da2009be
+da400930
+df200010
+20407d33
+2022a07b
+7002d90b
+20201f7d
+20406e23
+2422a079
+70432901
+6fe0c3a0
+c040a066
+c041a066
+c0422066
+70439b02
+70439c07
+20600000
+6fe0c3a0
+c041a08a
+c042208a
+70477500
+20201f65
+70477400
+c1420000
+20201f45
+70439b02
+6fe0c6c2
+c001a091
+20600000
+70439c02
+70087b00
+202074b7
+70439b02
+70439c03
+20201ff6
+18002406
+20201ada
+6fe0816d
+c00020b0
+c000a0b8
+c00120c0
+c001a0c4
+c00220e3
+c002a0e8
+c00320ec
+c003a0f1
+c00420f2
+c004a0f3
+c00520f4
+c005a0f8
+c00620f9
+c006a0fb
+c00920fc
+c009a0fd
+c00a20fe
+c00aa100
+c00b210b
+c00c210c
+6a60816d
+2020212f
+efe48006
+67e482be
+efe10006
+67e102a7
+6fe08287
+79207e05
+67e08287
+20600000
+efe28006
+67e282be
+efe10006
+67e102a7
+6fe08287
+79207e06
+67e08287
+20600000
+58000014
+67e102b5
+67e14397
+20600000
+efe40006
+67e443a7
+efe10006
+67e143a5
+efe40006
+67e44387
+efe20006
+67e246b1
+2040211c
+476c403b
+6fe0c39e
+c004a0d6
+6fe0c3c3
+c280a0d9
+6fe0c48e
+245a5f3c
+6fe0c329
+c00020de
+70439f01
+2040212a
+20206b62
+70432901
+d8c043c4
+d8a04319
+20407c4c
+202020d6
+476cc03b
+70439f00
+70439e00
+70095b41
+202077a7
+efe40006
+67e4438f
+efe20006
+67e246b5
+20206b62
+6fe08287
+79207e04
+67e08287
+20600000
+20748000
+70095b32
+204077a7
+70439f04
+2020212d
+20600000
+20202134
+20600000
+70439f02
+2040213b
+70095b33
+202077a7
+20600000
+20748000
+2020213d
+20600000
+20202149
+20600000
+20402100
+2020214d
+efe40006
+67e44447
+6fe14447
+68494453
+20407d88
+67e14447
+6fe1444b
+6849444f
+20407d88
+67e1444b
+20600000
+20202153
+efe10006
+67e102be
+efe10006
+67e102a7
+207a0000
+6fe08287
+79207e07
+67e08287
+20600000
+da600013
+da200002
+da400002
+20401ad5
+1a627e00
+e7e08005
+20600000
+d8a0438f
+18007208
+2040594f
+d8a046b5
+18007204
+2040594f
+da20000d
+da400004
+20401ad5
+6fe4438f
+e7e40005
+6fe246b5
+e7e20005
+20600000
+70439f05
+da400005
+2020215d
+da400006
+2020215d
+da200002
+da400007
+20401ad5
+e2608005
+20600000
+da200009
+da400009
+20401ad5
+6fe4443d
+1fe1fe01
+e7e40005
+20600000
+da40000b
+2020215d
+da200006
+da40000c
+20401ad5
+6fe2c5fe
+e7e28005
+20600000
+da200002
+da40000d
+20401ad5
+58000006
+e7e08005
+20600000
+da400013
+2020215d
+da400014
+2020214e
+da400015
+da200009
+20401ad5
+6fe4444f
+e7e40005
+20600000
+da200003
+da400017
+20401ad5
+6fe0c445
+1fe17e07
+e7e08005
+6fe0c446
+1fe17e07
+e7e08005
+20600000
+da200001
+20201ad5
+476d403b
+c513a3c3
+20202605
+7844fc00
+7843fc00
+58555555
+98001e00
+6fe0c841
+20201650
+476dc03b
+6fe0c86b
+20401618
+6fe24843
+98001200
+204010ac
+2040115d
+6848c841
+20401655
+20402162
+c597a176
+783cfc00
+2000001e
+20402162
+7857fc00
+7826fc00
+7830fc00
+78507c00
+78287c00
+6fe1483f
+98003600
+37c18400
+242c21d0
+20404bd6
+c517a185
+6fe0c87e
+243a2185
+7846fc00
+7825fc00
+7823fc00
+7824fc00
+204021cd
+67e0c861
+6848c860
+98467c00
+2422a1d2
+476e403b
+7858fc00
+280ffe2f
+2040a1bf
+2038a1d2
+204021cd
+67e0c7ab
+c513a198
+6fe0c7ab
+6848c83d
+a8400e00
+2420a1d2
+204021cd
+280ffe2f
+2040a1c8
+e7e08005
+1fe97e00
+1fe67c1f
+242121d2
+1fe27200
+2022a1a4
+204021cd
+e7e08005
+c20021a1
+c513a1a9
+18a22200
+204021cd
+67e0c886
+1a220a00
+09800018
+1fef7e00
+1ff17e00
+e7e18005
+6fe0c87e
+243a21bd
+7845fc00
+280ffe27
+2040a5c8
+202321d2
+20404bd5
+7837fc00
+2040173d
+476ec03b
+c6138000
+6fe0c886
+6848c8d5
+98467c00
+20417d8a
+202025cc
+7846fc00
+202021b0
+204021cd
+1fe67c01
+20217d9a
+1fe0fffe
+c513a1c6
+203a7d9a
+1fe0ffff
+67e08964
+20600000
+1fe17e07
+68488964
+18498400
+9841fe00
+20600000
+09800008
+19897e00
+20600000
+280ffe27
+2040a5e4
+2040163f
+784dfc00
+7845fc00
+20200e7c
+2040115d
+6848c841
+20201201
+476f403b
+6fe0c86c
+20401618
+6fe24843
+98001200
+20402162
+204021d6
+79202a00
+782efc00
+78307c00
+7850fc00
+20404bdc
+785d7c00
+c517a20a
+c516a21c
+19317e00
+1fecfe00
+1ff1fe00
+08008628
+c517a1f1
+6fe0c87e
+243a21f1
+784efc00
+782dfc00
+7823fc00
+7824fc00
+6fe0c83e
+98007200
+d8c047ed
+efe08006
+08008608
+c20021f6
+78247c00
+08008618
+78447c00
+c597a200
+7843fc00
+58000000
+08008603
+37d38200
+20000064
+785d7c00
+784efc00
+6fe0c87e
+243a2207
+784dfc00
+785c7c00
+2040115d
+20204bda
+df20000a
+5800003c
+08008608
+c200220b
+784efc00
+783c7c00
+19317e00
+1ff17e00
+1ff1fe00
+08008620
+c5172219
+58000001
+08008605
+783d7c00
+202021ec
+58000000
+08008605
+202021ec
+6fe0c1f3
+1fe37200
+20000002
+c200221e
+19317e00
+1fecfe00
+1ff18400
+18427e00
+08008608
+18427e00
+08008628
+202021ec
+6fe0c86c
+c2812247
+6fe0c83c
+1fe0fe03
+67e0c83e
+6fe0c860
+67e0c7ed
+6fe0c83d
+e7e08005
+6fe0c83c
+1fe9fe00
+6848c832
+18410403
+18438400
+9841fe00
+6848c833
+9840fe00
+e7e08005
+6fe0c83c
+98007200
+d8c047cd
+20407ca1
+c6938000
+6fe08154
+e7e08005
+6fe0c86c
+c3810000
+6fe0c83e
+1fe0fe01
+67e0c83e
+20600000
+6fe0c83c
+1fe0fe04
+c593a24b
+1fe0fe01
+67e0c83e
+6fe0c860
+67e0c7ed
+6fe0c83e
+1fe0fffe
+e7e08005
+6fe0c83d
+e7e08005
+58000000
+20202232
+6fe0c7ac
+1fe97e00
+67e0c831
+1fe0fe01
+d8c047ac
+98c08c00
+efe18006
+67e1c834
+6fe0c7ac
+1fe37e00
+1fe17e03
+67e0c83a
+20600000
+6848c842
+20402266
+6048c842
+20600000
+2040226a
+18408401
+18410403
+20600000
+6fe0c843
+1fe17e03
+1fefa204
+58004847
+9a20fe00
+98408c00
+efe08006
+67e0c841
+20600000
+67e24843
+da200000
+df200004
+d8c04843
+efe08006
+9a20a200
+c2002277
+1a227e00
+67e1485e
+6fe0c85e
+6848c85f
+9840fe00
+67e0c860
+20600000
+20407d94
+684a4857
+1c427e00
+98467c00
+24412290
+1fe22400
+6fe24857
+6848c85b
+98408400
+1a427e00
+98467c00
+24610000
+793ffe1c
+67e24857
+20207d92
+20628000
+79207e1c
+20600000
+58000000
+67e24857
+20600000
+38001300
+3805908b
+380b6150
+380c3d20
+67e4c847
+38003a1a
+3804c453
+3808d312
+380c0001
+e7e38005
+6fe0c86d
+207a0000
+d8c0486e
+d8a04847
+20207c4c
+584e001e
+67e1c86f
+58032303
+e7e18005
+58250642
+e7e18005
+58094c06
+e7e18005
+583c0927
+e7e18005
+70486d01
+20600000
+d8406978
+c513a2b7
+d84012c0
+6fe0c86b
+c30122b7
+d8402ee0
+6049483f
+20600000
+70486b01
+70486c01
+20600000
+7048834e
+58101520
+67e1c87f
+58000005
+e7e08005
+20600000
+da60488b
+da402666
+202031d6
+79200026
+6fe0c8a9
+793ffe02
+79207e01
+67e0c8a9
+58000000
+67e1488f
+6fe14889
+67e1488b
+70488800
+20402303
+70483200
+6fe0c883
+67e0c841
+6fe0c884
+67e0c1eb
+6fe2487f
+20202273
+476fc03b
+6fe0c887
+c07fa325
+c000a2df
+c00122e1
+c001a2e7
+c00222ed
+20600000
+7047cdff
+202022ee
+6fe0c862
+203a22e5
+6fe248b1
+20402273
+7047cdaa
+202022ee
+7047cd55
+6fe0c862
+203a22ee
+6fe24899
+67e247cf
+202022f0
+7047cd22
+6fe248b1
+67e247cf
+6fe0c83d
+1fe17e07
+67e0c7ce
+7047d300
+70483c07
+20402228
+20402645
+246c0000
+24778000
+20402583
+2040265c
+4770403c
+6fe0c887
+c17f8000
+c000a308
+c001230a
+c001a310
+c0022318
+20600000
+70488702
+6fe0c862
+207a0000
+70488701
+20600000
+70488702
+20202641
+6fe0c862
+203a230e
+6fe24813
+67e24899
+70488703
+20202641
+6fe0c862
+203a2316
+6fe24813
+684a48b1
+98467c00
+24628000
+70488704
+20202641
+6fe0c862
+203a231e
+6fe24813
+684a4899
+98467c00
+24628000
+704887ff
+70095b39
+204077a7
+58000000
+67e1488b
+6fe24813
+20402273
+6fe0c8a9
+793ffe01
+67e0c8a9
+20202641
+7048c701
+7048c600
+20600000
+6fe0c8c6
+c3808000
+79207e01
+67e0c8c6
+58000000
+67e1c886
+67e248dd
+7048c201
+202022d0
+7048c201
+70483c08
+d8c04889
+d8a047cd
+20207c46
+4770c03c
+204023dd
+20402168
+2437a3dd
+20402349
+2040240f
+204023b8
+204037d6
+6fe0c862
+207a0000
+6fe248dd
+207a0000
+20202273
+204023dd
+202021d2
+7048d305
+d8c047ab
+d8a04899
+20407c46
+4771403c
+6fe0c89b
+c0552354
+c02aa361
+c011237e
+c07fa5a1
+20600000
+6fe0c89c
+c000a358
+c001235e
+20600000
+70488601
+70488901
+70488a80
+6fe340a8
+67e3488b
+20600000
+70488701
+70488902
+2020235a
+6fe0c862
+203a2367
+6fe2489d
+684a40a8
+98467c00
+24628000
+6fe0c89c
+c000a36b
+c0012376
+20600000
+6fe0c886
+c000a36e
+20600000
+70488602
+6fe0c862
+203a2359
+70488901
+70488a80
+6fe248dd
+67e2488b
+20207d92
+6fe0c887
+c000a379
+20600000
+70488702
+6fe0c862
+203a235f
+70488902
+20202372
+6fe0c862
+203a2384
+6fe2489d
+684a48dd
+98467c00
+24628000
+6fe0c89c
+c000a388
+c0012393
+20600000
+6fe0c886
+c001238b
+20600000
+204023ac
+20402359
+6fe0c888
+1fe1fe01
+67e0c888
+58000000
+67e14886
+20600000
+6fe0c887
+c0802396
+20600000
+204023b2
+2040235f
+6fe0c888
+1fe1fe02
+67e0c888
+20402390
+202037d0
+6fe0c8c7
+c1808000
+6fe0c8c1
+247a0000
+6fe0c7ae
+c000a3a5
+c00123a9
+20600000
+6fe0c8dc
+c4000000
+7857fc00
+20600000
+6fe0c8dc
+c4008000
+202023a7
+6fe0c8c1
+247a0000
+6fe0c8dc
+1fe1fe01
+67e0c8dc
+20600000
+6fe0c8c1
+247a0000
+6fe0c8dc
+1fe1fe02
+67e0c8dc
+20600000
+6fe0c888
+207a0000
+6fe0c89c
+c000a3ac
+c00123b2
+20600000
+79200027
+6fe0c1eb
+67e0c8d4
+204022b1
+202025d7
+6fe14891
+20207d47
+70483c00
+6fe0c8c2
+207a0000
+6fe14893
+20207d47
+2040240c
+2437a3dd
+204023fe
+243423dd
+6fe0c831
+203a23dd
+1fe0fe02
+98007200
+d8c047ab
+d8a04899
+20407ca1
+7048c400
+6fe0c8c1
+205a2419
+4771c03c
+6fe0c89b
+c000a3e2
+c00123f1
+c07fa3e0
+d8a047ab
+df200042
+20207c68
+204023ba
+202025a1
+204023ac
+2040253f
+6fe0c8bb
+6848c899
+284ffe03
+7920fe00
+67e0c8bb
+c000a3f7
+6fe0c8c3
+6848c899
+284ffe04
+7920fe00
+67e0c8c3
+6fe14895
+20207d47
+204023b2
+6848c899
+284ffe03
+2020a3fc
+6fe14897
+20207d47
+6fe0c09a
+1fe67c0e
+2042b4c3
+6fe248a3
+202025a7
+6fe248a3
+202025ab
+20407d94
+6fe0c83a
+6848c83b
+98467c00
+2442fd92
+6fe0c83a
+67e0c83b
+6fe1c834
+6849c837
+98467c00
+2442fd92
+6fe1c834
+67e1c837
+20600000
+204023dd
+20402168
+24778000
+6fe0c7ab
+67e0c83d
+20402255
+6fe0c7ac
+2feffe00
+2020a418
+204023c5
+20402228
+204021d9
+202021d2
+7048c501
+58000280
+d8e00008
+20207ca8
+7048c401
+7048c800
+70485bff
+20202293
+4772403c
+6fe0c8c4
+207a0000
+20402281
+24740000
+2040242e
+6fe0c8c8
+1fe0fe01
+1fe17e01
+67e0c8c8
+c0002433
+c000a436
+20600000
+6fe0c8d3
+207a0000
+1fe0ffff
+67e0c8d3
+20600000
+6fe0c8d3
+247a0000
+20202476
+6fe0c8d3
+247a0000
+20202329
+6fe0c8db
+247a0000
+6fe0c8d9
+205a2466
+6fe0c8d6
+c3800000
+79207e00
+67e0c8d6
+7048d501
+7048da00
+58000000
+67e148d7
+70485b60
+20202293
+6fe0c8c7
+c1000000
+6fe0c8db
+247a0000
+6fe0c8d9
+247a0000
+6fe0c8d5
+207a0000
+20402281
+24740000
+6fe148d7
+1fe0fe01
+67e148d7
+d84007d0
+98467c00
+20212462
+2040242e
+6fe0c8da
+1fe0fe01
+1fe17e01
+67e0c8da
+c000245f
+c000a329
+20600000
+6fe0c8d3
+243a2329
+20202527
+7048d901
+20202527
+7048d500
+20600000
+7048d501
+20600000
+6fe0c8c6
+c3800000
+79207e00
+67e0c8c6
+6fe0c8d4
+67e0c1eb
+7048c200
+700bf900
+7048bb01
+70483200
+6fe240a8
+20402273
+20402262
+202023dd
+7048c200
+7048c700
+7048c600
+20600000
+6fe0c8c7
+c1800000
+20402468
+2040252a
+202023ca
+4772c03c
+6fe0c8c7
+c1808000
+2040232c
+2040233a
+6fe0c8c1
+247a0000
+6fe0c888
+207a0000
+7048c400
+20402476
+20402419
+20202293
+6fe0c8c6
+c3838000
+79207e07
+67e0c8c6
+7048c800
+7048c201
+58000000
+67e1c8ee
+67e3c8cb
+20402519
+24628000
+6fe0c842
+67e0c8ca
+6fe0c841
+67e0c8c9
+20600000
+4773403c
+6fe0c8c7
+c1838000
+2040248c
+204024c2
+2040240c
+2437a3dd
+20402519
+2042a3cc
+6fe0c8bb
+205a2464
+7048c700
+6fe0c8c6
+79207e00
+67e0c8c6
+6fe0c8c2
+1fe67c02
+2442a517
+204023dd
+20402419
+20402519
+2022a4bb
+6fe24843
+684a48e5
+98467c00
+2022a4be
+6fe24843
+684a48e1
+98467c00
+2022a4c0
+20600000
+6fe0c8ca
+67e0c842
+20600000
+6fe0c8d0
+202024bc
+6fe0c8cd
+202024bc
+6fe0c8c8
+1fe0fe01
+1fe17e03
+67e0c8c8
+c00024e5
+c000a4ff
+c00124cb
+c001a4ff
+20600000
+20402359
+6fe248e1
+203a24c2
+20402273
+6fe0c8ce
+205a24e0
+6fe0c8cc
+67e0c841
+6848c8ef
+6a2148f5
+204025ad
+6048c8ef
+204025b5
+6048c8ec
+18467c50
+24610000
+6848c8cd
+20402266
+6048c8cd
+67e0c8cc
+20600000
+7048ce01
+d8400000
+2040226a
+67e0c8cc
+20600000
+2040235f
+6fe248e5
+203a24c2
+20402273
+6fe0c8d1
+205a24fa
+6fe0c8cf
+67e0c841
+6848c8f0
+6a2148f7
+204025ad
+6048c8f0
+204025b5
+6048c8ed
+18467c50
+24610000
+6848c8d0
+20402266
+6048c8d0
+67e0c8cf
+20600000
+7048d101
+d8400000
+2040226a
+67e0c8cf
+20600000
+20402359
+6fe240a8
+20402273
+6fe0c8cb
+205a2513
+6fe0c8c9
+67e0c841
+6848c8ee
+6a2148f3
+204025ad
+6048c8ee
+204025b5
+6048c8eb
+18467c50
+24610000
+6848c8ca
+20402266
+6048c8ca
+67e0c8c9
+20600000
+7048cb01
+6fe0c8c9
+67e0c841
+20600000
+7048c200
+20600000
+6fe24843
+684a40a8
+98467c00
+20600000
+6fe0c8c2
+c1010000
+6fe0c8c5
+207a0000
+d8e00008
+20407cb6
+247a0000
+7048c500
+7048d300
+20402439
+7048c707
+7048c600
+202023dd
+6fe0c8bb
+c000a5eb
+6fe0c8c3
+c000a53d
+684a48bc
+1c427e00
+98467c00
+24412290
+1fe22400
+6fe248bc
+6848c8c0
+98408400
+1a427e00
+98467c00
+24610000
+793ffe1c
+67e248bc
+7048bb01
+20202262
+7048c300
+20202262
+1c427e00
+67e248bc
+20600000
+da60488f
+da402666
+202031d6
+4773c03c
+79200026
+6fe0c8a9
+793ffe01
+79207e02
+67e0c8a9
+6fe0c894
+203a255a
+6fe0c893
+c000a552
+c0012552
+c001a561
+c0022561
+6fe0c884
+67e0c1eb
+6848c89d
+6048c842
+6fe24895
+2040256a
+6048c89d
+20600000
+7041eb03
+6848c89e
+6048c842
+6fe24899
+2040256a
+6048c89e
+20600000
+7041eb03
+6848c89f
+6048c842
+6fe248b1
+2040256a
+6048c89f
+20600000
+6fe24813
+67e24899
+20402273
+20202262
+4774403d
+20402586
+20402645
+242c258d
+2437a58d
+2040265c
+6fe0c8a9
+793ffe02
+67e0c8a9
+58000000
+67e1488b
+67e14891
+67e1488f
+6fe2487f
+684a4843
+98467c00
+2022a2c5
+6fe248b1
+684a4843
+98467c00
+2042a568
+70095b3c
+204077a7
+df200004
+d8a047cd
+20207c59
+7047cdff
+6fe0c83d
+67e0c7ce
+6fe248b1
+67e247cf
+70483c06
+20202228
+6fe0c894
+203a2262
+6fe14891
+1fe0fe01
+67e14891
+2feffe03
+6fe0c893
+c000a599
+c001259b
+c001a59d
+c002259f
+2020255a
+2020a55a
+20202552
+2020a561
+20202552
+2020a561
+2020255a
+2020a2d0
+20202561
+6fe0c89c
+c000a5a5
+c00125a9
+20600000
+6fe2489d
+67e248dd
+67e248e1
+20600000
+6fe2489d
+67e248dd
+67e248e5
+20600000
+1a227e00
+98408a00
+6fe08018
+e7e08005
+18408401
+6fe0c885
+98410400
+20600000
+6fe0c885
+1fe0fe01
+67e10987
+1fe27200
+1a220c00
+dfe00000
+e8408006
+9840fe00
+c20025bb
+68490987
+9846fc00
+20407d31
+18078400
+c6138000
+18427e00
+c6930000
+20401295
+1fe20400
+20600000
+2040127d
+20201291
+6fe148a1
+202025de
+1fe22200
+6848c8a0
+6fe148a1
+98408a00
+1a227e00
+e7e08005
+18408401
+6fe0c885
+98410400
+6048c8a0
+20600000
+6fe148f1
+204025de
+6fe148f3
+204025de
+6fe148f5
+204025de
+6fe148f7
+207a0000
+1fe20a00
+6fe0c885
+1fe0fe01
+1fe27200
+20207c68
+204025c8
+207a0000
+6848c8ea
+6a2148f1
+204025ad
+6048c8ea
+20600000
+6a2148f1
+204025b5
+6048c8e9
+18467c50
+24610000
+20202262
+6fe240a8
+67e248b1
+204022b1
+202025ca
+58002fb2
+67e1c8b5
+58100c0c
+67e1c85b
+5800bb80
+67e1c8b8
+7048ce05
+20600000
+5800f80c
+67e1c8b5
+581c1919
+67e1c85b
+58017700
+67e1c8b8
+7048ce0b
+20600000
+c6930000
+6fe0c8a9
+c280a2d7
+c281256c
+6fe0c8c5
+c000a6ad
+4774c03d
+2040261b
+2434268b
+20402630
+204026d5
+6fe0c09a
+c0044709
+6fe448b8
+67e44863
+6fe148ca
+67e148cc
+204026a4
+24740000
+20407f1a
+6fe1c8b5
+202026a1
+2040261e
+24740000
+20202228
+6fe148a3
+20407d47
+20342624
+6fe3c7ce
+207a0000
+20207d92
+7048af00
+1a20fe01
+67e0c83c
+2040262c
+67e0c7cd
+1a420c00
+1a227200
+20207ca1
+6fe0c83d
+1fe17e07
+67e0c83d
+20600000
+7048ae00
+6961015f
+34730200
+20402645
+6fe0c833
+c000a63b
+242c2653
+2437a653
+2040265c
+6fe0c09a
+c0044705
+20402707
+20402583
+6fe0c832
+1fe0fe01
+67e0c832
+2040267e
+58000000
+67e0c8aa
+67e148ab
+20600000
+7857fc00
+204021d9
+6fe0c833
+c000a1d2
+18002a00
+6fe24843
+98001200
+204010ac
+68488017
+2040118b
+204011a2
+20402171
+2057a1d2
+20600000
+6fe0c8af
+247a0000
+6fe148ab
+1fe0fe01
+67e148ab
+6fe0c8ac
+c2822663
+20402668
+20202631
+20402255
+6fe0c831
+207a0000
+98007200
+d8c047ad
+d8a04811
+20207ca1
+58000000
+67e148ab
+7048ad01
+70095b3a
+202077a7
+4775403d
+6848c8ae
+6fe0c8ce
+98467c00
+24212686
+18408401
+6048c8ae
+6fe0c8ce
+c002a675
+6fe0c8ae
+c0032680
+c0062680
+20600000
+6fe0c8ae
+c001a680
+c0032680
+20600000
+c517a67c
+67e0c7ee
+20600000
+67e0c7ef
+20600000
+6fe0c83d
+c4020000
+6fe0c83d
+793ffe04
+67e0c83d
+20402679
+2040270b
+20202262
+204026fb
+2040270b
+20202262
+6fe148a5
+20207d47
+6fe0c8af
+205a2690
+204026b7
+20402689
+2020269e
+70483d01
+7048af01
+2040262c
+67e0c7cd
+58000000
+67e3c7ce
+6fe248b1
+67e247d5
+70483c0c
+6fe0c83d
+79207e03
+67e0c83d
+20402228
+2020260e
+204026a4
+24740000
+6fe44863
+20407cec
+604a4160
+20201445
+4775c03d
+78347c00
+20401417
+6fe1c174
+203a7d94
+6fe0c099
+203a7d94
+6fe148a7
+20207d47
+20402281
+24740000
+204026c2
+6fe148c6
+1fe0fe01
+67e148c6
+684948c8
+98467c00
+2042a6b7
+2020260b
+7048c500
+58000000
+67e148c6
+58000064
+67e148c8
+7048c400
+6fe0c85c
+67e0c85b
+20600000
+6fe0c85d
+202026be
+6fe0c8c4
+1fe0fe01
+67e0c8c4
+c00226c0
+c002a6bc
+20600000
+7048c501
+58000000
+67e148c6
+20600000
+df200002
+d8c04843
+20407d92
+5800ffff
+e8410006
+98467c00
+2442fd94
+c20026d0
+20600000
+4776403d
+6fe14793
+c3858000
+c3838000
+c3830000
+6a2148a1
+204025b5
+6048c8cf
+6fe0c8d4
+c51326e0
+6fe0c8d7
+98467c00
+242126fa
+6fe0c8d1
+1fe67c02
+242126e8
+6fe0c8d1
+c00026fb
+20600000
+6fe0c8d1
+6848c8d2
+98467c00
+24628000
+7048d100
+6848c8cf
+6fe0c8d3
+c51326f1
+6fe0c8d6
+98467c00
+24610000
+6fe0c8d0
+c0002702
+1fe0ffff
+67e0c8d0
+c0002702
+7041eb00
+20600000
+7048d100
+6fe0c8d0
+c0012700
+1fe0fe01
+67e0c8d0
+c000a6f8
+7041eb06
+20600000
+7041eb85
+20600000
+7048d001
+7048d100
+20600000
+6fe0c8d1
+1fe0fe01
+67e0c8d1
+20600000
+6fe0c8d1
+1fe67c02
+24412713
+6fe0c8d1
+c1000000
+1fe0ffff
+67e0c8d1
+20600000
+7048d103
+20600000
+6fe08be0
+67e089f6
+1e020c00
+20407c4b
+2040276d
+6fe149f3
+20207d47
+6fe089f7
+c0002724
+c0402d75
+c0412e75
+c068a771
+c068278b
+c06aa78b
+20600000
+d8c009fb
+d8a04b1d
+20407c4c
+70496f00
+20402aee
+20402ae0
+2040273f
+20402730
+20402735
+70496f00
+6fe149f5
+20207d47
+6fe08c3a
+70496f04
+c1008000
+70496f00
+20600000
+58000080
+67e08a10
+58000003
+e7e08005
+58000000
+e7e08005
+6fe189f8
+e7e18005
+700a0f06
+2020303d
+6fe14a19
+c3810000
+20402df4
+1a20a606
+5fffffff
+e7e40013
+e7e40005
+efe10011
+e7e10013
+1a427e00
+9a20a200
+c2002742
+6fe14a15
+20207d47
+58000082
+67e08a10
+58000004
+e7e08005
+6fe089f9
+e7e08005
+700a0f03
+2020303d
+58000082
+67e08a10
+5800004e
+e7e08005
+6fe109f9
+e7e10005
+700a0f04
+2020303d
+58000082
+67e08a10
+58000060
+e7e08005
+6fe209f9
+e7e20005
+700a0f06
+2020303d
+5800005e
+67e08a10
+58000000
+e7e08005
+6fe109f9
+e7e10005
+700a0f04
+2020303d
+6f208be0
+1e022200
+da400050
+202029c6
+2040278c
+24740000
+6fe109fb
+d840f01f
+98467c00
+2022a7a0
+d840f010
+98467c00
+2022a7a4
+d840f011
+98467c00
+2022a7ad
+d840f012
+98467c00
+2022a7b6
+d8400534
+98467c00
+2022a797
+d8400533
+98467c00
+2022a79a
+d8400123
+98467c00
+2022a79d
+6fe149f9
+20207d47
+20600000
+20407d94
+6fe109f8
+d84001a8
+98467c00
+24628000
+6848c7ab
+6fe089fa
+98467c00
+20628000
+67e0c7ab
+20207d92
+20402808
+6fe14a09
+20207d47
+20402808
+6fe14a0b
+20207d47
+20402802
+6fe14a0d
+20207d47
+20402804
+6fe209fd
+67e247ad
+20202839
+204027fe
+204027cf
+207a0000
+6fe089fd
+204027cb
+684c09fd
+e0440005
+6fe14a17
+20207d47
+20402800
+204027cf
+207a0000
+700a0459
+6fe089fd
+204027cb
+6fe409fd
+e7e40005
+202027ab
+204027c8
+204027cf
+207a0000
+6fe089fd
+207a0000
+204027cb
+d8400000
+e0408005
+6fe089f6
+1fe67c08
+2042a7c2
+202027ab
+204027cf
+6fe089fe
+204027cb
+d8400000
+e0408005
+20600000
+6fe089f6
+c003a808
+20202806
+1fe0ffff
+1fe9fe00
+98a08a00
+20600000
+20402df4
+1a20a204
+6fe0ca31
+9a4ffe00
+9a20a200
+efe10011
+1fe20a00
+20600000
+580000d3
+67e08a10
+580001a8
+e7e10005
+6fe0c7ab
+e7e08005
+e0410005
+20600000
+d8e00000
+d8400003
+da20f009
+20202810
+da200100
+20202810
+d8e00000
+da20f004
+20202815
+d8e00000
+da200534
+20202810
+d8e00000
+da200533
+20202810
+d8e00000
+20402eab
+da200121
+20202815
+d8e00000
+20402eb9
+da200122
+20202815
+18438400
+18418411
+da20f009
+20202815
+2040281c
+5800f009
+e7e10005
+20600000
+df200008
+2020280a
+df200008
+2020280a
+df200006
+2020280a
+df200004
+2020280a
+df200002
+2020280a
+df200001
+2020280a
+1f20fe06
+67e08a0f
+204027d7
+d8c009fd
+20407ca1
+2020303d
+2040281c
+e2210005
+e0408005
+700a0f07
+2020281a
+2040281c
+e2210005
+e0410005
+700a0f08
+2020281a
+20402f0f
+2020303d
+6fe0c939
+67e08c14
+580000f0
+67e10c35
+6fe0c7ac
+1fe0fe01
+67e0c7ac
+c060282b
+580000d4
+67e08a10
+580001a8
+e7e10005
+6fe0c7ac
+e7e08005
+20600000
+7047ac80
+20600000
+1c420400
+6fe247b1
+98467c00
+2041283f
+20402846
+98467c00
+20610000
+2040283a
+6fe247ad
+1fe0fe01
+67e247ad
+2020284a
+1c427e00
+67e247b1
+6fe0c7b4
+1fe17e0f
+67e0c7b4
+20600000
+20628000
+1fe22400
+58100000
+1fed7e00
+98408400
+1a427e00
+20600000
+df200014
+1fe0fea0
+c2002847
+20600000
+20402df4
+1a20a204
+704a3100
+20402f05
+efe10011
+203a2852
+1fe26000
+2040285c
+20402f0a
+6fe0ca31
+1fe0fe01
+67e0ca31
+6848ca1b
+98467e00
+20628000
+1a427e00
+9a20a200
+2020284d
+df200028
+1f227e00
+67e08c00
+efe08030
+245a2866
+1e00e008
+6fe08c00
+1fe27200
+c200285d
+20600000
+e8440030
+604c09fd
+6fe08a04
+c02ca880
+684a47ad
+6fe209fe
+98467c00
+6fe08a04
+2022a870
+20600000
+67e089f9
+6fe149ff
+20407d47
+1e027e00
+67e10c08
+68e0ca31
+e8408030
+204027f6
+684889f9
+68e0ca31
+204027e3
+6fe10c08
+1fe26000
+58000000
+e7e08030
+202027ab
+6fe247ad
+d840003c
+9846fc00
+20407d31
+18077e00
+247a0000
+6fe247ad
+d8454600
+98467e00
+d8493a80
+9846fc00
+20407d31
+18077e00
+d8415180
+9846fc00
+20407d31
+18072200
+18078e00
+58000000
+f9207e00
+68488a00
+98417e00
+207a0000
+1a227e00
+d840003c
+9846fc00
+20407d31
+18078400
+580001e0
+98408400
+6fe109fe
+98467c00
+24628000
+6fe08a03
+20202870
+4776c03d
+700a7414
+6fe0c993
+67e08a75
+6fe08bff
+1fe0fe0b
+1fe0f3fe
+67e08a76
+1fe0ffff
+e7e08005
+5800002a
+e7e08005
+d8c04b5c
+20407c94
+6fe14793
+2feffe09
+2040aff7
+6a210c02
+204028b7
+20207875
+1a208c02
+efe10006
+67e1448f
+da200a74
+20600000
+da6028be
+20202dff
+1a208c16
+efe08006
+c1808000
+58000002
+1a208a16
+e7e08005
+202029fa
+204028d3
+1840fe0d
+67e0c7b5
+204028ea
+1840fe09
+e7e08005
+580000ff
+e7e08005
+6fe40bec
+e7e40005
+1a220c00
+18427200
+20407ca1
+20202931
+580ea801
+67e18bec
+58000007
+67e08bef
+6fe0c8d8
+67e08bf0
+6fe08a75
+67e08bf1
+6fe08a74
+2feffe07
+204028e1
+67e08bf2
+60488bf3
+20600000
+da200a79
+d8400012
+58000021
+24608000
+da200a8b
+68488a76
+184085ee
+58000022
+20600000
+d8a047b6
+58000002
+e7e08005
+58000001
+e7e08005
+58000002
+e7e08005
+20600000
+d8401827
+58000003
+e7e08005
+58000003
+e7e08005
+e0410005
+20600000
+202028fa
+20401632
+20401bc5
+20402904
+24768000
+6fe08002
+1fe0fe01
+67e08002
+6fe149f1
+20407d47
+2020163f
+6fe149fb
+20207d47
+20402908
+202016d7
+6fe0c7d5
+1fe0fe01
+67e0c7d5
+67e08016
+c1940000
+7047d525
+70001625
+20600000
+6fe0816b
+1fe17e0f
+c0002915
+c0012915
+20600000
+e8408006
+18467c06
+20610000
+18467c25
+24610000
+1840a3fa
+18c0a406
+e8408012
+18467c01
+20610000
+18467c1e
+24610000
+18427e00
+207a0000
+4777403d
+efe08006
+c07fac4a
+c0152f1d
+c003acc2
+1840fe01
+9a267c00
+20610000
+9a40a400
+18467fff
+9a20a200
+1a227e00
+207a0000
+2020291c
+6fe08000
+1fe0fe01
+67e08000
+4777c03d
+20401632
+df200027
+d8c041f8
+d8a00a97
+20407c94
+70001625
+db600708
+7856fc00
+20401bc5
+2040294d
+180a7e00
+d84001ff
+98417e00
+1fe0fe64
+20407c4e
+6fe08016
+1fe0fe01
+67e08016
+c094293d
+df200027
+d8a041f8
+d8c00a97
+20407c94
+2020163f
+d8400002
+6048c1f8
+6848c7b5
+1840fe06
+67e0c1f9
+6fe3437d
+67e341fa
+18427200
+d8c047b6
+20407c94
+202017c3
+4778403e
+68490be1
+6fe08be0
+18420c00
+da2048f9
+de004909
+20402b91
+20407d94
+1a627e00
+9e008c00
+684a4909
+6fe10bfd
+1fe22200
+df20000a
+efe20011
+203a2973
+98467c00
+20628000
+1a20a204
+c2002966
+6fe10bfd
+1fe20a00
+1fe08c04
+df200024
+20407c94
+e0420005
+20207d92
+e0420011
+20207d92
+2040297c
+20402980
+20402987
+2040298b
+2040298f
+20402990
+20202994
+d840001a
+da2049d7
+da400000
+20205ccb
+d8400013
+da20497a
+da40001a
+20405ccb
+6fe0c98a
+67e0ca35
+20600000
+d8400010
+da204b1d
+da40002d
+20205ccb
+d8400010
+da20482b
+da40003d
+20205ccb
+20600000
+d8400003
+da204b56
+da40004e
+20205ccb
+6fe14a19
+c3810000
+d8400040
+da20098e
+da400051
+20405ccb
+20402df4
+d8c0098e
+1a20a206
+1a220a00
+20407c4c
+1a427e00
+9a20a200
+c200299d
+20600000
+204029a6
+204029aa
+202029ae
+d8400013
+da20497a
+da40001a
+20205cbd
+d8400010
+da204b1d
+da40002d
+20205cbd
+d8400010
+da20482b
+da40003d
+20205cbd
+d8400003
+da204b56
+da40004e
+20205cbd
+204029bb
+d8400040
+da20098e
+da400051
+20205cbd
+20402df4
+d8a0098e
+1a20a206
+1a220c00
+20407c4c
+1a427e00
+9a20a200
+c20029be
+20600000
+d8400000
+202029ce
+d8400001
+202029ce
+d8400002
+202029ce
+d8400003
+202029ce
+d8400004
+202029ce
+4778c03e
+20407c06
+6fe0ca19
+c2807c12
+20405e37
+580000aa
+e7e08003
+58000003
+e7e08003
+1f20fe04
+e7e08003
+e0410003
+e2410003
+1a220c00
+20405e45
+580000bb
+e7e08003
+20405e3b
+20207c12
+6fe0ca19
+c3800000
+70807b0c
+70807c4d
+204029ec
+d84e1000
+20405df0
+20405dfd
+d8400081
+60588061
+20600000
+58001c00
+67e1095c
+58001c01
+e7e10005
+58001c02
+e7e10005
+58001fff
+e7e10005
+6fe4095c
+20205dd8
+20402a06
+202029fe
+20402a6d
+20202a63
+7047d601
+20600000
+7047d600
+20600000
+da402a02
+da200015
+d8e0000d
+20202a58
+6fe0c96f
+c1800000
+da602a0a
+20202dff
+da402a17
+da20001d
+d8e0000e
+20202a58
+1a208c1a
+efe08006
+c4008000
+204028b7
+2040789d
+24740000
+6fe08a76
+1fe0fffe
+67e08a76
+6fe08a74
+79407e07
+e7e08012
+202028c5
+6fe0c96f
+c0002a1b
+c0012a56
+20202a45
+da602a1d
+20202dff
+204028b7
+2040789d
+24740000
+6fe08a74
+1fe0ffff
+e7e08012
+c2832a38
+1fe17e3f
+205a2a3f
+6a210c02
+1a208c1a
+efe08006
+c2812a2f
+c4000000
+d8a047b5
+d8c00a76
+20407c4a
+20202931
+da200a74
+2040788c
+204078bb
+247a0000
+6a210c02
+1a208a16
+58000000
+e7e08005
+202029fc
+1fe17e3f
+247a0000
+6a210c02
+1a208a16
+58000000
+e7e08005
+20207870
+da200a74
+2040788c
+204078bb
+247a0000
+700a7454
+20207875
+20402c21
+20402c2d
+20402c3b
+20402a4e
+24628000
+6fe0c96f
+c001aa52
+c000aa54
+20600000
+6fe0c7d9
+1fe0ffff
+67e0c7d9
+20600000
+7047da58
+202029fc
+7047da06
+202029fc
+20402ca0
+20202931
+180a7e00
+1fe17e07
+9a20a200
+6fe0c7d6
+c1808000
+20407cb6
+247a0000
+1a227e00
+20407ca8
+1a427e00
+20207d47
+da6047d7
+da402a66
+202031d6
+6fe0c96f
+c1808000
+6fe0c972
+79207e00
+67e0c972
+70496f03
+20202a76
+da6047da
+da402a70
+202031cf
+6fe0c96f
+c001aa76
+c000aa74
+20600000
+7047d906
+202029fa
+7047d906
+202029fa
+20402a7e
+20402a86
+20402a8b
+20402a90
+20402a98
+20202a9c
+20402aa9
+d8c0484b
+df20000f
+20402b17
+20402b31
+d8c00900
+d8a0483b
+20207c4c
+20402aac
+20402b31
+d8c00900
+d8a047eb
+20207c4c
+20402aac
+20402b31
+d8c00900
+d8a0481b
+20207c4c
+6fe4480b
+67e447e3
+6fe44813
+67e447db
+d8c047db
+da20483b
+de0047fb
+20202b7f
+d8c0480b
+da20483b
+de00480b
+20202b7f
+d8c047fb
+df200010
+20402b14
+d8c04864
+df200009
+20402b17
+20402b31
+d8c00900
+d8a0482b
+20207c4c
+20402aaa
+d8c0480b
+20202b13
+20402aa7
+d8c04813
+20202b13
+d8c049d7
+df200004
+20402b1a
+d8c049db
+df200006
+20402b1a
+d8c049e1
+df200010
+20202b14
+20402ac1
+da204977
+da400900
+df20000b
+efe10011
+e8410012
+9842fe00
+e7e10011
+1a20a202
+1a40a402
+c2002ab9
+20600000
+d8c047fb
+df200010
+20402b14
+d8c0485a
+df20000a
+20402b17
+20202b31
+d8c0497a
+d8a04898
+20407c4c
+d8c04898
+da2048a8
+de0048b8
+20402b81
+de0048c8
+da400001
+58000000
+20402b83
+6fe0c8d7
+1fe17e7f
+67e0c8d8
+de0048e9
+da400002
+58000010
+da2048c8
+20402b83
+de0048d9
+da400003
+58000010
+da2048e9
+20202b83
+d8c04b1d
+da2048f9
+de004909
+20402b81
+d8c04919
+da204909
+de004929
+58000004
+20402b91
+6fe0c938
+1fe17e3f
+79207e06
+67e0c939
+20600000
+d8c0497a
+da20493a
+de00494a
+20402b81
+d8c0495a
+da20494a
+de00495f
+58000005
+20402b91
+20402fd3
+6fe14793
+c3848000
+70442a01
+20600000
+da204b5d
+6fe3cb63
+20202b01
+da200c0c
+6fe38c12
+67e38bc7
+58000000
+67e28bbe
+20402b0a
+6fe30bce
+e8430011
+9842fe00
+e7e30011
+20600000
+6fe24a32
+67e20bc3
+d8c048d9
+20406cf1
+d8c00bbe
+20406cf3
+20406c63
+d8a00bce
+20206d07
+df200008
+20402b21
+20402b70
+20202b1e
+20402b21
+20407ca1
+20202b1e
+20402b21
+20402b70
+5800002c
+e7e08005
+18a27e00
+67e1487e
+20600000
+18c20400
+1f222200
+6fe1487e
+1fe20a00
+6fe0c86d
+205a2b2a
+18420c00
+1a227200
+20600000
+70486d01
+20402b2e
+d8a00abe
+20600000
+df200020
+d8a00abe
+20207c59
+20402b4e
+da400010
+da200abe
+6f24486e
+204029c4
+20402b69
+58000abe
+67e14885
+204071d1
+6fe14885
+1fe20c00
+d8a004a8
+20407c3d
+204071d8
+6fe14885
+1fe0fe40
+67e14885
+6fe0c882
+1fe0ffff
+67e0c882
+243a2b3a
+20407214
+da200900
+df200020
+20407c79
+da400011
+da200900
+df200020
+202029c4
+70486d00
+6fe1487e
+1fe20a00
+d8400080
+e0408005
+d8400abe
+98467e00
+67e4486e
+1fe98400
+604c4876
+1ff1a600
+1a6b2600
+1fe17e3f
+1fe67c37
+24412b67
+1a60fe01
+67e0c882
+1fefa240
+1ff22600
+1a60a7ff
+58000aba
+9a20a200
+6fe24876
+e7e20011
+20600000
+1a60a601
+20600000
+da200abe
+df200004
+20407c79
+1a20a202
+1a60a7ff
+2422ab6a
+20600000
+efe08006
+1ff18400
+20402b79
+e0408005
+1fe1040f
+20402b79
+e0408005
+c2002b70
+20600000
+18467c09
+20212b7d
+18408457
+20600000
+18408430
+20600000
+58000020
+20202b91
+58000010
+20202b91
+6848c887
+18408401
+98408400
+604884a7
+1a220c00
+1fe27200
+20407c94
+6848c887
+18427200
+20407ca1
+1a427e00
+e7e08005
+da2048b8
+20202b94
+67e084a7
+1fe27200
+20407c94
+1a220c00
+d8a0098e
+20407c4c
+da400012
+da2004a8
+6f2084a7
+204029c4
+da400013
+da20098e
+df200010
+204029c4
+20406990
+1e020a00
+20406d07
+da400014
+1e022200
+df200010
+202029c4
+68488beb
+20202ba9
+18000401
+18007000
+6fe10bde
+1fe20c00
+efe18006
+1fed7e00
+9841de00
+1f00f001
+efe20006
+1fe25e00
+1f00f001
+efe20006
+1fe25e00
+1f00f001
+1a30de00
+1df05e00
+efe10006
+9de1de00
+20600000
+6fe08be0
+1fe22200
+20402ba6
+20406c63
+1800700c
+1de27e00
+1a227200
+68490be1
+18420c00
+20406cdb
+20206b92
+700beb19
+20202bca
+700beb09
+20202bca
+67e08be0
+60490be1
+4779403e
+20402bbb
+18007008
+98005e00
+1800700d
+1de27e00
+18007009
+98005e00
+18002200
+18422600
+20402ba8
+20406c69
+20402c09
+604c0be3
+6fe08be0
+1fe22400
+20402c11
+68488be0
+6fe10be1
+9840a200
+684c0be3
+e0420011
+6fe08beb
+1fe67e09
+207a0000
+e0440011
+20600000
+700beb19
+20202beb
+700beb09
+20202beb
+67e08be0
+60490be1
+18422600
+1fe22400
+9a608c00
+4779c03e
+efe40006
+18007008
+98005e00
+18007009
+1fef7e00
+98005e00
+18002200
+20402ba8
+20406c69
+20402c09
+604c0be3
+20402c11
+20402bbb
+20402c09
+6fe08beb
+c00cac06
+604a0be7
+6fe20be3
+684a0be7
+98467e00
+20600000
+6fe40be3
+98467e00
+20600000
+1800700c
+1de27e00
+1800700d
+1de20400
+18500400
+18500400
+98418400
+20600000
+1a20a201
+20402ba8
+1a620c00
+20406cef
+20406c69
+20406d0e
+1a60a610
+1a40a5f0
+20212c11
+20600000
+70496f01
+70497000
+7047d601
+58001770
+67e147d7
+20600000
+580001a8
+67e10bec
+6fe0c971
+e7e08005
+6fe249d7
+20407c8e
+e7e20005
+6fe3437d
+e7e30005
+6fe1c972
+e7e18005
+20600000
+20402c2f
+20202931
+7047b515
+58000014
+67e0c7b6
+5800002b
+e7e08005
+58000000
+e7e08005
+d8c00bec
+20407c4c
+6fe14975
+e7e10005
+20600000
+6fe0ca19
+c3818000
+20402c3f
+20202931
+7047b51d
+204028ea
+204028f2
+20402c44
+20202c36
+58000015
+e7e08005
+58000016
+e7e08005
+e0410005
+20600000
+1840f3ff
+20402d0e
+24740000
+efe08006
+c0002c52
+c0012c6d
+c0032c8c
+20600000
+20402c5f
+24740000
+20402a78
+20402c57
+20202cb6
+d8400012
+20402c8e
+58000001
+e7e08005
+6fe149df
+e7e10005
+d8c0480b
+20207c4c
+20407d94
+e8410006
+d8a0480b
+20407c4c
+6fe149df
+98467c00
+24628000
+6fe0c970
+c3808000
+79207e01
+67e0c970
+70496f02
+20402cb2
+20207d92
+18c22200
+6fe0c96f
+c1000000
+6fe0c970
+c4008000
+c3810000
+1a220c00
+df200016
+d8a04977
+20407ca1
+20402ab5
+68494977
+6fe149df
+98467c00
+24628000
+20402cba
+6fe0c970
+79207e02
+67e0c970
+20402ac8
+6fe0c98a
+67e0ca35
+20402c85
+20202cbe
+d8400006
+20402c8e
+58000003
+e7e08005
+6fe349db
+e7e30005
+20600000
+da400012
+20202cf8
+477a403e
+20402cac
+58008fff
+67e14991
+204029fa
+1840fe09
+67e0c7b5
+204028ea
+1840fe05
+e7e08005
+580000ff
+e7e08005
+580001a8
+1ff0fe00
+e7e10005
+6fe08bfc
+e7e08005
+20600000
+6fe2498d
+243a2ca3
+20202cac
+1c427e00
+684a498d
+98460400
+6fe14991
+98467c00
+20610000
+204029fc
+6fe149f7
+20207d47
+1c427e00
+67e2498d
+20600000
+18c0a3fd
+da400001
+202029c4
+df200001
+da400002
+da204970
+202029c6
+6f20c7b5
+da400003
+da2047b6
+202029c6
+df200001
+da400004
+da204970
+202029c6
+6f20c7b5
+da400005
+da2047b6
+202029c6
+20402d06
+24740000
+6fe08bef
+c0032cf6
+6fe0c96f
+c1000000
+c1018000
+6fe10bf0
+684949df
+98467c00
+24628000
+da200bf2
+da400007
+20402d18
+20740000
+477ac03e
+6fe08bef
+c0002cd7
+c0012cdb
+c0022cea
+20600000
+6fe149df
+67e10a78
+d8c00a78
+20202c52
+6fe0c96f
+c1000000
+6fe0c970
+c4008000
+c3810000
+d8c00a7a
+df200014
+d8a04979
+20407ca1
+20402ac1
+da204979
+da400900
+df20000a
+20402ab9
+20202c7c
+6fe0c96f
+c1808000
+70496f02
+d8400003
+20402c8e
+58000005
+e7e08005
+6fe149df
+e7e10005
+58000001
+e7e08005
+20600000
+d8c00bf0
+da400008
+477b403e
+efe08006
+18c22200
+6848c8d8
+98467c00
+24628000
+20402cac
+20402d18
+20740000
+700c3a01
+68488a79
+18408401
+d8c00a7a
+20202f1e
+d8a00bec
+20407c4c
+da200bec
+df200010
+20407c79
+df200010
+d8c00bec
+20202d0e
+20407d94
+e8410006
+580001a8
+1ff0fe00
+98467c00
+24628000
+efe08006
+67e08bfc
+20407d92
+20202caf
+477bc03e
+20402d51
+20202d1b
+1a208c01
+e8408006
+1851fe00
+c000ad4b
+1fe67c04
+24217d92
+1fe27200
+20402d41
+18410e0f
+98e67c00
+2042ad3a
+18e08fff
+6fe08a78
+afefffff
+2020fd92
+f9207e00
+67e08a78
+1a208c02
+efe08006
+1fe27200
+1a427e00
+98effe00
+d8a00a7a
+98a08a00
+20407c94
+6fe08a78
+9a667c00
+2442fd92
+2422ad46
+20402d72
+20207d94
+1fe0ffff
+9a4ffe00
+1a208c02
+e8408006
+9840fe00
+67e08a79
+20600000
+da600000
+1f208fff
+f9202600
+c2002d42
+20600000
+6fe10a74
+1fe20a00
+d8c00a76
+df200021
+20207c94
+efe08006
+1fe27200
+67e08a79
+d8a00a7a
+20407ca1
+20207d94
+70499432
+20402d60
+68494995
+98467c00
+2022ad64
+18467c00
+2022ad64
+684949b6
+98467c00
+2022ad67
+18467c00
+2022ad67
+20402d72
+20402d60
+20202d64
+efe08011
+207a0000
+79207e08
+20600000
+67e14995
+58004995
+20202d6a
+67e149b6
+580049b6
+20202d6a
+67e10a74
+1fe20c00
+d8a00a76
+df200021
+20207c94
+da604994
+da402d72
+202031cf
+d8a04995
+df200042
+20207c68
+6fe089f8
+c024ad7a
+c00dad83
+c00e2d8a
+20600000
+20402d7d
+6fe14a11
+20207d47
+58000080
+67e08a10
+5800004a
+e7e08005
+700a0f02
+2020303d
+20402da8
+6fe14a19
+c3810000
+20402db2
+20402dbb
+6fe14a15
+20207d47
+20402da8
+6fe14a19
+c3810000
+20402db2
+684909fb
+184cfe00
+1ff1fe00
+c0062d98
+20402d9d
+24740000
+58000000
+e7e10011
+6fe14a15
+20207d47
+5fffffff
+e7e40011
+e7e40005
+6fe14a15
+20207d47
+df200008
+efe10011
+da40ffff
+9a467c00
+2022fd92
+98467c00
+2022fd92
+1a20a202
+c2002d9e
+20407d94
+20600000
+58000080
+67e08a10
+5800001f
+e7e08005
+58000000
+e7e08005
+6fe309f9
+e7e30005
+700a0f09
+2020303d
+20402df4
+1a20a206
+6fe109f9
+6849498b
+18508400
+98467e00
+9a4ffe00
+9a20a200
+20600000
+684909fb
+df200008
+efe10011
+203a2dc5
+da40ffff
+9a467c00
+2022adc5
+1a20a202
+c2002dbd
+20600000
+18508400
+e0410011
+20600000
+20406d31
+58002910
+67e149f1
+58002df8
+67e14468
+58002f7f
+67e14a0f
+580029a3
+67e149f5
+580029b6
+67e14a15
+580029b2
+67e14a13
+58002dfd
+67e14472
+5800271c
+67e149f3
+58002906
+67e149fb
+58002feb
+67e1446e
+58002ff4
+67e1446a
+7047d524
+2040282b
+477c403f
+204029e1
+20402e08
+da20497a
+da400000
+df200001
+204029c6
+20402975
+20402df0
+6fe0c97a
+c07fac1b
+20402aee
+20402ae0
+20402ac8
+202027df
+6fe349db
+20407c88
+67e3437d
+20600000
+6f20ca1b
+6a214a1c
+6a414a1e
+20600000
+2040282d
+204029f6
+20403066
+204028bc
+202028f9
+204029f8
+20202d6f
+20402df4
+20402f05
+1a627e00
+20407d47
+20402f0a
+1a427e00
+9a20a200
+c2002e00
+20600000
+7080723f
+7080716c
+7080706d
+20205cae
+477cc03f
+6fe08c14
+c283ae11
+704b2d00
+20203001
+20402e17
+20740000
+20402e38
+20740000
+20402e48
+20202e55
+20407d94
+df200003
+da200c15
+20407c79
+6a218c15
+1a21041f
+6048ca24
+6fe0ca2b
+98467c00
+24217d92
+1a31fe00
+1fe37e00
+1fe1041f
+6048ca23
+1ff1fe00
+1fe37e00
+da201fff
+9a210400
+1fe22400
+6fe14a21
+98467c00
+2442ae34
+60494a21
+1a4cfe00
+1ff1fe00
+1fe37e00
+67e0ca20
+67e0cb2d
+20600000
+58000000
+67e24a25
+704a2a00
+20600000
+20407d94
+6fe0ca23
+1fe20e00
+6fe24a25
+afefffff
+2020fd92
+f9207e00
+67e24a25
+6848ca24
+1840f201
+1f208fff
+afefffff
+24608000
+c2002e42
+704a2901
+20600000
+6fe08c0a
+1fe0fffa
+1fe27200
+6848ca2a
+98408400
+6048ca2a
+6fe14a2c
+98000a00
+6fe0ca23
+1feffe0c
+98a08a00
+d8c00c18
+20207ca1
+6fe0ca29
+c1000000
+58000000
+67e2ca25
+68490c0e
+18508400
+5800e000
+98410400
+6fe14a21
+9841fe00
+1ff0fe00
+67e10c0e
+2020300b
+6fe08a0f
+1fe08401
+1fe27200
+60488bff
+6fe08c14
+793ffe07
+67e0cb65
+d8c00a10
+20407c94
+20202fbb
+1a208404
+1a227200
+60488bff
+d8a04b69
+20407c94
+6fe08c14
+79207e07
+67e0cb65
+20202fbb
+6fe089f8
+c000ae7c
+c0012e82
+c0212e87
+c0262e8a
+c02f2e90
+20600000
+da602e7e
+20202ef4
+6fe149fd
+20407d47
+67e089f9
+2020274d
+da602e84
+20202ef4
+2040274d
+6fe149ff
+20207d47
+20402765
+6fe14a01
+20207d47
+6fe109f9
+20402e9f
+67e089fe
+20402755
+6fe14a03
+20207d47
+6fe14a2e
+684909fb
+98467c00
+20628000
+6fe109fb
+20402eb1
+67e08a03
+6fe109fb
+67e14a2e
+6fe14a05
+20407d47
+604909f9
+2040275d
+6fe14a07
+20207d47
+207a0000
+1feffe64
+d840ffff
+9846fc00
+20407d31
+18070400
+184c8400
+1807fe00
+18467cff
+24628000
+1fe0fe01
+20600000
+dfe0ffff
+984ffe00
+1fe6fc64
+20407d31
+18078400
+20600000
+d8400320
+98462200
+20402ec0
+1a227e00
+9846fc00
+20407d31
+1807fe00
+20600000
+18422200
+20402ec0
+1a227e00
+984ffe00
+d8400320
+98408400
+20600000
+58004e20
+d8400320
+98467e00
+1fe6fc64
+20407d31
+18078400
+20600000
+d8e00000
+6f20ca1b
+20407d94
+6fe1498b
+98467c00
+2022aed3
+1ff0fe00
+1fe0fe01
+1ff0fe00
+18e08e01
+c2002ecb
+20600000
+704a3000
+60e0ca31
+20402f0f
+20207d92
+d8e00000
+da600000
+20402df4
+20407d94
+6fe14a19
+c3012eea
+efe10011
+98467c00
+2042aee8
+1a427e00
+9a20a200
+18e08e01
+c2002edb
+1a627e00
+207a0000
+67e0ca30
+20207d92
+f9202600
+20600000
+1a208c06
+de000008
+efe10006
+98467c00
+2022aef2
+1e00e1ff
+2022aee0
+20202eec
+20402ee8
+20202ee0
+d8e00000
+6fe0ca30
+203a2f00
+1fe22400
+6f20ca1b
+60e0ca31
+aa4fffff
+2040af00
+68e0ca31
+18e08e01
+c2002ef9
+20600000
+20402f05
+20402f0f
+1a627e00
+20407d47
+20202f0a
+67210c00
+62210c02
+62410c04
+62610c06
+20600000
+6f210c00
+6a210c02
+6a410c04
+6a610c06
+20600000
+477d403f
+6fe1498b
+1ff0fe00
+98e0fe00
+1ff0fe00
+67e14b59
+20402df4
+18e27e00
+9a4ffe00
+9a20a200
+1a208c17
+efe10006
+67e1448f
+20600000
+700c3a00
+18467c0c
+20610000
+18467c1e
+24610000
+477dc03f
+20402f77
+20402f45
+24740000
+20402aff
+20402f6e
+6fe08c0a
+d8400c12
+20402be9
+24628000
+477e403f
+68490c12
+20402ec7
+20342f52
+df20001d
+d8a00a98
+d8c00c0b
+20407ca1
+20402f3b
+df20001d
+d8c00a98
+d8a00c0b
+20407ca1
+6fe14a0f
+20207d47
+20402ed7
+20342f52
+704a30ff
+5800ffcf
+98467c00
+2022af52
+5800ffff
+98467c00
+2022af52
+20600000
+20407d94
+68488c0b
+1851fe00
+1fe97e00
+6a20ca35
+1a212201
+9a267c00
+24628000
+1841047f
+6fe0c8d8
+98467c00
+24628000
+20207d92
+da204a36
+df20000a
+68490c10
+efe10011
+203a2f5c
+98467c00
+2022af5d
+1a20a205
+c2002f54
+da204a36
+e0410011
+60490c35
+1a20a602
+efe18013
+67e18c37
+20202f62
+20402f6b
+6fe18c37
+68498c0d
+98467c00
+20610000
+e0418013
+20402f6b
+20402fce
+20202e0c
+da200c0d
+df200003
+20207c79
+20402f71
+d8c048e9
+20206cf1
+d8a00c28
+58000000
+e7e08005
+6fe30c0c
+e7e40005
+20202fc9
+1840fff4
+67e08c0a
+df20001d
+d8a00c0b
+20407c68
+1840f3ff
+d8a00c0b
+20207c94
+20402f96
+24740000
+20402fab
+700a740a
+6fe08c0a
+1fe0840d
+60488a76
+184085ff
+e0408005
+5800002a
+e7e08005
+1840f3ff
+6fe38c0b
+d8c00c0b
+20407ca1
+6fe14793
+2feffe09
+2040af93
+da200a74
+20207875
+6fe08c3a
+c1010000
+20202ff7
+20407d94
+6fe08c3a
+c1008000
+6fe14a19
+c3808000
+6fe0c96f
+c1800000
+68490c10
+20402ec7
+24740000
+20402fb0
+24740000
+20402fb3
+6fe08c0c
+207a0000
+1fe0ffff
+207a0000
+67e08c0c
+58004a90
+67e1448f
+20207d92
+20402f6e
+6fe08c0a
+d8400c12
+20402bc8
+20202aff
+58004a68
+67e10bfd
+20202958
+df200002
+da200c12
+da400021
+204029c6
+6f208be0
+6a210be1
+da400021
+202029c4
+477ec03f
+20402fbf
+20402fc8
+202028a3
+6fe08bff
+1fe0a202
+1fe0fe04
+67e08bff
+d8404b63
+20202fc5
+20402f6e
+1a227e00
+20202bc8
+20202afc
+6fe24a32
+e7e20005
+18a0fff3
+67e10bde
+20600000
+6fe08c0a
+1fe0f20b
+da200c0b
+da400020
+202029c4
+7043ea14
+58000002
+67e0c3eb
+58000001
+e7e08005
+58000006
+e7e08005
+58000003
+e7e08005
+58000003
+e7e08005
+58001828
+e7e10005
+5800000c
+e7e08005
+58000016
+e7e08005
+58001828
+e7e10005
+58000000
+e7e08005
+6fe44967
+e7e40005
+20600000
+6fe1443a
+c0072fee
+20600000
+1a420400
+efe08011
+c0002ff2
+20600000
+700a9702
+20202f1e
+1a627e00
+c00ab24c
+20600000
+20401b05
+247a0000
+6fe08a76
+1fe0a3ff
+d8400010
+20401e40
+58000000
+e7e08005
+d8c00a79
+20207c4a
+c3033004
+2040302a
+20203006
+20403037
+20203006
+6fe08c0a
+1fe0fff9
+de000c15
+20407d94
+20203018
+6fe08c14
+c303300f
+2040302a
+20203011
+20403037
+20203011
+6fe0cb2d
+245a7d92
+205a7d94
+6fe0ca2a
+1fe0fffc
+704a2a00
+de004bca
+1e020400
+20403024
+24628000
+df200001
+da200be0
+da400040
+204029c6
+20403027
+24740000
+6fe10be1
+1fe26000
+20202715
+24342be9
+1fe0fffc
+20202be7
+58004b2e
+67e10bfd
+20202958
+2040302d
+d8c04b1d
+20206cf1
+d8a00c28
+58000001
+e7e08005
+6fe0cb2d
+d8400000
+7d3a0407
+e0408005
+6fe38c0d
+e7e38005
+20202fc9
+2040303a
+d8c0482b
+20206cf1
+d8a00c28
+58000002
+2020302f
+477f403f
+2040312b
+2040312c
+204030fb
+20403046
+20740000
+2040305e
+da200c43
+20207875
+20407d94
+d8400002
+6fe0c96f
+98408400
+6fe08c3a
+1fe67c02
+79228407
+6fe08c3a
+1fe67c01
+79228406
+60488c43
+6fe4cb5c
+67e48c47
+6fe08a10
+c1ea0000
+6fe0c96f
+c0807d92
+6fe08a13
+67e08c46
+6fe08c43
+1fe0fe01
+79207e05
+67e08c43
+20600000
+6fe08a0f
+1fe27200
+67e08c50
+6fe08c14
+67e08c51
+d8a00c56
+d8c00a10
+20207ca1
+da603068
+20202dff
+1a208c16
+efe08006
+247a0000
+efe10006
+67e1448f
+da200c43
+2040789d
+24740000
+6a210c02
+68488c43
+18417e0f
+203a30aa
+1a208a16
+58000001
+e7e08005
+20403094
+68488c43
+2040309a
+1a208a19
+e7e08005
+1a208c1a
+efe08006
+284ffe07
+7920fe02
+1a208a1a
+e7e08005
+79200404
+184085ff
+e0408012
+68488c43
+284ffe04
+2420b0af
+68488c50
+60488a0f
+18427200
+d8a00a10
+d8c00c56
+20407ca1
+18467c0f
+24213091
+20202e62
+6fe20c52
+67e20c3e
+202030d0
+6fe08c51
+67e08c14
+6fe48c47
+67e4cb5c
+67e48c0b
+20600000
+58000003
+204030a7
+6fe08c46
+284ffe05
+20608000
+58000001
+204030a7
+58000000
+284ffe06
+24608000
+58000002
+204030a7
+20207d9e
+1a208a1a
+e7e08005
+20600000
+58000000
+1a208a19
+e7e08005
+da200c43
+2020788c
+204030f3
+20403107
+6fe4cb5c
+67e48c47
+204030c8
+58000000
+67e0cb2d
+204030e9
+68488a0f
+60488c50
+18427200
+d8c00a10
+d8a00c56
+20407ca1
+18467c0f
+242130c2
+da200c44
+204078ac
+20202e62
+2040310f
+6fe20c3e
+67e20c52
+da200c44
+204078ac
+202030d0
+6fe08c50
+1fe27200
+67e08a0f
+6fe08c51
+67e08c14
+d8c00c56
+d8a00a10
+20207ca1
+2040311c
+58000a10
+67e10c3b
+20403094
+204030f3
+20403107
+68488a0f
+5800000c
+20407d88
+1fe22200
+18427e00
+9a267e00
+67e08a0f
+6fe10c3b
+1fe20c00
+9a208400
+60490c3b
+20402e6c
+6fe08a0f
+207a0000
+6fe08c40
+1fe0fe01
+67e08c40
+2040311c
+202030d3
+6fe08c14
+c30330ed
+2040302a
+202030ee
+20403037
+6fe08a0f
+1fe08404
+60488a0f
+d8400a10
+20202bc8
+6fe1cb56
+1fe0fe01
+67e1cb56
+6fe0c993
+1fe0fe01
+67e0c993
+6fe14a13
+20207d47
+6fe0ca35
+1ff27e00
+1fe9fe00
+6848c8d8
+9841fe00
+67e0cb5c
+6fe0cb5b
+67e0cb5d
+6fe14b59
+67e14b61
+6fe10c35
+67e14b63
+6fe1cb56
+67e1cb5e
+da204b5e
+df200003
+20407c79
+6fe44b5d
+67e40c0c
+20600000
+6fe08a0f
+1fe6fc0c
+20407d31
+18078400
+18077e00
+205a3129
+60488c41
+700c4000
+6fe1cb56
+d8401fff
+98417e00
+67e10c3e
+20600000
+6fe10c3e
+1ff27e00
+1fe3fe00
+68488c40
+9841fe00
+1ff27e00
+1fe3fe00
+68488c41
+9841fe00
+67e1cb66
+df200003
+da204b66
+20207c79
+184085ff
+20600000
+20600000
+da200a10
+6f208a0f
+da400041
+202029c6
+44d6c015
+6fe0c09a
+203a3130
+c002366d
+c007b28c
+c004ca00
+c00537e5
+c0073431
+c006c8ea
+c0064be1
+c005adc8
+c0043c46
+20600000
+700a5100
+7000e300
+7000e400
+58000000
+67e28870
+6fe0c09a
+203a313d
+c005380e
+20600000
+20758000
+20405fe1
+6fe0c09a
+c004cb3f
+c0023678
+c0043c89
+c006c9ba
+20600000
+204076ef
+204077bd
+20403157
+6fe14468
+20207d47
+6fe14466
+20207d47
+6fe14464
+20207d47
+44d74015
+da204779
+20407d6f
+207a0000
+1fe22600
+20403160
+20203185
+da600000
+20600000
+c000b172
+c00831b9
+c002b196
+c009319d
+c00331b5
+c00231f6
+c00131fb
+c009b1f6
+c00a31ac
+c00ab1b0
+c001b18f
+c005b1a1
+c00631a8
+c00b31bd
+c00c318b
+c015317b
+c015b179
+20600000
+6fe14793
+79207e00
+67e14793
+6fe14485
+793ffe00
+67e14485
+202077ff
+70030c00
+20600000
+6fe0830c
+1fe0fe01
+67e0830c
+1fe67c01
+20213231
+70030c00
+6fe14485
+79207e09
+67e14485
+2020323b
+6fe1446a
+20207d47
+6fe1445e
+20207d47
+6fe14462
+20207d47
+6fe14485
+79207e01
+67e14485
+20203264
+6fe14793
+79207e07
+67e14793
+6fe14485
+79207e02
+67e14485
+20600000
+6fe14793
+79207e01
+67e14793
+6fe14485
+79207e04
+67e14485
+20600000
+6fe14793
+79207e03
+67e14793
+20600000
+6fe14793
+79207e05
+67e14793
+6fe14485
+79207e03
+67e14485
+20600000
+6fe14793
+793ffe05
+67e14793
+20600000
+6fe14793
+79207e09
+67e14793
+20600000
+70443800
+6fe14793
+793ffe09
+67e14793
+2020326a
+6fe14793
+79207e02
+67e14793
+20600000
+6fe14485
+79207e00
+67e14485
+20600000
+6fe14485
+79207e08
+67e14485
+2020323b
+67e0830d
+44d7c015
+6fe0830d
+207a0000
+1fe0ffff
+67e0830d
+204076fb
+20403228
+204031e9
+204031ef
+20405bcb
+6fe14472
+20407d47
+202031c2
+efe08013
+207a0000
+1fe0ffff
+e7e08013
+247a0000
+1a427e00
+20207d47
+efe10013
+207a0000
+1fe0ffff
+e7e10013
+247a0000
+1a427e00
+20207d47
+684944cf
+1840a601
+da4031e1
+202031cf
+20403280
+c000b1e4
+2020325c
+58000002
+e7e08013
+1840a408
+efe10012
+20207d47
+da604480
+da4031ec
+202031cf
+20400a5f
+2022b260
+20600000
+da60478f
+da4031f2
+202031d6
+20403242
+2040325a
+6fe1446c
+20207d47
+2040320e
+6fe14793
+793ffe07
+67e14793
+20600000
+70448000
+6fe14793
+c283b200
+2fec0001
+2040b15e
+44d84016
+6fe14793
+793ffe00
+793ffe01
+793ffe02
+793ffe03
+793ffe07
+67e14793
+2020326a
+2040320b
+2020325c
+58000000
+67e14483
+20600000
+58000000
+67e14485
+20600000
+6fe14485
+67e14483
+58000000
+67e14485
+20600000
+6fe14485
+79207e07
+67e14483
+58000000
+67e14485
+20600000
+6fe0c793
+2feffe05
+20600000
+6fe0c648
+67e0c480
+20600000
+d8e00009
+20201547
+d8e00009
+2020154b
+70448105
+20203222
+da604481
+da403224
+202031cf
+7045fa01
+20600000
+7045fa00
+20600000
+70095b0a
+202077b0
+70095b1d
+202077b0
+44d8c016
+6fe0c482
+67e080bc
+70030b01
+70095b03
+202077b0
+70095b1e
+202077b0
+70095b04
+202077b0
+6fe14798
+67e1478f
+20403256
+70095b01
+202077b0
+58000000
+67e1478f
+70095b02
+202077b0
+70095b0f
+202077b0
+70095b10
+202077b0
+70095b0e
+202077b0
+70095b0d
+202077b0
+70095b17
+202077b0
+70095b18
+202077b0
+70095b16
+202077b0
+70095b11
+202077b0
+70095b15
+202077b0
+70095b14
+202077b0
+70095b13
+202077b0
+70095b19
+202077b0
+70095b06
+202077b0
+70095b05
+202077b0
+70095b1f
+202077b0
+70095b20
+202077b0
+70095b25
+202077b0
+7920000d
+20600000
+793f800d
+20600000
+20403280
+c0013276
+58000001
+e7e08013
+1840a203
+1840a406
+e8408011
+1a60a601
+e0408013
+202031e7
+58000000
+e7e08013
+6fe14793
+c304b27c
+20402115
+20403254
+684944cf
+1840a202
+1840a404
+20203272
+684944cf
+1840a600
+efe08013
+20600000
+20403280
+c0803287
+2020325c
+1840a40a
+202031e7
+58000002
+67e0c791
+20600000
+20758000
+580032bb
+67e14460
+5800608a
+67e14462
+58003368
+67e14468
+58003367
+67e14464
+580032d6
+67e1446a
+58003313
+67e14472
+580032bd
+67e14470
+580032c8
+67e1445e
+58003374
+67e1446e
+44d94016
+2040340d
+204032b9
+20406065
+2040341f
+20407726
+204076f1
+5800337e
+67e14877
+5800336f
+67e1486e
+5800336b
+67e14870
+580032c4
+67e14872
+58003414
+67e147ba
+58003416
+67e147bc
+5800341b
+67e147c5
+58003418
+67e147c7
+6fe14793
+c3860000
+2020325c
+7045fe07
+20600000
+204033f8
+2020325c
+20401b05
+247a0000
+da2009d2
+2040788c
+24740000
+d8c009d2
+20204b37
+6fe148a8
+67e148a2
+70486401
+20203401
+6fe0c8ae
+c000b2d1
+6fe14793
+c304b2d1
+6fe0c8af
+c000b222
+6fe0c811
+243a3222
+20203224
+6fe0c8ac
+6848c8ad
+9841fe00
+c000b222
+20203224
+1a627e00
+c016b284
+c008326c
+c00a3350
+c00ab359
+c02032de
+c02232e8
+20600000
+204032e4
+6fe143de
+c000b2ee
+70489b02
+7048a03c
+20600000
+6fe08287
+c3828000
+704a6701
+20600000
+6fe0ca67
+207a0000
+704a6700
+6fe102c3
+203a3303
+20600000
+6fe14379
+203a3301
+70489b01
+684948c5
+6fe14375
+9840fe00
+67e14375
+1fe22200
+6fe14377
+9840fe00
+67e14377
+9a20fe00
+1fe30400
+6fe148d1
+9846fc00
+20407d2e
+67e14379
+7048a101
+20600000
+70489b03
+20600000
+70417700
+7048a100
+6fe102c1
+684948cf
+98467c00
+79212200
+6fe148d1
+684902c1
+98467e00
+79212201
+2a200603
+20608000
+6fe448cf
+67e44375
+7048a101
+20600000
+204031dd
+2040332a
+2040332f
+20403346
+2040333b
+20403335
+20403323
+2040331c
+2020334a
+da604a69
+da40331f
+202031d6
+da200001
+20407737
+6fe148b2
+2020612c
+da604a68
+da403326
+202031cf
+20403421
+20403421
+20403421
+2020342b
+da6048aa
+da40332d
+202031cf
+7048ab00
+20600000
+da6048a4
+da403332
+202031d6
+da6047d0
+da4047af
+20203403
+da6048a0
+da403338
+202031cf
+6fe14379
+67e0c177
+20600000
+da6048a1
+da40333e
+202031cf
+6fe08287
+2fe0c000
+2420b344
+70489b01
+20403268
+20201ee5
+7048a101
+20600000
+da6048a2
+da403349
+202031d6
+2020326c
+da60489e
+da40334d
+202031d6
+6fe148b8
+67e1489e
+20203421
+6fe148b8
+67e1489e
+58000000
+67e148a4
+67e148a2
+204033cf
+204033f8
+70417700
+2020324a
+58000000
+67e2489e
+67e1c89b
+67e143de
+7048b101
+6fe148a8
+67e148a2
+6fe14a6b
+67e14a69
+20407870
+6fe0c86a
+c1000000
+20403401
+202033e1
+2020337b
+6fe0c86a
+c1810000
+2020337b
+da6047de
+204033f4
+da6047d7
+202033f6
+70442a00
+da6047ec
+204033f4
+da6047e5
+2020336e
+6fe0c439
+c0093377
+20600000
+6fe1443a
+c006b3a9
+c005b3e4
+20600000
+6fe0c864
+207a0000
+20206096
+1a227e00
+203a3383
+18e27e00
+c0003386
+20600000
+18e27e00
+c000338e
+20600000
+7048ae01
+da604808
+204033f4
+da604801
+204033f6
+6fe14793
+c304b3a5
+20203394
+7048ae00
+20203390
+6fe0c8ab
+c1808000
+7048aa05
+20600000
+6fe0c8ab
+1fe0fe01
+67e0c8ab
+c000b39a
+c001339e
+20600000
+204033cf
+70488201
+da60487d
+202033b7
+7048ab00
+70488202
+da60487d
+204033b7
+6fe0c8af
+c000b3c4
+20600000
+6fe148a8
+67e148a2
+204033cf
+20203401
+44d9c016
+20403540
+efe08011
+c001b3af
+c003b3b3
+20600000
+6fe0c8af
+c00033c4
+c000b3cf
+20600000
+efe08012
+c000b3d7
+c00033dc
+20600000
+44da4016
+6fe0c89c
+2feffe00
+24608000
+1a608c06
+efe10006
+1ff0fe00
+1fe0f205
+1a608c03
+20403534
+e7e08006
+1a622200
+20207875
+6fe0c86a
+207a0000
+7048af01
+da6047fa
+204033f4
+da6047f3
+204033f6
+70489104
+70489401
+da60488c
+202033b7
+6fe0c8af
+207a0000
+7048af00
+204033f8
+70489104
+70489400
+da60488c
+202033b7
+7048b001
+70489107
+70489401
+da60488c
+202033b7
+7048b000
+70489107
+70489400
+da60488c
+202033b7
+6fe0c8b0
+207a0000
+202033c4
+efe10011
+67e1489c
+2feffe00
+24608000
+6fe0c8b1
+207a0000
+7048b100
+6fe448c7
+67e44375
+704a6803
+70489107
+7048a11e
+6fe0c8b0
+67e0c894
+da60488c
+202033b7
+da200001
+202033f7
+da200000
+202033fe
+da200000
+20407737
+da200001
+20407737
+6fe148b2
+2020612c
+20407722
+df200007
+20207744
+da6047c9
+da4047ab
+20403408
+204033f6
+6fe148a6
+67e148a4
+2020324c
+efe10012
+67e14159
+efe10006
+67e1442b
+20600000
+da200000
+204060c4
+6fe348b2
+67e3095c
+204060d5
+6fe148b2
+2020612c
+7048ac01
+20600000
+7048ac00
+20600000
+7048ad00
+6fe148b2
+2020612c
+7048ad01
+6fe348b2
+67e3095c
+202060d5
+7044a500
+20600000
+20406018
+67e148c1
+da2048bb
+20406045
+67e0c8ba
+58000065
+c0003430
+1fe67c64
+2421342e
+67e0c894
+70489105
+da60488c
+202033b7
+70489464
+2020342b
+2020326c
+20406d29
+20758000
+58003627
+67e14891
+58002335
+67e14893
+58003659
+67e14895
+580034ad
+67e14460
+580034ad
+67e14462
+5800325c
+67e1446c
+580034af
+67e14468
+580034d0
+67e1446a
+58003222
+67e1445e
+5800353a
+67e1446e
+580034fa
+67e14472
+44dac016
+20403493
+204034bd
+20407870
+70417702
+704c6800
+6fe0ca2a
+67e0c8f9
+c000345c
+6fe0ca2b
+67e0c797
+70442a00
+204076f1
+204076fb
+704a5201
+6fe14793
+c3860000
+2020325c
+2020347a
+704a5202
+70442a01
+58000020
+20404b33
+d8a04302
+6fe0c37d
+1fe104f0
+18518400
+20403474
+e0408005
+1fe1040f
+20403474
+e0408005
+20401a39
+6848c2fa
+18427200
+d8a043ed
+d8c042fb
+20407ca1
+6848c2fa
+18427200
+d8a0440d
+d8c042fb
+20207ca1
+18467c09
+20213478
+18408437
+20600000
+18408430
+20600000
+6fe0ca1f
+c0ffb48c
+6fe0ca1d
+c0ffb48f
+6fe0ca28
+c0ffb491
+6fe0c98b
+1fe27200
+5800498c
+1fe22200
+1a220c00
+efe08006
+18c22200
+c07fb48a
+1fe20400
+20405f8d
+c2003484
+20600000
+6fe44a1f
+67e4498e
+2020347c
+67e0c98c
+2020347e
+67e0c98d
+20203480
+20403623
+da200000
+204060c4
+2040347a
+204034c5
+204034ab
+2020349a
+6fe0cc55
+1fe27200
+58004c56
+1fe22200
+1a220c00
+efe08006
+18c22200
+c07fb4a5
+1fe20400
+67e0cc5a
+204034a7
+c200349e
+20600000
+6fe0cc5a
+c17f8000
+98000400
+20205f8d
+704a2e64
+20600000
+2020608a
+20206096
+204034c7
+204034b2
+202034ae
+6fe14793
+c3848000
+6fe0cc68
+c000b4b7
+20600000
+6fe0ca49
+c1008000
+704a4901
+204034c1
+204034c3
+202034da
+6fe14c6d
+67e14c6f
+704c7100
+20600000
+58000000
+202034be
+da200000
+20207737
+da200000
+2020773c
+6fe14793
+c4048000
+20401b05
+247a0000
+da204977
+2040788c
+24740000
+d8c04977
+20204b37
+1a627e00
+c016b284
+c008326c
+c00a34d6
+c00ab4e0
+20600000
+204034c1
+204034c3
+793f8027
+202034dc
+6fe14a4a
+67e14a4c
+704a2d14
+70409900
+2040324a
+20203268
+79200027
+204034bd
+204035d7
+204035cb
+58000000
+67e2c9fb
+58000004
+2040612c
+58000005
+2040612c
+58000014
+2040612c
+58000015
+2040612c
+58000016
+2040612c
+58000007
+2040612c
+20407870
+7049bd0a
+7049bf0a
+7049c10a
+70417702
+58000020
+20404b33
+2020324c
+20403578
+2040357b
+2040357e
+204031dd
+20403510
+2040350a
+20403502
+20203505
+da604c69
+da400000
+202031cf
+da604c6f
+da403508
+202031d6
+704c7101
+20600000
+da604a4c
+da40350d
+202031d6
+704a4902
+704c6800
+202034e4
+6fe0ca27
+207a0000
+da604a2d
+da403515
+202031cf
+6fe0ca2c
+67e0ca2d
+6fe0ca30
+247a0000
+20406018
+67e14a47
+da204a41
+20406045
+6848ca2e
+98467c00
+20213522
+67e0ca2e
+1fe20400
+6048ca2f
+6fe0ca29
+98467c00
+2041352d
+6048ca3a
+df200006
+d8c04a35
+20403534
+67e0ca3b
+da204a32
+20207875
+6fe0ca31
+247a0000
+704a3101
+da200001
+2020773c
+da200001
+20207737
+da200000
+efe08006
+9a20a200
+c2003535
+1a217eff
+20600000
+6fe0c439
+c009353d
+20600000
+6fe1443a
+c00a3554
+20600000
+44db4016
+efe28011
+67e289de
+6fe109de
+d8406b5a
+98467c00
+24628000
+6fe109e1
+1ff0fe00
+67e109e1
+1fe27200
+1a20a205
+1a220c00
+d8a009e3
+20407ca1
+efe08006
+67e089ed
+da2009e0
+da4009e3
+20600000
+58000000
+67e2c9b1
+67e2c9b6
+20403540
+1a420c00
+d8a049b1
+df20000a
+20407ca1
+44dbc016
+efe08011
+c0013587
+c001b59c
+c00235a3
+c002b5a3
+c0033613
+c003b614
+c0043617
+20600000
+20403554
+6fe089e0
+c002356b
+c002b56b
+20600000
+6fe0c9b1
+245a3572
+6fe0c9b3
+245a3574
+6fe0c9b5
+245a3576
+20600000
+704c5205
+20600000
+704c5305
+20600000
+704c5405
+20600000
+da604c52
+da403581
+202031cf
+da604c53
+da403583
+202031cf
+da604c54
+da403585
+202031cf
+7049b100
+202035a3
+7049b300
+202035a3
+7049b500
+202035a3
+6fe0c9b1
+67e0c9bc
+6fe0c9b2
+67e0c9be
+202035ad
+6fe0c9b1
+67e0c9be
+202035bb
+6fe0c9bd
+20403594
+6fe0c9b2
+67e0c9bc
+202035b9
+c0013598
+c001b59a
+67e0c9bd
+20600000
+7049bd05
+20600000
+7049bd0a
+20600000
+6fe0c9b1
+20403594
+6fe0c9bd
+20403607
+2040360a
+70095d00
+202060e9
+6fe0ca4f
+247a0000
+6fe349b1
+67e349bc
+6fe0c9bd
+6848c9bf
+98417e00
+6848c9c1
+98417e00
+205a35bf
+44dc4017
+6fe14793
+2feffe09
+2440b4bd
+204035b9
+204035bb
+202035b4
+6fe0c9bc
+6848c9be
+9840fe00
+243a7841
+2020783f
+d8c049bc
+202035c1
+d8c049be
+202035c6
+d8c049c0
+202035e3
+704a3000
+20600000
+efe08006
+c00035cb
+c000b5cf
+c00135d3
+20600000
+efe08006
+c00035d7
+c00135db
+c000b5df
+20600000
+6848cc56
+20405f89
+6848cc57
+20205f89
+6848cc56
+20405f8d
+6848cc57
+20205f89
+6848cc56
+20405f89
+6848cc57
+20205f8d
+6848cc58
+20405f89
+6848cc59
+20205f89
+6848cc58
+20405f8d
+6848cc59
+20205f89
+6848cc58
+20405f89
+6848cc59
+20205f8d
+44dcc017
+efe08006
+c00035f0
+c000b5e9
+c00135eb
+20600000
+7049da00
+202035ec
+7049da01
+efe08006
+67e0c9dc
+efe40012
+202035f5
+efe08012
+2040612c
+1a40a401
+efe08012
+2020612c
+67e449dd
+704a3001
+6fe0c9da
+c0003603
+6fe0c9de
+67e0c9df
+6fe0c9dd
+2040612c
+6fe0c9dc
+20403607
+67e0c9e4
+6fe349df
+67e3095c
+202060d5
+6fe0c9dd
+67e0c9df
+6fe0c9de
+202035fc
+1feffe05
+1fe0fe32
+20600000
+d8402ee0
+984ffe00
+1fe6fc64
+20407d31
+18078400
+18422200
+58002ee0
+98462400
+20600000
+20600000
+6fe449b1
+67e449fb
+20600000
+6fe0ca18
+67e0ca0e
+6fe0ca19
+67e0ca0f
+6fe0ca1a
+67e0ca10
+df20000d
+d8c04a09
+20403534
+67e0ca16
+da204a06
+20207875
+58000000
+67e44889
+204023be
+2020241d
+2040362b
+20403633
+20403642
+20203660
+20402421
+6fe0c8c7
+c1808000
+6fe0cc69
+243a2476
+6fe0ca49
+c0012476
+20600000
+6fe0c8c7
+c1800000
+2040247a
+2037b640
+6fe0cc71
+207a0000
+6fe0cc72
+1fe0fe01
+67e0cc72
+c0023640
+20402262
+204023ca
+2437b637
+704c7200
+20600000
+6fe0c8c7
+c1808000
+2040232c
+20403656
+2040233a
+6fe0c888
+243a364f
+2040251d
+6fe0c8c5
+207a0000
+58000000
+67e248e1
+20600000
+7048c400
+da200000
+20407737
+20402476
+20402293
+6fe240a8
+20202273
+6fe248e1
+207a0000
+20202273
+6fe14793
+c3848000
+6fe14a4a
+67e14a4c
+704c6801
+da20489c
+20203566
+6fe0cc71
+207a0000
+20403668
+24740000
+6fe1c863
+20407cec
+604a4160
+20201445
+78347c00
+20401417
+6fe1c174
+203a7d94
+202034ad
+5800369d
+67e14891
+5800376d
+67e14895
+5800377e
+67e14897
+58003744
+67e14893
+580036a9
+67e10b45
+202078d3
+204036a1
+20403698
+6fe0c919
+2feffe05
+2020b680
+6fe0c919
+2feffe06
+2040a2a5
+6fe0c919
+1fe17e0f
+67e0c1eb
+704885ff
+58000c4b
+67e148f1
+58000d4b
+67e148f3
+58000e4b
+67e148f5
+58000f4b
+67e148f7
+70488485
+70494200
+7048dc00
+204022b9
+204023be
+204022bc
+20402296
+6fe0c923
+67e08b47
+6fe4c91a
+67e48b48
+20600000
+7040c518
+6fe0c919
+c4038000
+7040c508
+20600000
+6fe0c8c1
+c0003734
+c000b6ce
+20600000
+58001fdf
+da2048f9
+d8400001
+20205dc7
+df200001
+da2048f9
+d8401fdf
+20205d82
+6fe0c919
+c28236ad
+6fe0c8f9
+c0ad36b1
+7048f95a
+6ff21aac
+79207e1d
+67e20aa0
+204036c8
+20407926
+204036b5
+202036be
+6fe08b48
+207a0000
+6fe0c8f9
+c02d36bc
+6fe20b49
+67e20aa0
+20600000
+6fe20b4d
+202036ba
+6fe0c8f9
+c02d36c4
+580099a4
+67e10a93
+700ac41a
+20600000
+580099bf
+67e10a93
+700ac43f
+20600000
+6fe0c924
+207a0000
+d8c04924
+d8a00b09
+df20001e
+20207ca1
+20402476
+2040373c
+2040247f
+20403700
+202036cf
+204036d6
+204036e5
+202036f4
+6fe0c918
+207a0000
+d8e0000b
+20407cb6
+247a0000
+70491800
+58000001
+67e08bff
+58000000
+e7e38005
+700bf820
+6fe08bf9
+79207e02
+67e08bf9
+20600000
+6fe0c916
+207a0000
+d8e0000e
+20407cb6
+247a0000
+70491600
+d8a00c0f
+df200002
+20407c59
+700c0f00
+700bf710
+6fe08bf9
+79207e01
+67e08bf9
+20600000
+6fe0c917
+207a0000
+d8e0000c
+20407cb6
+247a0000
+70491700
+d8a00c1f
+df200002
+20407c59
+700c1f03
+700bf821
+202036e1
+44dd4017
+6fe08bed
+205a374e
+204078c7
+6fe08be3
+207a0000
+700be300
+6fe10be1
+d84002ba
+98467c00
+24628000
+6fe08b61
+c1dd0000
+6fe08b62
+c0503715
+c050b71b
+c0533727
+c053b729
+c054b72f
+700be400
+20600000
+6fe08b63
+c040b718
+20203713
+20402329
+700be401
+20600000
+6fe08b63
+c000b720
+c0423723
+c053b725
+20203713
+6fe0c888
+67e08ba2
+20203719
+20402477
+20203720
+700ba2a1
+20203719
+700ba215
+20203719
+6fe0c8c7
+c000372d
+c000b725
+20600000
+700ba2a0
+20203719
+700ba200
+700ba300
+700ba401
+700ba507
+20203719
+2040241d
+20402421
+20402447
+2040373c
+2040247f
+2040249c
+20403700
+20203735
+44ddc017
+6fe0c8c7
+c1800000
+2040247a
+204036d3
+6fe0c8c1
+247a0000
+2020251d
+6fe0c83d
+c000b747
+c0013750
+6fe0c943
+c2803756
+20203752
+6fe0c09a
+c1820000
+70494303
+20600000
+70494300
+20600000
+6fe0c943
+c280b75a
+6fe0c8c2
+c000b761
+c001b765
+20600000
+6fe0c943
+793ffe00
+67e0c943
+2020375d
+6fe0c943
+793ffe01
+67e0c943
+70483c01
+580000ff
+67e0c7cd
+20600000
+7048c201
+2040239d
+24778000
+20202335
+6fe0c7ad
+c000b761
+c07fb761
+700be500
+70483c01
+6fe0c8d2
+67e0c7cd
+20600000
+58000001
+67e08bff
+6fe3c89c
+e7e38005
+6fe0c89c
+245a3776
+6fe0c89c
+205a377a
+202036e0
+70491801
+58000180
+d8e0000b
+20207ca8
+70491800
+58000000
+d8e0000b
+20207ca8
+6fe0c89c
+c0003783
+c00137b6
+c001b79e
+202023dd
+6fe0c89e
+67e0c8c2
+70489e00
+d8a00c0f
+d8c0489d
+df200008
+20407ca1
+6fe40c0f
+245a3796
+6fe40c0f
+205a379a
+6fe40c0f
+67e448fa
+684c4902
+98467c00
+2442b6ef
+6fe448fa
+67e44902
+202023dd
+70491601
+58000180
+d8e0000e
+20207ca8
+70491600
+58000000
+d8e0000e
+20207ca8
+d8a00c1f
+d8c0489c
+df200003
+20407ca1
+6fe10c20
+245a37ae
+6fe10c20
+205a37b2
+6fe18c1f
+67e1c90a
+6849c90d
+98467c00
+2442b6fe
+6fe1c90a
+67e1c90d
+202023dd
+70491701
+58000180
+d8e0000c
+20207ca8
+70491700
+58000000
+d8e0000c
+20207ca8
+d8a00c2f
+d8c0489c
+df200002
+20407ca1
+6fe10c2f
+245a37c6
+6fe10c2f
+205a37ca
+6fe10c2f
+67e14910
+68494913
+98467c00
+2442b7ce
+6fe14910
+67e14913
+202023dd
+70491701
+58000180
+d8e0000c
+20207ca8
+70491700
+58000000
+d8e0000c
+20207ca8
+700bf822
+202036e1
+6fe0c09a
+c1820000
+6fe0c8f9
+c12d0000
+70494201
+20600000
+6fe0c09a
+c1820000
+6fe0c942
+207a0000
+70096400
+7048f95a
+204036a5
+204036a1
+6fe08964
+1fe0fe01
+67e08964
+c07fdc7b
+6fe0c8f9
+c0ad37db
+20205c7b
+20758000
+20401a36
+5800382c
+67e14468
+58003819
+67e14466
+58003830
+67e1446a
+58003815
+67e1445e
+58003969
+67e14470
+58003b65
+67e14661
+58003c08
+67e1446e
+58003c1f
+67e14472
+20403829
+44de4017
+204037fc
+20403810
+20203b7b
+6ff08060
+793ffe00
+67f08060
+6fe447bb
+20405dd6
+6fe147c3
+20405dea
+20405dfd
+70807d08
+70807e49
+7080790a
+70807a0b
+d8400081
+6fe147ca
+2feffe00
+79208404
+60588060
+20600000
+20403829
+202037fc
+6848c7af
+20405f8d
+20403893
+6848c7ad
+20205f74
+6848c7ad
+20405f7d
+2420b224
+20203222
+2040381b
+20203c2f
+6fe0c793
+c3023829
+58003eff
+684a47d2
+98408400
+1c427e00
+98467c00
+24610000
+6fe14793
+c282b829
+6fe147ca
+c3850000
+20403c32
+20403260
+1c427e00
+67e247d2
+20600000
+20403c2f
+2040520e
+247a0000
+20203898
+1a627e00
+c000b880
+c001384f
+c0023883
+c002b870
+c0043856
+c004b85d
+c0053876
+c005b862
+c006386e
+c009b883
+c00a387c
+c00ab872
+c010b877
+c011b878
+c012387b
+c0183bc3
+c018bbc5
+c0193bd3
+c019bbd1
+c01a3bbd
+c01abba6
+c01b3bbb
+c01bbbc7
+c01c3bc9
+c01dbba6
+c01ebb9d
+c020b885
+c0213887
+c021bbbb
+20600000
+20403829
+6fe0c776
+245a3bc7
+20403883
+6fe14793
+c4020000
+2020385d
+6fe14793
+79207e04
+67e14793
+6fe0c7b8
+67e0c177
+20403893
+20203b50
+6fe14793
+c4020000
+793ffe04
+67e14793
+20203b54
+20403829
+6fe14042
+1fe37e00
+68494458
+98467c00
+2422b869
+20203268
+6fe147ca
+c3848000
+6ff10112
+245a3c36
+2020325e
+20403c34
+2020326a
+20403829
+2020388a
+20401aa9
+7047cc00
+20403883
+20203b56
+2020322f
+20203c34
+6fe147ca
+c304b260
+20203c38
+20203c38
+2040388a
+6fe0c7b9
+67e0c177
+20203b52
+70477200
+20403c34
+20203c38
+20403900
+20203888
+20402143
+20201f27
+20203be9
+6848c7af
+20205f8d
+2040388c
+20203893
+6fe0c7b2
+2feffe00
+2040b242
+6fe0c7b2
+2feffe01
+2040b24a
+20600000
+6848c7af
+20205f89
+6fe0c65d
+c1000000
+202063e9
+6ff0810b
+c2813895
+20405e1d
+efe08003
+c080b8ae
+6ff10112
+1fe67c02
+20610000
+efe08003
+67e089cf
+e8408003
+18622200
+604889d0
+18408403
+6ff10112
+98460400
+24610000
+7009d101
+204038bc
+6fe089d1
+c1000000
+202038b7
+20407c52
+20403bac
+202038b1
+44dec017
+20405e1d
+6ff10112
+207a0000
+98608600
+202038bb
+20405e1d
+18608602
+efe08003
+98608600
+20205e29
+44df4017
+6fe089cf
+c00038ee
+c000b8f3
+c00138f8
+c001b90d
+c0023917
+c002b91b
+c004b93d
+c005b994
+c0063995
+c006b9b9
+c00739bc
+c007b9c4
+c00839cc
+c008b9d0
+c00939d4
+c00ab9d8
+c01339dd
+c01439e2
+c014b9f2
+c01539fb
+c015ba2e
+c0163a34
+c0183a3b
+c018ba45
+c0193a56
+c019ba61
+c01a3a8e
+c01aba91
+c01b3a9a
+c01bbaa3
+c01c3aa6
+c0203aae
+c0213ab8
+c0243abd
+c024bac8
+c028bace
+c030bad2
+c03b3ae1
+c03bbae7
+c03c3aec
+c03d3b22
+c0483b30
+c048bb35
+c0493b39
+c049bb3e
+c04a3b42
+c07fbb48
+20203b4a
+6fe089d0
+c0833b4a
+efe30003
+67e340a8
+20203b4d
+6fe089d0
+c0833b4a
+efe30003
+67e3437d
+20203b4d
+6fe089d0
+c080bb4a
+e8408003
+6048c7ba
+20403b4d
+6fe14793
+c3848000
+c3800000
+6fe0c7b2
+2feffe00
+2420b906
+6848c7ba
+18417e03
+67e0c09b
+6fe0c7b2
+2feffe01
+24608000
+6848c7ba
+284ffe02
+2020b24c
+2020324a
+6fe089d0
+1fe67c43
+24213b4a
+67e0c603
+df200008
+20407c59
+6f2089d0
+d8a04604
+20405e5f
+20203b4d
+dfe0001d
+d8a042fa
+20403a94
+20201a36
+6fe0c793
+c3023b4a
+2040321c
+2020b92b
+7009d100
+20403829
+6fe0c65a
+207a0000
+6fe14665
+243a3929
+6fe089d0
+67e14665
+67e14663
+60614663
+2040392d
+2020640e
+7009d100
+20203c19
+20403933
+6fe14665
+684947b0
+98467e00
+67e14665
+20600000
+6fe14665
+6849465e
+20407d88
+68494650
+20407d88
+67e147b0
+20600000
+7009d101
+7009cf05
+20203b4d
+6fe14793
+c304bb4a
+20403991
+20343b4a
+7009d100
+6fe147ca
+c2843962
+6fe0c7cc
+247a0000
+7009d101
+efe10003
+67e147cd
+606147cf
+6fe089d0
+1fe0fffe
+24213b4a
+2022bb4a
+67e0c7cc
+684947cd
+184085ff
+204019f2
+203a3965
+e8420006
+59280302
+98467c00
+2422b965
+efe08006
+67e0c7d1
+1fe17e30
+203a3965
+7009d100
+20401aa7
+20403969
+20403969
+20403969
+6fe147ca
+c4040000
+7009d101
+20403c3c
+20203b4d
+7047cc00
+7009d101
+20403c3c
+20203b4a
+6fe0c7cc
+207a0000
+20401b05
+247a0000
+2040398c
+44dfc017
+6fe14383
+20407d88
+1fe20400
+6fe0c438
+c3800000
+1840fffd
+d84000fb
+20407d88
+6848c7cc
+20407d88
+1fe22200
+18427e00
+9a267e00
+67e0c7cc
+20403987
+6fe147cf
+1fe20600
+1a227200
+20405e5f
+18627e00
+67e147cf
+6fe0c7cc
+247a0000
+20203c3a
+684947cd
+6fe0c7d1
+c2829e49
+c2821e40
+20600000
+d8400017
+6fe147ca
+c3808000
+68494385
+20600000
+6fe147ca
+c2811e1a
+20207d94
+20203b7f
+efe08003
+c040b9a2
+c04139a4
+c041b9a6
+1fe22200
+20406df1
+2040747a
+1a227e00
+c00039a8
+c000b9ab
+c00139b5
+c001b9b7
+20203b4a
+20406ded
+202039ab
+20406ded
+202039b5
+20406ded
+202039b7
+20406df8
+70476b00
+20203b4d
+58000003
+67e0c773
+67e0c76c
+58000000
+67e0c76d
+58000004
+67e0c76e
+204056cb
+70476b01
+20203b4d
+58000002
+202039ac
+58000001
+202039ac
+dfe00010
+d8a0479a
+20203a94
+efe08003
+6848c7ca
+7d3a0400
+6048c7ca
+68588060
+7d3a0404
+60588060
+20203b4d
+6f2089d0
+20407cfa
+20405df2
+67e147c3
+20403b4d
+20407d49
+6fe147c3
+20205dea
+da200002
+da4047ab
+d8400000
+20203b58
+6fe14793
+c3003b4a
+20403b4d
+2020323b
+6fe14793
+c304bb4a
+20403b4d
+20203254
+6fe089d0
+c081bb4a
+efe18003
+67e1c0b2
+20203b4d
+6f2089d0
+6fe1448c
+1fe20a00
+20405e5f
+20203b4d
+6fe14793
+c284babd
+c3003b4a
+efe08003
+6848c772
+793a0400
+79200407
+6048c772
+20403b4d
+6fe0c772
+c28339ee
+20600000
+c28055a3
+70477200
+70095b21
+202077b0
+6fe0c793
+c4020000
+6fe0c65d
+c1000000
+efe08003
+6848c65b
+98408400
+6048c65b
+20600000
+df200040
+d8a043ea
+20407c68
+58000000
+67e08974
+1a220600
+18627e00
+67e10978
+20403a29
+6fe08974
+68488964
+18408401
+9840fe00
+67e08974
+1fe67c1f
+24213a15
+6848c3ea
+580043eb
+9840fe00
+67e1097d
+68488964
+18408401
+6fe0c3ea
+9840fe00
+67e0c3ea
+20203a1e
+6848c40a
+5800440b
+9840fe00
+67e1097d
+68488964
+18408401
+6fe0c40a
+9840fe00
+67e0c40a
+6fe1097d
+1fe20a00
+6fe10978
+1fe20600
+18427200
+20405e5f
+6fe089d0
+68488974
+98467c00
+2422ba01
+20203b4d
+efe08003
+67e08964
+efe08003
+67e08970
+20600000
+d8400000
+da200002
+6fe147c7
+67e1098e
+da40098e
+20203b58
+6fe089d0
+c080bb4a
+efe08003
+67e0c7c5
+58000000
+67e147c7
+20203b4d
+6fe089d0
+c0823b4a
+6fe14793
+c284bb22
+efe20003
+67e2479b
+70479a04
+70477400
+20403b4d
+20205523
+6fe089d0
+c081bb4a
+efe08003
+c0003a4b
+c000ba51
+20203b4a
+20403b4d
+e8408003
+efe08003
+c0015fa3
+7d3a0407
+20205f74
+20403b4d
+e8408003
+efe08003
+203a5f8d
+20205f89
+6fe089d0
+c080bb4a
+e8408003
+20405f7d
+58000000
+7d20fe00
+da200001
+67e1098e
+da40098e
+d8400000
+20203b58
+efe08003
+1fe20400
+c040ba70
+c0413a74
+c041ba79
+c0423a7d
+67e0c3a0
+2040747a
+20401f16
+6fe0c3a0
+c0003a81
+c000ba84
+c0013a86
+c0023a88
+20203b4a
+6048c3a0
+20401f12
+7043560d
+20203a82
+6048c3a0
+20401f12
+7043560d
+70435401
+20203b4d
+6048c3a0
+20401f12
+7043560d
+20203a8c
+6048c3a0
+20401f12
+7043560d
+20203a8a
+70435600
+70435403
+20203b4d
+70435601
+20203a82
+70435605
+20203a8c
+70435605
+20203a8a
+70435402
+20203b4d
+70435400
+20203b4d
+dfe0001f
+d8a043ea
+20203a94
+dfe0001f
+d8a0440a
+20203a94
+6f2089d0
+9f267c00
+24213b4a
+e7208005
+20405e5f
+20203b4d
+6fe14793
+c304bb4a
+6fe089d0
+c0843b4a
+efe40003
+67e44375
+70095b12
+204077b0
+20203b4d
+efe10003
+67e1442b
+20203b4d
+6fe0c3a0
+203a3b4a
+6fe0c39e
+c0803b4a
+6fe0c39f
+c0803b4a
+2040785d
+20203b4d
+6fe089d0
+c082bb4a
+efe08003
+67e0c7b3
+efe20003
+67e247b4
+6848c7b3
+20405f8d
+20403c06
+20203b4d
+6fe089d0
+c080bb4a
+efe08003
+67e0c1eb
+20203b4d
+efe08003
+c000bac6
+6fe0c39c
+c001bac4
+c0033ac4
+c003bac4
+20203b4a
+70439d01
+20203b4d
+20401f7c
+20203b4d
+6fe089d0
+c080bb4a
+20403b4d
+efe08003
+203a56ff
+202056fd
+20403b4d
+20407d49
+70801001
+2020137c
+6fe089d0
+c0003b4a
+efe08003
+203a3adf
+6fe089d0
+c082bb4a
+efe20003
+d84f4240
+98467c00
+20213b4a
+67e243a1
+20401a9f
+20203b4d
+20401aa1
+20203b4d
+e8410003
+204019f2
+18c08bfe
+58000000
+e7e10005
+20203b4d
+20403af0
+20403b1e
+58000000
+e7e10005
+20203be0
+efe08003
+20403af4
+20403afb
+20203be0
+20403b1b
+58280002
+e7e18005
+20600000
+67e0895c
+20403b1b
+59280302
+e7e20005
+6fe0895c
+e7e18005
+20600000
+20401a11
+efe08003
+1fe1721f
+1fe22200
+2a2ffe07
+7920840f
+2a2ffe06
+7920840e
+e0410005
+1f227e00
+e7e08005
+20405e73
+20403b1e
+58000000
+e7e10005
+184104ff
+184085ff
+204019f2
+18c08c04
+efe08006
+c2823b13
+c282bb13
+18408401
+20600000
+20401a11
+2a2ffe05
+7920840f
+e0410005
+5a290202
+e7e40005
+184085ff
+20600000
+20401a11
+e0410005
+20600000
+efe08003
+1fe27200
+e7e08005
+20205e73
+6fe0c39e
+c082bb4a
+6fe0c3a0
+c0023b2e
+c0423b28
+20203b4a
+70439b02
+70439c08
+20203b2b
+efe20003
+67e243a1
+20203b4d
+20403b2b
+20201f65
+6fe089d0
+c0813b4a
+e8410003
+20401b0a
+20203b4d
+d8400000
+da200002
+da404075
+20203b58
+6fe089d0
+c0843b4a
+efe40003
+20401b08
+20203b4d
+ea208003
+ea410003
+d8400000
+20203b58
+6f2089d0
+1f20f3fe
+efe10003
+1fe20a00
+20405e5f
+20203b4d
+70409900
+20203b4d
+d8400001
+da200000
+20203b58
+d8400000
+da200000
+20203b58
+7009cf00
+20203b7c
+7009cf02
+20203b7c
+7009cf03
+20203b7c
+7009cf05
+20203b7c
+6fe089cf
+1fe22600
+7009cf06
+58000002
+9a20fe00
+20403bef
+1a627e00
+e7e08003
+e0408003
+1a227200
+1a420c00
+20405e59
+20203bf9
+20403829
+7009cf07
+6fe083d2
+207a0000
+20403bef
+6fe083d2
+1fe27200
+6fe103d4
+1fe20c00
+20405e45
+20203bf9
+7009cf08
+1f20fe02
+20403bef
+6fe109fa
+e7e10003
+6fe109f8
+1fe20c00
+20405e45
+18c27e00
+67e109f8
+20203bf9
+7009cf09
+58000000
+20403bef
+20203bf9
+7009cf0a
+58000001
+20403bef
+20403b90
+6fe14793
+d8e00002
+afefffff
+79208403
+d8e00009
+afefffff
+79208405
+6fe0c793
+d8e00004
+afefffff
+79208404
+e0408003
+20203bf9
+d8400000
+6fe0c09b
+d8e00000
+afefffff
+79208400
+d8e00001
+afefffff
+79208401
+6fe0c42a
+d8e00000
+afefffff
+79208402
+20600000
+7009cf0d
+6fe0c48e
+1feffe22
+1fe27200
+20403bef
+6fe1448c
+1fe20c00
+20405e45
+20203bf9
+7009cf0e
+58000004
+20403bef
+6fe2087c
+e7e20003
+20203bf9
+7009cf0f
+6ff10112
+d8400040
+20407d88
+1fe22200
+1fe27200
+20405e1d
+d8a0098e
+20405e5f
+1a227e00
+1a227200
+20403bef
+d8c0098e
+20405e45
+20203bf9
+7009cf10
+20203b7c
+7009cf11
+58000004
+20403bef
+6fe243a1
+e7e20003
+20203bf9
+da200180
+20203bca
+da200080
+20203bca
+da200101
+20203bca
+da200001
+70477200
+7009cf14
+58000002
+20403bef
+1a227e00
+e7e10003
+20203bf9
+da600000
+20203bd4
+da600001
+7009cf15
+58000001
+20403bef
+1a627e00
+e7e08003
+20203bf9
+7009cf1d
+58000004
+20403bef
+6fe2087c
+e7e20003
+20203bf9
+60490964
+7009cf29
+58000002
+20403bef
+68490964
+e0410003
+20203bf9
+7009cf2b
+20203b7c
+7009cf40
+58000002
+20403bef
+6fe14075
+e7e10003
+20203bf9
+7009ce02
+67e089d0
+604c0964
+44e04018
+20403bfb
+684c0964
+20405e35
+6fe189ce
+e7e18003
+20600000
+44e0c018
+20205e39
+20403c04
+20608000
+20403c02
+6fe247b4
+1feb7e00
+207a0000
+20207c4e
+6848c7b3
+20205f8d
+6848c7b3
+20205f98
+6848c7b3
+20205f89
+622109f8
+624109f6
+6fe1443a
+67e109fa
+20403991
+20740000
+684909f6
+6fe0c7c9
+20407d88
+1fe27200
+18427e00
+9f267e00
+67e109f6
+20403b70
+6fe109f6
+207a0000
+20203c0e
+6fe147ca
+c3848000
+20403c36
+2020325e
+70417702
+20600000
+6fe0c7c5
+207a0000
+6fe0c7c6
+207a0000
+1fe0ffff
+67e0c7c6
+247a0000
+7047c605
+20405ff1
+20406018
+1fe6fc64
+20407d2e
+18070400
+67e0c7c7
+6048c7c8
+20600000
+20407d5f
+2021322b
+2020322d
+d8e0000a
+20203c42
+d8e0000a
+20203c3e
+d8e00009
+20203c42
+d8e00009
+20203c3e
+d8e00008
+20203c42
+d8e00008
+20203c3e
+6fe147ca
+f93ffe00
+67e147ca
+20600000
+6fe147ca
+f9207e00
+67e147ca
+20600000
+20406d29
+20403c77
+204040c2
+20403fa9
+20758000
+20404641
+20403c54
+20404157
+6fe0c931
+c3838000
+6fe14793
+c286446e
+204045b9
+20203ceb
+580047df
+67e1447c
+58004780
+67e148a3
+580047a9
+67e148a5
+58003d5b
+67e148a7
+580042ba
+67e14464
+58004372
+67e14466
+58003d56
+67e14462
+5800424f
+67e1446a
+58004566
+67e14468
+58003d34
+67e14460
+580042a3
+67e1446e
+580043d0
+67e14472
+58003e84
+67e14476
+58003d23
+67e1445e
+580048d2
+67e14470
+580048d4
+67e1447a
+580048e7
+67e14474
+20600000
+20758000
+204025f1
+20402296
+20403e3b
+20403cac
+20401aa3
+20401acc
+20401abf
+20401aab
+6fe44bbd
+c289c550
+c2894511
+20600000
+7040c508
+6fe44bbd
+c3860000
+7040c518
+20600000
+6fe14906
+67e14798
+6fe14908
+67e14889
+6fe0c90b
+67e1488d
+6fe2c90d
+67e2c8d3
+6fe0c90c
+67e0c884
+6fe0c912
+2feffe00
+2040c5ff
+6fe0c912
+2feffe02
+2040c601
+6fe0c912
+2feffe01
+2040c603
+6fe0c912
+2feffe03
+2040c605
+6fe0c912
+2feffe04
+2040c607
+6fe0c912
+2feffe05
+2040c611
+6fe0c86d
+245a22a5
+20403c84
+20403d97
+204022b9
+204046ed
+202022bc
+58009468
+67e14667
+58009732
+67e14399
+58002580
+67e1c0b2
+70417803
+70415b08
+704bb000
+704bb000
+704bb100
+58000200
+67e14159
+70438317
+70438517
+58000a77
+67e14489
+38000306
+38044440
+38090000
+380c4408
+67e4c669
+38001224
+38044000
+38080000
+e7e28005
+3803ffff
+3806fe23
+380999d9
+380c020d
+67e440a0
+58004b07
+67e143e1
+58000010
+67e143e3
+20404838
+204047f0
+20403daa
+6fe44bbd
+c30dbcd8
+7044580c
+58000006
+67e14375
+67e14377
+204025fd
+6fe44bbd
+c30c3cdc
+204025f5
+6fe0c93f
+67e0cac6
+6fe1c380
+67e1cadb
+6fe0c905
+1fe17efe
+67e0c905
+67e0c4a5
+58000000
+67e3c8d8
+6fe0c796
+67e0cbad
+67e0cbae
+20401a36
+202041bb
+44e14018
+6fe44bbd
+c297c724
+6fe0c93f
+c0004710
+20403cfe
+24344206
+44e1c018
+da204940
+6fe0c93f
+1fe0ffff
+1feffe1d
+9a20a200
+efe08011
+67e0c487
+6fe0c487
+c019bd08
+c01a3d14
+2020446e
+44e24018
+78547c00
+6fe44bbd
+c305bd05
+6fe08989
+c3013d05
+78347c00
+6fe0cac3
+67e0cac2
+20600000
+68494bca
+6fe0cad3
+c07fbd0c
+68494bc7
+604940c1
+6fe341e0
+203a323d
+70448217
+6fe0c76b
+243a3233
+70448204
+20203233
+704ad901
+6848cbc9
+6fe0cad3
+c07fbd19
+6848c90a
+6048cb89
+2040326a
+6fe1cae1
+67e1c3ef
+20404303
+58000004
+e7e08006
+d8c0440b
+2040430a
+20207824
+c5133222
+6fe0cabe
+203a3222
+6fe0cb06
+c000b222
+6fe144df
+243a3222
+6fe0c8e9
+243a3222
+20203224
+6fe0c90a
+67e0cad6
+20600000
+44e2c018
+2040414d
+20404157
+2020325c
+44e34018
+6ff20138
+79207e1a
+67f2004c
+2040152d
+20406d2d
+20404838
+20403f30
+20403d40
+20404548
+6848c926
+20205f66
+44e3c018
+20404204
+20407f1a
+20403d5b
+20403d48
+6848c928
+20403e71
+20203e73
+d8c08070
+df200013
+efe08006
+243a3d4f
+58000040
+18c08bff
+e7e08005
+c2003d4a
+dfe080e8
+98c67c00
+20628000
+df200003
+d8c080e5
+20203d4a
+c6130000
+20403d5b
+6fe0809d
+247a0000
+20205f66
+44e44019
+20403ea3
+6fe0c91b
+d840003f
+20405fb3
+20405a26
+6848c913
+20405f5a
+6848c915
+20405f5a
+6848c914
+20405f5a
+6848c916
+20405f5a
+6848c917
+20405f5a
+6848c918
+20405f5a
+6848c924
+20405f5a
+6848c925
+20405f5a
+6848c919
+20405f56
+6848c91a
+20405f56
+6848c921
+20405f56
+6848c922
+20405f56
+6848c926
+20205f5a
+6fe14793
+c284bd80
+6fe14793
+c2803d83
+20600000
+1a227e00
+243a1ab3
+20201ab5
+1a227e00
+243a14ef
+202014f1
+6fe0c4a5
+c1810000
+44e4c019
+6848c4a6
+18467c03
+20213d94
+18408405
+6048c904
+18422200
+20405fbd
+c01fc87e
+2040487c
+1a220400
+20205fa3
+18408404
+6048c904
+20203d8e
+6fe0c905
+c0013da0
+c0003da5
+70490500
+582c0172
+67e1c8eb
+58014001
+e7e18005
+20600000
+585d0099
+67e1c8eb
+58007100
+e7e18005
+20600000
+58c8012c
+67e1c8eb
+5800dc00
+e7e18005
+20600000
+6fe44bbd
+c40a0000
+7048fd01
+c3970000
+c3958000
+7048fd00
+20600000
+6fe0c8fe
+1fe0fe01
+67e0c8fe
+6848c8ff
+98467c00
+20600000
+6fe44bbd
+c40a0000
+20403d86
+6fe0c8fd
+203a3dce
+6fe0c4a5
+c0013dc3
+7048fd03
+20403db1
+20213dc5
+20403dca
+20203dd4
+7048fd02
+20203dd4
+20403d88
+7044a502
+6fe0cbbc
+245a3dca
+20203dd4
+7048fe00
+6fe0c905
+67e0c4a5
+20600000
+6fe0c4a5
+c0813dd2
+6fe0cbbc
+247a0000
+20403db1
+24610000
+44e54019
+6fe0cbbc
+247a0000
+7048fe00
+20405ff1
+20406018
+67e148f1
+6fe0c4a5
+c0813de3
+684948f1
+184ffe08
+1fe6fc0a
+20407d2e
+9840fe00
+67e148f1
+da2048eb
+20403df5
+6fe0c4a9
+c2813e37
+c280be39
+c3003ded
+70490201
+20203deb
+d8e00004
+20204609
+d8e00004
+2040460d
+7049000c
+6fe0c902
+207a0000
+70490200
+6848c929
+20204855
+44e5c019
+efe40011
+67e4095c
+6fe0c8fd
+c0003e0d
+c0013dfc
+c001be2c
+6fe44bbd
+c3173e02
+6fe10962
+684948f3
+98467c00
+24213e2f
+6fe44bbd
+c315be0d
+70490300
+6fe10962
+684948f5
+98467c00
+24213e0b
+204045c2
+20203e0d
+204045c6
+20203e0d
+20403e33
+20406061
+20406059
+6fe10962
+6849095e
+98467c00
+2441605d
+68490960
+98467c00
+24416055
+6fe10962
+6849095c
+98467c00
+20213e28
+6849095e
+98467e00
+24213e2a
+203a3e2a
+1fefa264
+6fe1095c
+6849095e
+98460400
+1a227e00
+9846fc00
+20407d2e
+67e0cb01
+20600000
+704b0164
+20600000
+704b0100
+20600000
+6fe0c4a5
+c0013dfc
+20203e0d
+6848c4a9
+79200402
+6048c4a9
+20600000
+6848c4a9
+793f8402
+6048c4a9
+20600000
+70490301
+20600000
+20404838
+20203d30
+6848c4c6
+20405f8d
+204078ea
+6848c913
+20403e71
+6848c915
+20403e71
+6848c914
+20403e71
+6848c916
+20403e71
+6848c917
+20403e71
+6848c918
+20403e71
+6848c923
+20403e71
+6848c924
+20403e71
+6848c925
+20403e71
+6848c919
+20403e71
+6848c91a
+20403e71
+6848c921
+20403e71
+6848c922
+20403e71
+6848c926
+20403e71
+6848c927
+20403e71
+6848c929
+20405f8d
+6848c92a
+20405f8d
+6848c92b
+20405f8d
+6848c92c
+20405f8d
+6848c92d
+20405f8d
+6848c91d
+20203e71
+18467cff
+20628000
+18410e7f
+6ff2011c
+afefffff
+2020be71
+20203e6f
+79200407
+20205f74
+793f8407
+20205f74
+6fe1cbf0
+67e1895c
+df200014
+d8400000
+6fe1895c
+2feffe00
+2040dfa3
+6fe1895c
+1fe3fe00
+67e1895c
+18408401
+c2003e77
+20600000
+20403e85
+70448973
+20403e84
+20205a2a
+20205ba4
+6fe0c91b
+d8400021
+20405fb3
+6fe0c91c
+d8400023
+20205fb3
+44e64019
+78547c00
+58000000
+67e348d9
+2040415b
+20403e99
+20403e9e
+20403ff7
+6fe0c8d8
+1fe17e1f
+67e0c8d8
+24344641
+20404633
+2020445f
+6fe0c8e8
+207a0000
+67e0c8dd
+7048e800
+20207d92
+6fe0c8e4
+207a0000
+67e0c8de
+7048e400
+20207d92
+20403eb0
+20403eec
+6fe0c8e2
+6848c8e1
+67e0c8e1
+98467c00
+2422b226
+6fe0c8e6
+6848c8e5
+67e0c8e5
+98467c00
+2422b226
+20600000
+6fe0c921
+c17f8000
+da200000
+6848c921
+20405f7d
+7920a200
+6848c922
+20405f7d
+7920a201
+1a227e00
+67e0c8e2
+c000bec0
+c0013ec4
+6fe0c8e3
+c283bed0
+20600000
+6fe0c8e1
+c0003ec8
+c001beca
+20600000
+6fe0c8e1
+c0003ecc
+c001bece
+20600000
+7048e382
+20600000
+7048e381
+20600000
+7048e380
+20600000
+7048e383
+20600000
+6fe0c8e3
+793ffe07
+67e0c8e3
+c0003ed8
+c000bedb
+c0013ede
+c001bee1
+20600000
+6fe0c8e2
+c001bee4
+20600000
+6fe0c8e2
+c0003ee4
+20600000
+6fe0c8e2
+c001bee8
+20600000
+6fe0c8e2
+c0003ee8
+20600000
+6fe0c8e4
+1fe0fe01
+67e0c8e4
+20600000
+6fe0c8e4
+1fe0ffff
+67e0c8e4
+20600000
+6fe0c919
+c17f8000
+da200000
+6848c919
+20405f7d
+7920a200
+6848c91a
+20405f7d
+7920a201
+1a227e00
+67e0c8e6
+c000befc
+c0013f00
+6fe0c8e7
+c283bf0c
+20600000
+6fe0c8e5
+c0003f04
+c001bf06
+20600000
+6fe0c8e5
+c0003f08
+c001bf0a
+20600000
+7048e782
+20600000
+7048e781
+20600000
+7048e780
+20600000
+7048e783
+20600000
+6fe0c8e7
+793ffe07
+67e0c8e7
+c0003f14
+c000bf17
+c0013f1a
+c001bf1d
+20600000
+6fe0c8e6
+c001bf20
+20600000
+6fe0c8e6
+c0003f20
+20600000
+6fe0c8e6
+c001bf24
+20600000
+6fe0c8e6
+c0003f24
+20600000
+6fe0c8e8
+1fe0fe01
+67e0c8e8
+20600000
+6fe0c8e8
+1fe0ffff
+67e0c8e8
+20600000
+6848c919
+20405f56
+6848c91a
+20405f56
+6848c921
+20405f56
+6848c922
+20205f56
+6848c919
+20403e68
+6848c91a
+20403e68
+6848c921
+20403e68
+6848c922
+20203e68
+6fe148dd
+207a0000
+7048e901
+7048ea0a
+20600000
+da6048ea
+da403f40
+202031cf
+7048e900
+20600000
+6fe44bbd
+c2973f51
+6fe0c918
+c17f8000
+da200000
+704ba805
+6848c918
+20403f54
+67e0cba5
+6fe0c923
+c07fbf5d
+20404083
+1a227e00
+c282bf6d
+20203f74
+6fe0c903
+203a3f74
+20203f6d
+6fe44bbd
+c2963f63
+6fe0cba5
+1fe22600
+6fe0c923
+c07fc0b0
+6fe0cbac
+243a3f60
+20203f65
+6848c918
+20403e71
+20203f4e
+7049e400
+704ba500
+20600000
+6fe0cba5
+202040a2
+20405f7d
+6848c923
+2020bf63
+6848c923
+20405f8d
+6848c918
+6fe0cba5
+202040a2
+6fe0c9e4
+c1008000
+7049e401
+6fe44bbd
+c3940000
+c39b0000
+20203f84
+6fe0c9e4
+c1000000
+7049e400
+6fe44bbd
+c2943f7b
+c29b3f7b
+20600000
+6fe0c9e5
+243a3f7f
+6fe0cbae
+245a3f84
+7049e500
+6fe0c796
+67e0cbae
+67e0cbad
+20600000
+44e6c019
+20403f8d
+20740000
+6fe0c999
+1fe0fe01
+1fe17e03
+67e0c999
+20403fb0
+20204509
+78547c00
+6fe44bbd
+c3960000
+c3970000
+6fe0cba0
+207a0000
+6fe0cba1
+207a0000
+78347c00
+20600000
+6fe44bbd
+c2943f9b
+c29b3fa2
+20600000
+6fe0c9e4
+c1808000
+da604bae
+da403fa0
+202031cf
+7049e501
+202045ce
+6fe0c9e4
+c1808000
+da604bad
+da403fa7
+202031cf
+7049e501
+202043ef
+20203fb3
+6fe44bbd
+c38e0000
+6fe0c999
+c1818000
+70499900
+20600000
+44e74019
+20403faa
+2040480b
+6fe0c92e
+c001bfd6
+c005bfea
+6fe0c999
+c0003fbd
+c000bfbb
+c0013fbf
+c001bfc1
+6848c9d8
+20203fc3
+6848c9d7
+20203fc3
+6848c9d9
+20203fc3
+6848c9da
+20203fc3
+6fe0c92e
+c0023fd2
+c002bfd2
+c0043fd4
+c003bfd4
+c0033fd2
+6048c9e3
+58000006
+20405a2f
+1fe104f8
+6fe0c9e3
+9840fe00
+1fed7e00
+1fe0fe06
+20205a2e
+184085ff
+20203fc9
+18408402
+20203fc9
+6fe0c999
+c0003fdd
+c000bfdb
+c0013fdf
+c001bfe1
+6fe0c9dc
+20203fe2
+6fe0c9db
+20203fe2
+6fe0c9dd
+20203fe2
+6fe0c9de
+67e0c9e3
+1fed7e00
+1fe22200
+1fe0fe0d
+20405a2e
+1a227e00
+1fe0fe0e
+20205a2e
+6fe0c999
+c0003ff1
+c000bfef
+c0013ff3
+c001bff5
+6fe0c9e0
+20203fe2
+6fe0c9df
+20203fe2
+6fe0c9e1
+20203fe2
+6fe0c9e2
+20203fe2
+20404030
+20404008
+20403d7b
+20404003
+1a227e00
+6848c8e0
+67e0c8e0
+67e0c8d8
+9842fe00
+1fe67c00
+20628000
+20207d92
+c6930000
+1a227e00
+207a0000
+67e0c8d8
+20207d92
+704baa00
+704bab00
+704bac00
+1fe20400
+20404018
+2040401b
+2040401e
+20404021
+6fe0cbab
+207a0000
+6fe0cbaa
+207a0000
+704bac01
+6fe0c8e0
+1fe22200
+20600000
+18417e09
+c004c029
+20600000
+18417e14
+c00a4029
+20600000
+18417e18
+c00c4027
+20600000
+18417e07
+c001c027
+c002c027
+c0034027
+c003c027
+20600000
+704bab01
+20600000
+704baa01
+20600000
+2040403c
+20404030
+58000000
+67e1cba0
+20600000
+44e7c019
+6fe0cbf3
+245a403c
+da200000
+2040403f
+20404045
+2040404b
+20404051
+2040406a
+20404085
+1a227e00
+20600000
+58030303
+67e1cba0
+20600000
+704ba800
+6848c913
+6fe0cba0
+204040a2
+67e0cba0
+20600000
+704ba801
+6848c915
+6fe0cba1
+204040a2
+67e0cba1
+20600000
+704ba802
+6848c914
+6fe0cba2
+204040a2
+67e0cba2
+20600000
+6fe0c916
+c17f8000
+704ba803
+6fe0cba3
+1fe22600
+6848c916
+6fe0c923
+c07fc066
+20405f7d
+2020c062
+6848c923
+20405f8d
+6848c916
+6fe0cba3
+204040a2
+67e0cba3
+20204083
+6848c923
+6fe0cba3
+204040a2
+20204060
+204040b0
+67e0cba3
+6848c916
+20203e71
+6fe0c917
+c17f8000
+704ba804
+6fe0cba4
+1fe22600
+6848c917
+6fe0c923
+c07fc07f
+20405f7d
+2020c07b
+6848c923
+20405f8d
+6848c917
+6fe0cba4
+204040a2
+67e0cba4
+20204083
+6848c923
+6fe0cba4
+204040a2
+20204079
+204040b0
+67e0cba4
+6848c917
+20203e71
+6848c923
+20203e71
+704b9d00
+6fe44bbd
+c40a8000
+6fe0c925
+c17f8000
+704ba807
+6848c925
+6fe0cba7
+204040a2
+67e0cba7
+1a227e00
+c283c095
+20404098
+6fe0cb9e
+67e0cb9f
+20600000
+704b9e01
+2040409b
+20204092
+704b9e00
+6fe0cb9f
+207a0000
+704b9d01
+20600000
+20405f7d
+6848cba8
+18420e00
+2020c0ae
+202040ac
+1fe3fe00
+1fe22400
+20405f7d
+7920a400
+1a417e07
+6848cba8
+18420e00
+c003c0ae
+c00040ac
+20600000
+f93fa200
+20600000
+f9202200
+20600000
+44e8401a
+1a627e00
+67e0cba9
+1fe3fe00
+1fe22400
+18422600
+20403e6f
+1a620400
+20405f7d
+7d20a400
+204040bc
+202040a6
+6848cba9
+18410401
+1a417e01
+98467c00
+2422c24a
+20600000
+44e8c01a
+20403e80
+20758000
+20404151
+204040d0
+c01840d7
+c018c132
+c02c413b
+204040cd
+20001af4
+202040c6
+6fe0c91b
+20405a14
+20203e85
+58000001
+20405a2f
+67e0c9c9
+58000000
+20405a2f
+67e0c9c8
+20600000
+6fe0c9c9
+c02d40e0
+c06c40e6
+c068c0f5
+c06940fe
+c0014105
+c02a4108
+c028412f
+202040c6
+70492e05
+2040414d
+20407c52
+da604a40
+20404146
+20203fa9
+58000016
+20405a2f
+1fe67cbd
+2422c0c2
+58000019
+20405a2f
+1fe67c55
+2422c0c2
+5800001b
+20405a2f
+1fe67c1d
+2422c0c2
+70492e06
+da604a84
+20204146
+70492e00
+da6049fa
+20404146
+da604a04
+20404146
+58000943
+20405a2e
+da604a1e
+20204146
+70492e02
+da6049f0
+20404146
+da604a04
+20404146
+da604a1e
+20204146
+70492e03
+da6049e6
+20204146
+20404144
+58009a5b
+20405a2e
+5800000d
+20405a2f
+1fe67c12
+2022c11c
+1fe67c0a
+2422c11f
+5800000e
+20405a2f
+1fe67ce5
+2422c0c6
+58000010
+20405a2f
+1fe67ca5
+2022c11c
+2040412c
+70492e08
+20600000
+70492e09
+da604a66
+20204146
+1fe67c10
+2422c0c6
+5800000e
+20405a2f
+1fe67cc5
+2422c0c6
+58000010
+20405a2f
+1fe67c38
+2422c0c6
+2040412c
+70492e0a
+20600000
+5800005b
+20405a2e
+20204142
+70492e07
+da604aaa
+20204146
+20404151
+6fe0c9c9
+c0384139
+c0004137
+202040c6
+70492e01
+20600000
+70492e04
+20600000
+20404151
+6fe0c9c9
+c02cc13f
+202040d7
+70492e0b
+da604a94
+20204146
+58000009
+20205a2e
+58005a09
+20205a2e
+efe10013
+d840ffff
+98467c00
+20628000
+20405a2e
+1a60a602
+20204146
+58008006
+20405a2e
+20002ee0
+20600000
+44e9401a
+20403e80
+2040414d
+da604ab6
+20404146
+20203fa9
+204040c2
+20403e80
+58000806
+20205a2e
+6fe0c4b1
+c1800000
+6fe0c92e
+c0004167
+c000c167
+c0044167
+c0014167
+c001c18b
+c0024167
+c00341b0
+c005c1a9
+20204167
+204041df
+78547c00
+6fe0c926
+c07fc16e
+6848c926
+20405f7d
+24608000
+58000000
+20405a2f
+c0984181
+58000002
+20405a2f
+c4038000
+204041f6
+6fe0c8d9
+204041ee
+67e148d9
+6fe0c8db
+204041ee
+67e148db
+6fe0c92f
+c0004183
+c000c185
+c0014187
+c001c189
+20600000
+c018c171
+202040cd
+204041c8
+202041fd
+204041d0
+202041fd
+204041cc
+202041fd
+204041d8
+202041fd
+204041df
+6fe0c926
+c07fc191
+6848c926
+20405f7d
+24608000
+58000000
+20405a2f
+c09840cd
+58000002
+20405a2f
+c4038000
+204041f6
+204041a7
+67e0c8df
+1ff1fe00
+204041f2
+67e0c8da
+6fe0c8df
+1fe17e0f
+204041f2
+67e0c8dc
+6fe0c92f
+c00041c8
+c000c1d0
+c00141cc
+c001c1d8
+20600000
+58000012
+20205a2f
+204041df
+6fe0c926
+c07fc1af
+6848c926
+20405f7d
+24608000
+20204194
+204041df
+78547c00
+58000002
+20405a2f
+c4038000
+58000008
+20405a2f
+203a4174
+58000000
+67e348d9
+20600000
+6fe0c91e
+67e0c92f
+6fe0c91d
+c17f8000
+6848c91d
+20403e71
+6848c91d
+20405f7d
+2040c1c5
+20203e6f
+6fe0c91f
+67e0c92f
+20600000
+6fe148d9
+1fe67e00
+67e148d9
+20207d92
+6fe148db
+1fe67e00
+67e148db
+20207d92
+6fe148db
+1fe67e00
+67e148db
+6fe148d9
+1fe67e00
+67e148d9
+204041da
+20207d92
+204041da
+20207d92
+6fe148db
+684948d9
+67e148d9
+604948db
+20600000
+6fe0c9cf
+205a41f6
+7049cf01
+20600000
+704abe01
+20401aa7
+202040c2
+6fe0c926
+c1ff8000
+6fe0cac0
+c1808000
+58000000
+67e0cac0
+67e248d9
+202041e5
+c4038000
+d840ff00
+9841fe00
+20600000
+c4018000
+d84000f0
+9841fe00
+20600000
+dfe00003
+20405a2f
+67e148d9
+dfe00004
+20405a2f
+67e148db
+20600000
+6848c91c
+20405f7d
+20608000
+5800000a
+20405a2f
+200003e8
+202041fd
+58008100
+20205a2e
+704ad3ff
+6fe0cbc5
+c280c20a
+c280420f
+70448734
+580f0f0f
+67e1c37d
+67e1c380
+20203cfa
+70448733
+d8c0497b
+204044e3
+20203cfa
+44e9c01a
+204044d8
+2040422f
+6fe0c93f
+c000c21a
+c001421c
+20600000
+6fe34941
+2020421d
+6fe3495e
+684b497b
+98467c00
+2022c46e
+20203cf2
+2040422f
+6fe0c603
+1fe0fe03
+1fe22200
+20404cdd
+6fe144e5
+e7e10005
+580004a1
+e7e10005
+6fe0c603
+1fe0fe01
+1fe27200
+d8c04603
+20207ca1
+704ad35a
+20600000
+6fe14793
+c283c23d
+c284b254
+c280323b
+20204491
+58000000
+67e14ac4
+6fe14793
+c284b254
+6fe14793
+c280323b
+20600000
+204045f7
+20207867
+6fe44bbd
+c40d8000
+24344247
+6fe0cabf
+1fe0fe01
+1fe17e0f
+67e0cabf
+247a0000
+704abf00
+78547c00
+20600000
+6fe0c926
+c1ff8000
+70417700
+704ac11e
+20600000
+44ea401a
+1a627e00
+c00a426b
+c000c315
+c00ac27a
+c0014319
+c002c33c
+c0084469
+c009433f
+c0033289
+c002434d
+c009c34d
+c00cb231
+c015c358
+c010c35e
+c0054365
+c017321f
+c018c285
+c014c287
+c0194289
+c01f4294
+c0204295
+c013c367
+c01cc771
+c01d474d
+c01e4768
+c02242ab
+20600000
+704ac000
+204041e5
+704ad801
+2040473c
+6fe0cad9
+243a4272
+704ada14
+6fe14485
+793ffe00
+67e14485
+704b8900
+6fe14b02
+67e14b04
+2040445f
+20204491
+704ad800
+58000006
+6fe44bbd
+c28dc27f
+58000007
+67e14375
+67e14377
+704b0600
+704abe00
+20401aa9
+20204319
+d8e00002
+20204290
+70095b12
+202077b0
+6fe0cad9
+c000c28c
+2020428e
+20404287
+704b8814
+d8e00001
+20204290
+6fe0cb87
+f9207e00
+67e0cb87
+20600000
+20203262
+6fe143de
+c1000000
+6fe08289
+1feb7e00
+1fe67c0c
+20610000
+58000009
+67e14375
+67e14377
+20404287
+704b0601
+20600000
+704b0600
+20600000
+6fe0cad9
+247a0000
+6fe0c43a
+1fe67e22
+24628000
+704b8800
+d8e00000
+20204290
+6fe082c1
+1fe67c0c
+2421429f
+6fe082c3
+6848cb9c
+98467c00
+202142b5
+6fe082c3
+67e0c177
+202042a1
+6fe0cb9c
+67e0c177
+202042a1
+704b8700
+20600000
+44eac01a
+20401b05
+247a0000
+6fe0cad3
+c07fc2c2
+6fe0cb87
+1fe17e03
+c1818000
+6fe0cabe
+205a41e3
+6fe44bbd
+c280c2ec
+c28042ec
+c282c2ec
+c28342ec
+20403e8b
+2040423f
+24740000
+2040424a
+204041e6
+20403f38
+6fe44bbd
+c30ac2d3
+6fe0cb9d
+c000c2d4
+202042ee
+6fe0cb9e
+203a42de
+6fe44bdf
+67e4095c
+6fe0cbde
+c001c2e0
+c00142e3
+704af808
+68494af9
+202042f3
+6fe44be8
+202042d7
+704af803
+68494afb
+202042f3
+704af802
+68494afd
+202042f3
+da200001
+68494aff
+20401e40
+6fe0cb01
+e7e08005
+20600000
+58000000
+67e3c8d8
+704af807
+6fe3c8d8
+67e3895c
+6849435a
+202042f3
+6fe0caf8
+1fe22200
+20401e40
+6848caf8
+18427200
+d8c0095c
+20207ca1
+704ad900
+6fe1cade
+67e1c3ef
+20404303
+58000005
+e7e08006
+d8c04ae4
+2040430a
+20207824
+da2043eb
+efe08011
+207a0000
+98c0a200
+efe08006
+c1008000
+20204304
+d8a043f6
+df200013
+20407ca1
+20201a4b
+5800000c
+67e14458
+6fe44bbd
+c38d8000
+5800000e
+67e14458
+20600000
+704ac000
+204041e5
+2040473c
+20204491
+704b9100
+704b9a00
+2040430e
+20404324
+6fe14483
+c283c32b
+c280320b
+c280c32f
+c2814332
+c281c332
+2020446e
+58000000
+67e448e1
+e7e20005
+7049cf00
+70445700
+70432900
+20600000
+204042b8
+6fe14483
+c280320b
+20203d30
+c282c332
+c281c332
+2020446e
+6fe14793
+c286446e
+2040320b
+2040402b
+204043f7
+6fe0cbb1
+c000bd2d
+6fe0cad6
+247a0000
+20203d30
+20600000
+704b9904
+20600000
+70445701
+20403268
+20403264
+58000000
+67e1478f
+67e0c791
+2040433d
+20203260
+704b9200
+6fe0c5fc
+2feffe00
+20608000
+704b9201
+20600000
+6fe0cad3
+c07fc213
+6fe14793
+c3860000
+c3830000
+c3858000
+6fe44bbd
+c3828000
+c299c46e
+c297c739
+20203d30
+6fe0cb91
+c1810000
+704b9100
+2040430e
+2040433d
+20203260
+6fe0cb91
+c1010000
+1fe0fe01
+67e0cb91
+70445812
+2040433d
+20203260
+20405a0e
+2020322f
+58000001
+67e30040
+7000e733
+202044a8
+5fffffff
+67e30040
+7000e733
+704ad3ff
+204044bd
+704940ff
+20204509
+44eb401a
+20770000
+6fe0c457
+207a0000
+20405211
+247a0000
+6fe0cad3
+c07fc221
+6fe0cabe
+205a41e3
+6fe44bbd
+c280c3a9
+c28043a9
+c282c3a9
+c28343a9
+20403e8b
+2040423f
+24740000
+2040424a
+204041e6
+20403f38
+6fe0cb92
+c000c398
+6fe0cb9a
+207a0000
+6fe44bbd
+c30ac38f
+6fe0cb9d
+c000c3ac
+da200009
+20404cdd
+6fe144e5
+e7e10005
+580002a1
+e7e10005
+6fe3c8d8
+e7e38005
+20600000
+6fe0c8d8
+67e0cb93
+6fe0c8d9
+e7e08005
+6fe0c8db
+e7e08005
+6fe148dd
+e7e10005
+da200007
+20404cdd
+6fe144e5
+e7e10005
+580002a1
+e7e10005
+6fe2cb93
+e7e28005
+20600000
+58000000
+67e3c8d8
+2020438f
+6fe0cb9e
+203a43ce
+6fe44bdf
+67e4095c
+6fe0cbde
+c001c3bc
+c00143c5
+da20000a
+20404cdd
+6fe144e5
+e7e10005
+580001a1
+e7e10005
+6fe4095c
+e7e40005
+20600000
+da200004
+20404cdd
+6fe144e5
+e7e10005
+580003a1
+e7e10005
+6fe1095c
+e7e10005
+20600000
+da200003
+20404cdd
+6fe144e5
+e7e10005
+580004a1
+e7e10005
+6fe0895c
+e7e08005
+20600000
+6fe44be8
+202043af
+44ebc01a
+20403db7
+20404880
+204022c2
+20402542
+204046e6
+204047e8
+20404819
+20403f97
+204043e7
+204043f7
+2040441a
+2040441f
+2040442d
+2040443a
+20404430
+20404445
+20404448
+2040444d
+20404450
+20403f3d
+20404462
+20204457
+6fe44bbd
+c29bc3ea
+20600000
+6fe0cbb0
+c1808000
+da604bad
+da4043ef
+202031cf
+6fe0c93f
+c1000000
+6fe44bbd
+c3830000
+d8e00006
+20404609
+204031b9
+20204469
+6fe0c93f
+c00043fd
+6fe44bbd
+c41a8000
+6848cbdc
+20204400
+6fe44bbd
+c4190000
+6848cbdd
+6048cbaf
+20404030
+1fe17e07
+6848cbaf
+98467c00
+2022c40c
+6fe0c796
+67e0cbb2
+6fe0cbb1
+c1000000
+704bb100
+20600000
+20404411
+6fe0cbb1
+c1008000
+704bb101
+20207867
+da404741
+da604bb2
+6fe0c93f
+c00031cf
+da4043ef
+204031cf
+6fe0cbb2
+c000c5fb
+20600000
+da604ad4
+da40441d
+202031d6
+20404491
+20203d30
+da604b89
+da404425
+204031d6
+6fe0cb89
+c000b248
+20600000
+6fe0cad3
+c07fc213
+6fe0cac2
+243a4627
+6fe44bbd
+c299c46e
+c297c739
+20203d30
+da604b88
+da4042a9
+202031cf
+6fe0cad8
+207a0000
+da604ada
+da404435
+202031cf
+6fe0cad9
+247a0000
+6fe0c39e
+c1800000
+2020201e
+da604b04
+da40443d
+202031cf
+6fe14b02
+67e14b04
+202042e6
+6fe0cb87
+c3810000
+20404287
+d8e00000
+20204290
+da604791
+da40433f
+202031cf
+da604b99
+da40444b
+202031cf
+704b9a01
+20600000
+da604ad6
+da403d30
+202031cf
+da604ac1
+da404453
+202031cf
+6fe0cb9c
+67e0c177
+704ac001
+20600000
+6fe0c931
+c3838000
+da604ac4
+da40445c
+202031d6
+6fe0c93f
+c00046fb
+20204236
+6fe14bd0
+67e14ac4
+20600000
+da6049c6
+da404465
+202031cf
+2040450c
+6fe0cad7
+243a45d9
+20600000
+280ffe26
+2040c70c
+20404236
+204042b8
+2020446e
+44ec401b
+2040422f
+6fe14793
+c285c47a
+6fe44bbd
+c304447a
+6849499e
+18408401
+6049499e
+6049437e
+180a7e00
+67e0c37d
+6fe1cadb
+67e1c380
+2040326a
+6fe14798
+67e14ad4
+7000bc06
+58000000
+67e14ac4
+67e0cb89
+67e0cad6
+67e0cbb9
+67e0cabe
+d8e00002
+20404609
+204045fd
+6fe0cbc5
+2feffe01
+2040c2fa
+6fe0cbc5
+2feffe00
+2040f7fa
+204048b8
+202047f6
+44ecc01b
+d8e00006
+2040460d
+704ad600
+6fe0cbc5
+2feffe01
+2040c49c
+6fe0cbc5
+2feffe00
+2040c49e
+2020483c
+704b8900
+2020782a
+58000000
+67e14ad4
+202077ff
+44ed401b
+6fe44bbd
+c4010000
+204047f0
+d8e00002
+2040460d
+204044aa
+204044bd
+20204509
+6fe080e7
+c01a44ae
+c019c4b1
+20600000
+67e0cb8a
+6fe30297
+202044b3
+67e0cb8a
+6fe30040
+67e34b8b
+6fe3cb8a
+d8c04940
+df200003
+e8438006
+98467c00
+2022c4d2
+18c08c16
+c20044b7
+20600000
+da204940
+6fe0c93f
+1fe0ffff
+1feffe1d
+9a20a200
+6fe080e7
+e7e08011
+c01a44c7
+c019c4ce
+20600000
+6fe30297
+e7e30005
+d8c04319
+20407c4c
+6fe3437d
+e7e30005
+20600000
+6fe30040
+e7e30005
+d8c041ce
+20207c4c
+18c08dfa
+18c20a00
+684b4b8b
+18408403
+e0430005
+20600000
+da204940
+6fe0c93f
+c1000000
+1fe0ffff
+1feffe1d
+9a20a200
+efe08011
+67e0c487
+c019c4e3
+c01a44e8
+20600000
+efe30006
+67e341e0
+d8a041ce
+20407c4c
+20205f50
+efe30006
+67e341e0
+d8a04319
+20407c4c
+efe30006
+67e3437d
+20600000
+6fe14997
+d840aa55
+98467c00
+2022c4fd
+60494997
+20404502
+6fe0cac6
+67e0c93f
+6fe0c920
+67e0c999
+6fe24895
+67e24899
+67e24843
+20600000
+204044d8
+6fe2499a
+67e24899
+67e24843
+20600000
+6fe3437d
+67e34957
+1fe0ff00
+67e34974
+1fe0ff00
+67e34991
+20600000
+6fe0c9c7
+67e0c9c6
+20600000
+44edc01b
+6fe44bbd
+c289c55a
+c289451e
+20600000
+20405bff
+20404525
+20404518
+20405c22
+2040452c
+204044ef
+20203e80
+580049bf
+d840493f
+98460400
+6fe1c9bf
+da20493f
+20600000
+20405bff
+20404525
+2040453a
+20404518
+2040453d
+2040452c
+20203e80
+700964ab
+204060ca
+20405c04
+da2049c2
+68488964
+2040452e
+202060ca
+700964b9
+20204526
+e0408011
+1ff10400
+e0408005
+1fec8400
+e0408005
+e7e08005
+1a227e00
+67f1008a
+58000000
+67f1008e
+70800602
+20205bbe
+6fe1c9bf
+67e1c4aa
+20205bda
+1fe22600
+1a227e00
+1fe0fffc
+1fe22400
+efe20012
+67e249c2
+1a627e00
+20405c11
+6fe249c2
+e7e20012
+20600000
+6fe44bbd
+c4090000
+2040452c
+20405a2a
+6848c4ba
+20405f89
+6848c4bf
+20203e6f
+20405c94
+6fe44bbd
+2feffe09
+2440dcae
+20404556
+202044ef
+d8400080
+da20493f
+da400000
+20205ccb
+d8400080
+da20493f
+da400000
+20205cbd
+d8400001
+da204999
+da40005a
+20205cbd
+d8400001
+da204999
+da40005a
+20205ccb
+44ee401b
+204048ba
+2040786c
+20403f42
+2040456e
+204045b9
+204045ef
+20203ea3
+6fe44bbd
+c294c573
+c29bc573
+20600000
+704ba603
+6fe0c924
+c17f8000
+da200000
+704ba806
+6848c924
+20404583
+67e0cba6
+6fe0c923
+c07fc580
+20404083
+1a227e00
+c28345a4
+20204599
+6848c924
+20403e71
+2020457d
+6fe44bbd
+c296c58f
+6fe0cba6
+1fe22600
+6fe0c923
+c07fc0b0
+6fe0cbac
+243a458c
+20204591
+704bb000
+704ba600
+20600000
+6fe0cba6
+202040a2
+20405f7d
+6848c923
+2020c58f
+6848c923
+20405f8d
+6848c924
+6fe0cba6
+202040a2
+6fe0cbb0
+c1000000
+704bb000
+6fe44bbd
+c39a0000
+6fe0cbad
+1fe67c14
+244145ce
+6fe0c796
+67e0cbad
+20600000
+204045b0
+20740000
+6fe0cbb0
+c1008000
+704bb001
+6fe44bbd
+c29a43ef
+6fe0cb89
+207a0000
+6fe0c90a
+67e0cb89
+20600000
+78547c00
+6fe44bbd
+c3968000
+6fe0cba0
+207a0000
+6fe0cba1
+207a0000
+78347c00
+20600000
+6fe44bbd
+c29545bd
+c295bdb7
+20600000
+6848c927
+20403e71
+6848c927
+20405f7d
+2020c5c6
+6fe0c93f
+c1008000
+70493f01
+20204231
+6fe44bbd
+c315c5ca
+6fe348f7
+67e348eb
+6fe0c93f
+c1000000
+70493f00
+2020470c
+44eec01b
+6fe0cbc6
+c1008000
+204045db
+6048c93f
+7041cd00
+204045f3
+20404231
+204045f5
+704ad701
+20204509
+204045f3
+20205c7b
+6848c93f
+18408401
+6fe44bbd
+c288c5e2
+18467c02
+244145e9
+20600000
+6fe0cbc6
+1fe0ffff
+98467c00
+244145e7
+20600000
+d8400000
+20600000
+d8400001
+20600000
+d8400001
+da20493f
+da400000
+20205cbd
+6fe44bbd
+c41a0000
+20404573
+20600000
+d8e00000
+20204609
+d8e00000
+2020460d
+d8e00003
+20204609
+d8e00003
+2020460d
+d8e00005
+20204609
+d8e00005
+2020460d
+d8e00014
+20204609
+d8e00018
+20204609
+d8e00016
+20204609
+d8e0000c
+20204609
+d8e0001c
+20204609
+6fe44bbd
+f9207e00
+67e44bbd
+20600000
+6fe44bbd
+f93ffe00
+67e44bbd
+20600000
+d8e00015
+20404609
+58000000
+67e44bde
+67e44be7
+6fe0c912
+1fe17ec0
+c020461e
+c0404620
+c0604625
+58070008
+67e44bdf
+20600000
+58040005
+2020461c
+58022303
+67e44bde
+58000003
+67e44be7
+20600000
+5800cd03
+20204621
+44ef401b
+6fe0cac2
+1fe0ffff
+67e0cac2
+6848c93f
+18467c01
+2442c5db
+6048c93f
+7041cd00
+204045eb
+204044bd
+20203cf2
+6fe44bbd
+c41c0000
+6fe248d9
+207a0000
+204046d6
+58000003
+204046cc
+205a46c8
+245a46ca
+58000002
+204046d1
+205a46c8
+6fe0c9d0
+c000c646
+6fe44bbd
+c41c0000
+df200005
+d8a049d0
+20207c68
+2040465a
+6fe149d1
+67e109f8
+6fe148d9
+67e109fa
+20404692
+6fe109f8
+67e149d1
+6fe109fa
+67e148d9
+6fe149d3
+67e109f8
+6fe148db
+67e109fa
+2040469a
+6fe109f8
+67e149d3
+6fe109fa
+67e148db
+20600000
+6fe44bbd
+c41c8000
+6fe149d1
+67e109ff
+2040466d
+67e149d1
+6fe148d9
+67e109ff
+2040467b
+67e148d9
+6fe149d3
+67e109ff
+2040466d
+67e149d3
+6fe148db
+67e109ff
+2040467b
+67e148db
+20600000
+6fe08a00
+203a4670
+20204675
+6fe089ff
+20404688
+67e089ff
+6fe109ff
+20600000
+6fe089ff
+204046c4
+20404688
+205a7d9c
+204046c0
+20204673
+6fe08a00
+203a467e
+20204682
+6fe089ff
+2040468d
+67e089ff
+20204673
+6fe089ff
+204046c4
+2040468d
+205a7d9c
+204046c0
+20204673
+1feffe04
+1fe6fc05
+20407d31
+1807fe00
+20600000
+1feffe0c
+1fe6fc0a
+20407d31
+1807fe00
+20600000
+6fe109f8
+684909fa
+9840fe00
+6848c9d5
+9840fe00
+1fe10401
+6048c9d5
+202046a2
+6fe109f8
+684909fa
+9840fe00
+6848c9d6
+9840fe00
+1fe10401
+6048c9d6
+202046a2
+67e189fc
+2feffe10
+2020c6ac
+6fe089fd
+c07fc6b3
+6fe089fc
+1fe37e00
+67e109f8
+67e109fa
+20600000
+6fe089fd
+c00046b0
+6fe189fc
+202046a8
+7009fe00
+6fe089fc
+202046a8
+6fe089fc
+204046be
+67e089f8
+67e089fa
+203a46bc
+580000ff
+67e089f9
+67e089fb
+20600000
+58000000
+202046b9
+204046c4
+1fe37e00
+204046c5
+1fe67e00
+67e089ff
+20600000
+1fe67e00
+67e08970
+6fe08970
+20600000
+7049d000
+20600000
+7049d001
+20600000
+9a267c00
+24217d9c
+9a467c00
+24217d9c
+20207d9e
+9a267c00
+24610000
+9a467c00
+24610000
+20207d9e
+6fe148d9
+204046dd
+1fe22200
+6fe148db
+204046dd
+1fe22400
+20600000
+67e109fa
+6fe089fb
+c07fc6e3
+6fe089fa
+1fe17eff
+20600000
+6fe109fa
+1fe67e00
+202046e1
+da6048cc
+da4046e9
+202031cf
+6fe248c0
+67e24863
+704ac001
+20600000
+6fe0cbf4
+c00046f5
+c000c6f7
+c00146f2
+c001c6f9
+580ea600
+67e248c0
+20600000
+5805e740
+202046f3
+580927c0
+202046f3
+58124f80
+202046f3
+7048ad00
+2040263c
+5fffffff
+67e24863
+58000000
+67e3c8d8
+704bf301
+20404157
+20403d40
+2020269e
+6fe0cbf3
+245a40c5
+704bf300
+2020263b
+6fe0cbf3
+243a2616
+20202612
+793f8026
+7048a900
+d8e00001
+2020460d
+6fe44bbd
+c308c71d
+20403cfe
+20344720
+6fe44bbd
+c2984726
+c318c726
+2040402b
+1fe17e07
+6848cbdd
+98467c00
+2022c741
+20204726
+6fe0cac2
+243a4627
+20600000
+6fe1488d
+67e1488f
+70489303
+20202545
+20403cfe
+20344730
+70493f00
+6fe14bcc
+67e1488f
+70489302
+20202545
+204047f6
+6fe14889
+67e1488f
+70489304
+20202545
+6fe0c93f
+c0004720
+2040422f
+20204734
+2040470c
+20404838
+70493f01
+204044d8
+20203cf2
+20403cfe
+20343d30
+2020446e
+20403cfe
+20740000
+6fe44bbd
+c297c509
+20600000
+d8e00001
+20404609
+58000000
+67e1488f
+20404491
+204048b8
+204047f6
+70483d01
+6fe44bbd
+c30aa2c5
+70483d02
+202022c5
+6fe0c8ad
+243a46fb
+6fe0c893
+c001475a
+c002475e
+c001c763
+2040483c
+2040470c
+6fe0cac2
+243a4627
+6fe0c93f
+c0003d30
+20600000
+6fe44bbd
+c297c72b
+c298472b
+20204720
+6fe44bbd
+c317c753
+6fe0cbc6
+c000c753
+20204734
+6fe44bbd
+c317c753
+c289c753
+c2894753
+2020472c
+204041e5
+704ac000
+7048a900
+70489300
+6fe24899
+6fe24895
+98467c00
+20628000
+2020473c
+d8e00001
+2040460d
+204047f0
+58000000
+67e1488b
+67e1488f
+67e0c8a9
+67e0c9cf
+67e0c893
+204041e5
+204041f6
+6fe24843
+67e24899
+67e2499a
+20204509
+c6930000
+20403e8b
+24740000
+6fe44bbd
+c30ac787
+6fe0cb9d
+243a479e
+204041e6
+6fe0c83d
+c280c796
+6848c7ce
+6fe0c8d8
+9841fe00
+67e0c8d8
+6848c7d3
+6fe0c8dd
+9840fe00
+67e0c8dd
+6848c7d4
+6fe0c8de
+9840fe00
+67e0c8de
+70483d01
+da200007
+da4048d8
+6fe44bbd
+c28c26c8
+6fe148dd
+207a0000
+202026c8
+70483d02
+da200009
+6fe0cb9e
+243a47a4
+da404be7
+20600000
+da404bde
+20600000
+58000000
+67e1cbb6
+20600000
+6fe44bbd
+c40b0000
+6fe0cac0
+207a0000
+6fe0c8af
+207a0000
+6fe0cbb3
+1fe0fe01
+1fe17e03
+67e0cbb3
+247a0000
+704bb400
+6fe0cbb4
+1fe0fe01
+67e0cbb4
+1fe67c08
+242147c0
+20402586
+20402645
+242c47c6
+2437c7c6
+204047d8
+204047cf
+20402583
+6fe0cbb5
+1fe0fe01
+67e0cbb5
+c00847c8
+20600000
+20402262
+202047b5
+704bb500
+6fe0cbb6
+c3800000
+79207e00
+67e0cbb6
+6fe14bce
+202046fb
+6fe0c8af
+203a47a6
+704bb500
+6fe0cbb6
+c4000000
+793ffe00
+67e0cbb6
+2040445f
+202040c5
+2040265c
+6fe0c7ac
+2fe1f008
+24608000
+6fe0c7ad
+c07fc6fb
+20600000
+6fe0c93f
+c0801449
+6fe0c87e
+207a0000
+70804202
+6ff08138
+1fe17efc
+67f0804c
+2020152d
+6fe44bbd
+c4100000
+6fe0cbb9
+207a0000
+1fe0ffff
+67e0cbb9
+203a483c
+2020484a
+6fe44bbd
+c4100000
+204048b8
+6fe0cbd2
+67e0cbb9
+20600000
+704bb900
+6fe14bd6
+67e14937
+67e14939
+6fe0c93f
+c00047ff
+c000c801
+c0014803
+20600000
+6fe0c92a
+20204804
+6fe0c92b
+20204804
+6fe0c92c
+67e08964
+2040483c
+6fe08964
+67e0c936
+da200000
+70493401
+2020773c
+6fe0c92d
+c17f8000
+6fe14ad4
+247a0000
+6fe1488b
+247a0000
+6fe1488f
+247a0000
+6fe0cbb9
+247a0000
+6fe0cbd3
+203a481c
+67e0cbba
+20600000
+da604bba
+da40481c
+202031cf
+6fe0c92d
+67e0c936
+6fe14bd4
+67e14937
+67e14939
+da200000
+6848c999
+18408401
+6fe44bbd
+c30e4829
+18408401
+18467c04
+2441482c
+6048c935
+70493401
+20600000
+d8400001
+20600000
+78547c00
+6fe0c92d
+6848c936
+98467c00
+24628000
+6fe0c935
+207a0000
+70490100
+78347c00
+20600000
+20404848
+20404841
+20404844
+20204846
+6fe0c93f
+c0004841
+c000c844
+c0014846
+20600000
+704bbc00
+6848c92a
+20204855
+6848c92b
+20204855
+6848c92c
+20204855
+6848c92d
+20204855
+6fe0c93f
+c000484f
+c000c851
+c0014853
+20600000
+6848c92a
+20204859
+6848c92b
+20204859
+6848c92c
+20204859
+44efc01b
+6048c936
+da200000
+20207737
+44f0401c
+6048c936
+da200000
+20207732
+6fe0c92a
+98467c00
+2042c87c
+6fe44bbd
+c3125f89
+2040486d
+20404871
+20404875
+6fe0cbbb
+203a5f89
+704bbb00
+20205fa3
+6fe0c92a
+98467c00
+2042c87e
+20205f8d
+6fe44bbd
+c4130000
+6fe0c92c
+20204878
+6fe44bbd
+c4128000
+6fe0c92d
+20204878
+6fe44bbd
+c4138000
+6fe0c929
+98467c00
+24628000
+704bbb01
+20600000
+704bbc00
+20600000
+704bbc01
+20600000
+6fe14ad4
+247a0000
+6fe1488b
+247a0000
+6fe1488f
+247a0000
+6fe0cbb9
+247a0000
+2040482e
+20740000
+6fe44bbd
+c4108000
+c4020000
+c291c8a6
+6fe0c900
+1fe0fe01
+67e0c900
+1fe67c14
+24414898
+c001489a
+c00248a0
+c003489a
+c00448a0
+20600000
+70490001
+202048a0
+6fe44bbd
+c291484a
+6fe0c929
+c17f8000
+6848c929
+20204859
+6fe44bbd
+c291483c
+6fe0c929
+c17f8000
+6848c929
+20204855
+6fe14bd0
+68494ac4
+98460400
+6fe14bda
+98467c00
+242148b8
+6fe0c901
+247a0000
+70490101
+202048b0
+6fe14bd8
+67e14937
+67e14939
+6fe44bbd
+c29147fa
+6fe0c929
+c17f8000
+20204804
+70490100
+202048a0
+6fe44bbd
+c4108000
+c4020000
+c291c8cc
+6fe0c900
+1fe67c0a
+202148c8
+6fe0c93f
+c00048c5
+70409901
+20600000
+6fe44bbd
+c38c0000
+202026b7
+6fe0c93f
+c00026c8
+70409900
+20600000
+6fe0c901
+243a48c8
+202048c1
+20401291
+6fe08018
+202025cc
+204048cf
+202026d5
+204048cf
+6fe08030
+2feffe00
+24608000
+6fe08047
+2feffe03
+2040a70b
+2440a707
+202026d5
+6fe0cb87
+2fe00603
+2420fd9c
+20403268
+20207d9e
+20405214
+247a0000
+70008801
+70008900
+20207d9e
+6fe14793
+c284c8dd
+202048e2
+20758000
+20406065
+5800499e
+67e148a3
+5800492d
+67e148a7
+58004928
+67e14460
+58004968
+67e14468
+5800496a
+67e1446a
+58004983
+67e14472
+5800491d
+67e14999
+5800490d
+67e1499d
+44f0c01c
+20405cab
+20404924
+20407870
+6fe0c969
+67e0c8d8
+c000490c
+6fe0c96a
+67e0c797
+2040491d
+204076f1
+204076fb
+70499501
+6fe14793
+c3860000
+2020325c
+70499502
+2040491d
+da200000
+2040773c
+20404919
+20405ccb
+204026cc
+203422c5
+6fe24843
+67e24899
+6fe1488d
+67e1488f
+20202545
+d8400004
+da204843
+da400000
+20600000
+44f1401c
+6fe0c967
+c0ffc922
+6848c944
+20205f8d
+67e0c944
+20204920
+204025f1
+6fe14991
+67e14993
+20600000
+2040492d
+6fe0c93a
+79207e07
+d840003f
+20205fb2
+20405fc2
+2020608a
+20406096
+20404940
+20404933
+2020494e
+6fe0c9a0
+c1808000
+6fe249a4
+203a493a
+7049aa00
+78347c00
+20207841
+6fe0c9aa
+c17f8000
+1fe0fe01
+67e0c9aa
+78547c00
+2020783f
+684944cd
+18417e01
+18430400
+67e0c9a4
+18417e01
+18430400
+67e0c9a5
+18417e01
+18430400
+67e0c9a6
+18417e01
+18430400
+67e0c9a7
+20600000
+44f1c01c
+2040495e
+20404963
+20404954
+24740000
+2020499a
+6fe0c9a0
+c1808000
+6fe0c9aa
+207a0000
+1fe67c01
+24610000
+6fe1488d
+67e1488f
+78347c00
+20600000
+6fe0c9a4
+243a498e
+6fe0c9a5
+243a4990
+20204996
+6fe0c9a6
+243a4992
+6fe0c9a7
+243a4994
+20204998
+20404978
+2020492f
+1a627e00
+c016b284
+c008326c
+c01cc972
+c01e4974
+c01d4971
+20600000
+20202583
+20404919
+20405cbd
+7048a900
+7049a101
+7049a201
+20600000
+6fe0c9a1
+c1000000
+6fe0c9a0
+c1008000
+7049a001
+da200000
+20207737
+da200000
+20407737
+2040491d
+2020325c
+204031dd
+204022c2
+20402542
+20204987
+6fe0c96b
+207a0000
+6fe0c4cd
+243a4925
+da604993
+da40497f
+202031d6
+70497201
+20600000
+70497202
+20600000
+70497401
+20600000
+70497402
+20600000
+70497200
+20600000
+70497400
+20600000
+da20496c
+20207875
+da204979
+20207875
+6fe0c9a2
+c000c9a8
+da204982
+2040788c
+243449ad
+d8c04982
+efe08006
+1fe22200
+da404983
+20600000
+7049a200
+78347c00
+da200001
+da4049a3
+20600000
+6fe0c985
+c00249b1
+c002c9b1
+20600000
+6fe0c988
+243a49b8
+6fe0c98a
+243a49b8
+6fe0c98c
+243a49b8
+20600000
+78347c00
+202049a3
+70479614
+70478a01
+5800060f
+67e148d9
+580048d9
+67e1448f
+70409901
+70415b06
+70417802
+7048d800
+58004938
+67e14492
+70449101
+704939ff
+58000296
+67e1493b
+5800073a
+67e1493d
+58004995
+67e144cf
+58000c0c
+67e14997
+5800494c
+67e144cb
+70496900
+704967ff
+70496aff
+70496500
+70496600
+70496800
+70496b01
+58004e55
+67e14958
+67e1495a
+58000007
+67e1495e
+7044a502
+38035a0c
+3804011a
+38080060
+380c0028
+67e4c96c
+3802000a
+38040002
+e7e20005
+38035a08
+3804019a
+38080000
+380c0000
+67e4c979
+58000064
+67e14991
+7041eb00
+70483d01
+7048b006
+70486201
+70489400
+204022b1
+204025fd
+20402296
+204022bc
+58000708
+67e14889
+58000050
+67e1488d
+580a7700
+67e1c8b8
+58604800
+67e1c863
+20600000
+20406d29
+20758000
+58004a85
+67e14460
+58004a83
+67e14462
+5800325c
+67e1446c
+58004a81
+67e14468
+58004a30
+67e1446a
+58004a2a
+67e1445e
+58004af2
+67e1446e
+58004a67
+67e14472
+58004acd
+67e147ef
+58004b09
+67e147ea
+58004b0a
+67e147ec
+20404a25
+20401a36
+20404af5
+20406065
+20407870
+20407726
+44f2401c
+20404b02
+6fe0c7e5
+c0004a27
+6fe0c7e6
+67e0c797
+20204b11
+7045fe07
+20600000
+704797ff
+7047e701
+20204aa0
+6fe0c7e7
+c0013222
+2040521e
+6fe0c4ed
+243a3222
+20203224
+1a627e00
+c00a4a39
+c00aca3d
+c01fca40
+c0204a46
+c0084a4c
+c0164a4d
+c016ca58
+20600000
+20404a87
+58000000
+67e147bf
+2020325a
+20407870
+7047b800
+20204aa0
+20407870
+7047b801
+6fe447c9
+67e44375
+20403268
+20201ee5
+6fe143de
+c1000000
+6fe447d1
+207a0000
+67e44375
+20201ee5
+20204b22
+6fe0c7e5
+c1000000
+6fe0c7e7
+c1808000
+20404a53
+20203258
+7049e701
+df20000b
+d8a049e8
+d8c049d1
+20207ca1
+6fe0c7e5
+c1000000
+6fe0c7e7
+c000ca5d
+20204b1e
+6fe0c9e7
+c1808000
+7049e700
+6fe14793
+c280325a
+c284b25a
+df20000b
+d8c049e8
+d8a049d1
+20207ca1
+20404a6a
+20404a71
+20204a7c
+da6047e3
+da404a6d
+202031d6
+7047e702
+2040325a
+20404ab1
+20204b0e
+da6049f4
+da404a74
+202031cf
+6fe14793
+c284cb0e
+c2804b0e
+6fe0c9d1
+c000cb0e
+c0024b0e
+c002cb0e
+2020325c
+6fe0c7e7
+c1808000
+da6047bf
+da404a8e
+202031d6
+20404ade
+20206096
+20405fc2
+2020608a
+20405fc2
+20206d2d
+6fe0c7ab
+c2804a8a
+20600000
+6fe147df
+67e147e1
+67e147e3
+2020324a
+6fe0c7e7
+c1808000
+6fe0c7ab
+c2804a93
+20600000
+6fe14793
+c3848000
+6fe147dd
+67e147e1
+67e147e3
+6fe147bb
+20404b33
+20403256
+6fe247c5
+67e249d4
+6fe14793
+c3858000
+2020324c
+6fe0c7e7
+c1808000
+6fe0c7ab
+c2804aa5
+20600000
+6fe147bf
+684947bd
+604947bf
+247a0000
+6fe147b9
+20404b33
+20403256
+6fe247c1
+67e249d4
+6fe14793
+c3858000
+2020324c
+6fe14793
+c284b254
+20204a87
+20407d94
+6fe14793
+c284cab8
+20600000
+6fe0c7b8
+207a0000
+20207d92
+20407d94
+6fe14793
+c3800000
+c3848000
+20207d92
+6fe0c7ab
+c2804ac3
+20600000
+20204aa0
+78567c00
+6fe147e1
+67e147e3
+20404abb
+20344ac0
+20404ab4
+24740000
+78367c00
+20600000
+20404ac4
+24760000
+1a227e00
+203a4ad4
+20403258
+da6047f9
+20204ad6
+2040325a
+da604821
+dfe00005
+98effe00
+9a60a600
+efe08013
+207a0000
+20404aea
+1a60a601
+20204ad9
+6fe14793
+c284cae1
+20600000
+20401b05
+247a0000
+20404aed
+24740000
+1fe0ffff
+1feffe05
+d8404849
+98408c00
+20204b37
+67e0895c
+da20095c
+20207875
+da20095c
+2040788c
+24740000
+6fe0895c
+20600000
+6fe1443a
+c00c4a40
+20600000
+58000002
+67e0c9f3
+58200008
+67e247c9
+592c0005
+e7e20005
+70438317
+5800001b
+67e143d4
+20401aa3
+20401abf
+20401acc
+20201aab
+df200028
+d8a04849
+d8c09e12
+20207c94
+df200139
+d8c09af2
+20207c94
+20204aa0
+da200000
+da6049dc
+20407742
+20404ab1
+6fe0c9f3
+67e0c9f4
+20600000
+58000000
+20404b19
+70478a01
+204076f1
+204076fb
+6fe14793
+c3860000
+2020325c
+684944cf
+e7e08002
+efe08005
+67e0c796
+20600000
+6fe144cf
+efe0803f
+c1800000
+2020325c
+684944cf
+efe08002
+c000cb2d
+58000001
+684944cf
+e7e08002
+18408c02
+efe08006
+e7e08016
+efe10006
+20207d47
+58000002
+20404b19
+18408c05
+efe10006
+203a325c
+20207d47
+67e14159
+1fe0fffc
+67e1442b
+20600000
+efe08006
+1fe22200
+e8410006
+20407c29
+20401e40
+1a227200
+20407c23
+20207ca1
+6fe149f5
+67e147f1
+6fe0c9f7
+67e0c9d3
+67e0c9de
+6fe0c9f8
+67e0c7e5
+6fe0c9f9
+67e0c7e6
+7047ab01
+58000030
+67e147b6
+58000000
+67e147ac
+58000002
+67e147f9
+67e147fe
+58000006
+67e14821
+67e14826
+58000007
+67e14803
+58000008
+67e1482b
+580047e7
+67e144cf
+58201400
+67e1c7e7
+70409901
+58000100
+67e14159
+70415b08
+70417705
+70417802
+58000030
+67e14458
+58000001
+e7e10005
+7046480a
+58000096
+67e147c1
+e7e10005
+58000296
+67e147c5
+e7e10005
+38000010
+38048008
+380ac000
+380c0004
+67e447d1
+70449101
+580049d1
+67e14492
+58000000
+67e149d1
+380001a0
+38040068
+38080000
+380c0000
+67e449d4
+58000301
+67e149dc
+380001a0
+380400e8
+38080000
+380c0000
+67e449df
+5800000e
+67e147b9
+58000140
+67e147bb
+67e1442b
+58000050
+67e147bd
+70443507
+70442a00
+380000fb
+3806c212
+3808800f
+380c0021
+67e4444f
+38000bb8
+380402ee
+67e247dd
+58004902
+67e1448f
+58002001
+67e14902
+7043ea1f
+38010102
+380480c1
+38098120
+380c640c
+67e4c3eb
+380003c1
+e7e10005
+70440a1f
+3802090d
+38074c15
+380a8532
+380dd1d5
+67e4c40b
+38026574
+3804001c
+e7e18005
+580047ee
+67e144cb
+7047ee02
+70448217
+58004927
+67e1448c
+70448e05
+58002540
+67e140b2
+58040003
+67e1c76c
+70477303
+70476b01
+70479501
+70415f00
+3803ffff
+3806fe23
+380999d9
+380c020d
+67e440a0
+58009af2
+67e14399
+7040d801
+38010306
+38040004
+38082010
+380c9040
+67e4c669
+38020011
+38040044
+e7e28005
+70467f00
+58009c2b
+67e14667
+20600000
+6fe0c4db
+d840003e
+20205fb2
+6fe0c4db
+d840003f
+20205fb2
+20404bce
+20404bcb
+20204bce
+20404bd2
+20204bcb
+20204bd2
+20404bd2
+20204bd4
+20204bcb
+6fe0c4dc
+20204bcc
+6fe0c4dc
+20204bcf
+20404bda
+20404bdc
+20204bda
+20800000
+20406148
+20404bec
+20404bee
+20404c02
+20404c1e
+20404c22
+7009fc01
+7009f904
+20404c2d
+20204bea
+70804204
+20600000
+20404bf2
+20404bf6
+20404bfa
+20204bfe
+6fe0c7ab
+247a0000
+7047ab0d
+20600000
+6fe0c7ac
+247a0000
+7047ac0e
+20600000
+6fe0c7ad
+247a0000
+7047ad09
+20600000
+6fe0c7ae
+247a0000
+7047ae0a
+20600000
+58001800
+67e1095c
+58001bff
+e7e10005
+58001c00
+e7e10005
+58001fff
+e7e10005
+6fe4095c
+20405dd6
+20405dfd
+d841c200
+20405dee
+6fe0c7ab
+d8400008
+20405fb3
+6fe0c7ac
+d8400049
+20405fb3
+6fe0c7ad
+d840000a
+20405fb3
+6fe0c7ae
+d840000b
+20405fb3
+d8400081
+60588060
+20207d44
+6fe0c7af
+247a0000
+7047af0c
+20600000
+6fe0c7af
+d8400010
+20405fb3
+da200040
+204060c4
+da200000
+da400000
+58000000
+204060e9
+d8e00000
+2020612f
+6ff10112
+1fe0a3fc
+24610000
+20405e1d
+efe08003
+c000cc35
+20407c52
+20205e2d
+efe10003
+67e109fd
+d84003ff
+98410400
+604909f6
+1feb7e00
+1fecfe00
+67e089f8
+efe08003
+1fe0ffff
+9a267c00
+20610000
+20404c43
+20204c9e
+6fe089f8
+c01fcc46
+20204c8a
+44f2c01c
+6fe089f6
+c0004c89
+c000cc51
+c0014c56
+c001cc64
+c0024c6e
+c002cc89
+c0084c7f
+c00a4c85
+20204c89
+7009ff00
+6ff10000
+67e10a00
+df200003
+20204c91
+efe10003
+67f10052
+20600000
+efe08003
+1fe20400
+67f08024
+efe08003
+98408400
+79207e07
+67f08023
+efe08003
+98408400
+1fe27200
+20600000
+20404c59
+efe08003
+67f08025
+98408400
+c2004c65
+184104ff
+efe08003
+98467c00
+2422cc7d
+20204c89
+df200020
+d8a04000
+d8400000
+efe08003
+e7e08005
+98408400
+c2004c71
+184104ff
+efe08003
+98467c00
+2422cc7d
+70802300
+20404c89
+20407d49
+20200801
+70802300
+20204c8a
+efe08003
+1fe27200
+efe10003
+1fe20a00
+20405e73
+20204c89
+6ff08060
+79207e04
+67f08060
+20204c89
+20204c8e
+7009ff01
+20204c8f
+7009ff0c
+20204c8f
+7009ff00
+df200001
+20204c91
+7009fa0e
+1f20fe03
+67e089fb
+20404c9a
+6fe189fc
+e7e18003
+d8c009ff
+20405e59
+20205e39
+20405e35
+6fe189f9
+e7e18003
+20600000
+20405e1d
+18608603
+efe08003
+98608600
+20205e29
+7041de00
+20600000
+6fe341e0
+684b0040
+98467c00
+20600000
+44f3401c
+6fe10315
+1fe20c00
+efe08006
+67e0c5fc
+1fe1040f
+1ff1fe00
+c004ccca
+c003ccca
+c0054cd9
+c002ccc2
+c000ccb6
+20600000
+18427e00
+c002ccba
+c001ccc1
+20600000
+70095b27
+204077a7
+6fe0c09a
+c1840000
+18427e00
+c002c367
+20600000
+20600000
+20404cd9
+da200001
+20404cdd
+6fe144e3
+e7e10005
+58000000
+e7e08005
+20600000
+da200001
+20404cdd
+6fe144e3
+e7e10005
+58000000
+e7e08005
+70095001
+6fe0c4e9
+79207e06
+67e0c4e9
+70095b12
+204077a7
+6fe0c09a
+c1840000
+20204347
+efe08006
+c000ccdc
+20600000
+20600000
+204051ba
+1a220400
+60488950
+1fe20a00
+1a227e00
+e7e10005
+20600000
+2035cce9
+580045fd
+d8a044dd
+98a67200
+20407c68
+44f3c01c
+58000424
+d8a003e4
+98a67200
+20407c68
+5800037a
+d8a0030e
+98a67200
+20407c68
+20205288
+44f4401d
+18c20400
+18420c00
+efe10006
+67e10317
+efe10006
+67e10319
+18c27e00
+67e10315
+6fe0c792
+c0004cff
+2020506a
+6fe10317
+203a4d77
+44f4c01d
+6fe08319
+c000cd15
+c0284d57
+c028cd70
+c0294d6e
+c029cd6e
+20204d77
+44f5401d
+2040521e
+6fe0c4ed
+c0007d9e
+c000fd9e
+c0017d9e
+c001fd9e
+c040fd9e
+c0607d9e
+c0407d9e
+c0207d9e
+20600000
+20404d09
+247a0000
+20405228
+20404d7c
+68490320
+203a4d76
+20405231
+6fe10320
+e7e10005
+18007e01
+e7e10005
+20204d77
+6fe0c5fb
+207a0000
+1fe22200
+44f5c01d
+6fe20386
+d8400100
+98408400
+1c427e00
+98467c00
+24610000
+7045fb00
+1a227e00
+c0284d2f
+2020137a
+d9000000
+20405228
+20404df5
+20405233
+20407c2c
+20404e28
+20405231
+5800000c
+e7e10005
+18007e01
+e7e10005
+20204d77
+44f6401d
+6fe10326
+1fe0fe04
+20407df4
+1fe08401
+d8c044f7
+efe18006
+207a0000
+67e1898e
+6fe0898e
+1fe22200
+20404d4a
+1a427e00
+67e0c4f7
+20600000
+d8e00000
+da400000
+18e67c07
+24610000
+aa2fffff
+2020cd51
+20204d55
+18427e00
+203a4d55
+f9202400
+184085ff
+18e08e01
+20204d4c
+20405214
+247a0000
+20404d09
+247a0000
+20405235
+20406d29
+204065d1
+20406d2d
+20404d3b
+20204d67
+20405214
+247a0000
+20405235
+20406d29
+204065d1
+20406d2d
+2040523e
+6fe10326
+203a4d76
+e7e10005
+6fe144df
+e7e10005
+20204d77
+20404ca9
+20204d77
+44f6c01d
+70033500
+2040624b
+6fe08335
+c1008000
+20204d77
+20405204
+58000000
+67e10317
+67e10319
+70031b01
+20600000
+44f7401d
+20405233
+18002400
+6fe10317
+1fe22600
+6fe10315
+98000c00
+20404d8b
+1a627e00
+1a60a7fc
+1fe0fffc
+243a4d83
+1a427e00
+67e10320
+20600000
+44f7c01d
+efe08006
+c000cdc4
+c0014dcc
+c001ce50
+c0024e80
+c002cf1d
+c0034f46
+c003cf96
+c0044fcb
+c004cfdb
+c0054d9a
+c005cfdc
+20404fdd
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+5800000b
+e7e08005
+18e27e00
+e7e08005
+efe10006
+c0014da8
+c001cdae
+20600000
+58020008
+e7e30005
+58000280
+e7e20005
+18007e0c
+20204db3
+5803000c
+e7e30005
+58000006
+e7e40005
+18007e10
+9a40a400
+20204d99
+efe08006
+1fe20e00
+efe10006
+1fe22200
+efe10006
+67e10964
+1a627e00
+9a262600
+20405233
+5800000b
+e7e08005
+18e27e00
+e7e08005
+6fe10964
+20204da5
+efe08006
+1fe20e00
+efe10006
+1fe22200
+98c08c00
+1a627e00
+9a262600
+20204d99
+20407c2c
+20407c31
+d9000000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+efe10006
+1fe20400
+efe10006
+1fe21600
+44f8401e
+18427e00
+c000cddf
+c001ce01
+c008ce0d
+c009ce18
+20404fdd
+20204e4f
+20407c2c
+d8400050
+6fe144df
+243a4e49
+19627e00
+67e144df
+1c427e00
+67e20386
+20404de9
+20204e24
+60490384
+19627e00
+67e1037a
+1a227e00
+67e1037c
+1a427e00
+67e1037e
+1a627e00
+67e10380
+18e27e00
+67e10382
+20600000
+68490384
+6fe1037a
+1fe21600
+6fe1037c
+1fe22200
+6fe1037e
+1fe22400
+6fe10380
+1fe22600
+6fe10382
+1fe20e00
+20600000
+20407c2c
+58000051
+d8400051
+6fe144e1
+243a4e49
+19627e00
+67e144e1
+6fe0c4e8
+79207e00
+79207e01
+67e0c4e8
+20204e2c
+20407c2c
+d8400052
+6fe144e3
+243a4e49
+19627e00
+67e144e3
+6fe0c4e9
+79207e00
+79207e01
+67e0c4e9
+20204e2c
+20407c2c
+1b427e00
+d8400053
+6fe144e5
+243a4e49
+19627e00
+67e144e5
+6fe0c4ea
+79207e00
+79207e01
+67e0c4ea
+20204e2c
+58000001
+67e1032e
+7045fb50
+20204e2e
+6fe0c4e7
+79207e00
+79207e01
+67e0c4e7
+58000000
+67e1032e
+44f8c01e
+20407c31
+58000003
+e7e08005
+18e27e00
+e7e08005
+58000008
+e7e10005
+18427e00
+e7e10005
+19627e00
+e7e10005
+6fe1032e
+c000ce44
+290c0000
+2020ce3f
+58000004
+e7e10005
+18007e00
+e7e10005
+5800000c
+20204e4b
+e7e10005
+18007e02
+e7e10005
+5800000c
+20204e4b
+79201000
+20204e2c
+9a40a400
+1a627e00
+9a262600
+20204e4f
+20204d99
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe21600
+efe10006
+1fe20400
+44f9401e
+58000050
+98467c00
+2022ce68
+58000051
+98467c00
+2022ce6e
+58000052
+98467c00
+2022ce7a
+58000053
+98467c00
+2022ce74
+20600000
+19627e00
+67e144df
+6fe0c4e7
+79207e01
+67e0c4e7
+20204d99
+19627e00
+67e144e1
+6fe0c4e8
+79207e01
+67e0c4e8
+20600000
+19627e00
+67e144e3
+6fe0c4ea
+79207e01
+67e0c4ea
+20600000
+19627e00
+67e144e5
+6fe0c4e9
+79207e01
+67e0c4e9
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe20400
+18422200
+44f9c01e
+58000050
+98467c00
+2022ce97
+58000051
+98467c00
+2022ceb5
+58000052
+98467c00
+2022cea1
+58000053
+98467c00
+2022ceab
+20204fdd
+18a21600
+6fe0c4e7
+79207e04
+79207e03
+67e0c4e7
+19620a00
+d9600050
+6fe144df
+1fe20400
+20204ebe
+18a21600
+6fe0c4e9
+79207e04
+79207e03
+67e0c4e9
+19620a00
+d9600052
+6fe144e3
+1fe20400
+20204ebe
+18a21600
+6fe0c4ea
+79207e04
+79207e03
+67e0c4ea
+19620a00
+d9600053
+6fe144e5
+1fe20400
+20204ebe
+18a21600
+6fe0c4e8
+79207e04
+79207e03
+67e0c4e8
+19620a00
+d9600051
+6fe144e1
+1fe20400
+44fa401e
+58000005
+e7e08005
+18e27e00
+e7e08005
+58000006
+e7e10005
+18427e00
+e7e10005
+18007e00
+e7e10005
+18007e00
+e7e10005
+18007e0a
+9a40a400
+60490333
+18e27e00
+67e08332
+18007e50
+a961fe00
+2020ced4
+1fe0fe01
+20600000
+78547c00
+c3810000
+c4000000
+c4008000
+79207e02
+18c20a00
+18a08bff
+e7e08005
+78347c00
+20600000
+6fe0c4e7
+20404ed5
+24344ee6
+70033150
+6fe144df
+67e10333
+20204efa
+6fe0c4e8
+20404ed5
+24344eed
+70033151
+6fe144e1
+67e10333
+20204efa
+6fe0c4e9
+20404ed5
+24344ef4
+70033152
+6fe144e3
+67e10333
+20204efa
+6fe0c4ea
+20404ed5
+24740000
+70033153
+6fe144e5
+67e10333
+44fac01e
+204051b4
+20405228
+18002400
+20405233
+18007e04
+e7e08005
+6fe0c4ec
+e7e08005
+58000008
+e7e10005
+6fe10333
+e7e10005
+58000000
+e7e10005
+18007e01
+e7e08005
+18007e02
+e7e08005
+6fe08331
+c028cf12
+58000030
+e7e10005
+20204f14
+580003e3
+e7e10005
+d840000c
+60490320
+20405231
+6fe10320
+e7e10005
+18007e01
+e7e10005
+70033100
+20204d99
+18c08c01
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe22200
+44fb401e
+58000050
+9a267c00
+2022cf35
+58000051
+9a267c00
+2022cf39
+58000052
+9a267c00
+2022cf3d
+58000053
+9a267c00
+2022cf41
+18c08c02
+efe10006
+98007c00
+20204d99
+6fe0c4e7
+79207e05
+67e0c4e7
+20204d99
+6fe0c4e8
+79207e05
+67e0c4e8
+20204d99
+6fe0c4e9
+79207e05
+67e0c4e9
+20204d99
+6fe0c4ea
+79207e05
+67e0c4ea
+70095b06
+202077a7
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe22200
+efe10006
+1fe21600
+1a220400
+20407c2c
+44fbc01e
+58000050
+98467c00
+2022cf6d
+58000051
+98467c00
+2022cf7d
+58000052
+98467c00
+2022cf61
+58000053
+98467c00
+2022cf67
+20404fdd
+20204f92
+19620400
+6fe144e3
+98467c00
+2022cf73
+20404fdd
+20204f92
+19620400
+6fe144e5
+98467c00
+2022cf75
+20404fdd
+20204f92
+19620400
+6fe144df
+98467c00
+2022cf79
+20404fdd
+20204f92
+20404ff4
+20204f85
+20404ffa
+6fe144e3
+203a4f85
+20204f85
+20404fef
+6fe08339
+243a4f85
+20204f85
+19620400
+6fe144e1
+98467c00
+2022cf83
+20404fdd
+20204f92
+20404fea
+20204f85
+20407c31
+58000007
+e7e08005
+18e27e00
+e7e08005
+58000004
+e7e10005
+1a227e00
+e7e10005
+19627e00
+e7e10005
+18007e08
+20204f94
+20407c31
+20204f94
+9a40a400
+20204d99
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe21600
+efe10006
+1fe20400
+20407c2c
+44fc401f
+58000050
+98467c00
+2022cfb0
+58000051
+98467c00
+2022cfb6
+58000052
+98467c00
+2022cfbc
+58000053
+98467c00
+2022cfc2
+20404fdd
+20204fca
+18422200
+19620400
+6fe144df
+98467c00
+2042cfef
+20204fc8
+18422200
+19620400
+6fe144e1
+98467c00
+2042cfea
+20204fc8
+18422200
+19620400
+6fe144e3
+98467c00
+2042cff4
+20204fc8
+18422200
+19620400
+6fe144e5
+98467c00
+2042cffa
+20204fc8
+20407c31
+20204d99
+20204d99
+efe08006
+1fe20e00
+efe10006
+1fe22200
+98c08c00
+58000009
+e7e08005
+18e27e00
+e7e08005
+18007e00
+e7e10005
+18007e04
+9a40a400
+1a627e00
+9a262600
+20204d99
+20204d99
+20204d99
+18002400
+20405233
+58000001
+e7e08005
+18e27e00
+e7e08005
+58000002
+e7e10005
+58000000
+e7e10005
+1a40a406
+da600004
+20204d99
+58000000
+67e1032c
+67e144e1
+7044e800
+20600000
+58000000
+67e10326
+67e144df
+7044e700
+20600000
+58000000
+67e144e3
+7044e900
+6fe0c4ea
+c0005000
+20600000
+58000000
+67e144e5
+7044ea00
+6fe0c4e9
+c0005000
+20600000
+70095b07
+202077a7
+6fe08330
+793ffe00
+67e08330
+6fe144e5
+207a0000
+20405228
+6fe144e5
+1fe22200
+18002453
+20205015
+6fe08330
+793ffe07
+67e08330
+6fe144e3
+207a0000
+20405228
+6fe144e3
+1fe22200
+18002452
+204051b4
+20405233
+18007e06
+e7e08005
+6fe0c4ec
+e7e08005
+58000004
+e7e10005
+1a227e00
+e7e10005
+1a427e00
+e7e10005
+18000408
+20205059
+44fcc01f
+204051b4
+20405233
+58000002
+e7e08005
+6fe0c4ec
+e7e08005
+58000004
+e7e10005
+18427e00
+e7e10005
+19627e00
+e7e10005
+d8400008
+20205059
+44fd401f
+204051b4
+20405233
+58000004
+e7e08005
+6fe0c4ec
+e7e08005
+58000008
+e7e10005
+18427e00
+e7e10005
+58000000
+e7e10005
+58000001
+e7e08005
+58000002
+e7e08005
+580003e3
+e7e10005
+d840000c
+20205059
+44fdc01f
+204051b4
+20405233
+58000006
+e7e08005
+6fe0c4ec
+1fe0fe01
+18a22200
+67e0c4ec
+1a220a00
+e7e08005
+58000004
+e7e10005
+18427e00
+e7e10005
+19627e00
+e7e10005
+d8400008
+60490320
+18427e00
+203a5204
+20405231
+6fe10320
+e7e10005
+18007e01
+e7e10005
+20600000
+6fe10326
+203a137a
+2040523e
+6fe10326
+e7e10005
+6fe144df
+e7e10005
+20600000
+6fe10317
+203a4d77
+44fe401f
+6fe08319
+c000d074
+c0284d61
+c028cd70
+c0294d6e
+c029cd6e
+20204d77
+20405228
+18002400
+20405233
+1fe20a00
+6fe10317
+1fe22600
+6fe10315
+98000c00
+20405082
+1a60a7fc
+2422d07c
+1a420400
+20405059
+20204d77
+efe08006
+c001508d
+c000d090
+c001d09a
+c002d0d6
+c0025108
+c003d18d
+c003515b
+c0044fcb
+c0054db5
+202051a8
+20407c2c
+20407c31
+20204dcc
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe08006
+1a20a3ff
+2422d096
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+efe10006
+1fe21600
+efe10006
+1fe20400
+efe10006
+1fe67c00
+2022d0ac
+c00150a8
+c00250a8
+202050aa
+70095b16
+204077a7
+efe10006
+202050d3
+20407c2c
+44fec01f
+58000050
+98467c00
+2022d0bb
+58000051
+98467c00
+2022d0c1
+58000053
+98467c00
+2022d0cd
+58000052
+98467c00
+2022d0c7
+202050d3
+19627e00
+67e144df
+6fe0c4e7
+79207e01
+67e0c4e7
+202050d2
+19627e00
+67e144e1
+6fe0c4e8
+79207e01
+67e0c4e8
+202050d2
+19627e00
+67e144e3
+6fe0c4e9
+79207e01
+67e0c4e9
+202050d2
+19627e00
+67e144e5
+6fe0c4ea
+79207e01
+67e0c4ea
+20407c31
+1a627e00
+9a262600
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe21600
+efe10006
+efe10006
+243a5102
+20407c2c
+19620400
+44ff401f
+58000050
+98467c00
+2022d0f0
+58000051
+98467c00
+2022d0f4
+58000052
+98467c00
+2022d0f8
+58000053
+98467c00
+2022d0fc
+6fe0c4e7
+79207e05
+67e0c4e7
+20600000
+6fe0c4e8
+79207e05
+67e0c4e8
+20600000
+6fe0c4e9
+79207e05
+67e0c4e9
+20600000
+6fe0c4ea
+79207e05
+67e0c4ea
+70095b06
+202077a7
+20407c31
+1a20a3fa
+2022d107
+18c08c01
+1a20a3ff
+20205103
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+18c08c02
+1fe20400
+58000005
+e7e08005
+18e27e00
+e7e08005
+1a20a202
+1a227e00
+e7e10005
+20407c2c
+44ffc01f
+58000050
+98467c00
+2022d127
+58000051
+98467c00
+2022d138
+58000052
+98467c00
+2022d13e
+58000053
+98467c00
+2022d144
+20205149
+6fe0c4e7
+79207e04
+79207e03
+67e0c4e7
+c2815135
+68488330
+79200406
+60488330
+18e27e00
+1fe0fe01
+67e08332
+6fe0c4e7
+79207e02
+67e0c4e7
+6fe144df
+67e10333
+20205149
+6fe0c4e8
+79207e04
+79207e03
+67e0c4e8
+6fe144e1
+20205149
+6fe0c4e9
+79207e04
+79207e03
+67e0c4e9
+6fe144e3
+20205149
+6fe0c4ea
+79207e04
+79207e03
+67e0c4ea
+6fe144e5
+1fe21600
+20407c31
+19627e00
+e7e10005
+18007e00
+e7e10005
+18007e00
+e7e10005
+18007e0a
+9a40a400
+1a20a3fa
+2022d15a
+efe08006
+e7e08005
+1a40a401
+1a20a3ff
+20205154
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+1a627e00
+9a262600
+efe10006
+1fe22200
+efe10006
+1fe21600
+20407c2c
+47004020
+58000050
+1a220400
+98467c00
+2022d174
+58000052
+1a220400
+98467c00
+2022d179
+58000053
+1a220400
+98467c00
+2022d17b
+2020517d
+58000000
+67e10326
+67e144df
+67e0c4e7
+2020517f
+20404ff4
+2020517f
+20404ffa
+2020517f
+58000000
+67e1032c
+20407c31
+58000007
+e7e08005
+18e27e00
+e7e08005
+58000004
+e7e10005
+1a227e00
+e7e10005
+19627e00
+e7e10005
+18007e08
+9a40a400
+20600000
+efe08006
+1fe20e00
+efe10006
+1fe22200
+efe10006
+1fe21600
+efe10006
+1fe20400
+20407c2c
+4700c020
+6fe0c4ec
+a8e1fe00
+2420d1a4
+58000050
+98467c00
+2022d1a1
+58000051
+98467c00
+2022d1a4
+202051a4
+7044df00
+7044e700
+202051a4
+20407c31
+1a627e00
+9a262600
+20600000
+58000001
+e7e08005
+efe08006
+e7e08005
+58000002
+e7e10005
+58000000
+e7e10005
+58000006
+9a40a400
+18002604
+20600000
+6fe0c4ec
+1fe0fe01
+c08051b8
+1fe0fe01
+67e0c4ec
+20600000
+db001800
+dd600080
+20407d92
+202051c2
+6b0143e1
+6d6143e3
+20407d94
+202051c2
+47014020
+2040520e
+243a137a
+2040521e
+df200008
+6848c4ed
+1f260e08
+a84fffff
+2020d1cf
+204051d6
+242151cf
+204051ec
+202051d3
+1d627e00
+9b00b000
+c20051c7
+2020137a
+1b027e00
+1b020a00
+20600000
+4701c020
+1f260e08
+d8400000
+d9600000
+18e27e00
+c00451e7
+6fe0c4ed
+afefffff
+2020d1e7
+f9201600
+1d627e00
+98408400
+18e08e01
+1a227e00
+98467c00
+2022d1e7
+202151da
+18427e00
+9a267c00
+24628000
+f9201600
+20600000
+47024020
+2040520e
+243a137a
+20405214
+203a51f5
+6fe4c4f1
+67e4c4ee
+58000000
+e7e18005
+6160c4f7
+630144f8
+20600000
+4702c020
+20405217
+18c08c01
+efe10006
+20600000
+47034020
+20405217
+18c20a00
+18c20400
+58000000
+e7e18005
+20600000
+4703c020
+20405214
+203a137a
+6fe1c4f4
+67e1c4f7
+6fe1c4f1
+67e1c4f4
+6fe1c4ee
+67e1c4f1
+20600000
+47044021
+6fe1c4ee
+20600000
+4704c021
+6fe1c4f1
+20600000
+47054021
+6fe1c4f7
+20600000
+20405214
+203a521c
+d8c044ee
+efe18006
+203a521a
+18c08dfd
+20600000
+4705c021
+df200004
+d8c044ee
+d8400000
+efe18006
+1fe17eff
+98418400
+c2005222
+6048c4ed
+20600000
+47064021
+da20007f
+204051ba
+67e1031c
+1fe0fe04
+67e1031e
+58000000
+67e10320
+20600000
+6fe1031c
+20205252
+6fe1031e
+20205252
+4706c021
+da2000fa
+204051ba
+67e10322
+1fe0fe04
+67e10324
+58000000
+67e10326
+20600000
+6fe10322
+20205252
+6fe10324
+20205252
+47074021
+20407c06
+70033501
+2040520e
+247a0000
+da20007f
+204051ba
+67e10328
+1fe0fe04
+67e1032a
+58000000
+67e1032c
+70033500
+20207c12
+6fe10328
+20205252
+203a137a
+1fe20a00
+20600000
+4707c021
+da400000
+da2044ee
+1a20a3fe
+1a20a202
+580044fa
+9a267c00
+2022d265
+efe08011
+1a20a201
+203a5259
+e8410011
+efe10002
+9a40a400
+1a40a404
+20205259
+1a427e00
+20600000
+d8e0000c
+20201547
+d8e0000c
+2020154b
+47084022
+2040521e
+6fe0c4ed
+207a0000
+20405255
+d8400100
+98467c00
+20215267
+20405269
+d8a044fa
+da2044ee
+580044fa
+9a267c00
+20628000
+efe08011
+1a20a201
+243a527f
+e7e10005
+1a20a202
+20205276
+efe10011
+1a20a202
+1fe20c00
+efe10006
+e7e10005
+1fe27200
+1f20f202
+20407ca1
+20205276
+4708c022
+2040521e
+6fe0c4ed
+207a0000
+da2044ef
+1a20a3fd
+d8c044fa
+1a20a203
+580044fb
+9a267c00
+20628000
+efe10006
+203a528f
+1fe0fe04
+1fe27200
+18c22400
+efe10011
+1fe20a00
+1a420c00
+18c08dfe
+20407ca1
+2020528f
+20758000
+47094022
+58000000
+67e08048
+67e08055
+67e08078
+67e0807c
+67e0c15d
+67e080bc
+67e08877
+67e1c64b
+67e0c64e
+70464900
+70030c00
+7003ab00
+70087700
+70087600
+7003a500
+20600000
+4709c022
+2054d941
+2454d945
+204058fe
+247a0000
+6fe0804c
+c4030000
+793ffe06
+793f8001
+67e0804c
+6fe080ce
+6848804c
+2feffe00
+79208401
+6048804c
+18410402
+6048807f
+6848804c
+1fe37e00
+67e0807d
+470a4022
+6fe0807d
+c03fd313
+c001d37f
+c0025390
+c01e5306
+c002d302
+c007d5b6
+c00853f5
+c011d414
+c01cd5cf
+c01c55ca
+c018d3fa
+c01bd496
+c013d492
+c019d48f
+c012d494
+c0135410
+c003d409
+c016d400
+c0175401
+c000d48b
+c0015476
+c01455c1
+c004d46c
+c005d433
+c0045415
+c0065445
+c00fd40c
+c010540e
+c010d4b0
+c01154b0
+c01ad4b1
+c01b54b2
+c01254b0
+c01a54b3
+c00bd4bc
+c008d4d6
+c00954e3
+c009d4e5
+c006d4f5
+c00754f5
+c017d490
+c01854f5
+c00554f5
+c00c54f6
+c01954f5
+c01ed4fb
+c01f5544
+c01fd53d
+c0205587
+c020d598
+c00355b5
+c01d5304
+c0155300
+c014d301
+70007e19
+70007c04
+20600000
+2020540a
+20600000
+70007c06
+20600000
+70007c3b
+20600000
+6fe200cf
+1fe3fe00
+67e240d9
+6fe080d3
+67e0c0e0
+6fe280d4
+67e2c0ee
+6fe280d9
+e7e28005
+6fe08031
+79207e03
+67e08031
+20600000
+470ac022
+6fe080cf
+79207e07
+67e0807d
+c040d338
+c041533d
+c04ad497
+c04b54b0
+c045d4a5
+c041d353
+c0425375
+c048532a
+c04bd34c
+c04c5351
+c04cd32d
+c04d5330
+c050d328
+c1420000
+70007c82
+70007e19
+20600000
+70007ca2
+20600000
+70007c82
+70007e2e
+20600000
+20405332
+70007c9a
+20600000
+20405332
+20205336
+d8a0476f
+6fe180d0
+e7e18005
+20600000
+2020ef9e
+20600000
+6fe080d1
+79207e07
+67e0839d
+c045d342
+20600000
+6fe080d1
+79207e07
+67e0839d
+c045d346
+20600000
+6fe0c15f
+6848804c
+7d3a0405
+6048804c
+6fe08030
+c4028000
+793ffe05
+67e08030
+70007c31
+20600000
+2434d34f
+70007c12
+2020592d
+70007c97
+20600000
+2040592d
+2020560c
+efe08006
+67e083a1
+c000d358
+c001535d
+20600000
+70007c84
+18c08c01
+efe08006
+c281d36f
+20205372
+70007c84
+18c08c01
+efe10006
+c2845362
+2020536b
+6fe0c64e
+79207e01
+2040536d
+6fe0c64e
+c1818000
+6fe0c6bf
+c4008000
+70464c02
+20600000
+6fe0c64e
+793ffe01
+67e0c64e
+20600000
+6fe0c64e
+79207e00
+2020536d
+6fe0c64e
+793ffe00
+2020536d
+684880d2
+18410401
+604883a4
+6fe0c1de
+c0a8d37b
+7041de00
+6fe08055
+c18a8000
+70005504
+2020595d
+470b4022
+6fe080cf
+67e0839d
+c019d3a6
+c00453b5
+c007d3bc
+c00853c2
+c008d3c3
+c00953cb
+c00c53e4
+c00bd3e7
+c009d39d
+c01ed510
+c01f5571
+c0205512
+c020d52f
+20600000
+470bc022
+6fe080cf
+67e0839d
+c000d3db
+c019d3b0
+c005d3cc
+c00453d2
+c009d3a0
+c02053dc
+c020d3df
+c00c53e2
+c00bd3f3
+20600000
+70095b20
+204077a7
+202009dd
+70095b19
+204077a7
+70464902
+58000050
+d8e00006
+20207ca8
+6fe083a5
+79207e00
+67e083a5
+70095b01
+204077a7
+70007c8b
+6fe08055
+c082d2b0
+70005506
+20600000
+70039e0b
+70007c07
+70005500
+2020d2b0
+20600000
+6fe0c1cd
+247a0000
+20400c5c
+2040560a
+20748000
+79200021
+20600000
+24748000
+70007c10
+6fe0804c
+c4010000
+70007c12
+20600000
+2020560c
+20405668
+6fe08030
+c3820000
+70007c31
+6fe08055
+c1850000
+7000550b
+20600000
+20600000
+6fe0c09a
+1fe67c08
+2042bd2d
+70007c07
+70039e13
+20600000
+6fe080d0
+c00353d8
+c18c0000
+70039e18
+70007c07
+20600000
+70039e06
+70007c07
+20600000
+20600000
+70087000
+70007c07
+202052b0
+70087000
+70007c07
+202052b0
+70095b24
+202077a7
+70095b23
+204077a7
+20200f12
+70095b22
+204077a7
+58000000
+67e10075
+6fe14458
+1fe3fe00
+67e10032
+6fe0c45a
+67e08073
+6fe0c45c
+67e08074
+20200ef1
+70095b21
+202077a7
+684880cf
+18467c06
+202155ab
+60488054
+2020540a
+6fe083a5
+79207e02
+67e083a5
+c3818000
+70007c31
+202052b0
+20600000
+6fe0c0d7
+684880cf
+98467c00
+2021540a
+70007c04
+70007e1f
+70007d2e
+20600000
+2020577f
+70007c03
+20600000
+70007c21
+20600000
+70007c22
+20600000
+6fe08055
+c1098000
+70005502
+20600000
+20600000
+6fe0c6bd
+243a541e
+20405607
+7003a801
+70095b0a
+204077a7
+20405935
+2420d60f
+2434d422
+70007c04
+70007d08
+70007e23
+20600000
+6fe0804b
+79207e02
+67e0804b
+20600000
+6848804c
+7d3a0401
+6048804c
+20600000
+6fe0807f
+1fe37e00
+1fe17e01
+20600000
+6fe0c48e
+207a0000
+6fe08877
+205a5f2f
+20600000
+2040542e
+2040542a
+67e083a9
+6fe0c64c
+c0015440
+20405607
+70007c0c
+6fe0c1cd
+247a0000
+6fe08030
+c3830000
+70007e06
+202052fe
+70007c0b
+d8a008f0
+d8c000cf
+20407c4c
+2020543a
+6fe0c64c
+c0015455
+da200040
+20406a48
+684a0454
+6fe200cf
+98467c00
+2022d450
+70007c07
+70039e05
+20600000
+20406b46
+2040545e
+6fe0c76b
+203a5530
+20600000
+6fe200cf
+684a091c
+98467c00
+2022d45a
+2020544d
+2040545e
+6fe0c6bf
+c280d530
+20600000
+204009b4
+6fe0804b
+2feffe01
+793ffe01
+67e0804b
+6fe08055
+c00cd467
+c00c5467
+20600000
+6fe08877
+c1800000
+6fe0804c
+c3810000
+202059f4
+da2000cf
+da400444
+d8a00424
+20406b12
+da200040
+20405953
+70007c0b
+6fe08030
+c303560a
+20600000
+6fe100ae
+1fe0f3fd
+684880cf
+58000a01
+98408a00
+d8c000d1
+20407ca1
+68488053
+6fe080d0
+98467e00
+1fe67c0e
+20215486
+1840fe0e
+67e08053
+70007c01
+20600000
+6fe0804c
+79207e03
+67e0804c
+c2825614
+20600000
+6fe080cf
+67e0807d
+70007c02
+20600000
+2020540a
+70007c30
+20600000
+70007c28
+20600000
+70007c26
+20600000
+20600000
+6fe10032
+98000400
+6fe080d0
+67e08092
+984f8400
+6fe100d1
+1fe3fe00
+67e10093
+6fe200d3
+1fe3fe00
+67e2008e
+18427e00
+67e10095
+20600000
+6848c15f
+6fe080d0
+9842fc00
+2422d325
+2feffe00
+6fe0804c
+7920fe05
+67e0804c
+70007c81
+70007d8b
+20600000
+20600000
+2020540a
+2020540a
+6fe100cf
+67e100c0
+20600000
+6fe100d2
+6848c177
+984ffe00
+d8400640
+98467c00
+20600000
+6fe100d4
+203a55ab
+204054b6
+202155ab
+6fe0c09a
+1fe67c0a
+2042bc1d
+6fe08030
+c280d5ab
+6fe100d0
+1fe3fe00
+67e10075
+6fe100d2
+1fe3fe00
+67e10032
+6fe100d4
+67e08073
+98000400
+6fe100d6
+67e08074
+98467c00
+242154d3
+67e08073
+70007c03
+70007d17
+20600000
+6fe0c64c
+c00154dc
+2040540a
+20405607
+20406a4b
+20200ee1
+2040540a
+20400ee1
+20407402
+d8a00062
+d8c00910
+df200010
+20207da6
+2040540a
+20200eeb
+6fe200cf
+1fe3fe00
+2034d4ef
+6848c1cd
+243a54ec
+70007d13
+202055ab
+70007c34
+70005500
+202009db
+204009db
+79200022
+6fe080bc
+793ffe02
+67e080bc
+2020540a
+20600000
+70007c03
+70007d18
+70095b2e
+204077a7
+20200f12
+70087900
+6fe080cf
+67e0c64b
+c080d5ab
+684880d0
+6048c64c
+6fe0c6bd
+203a5505
+18467c02
+2422d44d
+6fe080d1
+c0205509
+c0185509
+202055ab
+67e0c64d
+2040593e
+2020d50d
+70087001
+70007c03
+70007d3d
+202052b0
+70007c3e
+20600000
+6fe0c773
+c000d519
+c001551d
+2040593e
+20608000
+70087008
+20600000
+20407228
+70095b35
+204077a7
+20205515
+2040593e
+20608000
+6fe0c774
+c009d52d
+1fe0fe01
+67e0c774
+70087201
+70087004
+6fe0c774
+1fe20e00
+6fe3479b
+afefffff
+58000080
+7920fe00
+67e0c775
+20600000
+70087008
+20600000
+20405535
+6fe0c776
+207a0000
+70477600
+70095b38
+202077a7
+2040593e
+2440f232
+2040f242
+2040593e
+20608000
+7008700c
+70087201
+20600000
+d8a00930
+d8c000cf
+20407c4c
+6fe0c773
+c1010000
+20206f9e
+20600000
+6fe0c64c
+c000d55a
+c0015548
+202055ab
+6fe08871
+c003d54c
+6fe08870
+c080d5ab
+6fe08879
+1fe60a30
+242155ab
+d8a00880
+98a08a00
+6fe400cf
+e7e40005
+6fe400d7
+e7e40005
+6fe08879
+1fe0fe10
+67e08879
+c0a0540a
+2020556b
+6fe08871
+c003d55e
+6fe08870
+c080d5ab
+6fe08879
+1fe60a20
+242155ab
+d8a00888
+98a08a00
+6fe400cf
+e7e40005
+6fe400d7
+e7e40005
+6fe08879
+1fe0fe10
+67e08879
+c098540a
+2040593e
+2020d40a
+70087a01
+70087002
+70087201
+2020540a
+6fe0c64c
+c000d575
+c0015579
+20600000
+6fe08878
+c018557d
+70007c3e
+20600000
+6fe08878
+c020557d
+70007c3e
+20600000
+2040593e
+2020d586
+6fe0c773
+c0015584
+70087201
+70087004
+202052b0
+70095b36
+202077a7
+202052b0
+6fe08871
+c003d58b
+6fe08870
+c08355ab
+d8a008f0
+6fe400cf
+e7e40005
+6fe400d7
+e7e40005
+2040593e
+2020d595
+70087007
+70087201
+2020540a
+70087104
+20206f9e
+202055ab
+6fe08871
+c005d59c
+6fe08870
+c08455ab
+d8a00920
+d8c000cf
+20407c4c
+2040593e
+2020d5a8
+6fe0c773
+c000d5ad
+70477200
+70087009
+70087201
+70007d41
+202052b0
+70087109
+70087301
+202052b0
+70007e24
+202052fe
+6fe0c772
+c283d5b2
+79207e06
+67e0c772
+20600000
+c28055a3
+70477200
+202055ab
+202052b0
+6fe080bc
+793ffe01
+67e080bc
+2040540a
+24748000
+6fe080cf
+6848804b
+793a0404
+7d3a0405
+6048804b
+20600000
+684c00cf
+6fe08055
+c1818000
+6fe080bc
+c30255c8
+70005514
+20600000
+70005504
+20600000
+6fe080e3
+67e08a5b
+70007c03
+70007d38
+20600000
+70007c03
+70007d39
+18007209
+d8c000cf
+d8a00a52
+efe08006
+1fe2fe55
+e7e08005
+c20055d4
+6fe08a52
+68488a51
+793f8407
+793f8404
+c07fd5e8
+c0005601
+c002d5f5
+c003d5f4
+c00355f5
+c00455f4
+c000d5ed
+c00155ed
+c001d5ed
+c004d5ed
+c00255ed
+20600000
+6fe08a51
+79207e03
+79207e02
+67e08a51
+20600000
+79200404
+7000e405
+6fe10a59
+98007200
+67e100ae
+d8a000ce
+20407d15
+79200407
+79200402
+18007e00
+67e0800b
+67e109fa
+67e109fc
+67e109f8
+67e109f6
+6fe08a53
+2fe1fe00
+79208406
+60488a51
+20600000
+793f8011
+700a5100
+6fe080e3
+793ffe06
+67e080e3
+20600000
+d8c000cf
+d8a00424
+20207c4c
+70007c09
+20600000
+24748000
+70007c11
+20600000
+da2040a8
+20406a15
+70007c03
+70007d08
+20600000
+7000720a
+70007c07
+70039e16
+20600000
+470c4023
+78547c00
+20405903
+6fe08048
+207a0000
+c283d64d
+c000d797
+c0015718
+c001d659
+c002566f
+c013d803
+c014573c
+c0185728
+c012d7fe
+c0135737
+c018d7eb
+c01bd792
+c019d784
+c0045885
+c004d87b
+c005d890
+c006589d
+c007d78a
+c00858d3
+c008d8c9
+c003d77a
+c01557a6
+c00557a7
+c00fd7e4
+c003572d
+c010d787
+c016d7da
+c01757df
+c0115787
+c01a57a8
+c009d7bd
+c00bd7cc
+c00958d0
+c017d7d2
+c00c57d7
+c01ed826
+c01f582e
+c01fd849
+c0205853
+c020d868
+c011d877
+c01dd872
+c002d878
+c014d879
+c01c587a
+c01cd79d
+2020137a
+20600000
+c040d67c
+c041d741
+c04256ab
+c0415685
+c045d74e
+c04bd776
+c04cd709
+c04d56d8
+c04ad70e
+c04b570f
+c05156a8
+2020137a
+18007e02
+204058d9
+6fe08049
+e7e08005
+204058e8
+470cc023
+6fe08049
+c004568f
+c007d693
+c008569e
+c00bd66e
+c019d6a1
+c020d6a7
+c008d668
+20600000
+6fe08055
+207a0000
+7000551b
+5800000c
+d8e00007
+20207ca8
+20200ef1
+18007e03
+204058d9
+6fe08049
+c005d677
+e7e08005
+6fe0804a
+e7e08005
+202058e8
+e7e08005
+6fe0804a
+e7e08005
+d84003a9
+20205924
+18000e04
+204058e1
+5800007f
+e7e08005
+6fe08049
+793ffe07
+e7e08005
+6fe08049
+202058e8
+18000e05
+204058e1
+5800007f
+e7e08005
+6fe08049
+793ffe07
+e7e08005
+6fe0804a
+e7e08005
+202058e8
+20400c5c
+20405935
+20608000
+2020560a
+6fe0804b
+c282d69a
+c4020000
+70007c12
+793ffe04
+2040592d
+2020569c
+70007c10
+793ffe05
+67e0804b
+20600000
+2040593e
+2020d60c
+20600000
+70007c8b
+6fe083a5
+79207e00
+67e083a5
+70095b01
+202077a7
+20600000
+18000e02
+204058e1
+202058f1
+1fe22200
+204056c1
+6fe083a1
+c000d6b1
+c00156b9
+20600000
+1a227e00
+18000e0c
+204058e1
+58000001
+e7e08005
+6fe103a2
+e7e48005
+202058f1
+1a227e00
+18000e0c
+204058e1
+58000002
+e7e08005
+58010002
+e7e48005
+202058f1
+6fe0c76b
+203a56c5
+204056cb
+202056d2
+6fe0c0a6
+793ffe03
+67e0c0a6
+58000001
+67e103a2
+20206e02
+470d4023
+6fe0c0a6
+79207e03
+67e0c0a6
+58000101
+67e103a2
+20600000
+6fe0c6bf
+c280d6d5
+20600000
+58000902
+67e103a2
+20600000
+18000e05
+204058e1
+6fe1c76c
+e7e18005
+204058f1
+70477601
+6fe0c76c
+c000d6e9
+c00156e3
+c001d6ef
+20600000
+6fe0c76f
+c00056fb
+c000d6fb
+c00156fb
+c001d6f5
+20600000
+6fe0c76f
+c00056f5
+c000d6f9
+c00156fb
+c001d6f5
+20600000
+6fe0c76f
+c00056f5
+c000d6f5
+c00156f5
+c001d6f5
+20600000
+70477303
+6fe0c64a
+c280323b
+20600000
+70477301
+20600000
+70477302
+20600000
+d8e00000
+20205701
+d8e00000
+20205705
+6fe0c64a
+f9207e00
+67e0c64a
+20600000
+6fe0c64a
+f93ffe00
+67e0c64a
+20600000
+18000e05
+204058e1
+6fe1c76c
+e7e18005
+202058f3
+20600000
+18000e09
+204058e1
+6fe08092
+e7e08005
+6fe10093
+e7e10005
+6fe2008e
+e7e20005
+202058f1
+18007e11
+204058d9
+6fe08049
+1fe20400
+c0005720
+c0075720
+c00e5720
+20600000
+e7e08005
+6fe0c603
+e7e08005
+df20000e
+58004604
+98408c00
+20407ca1
+202058f1
+18007e03
+204058d9
+58000114
+e7e10005
+202058f1
+18007e03
+204058d9
+6fe200b4
+9c467e00
+2034d733
+1fe67e00
+1feb7e00
+793ffe0f
+e7e10005
+202058f1
+18007e06
+204058d9
+6fe2c5fe
+e7e28005
+202058f1
+18007e09
+204058d9
+6fe440a0
+e7e40005
+202058f1
+204056c1
+6fe08048
+18000e0c
+204058e1
+58000001
+e7e08005
+6fe103a2
+e7e10005
+58000000
+e7e18005
+58000000
+e7e20005
+202058f3
+18000e03
+204058e1
+6fe0c15f
+e7e08005
+78547c00
+204058f3
+24740000
+24748000
+6fe0c0df
+c4000000
+2040575a
+20205764
+7040df03
+58000000
+67e24149
+d8a040e1
+20405768
+d8a040ee
+20405768
+d8a0414d
+20405768
+2020576f
+d8a040ee
+20405768
+2040576f
+20205772
+58ffffff
+e7e18005
+e7e18005
+e7e18005
+5800007f
+e7e08005
+20600000
+58000000
+67e140dd
+20600000
+6fe0c0df
+79207e02
+67e0c0df
+20600000
+18000e02
+204058e1
+2434d8f1
+202058f3
+18007e02
+204058d9
+6fe0839e
+e7e08005
+204058f3
+6fe0804b
+79207e03
+67e0804b
+70007232
+20600000
+18007e01
+204058d9
+202058f3
+18007e01
+204058d9
+202058f1
+18007e02
+204058d9
+6fe0804c
+2fec0002
+7920fe00
+1fe17e01
+e7e08005
+202058f3
+18007e03
+204058d9
+6fe10051
+e7e10005
+202058f3
+700072fa
+18007e02
+204058d9
+6fe08053
+e7e08005
+202058f3
+18007e0a
+204058d9
+d8c00a52
+18007209
+efe08006
+1fe2fe55
+e7e08005
+c20057a1
+202058f3
+202058f3
+202058f3
+20748000
+2040104a
+18007e09
+204058d9
+6fe100c0
+e7e10005
+6fe1c0a8
+e7e18005
+6fe0c0ab
+e7e08005
+6fe140ac
+e7e10005
+c581d7b9
+793f8003
+204058f3
+70007c13
+20600000
+204058f1
+70007c03
+70007d13
+20600000
+d8400200
+2034d7c1
+1d027e00
+202057c2
+1c427e00
+1c227e00
+9840fe00
+1fe17ffc
+67e20034
+18007e05
+204058d9
+6fe20034
+1fe37e00
+e7e20005
+202058f3
+18007e0a
+204058d9
+d8c003ac
+efe48006
+e7e48005
+202058f3
+18007e03
+204058d9
+58000114
+e7e10005
+202058f3
+18007e01
+204058d9
+202058f3
+18007e02
+204058d9
+6fe0c0d7
+e7e08005
+202058f3
+18007e02
+204058d9
+58000005
+e7e08005
+202058f3
+18007e02
+204058d9
+58000000
+e7e08005
+202058f3
+70007c2e
+20600000
+6fe0c09a
+1fe67c0a
+2042d7e9
+6fe08030
+79207e04
+67e08030
+1c427e00
+67e203bc
+6fe083a5
+c281d7fc
+79207e03
+67e083a5
+70095b05
+204077a7
+18007e01
+204058d9
+202058f3
+70004800
+20600000
+18007e06
+204058d9
+6fe2c5fe
+e7e28005
+202058f3
+18007e09
+204058d9
+6fe440a0
+e7e40005
+202058f3
+70087301
+6fe0c6c0
+c1808000
+70087113
+20600000
+20405931
+70007c99
+70087103
+20600000
+20405931
+70007c3d
+70087107
+20600000
+da200910
+da400930
+df200010
+20407d33
+2022d81e
+70087100
+20406fa0
+70007d40
+202055ab
+7008710a
+20406f9e
+70007d40
+2020540a
+70007c40
+20600000
+70007c3d
+20600000
+70087800
+18007e04
+204058d9
+6fe1c64b
+e7e18005
+2040593e
+2020d8f3
+202058f1
+6fe0c64c
+c0015832
+c000d837
+20600000
+18007e11
+204058d9
+6fe08878
+d8c046e3
+2020583b
+18007e11
+204058d9
+6fe08878
+d8c0473b
+98c08c00
+efe40006
+e7e40005
+efe40006
+e7e40005
+6fe08878
+1fe0fe10
+67e08878
+2040593e
+2020d8f3
+202058f1
+70087006
+70007c3f
+20600000
+18007e11
+204058d9
+d8c00910
+efe40006
+e7e40005
+efe40006
+e7e40005
+202058f1
+70007c40
+20600000
+2040593e
+2040eeb4
+18007e11
+204058d9
+d8c008e0
+efe40006
+e7e40005
+efe40006
+e7e40005
+2040593e
+2420d8f1
+2020d8f3
+7008710f
+20405931
+70007c0b
+20405949
+2020ef02
+20206f0c
+2040592d
+70007c41
+20600000
+18007e11
+204058d9
+d8c00910
+efe40006
+e7e40005
+efe40006
+e7e40005
+2040593e
+2420d8f1
+2020d8f3
+18007e03
+204058d9
+5800fffe
+e7e10005
+202058f1
+202058f3
+202058f3
+202058f3
+202058f3
+2040594d
+da2040a8
+20405953
+18007e11
+204058d9
+da200444
+da400424
+20406b12
+2434d8e8
+202058ee
+2040594d
+da200040
+20406a15
+18007e11
+204058d9
+d8c00424
+20407c4c
+6fe08055
+c00cd8f3
+c00c58f3
+202058ee
+6fe0c64c
+c001589b
+6fe08877
+203a5898
+2040593e
+2040d931
+2440d92d
+20205899
+20405931
+2040594d
+20205888
+70007c0c
+20205894
+6fe0c64c
+c00158b7
+da2040a8
+20406a48
+18007e05
+204058d9
+6fe20454
+e7e20005
+d84003a9
+20405924
+20406b46
+2040593e
+2020d8ae
+7003ab01
+6fe08877
+207a0000
+70007c0b
+6fe0c1cd
+207a0000
+2040593e
+2420d8b3
+20600000
+c6908000
+793f8021
+70007c0f
+20600000
+2040742a
+2040744f
+18007e05
+204058d9
+6fe20918
+e7e20005
+d84003a9
+20405924
+204058c6
+2040593e
+2020d8ae
+7003ab01
+6fe08877
+207a0000
+202058ae
+6fe40910
+67e446b1
+20600000
+2040594d
+20406a4b
+18007e11
+204058d9
+d8c00424
+20407c4c
+202058ee
+18007e01
+204058d9
+202058ee
+18007e02
+204058d9
+18007e10
+e7e08005
+67e08054
+202058ee
+1fe9fe00
+1fe1fe07
+67e0838a
+df200011
+d8a0038c
+20407c68
+d8a0038c
+20600000
+1fe1227f
+7000487f
+18e27e00
+204058d9
+1a227e00
+e7e08005
+20600000
+6fe08048
+1fe3fe00
+6848804c
+284ffe01
+7920fe00
+202058f8
+6848804c
+18410401
+202058f4
+18000400
+202058f4
+18000401
+6fe08048
+1fe3fe00
+7934fe00
+9842fe00
+67e0838b
+67e0c5fd
+70004800
+20405909
+78347c00
+20600000
+6fe0807c
+207a0000
+20405903
+6fe0807c
+20600000
+470dc023
+6fe08048
+203a5909
+6fe08078
+247a0000
+20205913
+6fe08078
+203a5919
+6fe18078
+67e18048
+6848807b
+6fe0804c
+793ffe01
+9841fe00
+67e0804c
+70007800
+6fe0807c
+207a0000
+6fe2007c
+67e20078
+70007c00
+20600000
+6fe0807c
+207a0000
+6fe1807c
+67e18048
+6848807f
+6fe0804c
+793ffe01
+9841fe00
+67e0804c
+70007c00
+20600000
+470e4023
+6fe0804c
+1fe22600
+efe08002
+20405426
+204058e8
+1a627e00
+67e0804c
+20600000
+6848804c
+793f8400
+6048804c
+20600000
+6848804c
+79200400
+6048804c
+20600000
+7d34fe01
+6848804c
+9842fe00
+2feffe01
+20600000
+6fe0804c
+7934fe01
+67e0804c
+20600000
+6fe08876
+2fe0fe01
+20600000
+6fe08876
+79207e07
+67e08876
+20600000
+6fe08876
+793ffe07
+67e08876
+20600000
+6fe08876
+2feffe07
+67e08876
+20600000
+d8a00424
+18007210
+180a7e00
+e7e08005
+c200594f
+20600000
+20406a19
+da2041ce
+da400454
+efe40011
+68488030
+7d3a0406
+60488030
+1a220a00
+20406b12
+202009c6
+470ec023
+204058fe
+247a0000
+6fe08055
+207a0000
+c00259b1
+c002d9b7
+c00159a8
+c001d9bf
+c00759ab
+c00359db
+c003d9f3
+c004d9f4
+c00559fd
+c005da01
+c00659c9
+c006d9cc
+c007d9d2
+c009599b
+c009d9bf
+c008599e
+c00a5998
+c00ad9bf
+c00b5992
+c00c5997
+c00bd98b
+c00cd991
+c00d597c
+c00dd986
+70005500
+20600000
+6fe083a5
+c4010000
+c4018000
+70005500
+20405982
+202064af
+6fe080bc
+c4008000
+7000550a
+20600000
+d8e00007
+20407cb6
+247a0000
+7000551a
+20600000
+6fe080bc
+793ffe00
+67e080bc
+70005519
+70007c0b
+20600000
+20600000
+6fe083a8
+c1810000
+20405a03
+70005518
+20600000
+20600000
+70005515
+70007c83
+20600000
+70005513
+70007c25
+20600000
+6fe0c649
+c1000000
+c000d9a6
+d8e00006
+20407cb6
+247a0000
+70464900
+202059c0
+20748000
+202059db
+70005503
+70007c27
+20600000
+70007c13
+79200003
+70005505
+580001ff
+67e103a6
+20600000
+70005505
+580000ff
+67e103a6
+793f8022
+70007c33
+202052ad
+c6110000
+6fe103a6
+1fe0ffff
+2022d9bd
+67e103a6
+20600000
+7000550e
+20600000
+20600000
+6fe083a5
+c4018000
+c4010000
+6fe080bc
+793ffe02
+67e080bc
+70007c13
+70005510
+20600000
+7000550d
+70007c31
+20600000
+6fe083a5
+c4010000
+70005500
+20600000
+70005506
+20600000
+6fe103a6
+1fe0ffff
+203a59d7
+67e103a6
+20600000
+70007c07
+70039e16
+70005500
+20600000
+6fe080bc
+c28159c0
+c28059e0
+7000551a
+20600000
+6fe0c1cd
+203a59ec
+6fe083a5
+c4018000
+c4010000
+6fe203bc
+d8400064
+98408400
+1c427e00
+98467c00
+24610000
+2020598b
+70005516
+70479a04
+58003030
+67e1479b
+e7e10005
+7003a802
+20205992
+20600000
+6fe080bc
+c280d9f8
+7000551a
+20600000
+6fe080bc
+793ffe01
+67e080bc
+70007c0f
+20600000
+6fe083ab
+207a0000
+70005500
+202059f8
+7000550c
+20600000
+6fe0804b
+c2815a08
+20405931
+70007c08
+20204ca3
+6fe0804b
+793ffe02
+67e0804b
+2040560f
+2040593a
+20204ca3
+58000004
+67e0c79a
+58003030
+e7e10005
+e7e10005
+20600000
+470f4023
+1fe17eff
+1fe67c13
+24215a23
+d8a08070
+98a08a00
+18a22200
+d840003e
+e0408005
+20405a26
+2000001e
+1a220a00
+d840003f
+e0408005
+20205a2a
+d8a080e5
+1fe0ffec
+20205a19
+6ff08085
+1fe17efb
+67f08085
+20600000
+6ff08085
+1fe1fe04
+67f08085
+20600000
+20205bae
+20205bb5
+6ff08085
+1fe17efd
+67f08085
+20600000
+24345a38
+6ff08085
+1fe1fe02
+67f08085
+18427c00
+2022da3b
+1a627a00
+2fcc0000
+20205b1b
+18000404
+da2002eb
+20405a30
+20405a38
+da2055aa
+6fe102eb
+e8410006
+9a267c00
+20600000
+d8400002
+da2002f1
+20405a38
+6fe102f1
+67e102e4
+20545a4d
+20600000
+d8400010
+da2002f3
+20405a30
+20405a38
+d8c002f3
+df200010
+20406ce5
+20406c6c
+20406d01
+20206c66
+58000000
+67e10985
+7856fc00
+20405a3d
+24628000
+70802380
+70802200
+70802400
+da208025
+20405a34
+70802300
+d8400006
+20405a3e
+2422da7e
+efe10006
+98002200
+20405a38
+20405a75
+20205a62
+da20aa55
+6fe102eb
+9a267c00
+24628000
+da2055aa
+6fe102ed
+9a267c00
+24628000
+6fe102ef
+67e10970
+20600000
+6fe10985
+df200006
+d8c002eb
+20407da0
+6f2102ed
+1a220c00
+20407da0
+67e10985
+20600000
+20405a6a
+2022da62
+6fe10970
+68490985
+98467c00
+24628000
+7836fc00
+20600000
+20407d44
+58001000
+67e102e4
+da605cd1
+df200002
+20405a3d
+24628000
+6fe102e4
+1ff0fe00
+9840fe00
+1ff0fe00
+67e102e4
+c2005a8b
+20205a62
+20407d44
+70805025
+78547c00
+58001fd0
+da200a03
+d8400004
+20405dc7
+20405b39
+6fe08a04
+203a5aa3
+1ff18400
+1fe17e0f
+9842fe00
+c087db19
+20405b3e
+58000000
+da200a01
+d8400002
+20405dc7
+6fe10a01
+c303dab3
+70805025
+58001ff0
+da2002f3
+d8400010
+20405dc7
+70800608
+7920002b
+d8c002f3
+20406cf1
+78347c00
+7041e600
+20405b02
+24215b19
+6fe10a01
+1ff0fe00
+d8400fff
+98417e00
+1fe3fe00
+2022dac4
+20405d7d
+da605dcc
+20545a4d
+20405a57
+2436dab4
+6fe082e1
+c3005ab4
+20405ad1
+20405d71
+7041e600
+6fe08a01
+c2835ae8
+20405b02
+24215ad4
+20405ae0
+20405cae
+20405b0d
+2436dac6
+6fe082e1
+c3005ac6
+20205af7
+580001ff
+dfa00000
+20600000
+7041e600
+6fe08a01
+c2835ae8
+20405b02
+24215ae8
+20405ae0
+20405cab
+20405b0d
+2436dad5
+6fe082e1
+c3005ad5
+20205af7
+6fe0c4c8
+6848c4c7
+98467c00
+2422dc94
+7044c602
+7044c701
+7044c800
+20205c94
+7041e600
+6fe08a01
+c282daf7
+20405b02
+24215af7
+20405bff
+200000c8
+20405c0d
+20000064
+da605c41
+20405a46
+20405a57
+2436dae9
+6fe082e1
+c3005ae9
+6fe08a01
+c3025afb
+20405afb
+20204be1
+58000000
+67e402f3
+e7e40005
+18007004
+20406d02
+70805021
+20600000
+20405b08
+6fe0c1e6
+1fe0fe01
+1fe67c03
+67e0c1e6
+20600000
+6fe0c1e6
+207a0000
+6fe08a06
+207a0000
+20207c56
+58000000
+67e102e4
+da605cd1
+20405c7d
+20405a46
+20205a57
+6fe0c1e6
+1fe0fe01
+1fe67c03
+24215b19
+67e0c1e6
+20600000
+20405afb
+20205b7f
+6fe082e1
+1fe3fe00
+7920fe00
+2a2c000f
+20608000
+67e082e1
+20600000
+6ff08085
+c4008000
+20205b28
+6ff0812c
+afefffff
+20608000
+6ff08108
+c300db25
+20406c66
+20205b25
+6fe141a9
+207a0000
+70802380
+70802200
+70802400
+684941ab
+184bf200
+98000c00
+efe08006
+67f08025
+c2005b34
+70802300
+20600000
+6fe08a03
+243a5b3c
+58000004
+67e0c182
+20201535
+6fe08a04
+1fe17e0f
+c0055b4b
+c000db4b
+c0025b4d
+c0045b51
+c004db55
+c005db59
+c0065b4b
+c006db5b
+c0075b5f
+c007db63
+20600000
+20405b67
+20205b89
+dfe037e5
+d8404b2d
+20405b6c
+20205b89
+dfe0328c
+d8403c42
+20405b6c
+20205b89
+dfe0328c
+d84049b8
+20405b6c
+20205b89
+20405b70
+20205b89
+dfe0328c
+d84048cc
+20405b6c
+20205b89
+dfe0366d
+d8404b2d
+20405b6c
+20205b89
+dfe03431
+d8404b2d
+20405b6c
+20205b89
+dfe02715
+d840312b
+20205b6c
+dfe037e5
+d8403c42
+18500400
+9841fe00
+67f2004c
+20205ba0
+dfe0328c
+d8404b2d
+20205b6c
+dfe052b1
+d8405a08
+20205b78
+dfe01c5e
+d840215d
+18500400
+9841fe00
+67f2004c
+20205ba2
+dfe02162
+d8402713
+20205b78
+20405b73
+dfe01c5e
+d840215d
+20205b6c
+6fe08a05
+1fe17ec0
+c0605b7f
+c2835b76
+c283db73
+20600000
+20405b83
+6fe08a05
+1fe1221f
+6fe08a01
+1fe17e0f
+68488a04
+1841040f
+18520400
+9841fe00
+1a2d2200
+9a21fe00
+79207e0d
+79207e0e
+67f2004c
+20405b9a
+70801108
+20600000
+58000002
+37d98200
+67f08012
+37d98200
+37d98200
+20600000
+58000004
+20205b9b
+58000008
+20205b9b
+470fc023
+6fe0c489
+67f08086
+6fe0c48a
+67f08087
+580002e2
+67f1008a
+580002e7
+67f1008c
+20205a26
+79207e07
+67e102e2
+47104024
+70808802
+70808e00
+70800602
+20205bbe
+18000401
+67e082e2
+4710c024
+70808801
+6059008e
+70800602
+20405bbe
+6fe082e7
+20600000
+6fe140dd
+1fe0fe01
+67e140dd
+6ff0812c
+c301dbbe
+20600000
+78547c00
+1fe22400
+6fe0c4b1
+c1800000
+78347c00
+1a427e00
+20205bd2
+6fe0c4b1
+c000dbd2
+c0015bd8
+c001dbe0
+c0025be4
+c002dbea
+20600000
+67e1c4aa
+1a227e00
+67e144ad
+604944af
+7044b102
+20205bff
+20405bff
+7044b103
+20405c04
+da2002e2
+70808804
+6fe1c4aa
+d8400020
+20205c15
+20405bff
+20405c38
+7044b104
+20600000
+20405bff
+7044b105
+20405c04
+20405bf7
+20405c11
+20205bf2
+20405bff
+20405c04
+58000005
+20405bb5
+c3800000
+7044b100
+6fe14476
+20207d47
+6fe20964
+684944ad
+184085fc
+e7e20002
+20600000
+684944ad
+18422200
+184085fc
+efe20002
+67e20964
+684944af
+6fe1c4aa
+20600000
+20405c63
+20405a26
+58000000
+67e202e2
+20600000
+7002e206
+58000000
+67f1008e
+58000001
+67f10088
+580002e2
+67f1008a
+70800602
+20205bbe
+7002e2ab
+20205c05
+7002e2b9
+20205c05
+18408404
+60590088
+d8400002
+1a20a3fc
+e0408011
+1ff10400
+e0408005
+1fec8400
+e0408005
+e7e08005
+1a227e00
+67f1008a
+58000000
+67f1008e
+70800602
+20405bbe
+20205c38
+6059008e
+1ff10400
+604882e3
+1fec8400
+604882e4
+67e082e5
+58000004
+67f10088
+7002e203
+580002e2
+67f1008a
+1a227e00
+67f1008c
+6ff08086
+2a2c000f
+7920fe06
+67f08086
+70800602
+6ff0812c
+c283dc34
+d8e00003
+20205bbe
+580007d0
+2040137d
+20405c04
+580002e7
+67f1008c
+58000005
+20405bb5
+c2805c38
+20600000
+6059008e
+58000004
+67f10088
+7002e203
+580002e2
+67f1008a
+1a227e00
+67f1008c
+6ff08086
+2a2c000f
+7920fe06
+67f08086
+70800602
+6ff0812c
+c283dc4e
+d8e00003
+20405b22
+20405bbe
+2feffe02
+20405b1b
+6fe082e3
+1ff02400
+6fe082e4
+1fed7e00
+9a41a400
+6fe082e5
+9a41fe00
+9840fe00
+67e082e5
+1fecfe00
+67e082e4
+1fecfe00
+67e082e3
+20600000
+6fe0c4ba
+6848c4bc
+98467c00
+2422dc68
+20405c74
+6fe0c4ba
+d8400020
+20405fb3
+6fe0c4bd
+d8400021
+20405fb3
+6fe0c4bb
+d8400022
+20405fb3
+6fe0c4bc
+d840001f
+20205fb3
+7044ba0f
+7044bb10
+7044bc12
+7044bd14
+7044be11
+7044bf15
+20600000
+70801001
+20600000
+70809105
+70809207
+70809307
+70809407
+70809507
+70809605
+70809700
+20600000
+7080910c
+7080920d
+7080930d
+7080940d
+7080950d
+7080960c
+70809700
+20600000
+20405cc2
+6fe0c4c7
+d840006c
+20405fb3
+6fe0c4c8
+d840006d
+20205fb3
+20405cc9
+20205c8e
+6ff0812c
+c302dc96
+20600000
+67e082e6
+580002e6
+67f1009a
+58000001
+67f10098
+6059009e
+6231009c
+70809001
+70800604
+20205c96
+58000000
+67f1009e
+67f1009c
+60590098
+6231009a
+70809001
+70800604
+20205c96
+79200028
+70448808
+20600000
+793f8028
+70448820
+20600000
+6fe0c47e
+9a40fe00
+67e082e4
+20205cb8
+6fe102e4
+1ff0fe00
+67e082e4
+58000003
+67f10098
+7002e3a0
+7002e5a1
+20205cd7
+60490964
+20405cc2
+68490964
+20405cf1
+20205cc9
+6fe0c4c6
+c17f8000
+c3035cc7
+580249f0
+2040137d
+6848c4c6
+20205f8d
+6848c4c6
+20205f89
+47114024
+c5145cb1
+6fe1447e
+9a40fe00
+1ff0fe00
+67e102e4
+4711c024
+c5145cb5
+58000004
+67f10098
+7002e3a0
+7002e6a1
+580002e3
+67f1009a
+6059009e
+6231009c
+58000002
+2a2c000f
+7920fe00
+67f08090
+70800604
+d8e00005
+20405b22
+20405c96
+2feffe04
+20405b1b
+c5145cec
+6fe102e4
+1ff0fe00
+9840fe00
+1ff0fe00
+67e102e4
+20600000
+6fe082e4
+9840fe00
+1ff0fe00
+67e102e4
+20600000
+6fe1447e
+9a40fe00
+67e1095c
+47124024
+60490964
+6221097b
+20405d06
+68490974
+6a21097b
+6fe1095c
+20405d27
+6fe10974
+6849097b
+98408400
+6049097b
+6849095c
+98408400
+6049095c
+6fe10964
+243a5cf7
+20600000
+4712c024
+6fe0c488
+1fe0ffff
+6849095c
+9841fe00
+1fe0fe01
+67e18978
+6fe10964
+9840fe00
+68498978
+98467e00
+24215d18
+67e10964
+6fe18978
+6849095c
+98467e00
+67e10974
+20600000
+6fe10964
+67e10974
+58000000
+67e10964
+20600000
+1a427e00
+18408402
+60590098
+1a20a3fe
+e8418011
+18422400
+d84000a0
+e0408011
+e7e08005
+20205d34
+1fe22400
+47134024
+c5145d1d
+1a427e00
+18408403
+60590098
+1a20a3fd
+e8418011
+18422400
+d84000a0
+e0408011
+1ff0fe00
+e7e10005
+6231009a
+58000000
+67f1009e
+70809001
+70800604
+20405c96
+e2418011
+4713c024
+7002e600
+58000001
+67f10098
+7002e3a0
+580002e3
+67f1009a
+58000000
+67f1009e
+67f1009c
+58000003
+67f08090
+70800604
+20405c96
+6ff0812c
+c4030000
+200005dc
+6fe082e6
+1fe0fe01
+67e082e6
+1fe67c28
+24610000
+20205d3d
+708aa004
+708aa133
+708aa201
+20205d59
+708aa00c
+708aa1fb
+708aa203
+67e1096c
+708a01ff
+6ff08a0b
+67e0896e
+1fe1fe04
+67f08a0b
+6ff08a13
+67e0896f
+708a1311
+200003e8
+6ff08a02
+1fe1fe01
+67f08a02
+708a0003
+6ff08aa0
+1fe1fed0
+67f08aa0
+200003e8
+6ff08aa0
+1fe1fe20
+67f08aa0
+200003e8
+6fe1096c
+20600000
+70804783
+708aa004
+708aa143
+708aa201
+6ff08a02
+1fe17efe
+67f08a02
+6fe0896e
+67f08a0b
+6fe0896f
+67f08a13
+20600000
+1fe9fe00
+67f10045
+7080e200
+7080dc00
+20600000
+20405d52
+18427e00
+20405d7d
+20405db1
+e8408011
+1a20a201
+18000e00
+a84c0000
+2020dda8
+6ff080dc
+79207e06
+79207e07
+67f080dc
+70804702
+70804782
+793ffe07
+67f080dc
+7080478a
+2000000b
+708047ca
+20000021
+7080474a
+2000002c
+708047ca
+20000016
+7080478a
+20000021
+70804782
+20000001
+70804792
+2000000a
+708047b2
+6ff08007
+70804792
+20000001
+70804782
+afec0000
+2020dd89
+6ff10045
+1fe0fe01
+67f10045
+18e08e01
+28e01e08
+2420dd89
+c2005d86
+70804783
+20205d71
+70804783
+70804782
+2000000c
+70804780
+70804782
+20000096
+20600000
+20405db1
+708047a2
+1a227e00
+67f100df
+605900e1
+685880dc
+2fec000f
+79208405
+79200404
+605880dc
+70800701
+20600000
+6ff0812c
+c300ddc4
+20600000
+20405d56
+20405d7d
+20405db8
+20405dc4
+20205d71
+20405d56
+6ff10124
+67f10045
+20405db8
+d8e00001
+20405b22
+20405dc4
+2feffe00
+20405b1b
+20205d71
+20407d92
+20205dda
+20407d94
+20205dda
+1ff10400
+20545e0d
+24545e11
+1fef7e00
+1ff10400
+20545e05
+24545e09
+24345de6
+6ff10050
+793ffe0f
+67f10050
+20600000
+6ff10050
+793ffe0e
+67f10050
+20600000
+67f10052
+20600000
+67f10062
+20600000
+20405df2
+20205dea
+20405df2
+20205dec
+20405df7
+9846fc00
+20407d31
+1807fe00
+20600000
+6ff08043
+c3005dfb
+5adc6c00
+20600000
+596e3600
+20600000
+6ff08043
+1fe17efe
+67f08043
+20600000
+6ff08043
+1fe1fe01
+67f08043
+20600000
+67f1005a
+67f1005e
+6059005c
+20600000
+67f1006a
+67f1006e
+6059006c
+20600000
+67f10054
+67f10058
+60590056
+20600000
+67f10064
+67f10068
+60590066
+20600000
+6951005a
+6a11005c
+6871005e
+20600000
+6951006a
+6a11006c
+6871006e
+20600000
+69510054
+6a110056
+68710058
+20600000
+69510064
+6a110066
+68710068
+20600000
+6071005e
+20600000
+6071006e
+20600000
+60710058
+20600000
+60710068
+20600000
+20405e1d
+6ff10112
+98608600
+20205e29
+20405e21
+6ff10158
+98608600
+20205e2b
+20405e3d
+20205e15
+20405e3d
+20205e19
+20405e25
+20205e41
+20405e27
+20205e41
+60610983
+61410981
+6201097f
+20600000
+68610983
+69410981
+6a01097f
+20600000
+1f227e00
+207a0000
+1f20f3f8
+20415e53
+20628000
+20215e47
+1f20f208
+1f20f3fc
+20415e56
+20628000
+20215e4c
+1f20f204
+20205e59
+20405e53
+efe40006
+e7e40003
+20600000
+efe20006
+e7e20003
+20600000
+1f227e00
+207a0000
+efe08006
+e7e08003
+c2005e5b
+20600000
+1f227e00
+207a0000
+1f20f3f8
+20415e6d
+20628000
+20215e61
+1f20f208
+1f20f3fc
+20415e70
+20628000
+20215e66
+1f20f204
+20205e73
+20405e6d
+efe40003
+e7e40005
+20600000
+efe20003
+e7e20005
+20600000
+1f227e00
+207a0000
+efe08003
+e7e08005
+c2005e75
+20600000
+70095b3d
+202077a7
+47144025
+6fe0c48e
+207a0000
+20405f20
+2042df26
+20407d98
+20405eaf
+6fe0c48e
+1fe22600
+6849448c
+604900ee
+1a627e00
+203a5e79
+1a60a7ff
+18422200
+efe08011
+684880e6
+98467c00
+2042de96
+20215e92
+efe08011
+1fe0fe01
+e7e08011
+684900ee
+18408422
+604900ee
+20205e86
+58000000
+e7e08011
+6fe080e7
+e7e08005
+c099dea4
+da4041ce
+efe30006
+e7e40005
+58000000
+e7e40005
+1a420c00
+20407c4c
+18007c01
+20600000
+c01b5ea8
+c01bdeac
+da404319
+20205e9c
+d8c043af
+20407c4c
+d8c04319
+20205ea1
+d8c043a7
+20407c4c
+20205eaa
+20407d94
+6fe0c48e
+207a0000
+4714c025
+6fe14793
+c2805ed2
+c4048000
+6fe0c36d
+c0005ecb
+6fe0829c
+2fe180c0
+2020debe
+2fe18040
+2020ded0
+20205ec5
+20365ec2
+6fe0c351
+c300decb
+20205ec5
+20405ecb
+20740000
+20205ec5
+6fe0c3a0
+c283dec8
+20205ece
+6fe30297
+67e443a7
+20205ece
+7000e735
+6fe30297
+20205ed4
+7000e737
+20205ed4
+7000e736
+20205ed4
+7000e733
+6fe30040
+67e300e8
+6fe1448c
+e840803f
+1fe0fe01
+67e100ee
+604880e6
+6fe0c48e
+1fe22600
+6fe100ee
+1fe22200
+20405eec
+20740000
+684900ee
+18408422
+604900ee
+184085ff
+efe08002
+67e080e6
+1a60a7ff
+2422dedc
+6fe0c48e
+1fe0ffff
+67e080e6
+20600000
+6fe080e7
+c099def3
+da4000e7
+df200007
+20407d33
+2022fd92
+20600000
+c01b5ef6
+c01bdf11
+20205eee
+e8408011
+98467c00
+24628000
+d8a0098e
+df200010
+20407c68
+6fe1829a
+67e1898e
+20405f08
+6fe109ab
+1ff0fe00
+1fed0400
+efe08006
+9840fe00
+68498297
+98467c00
+2022fd92
+20600000
+d8c0098e
+20406cf3
+efe08011
+20406cf4
+18006c38
+18006c00
+20406c61
+d8a0099e
+20206d07
+e8408011
+98467c00
+24628000
+18c22200
+18c0a608
+da4043a7
+df200008
+20407d33
+2022fd92
+1a622200
+da4043af
+df200008
+20407d33
+2022fd92
+20600000
+6fe1448c
+e840803f
+1fe0fe22
+efe0803f
+98467c00
+20600000
+6fe0c48e
+1fe27200
+6849448c
+58000000
+e7e08002
+18408422
+1fe0fe01
+c2005f2a
+20600000
+47154025
+20407d96
+20405eaf
+6fe08030
+79347e06
+67e08030
+24345f3a
+1a208c0a
+d8a041ce
+20407c4c
+20205f50
+7041cd00
+20600000
+20407d96
+20405eaf
+24345f47
+6fe100ee
+1fe08c01
+d8a043af
+20407c4c
+d8a04319
+20407c4c
+70432901
+20600000
+70432900
+20600000
+7000e734
+20205f4c
+7000e733
+6fe0c09a
+c0055e7b
+c00444a1
+20600000
+6fe441ce
+684c41d6
+9841fe00
+207a0000
+7041cd01
+20600000
+4715c025
+79200407
+20405f7d
+7d208407
+47164025
+18467cff
+20628000
+284c0007
+18410e1f
+6fe2009e
+f920fe00
+67e2009e
+6fe200a2
+fd20fe00
+67e200a2
+20600000
+4716c025
+18467cff
+20628000
+284c0007
+18410e1f
+6fe2009e
+f93ffe00
+67e2009e
+6fe200a2
+f93ffe00
+67e200a2
+20600000
+20405f66
+20205f77
+18467cff
+20628000
+2455df5a
+20405fa6
+58000000
+284ffe07
+7d20fe06
+7920fe07
+20205fa1
+d8a0811c
+18410e07
+18497e00
+1fe17e03
+98a08a00
+efe08005
+284ffe07
+2020df87
+afec0000
+20600000
+afefffff
+20600000
+18467cff
+20628000
+2fcffe07
+20205f90
+18467cff
+20628000
+2fcc0007
+58000000
+7d20fe07
+98428400
+20405fa6
+5800003f
+284ffe07
+7920fe00
+20205fa1
+20405fa6
+efe08005
+c2805f9d
+284c0007
+20600000
+284ffe07
+20600000
+20405fa6
+580000c0
+e7e08005
+20600000
+20405fa6
+58000000
+20205fa1
+18417e3f
+1fe67c13
+24215fac
+d8a08070
+98a08a00
+20600000
+d8a080e5
+1fe0ffec
+20205faa
+1fe104ff
+1fecfe00
+20205fb3
+c4038000
+1fe17e3f
+1fe67c13
+24215fba
+d8a08070
+98a08a00
+e0408005
+20600000
+d8a080e5
+1fe0ffec
+20205fb7
+1841043f
+58008070
+98408c00
+efe08006
+20600000
+df200014
+d8c08070
+18c20a00
+efe08006
+c0015fdb
+c001dfdb
+c0025fdb
+c002dfdb
+c0035fdb
+c003dfdb
+c00fdfdb
+c0105fdb
+c010dfdb
+c0115fdb
+c011dfdb
+c0165fdb
+c016dfdb
+c0005fdb
+c2005fc4
+dfe080e8
+98c67c00
+20628000
+df200003
+d8c080e5
+20205fc4
+58000040
+e7e08005
+20205fd4
+58000080
+e7e08005
+20205fd4
+47174025
+58001fe0
+da204495
+d840000c
+20405dc7
+6fe44495
+247a0000
+5800469a
+67e14495
+5800ab77
+67e1449b
+580073d0
+67e1449f
+58009658
+67e14499
+20600000
+4717c025
+6a508a12
+708a123d
+708a11aa
+708a0a0c
+6ff08a09
+79207e07
+67f08a09
+708a0b04
+2000003c
+708a1600
+708a1706
+2040600d
+67f08a97
+7080dc03
+2000003c
+6ff08053
+79207e07
+67f08053
+200003e8
+6ff10150
+67e144a7
+6ff08053
+793ffe07
+67f08053
+708a9700
+62508a12
+20600000
+6fe0c4a5
+c0006014
+c000e016
+6fe0c4a6
+1fe9fe00
+1fe1fe07
+20600000
+58000057
+20600000
+5800004f
+20600000
+47184026
+6fe0c4a5
+c000601e
+c000e024
+c001602a
+20600000
+58000064
+67e144a3
+6849449f
+6fe14499
+da60012c
+2020602f
+58000064
+67e144a3
+6849449d
+6fe14497
+da60012c
+2020602f
+580000c8
+67e144a3
+68494495
+6fe1449b
+da60012c
+98462200
+6fe144a7
+98467e00
+2421603c
+684944a3
+984fa400
+1a627e00
+9a2ffe00
+9a467e00
+9a26fc00
+20407d31
+1807fe00
+20600000
+18427e00
+684944a7
+98467e00
+684944a3
+984fa400
+1a627e00
+9a2ffe00
+9a40fe00
+20206038
+efe40011
+67e4095c
+6fe1095c
+6849095e
+98462200
+6fe10962
+98462400
+68490960
+98467c00
+24416055
+1a4ffe64
+9a26fc00
+20407d31
+1807fe00
+205a605d
+20600000
+6fe0c4a9
+79207e00
+67e0c4a9
+20600000
+6fe0c4a9
+793ffe00
+67e0c4a9
+20600000
+6848c4a9
+79200401
+6048c4a9
+20600000
+6848c4a9
+793f8401
+6048c4a9
+20600000
+6fe144cb
+efe0803f
+207a0000
+1fe27200
+6fe144cb
+1fe0fe03
+1fe22200
+e8408011
+20405f74
+1a20a201
+c200606c
+20600000
+6fe144cb
+1fe0fe03
+1fe22200
+18002400
+58000000
+67e109de
+e8408011
+20405f7d
+4718c026
+6fe109de
+1a420e00
+f920fe00
+67e109de
+1a20a201
+1a40a401
+6fe144cb
+efe0803f
+9a42fc00
+2422e077
+6fe109de
+684944cd
+9842fc00
+20628000
+78347c00
+20600000
+6fe144cb
+efe0803f
+207a0000
+1fe27200
+6fe144cb
+1fe0fe03
+1fe22200
+e8408011
+20405f56
+1a20a201
+c2006091
+20600000
+d8e00009
+20407cb6
+247a0000
+58000020
+d8e00009
+20407ca8
+78547c00
+2040608a
+47194026
+6fe144cb
+efe0803f
+207a0000
+20406071
+24347720
+2040771e
+78547c00
+6fe109de
+67e109e5
+7009e700
+18000e00
+6fe144cd
+1fe30400
+604944cd
+1fe17e01
+684909e5
+18412201
+18430400
+604909e5
+9a22fc00
+2442e0bf
+6fe144cb
+efe0803f
+684889e7
+18408401
+604889e7
+18420e00
+98e2fc00
+2422e0aa
+6fe109de
+67e144cd
+20600000
+4719c026
+6fe144cb
+1fe0fe01
+efe1003f
+20207d47
+6ff08042
+9a21fe00
+67f08042
+6ff10050
+793ffe0d
+67f10050
+20000064
+20600000
+6ff08042
+c28360d1
+c283e0d3
+58b71b00
+20600000
+596e3600
+20600000
+580080e8
+20600000
+6849895e
+204060cc
+9846fc00
+20407d31
+18078400
+6fe08961
+984ffe00
+1fe6fc64
+20407d31
+1807a200
+18427e00
+9a262400
+6fe0895d
+204060e9
+6fe0895c
+6848895d
+1841040f
+184d0400
+9841fe00
+20206129
+98000e00
+204060f7
+202060ec
+6ff080e4
+f9207e00
+67f080e4
+68588042
+284ffe07
+2040e0f5
+f93ffe00
+67f080e4
+20600000
+200001e0
+20600000
+1fe17e0f
+d8a080a0
+1feffe04
+98a08a00
+1a227e00
+e7e10005
+1a427e00
+e7e10005
+20600000
+1a4c8e00
+2040611e
+1a4c8e00
+20406118
+1a2c8e00
+7820fc00
+20406119
+1a227e00
+20406124
+1a427e00
+20206129
+1a227e00
+2040612c
+1a427e00
+2040612c
+1a2c8e00
+7840fc00
+20406119
+1a4c8e00
+7840fc00
+2040611f
+1a4c8e00
+7840fc00
+20206119
+28effe07
+18e10e0f
+6ff080dd
+f920fe00
+67f080dd
+20600000
+28effe06
+18e10e0f
+6ff080d8
+f920fe00
+67f080d8
+20600000
+20406134
+1fed7e00
+18e08410
+9841fe00
+20205faf
+78347c00
+20406124
+2020612f
+78547c00
+20406134
+2020612f
+18e10e0f
+6ff08084
+f9347e00
+67f08084
+20600000
+1fec8e00
+18e10e0f
+20600000
+d8402710
+984ffe00
+d841312d
+9846fc00
+20407d31
+18078400
+58000800
+98467e00
+1fe20400
+1841040f
+6058800b
+1fe20400
+18518400
+60588004
+20600000
+78367c00
+20206149
+78567c00
+6ff08043
+79367e03
+67f08043
+20600000
+d8400031
+67f200ca
+67f100ce
+605880d0
+20600000
+6ff10130
+20600000
+687100ce
+695100ca
+6a1100cc
+20600000
+607100ce
+20600000
+20407d92
+dd600000
+20406152
+c001619c
+1fe67c04
+20610000
+20406154
+e8410003
+5800a654
+204061a5
+2421618a
+1b020400
+58017f8e
+204061a5
+2421618a
+1b020400
+58002328
+204061a5
+20216181
+e8410003
+58001194
+204061a5
+20216181
+20406152
+1fe67c85
+20610000
+df200020
+e8410003
+58000230
+204061a5
+20216181
+e8410003
+5800069a
+204061a5
+24216186
+1b020400
+58000230
+204061a5
+24216187
+1b020400
+5800ffff
+98467c00
+2022e1a1
+20206158
+79205620
+1d635600
+c2006175
+20206195
+20406152
+1fe67c07
+20610000
+e8410003
+58002328
+204061a5
+20216181
+e8410003
+580008ca
+204061a5
+20216181
+e8410003
+58000230
+204061a5
+20216181
+20406158
+1a627e00
+20207d47
+20406154
+e8410003
+5800ffff
+98467c00
+24628000
+20406158
+20407d94
+1a627e00
+20207d47
+6a40c4d9
+18423000
+9a4fa400
+18438400
+98462200
+244161ae
+1a2ffe64
+9a467c00
+20600000
+1a262200
+20600000
+7041f318
+70804201
+58001d4b
+67f10040
+df20000b
+da200155
+efe10011
+1fe3fe00
+e7e10011
+1a20a202
+c20061b6
+20600000
+1b63b600
+20600000
+70804204
+7041f30c
+58000ea5
+67f10040
+20600000
+70804205
+202061bf
+20758000
+70465900
+7003c003
+7003c103
+7003c511
+7003c613
+58000000
+67e183c2
+67e0c4eb
+70479200
+58000000
+67e0c4eb
+67e0c656
+67e0c64f
+6fe0c65d
+c000e1d7
+70465b50
+20600000
+70465b00
+20600000
+18418402
+20600000
+18427e00
+1fedfe00
+67e0c654
+18007e3f
+1fedfe00
+67e0c653
+18007e01
+1fedfe00
+67e0c652
+20406211
+18427e00
+20600000
+1fedfe00
+67e0c654
+18007e73
+1fedfe00
+67e0c653
+18007e01
+1fedfe00
+67e0c652
+20206211
+6fe0c655
+203a61f4
+58000070
+20600000
+580000aa
+20600000
+1fedfe00
+67e0c654
+18007eef
+20406205
+684903ca
+18420a00
+e7e08005
+18a20400
+604903ca
+18007eff
+20406205
+684903ca
+18420a00
+e7e08005
+20600000
+1fedfe00
+67e0c653
+6fe14653
+1fed7e00
+67e183c7
+da200107
+da40000f
+2040621e
+1fe2fed7
+1fe47e00
+1fedfe00
+20600000
+6fe1c652
+67e183c7
+da200107
+da40000f
+2040621e
+1fed7e00
+da400007
+2040621e
+1fe2fe2b
+1fe47e00
+1fedfe00
+1fe20400
+20600000
+da600000
+1a427200
+20407bfb
+1fe20400
+18427e00
+1a63a600
+c3046227
+9a228400
+1a60a601
+18438400
+6fe183c7
+1a40a5ff
+2a41feff
+2020e231
+1a427200
+20407bfb
+2feffe00
+79208400
+20206222
+18437e00
+20600000
+6848c64f
+184b8400
+79200400
+6fe0c655
+245a61d9
+604883e0
+20600000
+18438400
+6fe0c655
+793a0400
+20600000
+684883cf
+7003d1d7
+20406377
+6fe0c4e8
+79207e06
+79207e07
+67e0c4e8
+70465500
+20206358
+6fe0c4e8
+79207e07
+67e0c4e8
+20206358
+471a4026
+6fe0c792
+c000624f
+2020630d
+6fe10315
+1fe20c00
+20406279
+6fe083cf
+c0006255
+202062d9
+471ac026
+6fe083d0
+c01fe23e
+c039e247
+c077e25c
+c029e305
+20600000
+6fe103d4
+1fe20c00
+20406284
+6fe083d6
+c020e266
+c020626e
+c038e2a7
+c03862b3
+c024e2be
+20206358
+20406270
+20206268
+6fe0c4eb
+79207e00
+79207e01
+67e0c4eb
+204063a1
+20206358
+20406270
+20206358
+2040628c
+20206298
+2040628c
+efe08006
+1fe97e00
+67e0c65c
+efe08006
+67e083db
+20600000
+efe08006
+67e083ce
+1fe97e00
+67e083cf
+efe08006
+67e083d0
+2040628f
+604903d2
+18c27e00
+67e103d4
+20600000
+efe08006
+1fe37e00
+67e083d6
+2040628f
+604903d7
+18c27e00
+67e103d9
+20600000
+6fe103d9
+1fe20c00
+20600000
+efe08006
+1fe20400
+18430400
+c3800000
+efe08006
+1fe9fe00
+1ff27e00
+98408400
+20600000
+efe08006
+67e0c64f
+efe08006
+67e083dc
+efe08006
+67e083dd
+efe08006
+67e083de
+efe10006
+67e14650
+efe08006
+67e083df
+efe08006
+67e0c65a
+20600000
+20406272
+202062a9
+6fe0c4eb
+79207e05
+79207e06
+67e0c4eb
+6848c64f
+184b8400
+18418403
+204063d2
+70465903
+20206358
+70095b08
+204077a7
+20406272
+6fe0c65c
+1fe67c01
+2022e2ba
+2020137a
+6fe0c4eb
+79207e07
+67e0c4eb
+20206358
+2040628c
+efe08006
+67e0898e
+20405242
+20405250
+5800000e
+e7e10005
+6fe144e1
+e7e10005
+6fe0c655
+1fe3fe00
+79207e00
+e7e08005
+471b4026
+580015ef
+e7e10005
+58001191
+e7e10005
+6fe0898e
+e7e08005
+58000007
+e7e28005
+58000001
+e7e10005
+204061f0
+e7e08005
+20600000
+202062da
+471bc026
+6fe083d0
+c039e2e2
+c01fe2e6
+c077e300
+c07fe2f8
+c029e307
+20600000
+6fe0c4eb
+79207e03
+67e0c4eb
+20206358
+6fe0c4eb
+79207e03
+79207e02
+67e0c4eb
+6fe083ce
+204061e7
+67e083d1
+20406377
+6fe083ce
+1feb7e00
+67e0c64f
+1febfe00
+793ffe01
+79207e00
+d8404657
+604903ca
+204061f6
+20206358
+6fe103d4
+1fe20c00
+1fe0fe01
+67e103d4
+efe08006
+6848c65a
+9840fe00
+67e0c65a
+20406403
+20406233
+204063e9
+2040640c
+20206358
+70095b09
+204077a7
+204061cf
+6fe083ce
+204061e7
+67e083d1
+20406377
+20206358
+6fe10315
+1fe20c00
+20406279
+6fe083cf
+c0006313
+20206347
+471c4027
+6fe083d0
+c01fe23e
+c039e247
+c077e319
+20206358
+6fe103d4
+1fe20c00
+20406284
+6fe083d6
+c020e322
+c0206322
+c038e32d
+c038633d
+20206358
+20406270
+6fe0c64f
+1fe37e00
+6848c656
+98467c00
+2022e329
+2020137a
+6fe0c4eb
+79207e01
+67e0c4eb
+20206358
+20406272
+6fe0c65c
+6848c656
+98467c00
+2022e334
+2020137a
+20206358
+6fe0c4eb
+79207e05
+79207e06
+67e0c4eb
+6848c64f
+184b8400
+18418403
+204063d2
+20206358
+20406272
+6fe0c65c
+6848c656
+98467c00
+2022e343
+2020137a
+6fe0c4eb
+79207e07
+67e0c4eb
+20206358
+6fe083cf
+6848c656
+98467c00
+2022e34d
+2020137a
+20206358
+6fe083d0
+c039e352
+c077e300
+c07fe2f8
+c029e357
+6fe0c4eb
+79207e03
+67e0c4eb
+20206358
+20206356
+20206307
+20600000
+6fe0c659
+207a0000
+c001e35d
+2020137a
+70465900
+20405242
+d8400001
+6848c64f
+184b8400
+18418403
+da2000aa
+204063bd
+20405250
+18a20c00
+efe10006
+203a137a
+20600000
+20405250
+58000004
+e7e10005
+6fe144e1
+e7e10005
+6fe083ce
+e7e08005
+471cc027
+5800013f
+e7e10005
+6fe083d1
+e7e08005
+20600000
+20405242
+20405250
+58000004
+e7e10005
+6fe144e1
+e7e10005
+6fe083ce
+e7e08005
+471d4027
+58000173
+e7e10005
+6fe083d1
+e7e08005
+20600000
+20405250
+5800000e
+e7e10005
+6fe144e1
+e7e10005
+6fe0c655
+1fe3fe00
+79207e00
+e7e08005
+471dc027
+580015ef
+e7e10005
+58001183
+e7e10005
+18427e00
+e7e08005
+580000f0
+e7e18005
+5800007f
+e7e10005
+58000000
+e7e08005
+58000001
+e7e08005
+204061f0
+e7e08005
+70465b10
+20600000
+20405242
+20405250
+5800000e
+e7e10005
+6fe144e1
+e7e10005
+6fe0c655
+1fe3fe00
+79207e00
+e7e08005
+471e4027
+580015ef
+e7e10005
+58001181
+e7e10005
+6fe0c64f
+e7e08005
+580000e0
+e7e18005
+6fe1465e
+e7e10005
+58000000
+e7e08005
+6fe0c660
+e7e08005
+204061f0
+e7e08005
+20600000
+20405250
+58000008
+e7e10005
+6fe144e1
+e7e10005
+6fe0c655
+1fe3fe00
+79207e00
+e7e08005
+471ec027
+580009ef
+e7e10005
+580005e3
+e7e10005
+18427e00
+e7e08005
+5800008d
+e7e08005
+204061f0
+e7e08005
+20600000
+20405242
+20405250
+58000008
+e7e10005
+6fe144e1
+e7e10005
+18421600
+6fe0c655
+1fe3fe00
+79207e00
+e7e08005
+471f4027
+580009ef
+e7e10005
+580005e1
+e7e10005
+19627e00
+e7e08005
+5800008d
+e7e08005
+204061f0
+e7e08005
+20600000
+471fc027
+6fe0c65b
+207a0000
+6ff10112
+247a0000
+1a227e00
+67e0895d
+6048895c
+2040520e
+247a0000
+20405242
+20405250
+58000005
+e7e10005
+6fe144e1
+e7e10005
+6fe083e0
+e7e08005
+580001ff
+e7e10005
+6fe0c65b
+e7e08005
+6fe0c658
+e7e08005
+70465b00
+20600000
+47204028
+6fe0c65d
+c1008000
+6fe103d2
+207a0000
+6fe0c65b
+1fe0fe01
+67e0c65b
+20600000
+6fe14661
+20207d47
+4720c028
+6fe0c65a
+207a0000
+1fe0ffff
+67e0c65a
+6fe14650
+684947b0
+98467c00
+20216418
+67e147b0
+6fe0c65b
+203a6420
+7003e301
+6fe0c658
+67e083e2
+580000ff
+67e083e1
+20206425
+7003e300
+6fe0c657
+67e083e2
+580000ef
+67e083e1
+47214028
+6fe147b0
+1fe67c7f
+2021642c
+6fe083e3
+1fe0fe01
+67e083e3
+20406233
+6fe147b0
+1fe0fe08
+684883e3
+9840a200
+204051ba
+67e10328
+1fe0fe04
+67e1032a
+1fe20a00
+6fe083e0
+e7e08005
+6fe083e1
+e7e08005
+20406456
+20406467
+4721c028
+6fe14663
+1fe20600
+6fe147b0
+1fe27200
+20405e5f
+18a20400
+18627e00
+67e14663
+18420a00
+6fe083e2
+e7e08005
+6fe10328
+1fe20a00
+6fe147b0
+684883e3
+9840fe00
+1fe0fe04
+e7e10005
+6fe144e1
+e7e10005
+70465b00
+6fe14665
+c000393a
+7009d100
+20600000
+47224028
+6fe147b0
+1fe67c7f
+2421645e
+1fe3fe00
+79207e00
+e7e08005
+20600000
+6fe147b0
+1fe97e00
+1ff18400
+1fe17e7f
+1fe3fe00
+793ffe00
+e7e08005
+e0408005
+20600000
+6fe0c65b
+207a0000
+e7e08005
+20600000
+4722c028
+204077bd
+20403157
+2040595d
+47234028
+20406fa2
+20406f7b
+20406f8c
+2040520e
+247a0000
+20404d21
+2040520e
+247a0000
+4723c028
+204064b5
+20404edf
+20406359
+2040647f
+47244029
+20203153
+6fe08330
+c2805002
+c283d00c
+20600000
+4724c029
+20405214
+207a0000
+6fe0804b
+c3830000
+204051f8
+67e100be
+1fe20c00
+efe10006
+1fe0fe04
+67e141e9
+7041e806
+47254029
+6fe144dd
+203a649e
+6fe0804b
+c4038000
+793ffe07
+67e0804b
+7041e805
+684944dd
+6fe100be
+9840fe00
+67e100be
+6fe141e9
+98467e00
+67e141e9
+6fe141e9
+203a137a
+d8400104
+98467e00
+2022e4a9
+242164a9
+604941e9
+6fe144dd
+9840fe00
+67e144dd
+202064ab
+58000000
+67e144dd
+6fe0804b
+79207e06
+67e0804b
+20600000
+6fe0c795
+c28064b3
+70033801
+20600000
+7003380f
+20600000
+6fe0c792
+243a64bb
+6fe08337
+207a0000
+70033700
+20600000
+4725c029
+6fe08338
+207a0000
+c000e4db
+c0016534
+c001e4e1
+c0026538
+c01de4eb
+c01e653b
+c006e4f0
+c0076540
+c007e4f3
+c0086546
+c008e4f9
+c009654a
+c009e4ff
+c00a654e
+c00ae505
+c00b6552
+c00be50b
+c00c6557
+c00ce511
+c00d655b
+c00de517
+c00e655f
+c00ee51d
+c00f6564
+c00fe523
+c0106568
+c010e52e
+c011656c
+20600000
+20406577
+70033802
+6fe0c4e7
+79207e00
+67e0c4e7
+20600000
+70033804
+6fe0c4e7
+c3810000
+70033803
+2040657e
+70033804
+6fe0c4e7
+79207e02
+67e0c4e7
+20600000
+20405214
+247a0000
+2040658d
+7003383c
+20600000
+20406583
+7003380e
+20600000
+2040659d
+70033810
+6fe0c4e9
+79207e00
+67e0c4e9
+20600000
+204065a4
+70033812
+6fe0c4e9
+79207e02
+67e0c4e9
+20600000
+204065a9
+70033814
+6fe0c4ea
+79207e00
+67e0c4ea
+20600000
+204065b0
+70033816
+6fe0c4ea
+79207e02
+67e0c4ea
+20600000
+20406591
+70033818
+6fe0c4e8
+79207e00
+67e0c4e8
+20600000
+20406598
+7003381a
+6fe0c4e8
+79207e02
+67e0c4e8
+20600000
+204065b5
+7003381c
+6fe0c4e8
+79207e06
+67e0c4e8
+20600000
+204065bc
+6fe0c4eb
+79207e00
+67e0c4eb
+7003381e
+20600000
+204065c2
+6fe0c4eb
+79207e02
+67e0c4eb
+70033820
+6fe0c656
+1fe9fe00
+1fe1fe03
+d8404657
+604903ca
+202061f6
+204065cc
+6fe0c4eb
+79207e04
+67e0c4eb
+70033822
+20600000
+6fe0c4e7
+c4008000
+70033803
+202064bb
+6fe0c4e7
+c19f8000
+7003383b
+6fe08336
+c18b8000
+70033600
+7003380d
+202064bb
+6fe0c4e7
+247a0000
+6fe0c795
+c280656f
+c2836571
+20206575
+6fe0c4e9
+c4008000
+70033811
+202064bb
+6fe0c4e9
+c19f8000
+70033813
+202064bb
+6fe0c4ea
+c4008000
+70033815
+202064bb
+6fe0c4ea
+c19f8000
+6fe0c795
+c2836571
+20206575
+6fe0c4e8
+c4008000
+70033819
+202064bb
+6fe0c4e8
+c19f8000
+7003381b
+202064bb
+6fe0c4e8
+c1ff8000
+6fe0c795
+c2836573
+20206575
+6fe0c4eb
+c4008000
+7003381f
+202064bb
+6fe0c4eb
+c4018000
+70033821
+202064bb
+6fe0c4eb
+c1ff8000
+20206575
+7003380f
+202064bb
+70033817
+202064bb
+7003381d
+202064bb
+70033800
+20600000
+47264029
+20405228
+58000001
+1fe20400
+58000050
+1fe21600
+20205023
+4726c029
+20405228
+6fe144df
+1fe20400
+20205032
+47274029
+20405228
+6fe144df
+1fe20400
+d9600050
+20405047
+6fe0c4e7
+793ffe05
+67e0c4e7
+20600000
+4727c029
+20405235
+204068f8
+20205062
+4728402a
+20405228
+58000003
+1fe20400
+58000051
+1fe21600
+20205023
+4728c02a
+20405228
+6fe144e1
+1fe20400
+20205032
+4729402a
+20405228
+58000011
+1fe20400
+58000052
+1fe21600
+20205023
+4729c02a
+20405228
+6fe144e3
+1fe20400
+20205032
+472a402a
+20405228
+58000013
+1fe20400
+58000053
+1fe21600
+20205023
+472ac02a
+20405228
+6fe144e5
+1fe20400
+20205032
+472b402a
+20405242
+7003ce03
+7003d11c
+2040636a
+70465501
+20600000
+472bc02a
+20405242
+6848c656
+2040623a
+6048c64f
+20206385
+472c402b
+20405242
+6848c64f
+20406234
+204061db
+67e083d1
+6848c64f
+20406234
+604883ce
+2020636a
+472cc02b
+20405242
+6848c64f
+20406234
+202063bd
+472d402b
+6fe10315
+98000c00
+efe08006
+1fe22400
+67e083ee
+efe10006
+67e103ef
+efe08006
+1fed1600
+efe08006
+99609600
+472dc02b
+18c20400
+df200004
+d8a003fd
+20407c59
+18420c00
+1a427e00
+c000e77a
+c00165ec
+c001e77a
+c0026614
+c002e77a
+c00366c2
+c003e77a
+20206781
+472e402b
+20406790
+2841fe01
+2020e800
+2841feff
+2020e784
+efe10006
+67e103f5
+196097fe
+196097ff
+2422e77e
+d96003e4
+efe1000b
+207a0000
+20406842
+20405240
+18007e03
+e7e08005
+6fe103ef
+e7e10005
+18ebfe00
+1fe0fe05
+1fe0a605
+1ff0fe00
+e7e10005
+18e27e00
+1ff0fe00
+e7e10005
+e7e10005
+d8c003fd
+18e27200
+2022e60f
+efe20006
+e7e20005
+c200660c
+18007e00
+e7e08005
+1a627e00
+67e10326
+20600000
+472ec02b
+efe20006
+67e203f7
+196097fc
+204066ee
+67e103f3
+196097fe
+204067e8
+2022e784
+2a21fe05
+2020e622
+d8a003fd
+18000e00
+20206631
+efe08006
+c0856784
+efe10006
+243a662f
+efe08006
+c0ffe62d
+efe08006
+c0ffe62b
+20206678
+18c08dfb
+2020661f
+18c08dfc
+2020661f
+18c08dfd
+2020661f
+efe08006
+c004e646
+c0056634
+efe10006
+e7e10005
+18e08e01
+1ff0a400
+efe10006
+1ff0fe00
+1a40a401
+9a467c00
+24216643
+1fe22600
+1a50fe00
+e7e10005
+18e08e01
+1a627e00
+2020663a
+196097fb
+1a20a3fb
+2020664b
+efe10006
+e7e10005
+18e08e01
+196097fd
+1a20a3fd
+24216784
+2422e631
+196097ff
+2422e784
+20405240
+18a08a0a
+da2003fd
+18e27e00
+203a6665
+efe10011
+203a6665
+98002400
+6fe203f7
+98000400
+204068a7
+18c27e00
+203a6662
+18c08dfd
+efe18006
+e7e18005
+2040681b
+98007200
+20407ca1
+1a20a202
+18e08fff
+20206652
+da200005
+20406744
+6fe10326
+c005e803
+2020675a
+efe08006
+c000666e
+c000e670
+c0016673
+196097ff
+20206676
+efe08006
+196097fe
+20206676
+efe10006
+1ff0fe00
+196097fd
+67e103ec
+20600000
+196097fb
+2040666a
+2422e77e
+684a03f7
+20406871
+2422e77b
+18c22200
+20405240
+1a220c00
+18a08a03
+18c21600
+20406822
+1fe22200
+6fe103ec
+1fe22400
+1a227e00
+9a462400
+6fe103f3
+9a467c00
+242166a7
+78547c00
+6fe103ec
+203a669a
+99608c00
+1a40a403
+1a427200
+1f227e00
+1fe0fe03
+1ff0fe00
+e7e10005
+1f227e00
+1ff0fe00
+e7e10005
+202066b5
+1a20f206
+2034669e
+1f30fe00
+202066a1
+1f227e00
+1fe0fe02
+1ff0fe00
+e7e10005
+1f20f3fd
+1f30fe00
+e7e10005
+19620c00
+202066b5
+78347c00
+6fe103f3
+1fe22200
+1a227200
+6fe103ec
+203a669a
+99608c00
+1a227e00
+1fe0fe05
+1ff0fe00
+e7e10005
+1a227e00
+1ff0fe00
+e7e10005
+20407ca1
+243466be
+18007e02
+e7e08005
+18c27e00
+99667e00
+1ff0fe00
+e7e10005
+202066c0
+18007e00
+e7e08005
+da200005
+20206770
+472f402b
+20406790
+2841feff
+2020e784
+204066ee
+67e103f3
+196097fe
+204067e8
+d8a003fd
+18000e00
+efe08006
+c00566f6
+efe10006
+e7e10005
+18e08e01
+196097fd
+1a20a3fd
+24216784
+2422e6cc
+196097ff
+2422e784
+20405240
+18a08a0d
+6fe103e4
+98002600
+da2003fd
+efe10011
+203a66e9
+98002400
+20406886
+203a66e7
+18c08dfd
+efe18006
+e7e18005
+2040681b
+98007200
+20407ca1
+1a20a202
+202066dc
+20406743
+6fe10326
+c0076806
+2040675a
+2020675a
+efe10006
+1ff0fe00
+1fe0fffd
+d84000c8
+98467c00
+24610000
+580000c8
+20600000
+18c08c04
+196097fb
+1a20a3fb
+2422e784
+2040666a
+2422e77e
+d96003e4
+20406842
+18e27e00
+203a6806
+67e08421
+1a427e00
+67e1041f
+d8e00000
+da200000
+20405240
+18a08a0a
+2040672c
+2434137a
+18c21600
+1fe22600
+9a20a200
+6fe103ec
+1fe22400
+203a6735
+1a227e00
+9a462400
+2022e727
+24216727
+6fe103f3
+9a467c00
+2022e71e
+2421671e
+1a427200
+20406721
+6fe08421
+18e08e01
+98e67c00
+2022e743
+20206760
+1fe27200
+20406721
+20206760
+18a08bfd
+1f220400
+1a627e00
+9a467e00
+99608c00
+20207ca1
+6fe08421
+18e08e01
+98e67c00
+20628000
+20206707
+20407d94
+d8c003fd
+18ebfe00
+98c08c00
+e8420006
+20406871
+24628000
+2040681b
+20207d92
+6fe103f3
+9a267c00
+2421674f
+1a227200
+1f220400
+19620c00
+20407ca1
+6fe1041f
+9a267c00
+2022e741
+20406760
+20206754
+20406743
+20206754
+da200007
+18007e00
+e7e08005
+20406770
+68490326
+184085fb
+1850fe00
+e7e10005
+184085fd
+1850fe00
+e7e10005
+20600000
+1fe27200
+1f220400
+19620c00
+20407ca1
+20406760
+58000036
+e7e08005
+6fe1041f
+1ff0fe00
+e7e10005
+20600000
+58000036
+e7e08005
+184085fd
+1850fe00
+e7e10005
+20600000
+da200007
+58000002
+e7e08005
+6fe103ec
+98408400
+1850fe00
+e7e10005
+20406770
+68490326
+184085fb
+1850fe00
+e7e10005
+184085fb
+1850fe00
+e7e10005
+20600000
+6fe10324
+98a67e00
+1fe67e00
+67e10326
+20405240
+1a227e00
+e7e08005
+6fe103ef
+e7e10005
+20600000
+20600000
+58000200
+67e1041d
+20206786
+58000400
+67e1041d
+20206786
+58000600
+67e1041d
+20206786
+58000300
+67e1041d
+20405240
+e7e08005
+6fe103ef
+e7e10005
+58000200
+e7e10005
+6fe1041d
+e7e10005
+70032607
+20600000
+da400000
+18000400
+d8a003e4
+204067e8
+2022e7e6
+1a40a401
+efe08006
+1a20a3ff
+196097ff
+2fe1f018
+2420e7e6
+2fe00e04
+2420e7b3
+18000401
+efe08006
+1a20a3ff
+196097ff
+c08067a7
+efe08006
+1a20a3ff
+196097ff
+c00067b8
+202067aa
+18c08c01
+1a20a3ff
+196097ff
+18c08c02
+1a20a3fe
+196097fe
+2841fe00
+2020e7e0
+18c08c0c
+1a20a3f4
+196097f4
+202067e0
+2fe00e02
+2420e7b6
+2020679e
+2fe00e01
+2420e7e6
+1a20a3fe
+196097fe
+efe10006
+1a467c04
+2022e7be
+e7e10005
+2841fe00
+2020e7e0
+18c20400
+efe08006
+c08067d9
+efe08006
+c08067d9
+efe08006
+c08867d9
+efe08006
+c08067d9
+efe08006
+c0c067d9
+efe08006
+c08067d9
+efe08006
+c08067d9
+efe08006
+c0c067d9
+efe08006
+c0afe7d9
+efe08006
+c0cde7d9
+efe08006
+c09a67d9
+efe08006
+c07de7de
+18420c00
+18c08c0c
+18000e00
+18000400
+202067de
+196097f4
+1a20a3f4
+18000400
+2a21fe00
+2420e795
+18007e00
+e7e10005
+20600000
+d84000ff
+20600000
+4730c02c
+efe08006
+196097ff
+2fe1f030
+2420e7fe
+2fe00e07
+2020e7f7
+2fe00e06
+2020e7f9
+2fe00e05
+2420e7fe
+efe08006
+1fe22200
+196097ff
+202067fc
+18c08c02
+196097fe
+efe10006
+1ff0a200
+196097fe
+18007e01
+20600000
+18007e00
+20600000
+58000003
+67e083ee
+20206808
+58000005
+67e083ee
+20206808
+58000007
+67e083ee
+20405240
+6fe083ee
+1fe22400
+e7e08005
+6fe103ef
+e7e10005
+58000500
+e7e10005
+2a41fe05
+2020e817
+2a41fe07
+2020e817
+58000000
+e7e28005
+20206819
+58350200
+e7e28005
+7003260a
+20600000
+20407c26
+20407c29
+20406822
+20407c20
+20407c23
+18427e00
+20600000
+efe08006
+1fe17207
+1fe97e00
+c080682c
+18007e01
+18000401
+20600000
+20407c00
+1fe08401
+20600000
+1f227e00
+1fe67c04
+20216829
+c002e833
+c0036836
+c003e83a
+20600000
+efe08006
+1fe08402
+20600000
+efe10006
+1ff0fe00
+1fe08403
+20600000
+efe10006
+1ff0fe00
+e8410006
+18508400
+18500400
+9840fe00
+1fe08405
+20600000
+4731402c
+18000e00
+da400000
+d8a003fd
+efe1000b
+207a0000
+2040684d
+18e27e00
+c1038000
+19609602
+20206846
+98002600
+6fe14667
+98000c00
+18e27e00
+c1038000
+78547c00
+efe08006
+207a0000
+98007200
+efe10006
+9a667c00
+2422e85a
+78347c00
+c2006856
+e8420006
+18c22200
+2434686d
+d8c003fd
+df200007
+efe20006
+203a6866
+98467c00
+2022e86d
+c2006860
+20600000
+e0420005
+18e08e01
+1a220c00
+2040681b
+9a40a400
+98c08c00
+20206850
+1a220c00
+20406822
+98c08c00
+20206850
+4731c02c
+6fe14667
+98000c00
+efe08006
+203a7d8e
+1fe3fe00
+98c08c00
+efe20006
+98467c00
+20628000
+18a27e00
+67e1097d
+604c0964
+20406822
+98c08c00
+18c27e00
+6849097d
+18420a00
+684c0964
+1fe20c00
+20206874
+4732402c
+6fe14667
+98000c00
+efe08006
+203a68a4
+98007200
+efe10006
+9a667c00
+2022e894
+c200688c
+18c08c04
+20406822
+98c08c00
+20206889
+1f20f3ff
+1f23fe00
+98c08c00
+18c08c04
+20406822
+98c09600
+18c08c01
+efe10006
+9a467c00
+2022fd9c
+2040681b
+98c08c00
+19627e00
+98c67c00
+2022e8a4
+2020689a
+18000c00
+18007e00
+20600000
+4732c02c
+6fe14667
+98000c00
+efe08006
+203a68c0
+1fe3fe00
+98c08c00
+efe20006
+98467c00
+2022e8b4
+20406822
+98c08c00
+202068aa
+20406822
+98c09600
+18c08c01
+efe10006
+9a467c00
+20628000
+2040681b
+98c08c00
+19627e00
+98c67c00
+2022e8c0
+202068b6
+18000c00
+20600000
+da400400
+204068b4
+da400300
+204068cd
+24740000
+1a267c03
+20217d94
+efe08006
+c0847d94
+efe08006
+20600000
+4733402c
+20406822
+1fe22200
+efe08006
+1fe17207
+1fe97e00
+1fe67c03
+2022e8e9
+1f227e00
+c002e8e0
+c00368e3
+c003e8e6
+18c08dff
+20406822
+98c08c00
+1a227e00
+98462200
+2022fd94
+202068d0
+1a20a3fe
+18c08c01
+202068d0
+1a20a3fd
+18c08c02
+202068d0
+1a20a3fb
+18c08c04
+202068d0
+1a20a3ff
+1f227e00
+c000e8f2
+c00168f0
+c00268ef
+20207d94
+1a20a3f4
+efe10006
+1a20a3fe
+efe10006
+9a467c00
+2022fd92
+1a20a3fe
+2022fd94
+202068d0
+20405240
+1fe20a00
+58000006
+e7e08005
+5800006e
+e7e10005
+58000f00
+e7e10005
+581a0535
+e7e18005
+58000111
+1ff07e00
+e7e20005
+58002600
+e7e10005
+58000335
+e7e10005
+58000009
+e7e10005
+58000004
+e7e10005
+70032614
+20600000
+4733c02c
+7004a750
+d8a004a8
+d8c0433a
+20407c4c
+d8c046e3
+20407c4a
+d8c00880
+20407c4a
+204069ca
+d8c00277
+204069c5
+20406990
+d8a009be
+204069c1
+580f4240
+1fe22200
+6fe209be
+9a26fc00
+20407d31
+18077e00
+67e2087c
+20600000
+7004a741
+d8a004a8
+20406975
+20406970
+6fe1c354
+e7e18005
+20406936
+d8c00277
+20407c4c
+d8c0433a
+20407c4c
+204069ca
+d8c009de
+d8a0098e
+20407c4c
+20206990
+6fe243a1
+e7e20005
+20407c61
+20207c5e
+4734402d
+7004a741
+d8a004a8
+20406970
+20406975
+6fe1c34d
+e7e18005
+20406936
+d8c0433a
+20407c4c
+d8c00277
+20407c4c
+204069ca
+d8c009de
+d8a0098e
+20407c4c
+20406990
+d8a009be
+202069c1
+7004a720
+d8c008c0
+d8a004a8
+20407c4a
+204069ca
+d8c00860
+204069c5
+20406990
+d8a0098e
+20406d07
+d8400001
+2040695f
+d8a04319
+204069c1
+d8400000
+2040695f
+d8a009de
+20206d07
+4734c02d
+7004a735
+58000100
+67e104a8
+20406970
+20406975
+d8c0433a
+20407c4c
+d8c00277
+20407c4c
+58006c65
+e7e10005
+58006274
+e7e10005
+e0408005
+204069ca
+20206990
+6fe3437d
+e7e30005
+6fe0c374
+e7e08005
+20600000
+6fe30297
+e7e30005
+6fe0c36d
+e7e08005
+20600000
+7004a741
+6fe0c775
+67e084a8
+d8c046e3
+20407c4a
+d8c00880
+20407c4a
+204069ca
+d8c00277
+204069c5
+20206990
+7004a741
+6fe0c775
+67e084a8
+d8c00880
+20407c4a
+d8c046e3
+20407c4a
+204069ca
+d8c0433a
+204069c5
+20206990
+4735402d
+204069df
+6fe084a7
+1fe20400
+1fe0fe0f
+1ff1fe00
+1fe22400
+203a69a2
+18417e0f
+243a69a5
+da60099e
+dfe004a8
+1fe0fff0
+9840a200
+d8a009ce
+df200004
+20407c71
+202069b0
+da400001
+da200000
+202069a6
+1841220f
+dfe004a8
+9840fe00
+9a260c00
+d8a009be
+20406a05
+da6009ae
+da2009be
+d8a009ce
+df200004
+20407c71
+20406d01
+20406c6c
+d8c004a8
+1a40a5ff
+1a427e00
+203a69b9
+20406cf3
+20406c66
+202069b3
+d8a009be
+20406d07
+d8c009ce
+20406cf3
+20406c6c
+d8c009be
+20406cf3
+20206c66
+18a22200
+20406d07
+df200010
+20207c79
+d8a0098e
+20407c4c
+df200010
+da20098e
+20207c79
+6fe084a7
+1fe27200
+da2004a8
+20207c79
+efe08011
+1fe3fe00
+2a6ffe00
+7920fe00
+2feffe08
+7920a600
+e7e08011
+1a20a3ff
+c20069ce
+20600000
+da20099e
+1a20a20f
+18007210
+18002600
+202069ce
+da2009ae
+202069d9
+d8c0098e
+20406cf1
+18007008
+20406d02
+20406d01
+20406c63
+d8a0099e
+20406d07
+4735c02d
+6fe0899e
+2feffe07
+2420e9f0
+204069d8
+da60099e
+d8a0099e
+204069fa
+202069f1
+204069d8
+d8c0099e
+d8a009ae
+20407c4c
+6fe089ae
+2feffe07
+2420e9dd
+204069dd
+da6009ae
+d8a009ae
+df200003
+d8400000
+20406a01
+1a60a604
+c20069fb
+d8408700
+18500400
+efe20013
+9842fe00
+e7e20005
+20600000
+4736402d
+df200010
+dfe00000
+9a267c00
+2022ea10
+20216a13
+e8408006
+e0408005
+1fe0fe01
+c2006a08
+20600000
+d8400080
+e0408005
+20206a0d
+d8400000
+20206a11
+20406a28
+d8c00454
+d8a00444
+20207c4c
+78547c00
+20406b1f
+d8c00424
+d8a00464
+1800720f
+20407ca1
+efe08006
+1fe2fe06
+e7e08005
+58000474
+67e10498
+58000464
+67e10496
+79200012
+20206a68
+6848c79a
+18002410
+1840a606
+1a667c10
+20216a2e
+18002610
+d8a00464
+d8c0479b
+18427200
+78547c00
+efe08006
+e7e08005
+1a40a5ff
+2022ea3c
+c2006a32
+20346a2f
+78347c00
+18007206
+1a220c00
+20206a32
+d8c00424
+d8a00474
+20407c4c
+6fe08483
+9a62fe00
+67e08483
+58000474
+67e10498
+58000464
+67e10496
+79200012
+20206a68
+78547c00
+20406b1f
+20206a52
+da200056
+78347c00
+20406b1f
+20406a52
+d8c00454
+d8a00062
+20207c4c
+58000424
+67e10498
+580041ce
+67e10496
+793f8012
+20406a68
+da200454
+da400424
+d8a00464
+20406b12
+da200464
+da400474
+1a420a00
+78347c00
+20406b10
+20406b2a
+58000474
+67e10498
+58000464
+67e10496
+79200012
+20206a68
+70049a00
+6fe10496
+98000c00
+d8a00484
+20407c4c
+6fe10498
+98000c00
+d8a00454
+20407c4c
+20406a8f
+78547c00
+c5896a79
+6fe0849a
+c0826a79
+6fe10498
+98002400
+20406ac1
+20406ac0
+20406ad3
+6fe0849a
+1fe0fe01
+67e0849a
+20406a8f
+78347c00
+20406ac0
+20406ae2
+20406af1
+20406ae2
+20406af1
+20406ae2
+20406af1
+20406ae2
+6fe0849a
+1fe0fe01
+67e0849a
+c0886a71
+20406a8f
+78547c00
+20206ac0
+6fe0849a
+d8c00484
+203a6ab6
+98002400
+18007211
+18c20a00
+efe08006
+1fe98400
+1feb7e00
+1fe97e00
+9841fe00
+e7e08005
+c2006a95
+58000484
+9a408c00
+18007210
+d8a00434
+efe08006
+e7e08005
+28c1fe95
+2420eaa5
+18c08def
+c2006aa0
+18002200
+1a40a7ff
+1a6ba600
+1a6ba600
+20406d29
+58009000
+9a60a600
+d8a00434
+18007210
+e8408013
+efe08005
+9840fe00
+e7e08005
+1a60a601
+c2006aaf
+20206d2d
+18007210
+18000400
+efe08006
+98428400
+c2006ab8
+18427e00
+e7e08006
+d8c00484
+d8a00434
+20207c4c
+da400434
+18007210
+da200454
+1a220a00
+e8408011
+efe08012
+9842e000
+1f212603
+24346aca
+1a62a603
+1a662601
+20216acd
+9840e000
+1e027e00
+e7e08005
+1a20a201
+1a40a401
+c2006ac4
+20600000
+20406d29
+18007210
+da200454
+efe08011
+d8c09100
+1f212603
+1a667c01
+20216adc
+d8c09200
+98c08c00
+efe08006
+e7e08011
+1a20a201
+c2006ad6
+20206d2d
+18007208
+d8c00454
+18c20a00
+efe08006
+98002200
+efe08006
+98002400
+1a23fe00
+9a40fe00
+e7e08005
+1a227e00
+9a40fe00
+e7e08005
+c2006ae5
+20600000
+588ae42c
+98000400
+18007207
+20406b00
+580d751b
+98000400
+18007205
+20406b00
+6fe08463
+98002200
+6fe08457
+67e08463
+1a227e00
+67e08457
+20600000
+1841240f
+18417e0f
+d8a00454
+98a08a00
+efe08005
+98002600
+1a227e00
+e7e08005
+1a622200
+18518400
+c2006b01
+58000454
+9a408a00
+1a227e00
+e7e08005
+20600000
+78347c00
+20206b13
+78547c00
+18007210
+e8408011
+efe08012
+20346b19
+9842fe00
+20206b1a
+9840fe00
+e7e08005
+1a20a201
+1a40a401
+c2006b14
+20600000
+d8a00474
+efe30011
+e7e30005
+20346b25
+efe30011
+20206b26
+efe30006
+e7e30005
+efe20011
+e7e20005
+20600000
+d8c041ce
+d8a00464
+d8400000
+588395a7
+20406b4b
+58b3c1df
+20406b4b
+5800e5e9
+20406b4c
+18422800
+78547c00
+20406b39
+1a820400
+78347c00
+20206b39
+18007208
+efe08006
+2f200201
+20346b40
+2020eb41
+9840fe00
+20206b42
+2020eb3e
+9842fe00
+e7e08005
+184c8400
+c2006b3a
+20600000
+6fe30458
+67e30056
+efe30006
+e7e30005
+20600000
+184d0400
+18500400
+98418400
+20600000
+20206b4f
+4736c02d
+20406c98
+d8a04319
+20206d07
+d8a0433a
+2034eb57
+d8a00277
+18c22200
+20407c4c
+20406cad
+d8c0432a
+20206d20
+da200277
+2034eb5f
+da20433a
+1a220a00
+2040594e
+20206cad
+d8c04387
+20406cf3
+d8c04319
+20406cf4
+18006c38
+18006c00
+20406c61
+d8a002c7
+20206d07
+18007008
+18007e49
+20206b72
+18007e49
+20206b71
+18007e01
+18007000
+184d5e00
+9de1de00
+1f00f001
+184cde00
+1df15e00
+6fe146b1
+1ff07e00
+9de1de00
+1f00f001
+ede20006
+1f00f001
+efe10006
+1a30de00
+1df05e00
+9de1de00
+1f00f001
+20600000
+1a608c01
+efe08006
+98002200
+20406b6e
+20406c63
+18007000
+efe08013
+1fe17e03
+1ff05e00
+79205e08
+20406cfc
+20406c66
+1a227200
+1a608c02
+20406cdb
+20406ce5
+20406c66
+1f227e00
+203a6b97
+20206b92
+1800700c
+1de27e00
+67e2026f
+20600000
+1a20a201
+20406b70
+1a620c00
+20406cef
+20406c69
+20406d0e
+1a60a610
+1a40a5f0
+20216b9b
+20600000
+20406c56
+4737402d
+d8c00062
+20406cf1
+7080d500
+18217e0f
+1fe9fe00
+9881fe00
+67f080d6
+6fe0c1e7
+67f080d7
+627100d1
+627100d3
+6a2146b9
+684ac6a3
+20406bc7
+20406b6b
+70800a02
+70800a03
+6fe146b9
+67f100da
+1fe0fe04
+67e146b9
+1a627e00
+9a20a200
+20406c5d
+df00000c
+e5e20011
+65e2026f
+20600000
+6fe2c6a3
+1fe0fe01
+67e2c6a3
+20206bcd
+6fe0c1e7
+c1808000
+6fe146b9
+247a0000
+79200424
+20600000
+6fe0c6a7
+1fe17e0f
+1fe1fe20
+67e0c6a7
+20600000
+6fe0c6ac
+1fe17e0f
+67e0c6ac
+20600000
+18a27e00
+684900ae
+18408404
+98467e00
+67e146bb
+67f100d1
+67f100d3
+20407d98
+20406c56
+d8c00062
+20406cf1
+7080d500
+6fe08019
+1fe17e0f
+1fe9fe00
+9881fe00
+67f080d6
+6fe080e4
+1fe17e03
+67e0c1e7
+67f080d7
+6a2100ae
+622146b9
+6fe146bb
+9a208c00
+18007000
+ede20006
+65e20273
+684ac6a8
+20406bc7
+20406b6b
+70800a06
+70800a07
+6fe100ae
+67f100da
+20406c5d
+6ff08108
+c4038000
+20207d96
+c6078000
+684a0273
+604a46ad
+6fe2c6a8
+1fe0fe01
+67e2c6a8
+20206bd2
+20406c56
+7080d500
+7080d601
+6fe0816b
+1fe17e03
+67f080d7
+5800016d
+67f100d1
+67f100d3
+6a20816c
+1a20a3fc
+24217d9c
+6220816c
+5800016d
+9a208c00
+18007000
+ede20006
+65e20273
+684ac6a8
+20406b6b
+70800a06
+70800a07
+6fe0816c
+67f100da
+20406c5d
+6ff08108
+c303fd9c
+684a0273
+6fe246ad
+98467e00
+207a0000
+604a46ad
+6fe2c6a8
+1fe0fe01
+79207e27
+67e2c6a8
+18007e00
+20600000
+20406c31
+580041fa
+9a20a200
+20406c5d
+df00000c
+e5e20011
+20600000
+20406c56
+4737c02d
+7080d500
+7080d601
+6fe0c1f8
+1fe17e03
+67f080d7
+6fe1097b
+67f100d1
+580041fa
+67f100d3
+6a20c1f9
+684ac6a3
+20406b6b
+70800a02
+70800a03
+6fe0c1f9
+67f100da
+1fe0fe04
+67e0c1f9
+6fe2c6a3
+1fe0fe01
+793ffe27
+67e2c6a3
+20600000
+6ff1011a
+98467c00
+20628000
+247a0000
+20206c4a
+6ff08108
+c303137a
+580041fa
+98408a00
+df00000c
+e5e20005
+20206c5f
+4738402e
+1800700c
+20406d02
+20406d01
+58000000
+67f100da
+20600000
+6ff08108
+c3036c5d
+70800a00
+20600000
+243bec61
+20600000
+18006c30
+18006c00
+20206c61
+18006c32
+18006c02
+20206c61
+18006c34
+18006c04
+20206c61
+18006c01
+18006c00
+20600000
+6ff08148
+c302ec6f
+20600000
+67f100e8
+18006cc0
+18006c80
+20206c6f
+18007000
+1a420c00
+18007204
+20406c85
+18006d80
+18006c80
+20406c61
+1800700c
+1a620a00
+18007204
+1de27e00
+e7e20005
+1f00f001
+c2006c80
+20600000
+efe10006
+e8410006
+18500400
+9841de00
+1f00f001
+c2006c85
+20600000
+18007008
+1a220c00
+18007204
+20406c85
+18007000
+1a420c00
+18007204
+20406c85
+18006d82
+18006c82
+20406c61
+20206c7d
+18007000
+6fe20277
+98005e00
+1f00f001
+efe20006
+98005e00
+1f00f001
+6fe2433a
+98005e00
+1f00f001
+efe20006
+98005e00
+1f00f001
+20406d02
+1f00f1fc
+6fe243a1
+1fe25e00
+1f00f004
+18006c38
+18006c08
+20206c61
+4738c02e
+6fe3437d
+684b0297
+2034ecb3
+6fe30297
+684b437d
+18007008
+18425e00
+1f00f001
+184f5e00
+1ff07e00
+9de1de00
+1f00f001
+1fef5e00
+1f00f001
+18005e00
+18007e00
+6fe0c36d
+6848c42e
+2434ecc3
+6fe0c374
+6848c36d
+67e0c34a
+6048c34b
+18007000
+da40434a
+18007204
+efe20011
+e8420012
+9842de00
+1f00f001
+1a20a204
+1a40a404
+c2006cc8
+20406d02
+1f00f1fc
+6fe243a1
+1fe25e00
+1f00f004
+18006c38
+18006c0c
+20406c61
+20406d01
+18006c3a
+18006c08
+20206c61
+2f200600
+20608000
+18c27e00
+9f208a00
+18007e00
+e7e08005
+1f20f201
+2f200600
+20608000
+20206ce0
+18007000
+1f227e00
+203a6cea
+efe20006
+1f20f3fc
+98005e00
+1f00f001
+2f001e04
+20608000
+20206ce6
+18007008
+20206cf4
+18007004
+20206cf4
+18007000
+18007204
+efe20006
+98005e00
+1f00f001
+c2006cf5
+20600000
+d8c002c7
+20206cf1
+18007204
+20206d04
+18007000
+18007210
+20206d03
+18007000
+18007204
+18005e00
+1f00f001
+c2006d03
+20600000
+1800700c
+18007204
+1de27e00
+e7e20005
+1f00f001
+c2006d09
+20600000
+1800700c
+1a620a00
+1a40f201
+1f267c0f
+20216d14
+18007210
+1de27e00
+1f267c03
+20216d1c
+e7e20005
+1f20f3fc
+20628000
+1f00f001
+20206d14
+e7e08005
+1fecfe00
+c2006d1c
+20600000
+1800700c
+18007204
+efe20006
+9de67c00
+24628000
+1f00f001
+c2006d22
+18007c00
+20600000
+6ff08050
+793ffe00
+67f08050
+20600000
+6ff08050
+79207e00
+67f08050
+20600000
+d8a00748
+3803ffff
+3807ffff
+380bffff
+380ffbff
+e7e48005
+3803ffff
+3807ffff
+380bffff
+380fffff
+e7e48005
+3803ffff
+3807ffff
+380bcfff
+380fffff
+e7e48005
+3803ffff
+3807ffff
+380bffef
+380fffff
+e7e48005
+3803ffff
+3807ffff
+380bffff
+380fffff
+e7e48005
+3803ffff
+38066c7f
+3808146b
+380f7bb3
+e7e48005
+3801feb8
+38050c12
+380ab722
+380e9fa6
+e7e48005
+3800e70f
+38056720
+3808519e
+380d9084
+e7e48005
+38031012
+380760bf
+380bf0af
+380c03d3
+e7e48005
+3803a188
+38043ad0
+380bcbf2
+380e43d9
+e7e48005
+3802b030
+38076a03
+38091188
+380de520
+e7e48005
+3803a11e
+3804fe5d
+3808dd57
+380dac93
+e7e48005
+380011ed
+380618c4
+38088da7
+380e57ff
+e7e48005
+3803192b
+38074641
+3809be0c
+380f66ad
+e7e48005
+38001f83
+38055a23
+380bf9b0
+380c3949
+e7e48005
+38013a51
+380553fd
+380b372a
+380cf1bb
+e7e48005
+3803ae85
+3805eed9
+38089e66
+380c01a8
+e7e40005
+20600000
+d8a007e0
+3803ffff
+3807ffff
+380bffff
+380fffff
+e7e48005
+3803ffff
+3804003f
+38080000
+380c0000
+e7e48005
+38000000
+38040000
+38081000
+380c0000
+e7e48005
+3803ff00
+3807ffff
+380bffcf
+380fffff
+e7e48005
+3803ffff
+3807ffff
+380bffff
+380c03ff
+e7e48005
+38000000
+38040000
+38080000
+380c0000
+e7e48005
+38010000
+38040000
+380bf000
+380fffff
+e7e48005
+380296ff
+38062630
+380b945d
+380fd284
+e7e48005
+380333a0
+38044b7a
+380837d8
+380fc9dc
+e7e48005
+3803a440
+3805b958
+380b8bce
+380d091f
+e7e48005
+3802e12c
+3805f47c
+380b56b1
+380efd47
+e7e48005
+38006837
+3806ed90
+3809ecec
+380dacc5
+e7e48005
+38023357
+38058af3
+3808f9e1
+380d29f0
+e7e48005
+3802e7eb
+3807e6e3
+380be1a7
+380d0b8b
+e7e48005
+38024fe3
+380420ef
+3809b5a6
+380cdc2f
+e7e48005
+38013860
+3806bd69
+3808391a
+380db222
+e7e48005
+20600000
+6fe0c76b
+243a6df5
+20207477
+4739402e
+6fe0c76b
+207a0000
+6fe0c6c0
+c1808000
+6fe0c6bf
+207a0000
+6fe0c6c2
+c1018000
+6fe14793
+c2806deb
+6fe0c6c1
+c0007477
+20600000
+7046c100
+20600000
+6fe0c6bf
+79207e01
+67e0c6bf
+20600000
+6fe0c6bf
+793ffe01
+67e0c6bf
+20600000
+4739c02e
+6fe0c76b
+243a6f31
+20406e02
+7046c000
+70087400
+20600000
+6fe0c76b
+207a0000
+6fe0c6c0
+c1008000
+20406fa2
+20206dfc
+473a402e
+58000880
+d8a00870
+98a67200
+20407c68
+58004777
+d8a0476f
+98a67200
+20207c68
+70087201
+6fe0c64c
+c0016e10
+c000ee1b
+20600000
+6fe0c6c2
+c001ee13
+20207498
+204074b7
+6fe08871
+247a0000
+70087003
+20600000
+6fe0c6c0
+c000ef50
+2020137a
+6fe0c6c0
+c000ee1e
+20206f31
+20406f50
+6fe08871
+247a0000
+70087003
+20600000
+20406e3e
+da2008a0
+d8a00728
+20407697
+da200880
+d8a006e8
+20407697
+da2006e8
+da400880
+d8a006e8
+204075ff
+da200800
+da400880
+d8a00708
+204075ff
+da200708
+da4006e8
+d8a006e8
+2040769b
+da2006c8
+da4006e8
+d8a006c8
+2040769b
+df200020
+da200728
+da4006c8
+20207d33
+da200840
+d8a006c8
+20407697
+da200820
+d8a006e8
+20407697
+da2006e8
+da400820
+d8a006e8
+204075ff
+da200800
+da400820
+d8a00708
+204075ff
+da200708
+da4006e8
+d8a006e8
+2040769b
+da2006c8
+da4006e8
+d8a006c8
+202076b4
+20406e6f
+da2008a8
+d8a00728
+2040706e
+da200888
+d8a006e8
+2040706e
+da2006e8
+da400888
+d8a006e8
+2040704c
+da200760
+da400888
+d8a00708
+2040704c
+da200708
+da4006e8
+d8a006e8
+2040701b
+da2006c8
+da4006e8
+d8a006c8
+2040701b
+df200018
+da200728
+da4006c8
+20207d33
+da2007a8
+d8a006c8
+2040706e
+da200790
+d8a006e8
+2040706e
+da2006e8
+da400790
+d8a006e8
+2040704c
+da200760
+da400790
+d8a00708
+2040704c
+da200708
+da4006e8
+d8a006e8
+2040701b
+da2006c8
+da4006e8
+d8a006c8
+2020701e
+6fe0c64c
+c0016e89
+c000ee99
+20600000
+6fe0c6c1
+c0806eb7
+20406eb4
+d8a00940
+580008f0
+e7e10005
+58004703
+e7e10005
+580008a0
+e7e10005
+20407360
+6fe08871
+c0026eb1
+70087201
+70087005
+20600000
+6fe08874
+c0806eb7
+20406eb4
+d8a00940
+580008f0
+e7e10005
+58004753
+e7e10005
+580008a0
+e7e10005
+20206eab
+d8a00940
+58000900
+e7e10005
+580008a0
+e7e10005
+58004753
+e7e10005
+20407287
+6fe08871
+c0026eb1
+70087201
+70087005
+20600000
+70087114
+20406e18
+20206f9e
+d8a008e0
+18000e08
+20206f68
+70087201
+20600000
+6fe0c64c
+c0016ebf
+c000eec2
+70087009
+70087201
+20600000
+6fe0887b
+c081eebc
+20206ec4
+6fe0887b
+c080eebc
+d8a005e9
+6fe340a8
+e7e30005
+6fe30040
+e7e30005
+6fe1c76f
+e7e18005
+2040737f
+da200910
+da400920
+18000e04
+20406f6d
+2420eedd
+20406ed4
+70007d41
+2020593a
+6fe08871
+c004eeda
+7008700a
+70087201
+70007c03
+20600000
+70007c03
+70087115
+20206f9e
+6fe08871
+c004eee3
+70087000
+70007c04
+70007e05
+20600000
+70007c04
+70087100
+20600000
+6fe0c64c
+c0016eea
+c000eeee
+20600000
+6fe0887b
+c001eef2
+7008710a
+20206f9e
+6fe08875
+c000eef2
+7008710a
+20206f9e
+d8a005e9
+6fe30040
+e7e30005
+6fe340a8
+e7e30005
+6fe1c76c
+e7e18005
+204073c2
+6fe08871
+c0056eff
+7008700b
+70087201
+20600000
+7008710b
+70087301
+20600000
+d8a00940
+6fe30040
+e7e30005
+6fe340a8
+e7e30005
+580008f0
+e7e10005
+58000900
+e7e10005
+20206f16
+7008700f
+d8a00940
+6fe340a8
+e7e30005
+6fe30040
+e7e30005
+58000900
+e7e10005
+580008f0
+e7e10005
+d8a005e9
+6fe30940
+e7e30005
+6fe30946
+e7e30005
+204073d6
+7041cd01
+d8a041ce
+d8c00910
+20407c4c
+202009c6
+d8a04723
+380118ff
+3807fd29
+3809ed2e
+380cad89
+e7e48005
+38030c14
+380475b3
+380805df
+380f709c
+e7e48005
+3802918d
+380457e1
+38080079
+e7e30005
+20600000
+473ac02e
+6fe0c6c0
+c1800000
+6fe08874
+c1800000
+d8a04723
+18000e0b
+20406f68
+180a7e00
+1fe37e00
+e7e10005
+6fe0c6be
+245a6f21
+d8a00580
+d8c04723
+20407c4b
+d8a004a8
+d8c00790
+20407c49
+d8a004d8
+20407c58
+7004d801
+20407344
+70087401
+20600000
+d8a0473b
+d8c004f0
+20407c49
+7046c001
+70087400
+20600000
+473b402e
+6fe0887b
+c1800000
+6fe08874
+c1800000
+d8a00580
+d8c04723
+20407c4b
+d8a004a8
+d8c00888
+20407c49
+d8a004d8
+20407c58
+7004d801
+20407344
+70087402
+20600000
+70087501
+d8a008c8
+d8c004f0
+20407c4b
+70087b01
+70087400
+20600000
+18e08fff
+24610000
+180a7e00
+e7e10005
+20206f68
+18e08fff
+24216f79
+efe20011
+1fe20400
+efe20012
+9842fe00
+2422ef77
+1a20a204
+1a40a404
+20206f6d
+7840fc00
+20600000
+7820fc00
+20600000
+473bc02e
+6fe08872
+207a0000
+204058fe
+247a0000
+70087200
+6fe08870
+c001d824
+c002d846
+c003d851
+c005d866
+c0016e0b
+c0026e85
+c004eeb9
+c0056ee6
+c0066f0c
+20600000
+473c402f
+6fe08873
+207a0000
+204058fe
+247a0000
+70087300
+6fe08871
+c0095808
+c009d80d
+c001d811
+c0026ea4
+c00a5815
+c003d822
+c0056ee6
+c005d865
+c004eeb9
+c00ad85f
+20600000
+70087301
+20600000
+70087300
+20600000
+473cc02f
+6fe0c76b
+207a0000
+6fe08874
+207a0000
+1fe0fe80
+67e08874
+c3838000
+6fe084a5
+203a6fad
+2020734f
+20407199
+6fe08874
+c000ef4a
+c0016f61
+20600000
+1fe10e07
+1fe97e00
+98c08c00
+efe08006
+afec0000
+20600000
+20407c4b
+20407c4b
+20207c4b
+efe40006
+247a0000
+efe40006
+247a0000
+efe40006
+20600000
+efe20011
+98000400
+efe20012
+98467c00
+24628000
+1a20a204
+1a40a404
+c2006fc1
+20600000
+18007206
+1a20a214
+1a40a414
+efe20012
+98000400
+efe20011
+98467e00
+24610000
+247a0000
+1a20a3fc
+1a40a5fc
+c2006fcd
+20600000
+18007206
+18002600
+efe20011
+98000400
+efe20012
+9840fe00
+9a60fe00
+e7e20005
+2feffe20
+7920a600
+1a20a204
+1a40a404
+c2006fd9
+20600000
+18007206
+18002600
+efe20012
+98000400
+efe20011
+98467e00
+9a667e00
+e7e20005
+2feffe20
+7920a600
+1a20a204
+1a40a404
+c2006fe7
+20600000
+18007206
+1a20a214
+18002600
+efe20011
+2feffe00
+7920a601
+1fe37e00
+2a6ffe00
+7920fe1f
+e7e20011
+1a20a3fc
+1a632600
+c2006ff6
+20600000
+18007206
+18002600
+efe20011
+2feffe1f
+7920a601
+1fe3fe00
+2a6ffe00
+7920fe00
+e7e20011
+1a20a204
+1a632600
+c2007003
+20600000
+20407001
+2a6ffe00
+2020f017
+da400748
+1a222600
+1a20a3e8
+20406fca
+24610000
+1a622200
+1a20a3e8
+da400748
+1a220a00
+20206fe5
+20406fd7
+18a22200
+2020700f
+20406fe5
+2a6c0000
+20608000
+da400748
+18a0a3e8
+1a220a00
+20206fd7
+18a21600
+1a226000
+da4005d8
+1a420a00
+1a208c18
+efe40006
+e7e40005
+e7e40005
+18007e00
+e7e40005
+19620a00
+2040701b
+da4005d8
+1a420a00
+18007e00
+e7e40005
+1e008c20
+efe40006
+e7e40005
+e7e40005
+19622200
+1a220a00
+2040701b
+da4005d8
+1a420a00
+1e008c28
+efe40006
+e7e40005
+e7e40005
+e7e40005
+19622200
+1a220a00
+2020701b
+18007206
+efe20006
+98005e00
+1f00f001
+c2007047
+20600000
+18a21600
+d8a005a8
+20407c58
+d8a005a8
+1a220c00
+18007000
+20407046
+1a420c00
+20407046
+18002400
+18000400
+18002606
+efe20005
+98002200
+1a427000
+1de27e00
+1a627000
+9deffe00
+9a20fe00
+9840fe00
+e7e20005
+1fef0400
+1a60a601
+2a61fe0c
+2420f058
+18427e00
+e7e20005
+18a08be8
+1a40a401
+2a41fe06
+2420f056
+da2005a8
+19620a00
+20207025
+1a222400
+2020704c
+1a226000
+1e022200
+efe08011
+2feffe00
+20608000
+20406ff3
+efe08012
+2fec0000
+2020f080
+da200748
+1a420a00
+20406fd7
+efe08012
+9a60fe00
+e7e08012
+1a40a5e8
+1a40a218
+18007207
+20406ff5
+20207071
+18a21600
+d8a00608
+20407c58
+18007e00
+67e205c0
+67e20620
+70060801
+d8a005a8
+20407c58
+d8c00748
+d8a005d8
+20407c4b
+1a220c00
+d8a005f0
+20407c4b
+d8c005f0
+20406fbb
+203a70bc
+da2005f0
+da400608
+20407070
+da2005d8
+da4005a8
+20407070
+da2005f0
+da4005d8
+20406fca
+202170ae
+da2005d8
+da4005f0
+1a220a00
+20406fe5
+da200608
+da4005a8
+1a420a00
+20406fd7
+efe08011
+9a60a600
+efe08012
+9a60fe00
+e7e08012
+20207093
+da2005f0
+da4005d8
+1a220a00
+20406fe5
+da2005a8
+da400608
+1a420a00
+20406fd7
+efe08011
+9a60a600
+efe08012
+9a60fe00
+e7e08012
+20207093
+d8a00608
+20407c58
+6fe085c0
+67e08608
+67e08610
+da200608
+da4005a8
+1a420a00
+2040701b
+da200748
+da4005a8
+19620a00
+2020701e
+da200568
+d8a00620
+2040706e
+da200620
+d8a00638
+2040706e
+da200760
+da400638
+d8a00638
+2040704c
+da200538
+d8a00620
+2040706e
+d8c00620
+d8a005f0
+20407c4b
+da2005f0
+2040700e
+da200620
+da4005f0
+d8a00620
+2040701b
+da200620
+da400638
+d8a00620
+2040701b
+d8c00538
+d8a005f0
+20407c4b
+da200550
+d8a00638
+2040706e
+da2005f0
+2040700e
+da2005f0
+2040700e
+da2005f0
+da400638
+d8a005f0
+2040704c
+da200638
+d8a00608
+2040706e
+da200608
+2040700e
+da200608
+2040700e
+da200608
+2040700e
+d8c00550
+d8a00638
+20407c4b
+da200638
+2040700e
+da200638
+da400568
+d8a00568
+2040704c
+da200620
+d8a00638
+2040706e
+da200638
+da4005f0
+d8a00638
+2040701e
+da200638
+da4005f0
+d8a00538
+2040701e
+da2005f0
+da400538
+d8a00638
+2040701e
+da200638
+da400620
+d8a00638
+2040704c
+da200638
+da400608
+d8a00550
+2020701e
+da2004d8
+d8a00650
+2040706e
+da200538
+da400650
+d8a00608
+2040704c
+da2004d8
+da400650
+d8a00650
+2040704c
+da200550
+da400650
+d8a005f0
+2040704c
+da200568
+d8a00650
+2040706e
+da2004a8
+da400650
+d8a00620
+2040704c
+da200568
+da400650
+d8a00650
+2040704c
+da2004c0
+da400650
+d8a00638
+2040704c
+da200608
+da400620
+d8a00650
+2040701e
+da200608
+da400620
+d8a00608
+2040701b
+da2005f0
+da400638
+d8a00620
+2040701e
+da2005f0
+da400638
+d8a005f0
+2040701b
+da2005f0
+da400650
+d8a005f0
+2040704c
+da200568
+da4004d8
+d8a00638
+2040704c
+da200638
+da400650
+d8a00568
+2040704c
+da200650
+d8a00650
+2040706e
+da200650
+da400608
+d8a00638
+2040704c
+da200650
+da4005f0
+d8a005f0
+2040704c
+da200620
+d8a00538
+2040706e
+da200538
+da400638
+d8a00538
+2040701e
+d8c00538
+d8a00650
+20407c4b
+da200650
+2040700e
+da200638
+da400650
+d8a00638
+2040701e
+da200638
+da400620
+d8a00620
+2040704c
+da200620
+da4005f0
+d8a00550
+2040701e
+da200550
+da400748
+d8a00550
+18002600
+6fe08550
+2feffe00
+2040efd7
+1a626000
+da200550
+20406ff3
+6fe08567
+2e0ffe00
+7920fe07
+67e08567
+20600000
+6fe084a5
+1fe0ffff
+24610000
+67e084a5
+6fe084a4
+205a70c9
+6fe084a5
+d8c00580
+20406fb2
+2020f186
+6fe084a4
+243a7194
+2040711a
+20207186
+7004a400
+d8c004a8
+d8a00538
+20406fb8
+20207186
+da200568
+d8a00638
+20407084
+da200638
+d8a005f0
+2040706e
+da200538
+da4005f0
+d8a004f0
+2040704c
+da200638
+da4005f0
+d8a00620
+2040704c
+da200550
+da400620
+d8a00508
+2020704c
+efe20006
+18002204
+18a08a03
+e7e08005
+1fecfe00
+18a08bfe
+1a20a3ff
+2422f1ae
+18a08a05
+c20071ab
+20600000
+18ebfe00
+99608c00
+efe20006
+20600000
+18006010
+d96004a8
+1e008ff9
+204071b6
+98000400
+1e008ff0
+204071b6
+98408400
+1e008ffe
+204071b6
+1fee7e01
+98408400
+1e008ff1
+204071b6
+1fee7e00
+98408400
+1e0bfe00
+99608a00
+e0420005
+1e00e001
+2e01fe40
+2420f1bc
+20600000
+d8c007c0
+18007007
+efe20006
+98005e00
+1f00f1ff
+202171d3
+20600000
+473d402f
+204071ba
+d8a005a8
+18007000
+1de27e00
+e7e20005
+1f00f001
+2f01fe08
+2420f1dc
+20406d29
+d9609300
+de0004a8
+18007240
+e8420030
+efe2000b
+19609604
+1e00e004
+9840fe00
+18007007
+9de08400
+18007004
+1dee7e03
+98408400
+18007005
+1de27e00
+18007006
+9de2fe00
+18007004
+9de17e00
+18007006
+9de2fe00
+98408400
+18007007
+18425e00
+18007003
+1de27e00
+9840de00
+18007000
+1de27e00
+18007001
+9de10400
+9de1fe00
+18007002
+9de17e00
+98418400
+18007000
+1dee7e02
+9840fe00
+18007007
+9de0de00
+980efc00
+c20071e5
+d8c005a8
+18007000
+efe20006
+9de0de00
+1f00f001
+2f01fe08
+2420f20e
+20206d2d
+d8a00900
+18007007
+1de27e00
+e7e20005
+1f00f1ff
+20217216
+20600000
+d8a004a8
+18c08dfc
+1f262210
+efe20006
+9842fe00
+e7e20005
+18c08df8
+c200721e
+1a227200
+18427e00
+e7e20005
+c2007225
+20600000
+6fe0c64c
+c001722f
+c000f22c
+20600000
+20407234
+20407214
+2020725a
+2040726e
+20407214
+2020725a
+20407234
+2020725a
+d8c008a0
+d8a004a8
+18007206
+20407358
+d8c04753
+18007206
+20407358
+d8c00900
+20407357
+204071d1
+204071d8
+d8c008f0
+d8a004a8
+20207251
+d8c04753
+d8a004a8
+18007206
+20407358
+d8c008a0
+18007206
+20407358
+d8c008f0
+20407357
+204071d1
+204071d8
+d8c00900
+d8a004a8
+20407251
+2020725a
+20407357
+58800000
+1fed7e00
+e7e20005
+18007205
+20407c59
+58000280
+e7e20005
+202071d8
+6fe20900
+da2003e8
+9a26fc00
+20407d31
+18077e00
+67e2087c
+1807fe00
+da2003e8
+9a26fc00
+20407d31
+18077e00
+da2003e8
+9a2ffe00
+684a087c
+9840fe00
+67e2087c
+20600000
+2040726e
+20407214
+2020725a
+d8c008a0
+d8a004a8
+18007208
+20407358
+d8c04703
+18007208
+20407358
+204071d1
+204071d8
+d8c00900
+d8a004a8
+20407357
+d8c008f0
+2020727c
+20407357
+58800000
+1fed7e00
+e7e20005
+18007203
+20407c59
+58000300
+e7e20005
+202071d8
+70477500
+20207289
+6fe0c773
+c0817285
+473dc02f
+58363636
+1fed0400
+18418436
+6fe10940
+1fe20c00
+18007204
+2040721b
+204071d1
+204071d8
+6fe10942
+1fe20c00
+d8a004a8
+18007206
+20407358
+6fe10944
+1fe20c00
+18007206
+20407358
+58800000
+e7e18005
+6fe0c775
+e7e08005
+18007e00
+e7e40005
+58000388
+e7e20005
+204071d8
+20407214
+d8c00900
+d8a005c8
+20407c4a
+585c5c5c
+1fed0400
+1841845c
+6fe10940
+1fe20c00
+18007204
+2040721b
+204071d1
+204071d8
+d8c005e8
+d8a004a8
+18007208
+20407358
+58800000
+1fed7e00
+e7e20005
+20407c58
+58000300
+e7e20005
+204071d8
+20207214
+58363636
+1fed0400
+18418436
+d8c008e0
+18007206
+2040721b
+204071d1
+204071d8
+6fe1094c
+1fe20c00
+d8a004a8
+20407357
+6fe1094e
+1fe20c00
+20407357
+5862746c
+1fed7e00
+1fe1fe6b
+e7e20005
+d8c005f5
+18007203
+20407358
+58800000
+1fed7e00
+e7e20005
+18007e00
+e7e40005
+58000380
+e7e20005
+204071d8
+20407214
+d8c00900
+d8a005c8
+20407c4a
+585c5c5c
+1fed0400
+1841845c
+d8c008e0
+18007206
+2040721b
+204071d1
+204071d8
+d8c005e8
+d8a004a8
+18007208
+20407358
+58800000
+1fed7e00
+e7e20005
+20407c58
+58000300
+e7e20005
+204071d8
+20207214
+6fe0c773
+c0817305
+473e402f
+58363636
+1fed0400
+18418436
+d8c008e0
+18007206
+2040721b
+204071d1
+204071d8
+d8c00900
+d8a004a8
+20407357
+d8c008f0
+20407357
+2020731a
+58000000
+67e2479b
+202072f6
+58000000
+67e2479b
+2020730d
+6fe0c773
+c0817308
+58363636
+1fed0400
+18418436
+d8c008e0
+18007206
+2040721b
+204071d1
+204071d8
+d8c008f0
+d8a004a8
+20407357
+d8c00900
+20407357
+58000000
+e7e40005
+e7e20005
+6fe2479b
+e7e20005
+18a20400
+7005e880
+18420a00
+d8c005f8
+20407357
+204071d8
+d8a004a8
+18007207
+20407c59
+e7e20005
+580003f8
+e7e20005
+204071d8
+20407214
+d8c00900
+d8a005c8
+20407c4a
+585c5c5c
+1fed0400
+1841845c
+d8c008e0
+18007206
+2040721b
+204071d1
+204071d8
+d8c005e8
+d8a004a8
+18007208
+20407358
+58800000
+1fed7e00
+e7e20005
+20407c58
+58000300
+e7e20005
+204071d8
+20207214
+7004a5c0
+6fe084a5
+207a0000
+1fe0ffff
+67e084a5
+d8c00580
+20406fb2
+2020f345
+d8c004a8
+d8a00538
+20206fb8
+204070c9
+6fe084a5
+1fe0ffff
+67e084a5
+d8c00580
+20406fb2
+20608000
+2020711a
+18007204
+18c08dfc
+efe20006
+e7e20005
+18c08df8
+c2007359
+20600000
+70477500
+20207362
+6fe0c773
+c081735e
+58363636
+1fed0400
+18418436
+6fe10940
+1fe20c00
+18007204
+2040721b
+204071d1
+204071d8
+6fe10942
+1fe20c00
+d8a004a8
+18007208
+20407358
+6fe10944
+1fe20c00
+18007208
+20407358
+204071d8
+d8a004a8
+58800000
+e7e18005
+6fe0c775
+e7e08005
+df200007
+20407c59
+58000408
+e7e20005
+202072a4
+6fe0c64c
+c0017383
+c000f2f4
+20600000
+6fe0c773
+c08173bc
+58363636
+1fed0400
+18418436
+d8c008e0
+18007208
+2040721b
+204071d1
+204071d8
+d8c00900
+d8a004a8
+20407357
+d8c008f0
+20407357
+58000000
+e7e40005
+e7e20005
+6fe2479b
+e7e20005
+18a20400
+7005e880
+18420a00
+d8c005f8
+20407357
+204071d8
+d8a004a8
+18007207
+20407c59
+e7e20005
+580003f8
+e7e20005
+204071d8
+20407214
+d8c00900
+d8a005c8
+20407c4a
+585c5c5c
+1fed0400
+1841845c
+d8c008e0
+18007208
+2040721b
+204071d1
+204071d8
+d8c005e8
+d8a004a8
+18007208
+20407358
+58800000
+1fed7e00
+e7e20005
+20407c58
+58000300
+e7e20005
+204071d8
+20207214
+58000000
+67e2479b
+20207385
+58000000
+67e2479b
+202073c8
+6fe0c64c
+c00173c6
+c000f30b
+20600000
+6fe0c773
+c08173bf
+58363636
+1fed0400
+18418436
+d8c008e0
+18007208
+2040721b
+204071d1
+204071d8
+d8c008f0
+d8a004a8
+20407357
+d8c00900
+20407357
+20207392
+6fe0c64c
+c00173da
+c000f2be
+20600000
+58363636
+1fed0400
+18418436
+d8c008e0
+18007208
+2040721b
+204071d1
+204071d8
+6fe1094c
+1fe20c00
+d8a004a8
+20407357
+6fe1094e
+1fe20c00
+20407357
+5862746c
+1fed7e00
+1fe1fe6b
+e7e20005
+d8c005f5
+18007203
+20407358
+58800000
+1fed7e00
+e7e20005
+18007e00
+e7e40005
+58000380
+e7e20005
+204071d8
+20407214
+d8c00900
+d8a005c8
+20407c4a
+585c5c5c
+1fed0400
+1841845c
+d8c008e0
+18007208
+202073ad
+6fe340a8
+67e305e9
+6fe30040
+e7e30005
+58363636
+1fed0400
+18418436
+d8c041de
+18007204
+2040721b
+204071d1
+204071d8
+58627461
+1fed7e00
+1fe1fe6b
+67e204a8
+d8c005f5
+18007203
+20407358
+d8c046b9
+df200002
+20407358
+58800000
+1fed7e00
+e7e20005
+df200004
+20407c59
+580002c0
+e7e20005
+204071d8
+20407214
+d8c00900
+d8a005c8
+20407c4a
+585c5c5c
+1fed0400
+1841845c
+d8c041de
+18007204
+202073ad
+6fe340a8
+67e305e9
+6fe30040
+e7e30005
+58363636
+1fed0400
+18418436
+d8c041de
+18007204
+2040721b
+204071d1
+204071d8
+58627464
+1fed7e00
+1fe1fe6b
+67e204a8
+d8c005f5
+18007203
+20407358
+58800000
+1fed7e00
+e7e20005
+df200005
+20407c59
+58000280
+e7e20005
+204071d8
+20407214
+d8c00900
+d8a005c8
+20407c4a
+585c5c5c
+1fed0400
+1841845c
+d8c041de
+18007204
+202073ad
+d8c00910
+d8a00454
+20407c4c
+58000900
+67e10940
+58000434
+e7e10005
+58363636
+1fed0400
+18418436
+d8c00464
+18007204
+2040721b
+204071d1
+204071d8
+d8a004a8
+6fe10940
+1fe20c00
+20407357
+6fe10942
+1fe20c00
+20407357
+58800000
+1fed7e00
+e7e20005
+df200003
+20407c59
+58000300
+e7e20005
+204071d8
+20407214
+d8c00900
+d8a005c8
+20407c4a
+585c5c5c
+1fed0400
+1841845c
+d8c00464
+18007204
+202073ad
+473ec02f
+6fe0c6bf
+243a7498
+7046c100
+7046c200
+20600000
+6fe0c6bf
+207a0000
+6fe0c6c2
+c1018000
+204074cd
+2020747d
+d8a046c3
+38001abd
+3805b34f
+38099b8a
+380e6562
+e7e48005
+380340b7
+38041efa
+3808aff6
+380cfd41
+e7e48005
+3803d210
+38066cf8
+380b874c
+380f157c
+e7e48005
+3802d4a3
+3807d27d
+38080003
+e7e28005
+20600000
+6fe0c6c2
+c1800000
+6fe0c6c1
+c1800000
+20406d88
+d8a046c3
+18000e0f
+20406f68
+180a7e00
+1fe37e00
+e7e10005
+6fe0c6be
+245a7483
+d8a00628
+d8c046c3
+20407c4a
+d8a00508
+d8c00820
+20407c3d
+d8a00548
+20407c64
+70054801
+204074e5
+7046c103
+20600000
+d8a046e3
+d8c00568
+20407c3d
+7046c203
+7046c100
+20600000
+6fe0887b
+c1800000
+6fe0c6c1
+c1800000
+d8a00628
+d8c046c3
+20407c4a
+d8a00508
+d8c00880
+20407c3d
+d8a00548
+20407c64
+70054801
+204074e5
+7046c104
+20600000
+d8a008c0
+d8c00568
+20407c4a
+70087b03
+7046c100
+20600000
+6fe0c6bf
+207a0000
+6fe0c6c1
+207a0000
+1fe0fe80
+67e0c6c1
+c3838000
+6fe104a5
+203a74d7
+202074dd
+473f402f
+204074f2
+6fe0c6c1
+c001f4b1
+c00274c7
+20600000
+20407504
+6fe104a5
+1fe0ffff
+67e104a5
+d8c00628
+20406fb2
+20608000
+20207555
+473fc02f
+58000100
+67e104a5
+6fe104a5
+207a0000
+1fe0ffff
+67e104a5
+d8c00628
+20406fb2
+2020f4e8
+d8c00508
+d8a005c8
+20207c3c
+da200608
+d8a00708
+204075c1
+da200708
+d8a006a8
+20407697
+da2005c8
+da4006a8
+d8a00568
+204075ff
+da200708
+da4006a8
+d8a006e8
+204075ff
+da2005e8
+da4006e8
+d8a00588
+202075ff
+da200608
+d8a006e8
+20407697
+da2006e8
+d8a00708
+20407697
+da200800
+da400708
+d8a00708
+204075ff
+da2005c8
+d8a006e8
+20407697
+d8c006e8
+d8a006a8
+20407c4a
+da2006a8
+2040769e
+da2006e8
+da4006a8
+d8a006e8
+2040769b
+da2006e8
+da400708
+d8a006e8
+2040769b
+d8c005c8
+d8a006a8
+20407c4a
+da2005e8
+d8a00708
+20407697
+da2006a8
+2040769e
+da2006a8
+2040769e
+da2006a8
+da400708
+d8a006a8
+204075ff
+da200708
+d8a006c8
+20407697
+da2006c8
+2040769e
+da2006c8
+2040769e
+da2006c8
+2040769e
+d8c005e8
+d8a00708
+20407c4a
+da200708
+2040769e
+da200708
+da400608
+d8a00608
+204075ff
+da2006e8
+d8a00708
+20407697
+da200708
+da4006a8
+d8a00708
+204076b4
+da200708
+da4006a8
+d8a005c8
+204076b4
+da2006a8
+da4005c8
+d8a00708
+204076b4
+da200708
+da4006e8
+d8a00708
+204075ff
+da200708
+da4006c8
+d8a005e8
+202076b4
+da200548
+d8a00728
+20407697
+da2005c8
+da400728
+d8a006c8
+204075ff
+da200548
+da400728
+d8a00728
+204075ff
+da2005e8
+da400728
+d8a006a8
+204075ff
+da200608
+d8a00728
+20407697
+da200508
+da400728
+d8a006e8
+204075ff
+da200608
+da400728
+d8a00728
+204075ff
+da200528
+da400728
+d8a00708
+204075ff
+da4006c8
+da2006e8
+d8a00728
+204076b4
+da2006c8
+da4006e8
+d8a006c8
+2040769b
+da4006a8
+da200708
+d8a006e8
+204076b4
+da2006a8
+da400708
+d8a006a8
+2040769b
+da2006a8
+da400728
+d8a006a8
+204075ff
+da200608
+da400548
+d8a00708
+204075ff
+da200708
+da400728
+d8a00608
+204075ff
+da200728
+d8a00728
+20407697
+da200728
+da4006c8
+d8a00708
+204075ff
+da200728
+da4006a8
+d8a006a8
+204075ff
+da2006e8
+d8a005c8
+20407697
+da2005c8
+da400708
+d8a005c8
+204076b4
+d8c005c8
+d8a00728
+20407c4a
+da200728
+2040769e
+da200708
+da400728
+d8a00708
+204076b4
+da200708
+da4006e8
+d8a006e8
+204075ff
+da2006e8
+da4006a8
+d8a005e8
+204076b4
+da2005e8
+da4007e0
+d8a005e8
+18002600
+6fe085e8
+2feffe00
+2040f699
+1a626000
+da2005e8
+204076c9
+6fe08607
+2e0ffe00
+7920fe07
+67e08607
+20600000
+18a21600
+d8a006c8
+20407c64
+18007e00
+67e206e8
+7006c801
+d8a00648
+20407c66
+d8c007e0
+d8a00688
+20407c4a
+1a220c00
+d8a006a8
+20407c4a
+d8c006a8
+204076d3
+203a75f8
+da2006a8
+da4006c8
+204076d6
+da200688
+da400648
+204076d6
+da2006a8
+da400688
+204076cf
+202175ea
+da200688
+da4006a8
+1a220a00
+204076c7
+da2006c8
+da400648
+1a420a00
+20407699
+efe08011
+9a60a600
+efe08012
+9a60fe00
+e7e08012
+202075cf
+da2006a8
+da400688
+1a220a00
+204076c7
+da200648
+da4006c8
+1a420a00
+20407699
+efe08011
+9a60a600
+efe08012
+9a60fe00
+e7e08012
+202075cf
+da200648
+19620a00
+20407628
+da2007e0
+19622400
+19620a00
+202076b4
+18a21600
+18007000
+d8a00648
+20407c66
+d8a0099e
+20407c66
+1a220c00
+70099e00
+58000000
+20407691
+1a420c00
+20407695
+18000e00
+d8a00648
+d840099e
+18e22400
+1a4bfe00
+9840a400
+18000400
+18002600
+efe20005
+98002200
+efe20012
+1a627000
+9deffe00
+9a20fe00
+9840fe00
+e7e20005
+1fef0400
+1a60a601
+2a61fe08
+2420f613
+18427e00
+e7e20005
+18a08be0
+18e08e01
+28e1fe08
+2420f60d
+da200648
+19620a00
+20207628
+47404030
+18a21600
+1a226000
+da400688
+1a420a00
+20407c61
+e7e40005
+1a208c2c
+20407c46
+20407c40
+1a422200
+2040769e
+da400688
+1e022200
+19620a00
+2040769b
+da400688
+1a420a00
+20407c61
+e7e40005
+1e008c30
+20407c4c
+20407c61
+1a422200
+2040769e
+da400688
+19622200
+1a220a00
+2040769b
+da400688
+1a420a00
+1e008c20
+20407c40
+20407c61
+e7e40005
+1e008c38
+20407c46
+19622200
+1a220a00
+2040769b
+da400688
+1a420a00
+1e008c24
+20407c40
+1e008c34
+20407c40
+1e008c34
+20407c41
+1e008c20
+20407c41
+19622200
+1a220a00
+2040769b
+da400688
+1a420a00
+1e008c2c
+20407c40
+20407c61
+e7e40005
+1e008c20
+20407c41
+1e008c28
+20407c41
+19622200
+1a220a00
+204076b4
+da400688
+1a420a00
+1e008c30
+20407c46
+20407c46
+18007e00
+e7e40005
+1e008c24
+20407c41
+1e008c2c
+20407c41
+19622200
+1a220a00
+204076b4
+da400688
+1a420a00
+1e008c34
+20407c40
+1e008c20
+20407c40
+20407c61
+1e008c30
+20407c41
+19622200
+1a220a00
+204076b4
+da400688
+1a420a00
+1e008c38
+20407c46
+20407c61
+1e008c24
+20407c40
+20407c61
+1e008c34
+20407c41
+19622200
+1a220a00
+202076b4
+18007220
+d8a0099e
+98a08a00
+20207ca1
+18007208
+20207047
+1a222400
+202075ff
+18007208
+20206fd8
+20407699
+18a22200
+2020769f
+204076cc
+2a6ffe00
+2020f6a8
+da4007e0
+1a222600
+1a20a3e0
+204076cf
+24610000
+1a622200
+202076b0
+204076b0
+1a222600
+1a20a3e0
+da4007e0
+204076cf
+24610000
+1a622200
+202076b0
+1a20a3e0
+da4007e0
+1a220a00
+202076c7
+204076c7
+2020f6be
+18a0a3e0
+da4007e0
+204076cf
+24610000
+da4007e0
+18a0a3e0
+1a220a00
+202076c7
+18a0a3e0
+da4007e0
+1a220a00
+20407699
+20608000
+18a0a3e0
+da4007e0
+1a220a00
+20207699
+18007208
+20206fe6
+18007208
+1a20a21c
+20206ff5
+18007208
+18002600
+20207003
+18007208
+1a20a21c
+1a40a41c
+20206fcd
+efe40006
+247a0000
+20206fbb
+1a226000
+1e022200
+efe08011
+2feffe00
+20608000
+204076c9
+efe08012
+2fec0000
+2020f6e6
+da2007e0
+1a420a00
+20407699
+efe08012
+9a60fe00
+e7e08012
+1a40a5e0
+1a40a220
+18007209
+20406ff5
+202076d7
+20401578
+20758000
+204076f1
+20407797
+20207726
+20407747
+20207786
+6fe0c797
+c17f8000
+98000400
+20405f8d
+6848c797
+20405f89
+20000064
+6848c797
+20405f74
+202076fb
+4740c030
+6fe0c797
+c17f8000
+1fe20400
+20405f7d
+2420f70d
+20407717
+6fe14793
+79207e0c
+67e14793
+6fe0c78a
+c1000000
+70478a00
+6fe0c796
+67e0c789
+2040771e
+70095b2c
+202077a7
+6fe14793
+793ffe0c
+67e14793
+6fe0c78a
+c1008000
+70478a01
+70478900
+20407720
+70095b2d
+202077a7
+6fe0c789
+207a0000
+1fe0ffff
+67e0c789
+247a0000
+70095b10
+202077a7
+d8e00007
+20201547
+d8e00007
+2020154b
+6fe14492
+1a2fa40b
+9a40a400
+20600000
+6fe0c491
+207a0000
+1fe27200
+6fe14492
+1fe22400
+1a40a602
+e8408013
+20405f8d
+20407750
+1a40a40b
+c200772b
+20600000
+20407722
+58000002
+e7e08012
+20407780
+20207755
+20407722
+58000003
+e7e08012
+20407780
+20207750
+20407722
+58000001
+e7e08012
+580000ff
+e7e08005
+20207750
+20407722
+df20000b
+1a620c00
+1a420a00
+20207c94
+6fe0c491
+207a0000
+da200000
+2040775a
+1a20a201
+6fe0c491
+9a267c00
+20628000
+2020774a
+1a40a602
+e8408013
+6fe0c09a
+c004485d
+20205f89
+1a40a602
+e8408013
+6fe0c09a
+c0044869
+20205f8d
+1a208e0b
+20407cb6
+247a0000
+20407722
+efe08012
+c0017755
+c001f750
+c0007750
+c002f76e
+20407755
+1a40a607
+20407c06
+efe10013
+20407d47
+20407c12
+58000005
+e7e08012
+1a40a603
+efe10013
+2020777e
+20407750
+1a40a609
+20407c06
+efe10013
+20407d47
+20407c12
+1a40a601
+efe08013
+c07ff77a
+1fe0ffff
+e7e08013
+203a7737
+58000004
+e7e08012
+1a40a605
+efe10013
+1a208e0b
+20207ca8
+58000000
+2020777e
+58001000
+1ff07e00
+9a40a400
+20600000
+47414030
+da200000
+684a478b
+1c422400
+1a427e00
+98467c00
+24417782
+1a427e00
+184084a0
+184084a0
+98467c00
+2421779a
+1a20a201
+1a217e0f
+243a778d
+da200000
+204077a0
+1c427e00
+67e2478b
+20600000
+1a227e00
+207a0000
+18408560
+18408560
+793f841c
+604a478b
+202031c1
+70477701
+6fe0c778
+243a77a2
+20600000
+70477700
+20600000
+4741c030
+204077a1
+1a227e00
+67e20953
+da204779
+20407d63
+6fe20953
+1fe22200
+202077a5
+47424030
+204077a1
+1a227e00
+67e20953
+da204781
+20407d63
+6fe20953
+1fe22200
+202077a5
+58000000
+67e44781
+67e44779
+20600000
+4742c030
+6fe0c1de
+247a0000
+da204781
+20407d7b
+207a0000
+70095200
+204077c8
+6fe08952
+203a77bd
+20600000
+204077a1
+da204781
+20407d6f
+1fe20400
+204077a5
+47434030
+18427e00
+207a0000
+c000f7fa
+c00177ff
+c001f805
+c006f824
+c007782a
+c007f82f
+c0087835
+c009f83f
+c00a7841
+c00af843
+c00b784d
+c00bf850
+c00c7852
+c00cf855
+c00f7867
+67e0895b
+204058fe
+243a77f8
+6fe0895b
+c584f7f3
+4743c030
+6fe0895b
+c0027807
+c002f80a
+c0037815
+c0057817
+c008f83a
+c00df85d
+c009783e
+c00ef85e
+c00fdf49
+c0105f4b
+c010f869
+c012de7b
+20600000
+67e0895b
+20400a5f
+2022f7f8
+20400a67
+24628000
+70095201
+202077b0
+6fe14793
+79207e06
+67e14793
+70409b03
+20600000
+70479100
+70409b00
+6fe14793
+793ffe06
+67e14793
+20600000
+7041de05
+20600000
+70007c07
+70039e13
+20600000
+70007c17
+d8a003ac
+58000000
+2d0ffe1b
+7920fe01
+e7e08005
+58000000
+e7e10005
+6fe34458
+e7e30005
+20600000
+70007c18
+20600000
+7003a802
+6fe0804b
+c281781d
+20405931
+70007c08
+20600000
+793ffe02
+67e0804b
+2040560f
+58000000
+7934fe01
+67e0807f
+20600000
+70442a01
+70442d00
+6fe14793
+79207e0b
+67e14793
+20600000
+6fe14793
+793ffe0b
+67e14793
+70442a00
+20600000
+70442a01
+70442d01
+6fe14793
+79207e0b
+67e14793
+20600000
+6fe14793
+793ffe0b
+67e14793
+70442a00
+20600000
+58000014
+67e102b5
+67e14397
+20202115
+20201ee5
+da200000
+20207737
+da200000
+20207732
+da200000
+20407722
+efe08012
+c000f84a
+c002784a
+c002f84a
+2020773c
+efe08006
+c17f8000
+2020773c
+7043e501
+7041de1b
+20600000
+7043e501
+20600000
+7043e500
+7041de00
+20600000
+6fe14460
+20407d47
+6fe0c797
+c07ff85b
+1fe20400
+20405f74
+204077b9
+2020143a
+20201f27
+70007c34
+79200003
+24748000
+70464900
+70007c13
+6fe080bc
+793ffe02
+67e080bc
+20600000
+18000e03
+20207ca7
+2040593a
+70007d41
+202055ab
+6fe0c793
+c4060000
+c4038000
+20207867
+6fe1448f
+1fe08a02
+58000000
+e7e18005
+20600000
+20407d94
+204078bf
+207a0000
+6fe1448f
+1fe0a402
+e8408012
+18408401
+e0408012
+e840803f
+18427200
+1fe0a404
+efe08012
+984ffe00
+98c08a00
+1a220c00
+20407ca1
+204078c3
+1fe0ffff
+e8408012
+18408401
+98410400
+e0408012
+20207d92
+20407d94
+204078bb
+207a0000
+6fe1448f
+1fe0a402
+e8408012
+184085ff
+e0408012
+e840803f
+18427200
+1fe0a403
+efe08012
+984ffe00
+98c08c00
+18c08c01
+1a220a00
+20207884
+20407d94
+204078bb
+207a0000
+6fe1448f
+e840803f
+18427200
+1fe0a403
+efe08012
+984ffe00
+98c08c00
+18c08c01
+18c22400
+1a220a00
+20407ca1
+20207d92
+20407d94
+204078bb
+207a0000
+6fe1448f
+e840803f
+18427200
+1fe0a403
+efe08012
+984ffe00
+98c08c00
+18c08a02
+1a220c00
+1f20f3ff
+20407ca1
+20207d92
+6fe1448f
+1fe08c02
+efe08006
+20600000
+204078c3
+e8408006
+98467e00
+20600000
+6fe1448f
+1fe08c01
+efe08006
+20600000
+47444031
+6ff08c23
+2feffe03
+2040f8d3
+6ff08c23
+67f08c23
+67e089f6
+20407933
+2040795b
+20407b4c
+20407b94
+2020792b
+4744c031
+20406d29
+204078f2
+708c0000
+20002710
+708c18c0
+6ff10050
+793ffe0a
+67f10050
+708c1100
+708c003c
+58000a4f
+67f10c03
+67f10c07
+58000a8f
+67f10c05
+708c1104
+708c0200
+708c23ff
+58000c4b
+d8a00b59
+98a67200
+20207c68
+68488b58
+20205f74
+6fe08bfa
+207a0000
+68488b58
+20405f7d
+2020f8d3
+20600000
+700b5702
+58000000
+67e08a92
+67e10b51
+1fe0fe01
+67e10b53
+1fe0fe01
+67e10b55
+d8a00ae6
+58030404
+e7e18005
+58000409
+e7e10005
+d8a00aeb
+38015906
+380610d2
+38090494
+380c0001
+e7e48005
+d8a00b09
+3801570f
+38055c9a
+380a56c6
+380dcdcd
+e7e48005
+38014420
+38065d99
+380a5636
+380c0001
+e7e38005
+d8a00b27
+3801620a
+38040c8c
+380b0333
+380cc0c0
+e7e48005
+38003130
+e7e10005
+580099a4
+67e10a93
+580099ff
+67e10a95
+d8c09aa3
+d8a00a97
+df200013
+20407ca1
+d8c09ab6
+d8a00aaa
+df20003c
+20407ca1
+6fe10b45
+20207d47
+6fe08b47
+207a0000
+67e08acc
+67e08ae5
+20600000
+d8e00000
+20407cb6
+247a0000
+6fe08bfb
+247a0000
+6fe08bfa
+245a7bea
+20600000
+6fe089f6
+c2817936
+20600000
+2040793b
+20407cb5
+58000280
+d8e00000
+20207ca8
+6fe08bec
+c0817940
+700bfb00
+700bfc00
+20600000
+6fe08bfe
+207a0000
+700bfe00
+700bec02
+700bfa01
+20600000
+6fe089f6
+c2807968
+20600000
+6ff08c24
+c3830000
+69510c03
+6a110c05
+68710c07
+efe10003
+1fec8400
+18518400
+d8c00fff
+98c17200
+1f222200
+efe08003
+e7e08005
+c2007954
+60710c07
+622109f8
+20600000
+20600000
+47454031
+6fe089f6
+c4028000
+d8a00b59
+20407949
+18427e00
+c0007963
+2020795a
+6fe089f8
+c0007946
+c000f96f
+1fe67c07
+20610000
+4745c031
+793f8023
+6fe08b59
+1fe17e80
+c0407973
+c000797b
+2020137a
+6fe08b59
+c3838000
+20407b21
+202079a1
+6fe08b59
+1ff1fe00
+1fe37e00
+1fe17e03
+c0007983
+c000f989
+c001798e
+2020137a
+6fe08b59
+1ff1fe00
+1fe37e00
+1fe17e03
+c000798f
+c000f997
+c001799c
+2020137a
+6fe08b5a
+c00479a3
+c00379b9
+c00579fe
+c0007a10
+2020799d
+6fe08b5a
+c0017a45
+c000fa49
+c001fa5a
+2020799d
+2020799d
+6fe08b5a
+c000fa64
+c001fa93
+c002fabe
+c004fad7
+c005faf2
+c003f99d
+2020799d
+6fe08b5a
+c0057b03
+c004fb15
+c005fb33
+2020799d
+2020799d
+6ff08c19
+79207e00
+67f08c19
+202079a1
+708c1810
+20600000
+6fe08b59
+c0c0799d
+6fe08b5d
+c080799d
+6fe08b5e
+c080799d
+6fe08b5f
+c080f99d
+6fe08b60
+c080799d
+6fe08b5b
+c080799d
+6fe08b5c
+c080799d
+6fe08b57
+c00279b5
+c001f9b7
+2020799d
+da400001
+20207a2a
+da400001
+20207a28
+47464031
+6fe08b5c
+c000f9cc
+c00179e5
+c001f9e8
+c010f9c1
+c01179f6
+2020799d
+700be900
+6fe08b5d
+c00079c6
+c000f9c9
+2020799d
+6a408abd
+da200abd
+20207b42
+6a408ad6
+da200ad6
+20207b42
+6fe08bfd
+245a79dd
+58000a97
+68488a97
+67e10bf4
+60488bf6
+6fe08b5f
+98467c00
+242179db
+6fe08bf6
+98002400
+6fe10bf4
+1fe0fe01
+98002200
+20207b42
+6fe08b5f
+202079d6
+6ff08c02
+245a79e1
+700bfd00
+20600000
+6ff08c02
+79207e07
+67f08c02
+20600000
+58000aaa
+68488aaa
+202079d0
+6fe08b5b
+1fe67c03
+2421799d
+6fe08b5b
+da200ae6
+c0007b40
+79200023
+da200aeb
+c000fb40
+da200b09
+c0017b40
+da200b27
+c001fb40
+20600000
+6fe10b5d
+c000f9fa
+6a210a93
+20207b40
+700bfa01
+700bec01
+6a210a95
+20207b40
+6fe08b57
+c082799d
+6fe08b59
+c0c0f99d
+6fe08b5b
+c080799d
+6fe08b5c
+c080799d
+6fe08b5f
+c080f99d
+6fe08b60
+c080799d
+6fe08b5d
+c080799d
+6fe08b5e
+c080799d
+da400001
+20207a28
+6fe08b57
+c001799d
+6fe08b5b
+c080799d
+6fe08b5c
+c080799d
+6fe08b5f
+c081799d
+6fe08b60
+c080799d
+6fe08b5e
+c080799d
+6fe08b59
+c0407a23
+c040fa2e
+c0417a32
+2020799d
+700bef01
+20207a2c
+6fe08b5d
+c080799d
+da400002
+6fe08bed
+c000fa21
+da200b51
+20207b42
+da200b53
+20207b42
+da200b55
+20207b42
+6fe08b57
+c082799d
+da400002
+20207a28
+6fe08b57
+c082799d
+6fe08b5d
+c040fa3f
+c0417a41
+c041fa43
+1fe17e7f
+c0007a3b
+2020799d
+6fe08bf0
+da400002
+c000fa2a
+20207a28
+6fe08bf1
+20207a3c
+6fe08bf2
+20207a3c
+6fe08bf3
+20207a3c
+700be701
+da200be8
+da400001
+20207b42
+6fe10b5b
+d84001ba
+98467c00
+2422f99d
+6fe08be4
+243a7a57
+700ba100
+6fe08b5f
+98002400
+da200ba1
+20407b42
+d8a00ba1
+df200008
+20207c59
+700be400
+700ba101
+20207a50
+6fe08b5f
+c080f99d
+700be901
+da400001
+6fe08beb
+c0007a62
+c000fa63
+20207a28
+20207a2a
+20207a28
+6fe08b57
+c082799d
+6fe08b5f
+c080799d
+6fe08b60
+c080799d
+6fe08b5c
+c080799d
+6fe08b5e
+c080799d
+6fe08b59
+c0007a73
+c000fa80
+c0017a81
+2020799d
+6fe08b5b
+c080f99d
+6ff08c00
+793ffe07
+67f08c00
+700bed00
+700bee01
+6fe08bef
+203a79a1
+700bef00
+700bee00
+700bec02
+202079a1
+2020799d
+6fe08b5b
+c080799d
+6fe08b5d
+c040fa8c
+c0417a8f
+c041fa91
+1fe17e7f
+c0007a8a
+2020799d
+700bf000
+202079a1
+700bf100
+700bfe01
+202079a1
+700bf200
+20207a8d
+700bf300
+20207a8d
+6fe08b5f
+c080799d
+6fe08b60
+c080799d
+6fe08b59
+c0007a9c
+c000faaa
+c0017aab
+2020799d
+6fe08b5b
+c080f99d
+2040374a
+6ff08c00
+79207e07
+67f08c00
+700bed01
+700bec03
+700be500
+204079a1
+20407cb5
+58001388
+d8e0000f
+20207ca8
+2020799d
+6fe08b5b
+c080799d
+6fe08b5c
+c080799d
+6fe08b5d
+c040fab8
+c0417aba
+c041fabc
+1fe17e7f
+c0007ab6
+2020799d
+700bf001
+202079a1
+700bf101
+202079a1
+700bf201
+202079a1
+700bf301
+202079a1
+6fe08b59
+c080799d
+6fe08b5d
+c080799d
+6fe08b5e
+c080799d
+6fe08b5f
+c080799d
+6fe08b60
+c080799d
+6fe08b5c
+c080799d
+6fe08b5b
+1fe17e80
+c080799d
+6fe08b5b
+c0807ad5
+700b5702
+6fe08b5b
+67f08c02
+204079a1
+700bfd01
+20600000
+700b5703
+20207ad0
+6fe08b57
+c001799d
+6fe08b59
+c080799d
+6fe08b5d
+c080799d
+6fe08b5e
+c080799d
+6fe08b5f
+c080799d
+6fe08b60
+c080799d
+6fe08b5c
+c080799d
+6fe08b5b
+1fe67c01
+2421799d
+6fe08b57
+c001faec
+c0027aec
+2020799d
+6fe08b5b
+c0007af0
+700b5704
+202079a1
+700b5703
+202079a1
+6fe08b57
+c082799d
+6fe08b59
+c080f99d
+6fe08b5b
+c080799d
+6fe08b5c
+c080799d
+6fe08b5f
+c080799d
+6fe08b60
+c080799d
+6fe08b5d
+c080799d
+6fe08b5e
+c080799d
+202079a1
+4746c031
+700be701
+6fe08b5c
+67e08be8
+6fe08b5d
+1fe67c01
+2042fb11
+6fe08bec
+c08279a1
+700bec02
+204079a1
+20007530
+20007530
+20600000
+700bfa01
+700bee00
+700bec04
+20600000
+d8a00b61
+20407949
+700be301
+20407b25
+6fe10b5b
+67e10be1
+204079a1
+6fe0c09a
+c1820000
+6fe08be5
+207a0000
+6fe08b61
+67e0c8d2
+700be500
+7048c203
+20600000
+6fe10b5b
+d8400200
+98467c00
+24628000
+6fe10b5d
+d8400000
+98467c00
+24628000
+6fe10b5f
+d8400001
+98467c00
+24628000
+700be501
+20600000
+6fe08b5f
+c080799d
+6fe08b5b
+c0007b39
+c000fb3c
+2020799d
+700bea00
+700beb01
+202079a1
+700be601
+700bea01
+700beb00
+202079a1
+ea408011
+1a20a201
+47474031
+7920000e
+c591fb47
+1a40a401
+1a43a400
+62210a90
+62408a92
+20207b4c
+d8e00000
+20207b8c
+4747c031
+6ff08c24
+c3800000
+6fe08a92
+207a0000
+1fe27200
+98000400
+6fe10b5f
+1fe67c40
+20217b5a
+1f267c40
+20217b5e
+18007240
+20207b5e
+9f267c00
+20217b5e
+98007200
+67e08a92
+6fe08a92
+9f267e00
+67e08a92
+1f20ffff
+67e089fa
+c591fb70
+1fe37e00
+1f20ffff
+67e089fa
+c5877b70
+793f800e
+e0408005
+58000003
+e7e08005
+1f20f3ff
+1f227e00
+2422fb70
+1f20f201
+6fe10a90
+1fe20c00
+efe08006
+e7e08005
+c591fb77
+58000000
+e7e08005
+c2007b72
+18c27e00
+67e10a90
+580009fa
+67f10c09
+d8e00000
+20407b8c
+6fe08a92
+247a0000
+6fe08bec
+c1808000
+700bec02
+20600000
+d8e00001
+da200a3b
+62310c0b
+1f20ffff
+e7e08011
+efe08006
+e7e08005
+c2007b89
+58000000
+f9207e00
+67f08c18
+20600000
+d8e00002
+da200a45
+62310c0d
+20207b87
+47484032
+6fe08bf9
+207a0000
+6fe08bfa
+203a7bb8
+6fe08bec
+c001fbf2
+c0817bb8
+6fe08bee
+243a7bb8
+20407ba0
+20207bab
+6ff08c24
+c3808000
+6fe08bf9
+c4008000
+6fe08bf9
+793ffe01
+67e08bf9
+6fe08bf7
+207a0000
+c0087bda
+2020137a
+6ff08c24
+c3810000
+6fe08bf9
+c4010000
+6fe08bf9
+793ffe02
+67e08bf9
+6fe08bf8
+207a0000
+c0107bbb
+c010fbd6
+c0117bde
+2020137a
+d8a00bff
+df200008
+20207c59
+6fe08be7
+68488be9
+98417e00
+203a7bd2
+68488bea
+9840fe00
+c000fbc3
+20207bd2
+700bf800
+6fe08c00
+c0017bd3
+c001fbd3
+6fe08c00
+67e08bff
+6fe08c01
+e7e08005
+6fe08c03
+e7e08005
+6fe08c05
+e7e08005
+df200004
+d8c00bff
+20207b90
+700bf800
+df200008
+d8c00bff
+20207b90
+700bf800
+df200003
+d8c00c1f
+20207b90
+700bf700
+df200008
+d8c00c0f
+20207b84
+700bf800
+df200002
+d8c00c2f
+20207b90
+6fe08bec
+c0017be5
+20600000
+6ff08c00
+79207e07
+67f08c00
+700bfc01
+20600000
+6fe08bec
+c1018000
+c0017bee
+20600000
+6fe08bfc
+207a0000
+700bfb01
+20207bf5
+d8e0000f
+20407cb6
+247a0000
+6ff08c00
+c4038000
+708c00fc
+20007530
+708c003c
+20600000
+1f267c00
+20628000
+1fe37e00
+c2007bfd
+20600000
+18007e01
+1f267c00
+20628000
+1fe3fe00
+c2007c03
+20600000
+60a1097d
+604c0964
+6162096c
+20407c0e
+60c1097b
+67210987
+60e10985
+20600000
+62220970
+62420974
+62618978
+20600000
+6fe1097d
+98000a00
+684c0964
+6962096c
+20407c1c
+6f210987
+68e10985
+6fe1097b
+98000c00
+20600000
+6a220970
+6a420974
+6a618978
+20600000
+6fe1097d
+1fe20a00
+20600000
+6fe1097b
+1fe20c00
+20600000
+18a27e00
+67e1097d
+20600000
+18c27e00
+67e1097b
+20600000
+18a27e00
+67e10959
+18c27e00
+67e10957
+20600000
+6fe10959
+1fe20a00
+6fe10957
+1fe20c00
+20600000
+98462200
+20610000
+da200100
+9a20fe00
+98462200
+20600000
+20407c4a
+20407c4a
+20207c4a
+20407c46
+20407c46
+efe08006
+e7e08005
+efe18006
+e7e18005
+20600000
+efe40006
+e7e40005
+20600000
+20407c4c
+20407c46
+20407c46
+20407c46
+20207c46
+1fe0ffff
+20000026
+243a7c4e
+20600000
+df20000a
+20002ee0
+c2007c53
+20600000
+df200032
+20207c53
+18007203
+18007e00
+e7e40005
+c2007c5a
+20600000
+20407c5e
+18007e00
+e7e40005
+20600000
+18007e00
+e7e20005
+20600000
+18007204
+20207c59
+18007208
+20207c59
+1f227e00
+207a0000
+58000000
+e7e08005
+c2007c6b
+20600000
+df200020
+d8a0098e
+20207c68
+efe20013
+e8420011
+9842fe00
+e7e20005
+1a20a204
+1a60a604
+c2007c71
+20600000
+4748c032
+1f227e00
+1fe67c01
+20610000
+9a20a400
+1a40a5ff
+1f237200
+e8408011
+efe08012
+e7e08011
+e0408012
+1a40a5ff
+1a20a201
+c2007c80
+20600000
+1fef0400
+20407c8e
+18508400
+1ff07e00
+9841fe00
+20600000
+1ff10c00
+18d08c00
+1ff0fe00
+1ff07e00
+98c1fe00
+20600000
+1f227e00
+207a0000
+1f20f3f8
+20417c46
+20628000
+20217c96
+1f20f208
+1f20f3fc
+20417c41
+20628000
+20217c9b
+1f20f204
+20207ca1
+1f227e00
+207a0000
+efe08006
+e7e08005
+c2007ca3
+20600000
+58000000
+1c430400
+604a409c
+d8a041ad
+98000400
+18e3fe00
+98a08a00
+e0410005
+47494032
+20600000
+d9600800
+19701600
+9960fe00
+20600000
+d8e00000
+4749c032
+684a409c
+1c437e00
+67e2409c
+98467c00
+24417cb1
+98461600
+19620400
+d8c041ad
+18c20a00
+df200010
+efe10006
+98467e00
+20217cc5
+18007e00
+e7e10005
+c2007cc1
+d8c041ad
+18e3fe00
+98c08c00
+efe10006
+20600000
+98408400
+18427200
+6fe10163
+9f267e00
+20610000
+1fe67e00
+18510400
+18408401
+18500400
+98418400
+20600000
+20407cd9
+20207ce6
+78547c00
+98467e00
+20217cde
+78347c00
+1fe67e00
+c4078000
+1fe22800
+d8410000
+6fe10163
+98467e00
+9a80fe00
+793ffe40
+20600000
+68490163
+98000c00
+1ff17e00
+984ffe00
+98c0fe00
+20600000
+1fed7e00
+1ff27e00
+6849c174
+9846fc00
+20407d31
+18078400
+20600000
+68490163
+9846fc00
+20407d2e
+1ff07e00
+18070400
+98418400
+20600000
+d8400000
+18422800
+efe08003
+20407d06
+1a820400
+20407d40
+da40000a
+9a4ffe00
+9840fe00
+1fe20400
+c2007cfb
+20600000
+d840003a
+98467c00
+24217d0f
+d8400061
+98467c00
+20217d12
+d8400037
+98467e00
+20600000
+d8400030
+98467e00
+20600000
+d8400057
+98467e00
+20600000
+18426000
+580001ff
+18002400
+1fe92200
+1a232200
+9a22a200
+2a2ffe00
+7920fe09
+18430400
+2feffe00
+79208407
+1fe37e00
+1a40a401
+2a400e00
+2420fd18
+e0408005
+c2007d18
+1e020400
+20600000
+58000000
+1f222200
+e8410006
+9840fe00
+c2007d2a
+9a26fc00
+20407d31
+1807fe00
+20600000
+207a8000
+20207d31
+efe08011
+e8408012
+98467c00
+24628000
+1a20a201
+1a40a401
+c2007d33
+18007c00
+20600000
+98467c00
+24610000
+18427e00
+20600000
+9840fe00
+98460400
+98467e00
+20600000
+df200400
+d8a04000
+20207c59
+207a0000
+1fe27a00
+6ff1010e
+243a7d49
+20600000
+70820301
+20600000
+67f10205
+6ff08203
+79207e04
+67f08203
+20600000
+67f10207
+6ff08203
+79207e06
+67f08203
+20600000
+67f10205
+70820330
+20600000
+6ff08043
+793ffe04
+67f08043
+20600000
+6ff1010e
+d8400200
+98467c00
+20600000
+474a4032
+e8440011
+18417eff
+243a7d69
+184cfe00
+e7e40011
+1a20a207
+efe08011
+243a137a
+6fe0895b
+e7e08011
+20600000
+474ac032
+df200008
+efe40011
+207a0000
+efe08011
+243a7d78
+1a20a201
+c2007d73
+2020137a
+d8400000
+e0408011
+20600000
+efe40011
+20600000
+efe08011
+20600000
+efe10011
+20600000
+d8400000
+6fe08006
+c2007d82
+18408401
+c2007d82
+18427e00
+20600000
+98467c00
+24610000
+18427e00
+20600000
+18007dff
+20600000
+18007c01
+20600000
+18007c00
+20600000
+78347c00
+20600000
+78547c00
+20600000
+78367c00
+20600000
+78567c00
+20600000
+7838fc00
+20600000
+58000001
+20600000
+58000000
+20600000
+1f267c00
+20628000
+e8408006
+9840fe00
+c2007da2
+20600000
+1f227e00
+207a0000
+18c27e00
+9f20fe00
+1fe0ffff
+1fe20c00
+efe08006
+18c08dfe
+e7e08005
+c2007dac
+20600000
+19622400
+da609420
+18007224
+18005600
+18006e00
+20407dc6
+52207e00
+9d60d600
+50407e00
+9ee0ee00
+1a40a404
+1a60a602
+c2007db6
+55607e00
+d8400024
+20407e12
+e7e20005
+56e07e00
+20407e12
+e7e20005
+20600000
+edc10012
+eb808013
+20407df7
+98482200
+eb808006
+20347dcd
+1b863800
+1a408c02
+edc10006
+20407df7
+98483000
+52207e00
+9b062200
+edc10012
+55c07e00
+98483000
+edc10006
+eb808013
+20407df7
+98480400
+53007e00
+98408400
+20600000
+efe20012
+ea220013
+9a285600
+ea220006
+52206e00
+1a408c04
+efe20006
+9a280400
+55607e00
+98465600
+efe20012
+9ee86e00
+efe20006
+ea220013
+9a287e00
+9ee0ee00
+20600000
+1ff07e00
+1feb7e00
+20600000
+1fed7e00
+20207def
+9feffe00
+1ff1fe00
+1fe97e00
+20600000
+55c07e00
+53800400
+20600000
+c40f8000
+18000400
+79200420
+184085ff
+9842fe00
+1fe0fe01
+20600000
+98002200
+db000000
+7920301e
+da400000
+df200010
+1b027e00
+9a40fe00
+1a432400
+9a267e00
+2022fe0c
+20217e0f
+1fe62200
+1b027e00
+9a41a400
+1b0b3000
+c2007e06
+20600000
+793f802c
+c31ffe16
+7920002c
+1fe67e00
+284c003f
+2020fe1a
+7940002c
+18460400
+9846fc00
+20407d2e
+c6960000
+1fe67e00
+20600000
+20407e25
+20407e28
+20407e2a
+20407e39
+20407e48
+20207e55
+78347c00
+d8a00a01
+20207db1
+78547c00
+20207db1
+6fe20a01
+684a0a09
+9840fe00
+20407dfa
+98000400
+984fd600
+6fe20a05
+684a0a0d
+98467e00
+20407dfa
+98000400
+984ffe00
+9d60fe00
+67e40a11
+20600000
+da400a01
+da600a09
+20407ddd
+55607e00
+1fe67e00
+1ff07e00
+1febfe00
+684c0a11
+9848fc00
+da210000
+20407d2e
+9a20fe00
+20407e01
+1a425600
+20600000
+184f7e00
+9a4fa200
+1a427e00
+984f8400
+1a307e00
+1ff07e00
+98408400
+56e07e00
+1fe67e00
+1ff07e00
+1fe3fe00
+9848fc00
+20207d2e
+1fe32600
+9fef8400
+58010000
+98467e00
+20407e01
+1a427e00
+9d6f8400
+58000000
+79207e1c
+9848fc00
+20407d31
+18078400
+58001000
+98466e00
+20600000
+20407e6a
+20407e6e
+20407e75
+20407e7c
+20407e8b
+20207e96
+6fe089f6
+20407df3
+67e089f8
+20600000
+98002600
+9fef8400
+efe08006
+20407df3
+e7e08005
+9a60a200
+20600000
+9feffe00
+9840a400
+1a227e00
+9a2f8400
+1a43fe00
+98460400
+20600000
+58400000
+9846fc00
+20407d2e
+67e109fc
+1a307e00
+1feb7e00
+9846fc00
+20407d2e
+e7e10005
+1a4d7e00
+1fe37e00
+9846fc00
+20407d2e
+e7e10005
+20600000
+1a707e00
+1feb7e00
+9a46fc00
+20407d2e
+67e10a02
+6fe089f6
+20407df1
+9a26fc00
+20407d2e
+e7e10005
+20600000
+6fe089f9
+20407dee
+9a46fc00
+20407d2e
+67e10a06
+6fe089f7
+20407df1
+9a26fc00
+20407d2e
+e7e10005
+20600000
+d8a00a2a
+df200002
+20407c59
+d8e00004
+20407ec1
+20407ec4
+20407ec7
+20407ed0
+20407ed6
+20407edc
+20407ee2
+20407ee8
+19609620
+18e08fff
+2422fea5
+6fe20a2a
+d8c00100
+98c0d600
+6fe20a2e
+9fe80400
+58010000
+98467e00
+20407e01
+1a427e00
+9d680400
+58000000
+79207e1c
+20407e12
+d8401000
+98467e00
+1fe67e00
+20600000
+19620c00
+df200008
+20207d28
+98002400
+df200008
+20207d28
+9a40a600
+684889f9
+984f8400
+6fe089f8
+9a4ffe00
+9840fe00
+1ff1fe00
+1fe92200
+20600000
+6fe109fe
+9a6f8400
+6fe109fc
+9a2ffe00
+98462400
+20600000
+6fe109fe
+9a2f8400
+efe10006
+9a6ffe00
+98462200
+20600000
+6fe089f8
+20407f03
+9a20ee00
+19622600
+d8a00a0a
+20207f06
+6fe089f9
+20407f03
+9a20ee00
+1960a610
+d8a00a1a
+20207f06
+52406e00
+6a410a02
+6a610a06
+da200a0a
+ddc00a1a
+d8a00a2a
+20407ef4
+20407ef4
+6a410a04
+6a610a08
+20407ef4
+20207ef4
+efe20011
+18c22200
+9a485600
+efe2002e
+18c25c00
+9a687e00
+9d60fe00
+1fed7e00
+1ee20400
+20407e12
+ed620005
+9d667e00
+1fe63000
+e3020005
+20600000
+9a480400
+50407e00
+20207df4
+d9000004
+ddc09400
+dd600000
+df200008
+efe10013
+18c22600
+9ee67e00
+eb80802e
+18c25c00
+53800400
+98487e00
+9d60d600
+c2007f0a
+1d6cfe00
+1fe37e00
+e7e20005
+1a60a7f0
+190091ff
+2422ff08
+20600000
+58000000
+79207e13
+67e4009e
+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
+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
+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
+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
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00000000
+00006931
Index: output/sched.rom
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/sched.rom	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/sched.rom	(working copy)
@@ -0,0 +1,469 @@
+mem_patch00:
+09   #mem_patch00
+00   #mem_patch01
+00   #mem_patch02
+00   #mem_patch03
+00   #mem_patch04
+00   #mem_patch05
+00   #mem_patch06
+00   #mem_patch07
+00   #mem_patch08
+00   #mem_patch09
+00   #mem_patch0a
+00   #mem_patch0b
+00   #mem_patch0c
+00   #mem_patch0d
+00   #mem_patch0e
+00   #mem_patch0f
+04   #mem_patch10
+0c   #mem_patch11
+00   #mem_patch12
+80   #mem_patch13
+10   #mem_patch14
+20   #mem_patch15
+00   #mem_patch16
+00   #mem_patch17
+e4   #mem_patch18
+91   #mem_patch19
+96   #mem_patch1a
+18   #mem_patch1b
+00   #mem_patch1c
+00   #mem_patch1d
+00   #mem_patch1e
+00   #mem_patch1f
+00   #mem_patch20
+00   #mem_patch21
+00   #mem_patch22
+00   #mem_patch23
+00   #mem_patch24
+00   #mem_patch25
+00   #mem_patch26
+00   #mem_patch27
+00   #mem_patch28
+00   #mem_patch29
+00   #mem_patch2a
+00   #mem_patch2b
+00   #mem_patch2c
+00   #mem_patch2d
+00   #mem_patch2e
+00   #mem_patch2f
+04   #mem_patch30
+00   #mem_patch31
+00   #mem_patch32
+00   #mem_patch33
+00   #mem_patch34
+00   #mem_patch35
+00   #mem_patch36
+00   #mem_patch37
+00   #mem_patch38
+00   #mem_patch39
+00   #mem_patch3a
+80   #mem_patch3b
+01   #mem_patch3c
+1f   #mem_patch3d
+00   #mem_patch3e
+00   #mem_patch3f
+
+
+mem_mouse_flag:
+#mouse flag byte1
+#bit0 MOUSE_SELECT_DEVICE_FLAG
+#bit1 MOUSE_24G_PAIRING_FLAG
+#bit2 MOUSE_STORE_EEPROM_FLAG
+#bit3 MOUSE_BT_CANNEL_RECONN_FLAG
+#bit4 MOUSE_LOW_VOLTAGE_FLAG
+#bit5 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+#bit6 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+04
+
+#mouse flag byte2
+#bit0 MOUSE_ENABLE_BLE_RANDOM_ADDRE
+#bit1 MOUSE_ENABLE_2K_EEPROM
+#bit2 MOUSE_ENABLE_INIT_DELAY
+#bit3 MOUSE_ENABLE_WAKEUP_FROM_POWER
+#bit4 MOUSE_ENABLE_16M
+#bit5 MOUSE_ENABLE_USB
+09
+
+#mouse flag byte3
+#bit0 MOUSE_ENABLE_SPI2
+#bit1 MOUSE_ENABLE_24G
+#bit2 MOUSE_ENABLE_FLASH
+#bit3 MOUSE_ENABLE_EEPROM
+#bit4 MOUSE_ENABLE_ADC
+#bit5 MOUSE_ENABLE_KEYBOARD
+#bit6 MOUSE_ENABLE_24G_SEARCH_DONGLE
+32
+
+#mouse flag byte4
+#bit0 MOUSE_ENABLE_24G_250Hz
+#bit1 MOUSE_ENABLE_24G_500Hz
+#bit2 MOUSE_ENABLE_24G_1000
+#bit3 MOUSE_ENABLE_BT_125Hz
+#bit4 MOUSE_ENABLE_DPI_LEVEL_4
+#bit5 MOUSE_ENABLE_USB_250
+#bit6 MOUSE_ENABLE_USB_500
+#bit7 MOUSE_ENABLE_USB_1000
+00
+
+#mouse flag byte5
+#bit0 MOUSE_ENABLE_POWER_ON_LED
+#bit1 MOUSE_ENABLE_LOW_VOLTAGE_LED
+#bit2 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED
+#bit3 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND
+#bit4 MOUSE_ENABLE_4_LED
+#bit5 MOUSE_ENABLE_DPI_FOR_4_LED
+#bit6 MOUSE_ENABLE_BT2_FOR_4_LED
+#bit7 MOUSE_ENABLE_LOW_V_FOR_4_LED
+03
+
+#mouse flag byte6 
+#bit0 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+#bit1 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON
+#bit2 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO
+#bit3 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
+#bit4 MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+#bit5 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
+#bit6 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+#bit7 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
+00
+
+#mouse flag byte7
+#bit0 MOUSE_ENABLE_AUTO_24G_PARING
+#bit1 MOUSE_ENABLE_24G_POWER_ON_PAIRING
+#bit2 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+#bit3 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY
+#bit4 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+#bit5 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+#bit6 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+#bit7 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
+01
+
+#mouse flag byte8
+#bit0 MOUSE_ENABLE_SMOOTHER
+#bit1 MOUSE_ENABLE_XY_OFFSET
+#bit2 MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
+#bit3 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
+#bit4 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
+#bit5 MOUSE_ENABLE_OTP
+2c
+
+
+mem_device_option:08
+mem_device_number:01
+mem_power_on_flag:01
+
+#ui
+mem_ui_button_gpio:ff
+mem_ui_button_timeout:1e
+mem_ui_led_struct_num:01
+mem_ui_led_struct_ptr:mem_mouse_led_type
+mem_mouse_struct_led_gpio:ff
+
+#rf
+mem_tx_power:01	#00--0db 01--3db  02--5db  03--f3db  04--f5db
+mem_rssi_buff_index:07
+mem_rssi_signal_buf_ptr:mem_mouse_rssi_signal_buf
+mem_rssi_dis_min_24g_init:85
+mem_rssi_dis_max_24g_init:90
+mem_rssi_dis_min_ble_init:75
+mem_rssi_dis_max_ble_init:80
+mem_rssi_hex_received_max_value_init:63
+mem_power_ctrl_pac_succ_cnt_init:7d
+
+#usb
+mem_usb_offline_check_gpio:ff
+
+#portA:8x,portB:cx,fixed conf,don't change
+mem_key_excol_gpio:c2 c1 85 84 83 82 81 80 c7 c6 c4
+
+#2.4g
+mem_24g_data_type:02	#01--mouse  02--keyboard
+mem_24g_fast_conn_enable:01
+mem_24g_fast_conn_addr:0f 0f 0f 0f
+mem_24g_ch_map_update:00   #00--disable   01--enable
+mem_24g_long_sleep_set_level:02    #00--30ms   01--50ms  02--80ms  03--100ms
+mem_24g_disable_fec1:00	 #00--default mode  01--new process
+
+mem_mouse_24g_pair_tx_power:94 #-20dBm
+
+mem_24g_enter_hibernate:00 48 60
+mem_24g_long_sleep_param_update_timer_init:0a 00	#1s
+mem_24g_transmit_by_interrupt_exit_count_init:50 00
+mem_mouse_24g_power_on_fast_conn_timer:02 00	#1s
+mem_mouse_24g_search_dongle_time_init:32 00	#3mins
+mem_store_information_delay_timer_init:02
+mem_local_rx_max_octets:fb 00 48 08 fb 00 48 08  # 1b
+
+#bt
+mem_lpm_mode:01
+mem_lpm_mult:20
+mem_lpm_mult_init:20
+
+mem_app_connection_options:06
+mem_lap:32 ef 6d ac 24 54
+mem_local_name_length:
+'Bluetooth Keyboard
+mem_sniff_param_interval:
+0e 00 
+01 00 ##mem_sniff_param_attempt:01 00
+02##mem_sniff_param_timeout:00 00
+
+mem_mouse_factory_addr:ff ff ff ff ff ff ff ff
+
+mem_unsniff2sniff_timer:0a
+mem_ssp_enable:01
+
+mem_lmp_io_cap_payload_iocap:03 00 04
+mem_ui_profile_supported:01
+mem_eir_enable:01
+
+#ble
+mem_le_lap:73 83 92 a1 b1 c1
+mem_le_adv_channel_map:07
+
+mem_le_battery_level_updata_timer_init:96 00
+mem_le_keyboard_handle:15 00
+mem_le_notify_handle:19 00
+mem_le_multimedia_handle:1d 00
+mem_le_systemctrl_handle:21 00
+mem_le_pairing_handle:28 00
+mem_le_battery_level_handle:30 00
+
+mem_le_adv_data_len:1f
+mem_le_adv_data:
+#flag
+02 01 05 
+#uuid
+03 03 12 18 
+#appearance
+03 19 c1 03
+
+mem_le_adv_swift_pair:
+#microsoft swift pair
+#06 ff 06 00 03 00 80	
+#name
+'\09Bluetooth Keyboard
+
+mem_le_scan_data_len:1f
+mem_le_scan_data:
+#name
+'\09Bluetooth Keyboard
+
+#max 18bytes, att list data rom limits
+mem_le_name_len:
+'Bluetooth Keyboard
+
+mem_le_interval_min:
+07 00 #min interval
+07 00 #max interval
+20 00 #latency
+2c 01 #timeout
+
+mem_le_adv_ind:03 12 18
+mem_le_adv_direct_ind:ff 00 00
+
+mem_le_search_mac_manu_name:
+41 70 70 6c 65 20 49 6e 63
+mem_le_search_mac_uuid:
+0a 18
+
+mem_keybord_appearance:c1 03
+mem_keyboard_le_map_len:bd 00#d6 00
+
+mem_keyboard_change_vid_pid_flag:
+01			# 00:disable    01:enable
+02
+e8 04		# vid: 04 e8
+21 70		# pid: 70 21
+01 00
+
+mem_keyboard_commbination_fast_conn_bt:2a 10	# bs+M
+
+#adc
+mem_adc_read_time_init:0a
+mem_adc_config_flag_init:01   #00-vinlpm   01-hvin   02-gpio
+mem_adc_channel:00       #00-gpio4   01-gpio5   02-gpio6  03-gpio7    04-gpio9  05-gpio10  06-gpio11  07-gpio12
+#led
+mem_adc_low_volatage_led_blink_timer:64 00
+mem_mouse_low_v_led_blink_time:90 01		#200ms on 200ms off
+mem_mouse_disconvey_led_blink_time:e8 03	#500ms on 500ms off
+mem_mouse_device_poweron_timer_count_init:1e
+
+#time
+mem_mouse_24g_pair_timeout_init:58 02  #1min
+mem_mouse_discovery_timeout:58 02  #1min
+mem_mouse_no_data_timeout:70 17   #10mins
+mem_mouse_24g_reconn_timeout_init:64 #10s
+mem_mouse_direct_timeout:64  #10s
+mem_mouse_fast_direct_timeout:64 #10s
+mem_mouse_page_to:00 40		# 16384*0.625ms=10s
+mem_mouse_fast_page_to:00 40		# 16384*0.625ms=10s
+
+mem_same_keyvalue_timer_init:B8 0B		#5min
+mem_keyboard_caps_led_on_timer:58 02	#1min
+mem_keyboard_commbination_long_press_timer_init:01  #100ms
+#system
+mem_device_flag:00#00--24g 01--bt/ble
+mem_mouse_bluetooth_type:01	#02--ble 01--bt
+mem_device1_type:33		#33--bt  34--ble
+
+##												bt button connct gnd          bt button in matrix        two button commbination
+mem_keyboard_pairing_type:00					#                 00                                    00                                 01
+mem_config_select_device_button_gpio:13    		#              00~16			               ff					ff
+mem_keyboard_commbination_key_bt:7f 06			#		 not care				   not care			     Fn+C
+mem_keyboard_commbination_key_24g:29 14		#		 not care				   not care			     Esc+Q
+
+mem_eeprom_wp_gpio:ff
+mem_eeprom_scl_gpio:ff
+mem_eeprom_sda_gpio:ff
+
+#mem_sensor_motion_gpio:ff
+mem_whee_a_data_gpio:ff
+mem_whee_b_data_gpio:ff
+mem_select_sensor_angle_gpio:ff
+mem_mouse_reuse_2ice_gpio:13
+mem_config_low_voltage_alarm_gpio:80
+mem_config_device_24g_led_gpio:81
+mem_config_device_bt1_led_gpio:ff
+mem_config_device_bt2_led_gpio:ff
+mem_dpi_led_gpio:ff
+mem_keyboard_caps_led_gpio:82
+mem_keyboard_num_led_gpio:ff
+mem_keyboard_power_led_gpio:80
+
+#mem_keyboard_led_r_gpio:04
+#mem_keyboard_led_g_gpio:05
+#mem_keyboard_led_b_gpio:06
+
+mem_mcu_stb_gpio:08
+mem_mcu_clk_gpio:14
+mem_mcu_rstb_gpio:07
+
+#gpio00~16
+mem_key_row_gpio:
+0d 		#r0
+0a 		#r1
+0f 		#r2
+04		#r3
+0e 		#r4
+03		#r5
+0b		#r6
+09		#r7
+
+#gpio00~16   portA:8x,portB:cx
+mem_key_col_gpio:
+80		#c0
+05		#c1
+c4		#c2
+06		#c3
+81		#c4
+c7		#c5
+84		#c6
+82		#c7
+85		#c8
+c2		#c9
+12		#c10
+10		#c11
+11		#c12
+c1		#c13
+c6		#c14
+83		#c15
+ff		#c16
+ff		#c17
+ff		#c18
+ff		#c19
+
+mem_keyboard_keyvalue_map:
+#r0 ~ r7
+48 00 00 00 e6 00 7f 3e 			#c0
+14 2b 04 29 1d 00 35 1e 				#c1
+1a 39 16 64 1b e5 3a 1f 			#c2
+08 3c 07 3d 06 88 3b 20 			#c3
+15 17 09 0a 19 05 22 21 			#c4
+18 1c 0d 0b 10 11 23 24			#c5
+0c 30 0e 3f 36 87 2e 25 			#c6
+12 40 e0 e3 37 e7 41 45 				#c7
+13 2f 33 34 32 38 2d 27 			#c8
+47 2a 31 e2 28 e6 42 43				#c9
+89 e1 e5 44 28 45 42 43 			#c10
+5f 5c 59 2c 44 51 4c 00 			#c11
+60 5d 5a 62 54 4f 49 00 			#c12
+61 5e 5b 52 55 50 4b 4e 				#c13
+12 40 0f 52 37 50 41 26			#c14
+00 e2 e5 F6 F7 F5 F4 F1 			#c15
+fa e3 d1 d3 d2 d4 f8 d5				#c16
+91 d0 e7 f9 f3 fb fb 90				#c17
+
+mem_keyboard_fn_first:	01			#fn first  00:press f1~f12=f1~f12      01:press fn+f1~f12=f1~f12
+mem_keyboard_fn_esc:	fb			#esc
+mem_keyboard_fn_f1:	ad			#f1
+mem_keyboard_fn_f2:	a5			#f2
+mem_keyboard_fn_f3:	a6			#f3
+mem_keyboard_fn_f4:	a7			#f4
+mem_keyboard_fn_f5:	a8			#f5
+mem_keyboard_fn_f6:	eb			#f6
+mem_keyboard_fn_f7:	e9			#f7
+mem_keyboard_fn_f8:	ec			#f8
+mem_keyboard_fn_f9:	ed			#f9
+mem_keyboard_fn_f10:	ee			#f10
+mem_keyboard_fn_f11:	f3			#f11
+mem_keyboard_fn_f12:	f4			#f12
+mem_keyboard_fn_del:	a9			#delete
+
+# 00: disable           01: enable
+mem_keyboard_fn_arrow_enable_flag:01
+mem_keyboard_fn_left_ctrl_enable_flag:00
+mem_keyboard_fn_space_enable_flag:00
+mem_keyboard_fn_system_switch_enable_flag:01
+
+
+
+
+
+mem_gpio_wakeup_low:00 00 08 00 00 00 00 00
+mem_lpm_config:88 12 ce	#4khz
+mem_lpm_xtalcnt:70 3f 0c 37 07 #5000-5fff data save
+mem_lpm_ctrl3_aon_vsel:9d 10 24
+mem_lpm_hibernate_switch:00
+
+mem_fcomp_div:18
+
+mem_rc_cal:d3
+mem_rf_ldo_cfg1:00
+mem_syn_afc_cfg1:29
+mem_dig_aon_vsel:00	#bit5-4;00:1.2V;01:1.08V;02:0.96V;03:0.84V
+
+mem_gain_fix:ff	#00:soft agc; ff:hw agc
+mem_gain_table:88 66 44
+mem_gain_second_agc_en:00	#hw agc: 0:second agc disable
+
+mem_adc_wait_count:0c
+
+
+mem_iscan_window:24 00
+mem_iscan_interval:00 02
+mem_pscan_window:24 00
+mem_pscan_interval:00 02
+
+mem_inq_window:20 00
+mem_page_window:20 00
+mem_page_to:00 20
+mem_rx_window_init:80 04
+mem_rx_window_sniff:00 0c
+
+
+mem_lmp_version:09 0e 05 04 00
+mem_seqi:7f
+
+
+mem_rf_init_data:
+ff
+mem_rf_init_ptr:mem_rf_init_data
+
+
+#bit7:0 means disable rf debug function
+mem_rf_debug_rx_gpio:06
+mem_rf_debug_tx_gpio:07
+
+
Index: output/test_otp.dat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/test_otp.dat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/output/test_otp.dat	(working copy)
@@ -0,0 +1,7266 @@
+60
+01
+aa
+55
+46
+17
+c2
+84
+00
+1e
+c0
+00
+00
+26
+c0
+01
+80
+aa
+c0
+41
+00
+43
+c0
+45
+80
+40
+c0
+4f
+80
+53
+c0
+52
+00
+55
+c0
+56
+80
+5f
+c0
+57
+03
+a2
+c0
+61
+03
+53
+c0
+62
+bd
+33
+c0
+63
+03
+74
+c0
+63
+83
+76
+c0
+64
+03
+80
+c0
+66
+04
+32
+c0
+67
+83
+99
+c0
+68
+83
+9a
+c0
+69
+03
+9a
+c0
+69
+bd
+33
+c0
+6a
+03
+ac
+c0
+6b
+83
+bb
+c0
+6c
+04
+20
+c0
+6c
+84
+2c
+c0
+6d
+04
+2f
+c0
+6d
+83
+3e
+c0
+6e
+03
+9b
+c0
+19
+80
+31
+c0
+73
+05
+b3
+c0
+78
+05
+82
+20
+20
+13
+7c
+c1
+7f
+80
+00
+c0
+00
+85
+6f
+c0
+0c
+05
+a9
+c0
+25
+85
+78
+c0
+27
+85
+8e
+c0
+2d
+85
+09
+c0
+41
+03
+9e
+20
+20
+13
+7c
+20
+40
+3c
+fe
+24
+34
+08
+02
+6f
+e0
+cb
+f5
+20
+3a
+08
+02
+6f
+e0
+c9
+24
+c0
+7f
+88
+02
+1f
+e2
+0e
+00
+6f
+e2
+09
+8a
+af
+ec
+00
+00
+20
+40
+82
+ed
+20
+20
+08
+02
+6f
+e0
+80
+4c
+79
+3f
+fe
+05
+79
+3f
+fe
+02
+67
+e0
+80
+4c
+20
+20
+0b
+40
+6f
+e0
+c1
+eb
+c0
+4a
+00
+3a
+c0
+4f
+80
+3d
+20
+20
+12
+1b
+70
+8a
+39
+10
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+39
+b0
+70
+8a
+3a
+00
+20
+20
+12
+26
+70
+8a
+75
+03
+70
+8a
+85
+00
+20
+20
+12
+52
+18
+00
+2a
+08
+18
+00
+2a
+00
+78
+50
+fc
+00
+78
+50
+7c
+00
+78
+2f
+7c
+00
+70
+89
+00
+05
+20
+00
+00
+02
+70
+89
+00
+00
+20
+40
+11
+5d
+70
+8a
+16
+00
+70
+8a
+0a
+80
+6f
+f0
+8a
+09
+79
+3f
+fe
+07
+67
+f0
+8a
+09
+70
+8a
+0b
+00
+20
+20
+12
+9c
+70
+00
+7f
+00
+20
+20
+13
+b7
+20
+40
+14
+17
+6f
+e1
+c1
+74
+20
+7a
+00
+00
+6f
+e0
+cd
+4e
+24
+7a
+00
+00
+6f
+e0
+cd
+4f
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+20
+20
+14
+91
+20
+40
+6d
+29
+20
+40
+00
+66
+20
+40
+00
+83
+20
+40
+00
+a3
+20
+75
+80
+00
+20
+40
+3c
+54
+20
+20
+3c
+50
+20
+75
+80
+00
+20
+40
+31
+46
+20
+40
+3c
+ac
+20
+40
+00
+72
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+40
+03
+f6
+6f
+e4
+4b
+bd
+c2
+9e
+82
+f4
+c2
+89
+c5
+50
+c2
+89
+45
+11
+20
+60
+00
+00
+58
+00
+4d
+77
+67
+e1
+46
+67
+20
+40
+03
+cc
+70
+4c
+98
+00
+58
+00
+01
+95
+67
+e1
+48
+eb
+58
+00
+01
+36
+e7
+e1
+00
+05
+58
+00
+01
+4b
+e7
+e1
+00
+05
+58
+00
+25
+40
+67
+e1
+c0
+b2
+20
+60
+00
+00
+6f
+f0
+81
+21
+58
+00
+00
+00
+67
+f0
+80
+4d
+20
+20
+5b
+9a
+20
+40
+05
+52
+68
+48
+c9
+19
+20
+40
+3e
+71
+68
+48
+c9
+1a
+20
+40
+3e
+71
+68
+48
+c9
+24
+60
+48
+c9
+26
+20
+40
+3e
+71
+20
+40
+00
+7f
+58
+00
+4c
+1a
+67
+e1
+4c
+42
+58
+00
+4c
+22
+67
+e1
+4c
+44
+58
+00
+4c
+36
+67
+e1
+4c
+46
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+be
+71
+1a
+40
+a4
+01
+c2
+00
+00
+95
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+a3
+1a
+40
+a4
+01
+c2
+00
+00
+9d
+20
+20
+3d
+48
+70
+4b
+9c
+3a
+6f
+e0
+c4
+a9
+c4
+00
+00
+00
+70
+4b
+9c
+10
+6f
+e0
+ca
+c1
+20
+3a
+44
+53
+20
+60
+00
+00
+20
+40
+00
+ae
+20
+40
+01
+39
+20
+40
+02
+b9
+20
+20
+08
+13
+20
+40
+00
+92
+20
+40
+01
+33
+58
+00
+00
+00
+67
+e1
+4c
+95
+d8
+c0
+4c
+48
+d8
+a0
+4c
+5c
+df
+20
+00
+14
+20
+40
+7c
+a1
+58
+00
+4c
+48
+67
+e1
+4c
+8f
+58
+00
+4c
+84
+67
+e1
+4c
+91
+20
+40
+01
+31
+20
+40
+01
+2b
+20
+40
+01
+2f
+6f
+e1
+4c
+95
+1f
+e0
+fe
+01
+67
+e1
+4c
+95
+c2
+84
+81
+20
+68
+48
+cc
+0f
+20
+40
+5f
+7d
+24
+20
+80
+bd
+20
+40
+00
+e7
+20
+40
+01
+01
+20
+40
+01
+31
+6f
+e1
+4c
+46
+1f
+e2
+24
+00
+70
+4c
+94
+00
+e8
+40
+80
+12
+6f
+e1
+4c
+44
+1f
+e2
+22
+00
+1a
+22
+26
+00
+df
+20
+00
+14
+ef
+e0
+80
+11
+98
+46
+7c
+00
+20
+22
+80
+db
+1a
+20
+a2
+01
+c2
+00
+00
+cf
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+0a
+20
+21
+00
+ca
+20
+60
+00
+00
+6f
+e1
+4c
+8f
+1f
+e2
+0a
+00
+1a
+22
+7e
+00
+9a
+66
+7e
+00
+98
+a0
+8a
+00
+6f
+e1
+4c
+91
+1f
+e2
+26
+00
+6f
+e0
+cc
+94
+9a
+60
+a6
+00
+ef
+e0
+80
+13
+e7
+e0
+80
+05
+20
+20
+00
+d4
+20
+00
+00
+14
+70
+4c
+97
+00
+20
+40
+01
+33
+70
+4c
+94
+00
+20
+40
+01
+2d
+20
+40
+00
+f4
+20
+40
+01
+2b
+20
+40
+00
+f4
+1f
+e6
+7c
+09
+20
+21
+00
+eb
+20
+40
+01
+2d
+20
+40
+00
+f4
+20
+20
+01
+2f
+70
+4c
+93
+00
+20
+00
+00
+96
+20
+40
+01
+14
+6f
+e1
+4c
+91
+1f
+e2
+0a
+00
+6f
+e0
+cc
+94
+98
+a0
+8a
+00
+6f
+e0
+cc
+93
+e7
+e0
+80
+05
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+20
+60
+00
+00
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+70
+4c
+94
+00
+70
+4c
+93
+00
+e8
+40
+80
+12
+28
+4f
+fe
+07
+20
+20
+81
+0e
+20
+40
+5f
+8d
+20
+40
+01
+14
+e8
+40
+80
+12
+20
+40
+5f
+89
+e8
+40
+80
+12
+20
+40
+5f
+a3
+1a
+40
+a4
+01
+6f
+e1
+4c
+8f
+20
+40
+00
+f8
+1f
+e6
+7c
+13
+20
+21
+01
+04
+20
+60
+00
+00
+6f
+e1
+4c
+42
+1f
+e2
+26
+00
+df
+20
+00
+08
+e8
+40
+80
+13
+20
+40
+5f
+7d
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+79
+20
+fe
+07
+67
+e0
+cc
+93
+1a
+60
+a6
+01
+c2
+00
+01
+17
+20
+60
+00
+00
+68
+48
+cc
+10
+20
+40
+5f
+8d
+20
+00
+00
+14
+68
+48
+cc
+10
+20
+40
+5f
+89
+20
+00
+17
+70
+6f
+e0
+cc
+97
+1f
+e0
+fe
+01
+67
+e0
+cc
+97
+c2
+83
+5c
+7b
+20
+20
+00
+ae
+68
+48
+cc
+0f
+20
+20
+5f
+89
+68
+48
+cc
+0f
+20
+20
+5f
+8d
+68
+48
+cc
+0f
+20
+20
+5f
+74
+68
+48
+cc
+0e
+20
+20
+5f
+89
+68
+48
+cc
+0e
+20
+20
+5f
+8d
+70
+4c
+98
+00
+6f
+e1
+4c
+99
+67
+e1
+4c
+9b
+20
+60
+00
+00
+da
+20
+4c
+48
+da
+40
+4c
+5c
+df
+20
+00
+14
+20
+40
+7d
+33
+24
+22
+81
+35
+20
+40
+01
+73
+20
+5a
+01
+35
+20
+40
+01
+7f
+6f
+e0
+cb
+ac
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+00
+80
+00
+c1
+01
+00
+00
+c1
+02
+00
+00
+70
+4c
+94
+00
+da
+20
+4c
+48
+da
+40
+4c
+70
+e8
+40
+80
+11
+ef
+e0
+80
+12
+98
+42
+fe
+00
+20
+3a
+01
+6b
+67
+e0
+cc
+93
+60
+48
+cc
+a3
+e0
+40
+80
+12
+70
+4c
+a1
+01
+70
+4c
+a4
+00
+6f
+e0
+cc
+93
+c3
+00
+01
+60
+6f
+e0
+cc
+94
+1f
+ef
+fe
+08
+68
+48
+cc
+a4
+98
+40
+fe
+00
+d8
+c0
+4c
+ae
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+67
+e0
+cc
+a2
+20
+40
+01
+ad
+20
+40
+01
+fb
+20
+40
+02
+83
+6f
+e0
+cc
+93
+1f
+e3
+7e
+00
+67
+e0
+cc
+93
+6f
+e0
+cc
+a3
+1f
+e3
+7e
+00
+67
+e0
+cc
+a3
+6f
+e0
+cc
+a4
+1f
+e0
+fe
+01
+67
+e0
+cc
+a4
+1f
+e6
+7c
+07
+20
+21
+01
+53
+1a
+20
+a2
+01
+1a
+40
+a4
+01
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+20
+21
+01
+4a
+20
+60
+00
+00
+6f
+e4
+4c
+48
+24
+7a
+00
+00
+6f
+e4
+4c
+50
+24
+7a
+00
+00
+6f
+e2
+4c
+58
+24
+7a
+00
+00
+6f
+e0
+cd
+73
+24
+7a
+00
+00
+6f
+e0
+cd
+70
+c1
+03
+00
+00
+70
+4d
+70
+00
+20
+60
+00
+00
+70
+4b
+ac
+00
+70
+4c
+9e
+00
+da
+20
+4c
+48
+df
+20
+00
+14
+70
+4c
+9d
+00
+ef
+e0
+80
+11
+20
+3a
+01
+a8
+68
+48
+cc
+9d
+18
+40
+84
+01
+60
+48
+cc
+9d
+1f
+e2
+04
+00
+1f
+e0
+ff
+ff
+98
+41
+7e
+00
+24
+22
+81
+86
+6f
+e0
+cc
+9d
+68
+48
+cc
+9e
+98
+40
+84
+00
+60
+48
+cc
+9e
+1f
+e6
+7c
+01
+20
+21
+01
+a8
+18
+46
+7c
+02
+20
+21
+01
+a8
+70
+4c
+94
+00
+70
+4c
+9f
+00
+e8
+40
+80
+11
+da
+40
+4c
+48
+6f
+e0
+cc
+94
+1f
+e0
+fe
+01
+67
+e0
+cc
+94
+1f
+e6
+7c
+13
+24
+21
+01
+a8
+ef
+e0
+80
+12
+98
+41
+7c
+00
+20
+22
+81
+ab
+6f
+e0
+cc
+9f
+1f
+e0
+fe
+01
+67
+e0
+cc
+9f
+1f
+e6
+7c
+01
+20
+21
+01
+ab
+70
+4b
+ac
+01
+20
+60
+00
+00
+1a
+20
+a2
+01
+c2
+00
+01
+83
+20
+60
+00
+00
+1a
+40
+a4
+01
+20
+20
+01
+99
+6f
+e0
+cc
+a3
+24
+5a
+02
+0f
+6f
+e0
+cd
+4e
+24
+5a
+01
+c1
+6f
+e0
+cd
+5d
+68
+48
+cd
+4e
+98
+42
+fe
+00
+20
+62
+80
+00
+6f
+e0
+cc
+a2
+c0
+14
+81
+cc
+c0
+26
+01
+ce
+1f
+e6
+7c
+45
+24
+61
+00
+00
+d8
+40
+00
+3a
+98
+46
+7e
+00
+24
+61
+00
+00
+d8
+c0
+4d
+5f
+98
+c0
+8c
+00
+ef
+e0
+80
+06
+20
+20
+01
+eb
+6f
+e0
+cc
+a2
+c0
+29
+01
+d0
+c0
+28
+81
+d4
+c0
+28
+01
+d8
+c0
+27
+81
+dc
+c0
+70
+01
+e0
+c0
+16
+01
+e8
+c0
+0a
+01
+ed
+c0
+0d
+01
+f3
+c0
+04
+01
+f7
+20
+60
+00
+00
+6f
+e0
+cd
+5e
+20
+20
+01
+eb
+6f
+e0
+cd
+6b
+20
+20
+01
+eb
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4b
+20
+20
+01
+eb
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4e
+20
+20
+01
+eb
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4a
+20
+20
+01
+eb
+6f
+e0
+cd
+6c
+20
+7a
+00
+00
+58
+00
+00
+4d
+20
+20
+01
+eb
+6f
+e0
+cd
+6d
+20
+7a
+00
+00
+6f
+e0
+cf
+a9
+c0
+00
+01
+e6
+58
+00
+00
+fd
+20
+20
+01
+eb
+58
+00
+00
+aa
+20
+20
+01
+eb
+6f
+e0
+cd
+6e
+20
+7a
+00
+00
+58
+00
+00
+ab
+67
+e0
+cc
+a2
+20
+60
+00
+00
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+01
+70
+4c
+16
+06
+58
+00
+00
+00
+20
+20
+01
+eb
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+00
+20
+20
+01
+f0
+6f
+e0
+cd
+6f
+20
+7a
+00
+00
+70
+4f
+a9
+02
+20
+20
+01
+f0
+6f
+e0
+cc
+a2
+c0
+23
+02
+11
+c0
+25
+82
+17
+c0
+27
+02
+1d
+c0
+25
+02
+1f
+c0
+26
+82
+21
+c0
+52
+82
+23
+c0
+53
+02
+2a
+c0
+53
+82
+2c
+c0
+54
+02
+2e
+c0
+54
+82
+30
+c0
+55
+02
+3b
+c0
+56
+82
+42
+c0
+55
+82
+49
+c0
+56
+02
+54
+20
+60
+00
+00
+6f
+e0
+cc
+a3
+c4
+00
+00
+00
+70
+4d
+73
+0a
+20
+60
+00
+00
+70
+4d
+73
+00
+20
+60
+00
+00
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+0a
+70
+4d
+72
+20
+20
+20
+02
+5d
+70
+4d
+72
+52
+6f
+e0
+cf
+a9
+c1
+00
+00
+00
+c1
+00
+80
+00
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+51
+20
+20
+02
+18
+70
+4d
+72
+50
+20
+20
+02
+18
+70
+4d
+72
+4f
+20
+20
+02
+18
+70
+4d
+72
+04
+70
+4d
+71
+01
+6f
+e0
+cf
+a9
+c0
+00
+02
+5d
+c0
+00
+82
+5d
+70
+4d
+71
+08
+20
+20
+02
+5d
+70
+4d
+72
+06
+20
+20
+02
+24
+70
+4d
+72
+19
+20
+20
+02
+24
+70
+4d
+72
+1b
+20
+20
+02
+24
+6f
+e0
+cf
+a9
+c0
+00
+02
+35
+c0
+01
+82
+38
+58
+00
+00
+fc
+20
+20
+01
+eb
+70
+4d
+71
+08
+70
+4d
+72
+0f
+20
+20
+02
+5d
+70
+4d
+71
+09
+70
+4d
+72
+14
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+3f
+58
+00
+00
+fd
+20
+20
+01
+eb
+70
+4d
+71
+09
+70
+4d
+72
+12
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+01
+82
+46
+58
+00
+00
+fa
+20
+20
+01
+eb
+70
+4d
+71
+08
+70
+4d
+72
+2c
+20
+20
+02
+5d
+6f
+e0
+cf
+a9
+c0
+00
+02
+50
+c0
+00
+82
+52
+70
+4d
+71
+01
+70
+4d
+72
+2c
+20
+40
+02
+0b
+20
+20
+02
+5d
+70
+4d
+71
+08
+20
+20
+02
+4d
+70
+4d
+71
+02
+20
+20
+02
+4d
+6f
+e0
+cf
+a9
+c0
+00
+02
+5a
+c0
+00
+82
+5a
+70
+4d
+71
+01
+70
+4d
+72
+52
+20
+20
+02
+5d
+70
+4d
+71
+08
+70
+4d
+72
+2b
+20
+20
+02
+5d
+70
+4c
+a2
+00
+6f
+e0
+cc
+a3
+c3
+00
+02
+64
+6f
+e0
+cd
+70
+c0
+01
+82
+70
+70
+4d
+70
+01
+20
+60
+00
+00
+70
+4d
+70
+04
+20
+60
+00
+00
+70
+4d
+70
+06
+20
+60
+00
+00
+67
+e0
+cc
+02
+60
+48
+cc
+04
+20
+40
+7d
+92
+70
+4c
+01
+00
+20
+20
+04
+64
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+70
+4d
+70
+02
+20
+60
+00
+00
+70
+4d
+70
+03
+6f
+e0
+cd
+71
+68
+48
+cd
+72
+20
+20
+02
+68
+70
+4c
+01
+00
+6f
+e0
+cd
+71
+d8
+40
+00
+00
+20
+40
+02
+68
+6f
+e0
+cd
+73
+20
+3a
+02
+66
+70
+4d
+70
+05
+20
+60
+00
+00
+20
+20
+02
+6a
+70
+4d
+70
+00
+df
+e0
+00
+00
+d8
+40
+00
+00
+20
+20
+02
+68
+6f
+e0
+cc
+a2
+d8
+40
+00
+e0
+98
+46
+7c
+00
+24
+21
+02
+95
+1f
+e6
+7c
+e7
+24
+21
+02
+b2
+1f
+e1
+7e
+07
+1f
+e2
+0e
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+91
+6f
+e0
+cc
+a5
+f9
+3f
+fe
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+6f
+e0
+cc
+a5
+f9
+20
+7e
+00
+67
+e0
+cc
+a5
+20
+60
+00
+00
+70
+4c
+ad
+00
+6f
+e0
+cc
+a3
+c2
+80
+02
+a6
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+98
+46
+7c
+00
+24
+22
+82
+a4
+ef
+e0
+80
+06
+18
+c0
+8d
+fe
+e7
+e0
+80
+06
+20
+7a
+00
+00
+18
+c0
+8c
+01
+e0
+40
+80
+06
+c2
+00
+02
+9b
+20
+60
+00
+00
+68
+48
+cc
+a2
+df
+20
+00
+06
+d8
+c0
+4c
+a7
+ef
+e0
+80
+06
+20
+3a
+02
+af
+98
+46
+7c
+00
+20
+62
+80
+00
+c2
+00
+02
+a9
+20
+60
+00
+00
+18
+c0
+8d
+ff
+e0
+40
+80
+06
+20
+60
+00
+00
+70
+4d
+74
+01
+6f
+e0
+cc
+a3
+2f
+ec
+00
+00
+20
+40
+82
+b7
+20
+20
+02
+95
+70
+4d
+74
+02
+20
+60
+00
+00
+20
+40
+02
+d3
+70
+4d
+4e
+00
+70
+4d
+4f
+00
+70
+4d
+50
+00
+70
+4f
+eb
+00
+6f
+e0
+cc
+a5
+24
+5a
+02
+e9
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+7f
+20
+42
+82
+eb
+1f
+e6
+7c
+de
+20
+42
+82
+ed
+c2
+00
+02
+c2
+20
+40
+03
+d4
+6f
+e0
+cd
+51
+20
+3a
+02
+e3
+6f
+e1
+4c
+a7
+68
+49
+4d
+52
+98
+46
+7c
+00
+20
+22
+82
+e5
+18
+50
+84
+00
+98
+46
+7c
+00
+20
+22
+82
+e5
+20
+60
+00
+00
+6f
+e0
+cd
+51
+24
+7a
+00
+00
+68
+48
+c9
+24
+18
+46
+7c
+ff
+20
+62
+80
+00
+20
+40
+5f
+7d
+24
+20
+82
+df
+df
+20
+00
+08
+d8
+a0
+4c
+a5
+20
+40
+7c
+68
+70
+4c
+a7
+de
+20
+60
+00
+00
+6f
+e0
+cc
+a7
+c1
+ef
+00
+00
+70
+4c
+a7
+00
+20
+60
+00
+00
+6f
+e0
+cd
+50
+20
+7a
+00
+00
+20
+40
+02
+ef
+70
+4c
+a1
+00
+20
+20
+43
+ef
+20
+60
+00
+00
+70
+4d
+4f
+01
+20
+60
+00
+00
+70
+4d
+4e
+01
+20
+60
+00
+00
+70
+4d
+50
+01
+20
+60
+00
+00
+6f
+e1
+4f
+c2
+d8
+40
+05
+28
+98
+46
+7c
+00
+24
+61
+00
+00
+20
+20
+13
+7a
+6f
+e0
+c9
+3f
+c0
+00
+82
+f7
+20
+60
+00
+00
+db
+00
+01
+e0
+58
+00
+04
+00
+9b
+06
+fc
+00
+20
+40
+7d
+31
+18
+07
+fe
+00
+67
+e1
+09
+5c
+df
+e0
+1f
+b8
+d8
+40
+00
+18
+dd
+60
+00
+18
+20
+20
+03
+01
+60
+48
+89
+64
+da
+20
+4f
+aa
+da
+60
+00
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+14
+1a
+60
+a6
+01
+6f
+e1
+09
+5c
+9a
+66
+7c
+00
+24
+21
+03
+3d
+1a
+42
+7e
+00
+9b
+06
+7e
+00
+20
+20
+03
+04
+1a
+66
+7c
+00
+20
+22
+83
+24
+1a
+42
+7e
+00
+9b
+00
+fe
+00
+9d
+66
+7e
+00
+1f
+e2
+24
+00
+68
+48
+89
+64
+20
+40
+5d
+c7
+6f
+e4
+4f
+aa
+68
+4c
+4f
+b2
+98
+41
+fe
+00
+68
+4c
+4f
+ba
+98
+41
+fe
+00
+20
+3a
+03
+26
+1a
+42
+7e
+00
+20
+20
+03
+18
+65
+60
+cf
+c2
+20
+60
+00
+00
+58
+00
+1f
+d0
+9a
+46
+7e
+00
+67
+e1
+4f
+c2
+1a
+42
+7e
+00
+9d
+60
+fe
+00
+68
+48
+89
+64
+da
+20
+4f
+aa
+20
+40
+5d
+c7
+6f
+e0
+c9
+3f
+c0
+00
+83
+31
+20
+60
+00
+00
+6f
+e0
+cf
+aa
+1f
+e6
+7c
+03
+24
+41
+7d
+9e
+67
+e0
+cf
+a9
+6f
+e0
+cf
+ab
+67
+e0
+c9
+40
+d8
+c0
+4f
+ac
+d8
+a0
+49
+47
+20
+40
+7c
+4c
+6f
+e3
+4f
+bc
+67
+e3
+49
+41
+20
+20
+44
+d8
+20
+20
+13
+7a
+6f
+e4
+4b
+bd
+c2
+9e
+83
+41
+20
+20
+45
+0e
+6f
+e0
+c9
+3f
+c0
+00
+83
+44
+20
+60
+00
+00
+68
+49
+4f
+c2
+58
+00
+1f
+d0
+98
+46
+24
+00
+1a
+40
+84
+01
+da
+20
+49
+40
+df
+20
+00
+01
+20
+40
+5d
+82
+1a
+40
+84
+02
+da
+20
+49
+47
+df
+20
+00
+10
+20
+40
+5d
+82
+1a
+40
+84
+12
+da
+20
+49
+41
+df
+20
+00
+06
+20
+20
+5d
+82
+20
+40
+03
+e3
+6f
+e4
+4b
+bd
+c3
+0a
+03
+61
+20
+40
+5f
+f1
+20
+40
+60
+18
+68
+49
+44
+9b
+6f
+e1
+44
+a7
+1f
+e6
+fc
+02
+20
+40
+7d
+2e
+98
+46
+7c
+00
+20
+21
+03
+54
+20
+40
+3d
+d4
+6f
+e0
+c4
+a9
+c2
+80
+be
+39
+6f
+e0
+cd
+51
+20
+5a
+02
+e3
+6f
+e0
+cd
+50
+24
+7a
+00
+00
+20
+40
+42
+2f
+6f
+e3
+49
+41
+20
+3a
+03
+69
+20
+20
+3c
+f2
+70
+4a
+d3
+ff
+70
+41
+eb
+00
+6f
+e0
+cb
+c5
+c2
+80
+c2
+0a
+70
+44
+87
+33
+6f
+e4
+4b
+f9
+67
+e3
+41
+e0
+67
+e4
+41
+ce
+67
+e4
+41
+d6
+20
+40
+5f
+50
+20
+20
+3c
+fa
+70
+49
+26
+ff
+20
+20
+3d
+35
+20
+40
+7f
+1a
+20
+40
+03
+f6
+20
+40
+3d
+43
+6f
+e4
+4b
+bd
+c4
+0a
+00
+00
+6f
+e0
+c9
+05
+c1
+81
+00
+00
+6f
+e0
+c9
+04
+d8
+40
+00
+c0
+20
+20
+5f
+b3
+20
+40
+7f
+1a
+20
+40
+3e
+a3
+68
+48
+c9
+19
+20
+40
+5f
+56
+68
+48
+c9
+1a
+20
+40
+5f
+56
+68
+48
+c9
+24
+20
+40
+5f
+5a
+6f
+e1
+4c
+44
+1f
+e2
+24
+00
+df
+20
+00
+14
+e8
+40
+80
+12
+28
+4f
+fe
+07
+24
+40
+df
+8d
+1a
+40
+a4
+01
+c2
+00
+03
+8b
+6f
+e1
+4c
+42
+1f
+e2
+24
+00
+df
+20
+00
+08
+e8
+40
+80
+12
+18
+46
+7c
+ff
+24
+42
+df
+56
+1a
+40
+a4
+01
+c2
+00
+03
+93
+20
+60
+00
+00
+58
+00
+00
+00
+20
+60
+00
+00
+20
+40
+48
+ba
+20
+40
+78
+6c
+20
+20
+3e
+a3
+6f
+e0
+cb
+f5
+24
+5a
+77
+97
+70
+4b
+f5
+00
+20
+20
+77
+87
+da
+20
+47
+79
+20
+40
+7d
+6f
+20
+7a
+00
+00
+1f
+e2
+26
+00
+20
+40
+03
+a8
+20
+20
+31
+85
+c0
+0b
+03
+aa
+20
+20
+31
+60
+70
+4f
+a9
+00
+20
+60
+00
+00
+1a
+62
+7e
+00
+c0
+00
+83
+b0
+c0
+09
+03
+b2
+20
+20
+42
+51
+20
+40
+44
+5f
+20
+20
+43
+15
+70
+44
+57
+01
+20
+40
+32
+68
+20
+20
+43
+42
+6f
+e0
+c9
+02
+20
+3a
+03
+b9
+70
+48
+ef
+4f
+20
+60
+00
+00
+70
+48
+ef
+4b
+20
+60
+00
+00
+20
+40
+3d
+b7
+20
+40
+03
+b5
+20
+40
+48
+80
+20
+40
+03
+e3
+20
+40
+03
+ee
+20
+40
+44
+1a
+20
+40
+03
+cf
+20
+40
+03
+e0
+20
+40
+44
+48
+20
+40
+44
+4d
+20
+40
+44
+50
+20
+40
+3f
+3d
+20
+40
+44
+62
+20
+40
+03
+fb
+20
+40
+04
+16
+20
+40
+04
+1b
+20
+20
+44
+57
+6f
+e0
+cf
+e9
+67
+e0
+cf
+ea
+20
+60
+00
+00
+6f
+e0
+cb
+b1
+c1
+80
+80
+00
+da
+60
+4b
+b2
+da
+40
+03
+69
+20
+20
+31
+cf
+6f
+e1
+4c
+a7
+68
+49
+4d
+56
+98
+46
+7c
+00
+20
+22
+83
+dc
+18
+50
+84
+00
+98
+46
+7c
+00
+20
+22
+83
+dc
+20
+20
+44
+06
+6f
+e0
+cb
+b1
+c1
+00
+80
+00
+70
+4b
+b1
+01
+20
+60
+00
+00
+da
+60
+47
+91
+da
+40
+03
+b2
+20
+20
+31
+cf
+6f
+e0
+c4
+a9
+c3
+80
+80
+00
+6f
+e4
+4b
+bd
+c4
+10
+00
+00
+6f
+e0
+cb
+b9
+20
+7a
+00
+00
+1f
+e0
+ff
+ff
+67
+e0
+cb
+b9
+20
+3a
+03
+f9
+68
+48
+cc
+13
+20
+20
+48
+59
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e0
+cc
+16
+20
+7a
+00
+00
+1f
+e0
+ff
+ff
+67
+e0
+cc
+16
+c2
+80
+48
+4a
+20
+20
+48
+3c
+20
+40
+48
+3c
+20
+40
+04
+08
+20
+40
+04
+0a
+68
+48
+cc
+13
+20
+20
+48
+55
+6f
+e0
+cc
+11
+c1
+7f
+80
+00
+6f
+e0
+cb
+b9
+24
+7a
+00
+00
+6f
+e1
+4a
+c4
+20
+7a
+00
+00
+6f
+e1
+4b
+d0
+68
+49
+4a
+c4
+98
+46
+04
+00
+6f
+e1
+4c
+14
+98
+46
+7e
+00
+20
+21
+04
+0c
+20
+40
+04
+0a
+68
+48
+cc
+11
+20
+20
+5f
+89
+68
+48
+cc
+12
+20
+20
+5f
+89
+20
+40
+04
+11
+6f
+e0
+cd
+59
+c3
+00
+84
+08
+68
+48
+cc
+11
+20
+20
+5f
+8d
+6f
+e0
+cd
+59
+c3
+00
+04
+0a
+70
+49
+36
+ff
+68
+48
+cc
+12
+20
+20
+5f
+8d
+da
+60
+4c
+9b
+da
+40
+04
+19
+20
+20
+31
+d6
+70
+4c
+98
+01
+20
+20
+32
+5c
+da
+60
+4d
+73
+da
+40
+02
+66
+20
+20
+31
+cf
+20
+40
+31
+f7
+20
+20
+42
+3d
+6f
+e1
+47
+93
+2f
+ef
+fe
+0b
+20
+40
+c4
+9c
+6f
+e1
+47
+93
+2f
+ef
+fe
+07
+20
+40
+84
+1e
+58
+00
+00
+00
+67
+e1
+4b
+04
+20
+40
+04
+08
+20
+40
+04
+0a
+70
+4f
+a9
+ff
+20
+20
+44
+6f
+58
+00
+00
+00
+67
+e1
+4a
+d4
+20
+20
+44
+92
+6f
+e4
+4b
+bd
+c4
+01
+00
+00
+20
+20
+44
+a5
+78
+54
+7c
+00
+70
+4b
+9d
+00
+70
+4b
+9e
+00
+70
+4b
+9f
+00
+6f
+e0
+cd
+70
+c0
+00
+82
+6d
+c0
+01
+02
+72
+c0
+01
+82
+72
+c0
+02
+02
+76
+c0
+03
+02
+7f
+6f
+e0
+cc
+a1
+20
+3a
+04
+4b
+1f
+e0
+ff
+ff
+67
+e0
+cc
+a1
+20
+40
+04
+4c
+70
+4d
+5b
+0a
+20
+40
+44
+5f
+6f
+e0
+cd
+70
+c0
+02
+82
+7e
+d8
+a0
+4c
+01
+df
+20
+00
+0a
+20
+40
+7c
+68
+20
+40
+04
+4f
+70
+4c
+0b
+00
+20
+60
+00
+00
+20
+60
+00
+00
+70
+41
+77
+03
+70
+4a
+c1
+0a
+20
+60
+00
+00
+6f
+e0
+cd
+74
+c0
+01
+04
+da
+d8
+c0
+4c
+a7
+df
+20
+00
+06
+ef
+e0
+80
+06
+1f
+e6
+7c
+e7
+24
+21
+04
+77
+c2
+00
+04
+53
+6f
+e0
+cc
+9e
+20
+5a
+04
+6d
+70
+4c
+01
+00
+6f
+e0
+cc
+a7
+1f
+e6
+7c
+7f
+20
+22
+84
+70
+d8
+c0
+4c
+a5
+d8
+a0
+4c
+02
+df
+20
+00
+08
+ef
+e0
+80
+06
+c0
+3f
+84
+75
+e7
+e0
+80
+05
+c2
+00
+04
+60
+20
+40
+04
+e5
+6f
+e0
+cc
+0b
+c0
+00
+fd
+92
+c0
+01
+04
+6b
+c0
+01
+84
+6b
+c0
+02
+04
+6b
+c0
+02
+84
+6b
+20
+40
+40
+95
+20
+20
+7d
+92
+d8
+a0
+4c
+a5
+df
+20
+00
+09
+20
+20
+7c
+68
+6f
+e1
+4c
+a5
+67
+e1
+4c
+02
+6f
+e3
+4c
+a8
+67
+e3
+4c
+04
+20
+20
+04
+64
+58
+00
+00
+00
+20
+20
+04
+62
+70
+4c
+01
+03
+68
+48
+cc
+9e
+18
+46
+7c
+00
+20
+22
+84
+da
+c0
+74
+04
+93
+c0
+74
+84
+96
+c0
+75
+04
+99
+c0
+75
+84
+9c
+c0
+76
+04
+9f
+c0
+76
+84
+a2
+c0
+77
+04
+a5
+c0
+77
+84
+a8
+c0
+78
+04
+ab
+c0
+78
+84
+ae
+c0
+79
+04
+b1
+c0
+79
+84
+b4
+c0
+7a
+04
+b7
+c0
+7a
+84
+ba
+c0
+7b
+04
+bd
+c0
+7b
+84
+c0
+c0
+7c
+04
+c3
+c0
+7c
+84
+c6
+c0
+7d
+04
+c9
+c0
+7d
+84
+cc
+c0
+7e
+04
+cf
+c0
+7e
+84
+d2
+c0
+7f
+84
+e1
+20
+20
+04
+64
+58
+00
+01
+83
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+cd
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+b7
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+b6
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+b5
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+ea
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+e9
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+e2
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+01
+94
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+01
+8a
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+01
+92
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+70
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+6f
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+02
+2a
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+02
+25
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+02
+24
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+02
+26
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+02
+27
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+02
+21
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+02
+23
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+00
+30
+67
+e1
+4c
+02
+20
+20
+04
+64
+6f
+e0
+cf
+a9
+c0
+00
+84
+d7
+58
+00
+01
+ae
+67
+e1
+4c
+02
+20
+20
+04
+64
+58
+00
+03
+07
+67
+e1
+4c
+02
+20
+20
+04
+64
+70
+4c
+a1
+02
+6f
+e0
+cc
+9e
+20
+5a
+04
+6d
+70
+4d
+74
+00
+58
+00
+00
+03
+67
+e1
+cc
+01
+20
+20
+04
+64
+70
+4c
+01
+02
+58
+00
+00
+02
+67
+e0
+cc
+02
+20
+20
+04
+64
+6f
+e0
+cc
+01
+c0
+00
+04
+f0
+c0
+00
+84
+eb
+c0
+01
+84
+f6
+c0
+01
+04
+fe
+20
+60
+00
+00
+70
+4c
+0b
+01
+d8
+c0
+4c
+01
+d8
+a0
+48
+d8
+df
+20
+00
+07
+20
+20
+7c
+a1
+70
+4c
+0b
+02
+20
+40
+05
+06
+d8
+c0
+4c
+01
+d8
+a0
+4b
+de
+df
+20
+00
+09
+20
+20
+7c
+a1
+70
+4c
+0b
+04
+20
+40
+05
+06
+58
+00
+00
+03
+20
+40
+46
+21
+d8
+c0
+4c
+02
+d8
+a0
+4b
+df
+df
+20
+00
+02
+20
+20
+7c
+a1
+70
+4c
+0b
+05
+20
+40
+05
+06
+58
+00
+00
+02
+67
+e4
+4b
+de
+67
+e4
+4b
+e7
+6f
+e0
+cc
+02
+67
+e0
+cb
+df
+20
+60
+00
+00
+df
+20
+00
+12
+d8
+a0
+4b
+de
+20
+20
+7c
+68
+18
+c2
+04
+00
+df
+20
+00
+04
+d8
+a0
+03
+fd
+20
+40
+7c
+59
+18
+42
+0c
+00
+1a
+42
+7e
+00
+c0
+03
+85
+11
+20
+20
+65
+e4
+e8
+41
+00
+06
+18
+50
+84
+00
+18
+42
+24
+00
+1a
+40
+a5
+fc
+18
+c0
+8c
+04
+da
+60
+01
+02
+20
+40
+05
+1c
+6f
+e0
+cf
+a9
+c1
+ff
+80
+00
+70
+4f
+a9
+00
+20
+60
+00
+00
+1a
+42
+7e
+00
+20
+3a
+67
+84
+ef
+e0
+80
+06
+c0
+04
+85
+23
+c0
+05
+05
+46
+c0
+04
+05
+49
+20
+20
+05
+4c
+ef
+e1
+00
+06
+9a
+66
+7c
+00
+20
+22
+85
+29
+1a
+40
+a5
+fd
+24
+22
+85
+1c
+20
+60
+00
+00
+18
+c0
+8c
+01
+ef
+e1
+00
+06
+da
+60
+06
+00
+9a
+66
+7c
+00
+20
+22
+85
+3a
+da
+60
+12
+08
+9a
+66
+7c
+00
+20
+22
+85
+38
+da
+60
+4c
+00
+9a
+66
+7c
+00
+20
+22
+85
+36
+70
+4f
+a9
+01
+20
+20
+05
+3b
+70
+4f
+a9
+02
+20
+20
+05
+3b
+70
+4f
+a9
+03
+20
+20
+05
+3b
+70
+4f
+a9
+00
+68
+49
+4f
+c2
+58
+00
+1f
+d0
+98
+46
+24
+00
+da
+20
+4f
+a9
+1a
+42
+04
+00
+df
+20
+00
+01
+20
+40
+5d
+82
+68
+49
+4f
+c2
+18
+40
+84
+18
+60
+49
+4f
+c2
+20
+60
+00
+00
+18
+c0
+8c
+04
+1a
+40
+a5
+fb
+20
+20
+05
+1c
+18
+c0
+8c
+01
+1a
+40
+a5
+fe
+20
+20
+05
+1c
+ef
+e0
+80
+06
+98
+c0
+8c
+00
+1f
+e2
+04
+00
+1a
+42
+7e
+00
+98
+46
+24
+00
+20
+20
+05
+1c
+d8
+c0
+94
+68
+d8
+a0
+4d
+77
+df
+20
+00
+c4
+20
+40
+7c
+a1
+d8
+c0
+95
+73
+d8
+a0
+4e
+3b
+df
+20
+00
+42
+20
+40
+7c
+a1
+d8
+c0
+95
+b5
+d8
+a0
+4e
+7d
+df
+20
+00
+36
+20
+40
+7c
+a1
+d8
+c0
+95
+eb
+d8
+a0
+4e
+b3
+df
+20
+00
+a9
+20
+40
+7c
+a1
+70
+4d
+86
+6a
+70
+4e
+3a
+78
+70
+4e
+36
+7c
+70
+4e
+34
+7e
+6f
+e0
+cf
+e1
+20
+7a
+00
+00
+6f
+e1
+4f
+e3
+1f
+f0
+fe
+00
+67
+e1
+4f
+42
+6f
+e1
+4f
+e5
+1f
+f0
+fe
+00
+67
+e1
+4f
+48
+20
+60
+00
+00
+58
+00
+00
+50
+98
+46
+7c
+00
+20
+22
+85
+73
+20
+20
+51
+9a
+70
+44
+df
+00
+70
+44
+e7
+00
+70
+47
+92
+00
+70
+47
+95
+01
+20
+20
+51
+a4
+6f
+e0
+83
+38
+20
+7a
+00
+00
+c0
+1e
+05
+7d
+c0
+07
+05
+81
+20
+20
+64
+be
+6f
+e0
+cf
+a9
+c1
+7f
+80
+00
+70
+03
+38
+0d
+20
+20
+64
+bb
+20
+20
+65
+75
+18
+42
+7e
+00
+c0
+09
+85
+85
+20
+20
+4d
+d8
+20
+40
+4e
+18
+6f
+e0
+c7
+92
+24
+7a
+00
+00
+6f
+e0
+cf
+a9
+c1
+ff
+80
+00
+70
+47
+95
+40
+70
+00
+55
+1a
+70
+47
+92
+02
+20
+60
+00
+00
+20
+40
+52
+35
+20
+40
+05
+91
+20
+20
+50
+62
+20
+40
+52
+40
+1f
+e2
+0a
+00
+58
+00
+00
+06
+e7
+e0
+80
+05
+58
+00
+03
+00
+e7
+e1
+00
+05
+58
+00
+0f
+00
+e7
+e1
+00
+05
+58
+19
+03
+35
+e7
+e1
+80
+05
+58
+00
+00
+12
+e7
+e1
+00
+05
+58
+00
+f8
+03
+e7
+e1
+00
+05
+58
+00
+05
+35
+e7
+e1
+00
+05
+58
+00
+00
+0a
+e7
+e0
+80
+05
+58
+00
+00
+00
+e7
+e1
+00
+05
+58
+00
+ff
+ff
+e7
+e1
+80
+05
+70
+03
+26
+14
+20
+60
+00
+00
+78
+54
+7c
+00
+20
+40
+59
+03
+6f
+e0
+80
+48
+20
+7a
+00
+00
+c2
+83
+d6
+4d
+c0
+03
+85
+b0
+20
+20
+56
+1e
+20
+40
+57
+7a
+70
+00
+72
+78
+20
+60
+00
+00
+6f
+e1
+03
+15
+1f
+e2
+0c
+00
+ef
+e0
+80
+06
+67
+e0
+c5
+fc
+1f
+e1
+04
+0f
+1f
+f1
+fe
+00
+c0
+04
+85
+bd
+c0
+05
+05
+cb
+c0
+02
+85
+c9
+20
+20
+4c
+b0
+da
+20
+00
+01
+20
+40
+4c
+dd
+6f
+e1
+44
+e3
+e7
+e1
+00
+05
+58
+00
+00
+00
+e7
+e0
+80
+05
+70
+09
+50
+01
+6f
+e0
+c4
+e9
+79
+20
+7e
+06
+67
+e0
+c4
+e9
+70
+09
+5b
+12
+20
+20
+77
+a7
+20
+40
+05
+cb
+20
+20
+4c
+c3
+ef
+e0
+80
+06
+c0
+00
+85
+ce
+20
+60
+00
+00
+ef
+e0
+80
+06
+67
+e0
+cd
+59
+20
+60
+00
+00
+86
+58
+aa
+55
+40
+00
+00
+40
+09
+00
+00
+00
+00
+00
+08
+00
+00
+00
+00
+00
+00
+00
+00
+00
+04
+08
+00
+80
+10
+60
+00
+00
+e4
+91
+9e
+1f
+40
+00
+01
+00
+02
+00
+00
+01
+00
+00
+00
+00
+00
+88
+00
+08
+00
+00
+00
+00
+04
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+00
+aa
+55
+08
+00
+bd
+4b
+04
+09
+32
+00
+03
+00
+04
+2c
+aa
+55
+01
+00
+9a
+40
+08
+aa
+55
+01
+00
+c6
+4b
+01
+aa
+55
+01
+00
+f5
+4b
+01
+aa
+55
+01
+00
+97
+47
+ff
+aa
+55
+01
+00
+96
+47
+1e
+aa
+55
+03
+00
+91
+44
+01
+34
+49
+aa
+55
+01
+00
+36
+49
+ff
+aa
+55
+01
+00
+eb
+41
+01
+aa
+55
+01
+00
+85
+48
+07
+aa
+55
+02
+00
+a1
+48
+c7
+4a
+aa
+55
+02
+00
+0d
+49
+85
+90
+aa
+55
+02
+00
+10
+49
+75
+80
+aa
+55
+01
+00
+0f
+49
+63
+aa
+55
+01
+00
+d2
+48
+7d
+aa
+55
+01
+00
+58
+0b
+ff
+aa
+55
+0b
+00
+36
+4c
+c2
+c1
+85
+84
+83
+82
+81
+80
+c7
+c6
+c4
+aa
+55
+01
+00
+3d
+48
+02
+aa
+55
+05
+00
+94
+48
+01
+0f
+0f
+0f
+0f
+aa
+55
+01
+00
+6d
+48
+00
+aa
+55
+01
+00
+f4
+4b
+02
+aa
+55
+01
+00
+7e
+48
+00
+aa
+55
+01
+00
+0c
+49
+94
+aa
+55
+03
+00
+63
+48
+00
+48
+60
+aa
+55
+02
+00
+ca
+48
+0a
+00
+aa
+55
+02
+00
+c8
+48
+50
+00
+aa
+55
+04
+00
+cc
+4b
+02
+00
+32
+00
+aa
+55
+01
+00
+c7
+49
+02
+aa
+55
+08
+00
+4f
+44
+fb
+00
+48
+08
+fb
+00
+48
+08
+aa
+55
+01
+00
+99
+40
+01
+aa
+55
+01
+00
+77
+41
+20
+aa
+55
+01
+00
+9c
+4b
+20
+aa
+55
+01
+00
+82
+44
+06
+aa
+55
+06
+00
+a8
+40
+32
+ef
+6d
+ac
+24
+54
+aa
+55
+0f
+00
+03
+46
+0e
+42
+54
+33
+2e
+30
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+05
+00
+58
+44
+0e
+00
+01
+00
+02
+aa
+55
+08
+00
+f9
+4b
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+ff
+aa
+55
+01
+00
+48
+46
+0a
+aa
+55
+04
+00
+6b
+47
+01
+03
+00
+04
+aa
+55
+01
+00
+95
+47
+01
+aa
+55
+01
+00
+d8
+40
+01
+aa
+55
+06
+00
+7d
+43
+73
+83
+92
+a1
+b1
+c1
+aa
+55
+01
+00
+35
+44
+07
+aa
+55
+02
+00
+02
+4b
+96
+00
+aa
+55
+02
+00
+f9
+4a
+15
+00
+aa
+55
+02
+00
+5a
+43
+19
+00
+aa
+55
+04
+00
+fb
+4a
+1d
+00
+21
+00
+aa
+55
+02
+00
+d4
+43
+28
+00
+aa
+55
+02
+00
+ff
+4a
+30
+00
+aa
+55
+0c
+00
+ea
+43
+1f
+02
+01
+05
+03
+03
+12
+18
+03
+19
+c1
+03
+aa
+55
+10
+00
+e4
+4a
+0f
+09
+42
+54
+35
+2e
+32
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+11
+00
+0a
+44
+1f
+0f
+09
+42
+54
+35
+2e
+32
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+0f
+00
+fa
+42
+0e
+42
+54
+35
+2e
+32
+20
+4b
+65
+79
+62
+6f
+61
+72
+64
+aa
+55
+08
+00
+75
+43
+07
+00
+07
+00
+20
+00
+2c
+01
+aa
+55
+06
+00
+de
+4a
+03
+12
+18
+ff
+00
+00
+aa
+55
+09
+00
+d7
+4f
+41
+70
+70
+6c
+65
+20
+49
+6e
+63
+aa
+55
+02
+00
+d5
+4f
+0a
+18
+aa
+55
+02
+00
+a7
+4f
+c1
+03
+aa
+55
+02
+00
+75
+4d
+bd
+00
+aa
+55
+08
+00
+e1
+4f
+01
+02
+e8
+04
+21
+70
+01
+00
+aa
+55
+02
+00
+56
+4d
+2a
+10
+aa
+55
+01
+00
+ff
+48
+0a
+aa
+55
+01
+00
+05
+49
+01
+aa
+55
+01
+00
+a6
+44
+00
+aa
+55
+02
+00
+da
+4b
+64
+00
+aa
+55
+02
+00
+d8
+4b
+90
+01
+aa
+55
+02
+00
+d6
+4b
+e8
+03
+aa
+55
+01
+00
+d2
+4b
+1e
+aa
+55
+02
+00
+08
+49
+58
+02
+aa
+55
+02
+00
+06
+49
+58
+02
+aa
+55
+02
+00
+d0
+4b
+70
+17
+aa
+55
+01
+00
+0b
+49
+64
+aa
+55
+01
+00
+0a
+49
+64
+aa
+55
+01
+00
+c9
+4b
+64
+aa
+55
+02
+00
+c7
+4b
+00
+40
+aa
+55
+02
+00
+ca
+4b
+00
+40
+aa
+55
+02
+00
+99
+4c
+b8
+0b
+aa
+55
+02
+00
+14
+4c
+58
+02
+aa
+55
+01
+00
+e9
+4f
+01
+aa
+55
+01
+00
+3f
+49
+01
+aa
+55
+01
+00
+c5
+4b
+01
+aa
+55
+01
+00
+40
+49
+33
+aa
+55
+01
+00
+51
+4d
+01
+aa
+55
+01
+00
+24
+49
+ff
+aa
+55
+04
+00
+52
+4d
+7f
+06
+29
+14
+aa
+55
+03
+00
+c6
+44
+ff
+ff
+ff
+aa
+55
+02
+00
+19
+49
+ff
+ff
+aa
+55
+01
+00
+1d
+49
+ff
+aa
+55
+06
+00
+28
+49
+13
+80
+ff
+81
+ff
+ff
+aa
+55
+03
+00
+11
+4c
+82
+ff
+80
+aa
+55
+03
+00
+0e
+4c
+08
+14
+07
+aa
+55
+1c
+00
+1a
+4c
+0d
+0a
+0f
+04
+0e
+03
+0b
+09
+80
+05
+c4
+06
+81
+c7
+84
+82
+85
+c2
+12
+10
+11
+c1
+c6
+83
+ff
+ff
+ff
+ff
+aa
+55
+90
+00
+ae
+4c
+48
+00
+00
+00
+e6
+00
+7f
+3e
+14
+2b
+04
+29
+1d
+00
+35
+1e
+1a
+39
+16
+64
+1b
+e5
+3a
+1f
+08
+3c
+07
+3d
+06
+88
+3b
+20
+15
+17
+09
+0a
+19
+05
+22
+21
+18
+1c
+0d
+0b
+10
+11
+23
+24
+0c
+30
+0e
+3f
+36
+87
+2e
+25
+12
+40
+e0
+e3
+37
+e7
+41
+45
+13
+2f
+33
+34
+32
+38
+2d
+27
+47
+2a
+31
+e2
+28
+e6
+42
+43
+89
+e1
+e5
+44
+28
+45
+42
+43
+5f
+5c
+59
+2c
+44
+51
+4c
+00
+60
+5d
+5a
+62
+54
+4f
+49
+00
+61
+5e
+5b
+52
+55
+50
+4b
+4e
+12
+40
+0f
+52
+37
+50
+41
+26
+00
+e2
+e5
+f6
+f7
+f5
+f4
+f1
+fa
+e3
+d1
+d3
+d2
+d4
+f8
+d5
+91
+d0
+e7
+f9
+f3
+fb
+fb
+90
+aa
+55
+13
+00
+5d
+4d
+00
+fb
+ad
+a5
+a6
+a7
+a8
+eb
+e9
+ec
+ed
+ee
+f3
+f4
+a9
+00
+00
+00
+00
+aa
+55
+08
+00
+9e
+00
+00
+00
+08
+00
+00
+00
+00
+00
+aa
+55
+08
+00
+7a
+41
+88
+12
+ce
+70
+3f
+0c
+37
+07
+aa
+55
+03
+00
+83
+41
+9d
+10
+24
+aa
+55
+01
+00
+5c
+41
+00
+aa
+55
+01
+00
+c5
+40
+18
+aa
+55
+01
+00
+d8
+44
+d3
+aa
+55
+01
+00
+d7
+44
+00
+aa
+55
+01
+00
+d6
+44
+29
+aa
+55
+01
+00
+d5
+44
+00
+aa
+55
+05
+00
+ed
+41
+ff
+88
+66
+44
+00
+aa
+55
+01
+00
+94
+44
+0c
+aa
+55
+08
+00
+b5
+40
+24
+00
+00
+02
+24
+00
+00
+02
+aa
+55
+02
+00
+c3
+40
+20
+00
+aa
+55
+04
+00
+bf
+40
+20
+00
+00
+20
+aa
+55
+04
+00
+c6
+40
+80
+04
+00
+0c
+aa
+55
+05
+00
+fe
+45
+09
+0e
+05
+04
+00
+aa
+55
+01
+00
+d4
+44
+7f
+aa
+55
+01
+00
+f2
+41
+ff
+aa
+55
+02
+00
+ca
+40
+f2
+41
+aa
+55
+02
+00
+db
+44
+06
+07
+55
+aa
+aa
+55
+6f
+7f
+66
+54
Index: program/app.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app.prog	(working copy)
@@ -0,0 +1,574 @@
+app_init:
+	bpatch patch15_5,mem_patch15
+	fetch 1,mem_device_option
+	branch app_init,blank				/* wait ram to be initialized */
+	beq dvc_op_dongle,dongle_init
+	beq dvc_op_antilost,antilost_init
+	beq dvc_op_shutter,shutter_init
+	beq dvc_op_module,module_init
+	beq dvc_op_car,car_init
+	beq dvc_op_remote_car,remote_car_init
+	beq dvc_op_hci_boot,hci_init
+	beq dvc_op_ali_mesh,ali_mesh_init
+ifdef COMPLIE_TEST_CODE	
+	beq dvc_op_test,test_init
+endif	
+	beq dvc_op_mouse,mouse_init
+	rtn
+	
+app_lpm_init:
+	jam 0,mem_tester_emulate
+	jam 0,mem_debug_config
+	jam 0, mem_lch_code
+	setarg 0
+	store 5,mem_sp_state_start
+	fetch 1,mem_device_option
+	branch app_lpm_init,blank				/* wait ram to be initialized */
+	beq dvc_op_module,module_lpm_init
+app_lpm_init0:
+	rtn
+
+app_param_init:
+	rtn wake
+	call adc_init_data
+	fetch 1,mem_device_option
+	beq dvc_op_shutter,shutter_default_init
+	beq dvc_op_dongle,dongle_default_init
+	beq dvc_op_mouse,mouse_default_init
+	beq dvc_op_remote_car,remote_car_default_init
+	rtn
+	
+app_process_idle:
+	call ui_dispatch
+	call check_51cmd
+	call app_process_bb_event
+	fetch 2,mem_cb_idle_process
+	branch callback_func
+	
+app_process_bt:
+	fetch 2,mem_cb_bt_process
+	branch callback_func
+	
+app_process_ble:
+	fetch 2,mem_cb_le_process
+	branch callback_func
+
+app_process_bb_event:
+	bpatch patch15_6,mem_patch15
+	//return if c51 need to process bb event
+	arg mem_ipc_fifo_bt2c51,rega
+	call fifo_out
+	rtn blank
+	//reaching here mains c51 cannot get bb event.
+	copy pdata,regc
+	call app_event_normal_process
+	branch app_process_bb_event_priority
+	
+app_discard_event:
+	arg 0,regc
+	rtn
+
+//************************************************//
+//*APP BB EVENT NORMAL PROCESS**//
+//************************************************//
+app_event_normal_process:
+	beq BT_EVT_BB_CONNECTED,app_evt_bt_conn
+	beq BT_EVT_BUTTON_LONG_PRESSED,app_evt_button_long_pressed
+	beq BT_EVT_SETUP_COMPLETE,app_evt_setup_complete
+	beq BT_EVT_HID_HANDSHAKE,app_evt_hid_handshake
+	beq BT_EVT_HID_CONNECTED,app_bb_event_hid_connected
+	beq BT_EVT_RECONN_FAILED,app_bb_event_reconn_failed
+	beq BT_EVT_BB_DISCONNECTED,app_bb_event_bb_disconn
+	beq BT_EVT_RECONN_PAGE_TIMEOUT,app_bb_event_reconn_failed	
+	beq BT_EVT_LE_CONNECTED,app_le_event_bb_connected
+	beq BT_EVT_LE_DISCONNECTED,app_le_event_bb_disconn
+	beq BT_EVT_RECONN_STARTED,app_event_reconn_start
+	beq BT_EVT_ENTER_SNIFF,app_event_enter_sniff
+	beq BT_EVT_EXIT_SNIFF,app_event_exit_sniff
+	
+	beq BT_EVT_ML2CAP_CONN_REFUSED,app_event_ml2cap_conn_refused
+	beq BT_EVT_LINKKEY_GENERATE,app_event_linkkey_generate
+	beq BT_EVT_SWITCH_FAIL_MASTER,app_event_switch_fail_master
+	beq BT_EVT_SWITCH_SUCCESS_MASTER,app_event_switch_success
+	rtn
+
+
+app_evt_bt_conn:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_CONNECTED,pdata
+	store 2,mem_ui_state_map
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set0 APP_DISC_BY_BUTTON ,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	branch check_51cmd_stop_discovery
+
+app_event_switch_success:
+	jam 0,mem_switch_fail_master_count
+	rtn	
+
+app_event_switch_fail_master:
+	fetch 1,mem_switch_fail_master_count
+	increase 1,pdata
+	store 1,mem_switch_fail_master_count
+	sub pdata,1,null
+	branch app_bt_role_switch,positive
+	jam 0,mem_switch_fail_master_count
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_SWITCH_FAIL,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	branch app_bt_disconnect
+	
+app_process_bb_event_priority:
+	fetch 2,mem_cb_bb_event_process
+	branch callback_func
+
+app_check_wake_lock:
+	fetch 2,mem_cb_check_wakelock
+	branch callback_func
+	
+app_will_enter_lpm:
+	fetch 2,mem_cb_before_lpm
+	branch callback_func
+
+app_event_linkkey_generate:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_AFTER_PAIRING ,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	branch app_bt_store_reconn_info
+	
+app_event_reconn_start:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_RECONNECT,pdata
+	store 2,mem_ui_state_map
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_AFTER_RECONN,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+
+app_evt_setup_complete:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_SETUP_COMPLETE,pdata
+	store 2,mem_ui_state_map
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_AFTER_SETUP_DONE,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+
+app_evt_hid_handshake:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_HID_HANDSHAKE,pdata
+	store 2,mem_ui_state_map
+	rtn
+	
+app_event_enter_sniff:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_SNIFF,pdata
+	store 2,mem_ui_state_map
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_AFTER_SNIFF,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+	
+app_event_exit_sniff:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BT_SNIFF,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+app_le_event_bb_connected:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BLE_CONNECTED,pdata
+	store 2,mem_ui_state_map
+	rtn
+	
+app_le_event_bb_disconn:
+	jam 0,mem_le_l2cap_att_states
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BLE_CONNECTED,pdata
+	store 2,mem_ui_state_map
+	branch app_lpm_mult_disable
+	
+app_bb_event_hid_connected:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_HID_CONN,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+app_evt_button_long_pressed:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_BY_BUTTON,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+	
+app_event_ml2cap_conn_refused:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_L2CAP_REFUSED,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	branch  app_bt_disconnect
+
+
+app_evt_timer:
+	store 1,mem_app_evt_timer_count
+app_evt_100ms_loop:
+	bpatch patch15_7,mem_patch15
+	fetch 1,mem_app_evt_timer_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_app_evt_timer_count
+	call ui_button_polling
+	call app_lpm_wake_auto_lock_timer
+	call app_unsniff_delay_timer
+	call app_discovery_timer
+	call flash_write_spi_sm_timer
+ifdef SPI2	
+	call flash_write_spi2_sm_timer
+endif	
+	fetch 2,mem_cb_event_timer
+	call callback_func
+	branch app_evt_100ms_loop
+
+
+//regc:timer addr
+//regb:timer up call back fuction
+timer_single_step:
+	ifetch 1,regc
+	rtn blank
+	pincrease -1
+	istore 1,regc
+	nrtn blank
+	copy regb,pdata
+	branch callback_func
+
+//regc:timer addr
+//regb:timer up call back fuction
+timer_single_step_2B:
+	ifetch 2,regc
+	rtn blank
+	pincrease -1
+	istore 2,regc
+	nrtn blank
+	copy regb,pdata
+	branch callback_func
+	
+app_power_timer:
+	fetcht 2,mem_power_param_ptr
+	add temp,power_timer_offset,regc
+	arg app_power_timer_timeout,regb
+	branch timer_single_step
+	
+app_power_timer_timeout:
+	call app_got_power_state_common
+	beq POWER_STARTING,app_enter_power_stanby_state
+app_enter_power_off_state:
+	branch app_enter_hibernate
+app_enter_power_stanby_state:
+	setarg POWER_STANDBY
+	istore 1,regc
+	add temp,power_standby_cb_offset,regb
+app_power_cb_common:
+	ifetch 2,regb
+	branch callback_func
+
+app_unsniff_delay_timer:
+	arg mem_unsniff2sniff_timer_count,regc
+	arg app_unsniff_delay_timeout,regb
+	branch timer_single_step
+	
+app_unsniff_delay_timeout:
+	call context_check_idle
+	branch app_bt_enter_sniff,zero
+	rtn
+
+
+app_discovery_timer:
+	arg mem_discovery_timeout_timer_count,regc
+	arg app_discovery_timeout,regb
+	branch timer_single_step_2B
+	
+app_discovery_timeout:
+	call app_bt_stop_discovery
+	call app_led_off
+	fetch 2,mem_cb_discovry_timeout
+	branch callback_func
+
+	
+app_bb_event_reconn_failed:
+	call app_disconn_reason_flag_clear
+app_clear_reconnect_flag:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BT_RECONNECT,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+app_bb_event_bb_disconn:
+	jam 0,mem_unsniff2sniff_timer_count
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_RECONNECT,app_bb_event_bb_reconn_disconn
+	isolate0 UI_STATE_BT_SETUP_COMPLETE,pdata
+ 	call app_discard_event,true
+app_bb_event_bb_reconn_disconn:
+	bpatch patch16_0,mem_patch16
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BT_CONNECTED,pdata
+	set0 UI_STATE_BT_SETUP_COMPLETE,pdata
+	set0 UI_STATE_BT_HID_CONN,pdata
+	set0 UI_STATE_BT_HID_HANDSHAKE,pdata
+	set0 UI_STATE_BT_RECONNECT,pdata
+	store 2,mem_ui_state_map
+	branch app_lpm_mult_disable
+	
+app_bb_hibernate:
+	call app_disconn_reason_clear
+	branch app_enter_hibernate
+
+	
+app_disconn_reason_clear:
+	setarg 0
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	rtn
+app_disconn_reason_flag_clear:
+	setarg 0
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+
+app_disconn_reason_collect_bt:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	setarg 0
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+	
+app_disconn_reason_collect_ble:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set1 APP_DISC_BLE,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	setarg 0
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	rtn
+
+	
+//************************************************//
+//********APP SHARED FUNCSIONS*******//
+//************************************************//
+
+
+app_check_sniff:
+	fetch 1,mem_ui_state_map
+	isolate1 UI_STATE_BT_SNIFF,pdata
+	rtn
+
+//*****************************************//
+//*****************API********************//
+//*****************************************//
+app_start_auto_sniff:
+	fetch 1,mem_unsniff2sniff_timer
+	store 1,mem_unsniff2sniff_timer_count
+	rtn
+	
+app_get_lpm_wake_lock:
+	arg wake_lock_app,queue
+	branch lpm_get_wake_lock
+
+app_put_lpm_wake_lock:
+	arg wake_lock_app,queue
+	branch lpm_put_wake_lock
+	
+app_lpm_wake_auto_lock:
+	jam  LPM_WAKE_UP_DELAY_TIMER,mem_wake_up_delay_timer
+	branch app_get_lpm_wake_lock
+	
+app_lpm_wake_auto_lock_timer:
+	arg mem_wake_up_delay_timer,regc
+	arg app_put_lpm_wake_lock,regb
+	branch timer_single_step
+
+app_l2cap_flow_control_enable:
+	jam L2CAP_FLOW_CTRL_ENABLE,mem_l2cap_flow_ctrl_flag
+	rtn
+
+app_l2cap_flow_control_disable:
+	jam L2CAP_FLOW_CTRL_DISABLE,mem_l2cap_flow_ctrl_flag
+	rtn
+	
+app_bt_set_pincode:
+	jam BT_CMD_SET_PIN_CODE,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_bt_role_switch:
+	jam BT_CMD_ROLE_SWITCH,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_bt_start_reconnect:
+	bpatch patch16_1,mem_patch16
+	fetch 1,mem_app_connection_options
+	store 1,mem_connection_options
+	jam APP_FLAG_RECONNECT,mem_reconnect_flag
+	jam BT_CMD_RECONNECT,mem_fifo_temp
+	branch ui_ipc_send_cmd	
+	
+app_bt_reconnect_cancel:
+	jam BT_CMD_BB_RECONN_CANCEL,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_bt_disconnect:
+	jam BT_CMD_DISCONNECT,mem_fifo_temp
+	branch ui_ipc_send_cmd	
+
+app_bt_start_discovery_short:
+	fetch 2,mem_discovery_timeout
+	store 2,mem_discovery_timeout_timer_count
+app_bt_start_discovery_led_blink:
+	call app_led_start_blink
+app_bt_start_discovery:
+	jam BT_CMD_START_DISCOVERY,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_bt_stop_discovery:
+	setarg 0
+	store 2,mem_discovery_timeout_timer_count
+	jam BT_CMD_STOP_DISCOVERY,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_start_direct_adv:
+	jam BT_CMD_START_DIRECT_ADV,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_ble_stop_direct_adv:
+	jam BT_CMD_STOP_DIRECT_ADV,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_stop_adv:
+	jam BT_CMD_STOP_ADV,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_start_adv:	
+	jam BT_CMD_START_ADV,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_start_scan:
+	jam BT_CMD_LE_START_SCAN,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_stop_scan:
+	jam BT_CMD_LE_STOP_SCAN,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_start_conn:
+	jam BT_CMD_LE_START_CONN,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_ble_disconnect:
+	jam BT_CMD_LE_DISCONNECT,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_led_start_blink:	
+	jam BT_CMD_LED_BLINK,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_led_on:
+	jam BT_CMD_LED_ON,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_led_stop_blink:
+app_led_off:
+	jam BT_CMD_LED_OFF,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+app_enter_hibernate:
+	jam BT_CMD_ENTER_HIBERNATE,mem_fifo_temp 
+	branch ui_ipc_send_cmd
+	
+app_bt_sniff_exit:
+	jam BT_CMD_EXIT_SNIFF,mem_fifo_temp
+	branch  ui_ipc_send_cmd
+	
+app_bt_enter_sniff:
+	jam BT_CMD_ENTER_SNIFF,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_ble_store_reconn_info:
+	jam BT_CMD_STORE_RECONN_INFO_LE,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_bt_store_reconn_info:
+	jam BT_CMD_STORE_RECONN_INFO_BT,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_store_reconn_info:
+	jam BT_CMD_STORE_RECONN_INFO,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+app_lpm_mult_enable:
+	set1 mark_lpm_mult_enable,mark
+	rtn
+
+app_lpm_mult_disable:
+	set0 mark_lpm_mult_enable,mark
+	rtn
+
+
+/*
+
+mem_power_param struct
+{
+	usigned char     mem_power_state
+	usigned char     mem_power_timer
+	usigned char	 mem_power_off_timeout
+	usigned char	 mem_power_starting_timeout
+	usigned long	 mem_power_off_cb
+	usigned long	 mem_power_starting_cb
+	usigned long	 mem_power_standby_cb
+	usigned long 	 mem_ui_butten_up_cb
+}
+    	functions:power state switching by mem_app_power_timer timeout or by button_long_pressed event
+    	(power off -> power starting->power standby->power off) and power timer initialization 
+ input parameters:mem_power_param_ptr should be point to the variable(mem_power_param) address where the input parameters stored in with its format
+output parameters:switched power state will be stored in variable mem_power_state*/
+app_button_long_pressed:
+	call app_got_power_state_common
+	beq POWER_STANDBY,app_power_shutting_down
+app_power_starting:
+	setarg POWER_STARTING
+	istore 1,regc
+	add temp,power_starting_timeout_offset,rega
+	add temp,power_starting_cb_offset,regb
+app_power_common:
+	ifetcht 1,rega
+	increase 1,regc
+	istoret 1,regc
+	branch app_power_cb_common
+	
+app_power_shutting_down:
+	setarg POWER_OFF
+	istore 1,regc
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,app_power_off_end
+	call le_send_terminate_ind_user_terminated
+	call app_ble_disconnect
+app_power_off_end:
+	fetcht 2,mem_power_param_ptr
+	add temp,power_off_timeout_offset,rega
+	add temp,power_off_cb_offset,regb
+	branch app_power_common
+	
+app_got_power_state_common:
+	fetcht 2,mem_power_param_ptr
+	add temp,power_state_offset,regc
+	ifetch 1,regc
+	rtn
+
+app_event_button_up:
+	call app_got_power_state_common
+	bne POWER_OFF,app_power_release
+	branch app_enter_hibernate
+app_power_release:
+	add temp,ui_butten_up_cb_offset,regb
+	branch app_power_cb_common
+
+
+app_hid_connected:
+	setarg HID_HANDSHAKE_TIMEOUT
+	store 1,mem_hid_handshake_timer_count
+	rtn
+
+
Index: program/app_antiLost.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_antiLost.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_antiLost.prog	(working copy)
@@ -0,0 +1,609 @@
+ifdef COMPILE_ANTILOST
+antilost_init:
+	rtn wake	
+	setarg antilost_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+	setarg keyscan_process_lpm_before
+	store 2,mem_cb_before_lpm
+	setarg antilost_idle_process	//
+	store 2,mem_cb_idle_process
+	setarg antilost_le_conn_process	//
+	store 2,mem_cb_le_process
+	setarg antilost_bb_event_process 
+	store 2,mem_cb_bb_event_process
+	setarg antilost_le_bb_event_timer
+	store 2,mem_cb_event_timer
+	setarg antilost_le_notification
+	store 2,mem_cb_ble_transmit
+	setarg antilost_lpm_lock_process
+	store 2,mem_cb_check_wakelock
+	setarg antilost_le_receive_data_process
+	store 2,mem_cb_att_write
+	bpatch patch16_2,mem_patch16
+	
+	call antilost_buzzer_pwm_init
+	call antilost_set_ble_version
+	call keyscan_key_init
+	call antilost_adc_init
+	call ui_led_init_global
+	call ui_button_init
+	setarg antilost_key_up_down
+	store 2,mem_cb_antl_key
+	setarg antilost_power_off_cb
+	store 2,mem_antl_power_off_cb
+	setarg antilost_power_starting_cb
+	store 2,mem_antl_power_starting_cb
+	setarg antilost_power_standby_cb
+	store 2,mem_antl_power_standby_cb
+	setarg antilost_led_on_cb
+	store 2,mem_antl_led_cb_on
+	setarg antilost_led_off_cb
+	store 2,mem_antl_led_cb_off
+	setarg antilost_buzzer_on
+	store 2,mem_antl_buzzer_cb_on
+	setarg antilost_buzzer_off
+	store 2,mem_antl_buzzer_cb_off
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+	branch app_enter_hibernate
+
+antilost_set_ble_version:
+	//set ble version  4.1 
+	jam 7,mem_lmp_version
+	rtn
+
+
+antilost_le_before_hibernate:
+	call antilost_led_buzzer_stop_blink
+	branch  app_enter_hibernate
+
+antilost_le_notification:
+	call le_fifo_check_nearly_full
+	nrtn blank
+	arg mem_temp_block5,rega
+	call queue_pop
+	nrtn user
+	arg mem_temp_block5,contr
+	branch le_send_notify_from_list
+
+antilost_power_standby_cb:
+	fetch 2,mem_antl_le_sleep_timeout
+	store 2,mem_antl_le_sleep_timer
+	jam 1,mem_antl_key_scan_enable
+	branch antilost_fast_adv_start
+	
+antilost_lpm_lock_process:
+	fetch 1,mem_antl_key_state
+	beq 1,antilost_lpm_ctrl_for_led_buzzer
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,antilost_lpm_ctrl_for_led_buzzer
+	fetch 1,mem_antl_lost_mode
+	beq 1,app_get_lpm_wake_lock
+	fetch 1, mem_antl_queue_curr_num
+	nbranch app_get_lpm_wake_lock,blank 
+	branch app_put_lpm_wake_lock
+	
+antilost_lpm_ctrl_for_led_buzzer:
+	fetch 1,mem_antl_led_state
+	fetcht 1,mem_antl_buzzer_state
+	ior temp,pdata
+	beq 1,app_get_lpm_wake_lock
+	branch app_put_lpm_wake_lock
+
+antilost_bb_event_process:
+	copy regc,pdata
+	beq BT_EVT_BUTTON_UP,app_event_button_up
+	beq BT_EVT_BUTTON_LONG_PRESSED,app_button_long_pressed
+	beq BT_EVT_LE_CONNECTED,antilost_le_process_conn
+	beq BT_EVT_LE_DISCONNECTED,antilost_le_process_discon
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,antilost_le_conn_param_update_rsp_recieved
+	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,antilost_le_conn_param_accepted
+	rtn
+antilost_le_conn_param_update_rsp_recieved:
+	call antilost_le_conn_param_updata_judge
+	fetch 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	beq BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_REJECTED,antilost_le_conn_param_rejected
+antilost_le_conn_param_updata_procedure_sucsess:
+	jam CONN_PARAM_UPDATA_PROCEDURE_COMPLETE,mem_antl_conn_updata_procedure_state
+	jam 60,mem_antl_conn_update_timer
+	rtn
+antilost_le_conn_param_updata_judge:
+	fetch 1,mem_le_state
+	rtnbit1 lestate_update_param
+	jam 1,mem_lestate_update_param_flag
+	rtn
+
+	
+antilost_le_conn_param_accepted:
+	fetch 1,mem_lestate_update_param_flag
+	rtn blank
+	jam 0,mem_lestate_update_param_flag
+	fetch 2,mem_le_new_connslavelatency
+	branch antilost_master_nonsupport_latency,blank
+	rtn
+
+antilost_le_conn_param_rejected:
+	fetch 2,mem_le_latency
+	branch antilost_conn_param_updata_procedure_faild,blank
+antilost_conn_param_retransimiting:
+	jam CONN_PARAM_UPDATA_PROCEDURE_STARTING,mem_antl_conn_updata_procedure_state
+	fetcht 2,mem_interval_increment
+	fetch 2,mem_le_interval_min
+	iadd temp,pdata
+	store 2,mem_le_interval_min
+	copy pdata,rega
+	fetch 2,mem_le_interval_max
+	iadd temp,pdata
+	store 2,mem_le_interval_max
+	iadd rega,pdata
+	rshift pdata,temp
+	fetch 2,mem_antl_le_unnormal_interval_max
+	idiv temp
+	call get_div_result
+	store 2,mem_le_latency
+	jam 1,mem_antl_send_updata_le_param_timer
+	rtn
+antilost_conn_param_updata_procedure_faild:
+	jam CONN_PARAM_UPDATA_PROCEDURE_FAILD,mem_antl_conn_updata_procedure_state
+	rtn
+
+antilost_master_nonsupport_latency:
+	jam 0,mem_lpm_mult
+	jam 0,mem_antl_send_updata_le_param_timer
+	fetch 2,mem_le_new_conninterval	//interval from master
+	fetcht 2,mem_antl_le_unnormal_interval_min
+	isub temp,null
+	setflag positive,0,rega 
+	fetch 2,mem_antl_le_unnormal_interval_max //local intervalmax
+	fetcht 2,mem_le_new_conninterval//interval form master
+	isub temp,pdata
+	setflag positive,1,rega
+	compare	0x03,rega,0x03
+	rtn true //return if the new conn_interval in range through conn_interval_min to conn_interval_max already
+	fetch 8,mem_antl_le_unnormal_interval_min
+	store 8,mem_le_interval_min
+	jam 1,mem_antl_send_updata_le_param_timer
+	rtn                               
+
+
+antilost_le_bb_event_timer:
+	call app_power_timer
+	call antilost_double_click_timer
+	call antilost_le_fast_adv_timer
+	call antilost_le_sleep_timer
+	call antilost_app_updata_le_param_timer
+	call antilost_conn_update_timer
+	call antilost_conn_battery_send_timer
+	call antilost_disconn_buzzer_on_timer
+	branch antilost_adc_check_timer
+
+antilost_disconn_buzzer_on_timer:
+	arg mem_antl_disconn_buzzer_on_timer,regc
+	arg antilost_disconn_buzzer_off,regb
+	branch timer_single_step_2B
+
+antilost_disconn_buzzer_off:
+	arg 1,rega
+	call ui_led_blink_stop_global
+	fetch 2,mem_buzzer_pwm_conf
+	branch pwm_disable
+
+
+antilost_conn_battery_send_timer:
+	arg mem_antilost_conn_battery_send_timer,regc
+	arg antilost_conn_battery_send,regb
+	branch timer_single_step
+antilost_conn_battery_send:
+	call antilost_battery_process
+	call antilost_battery_process
+	call antilost_battery_process
+	branch antilost_battery_calculate_end //send twice to combat the failure of reception first time
+
+	
+antilost_double_click_timer:
+	arg mem_double_click_timer,regc
+	arg antilost_double_click_timeout,regb
+	branch timer_single_step
+antilost_double_click_timeout:
+	jam 0,mem_butten_click_cnt
+	rtn
+antilost_le_fast_adv_timer:
+	arg mem_antl_fast_adv_timer,regc
+	arg antilost_le_fast_adv_timeout,regb
+	branch timer_single_step_2B
+antilost_le_fast_adv_timeout:
+	arg mem_antl_slow_adv_led_style,regc
+	arg mem_antl_slow_adv_lpm_interval,regb
+	branch antilost_adv_start_common
+	
+
+antilost_conn_update_timer:
+	arg mem_antl_conn_update_timer,regc
+	arg antilost_conn_update_timer_time_out,regb
+	branch timer_single_step
+	
+antilost_conn_update_timer_time_out:
+	fetch 2,mem_le_latency
+	store 1,mem_lpm_mult
+	rtn
+antilost_app_updata_le_param_timer:
+	arg mem_antl_send_updata_le_param_timer,regc
+	arg antilost_app_updata_le_param_timeout,regb
+	branch timer_single_step
+antilost_app_updata_le_param_timeout:
+	fetch 1,mem_le_state
+	compare 0,pdata,0x60
+	nbranch antilost_wait_for_updata_param_instant_expire,true
+	jam CONN_PARAM_UPDATA_PROCEDURE_STARTING,mem_antl_conn_updata_procedure_state
+	call  app_lpm_mult_enable
+	branch le_l2cap_tx_update_req	
+antilost_wait_for_updata_param_instant_expire:
+	jam 1,mem_antl_send_updata_le_param_timer
+	rtn
+	
+antilost_le_sleep_timer:
+	arg mem_antl_le_sleep_timer,regc
+	arg antilost_le_sleep_timer_timeout,regb
+	branch timer_single_step_2B
+
+
+antilost_le_sleep_timer_timeout:
+	branch app_button_long_pressed
+
+antilost_adc_check_timer:
+	arg mem_adc_timer,regc
+	arg antilost_adc_check_timer_timeout,regb
+	branch timer_single_step_2B
+antilost_adc_check_timer_timeout:
+	fetch 2,mem_adc_timeout
+	store 2,mem_adc_timer
+	branch antilost_battery_process
+
+
+antilost_le_process_conn:
+	fetch 2,mem_adc_timeout
+	store 2,mem_adc_timer
+	setarg 0
+	store 2,mem_antl_fast_adv_timer
+	store 2,mem_antl_le_sleep_timer
+	call antilost_alert_off
+	call antilost_led_buzzer_stop_blink
+	jam 0,mem_lpm_mult
+	branch app_ble_stop_adv
+	                                                      
+
+antilost_le_process_discon:
+	setarg 0
+	store 4,mem_adc_timer
+	store 3,mem_antl_conn_updata_procedure_state
+	store 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	
+	jam 1,mem_alarm_config_notfy_cnt
+	fetch 2,mem_antl_le_sleep_timeout
+	store 2,mem_antl_le_sleep_timer
+
+	fetch 2,mem_antl_disconn_buzzer_on_timeout
+	store 2,mem_antl_disconn_buzzer_on_timer
+	
+	call queue_init
+	fetch 1,mem_antl_power_state
+	rtneq POWER_OFF
+	call antilost_fast_adv_start
+	branch antilost_on_off_alarm_after_disconn
+
+
+antilost_le_conn_process:
+//bpatch
+	branch antilost_key_process
+
+antilost_idle_process:
+
+	fetch 1,mem_antl_power_state
+	rtnne POWER_STANDBY
+	branch antilost_key_process
+
+
+//////////////////////////////////////////////////////////////////////////////////////////
+/////SOFT WTICH////////
+antilost_power_starting_cb:
+	arg mem_antl_power_starting_buzzer_style,regc
+	call antilost_buzzer_configuration
+	arg mem_antl_power_starting_led_style,regc
+antilost_power_common:
+	branch antilost_led_configuration
+
+antilost_power_off_cb:
+	jam OFF,mem_le_adv_enable
+	arg mem_antl_power_off_buzzer_style,regc
+	call antilost_buzzer_configuration
+	arg mem_antl_power_off_led_style,regc
+	branch antilost_power_common
+	
+antilost_le_receive_data_process:
+	fetch 1,mem_le_att_opcode
+	beq ATTOP_WRITE_REQUEST,antilost_le_parse_att_write_request
+	rtn
+antilost_le_parse_att_write_request:
+	fetch 2,mem_le_att_handle
+//	beq  ATT_WRITE_REQUEST_HANDLE,antilost_key_data_send
+	beq NEW_SPEC_WRITE_HANDLE,antilost_cmd_parse_for_application
+	beq NEW_SPEC_NOTIFICATION_ENABLE_HANDLE,antilost_notify_alarm_config_first_time
+	rtn
+/////////////////////////////////////////////////////////
+
+
+/////////key scan
+antilost_key_process:
+	fetch 1,mem_antl_key_scan_enable
+	rtn blank
+	branch keyscan_key_process
+
+	//queue = key index
+	//rega =1 press, =0 release
+antilost_key_up_down:
+	copy rega,pdata
+	branch antilost_key_is_up,blank
+antilost_key_is_down:
+	copy queue,pdata
+	beq 0,antilost_key0_down
+	rtn
+antilost_key_is_up:
+	copy queue,pdata
+	beq 0,antilost_key0_up
+	rtn
+
+antilost_key0_down:
+	jam 1,mem_antl_key_state
+	arg mem_antl_key_buzzer_style,regc
+	call antilost_buzzer_configuration
+	arg mem_antl_key_led_style,regc
+	call antilost_led_configuration
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,antilost_butten_down_while_disconn
+	branch antilost_butten_down_after_conn
+	
+antilost_key0_up:
+	jam 0,mem_antl_key_state
+	branch antilost_double_click_timer_init
+
+//////////////process for double-click
+
+antilost_double_click_timer_init:
+	fetch 1,mem_butten_click_cnt
+	rtnne 1
+	jam 5,mem_double_click_timer
+	rtn
+
+antilost_butten_down_after_conn:
+	fetch 1,mem_butten_click_cnt
+	pincrease 1
+	store 1,mem_butten_click_cnt
+	beq 1,antilost_click_once
+	beq 2,antilost_click_twice
+	rtn
+antilost_click_once:
+	call antilost_alert_off
+	jam OPCODE1_BUTTEN_CLICK_ONCE,mem_antl_key0_press+5//5 represent opcode offset
+	arg mem_antl_key0_press,regc
+	branch antilost_prepare_data_and_send
+antilost_click_twice:
+	jam 0,mem_butten_click_cnt
+	jam OPCODE2_BUTTEN_DOUBLE_CLICK,mem_antl_key0_press+5
+	arg mem_antl_key0_press,regc
+	call antilost_prepare_data_and_send
+	fetch 1,mem_antl_lost_mode
+	beq 1,antilost_alert_on
+	rtn   //rtn should be retaind
+	
+antilost_butten_down_while_disconn:
+	fetch 2,mem_antl_le_sleep_timeout
+	store 2,mem_antl_le_sleep_timer
+	call antilost_alert_off
+	branch antilost_fast_adv_start
+	
+///////////////////////NEW App Spcecific///////
+antilost_cmd_parse_for_application:
+	bpatch patch16_3,mem_patch16
+	call le_app_receive_data
+	ifetch 1,rega
+	beq OPCODE3_ANTL_START_ALRAM,antilost_on_of_alram
+	beq OPCODE7_ANTL_CONFIG_ALRAM,antilost_configuration_for_alram
+	rtn
+
+antilost_on_of_alram:
+	fetch 1,mem_antl_lost_mode
+	beq ANTI_LE_ALARM_OFF,antilost_alert_on
+	beq ANTI_LE_ALARM_ON,antilost_alert_off
+	rtn
+
+antilost_configuration_for_alram:
+	ifetch 1,regb
+	beq 1,antilost_set_start_alarm_after_disconn
+	beq 0,antilost_set_no_alarm_after_disconn
+	rtn
+/////////////////check////////////////////////
+
+/*input: 1)package data addr in regc
+output:no
+function:calculate check_out value and send data*/
+//mem_temp_block5
+antilost_prepare_data_and_send:
+	bpatch patch16_4,mem_patch16
+	fetch 1,mem_client_characteristic_configuration_descriptor
+	isolate1 NOTIFICATION_ENABLE_BIT,pdata
+	nrtn true
+	add regc,6,contr
+	ifetch 2,contr
+	byteswap pdata,pdata
+	add pdata,5,loopcnt
+	add regc,3,contr
+	call calc_check_sum_start
+	istore 1,contr
+	copy regc,rega
+	branch queue_push
+
+/////////////////NEW APP SPECIFIC check end////////////////////
+
+
+/////////alarm//////////////////////////////
+antilost_alert_on:
+	fetch 1,mem_antl_power_state
+	rtn blank
+	jam 1,mem_antl_lost_mode
+	arg mem_antl_alert_buzzer_stlye,regc
+	call antilost_buzzer_configuration
+	arg mem_antl_alert_led_stlye,regc
+	call antilost_led_configuration
+	jam OPCODE4_CURRENT_ALARM_STATE,mem_antl_key0_release+5//5 represent opcode offset
+	jam 1,mem_antl_key0_release+8 //8 represent data offset,digit 1 represent alarm is on at present
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+antilost_alert_off:
+	fetch 1,mem_antl_lost_mode
+	rtn blank
+	jam 0,mem_antl_lost_mode
+	call antilost_led_buzzer_stop_blink
+	jam OPCODE4_CURRENT_ALARM_STATE,mem_antl_key0_release+5//5 represent opcode offset
+	jam 0,mem_antl_key0_release+8 //8 represent data offset,digit 0 represent alarm is off at present
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+
+antilost_set_start_alarm_after_disconn:
+	jam 1,mem_alarm_config
+	jam OPCODE7_ANTL_CONFIG_ALRAM,mem_antl_key0_release+5
+	jam 1,mem_antl_key0_release+8
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+antilost_set_no_alarm_after_disconn:
+	jam 0,mem_alarm_config
+	jam OPCODE7_ANTL_CONFIG_ALRAM,mem_antl_key0_release+5
+	jam 0,mem_antl_key0_release+8
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+antilost_on_off_alarm_after_disconn:
+	fetch 1,mem_alarm_config
+	rtn blank
+	branch antilost_alert_on
+	
+antilost_notify_alarm_config_first_time:
+	ifetch 2,rega
+	store 2,mem_client_characteristic_configuration_descriptor
+	isolate1 NOTIFICATION_ENABLE_BIT,pdata
+	nrtn true
+	fetch 1,mem_alarm_config_notfy_cnt
+	rtn blank
+	jam 0,mem_alarm_config_notfy_cnt
+	fetch 8,mem_antl_le_interval_min
+	store 8,mem_le_interval_min
+	jam 3,mem_antilost_conn_battery_send_timer
+	jam OPCODE7_ANTL_CONFIG_ALRAM,mem_antl_key0_release+5
+	jam 30,mem_antl_send_updata_le_param_timer
+	fetch 1,mem_alarm_config
+	store 1,mem_antl_key0_release+8
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+
+//////////////alarm end//////////////////////////
+//sytle address in regc
+antilost_buzzer_configuration:
+	arg 1,rega
+	branch antilost_configuration_common
+antilost_led_configuration:
+	arg 0,rega
+antilost_configuration_common:
+	branch antilost_led_buzzer_style_configuration
+	
+antilost_led_buzzer_stop_blink:
+	arg 0,rega
+	call ui_led_blink_stop_global
+	arg 1,rega
+	call ui_led_blink_stop_global
+	fetch 2,mem_buzzer_pwm_conf
+	branch pwm_disable
+	
+antilost_led_buzzer_style_configuration:
+	call calc_curr_struct_prt
+	arg 7,loopcnt
+	branch ui_led_set_style_global+2
+
+
+
+antilost_fast_adv_start:
+	arg mem_antl_fast_adv_led_style,regc
+	arg mem_antl_lpm_interval,regb
+antilost_adv_start_common:
+	call antilost_adv_interval_lpm_interval_set
+	call antilost_led_configuration
+	fetch 2,mem_antl_fast_adv_timeout
+	store 2,mem_antl_fast_adv_timer
+	branch app_ble_start_adv
+	
+antilost_adv_interval_lpm_interval_set:
+	ifetch 2,regb
+	store 2,mem_lpm_interval
+	ifetch 2,contr
+	store 2,mem_le_adv_interval
+	rtn
+///////////////beep////////////
+antilost_buzzer_pwm_init:
+	arg 0,rega //sys clk 12mhz
+	call pwm_init
+	fetch 6,mem_buzzer_pwm_conf
+	store 6,mem_pdatatemp
+	call pwm_out_set
+	fetch 2,mem_buzzer_pwm_conf
+	branch pwm_disable
+	
+antilost_led_on_cb:
+	jam 1,mem_antl_led_state
+	rtn	
+antilost_led_off_cb:
+	jam 0,mem_antl_led_state
+	rtn
+
+
+
+antilost_buzzer_off:
+	jam 0,mem_antl_buzzer_state
+	fetch 2,mem_buzzer_pwm_conf
+	branch pwm_disable
+	
+antilost_buzzer_on:
+	jam 1,mem_antl_buzzer_state
+	fetch 6,mem_buzzer_pwm_conf
+	store 6,mem_pdatatemp
+	branch pwm_out_set
+
+////////////////beep end///////////////////////////
+/////////////adc start////////////////////////
+antilost_adc_init:
+	jam 0,mem_adc_config_flag
+	rtn
+	
+antilost_battery_process:
+	call vdd_calculate_by_mode
+	store 2,mem_battery_current_voltage
+	arg mem_battery_calculate_set,rega
+	call adc_bat_percent_lowpower_out
+	store 1,mem_voltage_remain_percent //for debug
+	setarg 0x65
+	beq 0,antilost_low_battery
+	sub pdata,0x64,null
+	nbranch antilost_full_battery,positive
+	store 1,mem_antl_key0_release+8
+antilost_battery_calculate_end:
+	jam OPCODE5_BATTER_INFORMATION,mem_antl_key0_release+5
+	arg mem_antl_key0_release,regc
+	branch antilost_prepare_data_and_send
+antilost_full_battery:
+	jam 100,mem_antl_key0_release+8
+	branch antilost_battery_calculate_end
+
+antilost_low_battery:
+	branch app_button_long_pressed
+else
+antilost_init:
+	rtn
+endif
+
+
Index: program/app_car.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_car.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_car.prog	(working copy)
@@ -0,0 +1,800 @@
+ifdef COMPILE_CAR
+
+car_init:
+	call enable_authrom
+	rtn wake
+	setarg car_g24_receive_process
+	store 2,mem_cb_24g_receive_process
+	
+	setarg g24_bind_ackpayload_prep
+	store 2,mem_cb_24g_ackpayload
+	
+	setarg car_g24_cb_data_device1
+	store 2,mem_cb_24g_data_device1
+
+	setarg car_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+	
+	setarg car_le_process_lpm_before
+	store 2,mem_cb_before_lpm	
+	
+	setarg app_enter_hibernate
+	store 2,mem_cb_discovry_timeout
+	
+	setarg car_scale_process_idle	
+	store 2,mem_cb_idle_process	
+	
+	setarg car_scale_process_bb_event 
+	store 2,mem_cb_bb_event_process	
+	
+	setarg app_get_lpm_wake_lock
+	store 2,mem_cb_check_wakelock
+	
+	setarg car_le_receive_data
+	store 2,mem_cb_att_write
+	
+	setarg car_le_bb_event_timer
+	store 2,mem_cb_event_timer
+	
+	bpatch patch16_5,mem_patch16
+	call car_init_environment
+	call car_lpm_timer_enable
+	call queue_init
+	jam 2,mem_lpm_mult
+	jam POWER_ON,mem_car_24g_received_pac
+	fetch 1,mem_car_config_soft_switch_enable
+	store 1,mem_car_hard_soft_switch
+	beq HARD_SWITCH, car_hard_switch_power_on_signal
+	fetch 1,mem_car_config_soft_switch_gpio
+	store 1,mem_ui_button_gpio
+	jam OFF,mem_le_adv_enable
+car_soft_switch_power_on_init:
+	call ui_button_init
+	call ui_button_polling
+	jam POWER_STARTING,mem_car_power_state
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+ 	branch app_enter_hibernate
+
+car_power_off_signal:	
+	branch car_ui_led_init
+	
+car_hard_switch_power_on_signal:
+	jam POWER_STANDBY,mem_car_power_state
+car_soft_switch_power_on_signal:
+	jam ON,mem_le_adv_enable
+	setarg FAST_ADV_INTERVAL_VALUE_CAR
+	call shutter_ble_adv_interval_set
+car_le_modified_name_adv:
+	arg mem_le_name+7,contw
+	fetch 1,mem_le_lap
+car_name_loop:
+	and pdata,0xF0,temp
+	rshift4 temp,temp
+	call car_hex_to_ascii
+	istoret 1, contw
+	and pdata,0x0F,temp
+	call car_hex_to_ascii
+	istoret 1, contw
+	call le_modified_name_att_list
+	fetcht 1,mem_le_name_len
+	copy temp,loopcnt
+	arg mem_le_adv_data+2,contw
+	arg mem_le_name,contr
+	call memcpy
+car_le_modified_name_scan:
+	fetcht 1,mem_le_name_len
+	copy temp,loopcnt
+	arg mem_le_scan_data+2,contw
+	arg mem_le_name,contr
+	branch memcpy
+car_hex_to_ascii:
+	sub temp,9,null
+	branch car_hex_num,positive
+	add temp,55,temp
+	rtn
+car_hex_num:	
+	add temp,48,temp
+	rtn
+
+car_ui_led_init:
+	fetch 1,mem_car_config_blood_led1_gpio
+	bne INVALID_PIN_NUM,car_blood_led_gpio_set
+car_ui_led_init_1:
+	fetch 1,mem_car_config_pairing_led_gpio
+	bne INVALID_PIN_NUM,car_pairing_led_gpio_set
+car_ui_led_init_2:
+	fetch 1,mem_car_config_low_voltage_led_gpio
+	bne INVALID_PIN_NUM,car_low_voltage_led_gpio_set
+car_ui_led_init_3:
+	fetch 1, mem_car_led_num
+	copy pdata,loopcnt
+	setarg mem_car_led_map
+	copy pdata,rega
+car_in_lp1:
+	copy rega,contr
+	ifetch 1,contr
+	copy contr,rega
+	beq INVALID_PIN_NUM,car_in_lp1_end
+	copy pdata,temp
+	call gpio_config_output
+car_in_lp1_end:
+	loop car_in_lp1
+car_ui_led_init_end:
+	rtn
+car_blood_led_gpio_set:
+	fetch 8,mem_car_config_blood_led1_gpio
+	store 8,mem_car_led_map+2
+	branch car_ui_led_init_1
+car_pairing_led_gpio_set:
+	store 1,mem_car_led_map
+	branch car_ui_led_init_2
+car_low_voltage_led_gpio_set:
+	store 1,mem_car_led_map+1
+	branch car_ui_led_init_3
+
+car_init_environment:
+	
+	call car_g24_init
+	arg 0,rega
+	call pwm_init
+	call car_ui_led_init
+	call car_start_blink
+	call car_init_adc_hvin
+	branch car_motor_init
+
+car_motor_init:
+	fetch 1, mem_car_motor_gpio_num
+	copy pdata,loopcnt
+	setarg mem_car_motor_gpio_map
+	copy pdata,rega
+p_in_lp1:
+	copy rega,contr
+	ifetch 1,contr
+	copy contr,rega
+	beq INVALID_PIN_NUM,p_in_lp1_end
+	copy pdata,temp
+	store 1, mem_car_gpio
+	call car_ui_gpio_init
+p_in_lp1_end:
+	loop p_in_lp1
+p_car_ui_led_init_end:
+	rtn
+
+car_ui_gpio_init:
+	fetch 1,mem_car_gpio
+	rtneq UI_BUTTON_GPIO_DISABLE
+	iforce temp
+	branch gpio_config_output
+
+	
+car_init_adc_hvin:
+	jam 100,mem_car_notify_vdd_value_last
+	rtn
+	
+car_le_before_hibernate:
+car_le_process_lpm_before:
+	branch keyscan_process_lpm_before
+
+car_key_scan_process:
+	branch keyscan_key_process
+
+car_scale_process_idle:
+	call car_le_send_packet
+	call car_g24_status_process
+	branch car_key_scan_process
+
+car_g24_status_process:
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	fetch 1,mem_car_24g_received_pac
+	beq WORK_PAIRED,car_g24_connected_event
+	rtn
+car_g24_connected_event:
+	fetch 1,mem_car_24g_status
+	rtneq WORK_PAIRED
+	jam WORK_PAIRED,mem_car_24g_status
+	call car_lpm_timer_disable
+	call car_stop_blink
+	branch car_g24_connected
+
+car_lpm_timer_enable:
+	fetch 2,mem_car_enter_lpm_timer_count	
+	store 2,mem_car_enter_lpm_timer
+	jam 0,mem_car_enter_lpm_flag
+	rtn
+
+	
+car_lpm_timer_disable:
+	setarg 0
+	branch car_lpm_timer_enable+1
+
+
+car_stop_blink:
+	arg 0,rega
+	branch ui_led_blink_stop_global
+	
+	
+car_start_blink:
+	arg 0,rega
+	branch ui_led_blink_start_global
+	
+
+
+
+
+car_le_send_packet:
+	fetch 2,mem_ui_state_map
+	rtnbit0 UI_STATE_BLE_CONNECTED
+	call le_fifo_check_nearly_full
+	nrtn blank
+	arg mem_car_pop_queue_buff,rega
+	call queue_pop
+	nrtn user
+	arg mem_car_pop_queue_buff,contr
+	branch le_send_notify_from_list
+ 
+car_scale_process_bb_event:
+	copy regc,pdata
+	beq BT_EVT_BUTTON_UP,app_event_button_up
+	beq BT_EVT_BUTTON_LONG_PRESSED,app_button_long_pressed
+	beq BT_EVT_LE_CONNECTED,car_scale_event_le_conn
+	beq BT_EVT_LE_DISCONNECTED,car_scale_event_le_discon
+	rtn
+
+car_scale_event_le_conn:
+	call car_lpm_timer_disable
+	call car_stop_blink
+	set0 mark_24g_rxmode,mark
+	branch car_scale_process_conn
+car_g24_connected:
+	fetch 2,mem_car_24g_no_data_timeout_count
+	store 2,mem_car_24g_no_data_timeout_timer
+car_scale_process_conn:
+	jam 0x14,mem_car_notify_vdd_timer
+	jam 0,mem_lpm_mode
+	call app_ble_stop_adv
+	branch app_lpm_mult_enable
+
+
+car_scale_event_le_discon:
+	set1 mark_24g_rxmode,mark
+	call car_lpm_timer_enable
+	call car_fb_motor_stop
+	call car_lr_motor_stop
+car_g24_disconnect:
+	setarg 0
+	store 5,mem_car_led_control
+	setarg 4
+	call pwm_disable
+	setarg 5
+	call pwm_disable
+	setarg 20
+	call pwm_disable
+	setarg 21
+	call pwm_disable
+	setarg 22
+	call pwm_disable
+	setarg 7
+	call pwm_disable
+	call queue_init
+	jam 10,mem_motor1_speed
+	jam 10,mem_motor2_speed
+	jam 10,mem_motor3_speed
+//	jam 1,mem_lpm_mode
+	jam 2,mem_lpm_mult
+	setarg FAST_ADV_INTERVAL_VALUE_CAR
+	call shutter_ble_adv_interval_set
+	branch app_ble_start_adv
+
+car_le_bb_event_timer:
+	call car_moto1_blank_data_timer
+	call car_moto2_blank_data_timer
+	call car_moto3_blank_data_timer
+	call app_power_timer
+	call car_notify_vdd_timer
+	call car_24g_no_data_timeout_timer
+	call car_24g_bind_enable_timer
+	branch car_enter_lpm_timer
+
+car_24g_bind_enable_timer:
+	arg mem_car_24g_bind_enable_delay_count,regc
+	arg 0,regb
+	branch timer_single_step
+
+car_enter_lpm_timer:
+	arg mem_car_enter_lpm_timer,regc
+	arg car_enter_lpm_enable,regb
+	branch timer_single_step_2B
+car_enter_lpm_enable:
+	jam 1,mem_car_enter_lpm_flag
+	rtn
+	
+car_24g_no_data_timeout_timer:
+	arg mem_car_24g_no_data_timeout_timer,regc
+	arg car_24g_no_data_timer_timeout,regb
+	branch timer_single_step_2B
+car_24g_no_data_timer_timeout:
+	jam WORK_SEARCH,mem_car_24g_status
+	jam POWER_ON,mem_car_24g_received_pac
+	branch car_g24_disconnect
+
+car_notify_vdd_timer:
+	fetch 1,mem_car_config_bat_notify_enable
+	rtn blank
+	arg mem_car_notify_vdd_timer,regc
+	arg car_notify_vdd,regb
+	branch timer_single_step
+car_notify_vdd:
+	fetch 1,mem_car_notify_vdd_count
+	store 1,mem_car_notify_vdd_timer
+ 	fetch 1,mem_car_working_flag
+ 	nrtn blank
+car_read_hvin:
+	call vdd_calculate_by_mode
+	store 2,mem_vdd_now_vol
+	arg mem_vdd_calculate_set,rega
+	call adc_bat_percent_lowpower_out
+	fetcht 1,mem_car_notify_vdd_value_last
+	isub temp,null
+	branch car_notify_vdd_next2,positive
+	store 1,mem_car_notify_vdd_value_last
+	copy pdata,temp
+car_notify_vdd_next2:
+	storet 1,mem_car_notify_vdd_percent
+	fetch 1,mem_car_config_low_voltage_percent
+	isub temp,null
+	call car_enter_low_bat,positive
+	storet 1,mem_notify_bat_payload 
+	arg 6,loopcnt
+	arg mem_notify_bat_head,contr
+	call calc_check_sum_start
+	store 1,mem_notify_bat_check_sum
+	arg mem_notify_bat_packet,rega
+	branch queue_push
+car_enter_low_bat:
+	fetch 1,mem_low_bat_flag
+	nrtn blank
+	jam 1,mem_low_bat_flag
+	arg 1,rega
+	branch ui_led_blink_start_global
+car_low_bat_led_off:
+	arg 1,rega
+	branch ui_led_blink_stop_global
+
+////////////////////////check sum////////////////////////
+//loopcnt = sum number,contr = ptr
+calc_check_sum_start:
+	arg 0,rega
+calc_check_sum_loop:
+	ifetch 1,contr
+	iadd rega,rega
+	loop calc_check_sum_loop
+calc_check_sum_and:
+	and rega,0xff,pdata
+	rtn
+
+car_le_receive_data:	
+	fetch 1,mem_le_att_opcode
+	beq ATTOP_WRITE_REQUEST,car_le_parse_att_write_request
+	rtn
+car_le_parse_att_write_request:
+	fetch 2,mem_le_att_handle
+	beq ATT_CAR_CONTROL_HANDLE,car_control_le_receive
+	rtn
+
+/*
+*	typedef struct
+*	{
+*		2byte	packet_head				(mem_app_receive_temp)
+*		1byte	packet_cmd				(mem_app_receive_temp+2)
+*		2byte	packet_payload_length	(mem_app_receive_temp+3)
+*		10byte	packet_payload			(mem_app_receive_temp+5)
+*		1byte	packet_check_sum		(mem_app_receive_temp+15)
+*	}
+*/
+le_app_receive_data:
+	bpatch patch16_6,mem_patch16
+	ifetch 5,rega
+	store 5,mem_app_receive_temp
+	fetch 2,mem_app_receive_temp
+	arg LE_RECEIVE_PACKET_HEAD,temp
+	isub temp,null
+	nrtn zero
+	fetch 2,mem_app_receive_temp+3
+	byteswap pdata,pdata
+	store 2,mem_app_receive_temp+3
+	copy pdata,loopcnt
+	increase 5,rega
+	copy rega,contr
+	arg mem_app_receive_temp+5,contw
+	call memcpy
+	ifetch 1,contr
+	store 1,mem_app_receive_temp+15
+	arg mem_app_receive_temp+2,rega
+	arg mem_app_receive_temp+5,regb
+	rtn
+
+car_control_le_receive:
+	setarg 0
+	store 5,mem_le_receive_payload
+	store 5,mem_le_receive_payload+5
+	call le_app_receive_data
+	copy regb,contr
+	arg mem_le_receive_payload,contw
+	arg 10,loopcnt
+	call memcpy
+car_receive_cmd_select:
+	bpatch patch16_7,mem_patch16
+	ifetch 1,rega
+	beq CAR_CMD_OLD_CAR_CONTROL,car_drive_old
+	beq CAR_CMD_OLD_SPEED_CONTROL,car_speed_set_old
+	beq CAR_CMD_L_R_MOTOR_CONTROL,car_motor_control
+	beq CAR_CMD_F_B_MOTOR_CONTROL,car_motor_control
+	beq CAR_CMD_IR_CONTROL,car_ir_data_rx_from_app
+	beq CAR_CMD_LED_CONTROL,car_led_control_receive
+	beq CAR_CMD_DEVICE_INFO,car_info_request
+	rtn
+
+car_24g_receive_data:
+	call car_control_le_receive
+	fetch 1,mem_app_receive_temp+2	//cmd
+	beq CAR_CMD_L_R_MOTOR_CONTROL,car_24g_receive_data_next
+	beq CAR_CMD_F_B_MOTOR_CONTROL,car_24g_receive_data_next
+	rtn
+car_24g_receive_data_next:
+	fetch 1,mem_le_receive_payload	//moto1
+	ncall car_moto1_enable_blank_data_timer,blank
+	fetch 1,mem_le_receive_payload+2	//moto2
+	ncall car_moto2_enable_blank_data_timer,blank
+	fetch 1,mem_le_receive_payload+4	//moto3
+	ncall car_moto3_enable_blank_data_timer,blank
+	rtn
+
+car_moto1_enable_blank_data_timer:
+	jam 5,mem_car_moto1_blank_timer
+	rtn
+car_moto2_enable_blank_data_timer:
+	jam 5,mem_car_moto2_blank_timer
+	rtn
+car_moto3_enable_blank_data_timer:
+	jam 5,mem_car_moto3_blank_timer
+	rtn
+
+car_moto1_blank_data_timer:
+	arg mem_car_moto1_blank_timer,regc
+	arg car_moto1_blank_data,regb
+	branch timer_single_step
+car_moto2_blank_data_timer:	
+	arg mem_car_moto2_blank_timer,regc
+	arg car_moto2_blank_data,regb
+	branch timer_single_step
+car_moto3_blank_data_timer:		
+	arg mem_car_moto3_blank_timer,regc
+	arg car_moto3_blank_data,regb
+	branch timer_single_step
+
+car_moto1_blank_data:
+	jam 0,mem_le_receive_payload
+	branch car_motor_control
+car_moto2_blank_data:
+	jam 0,mem_le_receive_payload+2
+	branch car_motor_control
+car_moto3_blank_data:
+	jam 0,mem_le_receive_payload+4
+	branch car_motor_control
+	
+	
+///////////////////////Motor//////////////////////////////////////////
+
+car_drive_old:	
+	fetch 1,mem_le_receive_payload
+	store 1,mem_motor1_status
+	fetch 1,mem_le_receive_payload+1
+	store 1,mem_motor2_status
+	branch car_motor_control_common
+
+
+	
+car_left_right_control_old:
+	fetch 1,mem_le_receive_payload
+	store 1,mem_motor2_status
+	branch car_motor2_control
+car_front_back_control_old:
+	fetch 1,mem_motor1_speed
+	call car_reset_old_speed
+	fetch 1,mem_le_receive_payload+1
+	store 1,mem_motor1_status
+	branch car_motor1_control
+car_reset_old_speed:
+	beq SPEED_LEVEL_2,car_reset_old_speed2
+	beq SPEED_LEVEL_3,car_reset_old_speed3
+	store 1,mem_motor1_speed
+	rtn
+car_reset_old_speed2:
+	jam SPEED_LEVEL_5,mem_motor1_speed
+	rtn
+car_reset_old_speed3:
+	jam SPEED_LEVEL_10,mem_motor1_speed
+	rtn
+car_speed_set_old:
+	fetch 1,mem_le_receive_payload
+	call car_reset_old_speed
+	fetch 1,mem_motor1_speed
+	call car_motor_speed_duty_setting
+	call car_motor_speed_duty_transform
+	jam 0x00,mem_pdatatemp+1	//pwm channel0
+	branch pwm_duty_cycle_set
+
+car_motor_control:
+	fetch 1,mem_car_24g_go_die_flag
+	nrtn blank
+	fetch 6,mem_le_receive_payload
+	store 6,mem_motor1_status
+	fetch 1,mem_motor1_speed
+	fetcht 1,mem_motor2_speed
+	iand temp,pdata
+	fetcht 1,mem_motor3_speed
+	iand temp,pdata
+	call car_motor_working_flag,blank	
+car_motor_control_common:
+	bpatch patch17_0,mem_patch17
+	fetch 2,mem_ui_state_map
+	isolate1 UI_STATE_BLE_CONNECTED,pdata
+	ncall car_lpm_timer_enable,true
+	call car_motor1_control
+	call car_motor2_control
+	branch car_conn_led_state
+
+car_conn_led_state:
+	fetch 1,mem_motor1_status
+	fetcht 1,mem_motor2_status
+	iadd temp,pdata
+	nbranch check_51cmd_led_on,blank
+	branch check_51cmd_led_off	
+
+car_motor1_control:
+	arg mem_motor1_status,contr
+	branch car_motor1_status_select
+car_motor2_control:
+	arg mem_motor2_status,contr
+	branch car_motor2_status_select
+car_motor3_control:
+	arg mem_motor3_status,contr
+	branch car_motor_status_select
+car_motor_working_flag:
+	jam 0,mem_car_working_flag
+	rtn
+
+car_motor1_status_select:
+	ifetch 1,contr
+	beq TURN_FRONT,car_lr_motor_stop
+	beq TURN_LEFT,car_lr_motor_left
+	beq TURN_RIGHT,car_lr_motor_right
+	rtn
+car_motor2_status_select:
+	ifetch 1,contr
+	beq MOTOR_STOP,car_fb_motor_stop
+	beq GO_BACK,car_fb_motor_front
+	beq GO_FRONT,car_fb_motor_back
+	rtn
+
+car_lr_motor_stop:
+	fetcht 1,mem_car_motor_left_gpio
+	call gpio_out_inactive
+	fetcht 1,mem_car_motor_right_gpio
+	branch gpio_out_inactive
+car_lr_motor_left:
+	fetcht 1,mem_car_motor_left_gpio
+	call gpio_out_active
+	fetcht 1,mem_car_motor_right_gpio
+	branch gpio_out_inactive
+car_lr_motor_right:
+	fetcht 1,mem_car_motor_left_gpio
+	call gpio_out_inactive
+	fetcht 1,mem_car_motor_right_gpio
+	branch gpio_out_active
+car_fb_motor_stop:
+	fetcht 1,mem_car_motor_front_gpio
+	call gpio_out_inactive
+	fetcht 1,mem_car_motor_back_gpio
+	branch gpio_out_inactive
+car_fb_motor_front:
+	fetcht 1,mem_car_motor_front_gpio
+	call gpio_out_active
+	fetcht 1,mem_car_motor_back_gpio
+	branch gpio_out_inactive
+car_fb_motor_back:
+	fetcht 1,mem_car_motor_front_gpio
+	call gpio_out_inactive
+	fetcht 1,mem_car_motor_back_gpio
+	branch gpio_out_active
+
+	
+
+
+car_motor_status_select:
+	bpatch patch17_1,mem_patch17
+	ifetch 1,contr
+	beq MOTOR_STOP,car_motor_stop
+	beq GO_FRONT,car_motor_positive
+	beq GO_BACK,car_motor_negative
+	rtn
+car_motor_positive:
+	jam 0,mem_motor_select_p_n
+	branch car_motor_negative+1
+car_motor_negative:
+	jam 1,mem_motor_select_p_n
+	ifetch 1,contr
+	store 1,mem_car_motor_speed
+	ifetch 8,regb
+	branch car_motor_work
+
+car_motor_stop:
+	ifetch 1,regb
+	call pwm_disable
+	increase 1,regb
+	ifetch 1,regb
+	branch pwm_disable
+car_motor_work:
+	store 8,mem_motor_pwm_pin1_set
+	jam 1,mem_car_working_flag
+	fetch 1,mem_motor_select_p_n
+	beq 0,car_motor_select_positive
+car_motor_select_negative:
+	fetch 1,mem_motor_pwm_pin2_set
+	store 1,mem_motor_pwm_pin_set
+	fetch 1,mem_motor_pwm_pin1_set
+car_motor_work_next:
+	call pwm_disable
+	fetch 1,mem_car_motor_speed
+	call car_motor_speed_duty_setting
+	store 1,mem_motor_pwm_dute_set
+	fetch 6,mem_motor_pwm_pin_set
+	store 6,mem_pdatatemp
+	branch pwm_out_set
+car_motor_select_positive:
+	fetch 1,mem_motor_pwm_pin1_set
+	store 1,mem_motor_pwm_pin_set
+	fetch 1,mem_motor_pwm_pin2_set
+	branch car_motor_work_next
+
+car_motor_speed_duty_setting:
+	mul32 pdata,5,pdata
+	add pdata,50,pdata
+	rtn
+car_motor_speed_duty_transform:
+	arg 12000,temp
+	imul32 temp,pdata
+	div pdata,100
+	call wait_div_end
+	quotient temp
+	copy temp,rega
+	setarg 12000
+	isub temp,regb
+	rtn
+
+car_ir_data_rx_from_app:
+	rtn
+
+car_led_control_receive:
+	fetch 8,mem_le_receive_payload
+	store 8,mem_car_led_control
+	rtn
+
+car_info_request:
+	fetch 1,mem_car_config_device_select
+	store 1,mem_car_info_request_payload
+	fetch 1,mem_car_config_motor_layout
+	store 1,mem_car_info_request_payload+1
+	fetch 1,mem_car_config_ir_enable
+	store 1,mem_car_info_request_payload+2
+	arg 13,loopcnt
+	arg mem_car_info_request_head,contr
+	call calc_check_sum_start
+	store 1,mem_car_info_request_checksum
+	arg mem_car_info_request,rega
+	branch queue_push
+
+
+/************************************G24 CAR RX FUNC START**************************************/
+car_g24_init:
+	setarg 0
+	store 8,mem_24g_bind_payload
+	call g24_receive_init
+	branch g24_mode_switch_init
+
+car_g24_receive_process:
+	call car_g24_mode_switch
+	call car_g24_work_mode
+	call car_g24_bind_mode
+	branch car_g24_lpm_dipatch
+
+car_g24_mode_switch:
+	call g24_mode_switch_bind_work
+car_g24_bind_mode_enable:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_BIND
+	fetch 1,mem_car_24g_bind_enable_delay_count	//after power on 10s,enable bind
+	nbranch g24_switch_work_mode,blank
+	fetch 1,mem_car_24g_status	//after paired,disable bind mode
+	beq WORK_SEARCH,g24_switch_work_mode
+	rtn
+
+car_g24_work_mode:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_WORK
+	call g24_work_mode_start
+	branch car_g24_ch_polling_clear,user3
+car_g24_receive_ch_polling:
+	fetch 1,mem_car_enter_lpm_flag
+	rtn blank
+	fetch 1,mem_car_24g_ch_polling
+	increase 1,pdata
+	store 1,mem_car_24g_ch_polling
+	beq 4,car_g24_ch_polling_clear
+	call g24_ch
+	call g24_receive_packet_start
+	nbranch car_g24_receive_ch_polling,user3
+car_g24_ch_polling_clear:
+	jam 0,mem_car_24g_ch_polling
+	rtn
+
+car_g24_bind_mode:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_BIND
+	call g24_bind_init
+	call car_g24_bind_device_addr
+	call g24_bind_data_process
+	fetch 1,mem_24g_bind_device_status
+	nbranch car_g24_bind_mode_exit,blank
+	call g24_nodata_process
+	fetch 1,mem_24g_nodata_timer_enable
+	rtn blank
+	setarg 0
+	store 4,mem_24g_device1_addr
+	rtn
+
+car_g24_bind_mode_exit:
+	jam 0,mem_24g_mode_switch
+	arg 0,rega
+	call ui_led_off_global
+	call g24_switch_work_mode
+	call g24_timer_init
+	fetch 4,mem_lap
+	branch g24_update_addr_and_synccrc8
+	
+car_g24_bind_device_addr:
+	fetch 4,mem_24g_device1_addr
+	rtn blank
+	branch g24_update_addr_and_synccrc8
+
+car_g24_cb_data_device1:
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	fetch 2,mem_car_24g_no_data_timeout_count
+	store 2,mem_car_24g_no_data_timeout_timer
+	jam WORK_PAIRED,mem_car_24g_received_pac
+	arg mem_24g_rxdata_temp+3,rega
+	branch car_24g_receive_data
+
+car_g24_lpm_dipatch:
+	fetch 1,mem_car_enter_lpm_flag
+	rtn blank
+	call car_g24_lpm_wait
+	nrtn user
+	fetch 3,mem_24g_enter_hibernate	//about 1000ms
+	call clk2lpo
+	storet 4,mem_sleep_counter
+  	branch lpm_sleep
+car_g24_lpm_wait:
+	enable user
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch disable_user,blank
+	branch car_le_process_lpm_before
+
+endif
+
+
+
Index: program/app_dongle.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_dongle.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_dongle.prog	(working copy)
@@ -0,0 +1,526 @@
+ifdef COMPILE_DONGLE
+
+dongle_init:
+	setarg dongle_dispatch
+	store 2,mem_cb_24g_receive_process
+	setarg dongle_g24_mouse
+	store 2,mem_cb_24g_data_device1
+	setarg dongle_g24_kb
+	store 2,mem_cb_24g_data_device2
+	setarg dongle_ackpayload_prep
+	store 2,mem_cb_24g_ackpayload
+	setarg dongle_usb_config
+	store 2,mem_cb_usb_config
+	branch usb_init
+
+
+dongle_default_init:
+	//sys init
+	call dongle_read_kb_bind_status
+	call dongle_xtal_select
+	fetch 1,mem_dg_sys_config
+	isolate1 DG_ENABLE_EEPROM,pdata
+	branch dongle_default_no_eeprom,true
+	fetch 1,mem_dg_sys_config
+	isolate1 DG_ENABLE_NEW_CHMAP,pdata
+	call g24_chamap_param_update,true
+dongle_default_no_eeprom:	
+	fetch 1,mem_dg_sys_config
+	and_into 0x0f,pdata	//bit4-0
+	store 1,mem_tx_power
+	//24g init
+	jam 0xff,mem_rssi_buff_index
+	setarg mem_dg_rssi_noise_buffer
+	store 2,mem_rssi_noise_buffer_ptr
+	setarg mem_dg_rssi_noise_dg_buffer
+	store 2,mem_rssi_noise_self_buffer_ptr
+	setarg mem_dg_rssi_noise_ms_buffer
+	store 2,mem_rssi_noise_device1_buffer_ptr
+	setarg mem_dg_rssi_noise_kb_buffer
+	store 2,mem_rssi_noise_device2_buffer_ptr
+	jam TX_POWER_F5DB,mem_24g_pair_tx_power
+	jam 0,mem_dg_kb_bind_success
+	jam 0,mem_24g_bind_device_living
+	call g24_enable_1M
+	call g24_receive_init
+	call g24_pair_param_init
+	call g24_chmap_param_init
+	//usb init
+	fetch 1,mem_dg_usb_tx_interval
+	store 1,mem_usb_tx_interval
+	fetch 9,mem_dg_usb_vid_pid
+	store 9,mem_usb_vid_pid
+	rtn
+	
+dongle_xtal_select:
+	jam XTAL_24M,mem_fcomp_div
+	fetch 1,mem_dg_sys_config
+	rtnbit0 DG_ENABLE_XTAL_24M
+	jam XTAL_16M,mem_fcomp_div
+	rtn
+
+dongle_dispatch:
+	fetch 1,mem_24g_pair_mode
+	beq 0x00,dongle_auto_bind
+	beq 0x01,dongle_pc_bind
+//	beq 0x0f,dongle_all_powerful
+	rtn
+
+
+dongle_read_kb_bind_status:
+	setarg DONGLE_KB_BIND_EFUSE_OFFECT
+	arg mem_dg_kb_bind_flag,rega
+	arg 1,temp
+	branch otpd_read_data
+
+dongle_write_kb_bind_status:
+	arg 1,loopcnt
+	arg mem_dg_kb_bind_flag,rega
+	arg DONGLE_KB_BIND_EFUSE_OFFECT,temp
+	branch otp_write
+
+dongle_usb_config:
+	fetch 1,mem_dg_sys_config
+	bbit1 DG_ENABLE_KB_ICON,dongle_usb_config_kb
+	fetch 1,mem_dg_kb_bind_flag
+	bne DONGLE_KB_BIND_SUCCESS,dongle_usb_config_param
+dongle_usb_config_kb:
+	jam DONGLE_KB_BIND_SUCCESS,mem_dg_kb_bind_flag
+	fetch 4,USB_DEVICEDATA_ADDR+9
+	set1 29,pdata
+	store 4,mem_devicedesc+9
+dongle_usb_config_param:
+	call dongle_usb_device_name
+	call usb_tx_interval_config
+	call dongle_usb_vid_pid_config
+	branch dongle_usb_hid_icon_config
+
+dongle_usb_vid_pid_config:
+	fetch 1,mem_usb_vid_pid
+	rtn blank
+	fetch 1,mem_dg_kb_bind_flag
+	beq DONGLE_KB_BIND_SUCCESS,dongle_usb_vid_pid_for_suit
+dongle_usb_vid_pid_for_mouse_only_auto_pair:	
+	fetch 4,mem_usb_vid_pid+1
+dongle_usb_vid_pid_store:	
+	store 4,mem_devicedesc+9
+	rtn
+dongle_usb_vid_pid_for_suit:
+	fetch 4,mem_usb_vid_pid+5
+	branch dongle_usb_vid_pid_store
+
+dongle_usb_hid_icon_config:
+	fetch 1,mem_dg_kb_bind_flag
+	beq DONGLE_KB_BIND_SUCCESS,dongle_usb_kb_hidreportdesc
+	setarg USB_KBDATA_VENDOR_DEFINE_ADDR
+	store 2,mem_hidreportdesc_kb
+	jam 0x1a,mem_confdesc+26//hid_descriptor--keyboard length
+	rtn
+dongle_usb_kb_hidreportdesc:
+	setarg USB_KBDATA_ADDR
+	store 2,mem_hidreportdesc_kb
+	jam 0x3f,mem_confdesc+26//hid_descriptor--keyboard length	
+	rtn
+
+dongle_usb_device_name:
+	fetch 1,mem_dg_usb_device_name
+	rtn blank
+	arg mem_dg_usb_device_name,contr
+	arg mem_string2,contw
+	arg 30,loopcnt
+	branch memcpy
+
+
+//dongle_all_powerful:
+//	call g24_switch_work_mode
+//dongle_all_powerful_loop:
+//	call dongle_work_mode_auto
+//	call dongle_usb_dispatch
+//	branch dongle_all_powerful_loop
+
+dongle_pc_bind:
+	call g24_switch_work_mode
+dongle_pc_bind_loop:	
+	call dongle_work_mode_auto
+	call g24_bind_mode_auto
+	call dongle_usb_dispatch
+	branch dongle_pc_bind_loop
+
+dongle_g24_blank_data_process:
+	call dongle_g24_ms_blank_data
+	call dongle_g24_kb_blank_data
+	branch dongle_g24_kb_mul_blank_data
+
+dongle_g24_ms_blank_data:
+	fetch 1,mem_dg_ms_blank_data_enable
+	rtn blank
+	arg TIMER_MS_BLANK,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_dg_ms_blank_data_enable
+	setarg MS_REPORT_ID
+	store 1,mem_usb_mouse_data
+	setarg 0
+	istore 7,contw
+dongle_usb_tx_ms_data:
+	jam USB_EP2_MS,mem_usb_ep2_data
+dongle_usb_tx_enable_ep2:
+	fetch 1,mem_usb_tx_enable
+	set1 2,pdata
+	store 1,mem_usb_tx_enable
+	rtn
+
+dongle_g24_kb_blank_data:
+	fetch 1,mem_dg_kb_blank_data_enable
+	rtn blank
+	arg TIMER_KB_BLANK,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_dg_kb_blank_data_enable
+	arg mem_usb_kb_data,contw
+	arg 2,loopcnt
+	call memset0
+dongle_usb_tx_kb_data:	
+	jam KB_NORMAL_REPORT_ID,mem_usb_kb_data
+dongle_usb_tx_enable_ep1:
+	jam USB_EP1_KB,mem_usb_ep1_data
+	fetch 1,mem_usb_tx_enable
+	set1 1,pdata
+	store 1,mem_usb_tx_enable
+	rtn
+
+dongle_g24_kb_mul_blank_data:
+	fetch 1,mem_dg_kb_mul_blank_data_enable
+	rtn blank
+	arg TIMER_KB_MUL_BLANK,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_dg_kb_mul_blank_data_enable
+	arg mem_usb_kb_multikey,contw
+	arg 2,loopcnt
+	call memset0
+	jam KB_MULTIKEY_REPORT_ID,mem_usb_kb_multikey
+dongle_usb_tx_multikey_data:
+	jam USB_EP2_MULTIKEY,mem_usb_ep2_data
+	branch dongle_usb_tx_enable_ep2
+
+dongle_usb_dispatch:
+	bpatch patch17_2,mem_patch17
+	fetch 1,mem_usb_remote_wakeup
+	call dongle_clear_pc_sleep_flag,blank
+	call usb_isr
+	fetch 1,mem_usb0_get_set_report
+	rtn blank
+	jam 0,mem_usb0_get_set_report
+	fetch 2,mem_usb_setup_bValue_temp
+	arg PC_SET_REPORT,temp
+	isub temp,null
+	nrtn zero
+	//get usb host command
+	fetch 1,mem_usb0_set_report_data
+	rtnne PC_REPORT_ID
+	fetch 1,mem_usb0_set_report_data+1
+	beq COMMAND_MODE,dongle_dispose_cmd_mode
+	beq COMMAND_BIND,dongle_dispose_cmd_bind
+	beq COMMAND_CURRENT_PROJECT,dongle_dispose_cmd_current_project
+	beq COMMAND_CURRENT_MODE,dongle_dispose_cmd_current_mode
+	beq COMMAND_CURRENT_FW_VERSION,dongle_dispose_cmd_current_fw_version
+//	beq COMMAND_USER_DEFINED,dongle_dispose_cmd_user_defined
+dongle_usb0_data_ready_report_set0:
+	jam 0,mem_usb0_data_ready_report
+	rtn
+
+dongle_dispose_cmd_mode:
+	fetch 1,mem_usb0_set_report_data+2
+	beq COM_MODE_BIND,dongle_enter_bind_mode
+	branch dongle_usb0_data_ready_report_set0
+dongle_enter_bind_mode:
+	call g24_bind_mode_enable
+dongle_usb0_data_ready_report_set1:
+	jam 1,mem_usb0_data_ready_report
+	rtn
+
+dongle_dispose_cmd_bind:
+	fetch 1,mem_usb0_set_report_data+2
+	beq COM_BIND_GET,dongle_dispose_cmd_get_bind
+	beq COM_BIND_EXIT,dongle_dispose_cmd_exit_bind
+	beq COM_READ_MODE,dongle_dispose_cmd_read_mode
+	branch dongle_usb0_data_ready_report_set0
+dongle_dispose_cmd_get_bind:
+	fetch 1,mem_24g_bind_device_status
+	store 1,mem_usb0_get_report_data+1
+	branch dongle_usb0_data_ready_report_set1
+dongle_dispose_cmd_exit_bind:
+	call g24_work_mode_enable
+	branch dongle_dispose_cmd_get_bind
+dongle_dispose_cmd_read_mode:
+dongle_dispose_in_bind_mode:
+	jam COMMAND_BIND,mem_usb0_get_report_data+1
+	branch dongle_usb0_data_ready_report_set1	
+
+dongle_dispose_cmd_current_project:
+	jam PRODUCT_ID,mem_usb0_get_report_data+1
+	branch dongle_usb0_data_ready_report_set1
+
+dongle_dispose_cmd_current_mode:
+	fetch 1,mem_24g_work_mode
+	beq DONGLE_WORK,dongle_dispose_in_work_mode
+	beq DONGLE_BIND,dongle_dispose_in_bind_mode
+	rtn
+dongle_dispose_in_work_mode:
+	jam COMMAND_MODE,mem_usb0_get_report_data+1
+	branch dongle_usb0_data_ready_report_set1
+	
+dongle_dispose_cmd_current_fw_version:
+	jam FW_VERSION0,mem_usb0_get_report_data+1
+	jam FW_VERSION1,mem_usb0_get_report_data+2
+	jam FW_VERSION2,mem_usb0_get_report_data+3
+	jam FW_VERSION3,mem_usb0_get_report_data+4
+	branch dongle_usb0_data_ready_report_set1
+
+//dongle_dispose_cmd_user_defined:
+//	call g24_ackpayload_disable
+//	fetch 1,mem_usb0_set_report_data+2
+//	beq 0xff,soft_reset_chip
+//	rtn
+
+dongle_auto_bind:
+	call g24_mode_switch_init
+dongle_auto_bind_loop:
+	call g24_mode_switch_bind_work
+	call g24_mode_switch_bind_search
+	call dongle_work_mode_auto
+	call g24_bind_mode_auto
+	call g24_search_mode_auto
+	call dongle_usb_dispatch
+	branch dongle_auto_bind_loop
+
+dongle_work_mode_auto:
+	bpatch patch17_3,mem_patch17
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_WORK
+	call g24_work_mode_start
+	call dongle_g24_blank_data_process
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	branch g24_nodata_process
+
+dongle_ackpayload_prep:
+	fetch 1,mem_24g_data_type
+	beq DATATYPE_DEVICE1,dongle_ackpayload_prep_mouse
+	beq DATATYPE_DEVICE2,dongle_ackpayload_prep_keyboard
+dongle_ackpayload_prep_mouse:
+	fetch 1,mem_dg_pc_sleep_flag
+	bbit1 0,dongle_pc_sleep_ackpayload_prep_mouse
+	branch dongle_ackpayload_prep_end
+
+dongle_set_pc_sleep_flag:
+	fetch 1,mem_device_option
+	rtnne dvc_op_dongle
+	jam 3,mem_dg_pc_sleep_flag
+	rtn
+dongle_clear_pc_sleep_flag:
+	jam 0,mem_dg_pc_sleep_flag
+	rtn
+
+dongle_ackpayload_prep_keyboard:
+	fetch 1,mem_dg_pc_sleep_flag
+	bbit1 1,dongle_pc_sleep_ackpayload_prep_keyboard
+dongle_ackpayload_prep_end:
+	fetch 1,mem_24g_ackpayload_enable
+	beq BIND_ACKPAYLOAD,dongle_g24_bind_ackpayload_prep
+	beq KB_LED_ACKPAYLOAD,dongle_g24_kb_led_ackpayload_prep
+	rtn
+
+dongle_pc_sleep_ackpayload_prep_mouse:
+	fetch 1,mem_dg_pc_sleep_flag
+	set0 0,pdata
+	store 1,mem_dg_pc_sleep_flag
+	branch dongle_pc_sleep_ackpayload_prep
+
+dongle_pc_sleep_ackpayload_prep_keyboard:
+	fetch 1,mem_dg_pc_sleep_flag
+	set0 1,pdata
+	store 1,mem_dg_pc_sleep_flag
+dongle_pc_sleep_ackpayload_prep:
+	jam 0x01,mem_24g_datalen
+	setarg 0xff
+	store 1,mem_24g_txbuf
+	rtn
+
+
+dongle_g24_bind_ackpayload_prep:
+	jam 1,mem_24g_ackpayload_enable
+	call g24_binding_device_check	//works on auto pair only
+	nrtn user3
+	branch g24_bind_ackpayload_prep
+
+dongle_g24_kb_led_ackpayload_prep:
+	fetch 1,mem_24g_rxbuf+2
+	beq DATATYPE_DEVICE1,dongle_g24_bind_ackpayload_prep
+	beq DATATYPE_ATTEMP,dongle_g24_bind_ackpayload_prep
+	jam 0,mem_usb_tx_win_enable
+	jam 0x01,mem_24g_datalen
+	fetch 1,mem_24g_led_status
+	store 1,mem_24g_txbuf
+	rtn
+
+dongle_g24_mouse:
+	setarg MS_REPORT_ID
+	store 1,mem_usb_mouse_data	//report id
+	fetch 7,mem_24g_rxdata_temp+3	//key
+	istore 7,contw
+	fetch 1,mem_24g_rxdata_temp+3	//key
+	ncall dongle_g24_ms_enable_blank_data_forcibly,blank//get kb data
+	fetch 1,mem_24g_rxdata_temp+3	//key
+	call dongle_g24_ms_disable_blank_data_forcibly,blank
+	branch dongle_usb_tx_ms_data
+
+dongle_g24_ms_enable_blank_data_forcibly:
+	jam 1,mem_dg_ms_blank_data_enable
+	setarg TIMER_MS_BLANK_DELAY
+	arg TIMER_MS_BLANK,queue
+	branch timer_init
+
+dongle_g24_ms_disable_blank_data_forcibly:
+	jam 0,mem_dg_ms_blank_data_enable
+	setarg 0
+	arg TIMER_MS_BLANK,queue
+	branch timer_init
+
+dongle_g24_kb:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq 0,dongle_g24_kb_type0	//normal key
+	beq 2,dongle_g24_kb_type2	//system key
+	beq 3,dongle_g24_kb_type3	//multikey
+	branch g24_rx_interrupt_clear
+
+dongle_g24_kb_type0:
+	fetch 1,mem_24g_rxdata_temp+5
+	store 1,mem_24g_ackpayload_enable
+	jam 0,mem_24g_rxdata_temp+5
+	arg mem_usb_kb_data,contw
+	arg mem_24g_rxdata_temp+4,contr
+	arg 8,loopcnt
+	call memcpy
+	fetch 8,mem_usb_kb_data
+	ncall dongle_g24_kb_enable_blank_data_forcibly,blank//get kb data
+	fetch 8,mem_usb_kb_data	
+	call dongle_g24_kb_disable_blank_data_forcibly,blank
+	fetch 8,mem_usb_kb_data
+	store 8,mem_dg_kb_data_sta_data
+	fetcht 8,mem_dg_kb_data_last_data
+	isub temp,null
+	ncall dongle_usb_tx_enable_ep1,zero
+	fetch 8,mem_dg_kb_data_sta_data
+	store 8,mem_dg_kb_data_last_data
+	branch g24_rx_interrupt_clear
+
+dongle_g24_kb_enable_blank_data_forcibly:
+	jam 1,mem_dg_kb_blank_data_enable
+	setarg TIMER_KB_BLANK_DELAY
+	arg TIMER_KB_BLANK,queue
+	branch timer_init
+
+dongle_g24_kb_disable_blank_data_forcibly:
+	jam 0,mem_dg_kb_blank_data_enable
+	setarg 0
+	arg TIMER_KB_BLANK,queue
+	branch timer_init
+
+dongle_g24_kb_type3:
+	arg mem_usb_kb_multikey,contw
+	arg mem_24g_rxdata_temp+3,contr
+	arg 3,loopcnt
+	call memcpy
+	fetch 2,mem_usb_kb_multikey+1
+	ncall dongle_g24_kb_mul_enable_blank_data_forcibly,blank//get multikey data
+	fetch 2,mem_usb_kb_multikey+1
+	call dongle_g24_kb_mul_disable_blank_data_forcibly,blank
+	fetch 3,mem_usb_kb_multikey
+	store 3,mem_dg_kb_multikey_sta_data
+	fetcht 3,mem_dg_kb_multikey_last_data
+	isub temp,null
+	ncall dongle_usb_tx_multikey_data,zero
+	fetch 3,mem_dg_kb_multikey_sta_data
+	store 3,mem_dg_kb_multikey_last_data
+	branch g24_rx_interrupt_clear
+
+dongle_g24_kb_mul_enable_blank_data_forcibly:
+	jam 1,mem_dg_kb_mul_blank_data_enable
+	setarg TIMER_KB_MUL_BLANK_DELAY
+	arg TIMER_KB_MUL_BLANK,queue
+	branch timer_init
+	
+dongle_g24_kb_mul_disable_blank_data_forcibly:
+	jam 0,mem_dg_kb_mul_blank_data_enable
+	setarg 0
+	arg TIMER_KB_MUL_BLANK,queue
+	branch timer_init
+
+dongle_g24_kb_type2:
+	arg mem_usb_kb_system,contw
+	arg mem_24g_rxdata_temp+3,contr
+	arg 2,loopcnt
+	call memcpy
+	fetch 2,mem_usb_kb_system
+	ncall dongle_g24_kb_sys_enable_blank_data_forcibly,blank
+	fetch 2,mem_usb_kb_system
+	call dongle_g24_kb_sys_disable_blank_data_forcibly,blank
+	fetch 2,mem_usb_kb_system
+	store 2,mem_dg_kb_system_sta_data
+	fetcht 2,mem_dg_kb_system_last_data
+	isub temp,null
+	ncall dongle_usb_tx_sys_data,zero
+	fetch 2,mem_dg_kb_system_sta_data
+	store 2,mem_dg_kb_system_last_data
+	branch g24_rx_interrupt_clear
+
+dongle_g24_kb_sys_enable_blank_data_forcibly:
+	jam 1,mem_dg_kb_mul_blank_data_enable
+	setarg TIMER_KB_MUL_BLANK_DELAY
+	arg TIMER_KB_MUL_BLANK,queue
+	branch timer_init
+dongle_g24_kb_sys_disable_blank_data_forcibly:
+	jam 0,mem_dg_kb_mul_blank_data_enable
+	setarg 0
+	arg TIMER_KB_MUL_BLANK,queue
+	branch timer_init
+
+dongle_usb_tx_sys_data:
+	jam USB_EP2_SYSTEMKEY,mem_usb_ep2_data
+	branch dongle_usb_tx_enable_ep2
+
+
+dongle_g24_store_dvc2_bind_flag:
+	fetch 1,mem_device_option
+	rtnne dvc_op_dongle
+	fetch 1,mem_dg_kb_bind_flag
+	rtneq DONGLE_KB_BIND_SUCCESS
+dongle_prep_soft_reset:
+	jam 1,mem_dg_kb_bind_success
+	rtn
+
+
+dongle_kb_bind_soft_reset:
+	fetch 1,mem_device_option
+	rtnne dvc_op_dongle
+	fetch 1,mem_dg_kb_bind_success
+	rtn blank
+	jam 0,mem_temp
+dongle_wirte_efuse_bind_status:	
+	jam DONGLE_KB_BIND_SUCCESS,mem_dg_kb_bind_flag
+	call dongle_write_kb_bind_status
+	call dongle_read_kb_bind_status
+	fetch 1,mem_temp
+	increase 1,pdata
+	store 1,mem_temp
+	beq 0xff,soft_reset_chip
+	fetch 1,mem_dg_kb_bind_flag
+	bne DONGLE_KB_BIND_SUCCESS,dongle_wirte_efuse_bind_status
+	branch soft_reset_chip
+
+
+endif
+
+
Index: program/app_module.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_module.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_module.prog	(working copy)
@@ -0,0 +1,1791 @@
+
+ifdef COMPILE_MODULE
+
+module_init:	
+	rtn wake
+	call le_modified_name
+	setarg module_process_idle
+	store 2,mem_cb_idle_process
+	setarg module_bt_conn_process
+	store 2,mem_cb_bt_process
+	setarg module_process_bb_event
+	store 2,mem_cb_bb_event_process
+	setarg module_lpm_lock
+	store 2,mem_cb_check_wakelock
+	setarg module_hci_cmd_transmit_le_notify
+	store 2,mem_cb_ble_transmit
+	setarg module_hci_event_receive_spp_data
+	store 2,mem_cb_receive_spp_data
+	setarg module_le_receive_data
+	store 2,mem_cb_att_write
+	setarg module_bb_event_timer
+	store 2,mem_cb_event_timer
+
+ifdef COMPILE_WECHAT
+	setarg module_wechat_rx_push_data
+	store 2,mem_module_wechat_rx_push_data_cb
+endif
+	call module_spp_clear_last_transmite_clock
+	bpatch patch17_4,mem_patch17
+	call module_lpm_uart_init
+	call module_gpio_init
+	branch module_hci_event_enter_standby_mode
+
+/*
+	function name:uart init by mem
+	input:
+		mem_module_uart_rx_buffer、mem_module_uart_rx_buffer_end
+		mem_module_uart_tx_buffer、mem_module_uart_tx_buffer_end
+		mem_module_uarta_baud_rate
+		bit0 of mem_module_flag
+*/
+module_lpm_uart_init:
+	fetch 1,core_uart_ctrl
+	set0 BIT_UART_CONTROL_ENABLE,pdata
+	store 1,core_uart_ctrl
+	fetch 8,mem_module_uart_rx_buffer
+	call uarta_init_dma_mem
+	fetch uart_baud_len,mem_module_uarta_baud_rate
+	call uarta_init_baud_rate
+	call uart_clock_select_main_freq_crystal
+	jam gpcfg_uart_txd,core_gpio_conf+HCI_UART_TX_GPIO_NUM
+	jam gpcfg_uart_rxd|gpcfg_pullup,core_gpio_conf+HCI_UART_RX_GPIO_NUM
+	jam gpcfg_uart_rts,core_gpio_conf+HCI_UART_RTS_GPIO_NUM
+	jam gpcfg_uart_cts,core_gpio_conf+HCI_UART_CTS_GPIO_NUM
+
+	arg FUN_UART_CONTROL_ENABLE|FUN_UART_CONTROL_SETTING_RATE_BAUD,temp
+	fetch 2,mem_module_flag
+	isolate1 MODULE_FLAG_UART_FLOW_CONTROL,pdata
+	setflag true,BIT_UART_CONTROL_FLOW_CONTROL,temp
+	storet 1,core_uart_ctrl
+	rtn
+
+/*
+	function:init uart & spp clock by lpm wake
+*/
+module_lpm_init:
+	call module_spp_clear_last_transmite_clock
+	branch module_lpm_uart_init
+
+
+
+/*
+	function name:module_gpio_init
+	init connect state & lpm wake up
+*/
+module_gpio_init:
+	fetcht 1,mem_module_connect_state_gpio
+	call gpio_config_output
+	call module_set_conn_pin_low
+	fetcht 1,mem_module_wake_up_gpio
+	branch gpio_config_input
+
+module_lpm_lock:
+	fetcht 1,mem_module_wake_up_gpio
+	call gpio_get_bit
+	nbranch app_put_lpm_wake_lock,true
+	branch app_get_lpm_wake_lock
+
+
+/*
+	function name:BT connect process callback
+	check sniff timer & check uart Tx buffer from SPP Credit
+*/
+module_bt_conn_process:
+	call module_spp_enter_sniff
+	branch module_control_air_flow
+
+module_spp_enter_sniff:
+	fetch 1,mem_ui_state_map
+	bbit0 UI_STATE_BT_SPP_CONN,module_spp_clear_last_transmite_clock
+	setarg 0x3eff
+	fetcht 4,mem_last_transmite_clock
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_SNIFF,module_spp_clear_last_transmite_clock
+	fetch 2,mem_module_flag
+	rtnbit1 MOUDLE_TASK_SNIFF
+	call module_set_sniff_task_flag
+	call app_bt_enter_sniff
+module_spp_clear_last_transmite_clock:
+	copy clkn_bt,pdata
+	store 4,mem_last_transmite_clock
+	rtn
+
+/*
+	function name:chip idle process callback
+	check uart Tx buffer from SPP Credit&check l2cap fifo&check uart rx data
+*/
+module_process_idle:
+	call module_control_air_flow
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	branch module_process_check_hci_command_complete
+
+	
+module_process_bb_event:
+	copy regc,pdata
+	beq BT_EVT_BB_CONNECTED,module_process_bb_conn
+	beq BT_EVT_BB_DISCONNECTED,module_process_bb_event_disconned
+	beq BT_EVT_RECONN_FAILED,module_process_reconn_fail
+	beq BT_EVT_SETUP_COMPLETE,module_process_setup_complete
+	beq BT_EVT_SPP_CONNECTED,module_process_spp_connected
+	beq BT_EVT_SPP_DISCONNECTED,module_process_spp_disconnected
+	beq BT_EVT_PINCODE_REQ,module_process_evt_pincode_req
+	beq BT_EVT_ENTER_SNIFF,module_process_enter_sniff
+	beq BT_EVT_EXIT_SNIFF,module_process_exit_sniff
+	beq BT_EVT_RECONN_PAGE_TIMEOUT,module_process_page_time_out
+	beq BT_EVT_LE_CONNECTED,module_process_le_conn
+	beq BT_EVT_LE_DISCONNECTED,module_process_bb_even_le_disconn
+	beq BT_EVT_SNIFF_NOT_ACCEPT,module_process_sniff_not_accept
+	beq BT_EVT_UNSNIFF_ACCEPT,module_process_unsniff_accept
+	beq BT_EVT_UNSNIFF_NOT_ACCEPT,module_process_unsniff_not_accept
+	beq BT_EVT_LE_PAIRING_FAIL,module_hci_event_le_pairing_fail
+	beq BT_EVT_LE_PAIRING_SUCCESS,module_hci_event_le_pairing_success
+	beq BT_EVT_LE_START_ENC,module_hci_event_start_enc
+	beq BT_EVT_LE_PAUSE_ENC,module_hci_event_pause_enc
+	beq BT_EVT_LE_TK_GENERATE,module_hci_event_le_tk
+	beq BT_EVT_BT_GKEY_GENERATE,module_hci_event_gkey_generate
+	beq BT_EVT_BT_GET_PASSKEY,module_hci_event_passkey_entry_mode
+	beq BT_EVT_BT_PAIRING_FAIL,module_hci_event_bt_pairing_fail	
+	beq BT_EVT_BT_PAIRING_SUCCESS,module_hci_event_bt_pairing_success
+ifdef SECURE_CONNECTION	
+	beq BT_EVT_LE_GKEY_GENERATE,module_hci_event_gkey_generate
+endif
+	beq BT_EVT_STORE_NVRAM,module_hci_event_store_device
+	beq BT_EVT_LE_LTK_LOST,module_process_ble_ltk_lost
+	beq BT_EVT_LE_UPDATE_PHY,module_process_ble_update_phy
+	beq BT_EVT_LE_GET_PASSKEY,module_hci_event_passkey_entry_mode
+	rtn
+
+	
+module_process_bb_event_disconned:
+	call module_spp_clear_last_transmite_clock
+	fetch 1,mem_flag_pairing_state
+	ncall module_hci_event_bt_pairing_fail,blank
+	call module_disconn_start
+	fetch 2,mem_ui_state_map
+	rtnbit0 UI_STATE_BT_SPP_CONN
+	branch  module_spp_disconnected
+
+module_process_spp_connected:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_SPP_CONN,pdata
+	store 2,mem_ui_state_map
+	fetch 1,mem_module_spp_lpm_mult
+	store 1,mem_lpm_mult
+	call module_set_conn_pin_low
+	branch module_hci_event_spp_connect
+
+module_process_spp_disconnected:
+//	branch module_spp_disconnected
+module_spp_disconnected:
+	fetch 2,mem_ui_state_map
+	rtnbit0 UI_STATE_BT_SPP_CONN
+	set0 UI_STATE_BT_SPP_CONN ,pdata
+	store 2,mem_ui_state_map
+	branch module_hci_event_spp_disconnect
+
+
+module_process_enter_sniff:
+
+module_sniff_param_check:
+	call module_spp_clear_last_transmite_clock
+	//fetch 1,mem_context
+	//rtnbit0 state_insniff
+	fetch 2,mem_context+coffset_tsniff
+	rshift pdata,pdata
+	fetcht 2,mem_sniff_param_interval
+	isub temp,null
+	nbranch module_sniff_param_check_unsniff,zero
+	branch app_lpm_mult_enable
+module_sniff_param_check_unsniff:
+	fetch 2,mem_module_flag
+	rtnbit1 MOUDLE_TASK_UNSNIFF
+	fetch 2,core_uart_rxitems    //*
+	ncall module_set_unsniff_task_flag,blank    //*加这两句话
+	branch app_bt_sniff_exit
+
+module_process_exit_sniff:
+	call module_clear_sniff_task_flag
+	branch app_lpm_mult_disable
+ 	
+module_process_setup_complete:
+	call module_spp_clear_last_transmite_clock
+	branch module_conn_start
+	
+module_process_bb_even_le_disconn:
+	call le_clr_config_more_data
+	jam 0,mem_module_hci_notify_len
+	call module_disconn_start
+	branch module_hci_event_le_disconnect
+
+module_process_evt_pincode_req:
+	branch  app_bt_set_pincode
+	
+
+module_process_sniff_not_accept:
+	branch module_clear_sniff_task_flag
+
+
+module_process_unsniff_accept:
+	fetch 2,mem_module_flag
+	bbit0 MOUDLE_TASK_UNSNIFF,app_bt_enter_sniff
+	branch module_clear_unsniff_task_flag
+
+	
+module_process_unsniff_not_accept:
+	branch module_clear_unsniff_task_flag
+
+	
+module_process_le_conn:
+//	call le_send_att_exchange_mtu_requset
+	call module_conn_start
+	fetch 1,mem_module_le_lpm_mult
+	store 1,mem_lpm_mult
+	branch module_hci_event_le_connect
+
+
+module_process_bb_conn:
+	jam 0,mem_flag_mode_ssp_pin
+	call module_clear_sniff_task_flag
+	branch module_clear_unsniff_task_flag
+
+module_process_page_time_out:
+module_process_reconn_fail:
+module_disconn_start:
+	call module_start_adv_discovery_by_command
+	branch module_set_conn_pin_high
+
+
+module_process_ble_ltk_lost:
+	call le_send_reject_ind
+	branch le_send_smp_security_request
+
+module_process_ble_update_phy:
+	branch module_hci_event_le_update_phy
+
+
+module_set_conn_pin_high:
+	fetcht 1,mem_module_connect_state_gpio
+	branch gpio_out_active
+
+module_conn_start:
+	call module_stop_adv_discovery
+	branch module_set_conn_pin_low
+	
+module_stop_adv_discovery:
+	fetch 1,mem_module_state
+	isolate1 MOUDLE_STATE_BT_BIT,pdata
+	call app_bt_stop_discovery,true
+	fetch 1,mem_module_state
+	isolate1 MOUDLE_STATE_BLE_BIT,pdata
+	call app_ble_stop_adv,true
+	rtn
+module_set_conn_pin_low:
+	fetcht 1,mem_module_connect_state_gpio
+	branch gpio_out_inactive
+
+module_process_with_credit:
+	fetch 1,mem_rfcomm_credit_flag
+	rtneq CREDIT_DISABLE
+	branch rfcomm_send_uih_without_payload
+
+/*
+	function name:check hci command complete
+	hci command format:
+	typedef struct HciFormat
+	{
+		uint8_t HciType;
+		uint8_t HciOpcode;
+		uint8_t HciPayloadLen;
+		uint8_t HciPayload[HciPayloadLen];
+	}
+*/
+module_process_check_hci_command_complete:
+	fetch 1,core_uart_status
+	bbit1 UART_STATUS_RX_FIFO_EMPTY,module_process_with_credit  //rx no data
+	call uarta_prepare_rx
+	ifetch 1,contru
+	bne 0x01,module_hci_in_excp	//HciType != 0x01
+	fetch 2,core_uart_rxitems
+	sub pdata,2,null
+	rtn positive
+	ifetch 1,contru
+	store 1,mem_module_uart_opcode
+	ifetcht 1,contru
+	copy contru,rega
+	storet 1,mem_module_uart_len
+	add temp,3,temp
+	fetch 2,core_uart_rxitems
+	isub temp,temp
+	nrtn positive
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	call module_hci_cmd_control
+	fetch 1,mem_module_temp_nl_discard_packet
+	rtneq HCI_NOT_DISCARD_PACKET
+	branch module_hci_dicard_packet //discard this packet
+
+module_hci_in_excp:
+	call delay_10ms
+	call module_hci_event_invalid_packet
+	branch module_hci_release_except
+
+
+module_hci_release_except:
+	bpatch patch17_5,mem_patch17
+	call uarta_prepare_rx
+	fetch 2,core_uart_rxitems
+	rtn blank
+	iadd contru,contru
+	branch module_hci_dicard_bytes
+
+module_hci_dicard_packet:
+	call uarta_prepare_rx
+	increase 2,contu
+	ifetch 1,contu
+	iadd contu,contu
+module_hci_dicard_bytes:
+	branch uarta_rxdone
+	
+/*********************HCI CONTROL*********************/
+module_hci_cmd_control:
+	bpatch patch17_6,mem_patch17
+	fetch 1,mem_module_uart_opcode
+	beq HCI_CMD_SET_BT_ADDR_REQ,module_hci_cmd_set_bt_addr
+	beq HCI_CMD_SET_LE_ADDR_REQ,module_hci_cmd_set_le_addr
+	beq HCI_CMD_SET_VISIBILITY_REQ,module_hci_cmd_set_visibility	
+	beq HCI_CMD_SET_BT_NAME_REQ,module_hci_cmd_set_bt_name
+	beq HCI_CMD_SET_LE_NAME_REQ,module_hci_cmd_set_le_name
+	beq HCI_CMD_SPP_DATA_REQ,module_hci_cmd_receive_spp_data
+	beq HCI_CMD_LE_DATA_REQ,module_hci_cmd_receive_le_data
+	beq HCI_CMD_STATUS_IRQ,module_hci_cmd_inquire_status
+	beq HCI_CMD_SET_PAIRING_REQ,module_hci_cmd_set_pairing_mode
+	beq HCI_CMD_SET_PINCODE_REQ,module_hci_cmd_set_pincode	
+	beq HCI_CMD_SET_UARTCONTROL_REQ,module_hci_cmd_set_uart_control_mode
+	beq HCI_CMD_SET_UART_BAUD_REQ,module_hci_cmd_set_uart_baud
+	beq HCI_CMD_VERSION_REQ,module_hci_cmd_version_request
+	beq HCI_CMD_BT_DISCONNECT,module_hci_cmd_bt_disconnect
+	beq HCI_CMD_BLE_DISCONNECT,module_hci_cmd_ble_disconnect
+	beq HCI_CMD_SET_COD,module_hci_cmd_set_cod
+	beq HCI_CMD_SET_NVRAM_REQ,module_hci_cmd_set_nvram
+	beq HCI_CMD_CONFIRM_GKEY,module_hci_cmd_confirm_gkey
+	beq HCI_CMD_SET_CREDIT_GIVEN,module_hci_cmd_set_credit_given
+	beq HCI_CMD_AUTO_ADV_SCAN,module_hci_cmd_auto_adv
+	beq HCI_CMD_POWER_REQ,module_hci_cmd_power_request
+	beq HCI_CMD_POWER_SET,module_hci_cmd_power_set
+	beq HCI_CMD_PASSKEY_ENTRY,module_hci_cmd_passkey_entry
+	beq HCI_CMD_SET_GPIO,module_hci_cmd_set_gpio
+	beq HCI_CMD_READ_GPIO,module_hci_cmd_read_gpio
+	beq HCI_CMD_LE_SET_PAIRING,module_hci_cmd_le_set_pairing_mode
+	beq HCI_CMD_LE_SET_ADV_DATA,module_hci_cmd_le_set_adv_data
+	beq HCI_CMD_LE_SET_SCAN_DATA,module_hci_cmd_le_set_scan_data
+	beq HCI_CMD_LE_SEND_CONN_UPDATE_REQ,module_hci_cmd_le_send_conn_update_req
+	beq HCI_CMD_LE_SET_ADV_PARM,module_hci_cmd_set_le_adv_parameter
+	beq HCI_CMD_LE_START_PAIRING,module_hci_cmd_le_start_pairing
+	beq HCI_CMD_SET_WAKE_GPIO,module_hci_cmd_set_wake_gpio
+	beq HCI_CMD_SET_TX_POWER,module_hci_cmd_set_tx_power
+	beq HCI_CMD_LE_CONFIRM_GKEY,module_hci_cmd_le_confirm_gkey
+	beq HCI_CMD_REJECT_JUSTWORK,module_hci_cmd_set_reject_justwork_flag
+	beq HCI_CMD_RESET_CHIP_REQ,module_hci_cmd_reset_chip
+	beq HCI_CMD_LE_SET_FIXED_PASSKEY,module_hci_cmd_le_set_fixed_passkey
+	beq HCI_CMD_DELETE_CUSTOMIZE_SERVICE,module_hci_cmd_delete_customize_service
+	beq HCI_CMD_ADD_SERVICE_UUID,module_hci_cmd_add_service_uuid
+	beq HCI_CMD_ADD_CHARACTERISTIC_UUID,module_hci_cmd_add_characteristic_uuid
+	beq HCI_CMD_PASSKEY_ENTRY_INPUT,module_hci_cmd_le_passkey_entry_input
+	beq HCI_CMD_BLE_SET_PHY,module_hci_cmd_ble_set_phy
+	beq HCI_CMD_BLE_READ_CURRENT_PHY,module_hci_cmd_ble_read_current_phy
+	beq HCI_CMD_BLE_SET_DLE,module_hci_cmd_ble_set_dle
+	beq HCI_CMD_READ_CHIP_DATA,module_hci_cmd_read_chip_data
+	beq HCI_CMD_WRITE_CHIP_DATA,module_hci_cmd_write_chip_data
+ifdef COMPILE_WECHAT
+	beq HCI_CMD_WECHAT_SEND_DATA,module_hci_cmd_wechat_send_data
+endif
+	beq HCI_CMD_CLOSE_LPM,module_hci_cmd_close_lpm
+	branch  module_hci_event_receive_invalid_cmd
+
+/*********************HCI COMMAND*********************/
+
+//command opcode 0x00
+module_hci_cmd_set_bt_addr:
+	fetch 1,mem_module_uart_len
+	bne 6,module_hci_event_receive_invalid_cmd
+	ifetch 6,contru
+	store 6,mem_lap
+	branch module_hci_event_receive_valid_cmd
+
+//command opcode 0x01
+module_hci_cmd_set_le_addr:
+	fetch 1,mem_module_uart_len
+	bne 6,module_hci_event_receive_invalid_cmd
+	ifetch 6,contru
+	store 6,mem_le_lap
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x02
+module_hci_cmd_set_visibility:
+	fetch 1,mem_module_uart_len
+	bne 1,module_hci_event_receive_invalid_cmd
+	ifetcht 1,contru
+	storet 1,mem_module_bluetooth_stauts_by_command
+	call module_hci_event_receive_valid_cmd
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	rtnbit1 UI_STATE_BT_CONNECTED
+module_start_adv_discovery_by_command:
+	fetch 1,mem_module_state
+	isolate1 MOUDLE_STATE_BT_BIT,pdata
+	nbranch moudle_start_adv_by_command,true
+	fetcht 1,mem_module_bluetooth_stauts_by_command
+	and temp,0x03,pdata
+	store 1,mem_scan_mode
+moudle_start_adv_by_command:
+	fetch 1,mem_module_state
+	isolate1 MOUDLE_STATE_BLE_BIT,pdata
+	nrtn true
+	fetcht 1,mem_module_bluetooth_stauts_by_command
+	isolate1 2,temp
+	branch app_ble_start_adv,true
+	branch app_ble_stop_adv
+
+
+//command opcode 0x03
+module_hci_cmd_set_bt_name:
+	fetch 1,mem_module_uart_len
+	sub pdata,67,null
+	nbranch module_hci_event_receive_invalid_cmd,positive
+	store 1,mem_local_name_length
+	arg 8,loopcnt
+	call memset0
+	fetchr loopcnt,1,mem_module_uart_len
+	arg mem_local_name,contw
+	call uart_copy_rx_bytes_fast
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x04
+module_hci_cmd_set_le_name:
+	arg 29,pdata
+	arg mem_le_name_len,contw
+	call module_hci_cmd_receive_store_mem
+	branch le_modified_name
+
+
+//command opcode 0x05
+module_hci_cmd_receive_spp_data:
+	fetch 1,mem_ui_state_map
+	bbit0 UI_STATE_BT_SPP_CONN,module_hci_event_receive_invalid_cmd
+	call app_check_sniff
+	branch module_hci_cmd_spp_exit_sniff,true
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	call module_spp_clear_last_transmite_clock
+	fetch 1,mem_remote_credits
+	rtn blank
+	fetch 2,mem_nl_rx_len_all
+	nbranch module_hci_cmd_pass_init_ng_rx_len_all,blank
+	fetch 1,mem_module_uart_len
+	store 2,mem_nl_rx_len_all
+
+	store 2,mem_nl_rx_data_src
+	storer contru,2,mem_nl_rx_data_src
+module_hci_cmd_pass_init_ng_rx_len_all:
+	call module_hci_cmd_get_current_packet_len_and_remain_len
+	branch spp_tx_rfcomm_packet
+	
+module_hci_cmd_spp_exit_sniff:
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	branch module_exit_sniff
+
+module_hci_cmd_get_current_packet_len_and_remain_len:
+	call module_hci_cmd_get_current_patcket_len
+	fetch 2,mem_nl_rx_len_all
+	fetcht 2,mem_current_packet_length
+	isub temp,pdata
+	store 2,mem_nl_rx_len_all
+	rtn
+
+module_hci_cmd_get_current_patcket_len:
+	fetch 2,mem_nl_rx_len_all
+	fetcht 2,mem_rfcomm_max_frame_size	//接收最大能力?
+	call not_greater_than
+	fetcht 2,mem_pn_max_frame_size		//发送最大能力?
+	call not_greater_than
+	store 2,mem_current_packet_length
+	rtn
+
+module_hci_command_tx_spp_tx_complete:
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	jam HCI_CMD_SPP_DATA_REQ,mem_module_uart_opcode
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x09
+module_hci_cmd_receive_le_data:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,module_hci_event_receive_invalid_cmd
+	call module_check_ble_encrypt_state
+	branch module_hci_event_receive_invalid_cmd,user
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	fetch 2,mem_module_flag
+	bbit1 MODULE_FLAG_BLE_DATA_FINISH,module_hci_cmd_receive_le_data_finish
+	fetch 1,mem_module_hci_notify_len
+	nrtn blank
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	ifetch 2,contru		//handle
+	store 2,mem_module_hci_notify_handle
+	storer contru,2,mem_module_hci_nofiy_addr
+	fetch 1,mem_module_uart_len
+	pincrease -2
+	nbranch module_hci_event_receive_invalid_cmd,positive
+	branch module_hci_event_receive_invalid_cmd,zero
+	store 1,mem_module_hci_notify_len
+	fetcht 2,mem_module_hci_notify_handle
+	increase -1,temp
+	call le_att_get_handle_ptr2
+	branch module_hci_cmd_transmit_handle_error,blank
+	ifetcht 4,contr		//flag
+	setarg 0x01280302
+	isub temp,null
+	nbranch module_hci_cmd_transmit_handle_error,zero
+	ifetch 1,contr
+	store 1,mem_module_hci_notify_type
+	and_into 0x30,pdata
+	branch module_hci_cmd_transmit_handle_error,blank
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	call le_set_config_more_data
+	call module_hci_cmd_transmit_le_notify
+	call module_hci_cmd_transmit_le_notify
+	call module_hci_cmd_transmit_le_notify
+	fetch 2,mem_module_flag
+	rtnbit0 MODULE_FLAG_BLE_DATA_FINISH
+module_hci_cmd_receive_le_data_finish:
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	call module_clear_le_tx_data_flag
+	branch module_hci_event_receive_valid_cmd
+
+module_hci_cmd_transmit_handle_error:
+	jam 0,mem_module_hci_notify_len
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	call module_clear_le_tx_data_flag
+	branch module_hci_event_receive_invalid_cmd
+
+module_hci_cmd_transmit_le_notify:
+	fetch 1,mem_module_hci_notify_len
+	rtn blank
+	call le_fifo_check_nearly_full
+	nrtn blank				//no fifo
+	call module_get_le_remote_mtu
+	bpatch patch17_7,mem_patch17
+	fetch 2,mem_le_local_mtu
+	call not_greater_than
+	copy pdata,temp
+	fetch 1,mem_le_l2cap_att_states
+	rtnbit1 BLE_L2CAP_RECV_CONFIRMATION_PACKET
+	add temp,-3,pdata		//sub handle and opcode
+	arg 251,temp
+	call not_greater_than
+	fetcht 1,mem_module_hci_notify_len
+	call not_greater_than
+	copy pdata,rega
+	copy temp,pdata
+	isub rega,pdata
+	store 1,mem_module_hci_notify_len
+	call module_hci_cmd_transmit_le_notify_malloc_l2cap
+	fetch 2,mem_module_hci_nofiy_addr
+	copy pdata,contru
+	copy rega,loopcnt
+	call uart_copy_rx_bytes_fast
+	copy contru,pdata
+	store 2,mem_module_hci_nofiy_addr
+	fetch 1,mem_module_hci_notify_len
+	nrtn blank
+	branch module_set_le_tx_data_flag
+
+module_hci_cmd_transmit_le_notify_malloc_l2cap:
+	fetcht 2,mem_module_hci_notify_handle
+	fetch 1,mem_module_hci_notify_type
+	bbit1 BIT_CHARACTERISTIC_INDICATE,le_att_malloc_tx_indication
+	bbit1 BIT_CHARACTERISTIC_NOTIFY,le_att_malloc_tx_notify
+	rtn
+
+
+//output: temp is master mtu
+module_get_le_remote_mtu:
+	arg 0x17,temp
+	fetch 2,mem_module_flag
+	rtnbit1 MODULE_FLAG_BLE_SEND_MTU23
+	fetcht 2,mem_le_remote_mtu
+	rtn
+
+module_check_ble_encrypt_state:
+	fetch 2,mem_module_flag
+	bbit1 MODULE_FLAG_BLE_DATA_ENCRYPT,le_check_encrypt_state
+	branch disable_user
+	
+
+//command opcode 0x0b
+module_hci_cmd_inquire_status:
+	branch module_hci_event_status_res
+
+
+//command opcode 0x0c
+module_hci_cmd_set_pairing_mode:
+	ifetch 1,contru
+	beq BR_PAIRING_MODE_SECURE_CONNECT_JUSTWORK,module_hci_pairing_just_work_sc
+	beq BR_PAIRING_MODE_SECURE_CONNECT_PASSKEY,module_hci_pairing_passkey_sc
+	beq BR_PAIRING_MODE_SECURE_CONNECT_NUMERIC,module_hci_pairing_numeric_comparison_sc
+
+	copy pdata,rega
+	call sp_br_secure_connection_disable
+	call sc_reset
+	copy rega,pdata
+	beq BR_PAIRING_MODE_PINCODE,module_hci_pairing_pincode_mode
+	beq BR_PAIRING_MODE_JUSTWORK,module_hci_pairing_just_work_mode
+	beq BR_PAIRING_MODE_PASSKEY,module_hci_pairing_passkey
+	beq BR_PAIRING_MODE_NUMERIC,module_hci_pairing_numeric_comparison
+	branch module_hci_event_receive_invalid_cmd
+
+module_hci_pairing_just_work_sc:
+	call sp_br_secure_connection_enable
+	branch module_hci_pairing_just_work_mode
+	
+module_hci_pairing_passkey_sc:
+	call sp_br_secure_connection_enable
+	branch module_hci_pairing_passkey
+
+module_hci_pairing_numeric_comparison_sc:
+	call sp_br_secure_connection_enable
+	branch module_hci_pairing_numeric_comparison
+	
+module_hci_pairing_pincode_mode:
+	call sp_reset
+	jam 0,mem_ssp_enable
+	branch module_hci_event_receive_valid_cmd
+	
+module_hci_pairing_just_work_mode:
+	setarg IO_CAPABILITY_NO_INPUT_NO_OUTPUT
+module_hci_sspairing_mode:
+	store 1,mem_ssp_mode_flag
+	store 1,mem_lmp_io_cap_payload_iocap
+	setarg OOB_DATA_PRESENT_NOT_PRESENT
+	store 1,mem_lmp_io_cap_payload_oob_auth_data
+	setarg AUTH_REQ_MITM_PROTECTION_NOT_REQUIRED_GENERAL_BONDING
+	store 1,mem_lmp_io_cap_payload_auth_req
+	call ssp_enable
+	jam 1,mem_ssp_enable
+	branch module_hci_event_receive_valid_cmd
+module_hci_pairing_passkey:
+	setarg IO_CAPABILITY_KEYBOARD_ONLY
+	branch module_hci_sspairing_mode
+
+module_hci_pairing_numeric_comparison:
+	setarg IO_CAPABILITY_DISPLAY_YESNO
+	branch module_hci_sspairing_mode
+
+
+//command opcode 0x0d
+module_hci_cmd_set_pincode:
+	arg 16,pdata
+	arg mem_pin_length,contw
+	branch module_hci_cmd_receive_store_mem
+
+
+//command opcode 0x0e
+module_hci_cmd_set_uart_control_mode:
+	ifetch 1,contru
+	fetcht 1,mem_module_flag
+	nsetflag blank,MODULE_FLAG_UART_FLOW_CONTROL,temp
+	storet 1,mem_module_flag
+	fetcht 1,core_uart_ctrl
+	nsetflag blank,BIT_UART_CONTROL_FLOW_CONTROL,temp
+	storet 1,core_uart_ctrl
+ 	branch module_hci_event_receive_valid_cmd
+
+ 	
+//command opcode 0x0f
+module_hci_cmd_set_uart_baud:
+	fetchr loopcnt,1,mem_module_uart_len
+	call string2dec_from_uart
+	call uart_calc_baud_rate_config
+	store uart_baud_len,mem_module_uarta_baud_rate
+	call module_hci_event_receive_valid_cmd
+	call wait_uarttx
+	fetch uart_baud_len,mem_module_uarta_baud_rate
+	branch uarta_init_baud_rate
+
+
+//command opcode 0x10
+module_hci_cmd_version_request:
+	arg 2,rega
+	arg mem_soft_version_num,regb
+	arg 0,temp
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x11
+module_hci_cmd_bt_disconnect:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BT_CONNECTED,module_hci_event_receive_invalid_cmd
+module_hci_cmd_bt_disconnect_doing:
+	call module_hci_event_receive_valid_cmd
+	branch app_bt_disconnect
+
+	
+//command opcode 0x12
+module_hci_cmd_ble_disconnect:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,module_hci_event_receive_invalid_cmd
+module_hci_cmd_ble_disconnect_doing:
+	call module_hci_event_receive_valid_cmd
+	branch app_ble_disconnect
+
+
+//command opcode 0x15
+module_hci_cmd_set_cod:
+	fetch 1,mem_module_uart_len
+	bne 3,module_hci_event_receive_invalid_cmd
+	ifetch 3,contru
+	store 3,mem_class
+	branch module_hci_event_receive_valid_cmd
+	
+
+//command opcode 0x26
+module_hci_cmd_set_nvram:
+	fetchr loopcnt,1,mem_module_uart_len
+	fetch 2,mem_nv_data_ptr
+	icopy contw
+	call uart_copy_rx_bytes_fast
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x28
+module_hci_cmd_confirm_gkey:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,module_hci_cmd_le_confirm_gkey
+	bbit0 UI_STATE_BT_CONNECTED,module_hci_event_receive_invalid_cmd	
+	ifetch 1,contru
+	fetcht 1,mem_flag_mode_ssp_pin
+	setflag blank,FLAG_MODE_SSP_PIN_COMPARISON_RESULT_BIT,temp
+	set1 FLAG_MODE_SSP_PIN_REVICEVE_COMPARISON_BIT ,temp
+	storet 1,mem_flag_mode_ssp_pin
+
+	call module_hci_event_receive_valid_cmd
+
+	fetch 1,mem_flag_mode_ssp_pin
+	bbit1 FLAG_MODE_SSP_PIN_RECIEVE_DHKEY_BIT,module_hci_cmd_spp_number_comparison_result_is1
+	rtn
+
+module_hci_cmd_spp_number_comparison_result_is1:
+	bbit1 FLAG_MODE_SSP_PIN_COMPARISON_RESULT_BIT,number_comparison_successed
+	jam 0,mem_flag_mode_ssp_pin
+	jam BT_CMD_DHKEY_NOT_ACCEPT,mem_fifo_temp
+	branch ui_ipc_send_cmd
+
+
+//command opcode 0x29
+module_hci_cmd_set_credit_given:
+	fetch 1,mem_ui_state_map
+	rtnbit0 UI_STATE_BT_SPP_CONN
+	fetch 1,mem_rfcomm_credit_flag
+	rtneq CREDIT_DISABLE
+	ifetch 1,contru
+	fetcht 1,mem_credit_given
+	iadd temp,temp
+	storet 1,mem_credit_given
+	rtn
+
+
+//command opcode 0x2a
+module_hci_cmd_auto_adv:
+	arg 0x40,loopcnt
+	arg mem_le_adv_data_len,contw
+	call clear_mem
+	setarg 0
+	store 1,mem_regb
+	copy rega,contru
+module_hci_cmd_auto_adv_loop:
+	copy contru,pdata
+	store 2,mem_regc
+	call module_hci_cmd_auto_adv_adv_analys
+
+	fetch 1,mem_regb
+	fetcht 1,mem_temp
+	increase 1,temp
+	iadd temp,pdata
+	store 1,mem_regb
+
+	sub pdata,31,null
+	nbranch module_hci_cmd_auto_adv_store_scan,positive
+module_hci_cmd_auto_adv_store_adv:
+	fetcht 1,mem_le_adv_data_len
+	setarg mem_le_adv_data
+	iadd temp,pdata
+	store 2,mem_contw
+	fetcht 1,mem_temp
+	increase 1,temp
+	fetch 1,mem_le_adv_data_len
+	iadd temp,pdata
+	store 1,mem_le_adv_data_len
+	branch module_hci_cmd_auto_adv_store_common
+module_hci_cmd_auto_adv_store_scan:
+	fetcht 1,mem_le_scan_data_len
+	setarg mem_le_scan_data
+	iadd temp,pdata
+	store 2,mem_contw
+	fetcht 1,mem_temp
+	increase 1,temp
+	fetch 1,mem_le_scan_data_len
+	iadd temp,pdata
+	store 1,mem_le_scan_data_len
+module_hci_cmd_auto_adv_store_common:
+	fetch 2,mem_contw
+	copy pdata,contw
+	fetch 2,mem_regc
+	copy pdata,contru
+
+	copy temp,loopcnt
+	call uart_copy_rx_bytes_fast
+
+	fetch 1,mem_module_uart_len
+	fetcht 1,mem_regb
+	isub temp,null
+	nbranch  module_hci_cmd_auto_adv_loop,zero
+	branch module_hci_event_receive_valid_cmd
+
+//block of adv len in mem_temp
+module_hci_cmd_auto_adv_adv_analys:
+	ifetch 1,contru
+	store 1,mem_temp
+	ifetch 1,contru
+	store 1,mem_rega
+	rtn
+
+
+//command opcode 0x2b
+module_hci_cmd_power_request:
+	arg 0,temp
+	arg 2,rega
+	fetch 2,mem_module_vdd_quotient
+	store 2,mem_event_cmd_response_content
+	arg mem_event_cmd_response_content,regb
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x2c
+module_hci_cmd_power_set:
+	fetch 1,mem_module_uart_len
+	bne 1,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	store 1,mem_module_read_vdd_flag
+	setarg 0x00
+	store 2,mem_module_vdd_quotient
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x30
+module_hci_cmd_passkey_entry:
+	fetch 1,mem_module_uart_len
+	bne 4,module_hci_event_receive_invalid_cmd
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,module_hci_cmd_le_passkey_entry_input
+	ifetch 4,contru
+	store 4,mem_pin
+	jam 4,mem_pin_length
+	jam 0,mem_authentication_passkey_times
+	call module_hci_event_receive_valid_cmd
+	branch authentication_passkey
+
+
+//command opcode 0x31
+module_hci_cmd_set_gpio:
+	fetch 1,mem_module_uart_len
+	bne 3,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	beq HCI_CMD_CONFIG_GPIO_INPUT,module_set_gpio_input
+	beq HCI_CMD_CONFIG_GPIO_OUTPUT,module_set_gpio_output
+	branch module_hci_event_receive_invalid_cmd
+
+module_set_gpio_input:
+	call module_hci_event_receive_valid_cmd
+	ifetcht 1,contru
+	ifetch 1,contru
+	beq GPIO_INPUT_HIGH_IMPEDANCE,gpio_set_high_impedance
+	nsetflag blank,7,temp
+	branch gpio_config_input
+
+module_set_gpio_output:
+	call module_hci_event_receive_valid_cmd
+	ifetcht 1,contru
+	ifetch 1,contru	
+	branch gpio_out_active,blank
+	branch gpio_out_inactive
+
+
+//command opcode 0x32
+module_hci_cmd_read_gpio:
+	fetch 1,mem_module_uart_len
+	bne 1,module_hci_event_receive_invalid_cmd
+	ifetcht 1,contru
+	call gpio_get_bit
+	setarg 0x0
+	nsetflag true,0,pdata
+	arg 1,rega
+	store 2,mem_event_cmd_response_content
+	arg mem_event_cmd_response_content,regb
+	arg 0,temp
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x33
+module_hci_cmd_le_set_pairing_mode:
+	ifetch 1,contru
+	copy pdata,temp
+ifdef SECURE_CONNECTION
+	beq LE_PAIRING_MODE_SECURE_CONNECT_JUSTWORK,module_le_set_pairing_mode_secure_justwork
+	beq LE_PAIRING_MODE_SECURE_CONNECT_NUMERIC,module_le_set_pairing_mode_secure_numeric
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,module_le_set_pairing_mode_secure_passkey
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,module_le_set_pairing_mode_secure_passkey_res_input
+endif
+	store 1,mem_le_pairing_mode
+	call sc_reset
+	call le_secure_connection_disable
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_NONE, module_le_set_no_pairing
+	beq LE_PAIRING_MODE_LAGACY_JUSTWORK,module_le_set_pairing_mode_lagacy_just_work
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY,module_le_set_pairing_mode_lagacy_passkey
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY_RES_INPUT,module_le_set_pairing_mode_lagacy_passkey_res_input
+	branch module_hci_event_receive_invalid_cmd
+		
+ifdef SECURE_CONNECTION	
+module_le_set_pairing_mode_secure_justwork:
+	storet 1,mem_le_pairing_mode
+	call le_secure_connection_enable
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch module_le_set_noinputnooutput
+module_le_set_pairing_mode_secure_numeric:
+	storet 1,mem_le_pairing_mode
+	call le_secure_connection_enable
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	jam FLAG_IOCAP_DISPLAYYESNO,mem_le_pres_iocap
+	branch module_hci_event_receive_valid_cmd	
+module_le_set_pairing_mode_secure_passkey:	
+	storet 1,mem_le_pairing_mode
+	call le_secure_connection_enable
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch module_le_set_displayonly
+module_le_set_pairing_mode_secure_passkey_res_input:
+	storet 1,mem_le_pairing_mode
+	call le_secure_connection_enable
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch module_le_set_keboadonly
+
+endif
+
+module_le_set_no_pairing:
+	jam FLAG_LE_NO_BONDING_NO_MITM,mem_le_pres_auth
+module_le_set_noinputnooutput:	
+	jam FLAG_IOCAP_NOINPUTNOOUTPUT,mem_le_pres_iocap
+	branch module_hci_event_receive_valid_cmd	
+module_le_set_pairing_mode_lagacy_just_work:
+	jam FLAG_LE_BONDING_NO_MITM,mem_le_pres_auth
+	branch module_le_set_noinputnooutput
+module_le_set_pairing_mode_lagacy_passkey:
+	jam FLAG_LE_BONDING_MITM,mem_le_pres_auth
+	branch module_le_set_displayonly
+module_le_set_pairing_mode_lagacy_passkey_res_input:
+	jam FLAG_LE_BONDING_MITM,mem_le_pres_auth
+	branch module_le_set_keboadonly
+module_le_set_keboadonly:	
+	jam FLAG_IOCAP_KEYBOARDONLY,mem_le_pres_iocap
+	branch module_hci_event_receive_valid_cmd	
+module_le_set_displayonly:	
+	jam FLAG_IOCAP_DISPLAYONLY,mem_le_pres_iocap
+	branch module_hci_event_receive_valid_cmd	
+
+
+//command opcode 0x34
+module_hci_cmd_le_set_adv_data:
+	arg 31,pdata
+	arg mem_le_adv_data_len,contw
+	branch module_hci_cmd_receive_store_mem
+
+
+//command opcode 0x35
+module_hci_cmd_le_set_scan_data:
+	arg 31,pdata
+	arg mem_le_scan_data_len,contw
+	branch module_hci_cmd_receive_store_mem
+
+/*
+	input:contw is store mem ptr
+	pdata is max length
+*/
+module_hci_cmd_receive_store_mem:
+	fetchr loopcnt,1,mem_module_uart_len
+	isub loopcnt,null
+	nbranch module_hci_event_receive_invalid_cmd,positive
+	istorer loopcnt,1,contw
+	call uart_copy_rx_bytes_fast
+	branch module_hci_event_receive_valid_cmd	
+
+	
+//command opcode 0x36
+module_hci_cmd_le_send_conn_update_req:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,module_hci_event_receive_invalid_cmd
+	fetch 1,mem_module_uart_len
+	bne 0x08,module_hci_event_receive_invalid_cmd
+	ifetch 8,contru
+	store 8,mem_le_interval_min
+	jam BT_CMD_LE_UPDATE_CONN,mem_fifo_temp
+	call  ui_ipc_send_cmd
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x37
+module_hci_cmd_set_le_adv_parameter:
+	ifetch 2,contru
+	store 2,mem_le_adv_interval
+	branch module_hci_event_receive_valid_cmd
+	
+	
+//command opcode 0x38
+module_hci_cmd_le_start_pairing:
+	fetch 1,mem_le_pairing_mode
+	branch module_hci_event_receive_invalid_cmd,blank
+	fetch 1,mem_le_pairing_state
+	bne FLAG_LE_PAIRING_NULL,module_hci_event_receive_invalid_cmd
+	fetch 1,mem_le_enc_state
+	bne FLAG_LE_ENC_NULL,module_hci_event_receive_invalid_cmd
+	call check_51cmd_le_smp_sec_req
+	branch module_hci_event_receive_valid_cmd	
+
+
+//command opcode 0x40
+module_hci_cmd_set_wake_gpio:
+	fetch 1,mem_module_uart_len
+	bne 5,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	store 1,mem_module_mcu_wake_pin
+	ifetch 4,contru
+	store 4, mem_module_mcu_wake_delay_us
+	fetcht 1,mem_module_mcu_wake_pin
+	call gpio_config_output
+	call module_set_mcu_wake_pin_low
+	branch module_hci_event_receive_valid_cmd
+	
+
+//command opcode 0x42
+module_hci_cmd_set_tx_power:
+	fetch 1,mem_module_uart_len
+	bne 0x01,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	store 1,mem_tx_power
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x48
+module_hci_cmd_le_confirm_gkey:
+	ifetch 1,contru
+	beq 0x01,module_hci_cmd_le_confirm_gkey_fail
+	fetch 1,mem_le_secure_connect_state
+	beq LE_SC_STAT_SEND_PUBLIC_KEY,module_hci_cmd_le_confirm_gkey_ok
+	beq LE_SC_STAT_RECEIVE_DHKEY,module_hci_cmd_le_confirm_gkey_ok
+	beq LE_SC_STAT_WAIT_CONFIRM_GKEY,module_hci_cmd_le_confirm_gkey_ok
+	branch module_hci_event_receive_invalid_cmd		
+module_hci_cmd_le_confirm_gkey_ok:
+	jam FLAG_LE_SC_CONFRIM_GKEY_OK,mem_le_sc_confirm_gkey_flag
+	branch module_hci_event_receive_valid_cmd	
+	
+module_hci_cmd_le_confirm_gkey_fail:
+	call le_send_pairing_confirm_value_failed
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x49
+module_hci_cmd_set_reject_justwork_flag:
+	fetch 1,mem_module_uart_len
+	bne 0x01,module_hci_event_receive_invalid_cmd
+	call module_hci_event_receive_valid_cmd
+	ifetch 1,contru
+	branch classic_bt_clr_reject_justwork_flag,blank
+	branch classic_bt_set_reject_justwork_flag
+
+
+//command opcode 0x51
+module_hci_cmd_reset_chip:
+	call module_hci_event_receive_valid_cmd
+	call wait_uarttx
+	jam 0x01,core_reset // rest YC1021
+	branch loop
+
+
+//command opcode 0x61
+module_hci_cmd_le_set_fixed_passkey:
+	fetch 1,mem_module_uart_len
+	beq 0,module_hci_event_receive_invalid_cmd
+	ifetch 1,contru
+	branch module_hci_cmd_le_set_random_passkey,blank
+	fetch 1,mem_module_uart_len
+	bne 5,module_hci_event_receive_invalid_cmd
+	ifetch 4,contru
+	arg 1000000,temp
+	isub temp,null
+	branch module_hci_event_receive_invalid_cmd,positive
+	store 4,mem_le_tk
+	call le_set_config_fixed_tk
+	branch module_hci_event_receive_valid_cmd
+
+module_hci_cmd_le_set_random_passkey:
+	call le_clr_config_fixed_tk
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x76
+module_hci_cmd_delete_customize_service:
+	ifetcht 2,contru
+	call le_att_get_handle_ptr2
+	add contr,-2,contw
+	setarg 0x0000
+	istore 2,contw
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x77
+module_hci_cmd_add_service_uuid:
+	call module_hci_cmd_add_service_uuid_set_uuid
+	call uart_copy_rx_bytes_len_data
+	setarg 0x0000
+	istore 2,contw
+	branch module_hci_event_uuid_handle
+
+
+
+//command opcode 0x78
+module_hci_cmd_add_characteristic_uuid:
+	ifetch 1,contru	//Characteristic
+	call module_hci_cmd_add_characteristic_uuid_set_handle
+	call module_hci_cmd_add_characteristic_uuid_set_uuid
+	branch module_hci_event_uuid_handle
+
+
+module_hci_cmd_add_service_uuid_set_uuid:
+	call le_att_creat_new_handle
+	setarg 0x280002
+	istore 3,contw
+	rtn
+
+
+module_hci_cmd_add_characteristic_uuid_set_handle:
+	store 1,mem_pdatatemp
+	call le_att_creat_new_handle
+	setarg 0x01280302
+	istore 4,contw
+	fetch 1,mem_pdatatemp
+	istore 3,contw
+	rtn
+
+
+module_hci_cmd_add_characteristic_uuid_set_uuid:
+	call le_att_get_last_handle
+	ifetch 1,contru
+	and pdata,0x1f,loopcnt
+	copy pdata,rega
+	isolate1 BIT_OF_WRITE_AUTHENTICATED,rega
+	setflag true,BIT_OF_ATT_HANDLE_WRITE_AUTHENTICATED,temp
+	isolate1 BIT_OF_READ_AUTHENTICATED,rega
+	setflag true,BIT_OF_ATT_HANDLE_READ_AUTHENTICATED,temp
+	istoret 2,contw
+	copy loopcnt,pdata
+	istore 1,contw
+	call uart_copy_rx_bytes
+	call uart_copy_rx_bytes_len_data		//data
+	setarg 0
+	istore 2,contw
+	and temp,0xff,temp
+	increase -1,temp
+	call le_att_get_handle_ptr2
+	add contr,4,contr
+	ifetch 1,contr		//characteristic data
+	bbit1 BIT_CHARACTERISTIC_NOTIFY,module_hci_cmd_add_characteristic_uuid_set_ccc_uuid
+	bbit1 BIT_CHARACTERISTIC_INDICATE,module_hci_cmd_add_characteristic_uuid_set_ccc_uuid
+	increase 1,temp
+	rtn
+
+
+module_hci_cmd_add_characteristic_uuid_set_ccc_uuid:
+	call le_att_get_last_handle
+	isolate1 BIT_OF_NOTIFY_AUTHENTICATED,rega
+	setflag true,BIT_OF_ATT_HANDLE_WRITE_AUTHENTICATED,temp
+	istoret 2,contw
+	setarg 0x02290202
+	istore 8,contw
+	increase -1,temp
+	rtn
+
+
+le_att_creat_new_handle:
+	call le_att_get_last_handle
+	istoret 2,contw
+	rtn
+
+
+uart_copy_rx_bytes_len_data:
+	ifetch 1,contru
+	copy pdata,loopcnt
+	istore 1,contw
+	branch uart_copy_rx_bytes
+
+
+//command opcode 0x7a
+module_hci_cmd_le_passkey_entry_input:
+	fetch 1,mem_le_pairing_state
+	bne FLAG_LE_PAIRING_RECEIVE_PAIRING_CONFIRM,module_hci_event_receive_invalid_cmd
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY_RES_INPUT,module_hci_cmd_passkey_entry_res_input
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,module_hci_cmd_passkey_entry_sc_res_input
+	branch module_hci_event_receive_invalid_cmd
+
+module_hci_cmd_passkey_entry_sc_res_input:
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_PASSKEY_WAIT_CONFIRM,mem_le_secure_connect_state	
+	branch module_hci_cmd_receive_ble_passkey
+
+module_hci_cmd_receive_ble_passkey:
+	ifetch 4,contru
+	store 4,mem_le_tk
+	branch module_hci_event_receive_valid_cmd
+	
+module_hci_cmd_passkey_entry_res_input:
+	call module_hci_cmd_receive_ble_passkey
+	branch le_send_smp_pairing_confirm
+
+
+
+//command opcode 0x90
+module_hci_cmd_ble_set_phy:
+	fetch 1,mem_module_uart_len
+	bne 2,module_hci_event_receive_invalid_cmd
+	ifetcht 2,contru
+	call le_set_phys
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x91
+module_hci_cmd_ble_read_current_phy:
+	arg 0,temp
+	arg 2,rega
+	arg mem_context+coffset_le_rx_phy,regb
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x92
+module_hci_cmd_ble_set_dle:
+	fetch 1,mem_module_uart_len
+	bne 8,module_hci_event_receive_invalid_cmd
+	ifetch 8,contru
+	call le_set_dle
+	branch module_hci_event_receive_valid_cmd
+
+
+//command opcode 0x93
+module_hci_cmd_read_chip_data:
+	ifetchr rega,1,contru
+	ifetchr regb,2,contru
+	arg 0,temp
+	branch module_hci_event_set_cmd
+
+
+//command opcode 0x94
+module_hci_cmd_write_chip_data:
+	fetchr loopcnt,1,mem_module_uart_len
+	increase -2,loopcnt
+	ifetch 2,contru
+	copy pdata,contw
+	call uart_copy_rx_bytes_fast
+	branch module_hci_event_receive_valid_cmd
+
+ifdef COMPILE_WECHAT
+//command opcode 0x95
+module_hci_cmd_wechat_send_data:
+	fetch 2,mem_ui_state_map
+	bbit0 UI_STATE_BLE_CONNECTED,module_hci_event_receive_invalid_cmd
+	fetchr loopcnt,1,mem_module_uart_len
+	arg mem_module_wechat_local_data_buffer,contw
+	call uart_copy_rx_bytes_fast
+	fetchr regb,1,mem_module_uart_len
+	arg mem_module_wechat_local_data_buffer,rega
+	call wechat_air_sync_send_wechat_packet
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	rtn user
+	jam HCI_DISCARD_PACKET,mem_module_temp_nl_discard_packet 
+	branch module_hci_event_receive_valid_cmd
+endif
+
+
+//command opcode 0xff
+module_hci_cmd_close_lpm:
+	jam 0,mem_lpm_mode
+	branch module_hci_event_receive_valid_cmd
+	
+
+/*********************HCI EVENT*********************/
+
+module_hci_event_receive_invalid_cmd:
+	arg 1,temp
+	arg 0,rega
+	branch module_hci_event_set_cmd
+
+
+module_hci_event_receive_valid_cmd:
+	arg 0,temp
+	arg 0,rega
+	branch module_hci_event_set_cmd
+
+
+//event opcode 0x00
+module_hci_event_spp_connect:
+	jam  HCI_EVENT_SPP_CONN_REP,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x02
+module_hci_event_le_connect:
+	jam  HCI_EVENT_LE_CONN_REP,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x03
+module_hci_event_spp_disconnect:
+	jam  HCI_EVENT_SPP_DIS_REP,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x05
+module_hci_event_le_disconnect:
+	jam  HCI_EVENT_LE_DIS_REP,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x06
+//input:
+//	temp: success 0; fail 1
+//	rega:Response Content length
+//	regb:Response Content address
+module_hci_event_set_cmd:
+	fetch 1,mem_module_uart_opcode
+	copy pdata,regc
+	jam  HCI_EVENT_CMD_RES,mem_module_uart_opcode
+	setarg 2
+	iadd rega,pdata
+	call module_hci_prepare_tx
+	copy regc,pdata
+	istore 1,contwu
+	istoret 1,contwu
+	copy rega,loopcnt
+	copy regb,contr
+	call uart_copy_tx_bytes
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x07
+module_hci_event_receive_spp_data:
+//	call p_nl_clear_last_transmite_clock
+	call module_spp_clear_last_transmite_clock
+	jam HCI_EVENT_SPP_DATA_REP,mem_module_uart_opcode
+	fetch 1,mem_current_length
+	rtn blank
+	call module_hci_prepare_tx
+	fetch 1,mem_current_length
+	copy pdata,loopcnt
+	fetch 2,mem_rfcomm_uih_payload_ptr
+	copy pdata,contr
+	call uart_copy_tx_bytes_fast
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x08
+//loopcnt pdata is data length
+module_hci_event_receive_le_data:
+	jam HCI_EVENT_LE_DATA_REP,mem_module_uart_opcode
+	add loopcnt,2,pdata
+	call module_hci_prepare_tx
+	fetch 2,mem_module_le_rx_data_handle // Attribute handle
+	istore 2,contwu
+	fetch 2,mem_module_le_rx_data_address
+	icopy contr
+	call uart_copy_tx_bytes_fast
+	copy contr,pdata
+	store 2,mem_module_le_rx_data_address
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x09
+module_hci_event_enter_standby_mode:
+	jam HCI_EVENT_STANDBY_REP,mem_module_uart_opcode
+module_hci_event_enter_standby_mode_len0:
+	setarg 0
+	call module_hci_prepare_tx
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x0a
+module_hci_event_status_res:
+	jam HCI_EVENT_STATUS_RES,mem_module_uart_opcode
+	setarg 1
+	call module_hci_prepare_tx
+	
+	call module_hci_read_bt_status
+	
+	fetch 2,mem_ui_state_map	
+	arg UI_STATE_BT_HID_CONN,queue
+	qisolate1 pdata
+	setflag true,3,temp
+
+	arg UI_STATE_BLE_CONNECTED,queue
+	qisolate1 pdata
+	setflag true,5,temp	
+	
+	fetch 1,mem_ui_state_map
+	arg UI_STATE_BT_SPP_CONN,queue
+	qisolate1 pdata
+	setflag true,4,temp	
+	
+	istoret 1,contwu
+	branch module_hci_transmit_tx
+
+//	temp: bit0 3.0 inquiry;bit1 3.0 scan;bit2 ble adv;
+
+module_hci_read_bt_status:
+	arg 0,temp
+	fetch 1,mem_scan_mode
+	arg inq_scan_mode,queue
+	qisolate1 pdata
+	setflag true,0,temp
+	arg page_scan_mode,queue
+	qisolate1 pdata
+	setflag true,1,temp	
+
+	fetch 1,mem_le_adv_enable
+	arg 0,queue
+	qisolate1 pdata
+	setflag true,2,temp	
+	rtn
+
+
+//event opcode 0x0d
+module_hci_event_store_device:
+	jam HCI_EVENT_NVRAM_REP,mem_module_uart_opcode
+	fetch 1,mem_nv_data_number
+	mul32 pdata,34,pdata
+	icopy loopcnt
+	call module_hci_prepare_tx
+	fetch 2,mem_nv_data_ptr
+	icopy contr
+	call uart_copy_tx_bytes_fast
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x0e
+module_hci_event_gkey_generate:
+	jam HCI_EVENT_GKEY,mem_module_uart_opcode
+	setarg 4
+	call module_hci_prepare_tx
+	fetch 4,mem_gkey
+	istore 4,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x0f
+module_hci_event_invalid_packet:
+	jam HCI_EVENT_INVALID_PACKET,mem_module_uart_opcode
+	fetch 2,core_uart_rxitems
+	arg 0x40,temp
+	call not_greater_than
+	copy pdata,rega
+	copy pdata,loopcnt
+	call uarta_prepare_rx
+	arg mem_module_rx_error_data_buffer,contw
+	call uart_copy_rx_bytes_fast
+	copy rega,pdata
+	copy rega,loopcnt
+	call module_hci_prepare_tx
+	arg mem_module_rx_error_data_buffer,contr
+	call uart_copy_tx_bytes_fast
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x10
+module_hci_event_passkey_entry_mode:
+	jam  HCI_EVENT_GET_PASSKEY,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x11
+module_hci_event_le_tk:
+	jam HCI_EVENT_LE_TK,mem_module_uart_opcode
+	setarg 4
+	call module_hci_prepare_tx
+	fetch 4,mem_le_tk
+	istore 4,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x14
+module_hci_event_le_pairing_fail:
+	arg FLAG_BLE_PAIRING_FAIL,rega
+	branch module_hci_event_pairing_completed
+
+module_hci_event_le_pairing_success:
+	arg FLAG_BLE_PAIRING_SUCCESS,rega
+	branch module_hci_event_pairing_completed
+
+module_hci_event_bt_pairing_fail:
+	arg FLAG_BT_PAIRING_FAIL,rega
+	branch module_hci_event_pairing_completed
+
+module_hci_event_bt_pairing_success:
+	arg FLAG_BT_PAIRING_SUCCESS,rega
+
+module_hci_event_pairing_completed:
+	jam 0,mem_flag_mode_ssp_pin
+	jam HCI_EVENT_LE_PAIRING_STATE,mem_module_uart_opcode
+	setarg 2
+	call module_hci_prepare_tx
+	copy rega,pdata
+	istore 2,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x15
+module_hci_event_pause_enc:
+	arg FLAG_EVENT_PAUSE_ENC,regc
+	branch module_hci_event_enc
+
+module_hci_event_start_enc:
+	arg FLAG_EVENT_START_ENC,regc
+
+module_hci_event_enc:
+	jam HCI_EVENT_LE_ENCRYPTION_STATE,mem_module_uart_opcode
+	setarg 1
+	call module_hci_prepare_tx
+	copy regc,pdata
+	istore 1,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x1d
+module_hci_event_le_gkey:
+	jam HCI_EVENT_LE_GKEY,mem_module_uart_opcode
+	setarg 4
+	call module_hci_prepare_tx
+	fetch 4,mem_gkey
+	istore 4,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x29
+//input:temp uuid number
+module_hci_event_uuid_handle:
+	storet 2,mem_temp
+	jam HCI_EVENT_UUID_HANDLE,mem_module_uart_opcode
+	setarg 2
+	call module_hci_prepare_tx
+	fetcht 2,mem_temp
+	istoret 2,contwu
+	branch module_hci_transmit_tx
+
+
+//event opcode 0x2B
+module_hci_event_le_input_passkey:
+	jam HCI_EVENT_LE_INPUT_GKEY,mem_module_uart_opcode
+	branch module_hci_event_enter_standby_mode_len0
+
+
+//event opcode 0x40
+module_hci_event_le_update_phy:
+	jam HCI_BLE_UPDATE_PHY_EVENT,mem_module_uart_opcode
+	setarg 2
+	call module_hci_prepare_tx
+	fetch 2,mem_context+coffset_le_rx_phy
+	istore 2,contwu
+	branch module_hci_transmit_tx
+
+ifdef COMPILE_WECHAT
+//event opcode 0x41
+module_wechat_rx_push_data:
+module_hci_event_ble_wechat_receive_push_data:
+	call wechat_air_sync_check_push_data_struct
+	nrtn user
+	jam HCI_BLE_WECHAT_RECEIVE_PUSH_DATA,mem_module_uart_opcode
+	copy loopcnt,pdata
+	call module_hci_prepare_tx
+	copy regc,contr
+	call uart_copy_tx_bytes_fast
+	branch module_hci_transmit_tx
+endif
+	
+
+//****************************************************************//
+	//module_hci_prepare_tx
+	//function:write hci packet header
+	//input: pdata-----packet length  (1byte)
+	//input: mem_uart_opcode------opcode (1byte)
+	//output:contwu --- pointer to packet payload
+	//use reg: contwu,pdata
+//****************************************************************//	
+module_hci_prepare_tx:
+	jam 0x02,mem_module_uart_cmd
+	store 1,mem_module_uart_len
+	storet 8,mem_temp
+	bpatch patch18_0,mem_patch18
+	call module_set_mcu_wake_pin_high_delay
+	fetcht 8,mem_temp
+	call uarta_prepare_tx_register_push
+	fetch 3,mem_module_uart_cmd
+	istore 3,contwu
+	rtn
+
+module_hci_transmit_tx:
+	bpatch patch18_1,mem_patch18
+	branch uarta_send_register_pop
+
+module_set_mcu_wake_pin_high_delay:
+	call module_check_mcu_wake_pin_high
+	rtn true
+module_set_mcu_wake_pin_h_delay:
+	call module_set_mcu_wake_pin_high
+	fetch 4,mem_module_mcu_wake_delay_us
+	rshift2 pdata,pdata
+	rtn blank
+	branch delay
+
+module_set_mcu_wake_pin_high:
+	fetcht 1,mem_module_mcu_wake_pin
+	branch gpio_out_active
+
+module_check_mcu_wake_pin_high:
+	fetcht 1,mem_module_mcu_wake_pin
+	branch gpio_check_active
+
+module_set_mcu_wake_pin_low:
+	fetcht 1,mem_module_mcu_wake_pin
+	branch gpio_out_inactive
+
+
+
+/*********************hci command end*********************/
+
+/*********************hci ble receive data start*********************/
+
+//rega is le rx data address
+//regb is le rx data length
+//mem_le_att_handle is write handle
+module_le_receive_data:
+	storer rega,2,mem_module_le_rx_data_address
+	storer regb,2,mem_module_le_rx_data_len
+	fetch 2,mem_le_att_handle
+	store 2,mem_module_le_rx_data_handle
+	call module_check_ble_encrypt_state
+	rtn user
+	
+module_le_receive_data_ok:	
+	fetcht 2,mem_module_le_rx_data_len
+	fetch 1,mem_module_ble_data_uart_max_length
+	call not_greater_than
+	copy pdata,loopcnt
+	copy temp,pdata
+	isub loopcnt,pdata
+	store 2,mem_module_le_rx_data_len
+	call module_hci_event_receive_le_data
+	fetch 2,mem_module_le_rx_data_len
+	rtn blank
+	branch module_le_receive_data_ok
+
+/*********************hci ble receive data end*********************/
+
+module_exit_sniff:
+	fetch 2,mem_module_flag
+	rtnbit1 MOUDLE_TASK_UNSNIFF
+	call module_set_unsniff_task_flag	
+	branch app_bt_sniff_exit
+
+
+module_set_lpm_mult_2:
+	jam 2,mem_lpm_mult
+	rtn
+
+
+
+module_bb_event_timer:
+//	branch module_read_vdd_timer
+
+module_read_vdd_timer:
+	fetch 1,mem_module_read_vdd_flag
+	rtn blank
+	fetch 1,mem_module_read_vdd_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_module_read_vdd_count
+	nrtn blank
+	jam FLAG_MODULE_READ_VDD_COUNT,mem_module_read_vdd_count
+	call enable_adc
+	call vdd_calculate_by_mode
+	div pdata,0x64
+	call get_div_result
+	remainder temp
+	store 1,mem_module_vdd_quotient
+	storet 1,mem_module_vdd_remainder
+	rtn	
+	
+
+module_control_air_flow:
+	call check_uart_tx_buff
+	branch app_l2cap_flow_control_enable,positive
+	branch app_l2cap_flow_control_disable
+
+
+/**************module state *******************/
+module_set_sniff_task_flag:
+	arg MOUDLE_TASK_SNIFF,queue
+	branch module_set_state
+
+module_clear_sniff_task_flag:
+	arg MOUDLE_TASK_SNIFF,queue
+	branch module_clr_state
+
+module_set_unsniff_task_flag:
+	arg MOUDLE_TASK_UNSNIFF,queue
+	branch module_set_state
+
+module_clear_unsniff_task_flag:
+	arg MOUDLE_TASK_UNSNIFF,queue
+	branch module_clr_state
+
+module_set_le_tx_data_flag:
+	arg MODULE_FLAG_BLE_DATA_FINISH,queue
+	branch module_set_state
+	
+module_clear_le_tx_data_flag:
+	arg MODULE_FLAG_BLE_DATA_FINISH,queue
+	branch module_clr_state
+
+module_clr_state:
+	fetch 2,mem_module_flag
+	qset0 pdata
+	store 2,mem_module_flag
+	rtn
+
+module_set_state:
+	fetch 2,mem_module_flag
+	qset1 pdata
+	store 2,mem_module_flag
+	rtn
+	
+/**************module state end*******************/
+
+endif
Index: program/app_mouse.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_mouse.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_mouse.prog	(working copy)
@@ -0,0 +1,4485 @@
+
+ifdef COMPILE_MOUSE
+mouse_init:
+	call enable_authrom
+	call mouse_setting_config
+	call mouse_init_sunt
+	call mouse_dpi_config
+	rtn wake
+	call mouse_drawing_optima_init
+	call mouse_cb_fuction
+	call mouse_sensor_powerdown
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+mouse_init_wireless:	
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BTN_DOWN,mouse_start_discovery
+	call mouse_check_select_device_by_switch
+	branch mouse_start_work
+
+
+mouse_cb_fuction:
+	setarg mouse_24g_before_lpm_sleep
+	store 2,mem_cb_before_lpm_sleep
+	setarg mouse_24g_package_data
+	store 2,mem_cb_24g_transmit_data
+	setarg mouse_24g_search_dongle
+	store 2,mem_cb_24g_search_receiver
+	setarg mouse_lpm_before_common
+	store 2,mem_cb_24g_lpm_before
+	setarg mouse_le
+	store 2,mem_cb_le_process
+	setarg mouse_bt
+	store 2,mem_cb_bt_process
+	setarg mouse_process_lpm_before
+	store 2,mem_cb_before_lpm
+	setarg mouse_priority_bb_event
+	store 2,mem_cb_bb_event_process
+	setarg mouse_idle
+	store 2,mem_cb_idle_process
+	setarg mouse_before_hibernate
+	store 2,mem_cb_before_hibernate
+	setarg mouse_le_bb_event_connect_complete
+	store 2,mem_cb_att_write	
+	setarg mouse_bb_event_timer
+	store 2,mem_cb_event_timer
+	setarg mouse_spi_write_flash_cb
+	store 2,mem_cb_spi_flash_write_complate
+	setarg mouse_lpm_check_wake_lock
+	store 2,mem_cb_check_wakelock
+	setarg mouse_le_transmit
+	store 2,mem_cb_ble_transmit
+	setarg mouse_bt_slave_match
+	store 2,mem_cb_bt_slave_match
+	setarg mouse_set_lpm_mult
+	store 2,mem_cb_bt_set_mult
+	rtn
+
+
+mouse_setting_config:
+	rtn wake
+	call g24_transmit_init
+	call g24_chmap_param_init
+	call mouse_gpio_init
+	call mouse_param_init
+	call le_set_config_fixed_ltk
+	call le_set_justwork
+	call le_set_fixed_ltk
+	call le_set_config_read_authentication
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_load_eeprom_info_check
+	bbit1 MOUSE_ENABLE_FLASH,mouse_load_flash_info_check
+	rtn
+	
+mouse_xtal_init:
+	jam 0x08,mem_fcomp_div		// 0x08--16M 
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_16M
+	jam 0x18,mem_fcomp_div		// 0x18--24M
+	rtn
+
+mouse_default_init:
+	fetch 2,mem_mouse_discovery_timeout
+	store 2,mem_discovery_timeout
+
+	fetch 2,mem_mouse_24g_pair_timeout_init
+	store 2,mem_24g_pair_timeout_init
+
+	fetch 1,mem_mouse_24g_reconn_timeout_init
+	store 2,mem_24g_reconn_timeout_init
+
+	fetch 5,mem_rssi_dis_min_24g_init
+	store 5,mem_rssi_dis_min_24g
+
+	fetch 1,mem_mouse_24g_pair_tx_power
+	store 1,mem_24g_pair_tx_power
+
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_ADC_ENABLE,pdata
+	call mouse_adc_read_enable,true
+
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_24G_250HZ_ENABLE,pdata
+	call mouse_24g_set_250Hz,true
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_SEARCH_DONGLE_ENABLE,pdata
+	call mouse_24g_search_dongle_enable,true
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_CLK_16M_ENABLE,pdata
+	call mouse_16M_enable,true
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_DPI_4_LEVEL_ENABLE,pdata
+	call mouse_dpi_4level_enable,true
+	fetch 1,mem_mouse_enable_flag
+	isolate1 MOUSE_KEYBOARD_ENABLE,pdata
+	call mouse_customer_key_enable,true
+	
+	fetch 1,mem_24g_ch_map_update
+	ncall g24_chamap_param_update,blank
+
+	call mouse_xtal_init
+	call mouse_adc_vol_init	
+	call g24_enable_1M
+	call mouse_24g_long_sleep_set
+	branch g24_pair_param_init
+	
+mouse_param_init:
+	setarg MOUSE_BT_SDP_ADDR				//bt sdp start address
+	store 2,mem_ui_uuid_table
+	setarg MOUSE_BLE_ATT_LIST_ADDR				//ble attlist start address
+	store 2,mem_ui_le_uuid_table
+	setarg 0x2580
+	store 3,mem_class
+	jam 3,mem_lpm_mult_timeout
+	jam 8,mem_lpm_overhead
+	jam DPI_BUTTON_STATE_UP,mem_select_device_button_statue
+	jam PB_BUTTON_STATE_UP,mem_select_device_button_statue
+	jam COMMBINATION_KEY_STATE_UP,mem_commbination_key_statue	
+	setarg 0x0200
+	store 2,mem_lpm_interval
+	jam 0x17,mem_le_local_mtu
+	jam 0x17,mem_le_remote_mtu
+//===========init spi param==============================
+	setarg 0x0a77
+	store 2,mem_spi_init_clk
+//===========all 16bit uuid==================================
+	setsect 0,0x306
+	setsect 1,0x4440
+	setsect 2,0x10000
+	setsect 3,0x4408
+	store 9,mem_all_uuid_16bits
+	setsect 0,0x1224
+	setsect 1,0x4000
+	setsect 2,0x0
+	istore 5,contw
+//===========features=====================================
+	setsect 0,0x3ffff
+	setsect 1,0x2fe23
+	setsect 2,0x199d9
+	setsect 3,0x20d
+	store 8,mem_features
+//======================================================	
+	setarg mem_le_tx_buffer0_omemalloc
+	store 2,mem_ble_l2cap_tx_buff0_ptr
+	setarg MOUSE_BLE_L2CAP_TXBUFF_SIZE
+	store 2,mem_ble_l2cap_tx_buff_size_ptr
+	
+	call mouse_device_led_all_off
+	call mouse_device_poweron_timer_init
+	call mouse_adc_gpio_mux_init
+
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_BT_125Hz,mouse_param_init_intervl_end
+	jam CLASSIC_INTERVAL_7_5MS,mem_sniff_param_interval
+	setarg LE_INTERVAL_7_5MS
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+mouse_param_init_intervl_end:
+	call g24_interval_param_8ms
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_250Hz,mouse_24g_short_sleep_set_end
+	call g24_interval_param_4ms
+mouse_24g_short_sleep_set_end:
+	fetch 1,mem_device_flag
+	store 1,mem_device_flag_temp
+	fetch 3,mem_le_lap+3
+	store 3,mem_mouse_le_lap_temp
+	fetch 1,mem_adc_config_flag_init
+	and pdata,0xfe,pdata		// hvin = vinlpm
+	store 1,mem_adc_config_flag_init
+	store 1,mem_adc_config_flag
+	setarg 0
+	store 7,mem_mouse_key
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_bt_discovery_count
+	store 1,mem_select_device_count
+	call le_modified_name
+	branch mouse_sensor_set_angle
+
+
+mouse_start_work:
+	bpatch patch18_2,mem_patch18
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING, mouse_24g_first_start_auto_pair_mode
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_start_mode
+	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
+	nbranch mouse_buletooth_fast_conn_init,user
+mouse_start_reconnect_device:
+	bpatch patch18_3,mem_patch18
+	arg mem_device1_type,rega
+	fetch 1,mem_device_flag
+	increase -1,pdata
+	mul32 pdata,29,pdata
+	iadd rega,rega
+	ifetch 1,rega
+	store 1,mem_xrecord_mode
+mouse_start_reconnect:	
+	fetch 1,mem_xrecord_mode
+	beq REC_3_MODE,mouse3_0_check_reconn_target
+	beq REC_4_MODE,mouse4_0_check_reconn_target
+	branch mouse_start_discovery
+
+
+mouse_wakeup_from_power_check:
+	bpatch patch18_4,mem_patch18
+	disable user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_WAKEUP_FROM_POWER,mouse_wakeup_from_power
+	fetch 1,mem_wakup_from_power_flag
+	bbit0 BIT_POWER_ON,mouse_wakeup_from_power
+	enable user		// mouse power on
+mouse_wakeup_from_power:
+	fetch 1,mem_reconn_times_init
+	store 1,mem_reconn_times
+	rtn
+
+
+mouse3_0_check_reconn_target:
+	fetcht 2,mem_mouse_fast_page_to
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse3_0_check_reconn_target_next
+	fetcht 2,mem_mouse_page_to
+mouse3_0_check_reconn_target_next:	
+	storet 2,mem_page_to
+	fetch 6,mem_hci_plap
+	branch app_bt_start_discovery_short,blank
+	jam 0x17,mem_app_connection_options  //ssp
+	fetch 1,mem_ssp_enable
+	nbranch app_bt_start_reconnect,blank
+	jam 0x04,mem_app_connection_options  //no ssp
+	branch app_bt_start_reconnect
+	
+mouse4_0_check_reconn_target:
+	jam 1,mem_mouse_le_reconnect_flag
+	fetcht 1,mem_mouse_fast_direct_timeout
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse4_0_check_reconn_target_next
+	fetcht 1,mem_mouse_direct_timeout
+mouse4_0_check_reconn_target_next:	
+	storet 1,mem_mouse_direct_timer
+	call app_lpm_mult_disable
+	fetch 3,mem_le_adv_direct_ind
+	store 3,mem_le_adv_data+4
+	call mouse_le_check_adv_flag
+	setarg ADV_FLAG_BREDR_NOT_SUPPORTED
+	istore 1,contr
+	arg mem_le_scan_data,contr
+	call mouse_le_adv_data_update
+	branch check_51cmd_adv
+
+
+/*****************system clk***********************************/
+mouse_lpm_check_wake_lock:
+	bmark1 mark_24g,app_get_lpm_wake_lock
+	fetch 1,mem_mouse_clear_sensor_data_flag
+	branch app_get_lpm_wake_lock,blank
+	fetch 1,mem_mouse_le_conn_param_reject
+	beq LE_LPM_DISABLE,app_get_lpm_wake_lock
+	fetch 2,mem_sdp_remote_cid
+	nbranch app_get_lpm_wake_lock,blank
+	fetch 1,mem_mouse_wheel_trigger
+	nbranch app_get_lpm_wake_lock,blank
+	branch app_put_lpm_wake_lock
+
+mouse_delay_enter_hibernata:
+	fetch 1,mem_mouse_direct_timeout
+	store 1,mem_mouse_bluetooth_reconnect_timeout
+	rtn
+
+
+mouse_app_enter_hibernate:
+	bpatch patch18_5,mem_patch18
+	call mouse_sensor_reset
+	call mouse_sensor_powerdown
+	branch app_enter_hibernate
+
+	
+mouse_before_hibernate:
+	bpatch patch18_6,mem_patch18
+	fetch 4,core_lpm_ctrl
+	set1 26,pdata
+	store 4,core_lpm_reg
+	call lpm_write_ctrl
+	call disable_authrom
+	call mouse_device_led_all_off
+	call mouse_before_hibernate_wheel_gpio_set
+	call mouse_setgpio_hibernate
+	call mouse_flash_power_down
+	fetcht 1,mem_sensor_motion_gpio
+	branch gpio_clr_wake
+
+
+mouse_setgpio_hibernate:
+	bpatch patch18_7,mem_patch18
+	call mouse_set_sdio_high
+	call clear_wake
+	call mouse_lpm_before_common
+	call mouse_gpio_pu_idle
+	fetcht 1,mem_mouse_reuse_2ice_gpio
+	call mouse_gpio_config_input_pu
+	branch mouse_gpio_set_high_impedance
+
+//set all unused gpio to pull up mode to save power	
+mouse_gpio_pu_idle:
+	arg core_gpio_conf,contr
+	arg 19,loopcnt
+mouse_gpio_pu_idle_loop:
+	ifetch 1,contr
+	nbranch mouse_gpio_pu_idle_configured,blank
+	setarg 0x40
+	add contr,-1,contw
+	istore 1,contw
+mouse_gpio_pu_idle_configured:
+	loop mouse_gpio_pu_idle_loop
+	arg core_gpio_conf1+3,pdata
+	isub contr,null
+	rtn zero
+mouse_gpio_pu_idle_ext:
+	arg 3,loopcnt
+	arg core_gpio_conf1,contr
+	branch mouse_gpio_pu_idle_loop
+	
+	
+mouse_process_lpm_before:
+	rtnmark1 mark_24g
+	call mouse_lpm_before_common
+	fetch 1,mem_lpm_current_mult
+	nrtn blank					// 7.5ms, no gpio wakeup
+	branch gpio_clr_wake
+
+mouse_lpm_before_common:
+	bpatch patch19_0,mem_patch19
+	
+	call mouse_wheel_check
+	fetch 1,mem_mouse_sensor_sclk_gpio		//set sdio high
+	arg gpcfg_output_high,temp
+ 	call gpio_config_function_int
+	call twspi_disable
+	
+	fetcht 1,mem_lbutton_gpio
+	call gpio_set_wake
+	fetcht 1,mem_rbutton_gpio
+	call gpio_set_wake
+	fetcht 1,mem_mbutton_gpio
+	call gpio_set_wake
+
+	fetcht 1,mem_bk_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_fw_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_dpi_button_gpio
+	call gpio_set_wake
+	fetcht 1,mem_config_select_device_button_gpio
+	call gpio_set_wake
+
+	fetcht 1,mem_customer_key_gpio
+	call gpio_set_wake
+	
+	fetcht 1,mem_whee_a_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_ta_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_tb_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_sensor_motion_gpio
+	branch gpio_set_wake
+
+
+//short mult: no key 
+mouse_set_mult:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,mouse_set_ble_mult
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,mouse_set_bt_mult
+	rtn
+mouse_set_ble_mult:
+	copy rega,pdata
+	nbranch le_set_config_short_mult,blank
+	branch le_clr_config_short_mult
+mouse_set_bt_mult:
+	copy rega,pdata
+	nbranch classic_bt_set_mult_short_flag,blank
+	branch classic_bt_clr_mult_short_flag
+
+/*****************system clk***********************************/
+	
+	
+/****************************adc**************************************/	
+mouse_adc_gpio_set:
+	fetch 1,mem_adc_config_flag
+	rtnne ADC_CONFIG_GPIO
+mouse_adc_gpio_check_output:
+	bpatch patch19_1,mem_patch19
+	fetcht 1,mem_adc_channel
+	sub temp,3,null
+	branch mouse_adc_gpio_4_7_set,positive
+	increase 5,temp
+	storet 1,mem_adc_channel_gpio
+mouse_adc_gpio_set_next:
+	copy temp,rega
+	call gpio_get_config
+	beq gpcfg_output_high,mouse_set_24g_led_statue
+	call mouse_clear_24g_led_statue
+	copy rega,temp
+	branch gpio_set_high_impedance
+
+mouse_adc_gpio_4_7_set:
+	increase 4,temp
+	storet 1,mem_adc_channel_gpio
+	branch mouse_adc_gpio_set_next
+
+mouse_adc_vol_init:
+	fetch 1,mem_adc_config_flag_init
+	beq ADC_CONFIG_GPIO,mouse_adc_gpio_vol_init
+	beq ADC_CONFIG_VINLPM,mouse_adc_gpio_vinlpm_init
+	jam ADC_CONFIG_VINLPM,mem_adc_config_flag_init
+	setarg 0x2c0172		// 0x0172--3.7V  0x012c--3.0V  0x0140--3.2V  0x014a--3.3V
+	store 3,mem_mouse_vdd_full_vol
+	setarg 0x014001
+	istore 3,contw
+	rtn
+mouse_adc_gpio_vol_init:	
+	setarg 0x5d0099		// 0x0099--1.5V   0x005d--0.9V  0x0068--1.0V  0x0071--1.1V
+	store 3,mem_mouse_vdd_full_vol
+	setarg 0x007100
+	istore 3,contw
+	rtn
+mouse_adc_gpio_vinlpm_init:
+	setarg 0xc8012c		// 0x012c--3.0V  0x00c8--2.0V  0x00dc--2.2V
+	store 3,mem_mouse_vdd_full_vol
+	setarg 0x00dc00
+	istore 3,contw
+	rtn
+	
+
+
+mouse_adc_gpio_mux_init:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_ADC
+	jam MOUSE_ADC_CHECK_MULTIPLE,mem_adc_mux_status
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+	rtnbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
+	jam MOUSE_ADC_CHECK_BATTERY_ONLY,mem_adc_mux_status
+	rtn
+
+mouse_adc_read_interval:	
+	fetch 1,mem_adc_read_timer
+	increase 1,pdata
+	store 1,mem_adc_read_timer
+	fetcht 1,mem_adc_read_time_init	//1s read adc
+	isub temp,null
+	rtn
+
+
+mouse_adc_read:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_ADC
+	call mouse_adc_gpio_set
+	fetch 1,mem_adc_mux_status
+	branch mouse_adc_read_battery,blank
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_GPIO,mouse_adc_read_gpio_mux_start	// gpio + dpi/switch
+	jam MOUSE_ADC_CHECK_VINLPM_MULTIPLE,mem_adc_mux_status
+	call mouse_adc_read_interval					// vinlpm + dpi/switch
+	branch  mouse_adc_read_gpio, positive
+	call mouse_adc_read_vinlpm
+	branch mouse_adc_read_start
+
+mouse_adc_read_gpio_mux_start:
+	jam MOUSE_ADC_CHECK_GPIO_MULTIPLE,mem_adc_mux_status
+	branch mouse_adc_read_start
+
+mouse_adc_read_gpio:
+	call mouse_adc_gpio_check_output
+	jam ADC_CONFIG_GPIO,mem_adc_config_flag
+	fetch 1,mem_24g_device_led_status
+	ncall mouse_adc_read_vinlpm,blank
+	branch mouse_adc_read_start
+	
+mouse_adc_read_vinlpm:
+	jam 0,mem_adc_read_timer
+	fetch 1,mem_adc_config_flag_init
+	store 1,mem_adc_config_flag
+	rtn	
+	
+mouse_adc_read_battery:		// only get battery
+	fetch 1,mem_adc_config_flag
+	bne ADC_CONFIG_GPIO,mouse_adc_read_battery_start
+	fetch 1,mem_24g_device_led_status
+	nrtn blank
+mouse_adc_read_battery_start:
+	call mouse_adc_read_interval
+	nrtn positive
+mouse_adc_read_start:
+	bpatch patch19_2,mem_patch19
+	fetch 1,mem_24g_device_led_status
+	nrtn blank
+	jam 0,mem_adc_read_timer
+	call enable_adc
+	call vdd_calculate_by_mode
+	store 2,mem_mouse_vdd_now_vol
+	fetch 1,mem_adc_config_flag
+	bne ADC_CONFIG_GPIO, mouse_adc_data_process
+	fetcht 2,mem_mouse_vdd_now_vol	// BAT= 1.5V, R = 200k, a = a*1.8
+	mul32 temp,8,pdata
+	div pdata,10
+	call get_div_result
+	iadd temp,pdata
+	store 2,mem_mouse_vdd_now_vol
+mouse_adc_data_process:	
+	arg mem_mouse_vdd_calculate_set,rega
+	call mouse_adc_bat_percent_lowpower_out
+	fetch 1,mem_adc_power_flag
+	bbit1 2,mouse_adc_button_press
+	bbit1 1,mouse_power_down
+	bbit0 0,mouse_adc_no_low_voltage
+	jam 1,mem_mouse_adc_last_low_voltage_flag
+	branch mouse_adc_low_voltage
+	
+mouse_adc_low_voltage:
+	arg MOUSE_LOW_VOLTAGE_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_adc_no_low_voltage:
+	arg MOUSE_LOW_VOLTAGE_FLAG,queue
+	call mouse_disable_function_flag
+	jam 12,mem_adc_low_volatage_led_timer_count
+	fetch 1,mem_mouse_adc_last_low_voltage_flag
+	rtn blank
+	jam 0,mem_mouse_adc_last_low_voltage_flag
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	branch mouse_led_off
+
+
+
+mouse_adc_bat_percent_lowpower_out:
+	bpatch patch19_3,mem_patch19
+	ifetch 8,rega
+	store 8,mem_pdatatemp
+	fetch 1,mem_adc_mux_status
+	beq MOUSE_ADC_CHECK_BATTERY_ONLY,mouse_adc_bat_percent_lowpower_out_battery
+	beq MOUSE_ADC_CHECK_GPIO_MULTIPLE,mouse_adc_bat_percent_lowpower_out_gpio_multiple
+	beq MOUSE_ADC_CHECK_VINLPM_MULTIPLE,mouse_adc_bat_percent_lowpower_out_vinlpm_multiple
+mouse_adc_bat_percent_lowpower_out_gpio_multiple:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC,mouse_adc_bat_percent_lowpower_out_gpio_switch
+	fetch 2,mem_pdatatemp+6		               	//now voltage
+	fetcht 2,mem_mouse_vdd_button_press_vol	// button press check
+	isub temp,null
+	nbranch mouse_adc_set_button_press_flag,positive
+	
+mouse_adc_bat_percent_lowpower_out_gpio_switch:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC,mouse_adc_bat_percent_lowpower_out_battery
+	jam 0,mem_mouse_adc_button_press_flag
+	fetch 2,mem_pdatatemp+6				    	        //now voltage	
+	fetcht 2,mem_mouse_vdd_switch_gnd_24g_vol	// switch mode check
+	isub temp,null
+	nbranch mouse_select_24gdevice,positive
+	call mouse_select_btdevice
+	branch mouse_adc_bat_percent_lowpower_out_battery
+
+mouse_select_24gdevice:
+	call mouse_check_select_24gdevice
+	branch mouse_adc_bat_percent_lowpower_out_battery
+
+
+mouse_adc_bat_percent_lowpower_out_battery:
+	call mouse_adc_clear_button_press_flag
+	call adc_clear_no_power_flag
+	call adc_clear_low_power_flag
+	fetch 2,mem_pdatatemp+6
+	fetcht 2,mem_pdatatemp+2	        //shutdown voltage
+	isub temp,null
+	ncall adc_set_no_power_flag,positive
+
+	fetcht 2,mem_pdatatemp+4		//low voltage
+	isub temp,null
+	ncall adc_set_low_power_flag,positive
+
+mouse_adc_bat_level_set:
+	fetch 2,mem_pdatatemp+6		//now voltage	
+	fetcht 2,mem_pdatatemp		//full voltage
+	isub temp,null
+	branch mouse_adc_bat_level_100_percent,positive		// now >= full
+	fetcht 2,mem_pdatatemp+2	        //shutdown voltage
+	isub temp,pdata
+	nbranch mouse_adc_bat_level_0_percent,positive		// now < shutdown
+	branch mouse_adc_bat_level_0_percent,blank			// now = shutdown
+	mul32 pdata,100,rega								// (now - shutdown)*100 /(full - shutdown)
+	fetch 2,mem_pdatatemp
+	fetcht 2,mem_pdatatemp+2
+	isub temp,temp
+	copy rega,pdata
+	idiv temp
+	call get_div_result
+	store 1,mem_le_battery_level_percentage
+	rtn
+
+mouse_adc_bat_level_100_percent:
+	jam 100,mem_le_battery_level_percentage
+	rtn
+mouse_adc_bat_level_0_percent:	
+	jam 0,mem_le_battery_level_percentage
+	rtn
+
+	
+mouse_adc_bat_percent_lowpower_out_vinlpm_multiple:
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_GPIO,mouse_adc_bat_percent_lowpower_out_gpio_multiple
+	branch mouse_adc_bat_percent_lowpower_out_battery
+	
+
+mouse_adc_set_button_press_flag:
+	fetcht 1,mem_adc_power_flag
+	set1 2,temp
+	storet 1,mem_adc_power_flag
+	rtn	
+
+mouse_adc_clear_button_press_flag:
+	fetcht 1,mem_adc_power_flag
+	set0 2,temp
+	storet 1,mem_adc_power_flag
+	rtn		
+
+mouse_adc_button_press:
+	jam 1,mem_mouse_adc_button_press_flag
+	rtn
+
+mouse_power_down:
+	call mouse_device_led_all_off
+	branch mouse_app_enter_hibernate
+	
+/****************************adc**************************************/	
+
+/****************************gpio******************************************/
+mouse_gpio_init:
+	fetcht 1,mem_eeprom_wp_gpio
+	call gpio_config_output
+	call usb_offline_check_init
+	fetcht 1,mem_lbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_rbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_mbutton_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_bk_button_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_fw_button_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_dpi_button_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_matrix_public_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_config_select_device_button_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_customer_key_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_a_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_b_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_ta_data_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_whee_tb_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_sensor_motion_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_device_switch_gpio
+	call mouse_gpio_config_input_pu
+	
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_24g_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_config_device_bt1_led_gpio
+	call gpio_config_output
+	
+	fetcht 1,mem_config_device_bt2_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_dpi_led_gpio
+	call gpio_config_output
+
+	fetcht 1,mem_select_sensor_angle_gpio
+	branch mouse_gpio_config_input_pu
+
+
+mouse_gpio_set_pupd_by_input:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	and temp,0x7f,queue
+	fetch 4,core_gpio_in
+	qisolate1 pdata
+	branch mouse_gpio_config_input_pu,true
+	branch mouse_gpio_config_input_pd
+
+	
+mouse_gpio_config_input_pd:
+	set1 gpio_active_bit,temp
+	branch gpio_config_input
+
+mouse_gpio_config_input_pu:
+	set0 gpio_active_bit,temp
+	branch gpio_config_input
+
+mouse_gpio_set_high_impedance:
+	fetch 3,mem_mouse_set_high_impedance_bit_set
+	store 3,mem_pdatatemp
+	arg 20,loopcnt
+	arg 0,temp
+mouse_gpio_set_high_impedance_bit_loop:	
+	fetch 3,mem_pdatatemp
+	isolate1 0,pdata
+	call gpio_set_high_impedance,true
+	fetch 3,mem_pdatatemp
+	lshift pdata,pdata
+	store 3,mem_pdatatemp
+	increase 1,temp
+	loop mouse_gpio_set_high_impedance_bit_loop
+	rtn
+
+
+
+/****************************gpio******************************************/
+
+/*******************spi*****************************/
+mouse_sensor_spi_init:
+	call mouse_spid_init_pin
+	jam 0x73,mem_spi_init_clk
+//	jam 0x1e,mem_spi_init_delay_time
+	call mouse_spi_init
+	branch twspi_enable
+	
+mouse_spi_write_flash_cb:
+mouse_spi_init:
+	branch spid_init
+	
+mouse_spid_init_pin:
+	fetch 1,mem_mouse_sensor_sclk_gpio
+ 	arg gpcfg_spid_sck,temp
+ 	call gpio_config_function_int
+ 	fetch 1,mem_mouse_sensor_sdio_gpio
+ 	arg gpcfg_spid_sdio,temp
+ 	branch gpio_config_function_int
+
+
+/*******************spi*****************************/
+
+
+
+
+mouse_motion:
+	bpatch patch19_4,mem_patch19
+	disable user
+	setarg 0
+	store 6,mem_mouse_x
+	call mouse_check_sensor_data
+	call mouse_zwheel
+	call mouse_t_zwheel
+	call mouse_key
+	fetch 1,mem_mouse_key
+	and_into 0x1f,pdata
+	store 1,mem_mouse_key
+	nbranch mouse_drawing_optima_init,user
+	call mouse_drawing_optima
+	branch mouse_no_data_timer_init
+
+	
+
+/*******************wheel*************************/
+mouse_zwheel:
+	fetch 1,mem_mouse_z_data
+	rtn blank	
+	store 1,mem_mouse_z
+	jam 0,mem_mouse_z_data
+	branch enable_user
+	
+mouse_t_zwheel:
+	fetch 1,mem_mouse_tz_data
+	rtn blank	
+	store 1,mem_mouse_tz
+	jam 0,mem_mouse_tz_data
+	branch enable_user
+
+mouse_wheel_check:
+	call mouse_t_wheel_scan
+	call mouse_wheel_scan
+	fetch 1,mem_wheel_tb_new_pinlevel
+	fetcht 1,mem_wheel_tb_old_pinlevel
+	store 1,mem_wheel_tb_old_pinlevel
+	isub temp,null
+	nbranch app_lpm_wake_auto_lock,zero
+	fetch 1,mem_mwheel_b_new_pinlevel
+	fetcht 1,mem_mwheel_b_old_pinlevel
+	store 1,mem_mwheel_b_old_pinlevel
+	isub temp,null
+	nbranch app_lpm_wake_auto_lock,zero
+	rtn
+mouse_t_wheel_scan:
+	fetch 1,mem_whee_ta_data_gpio
+	rtneq GPIO_DISABLE
+	arg 0,rega
+	fetcht 1,mem_whee_ta_data_gpio
+	call gpio_get_bit
+	setflag true,0,rega
+	fetcht 1,mem_whee_tb_data_gpio
+	call gpio_get_bit
+	setflag true,1,rega
+	copy rega,pdata
+	store 1,mem_wheel_tb_new_pinlevel
+	beq 0x01,mouse_t_wheel_scan_judge1
+	beq 0x02,mouse_t_wheel_scan_judge2
+	fetch 1,mem_wheel_tog
+	bbit1 7,mouse_t_wheel_scan_judge3
+	rtn
+
+mouse_t_wheel_scan_judge1:
+	fetch 1,mem_wheel_tb_old_pinlevel
+	beq 0,mouse_t_wheel_scan_judge11
+	beq 3,mouse_t_wheel_scan_judge12
+	rtn
+mouse_t_wheel_scan_judge2:
+	fetch 1,mem_wheel_tb_old_pinlevel
+	beq 0,mouse_t_wheel_scan_judge21
+	beq 3,mouse_t_wheel_scan_judge22
+	rtn
+mouse_t_wheel_scan_judge11:
+	jam 0x82,mem_wheel_tog
+	rtn
+mouse_t_wheel_scan_judge12:
+	jam 0x81,mem_wheel_tog
+	rtn
+mouse_t_wheel_scan_judge21:
+	jam 0x80,mem_wheel_tog
+	rtn
+mouse_t_wheel_scan_judge22:
+	jam 0x83,mem_wheel_tog
+	rtn
+mouse_t_wheel_scan_judge3:
+	fetch 1,mem_wheel_tog
+	set0 7,pdata
+	store 1,mem_wheel_tog
+	beq 0,mouse_t_wheel_scan_judge30
+	beq 1,mouse_t_wheel_scan_judge31
+	beq 2,mouse_t_wheel_scan_judge32
+	beq 3,mouse_t_wheel_scan_judge33
+	rtn
+mouse_t_wheel_scan_judge30:
+	fetch 1,mem_wheel_tb_new_pinlevel
+	beq 3,mouse_wheel_t_forward
+	rtn
+mouse_t_wheel_scan_judge31:
+	fetch 1,mem_wheel_tb_new_pinlevel
+	beq 0,mouse_wheel_t_forward
+	rtn
+mouse_t_wheel_scan_judge32:
+	fetch 1,mem_wheel_tb_new_pinlevel
+	beq 3,mouse_wheel_t_back
+	rtn
+mouse_t_wheel_scan_judge33:
+	fetch 1,mem_wheel_tb_new_pinlevel
+	beq 0,mouse_wheel_t_back
+	rtn
+mouse_wheel_t_forward:
+	fetch 1,mem_mouse_tz_data
+	increase 1,pdata
+	store 1,mem_mouse_tz_data
+	rtn
+mouse_wheel_t_back:
+	fetch 1,mem_mouse_tz_data
+	increase -1,pdata
+	store 1,mem_mouse_tz_data
+	rtn
+
+
+mouse_wheel_scan:
+	fetch 1,mem_whee_a_data_gpio
+	rtneq GPIO_DISABLE
+	arg 0,rega
+	fetcht 1,mem_whee_a_data_gpio
+	call gpio_get_bit
+	setflag true,0,rega
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_get_bit
+	setflag true,1,rega
+	copy rega,pdata
+	store 1,mem_mwheel_b_new_pinlevel
+	beq 0x01,mouse_wheel_scan_judge1
+	beq 0x02,mouse_wheel_scan_judge2
+	fetch 1,mem_mwheel_tog
+	bbit1 7,mouse_wheel_scan_judge3
+	rtn
+
+mouse_wheel_scan_judge1:
+	fetch 1,mem_mwheel_b_old_pinlevel
+	beq 0,mouse_wheel_scan_judge11
+	beq 3,mouse_wheel_scan_judge12
+	rtn
+mouse_wheel_scan_judge2:
+	fetch 1,mem_mwheel_b_old_pinlevel
+	beq 0,mouse_wheel_scan_judge21
+	beq 3,mouse_wheel_scan_judge22
+	rtn
+mouse_wheel_scan_judge11:
+	jam 0x82,mem_mwheel_tog
+	rtn
+mouse_wheel_scan_judge12:
+	jam 0x81,mem_mwheel_tog
+	rtn
+mouse_wheel_scan_judge21:
+	jam 0x80,mem_mwheel_tog
+	rtn
+mouse_wheel_scan_judge22:
+	jam 0x83,mem_mwheel_tog
+	rtn
+mouse_wheel_scan_judge3:
+	fetch 1,mem_mwheel_tog
+	set0 7,pdata
+	store 1,mem_mwheel_tog
+	beq 0,mouse_wheel_scan_judge30
+	beq 1,mouse_wheel_scan_judge31
+	beq 2,mouse_wheel_scan_judge32
+	beq 3,mouse_wheel_scan_judge33
+	rtn
+mouse_wheel_scan_judge30:
+	fetch 1,mem_mwheel_b_new_pinlevel
+	beq 3,mouse_wheel_forward
+	rtn
+mouse_wheel_scan_judge31:
+	fetch 1,mem_mwheel_b_new_pinlevel
+	beq 0,mouse_wheel_forward
+	rtn
+mouse_wheel_scan_judge32:
+	fetch 1,mem_mwheel_b_new_pinlevel
+	beq 3,mouse_wheel_back
+	rtn
+mouse_wheel_scan_judge33:
+	fetch 1,mem_mwheel_b_new_pinlevel
+	beq 0,mouse_wheel_back
+	rtn
+mouse_wheel_forward:
+	fetch 1,mem_mouse_z_data
+	increase 1,pdata
+	store 1,mem_mouse_z_data
+	rtn
+mouse_wheel_back:
+	fetch 1,mem_mouse_z_data
+	increase -1,pdata
+	store 1,mem_mouse_z_data
+	rtn
+
+
+mouse_wheel_gpio_set_wake:
+	fetcht 1,mem_whee_a_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_ta_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_tb_data_gpio
+	branch gpio_set_wake_by_current_state
+	
+mouse_before_hibernate_wheel_gpio_set:
+	fetcht 1,mem_whee_a_data_gpio
+	call mouse_gpio_set_pupd_by_input
+	fetcht 1,mem_whee_b_data_gpio
+	call mouse_gpio_set_pupd_by_input
+	fetcht 1,mem_whee_ta_data_gpio
+	call mouse_gpio_set_pupd_by_input
+	fetcht 1,mem_whee_tb_data_gpio
+	branch mouse_gpio_set_pupd_by_input
+
+mouse_wheel_trigger:
+	fetch 2,mem_mouse_z
+	rtn blank
+	jam 1,mem_mouse_wheel_trigger
+	jam 10,mem_mouse_wheel_trigger_timer
+	rtn
+
+mouse_wheel_trigger_timer:
+	arg mem_mouse_wheel_trigger_timer,regc
+	arg mouse_wheel_trigger_disable,regb
+	branch timer_single_step
+mouse_wheel_trigger_disable:
+	jam 0,mem_mouse_wheel_trigger
+	rtn
+
+
+/*
+mouse_set_qdecoder_x:
+	arg MOUSE_DEFAULT_XA_GPIO,temp
+	call mouse_gpio_config_input_pu
+	arg MOUSE_DEFAULT_XA_GPIO,temp
+	call gpio_get_bit
+	rtn true
+	fetch 1,core_qdec_cntx
+	set1 4,pdata
+	store 1,core_qdec_cntx
+	rtn
+*/	
+	
+/*******************wheel*************************/
+
+
+
+/********************dpi******************************/
+mouse_dpi_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC,mouse_dpi_check_connect_adc
+	fetch 1,mem_dpi_button_gpio
+	rtneq GPIO_DISABLE
+	arg 0,rega
+	jam MOUSE_DPI_KEY,mem_mouse_key_temp
+	fetcht 1,mem_dpi_button_gpio
+	call mouse_dpi_key_check
+	store 1,mem_mouse_dpikey_press_status
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_dpi_check_end
+	call mouse_matrix_public_gpio_reset
+mouse_dpi_check_exit:	
+	copy rega,pdata
+	bbit1 MOUSE_DPI_KEY,mouse_dpi_down
+	branch mouse_dpi_up
+
+mouse_dpi_check_connect_adc:
+	fetch 1,mem_mouse_adc_button_press_flag
+	branch mouse_dpi_up,blank
+	branch mouse_dpi_down
+	
+mouse_dpi_key_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_GND,mouse_dpi_key_connect_gnd
+	fetch 1,mem_mouse_dpikey_press_status
+	copy pdata,regc
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_check
+	fetch 1,mem_mouse_ghost_flag
+	nbranch mouse_dpi_check_end,blank
+	branch mouse_dpi_key_connect_matrix	
+
+mouse_3io6key_dpi_check_end:
+	fetcht 1,mem_dpi_button_gpio
+	call mouse_gpio_config_input_pu
+	branch mouse_dpi_check_exit
+
+mouse_dpi_check_end:
+	jam DPI_BUTTON_STATE_UP,mem_mouse_dpi_button_state
+	jam 0,mem_mouse_dpikey_press_status
+	rtn
+
+mouse_dpi_key_connect_gnd:
+	fetch 1,mem_mouse_dpikey_press_status
+	branch mouse_check_key_connect_gnd
+
+mouse_dpi_key_connect_matrix:
+	call gpio_get_bit
+	fetcht 1,mem_matrix_public_gpio
+	branch mouse_dpi_key_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_dpi_button_gpio
+	fetch 1,mem_mouse_dpikey_press_status
+	branch mouse_check_key_connect_gnd
+
+
+mouse_dpi_down:
+	fetch 1,mem_mouse_dpi_button_state
+	rtneq DPI_BUTTON_STATE_DOWN
+	jam DPI_BUTTON_STATE_DOWN,mem_mouse_dpi_button_state
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+	branch mouse_dpi_process
+
+mouse_dpi_up:
+	fetch 1,mem_mouse_dpi_button_state
+	rtneq DPI_BUTTON_STATE_UP
+	jam DPI_BUTTON_STATE_UP,mem_mouse_dpi_button_state
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON,mouse_dpi_up_next
+	bbit1 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY,mouse_dpi_up_next
+	rtn
+mouse_dpi_up_next:	
+	fetch 1,mem_mouse_dpi_long_press_flag
+	nbranch mouse_dpi_up_after_long_press,blank
+	fetch 1,mem_select_device_count
+	ncall mouse_dpi_process,blank
+mouse_dpi_up_after_long_press:	
+	jam 0,mem_mouse_dpi_long_press_flag
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_select_device_count	
+	store 1,mem_bt_discovery_count	
+	rtn
+	
+mouse_dpi_process:	
+	bpatch patch19_5,mem_patch19
+	call mouse_dpi_ghost_check
+	rtn user
+	fetch 1,mem_mouse_dpi
+	increase 1,pdata
+	and pdata,0x03,pdata
+	store 1,mem_mouse_dpi
+	call mouse_seting_dpi
+	branch mouse_store_device_info_delay
+
+mouse_dpi_ghost_check:
+	disable user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+	rtnbit1 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+	fetch 1,mem_mouse_lkey_press_status
+	rtn blank
+	fetch 1,mem_mouse_rkey_press_status
+	rtn blank
+	enable user
+	rtn
+	
+
+mouse_dpi_key_check_long_press:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON,mouse_select_device_by_dpi_button
+	bbit1 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY,mouse_discovery_by_dpi_button
+	rtn
+
+
+mouse_select_device_by_dpi_button:
+	fetch 1,mem_mouse_dpi_button_state
+	rtnne DPI_BUTTON_STATE_DOWN	
+	arg mem_select_device_count,regc
+	arg mouse_ready_reconnection_by_dpi_button,regb
+	branch timer_single_step
+
+mouse_ready_reconnection_by_dpi_button:
+	jam 1,mem_mouse_dpi_long_press_flag
+	branch mouse_ready_reconnection_by_button
+
+mouse_discovery_by_dpi_button:
+	fetch 1,mem_mouse_dpi_button_state
+	rtnne DPI_BUTTON_STATE_DOWN	
+	arg mem_bt_discovery_count,regc
+	arg mouse_long_dpi_button_bt_discovery,regb
+	branch timer_single_step
+
+mouse_long_dpi_button_bt_discovery:
+	jam 1,mem_mouse_dpi_long_press_flag
+	branch mouse_long_button_bt_discovery
+
+
+
+mouse_dpi_config:
+	branch mouse_seting_sensor_type
+
+
+mouse_setting_dpi_4_level:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_DPI_LEVEL_4
+	fetch 1,mem_mouse_dpi
+	rtnne MOUSE_DPI_LEVEL4
+	jam MOUSE_DPI_LEVEL1,mem_mouse_dpi
+	rtn
+	
+
+mouse_seting_dpi:
+	bpatch patch19_6,mem_patch19
+	call mouse_setting_dpi_4_level
+	call mouse_dpi_led_blink_delay
+mouse_seting_sensor_type:
+	fetch 1,mem_config_sensor_type
+	beq P3212,mouse_seting_3212_dpi
+	beq KA8G2,mouse_seting_ka8g2_dpi
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,mouse_set_cpi0		//1200
+	beq MOUSE_DPI_LEVEL2,mouse_set_cpi1		//1600
+	beq MOUSE_DPI_LEVEL3,mouse_set_cpi2		//800
+	beq MOUSE_DPI_LEVEL4,mouse_set_cpi3		//1000
+mouse_set_cpi1:	//320x+8009
+	fetcht 1,mem_320x_dpi_1
+	branch mouse_dpi_store
+mouse_set_cpi0:
+	fetcht 1,mem_320x_dpi_0
+	branch mouse_dpi_store
+mouse_set_cpi2:
+	fetcht 1,mem_320x_dpi_2
+	branch mouse_dpi_store
+mouse_set_cpi3:
+	fetcht 1,mem_320x_dpi_3
+	branch mouse_dpi_store
+
+mouse_dpi_store:
+	fetch 1,mem_config_sensor_type
+	beq P3065_XY,mouse_3065xy_set_dpi
+	beq MX8650,mouse_3065xy_set_dpi
+	beq KA8,mouse_ka8_set_dpi
+	beq P6520,mouse_ka8_set_dpi
+	beq P8009,mouse_3065xy_set_dpi
+mouse_dpi_write:		// 3205  1  2  3  4
+	storet 1,mem_mouse_cpi_count
+	setarg MOUSE_DPI_ADDRESS
+	call twspi_read
+	and pdata,0xf8,temp
+	fetch 1,mem_mouse_cpi_count
+	iadd temp,pdata
+	lshift8 pdata,pdata
+	add pdata,MOUSE_DPI_ADDRESS,pdata
+	branch twspi_write
+
+mouse_3065xy_set_dpi:	// 0 1 2 3
+	increase -1,temp
+	branch mouse_dpi_write
+
+mouse_ka8_set_dpi:	// 3 4 5 6
+	increase 2,temp
+	branch mouse_dpi_write
+
+mouse_seting_3212_dpi:
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,mouse_set_p3212_cpi0	//1200
+	beq MOUSE_DPI_LEVEL2,mouse_set_p3212_cpi1	//1600
+	beq MOUSE_DPI_LEVEL3,mouse_set_p3212_cpi2	//2400
+	beq MOUSE_DPI_LEVEL4,mouse_set_p3212_cpi3	//800
+mouse_set_p3212_cpi1:
+	fetch 1,mem_3212_dpi_1
+	branch mouse_p3212_dpi
+mouse_set_p3212_cpi0:
+	fetch 1,mem_3212_dpi_0
+	branch mouse_p3212_dpi
+mouse_set_p3212_cpi2:
+	fetch 1,mem_3212_dpi_2
+	branch mouse_p3212_dpi
+mouse_set_p3212_cpi3:
+	fetch 1,mem_3212_dpi_3
+mouse_p3212_dpi:
+	store 1,mem_mouse_cpi_count
+	lshift8 pdata,pdata
+	copy pdata,rega
+	add pdata,MOUSE_P3212_DPI_XADDRESS,pdata
+  	call twspi_write
+ 	copy rega,pdata
+  	add pdata,MOUSE_P3212_DPI_YADDRESS,pdata
+	branch twspi_write
+
+mouse_seting_ka8g2_dpi:
+	fetch 1,mem_mouse_dpi
+	beq MOUSE_DPI_LEVEL1,mouse_set_pka8g2_cpi0		//1600
+	beq MOUSE_DPI_LEVEL2,mouse_set_pka8g2_cpi1		//2400
+	beq MOUSE_DPI_LEVEL3,mouse_set_pka8g2_cpi2		//3200
+	beq MOUSE_DPI_LEVEL4,mouse_set_pka8g2_cpi3		//800
+mouse_set_pka8g2_cpi1:
+	fetch 1,mem_ka8g2_dpi_1
+	branch mouse_p3212_dpi
+
+mouse_set_pka8g2_cpi0:
+	fetch 1,mem_ka8g2_dpi_0
+	branch mouse_p3212_dpi
+	
+mouse_set_pka8g2_cpi2:
+	fetch 1,mem_ka8g2_dpi_2
+	branch mouse_p3212_dpi
+
+mouse_set_pka8g2_cpi3:
+	fetch 1,mem_ka8g2_dpi_3
+	branch mouse_p3212_dpi
+
+		
+/********************dpi******************************/		
+
+
+/***********************key******************************/
+
+mouse_key:
+	call mouse_check_key_gpio
+	call mouse_ghost_key_check
+	call mouse_set_mult
+	call mouse_24g_key
+	copy rega,pdata
+	fetcht 1,mem_mouse_key_last
+	store 1,mem_mouse_key_last
+	store 1,mem_mouse_key
+	ixor temp,pdata
+	sub pdata,0,null
+	rtn zero
+	branch enable_user
+
+mouse_24g_key:
+	rtnmark0 mark_24g
+	copy rega,pdata
+	rtn blank
+	store 1,mem_mouse_key
+	branch enable_user
+
+mouse_ghost_key_check:
+	jam 0,mem_mouse_matrix_key_cow_count
+	jam 0,mem_mouse_matrix_key_row_count
+	jam 0,mem_mouse_ghost_flag
+	copy pdata,temp
+	call mouse_ghost_key_check_L_BK
+	call mouse_ghost_key_check_M_FW
+	call mouse_ghost_key_check_BK_FW
+	call mouse_ghost_key_check_LMR
+	fetch 1,mem_mouse_matrix_key_row_count
+	rtn blank
+	fetch 1,mem_mouse_matrix_key_cow_count
+	rtn blank
+	jam 1,mem_mouse_ghost_flag
+	fetch 1,mem_mouse_key_last		// matrix have ghost key
+	copy pdata,rega
+	rtn
+
+mouse_ghost_key_check_L_BK:
+	and temp,MOUSE_L_BK_BUTTON,pdata
+	beq MOUSE_L_BK_BUTTON,mouse_matrix_cow_more_than_one_key
+	rtn
+mouse_ghost_key_check_M_FW:
+	and temp,MOUSE_M_FW_BUTTON,pdata
+	beq MOUSE_M_FW_BUTTON,mouse_matrix_cow_more_than_one_key
+	rtn
+mouse_ghost_key_check_BK_FW:
+	and temp,MOUSE_BK_FW_BUTTON,pdata
+	beq MOUSE_BK_FW_BUTTON,mouse_matrix_row_more_than_one_key
+	rtn	
+
+mouse_ghost_key_check_LMR:
+	and temp,MOUSE_LMR_BUTTON,pdata	// key LMR press
+	beq MOUSE_LR_BUTTON,mouse_matrix_row_more_than_one_key
+	beq MOUSE_LM_BUTTON,mouse_matrix_row_more_than_one_key
+	beq MOUSE_RM_BUTTON,mouse_matrix_row_more_than_one_key
+	beq MOUSE_LMR_BUTTON,mouse_matrix_row_more_than_one_key
+	rtn
+
+
+mouse_matrix_row_more_than_one_key:
+	jam 1,mem_mouse_matrix_key_row_count
+	rtn
+
+mouse_matrix_cow_more_than_one_key:
+	jam 1,mem_mouse_matrix_key_cow_count
+	rtn
+
+mouse_key_check_once:
+	call mouse_check_key_gpio_once
+	call mouse_check_key_gpio
+	setarg 0x00
+	store 3,mem_mouse_lkey_press_status
+	rtn
+	
+mouse_check_key_gpio:
+	bpatch patch19_7,mem_patch19
+	fetch 1,mem_sensor_shutdown_flag
+	ncall mouse_check_key_gpio_once,blank
+	arg 0,rega
+	call mouse_check_lkey_gpio
+	call mouse_check_rkey_gpio
+	call mouse_check_mkey_gpio
+	call mouse_check_bkkey_gpio
+	call mouse_check_fwkey_gpio
+	call mouse_check_customerkey_gpio
+	copy rega,pdata
+	rtn
+
+mouse_check_key_gpio_once:
+	setarg 0x030303
+	store 3,mem_mouse_lkey_press_status
+	rtn
+
+mouse_check_lkey_gpio:
+	jam MOUSE_L_KEY,mem_mouse_key_temp
+	fetcht 1,mem_lbutton_gpio
+	fetch 1,mem_mouse_lkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_lkey_press_status
+	rtn
+
+mouse_check_rkey_gpio:
+	jam MOUSE_R_KEY,mem_mouse_key_temp
+	fetcht 1,mem_rbutton_gpio
+	fetch 1,mem_mouse_rkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_rkey_press_status
+	rtn
+	
+mouse_check_mkey_gpio:
+	jam MOUSE_M_KEY,mem_mouse_key_temp
+	fetcht 1,mem_mbutton_gpio
+	fetch 1,mem_mouse_mkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_mkey_press_status
+	rtn
+
+mouse_check_bkkey_gpio:
+	fetch 1,mem_bk_button_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_BK_KEY,mem_mouse_key_temp
+	fetch 1,mem_mouse_bkkey_press_status
+	copy pdata,regc
+	fetcht 1,mem_bk_button_gpio
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_bk_check
+	call gpio_get_bit
+	branch mouse_check_bk_button_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_bk_button_gpio
+	fetch 1,mem_mouse_bkkey_press_status
+	call mouse_check_key_connect_gnd
+mouse_check_bkkey_gpio_end:	
+	store 1,mem_mouse_bkkey_press_status
+	branch mouse_matrix_public_gpio_reset
+
+mouse_check_bk_button_connect_gnd:
+	fetcht 1,mem_matrix_public_gpio
+	fetch 1,mem_mouse_bkkey_press_status
+	call mouse_check_key_connect_gnd
+	branch mouse_check_bkkey_gpio_end
+
+mouse_3io6key_bk_check:
+	call mouse_3io6key_check
+	store 1,mem_mouse_bkkey_press_status
+	fetcht 1,mem_bk_button_gpio
+	branch mouse_gpio_config_input_pu
+
+
+mouse_check_fwkey_gpio:
+	fetch 1,mem_fw_button_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_FW_KEY,mem_mouse_key_temp
+	fetch 1,mem_mouse_fwkey_press_status
+	copy pdata,regc
+	fetcht 1,mem_fw_button_gpio
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_fw_check
+	call gpio_get_bit
+	branch mouse_check_fw_button_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_fw_button_gpio
+	fetch 1,mem_mouse_fwkey_press_status
+	call mouse_check_key_connect_gnd
+mouse_check_fwkey_gpio_end:	
+	store 1,mem_mouse_fwkey_press_status
+	branch mouse_matrix_public_gpio_reset
+
+mouse_check_fw_button_connect_gnd:
+	fetcht 1,mem_matrix_public_gpio
+	fetch 1,mem_mouse_fwkey_press_status
+	call mouse_check_key_connect_gnd
+	branch mouse_check_fwkey_gpio_end	
+
+mouse_3io6key_fw_check:
+	call mouse_3io6key_check
+	store 1,mem_mouse_fwkey_press_status
+	fetcht 1,mem_fw_button_gpio
+	branch mouse_gpio_config_input_pu
+
+
+mouse_matrix_public_gpio_reset:	
+	fetcht 1,mem_matrix_public_gpio
+	branch mouse_gpio_config_input_pu
+
+mouse_check_customerkey_gpio:
+	jam 0,mem_customer_key
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_KEYBOARD
+	fetch 1,mem_customer_key_gpio
+	rtneq GPIO_DISABLE
+	jam MOUSE_CUSTOMER_KEY,mem_mouse_key_temp
+	fetcht 1,mem_customer_key_gpio
+	fetch 1,mem_mouse_customerkey_press_status
+	call mouse_check_key_connect_gnd
+	store 1,mem_mouse_customerkey_press_status
+	copy rega,pdata
+	bbit1 MOUSE_CUSTOMER_KEY,mouse_customerkey_press
+	call mouse_customerkey_release
+mouse_check_customerkey_gpio_exit:
+	fetch 1,mem_customer_data_trigger
+	store 1,mem_customer_data_trigger_last
+	rtn
+
+
+mouse_customerkey_press:
+	jam 1,mem_customer_data_trigger
+	call mouse_customer_key_need_send
+	branch mouse_check_customerkey_gpio_exit
+
+mouse_customerkey_release:
+	jam 0,mem_customer_data_trigger
+	fetch 1,mem_customer_data_trigger_last
+	rtn blank
+mouse_customer_key_need_send:	
+	jam 1,mem_customer_key
+	rtn	
+
+
+mouse_check_matrix_button_connect_gnd:	
+	call gpio_get_bit
+	fetcht 1,mem_mouse_key_temp
+	copy temp,queue	
+	branch  mouse_key_press,true
+	branch mouse_key_release
+
+mouse_check_key_connect_gnd:	
+	lshift pdata,pdata
+	copy pdata,regb
+	call gpio_get_bit
+	setflag true,0,regb
+	and regb,0x07,pdata
+	fetcht 1,mem_mouse_key_temp
+	copy temp,queue
+	beq 0x07,mouse_key_press		//  about 17~22ms three times
+	beq 0x00,mouse_key_release
+	rtn
+
+mouse_key_release:
+	qset0 rega
+	rtn		
+
+mouse_key_press:
+	qset1 rega
+	rtn
+
+mouse_3io6key_check:
+	bpatch patch1a_0,mem_patch1a
+	copy regc,pdata
+	store 1,mem_mouse_key_status
+	lshift pdata,pdata
+	copy pdata,regb
+	copy temp,regc
+	call mouse_gpio_config_input_pd
+	copy regc,temp
+	call gpio_get_bit
+	nsetflag true,0,regb
+	call mouse_check_press
+	branch mouse_check_key_connect_gnd+4
+
+mouse_check_press:
+	fetcht 1,mem_mouse_key_status
+	and_into 0x01,temp
+	and regb,0x01,pdata
+	isub temp,null
+	nbranch mouse_current_mult_update,zero
+	rtn
+	
+/*************************key***************************************/
+
+/**********************sensor******************************/	
+mouse_init_sunt:
+	bpatch patch1a_1,mem_patch1a
+	call mouse_sensor_spi_init
+	rtn wake
+mouse_init_sensor_wakeup:	
+	call mouse_sensor_poweron
+mouse_init_sensor:
+	call mouse_read_sensor_id
+	beq P32XX_ID1,mouse_init_p32xx_id2_judge
+	beq P3065_ID1,mouse_init_p3065
+	beq PKA8G2_ID1,mouse_ka8g2_id2_judge
+	call mouse_twspi_reset
+	nop 6900
+	branch mouse_init_sensor
+mouse_twspi_reset:
+	fetch 1,mem_mouse_sensor_sclk_gpio
+	call twspi_reset 
+	branch mouse_spid_init_pin
+
+mouse_read_sensor_id:
+	setarg PAN_REG_PID_H
+	call twspi_read
+	store 1,mem_sensor_id2
+	setarg PAN_REG_PID_L
+	call twspi_read
+	store 1,mem_sensor_id1
+	rtn
+
+	
+
+mouse_init_p32xx_id2_judge:
+	fetch 1,mem_sensor_id2
+	beq P_MX8650,mouse_mx8650_init_param
+	beq P8009_ID2,mouse_8009_init_param
+	beq P3205_TJ3T_ID2,mouse_3205_3t_init_param
+	beq P3204_TJ3L_ID2,mouse_3204_3l_init_param
+	beq P3212_ID2,mouse_3212_init_param
+	beq PKA8_ID2,mouse_ka8_init_param_check
+	beq P6520A_ID2,mouse_p6520_init_param
+	branch mouse_init_sensor
+	
+mouse_mx8650_init_param:
+	jam MX8650,mem_config_sensor_type
+	call mouse_sensor_reset
+	call delay_10ms
+	arg mem_sensor_8650_init,regc
+	call mouse_sensor_wr_seq
+	branch mouse_dpi_config
+
+mouse_8009_init_param:
+	setarg 0x16
+	call twspi_read
+	sub pdata,0xbd,null 
+	nbranch mouse_init_sunt,zero
+	setarg 0x19
+	call twspi_read
+	sub pdata,0x55,null 
+	nbranch mouse_init_sunt,zero
+	setarg 0x1b
+	call twspi_read
+	sub pdata,0x1d,null 
+	nbranch mouse_init_sunt,zero
+	jam P8009,mem_config_sensor_type
+	arg mem_sensor_8009_init,regc
+	branch mouse_sensor_wr_seq
+
+mouse_3205_3t_init_param:
+	jam P3205,mem_config_sensor_type
+	arg mem_sensor_3205_init,regc
+	call mouse_sensor_wr_seq
+	arg mem_sensor_32xx_init,regc
+	call mouse_sensor_wr_seq
+	setarg 0x0943
+	call twspi_write
+	arg mem_sensor_32xx_init_1,regc
+	branch mouse_sensor_wr_seq	
+
+mouse_3204_3l_init_param:
+	jam P3204,mem_config_sensor_type
+	arg mem_sensor_3204_init,regc
+	call mouse_sensor_wr_seq
+	arg mem_sensor_32xx_init,regc
+	call mouse_sensor_wr_seq
+	arg mem_sensor_32xx_init_1,regc
+	branch mouse_sensor_wr_seq	
+
+mouse_3212_init_param:
+	jam P3212,mem_config_sensor_type
+	arg mem_sensor_3212_init,regc
+	branch mouse_sensor_wr_seq
+
+mouse_ka8_init_param_check:	
+	call mouse_sensor_disable_wp
+	setarg 0x9a5b
+	call twspi_write
+	setarg 0x0d
+	call twspi_read
+	sub pdata,0x12,null
+	branch mouse_ka8ul_init_param,zero
+	sub pdata,0x0a,null
+	nbranch mouse_ka8hd_sensor_judge,zero
+	setarg 0x0e
+	call twspi_read
+	sub pdata,0xe5,null
+	nbranch mouse_init_sensor,zero
+	setarg 0x10
+	call twspi_read
+	sub pdata,0xa5,null
+	branch mouse_ka8ul_init_param,zero
+	call mouse_enable_ka8_sensor_wp
+mouse_ka8_init_param:
+	jam KA8,mem_config_sensor_type	
+	rtn
+mouse_ka8ul_init_param:
+	jam KA8_UL,mem_config_sensor_type	
+	arg mem_sensor_ka8ul_init,regc
+	branch mouse_sensor_wr_seq
+mouse_ka8hd_sensor_judge:
+	sub pdata,0x10,null
+	nbranch mouse_init_sensor,zero
+	setarg 0x0e
+	call twspi_read
+	sub pdata,0xc5,null
+	nbranch mouse_init_sensor,zero
+	setarg 0x10
+	call twspi_read
+	sub pdata,0x38,null
+	nbranch mouse_init_sensor,zero
+mouse_ka8hd_init_param:
+	call mouse_enable_ka8_sensor_wp
+	jam KA8_HD,mem_config_sensor_type
+	rtn
+mouse_enable_ka8_sensor_wp:
+	setarg 0x005b
+	call twspi_write
+	branch mouse_sensor_enable_wp
+	
+mouse_p6520_init_param:
+	jam P6520,mem_config_sensor_type
+	arg mem_sensor_p6520_init,regc
+	branch mouse_sensor_wr_seq
+	
+mouse_init_p3065:
+	call mouse_sensor_poweron
+	fetch 1,mem_sensor_id2
+	beq P3065_XY_ID2,mouse_p3065xy_init_param
+	beq P3065_ID2,mouse_p3065_init_param
+	branch mouse_init_sensor
+	
+mouse_p3065_init_param:	
+	jam P3065,mem_config_sensor_type
+	rtn
+
+mouse_p3065xy_init_param:
+	jam P3065_XY,mem_config_sensor_type
+	rtn
+	
+mouse_ka8g2_id2_judge:
+	call mouse_sensor_poweron
+	fetch 1,mem_sensor_id2
+	beq PKA8G2_ID2,mouse_ka8g2_init_param
+	branch mouse_init_p32xx_id2_judge
+mouse_ka8g2_init_param:
+	jam KA8G2,mem_config_sensor_type
+	arg mem_sensor_ka8g2_init,regc
+	branch mouse_sensor_wr_seq
+	
+mouse_sensor_enable_wp:
+	setarg 0x0009
+	branch twspi_write
+mouse_sensor_disable_wp:
+	setarg 0x5a09
+	branch twspi_write
+
+mouse_sensor_wr_seq:
+	ifetch 2,regc
+	arg 0xffff,temp
+	isub temp,null
+	rtn zero
+	call twspi_write
+	increase 2,regc
+	branch mouse_sensor_wr_seq
+
+mouse_sensor_reset:
+	setarg 0x8006		// reset to factory settings
+	call twspi_write
+	nop 12000
+	rtn
+	
+mouse_sensor_poweron:
+	bpatch patch1a_2,mem_patch1a
+	call mouse_sensor_spi_init
+	call mouse_sensor_reset
+	arg mem_sensor_poweron_init,regc
+	call mouse_sensor_wr_seq
+	branch mouse_dpi_config
+
+mouse_sensor_powerdown:
+	call mouse_init_sunt
+	call mouse_sensor_spi_init
+	setarg 0x0806
+	branch twspi_write
+/*********sensor init*************/	
+
+
+
+/*********sensor motion*************/
+mouse_check_sensor_data:
+	fetch 1,mem_spi_write_flash_sm
+	rtnne FLASH_SM_NO_BUYS
+	fetch 1,mem_config_sensor_type
+	beq P3205,mouse_p32xx_sensor_motion
+	beq P3065,mouse_p32xx_sensor_motion
+	beq KA8,mouse_p32xx_sensor_motion
+	beq P3204,mouse_p32xx_sensor_motion
+	beq P3212,mouse_p3212_sensor_motion
+	beq P3065_xy,mouse_p32xx_sensor_motion
+	beq P8009,mouse_p8009_sensor_motion	
+	beq KA8G2,mouse_pka8g2_sensor_motion
+	branch mouse_p32xx_sensor_motion
+
+
+mouse_p32xx_sensor_motion:
+	call mouse_clear_sensor_data
+	disable user
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,mouse_p32xx_sensor_motion_2
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+mouse_p32xx_sensor_motion_2:
+	setarg PAN_REG_PID_L
+	call twspi_read
+	bne P32XX_ID1,mouse_p3065_judge   
+mouse_p32xx_sensor_motion_1:
+	setarg PAN_REG_MOTION_STAUS
+	call twspi_read
+	rtnbit0 7
+	call mouse_read_sensor_common
+	fetch 1,mem_mouse_x
+	call mouse_data_extsign
+	store 2,mem_mouse_x
+	fetch 1,mem_mouse_y
+	call mouse_data_extsign
+	store 2,mem_mouse_y
+	fetch 1,mem_config_sensor_angle
+	beq MOUSE_6CLK_ANGLE,mouse_motion32xx_6clk_direction_selection
+	beq MOUSE_9CLK_ANGLE,mouse_motion32xx_9clk_direction_selection
+	beq MOUSE_12CLK_ANGLE,mouse_motion32xx_12clk_direction_selection
+	beq MOUSE_3CLK_ANGLE,mouse_motion32xx_3clk_direction_selection
+	rtn
+
+mouse_p3065_judge:
+	beq P3065_ID1,mouse_p32xx_sensor_motion_1
+	branch mouse_twspi_reset
+	
+mouse_motion32xx_6clk_direction_selection:
+	call mouse_motion_6clk_direction_dispose
+	branch mouse_sensor_sdio_low
+mouse_motion32xx_9clk_direction_selection:
+	call mouse_motion_9clk_direction_dispose
+	branch mouse_sensor_sdio_low
+mouse_motion32xx_12clk_direction_selection:
+	call mouse_motion_12clk_direction_dispose
+	branch mouse_sensor_sdio_low
+mouse_motion32xx_3clk_direction_selection:
+	call mouse_motion_3clk_direction_dispose
+	branch mouse_sensor_sdio_low
+
+
+	
+mouse_p3212_sensor_motion:
+	call mouse_clear_sensor_data
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,mouse_p3212_sensor_motion_1
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+mouse_p3212_sensor_motion_1:	
+	setarg PAN_REG_PID_L
+	call twspi_read
+	bne P32XX_ID1,mouse_twspi_reset
+mouse_p3212_sensor_motion_2:
+	setarg PAN_REG_MOTION_STAUS
+	call twspi_read
+	rtnbit0 7
+	call mouse_read_sensor_common
+	call mouse_read_3212sensor_xy_high
+	store 1,mem_mouse_xy_h
+	rshift4 pdata,pdata
+	call mouse_data_extsign_bit3
+	store 1,mem_mouse_x+1
+	fetch 1,mem_mouse_xy_h
+	and pdata,0x0f,pdata
+	call mouse_data_extsign_bit3
+	store 1,mem_mouse_y+1
+	fetch 1,mem_config_sensor_angle
+	beq MOUSE_6CLK_ANGLE,mouse_motion_6clk_direction_dispose
+	beq MOUSE_9CLK_ANGLE,mouse_motion_9clk_direction_dispose
+	beq MOUSE_12CLK_ANGLE,mouse_motion_12clk_direction_dispose
+	beq MOUSE_3CLK_ANGLE,mouse_motion_3clk_direction_dispose
+	rtn
+
+mouse_read_3212sensor_xy_high:
+	setarg 0x12
+	branch twspi_read
+
+mouse_pka8g2_sensor_motion:
+	call mouse_clear_sensor_data
+	fetch 1,mem_sensor_motion_gpio
+	beq GPIO_DISABLE,mouse_pka8g2_sensor_motion_1
+	fetcht 1,mem_sensor_motion_gpio
+	call gpio_get_bit
+	nrtn true
+mouse_pka8g2_sensor_motion_1:
+	branch mouse_p3212_sensor_motion_2
+
+
+mouse_p8009_sensor_motion:
+	call mouse_clear_sensor_data
+	disable user
+	setarg PAN_REG_MOTION_STAUS
+	call twspi_read
+	rtnbit0 7
+	setarg PAN_REG_OPRATION_STATE
+	call twspi_read
+	branch mouse_p32xx_sensor_motion_1+3,blank
+	setarg 0
+	store 6,mem_mouse_x
+	rtn
+
+
+
+mouse_sensor_set_angle:
+	fetch 1,mem_sensor_angle_default
+	store 1,mem_config_sensor_angle
+	fetch 1,mem_select_sensor_angle_gpio
+	rtneq GPIO_DISABLE
+	fetcht 1,mem_select_sensor_angle_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_select_sensor_angle_gpio
+	call gpio_get_bit
+	call mouse_sensor_switch_angle,true
+	branch mouse_gpio_config_input_pd
+mouse_sensor_switch_angle:
+	fetch 1,mem_sensor_angle_switch
+	store 1,mem_config_sensor_angle
+	rtn
+	
+mouse_motion_6clk_direction_dispose:
+	fetch 2,mem_mouse_x
+	sub pdata,0,pdata
+	store 2,mem_mouse_x
+	branch enable_user
+mouse_motion_12clk_direction_dispose:
+	fetch 2,mem_mouse_y
+	sub pdata,0,pdata
+	store 2,mem_mouse_y
+	branch enable_user
+mouse_motion_9clk_direction_dispose:
+	fetch 2,mem_mouse_y
+	sub pdata,0,pdata
+	store 2,mem_mouse_y
+	fetch 2,mem_mouse_x
+	sub pdata,0,pdata
+	store 2,mem_mouse_x
+	call mouse_sensor_data_swap_places
+	branch enable_user
+mouse_motion_3clk_direction_dispose:
+	call mouse_sensor_data_swap_places
+	branch enable_user
+
+mouse_sensor_data_swap_places:
+	fetch 2, mem_mouse_y
+	fetcht 2,mem_mouse_x
+	store 2,mem_mouse_x
+	storet 2,mem_mouse_y
+	rtn
+
+	
+mouse_clear_sensor_data:
+	fetch 1,mem_mouse_move_flag
+	call mouse_read_sensor_common,blank
+	jam 1,mem_mouse_move_flag
+	rtn
+
+mouse_clear_sensor_data_by_reset:
+	jam 1,mem_mouse_clear_sensor_data_flag
+	call le_set_config_more_data
+mouse_init_sensor_reset:
+	branch mouse_init_sunt
+
+mouse_data_xy_release:
+	fetch 1,mem_sensor_motion_gpio
+	rtnne GPIO_DISABLE
+	fetch 1,mem_mouse_long_mult_flag
+	rtnne 1
+	setarg 0
+	store 1,mem_mouse_long_mult_flag
+	store 4,mem_mouse_x
+	branch mouse_init_sensor_reset
+
+mouse_data_extsign:
+	rtnbit0 7
+	arg 0xff00,temp
+	ior temp,pdata
+	rtn
+
+mouse_data_extsign_bit3:
+	rtnbit0 3
+	arg 0xf0,temp
+	ior temp,pdata
+	rtn
+
+mouse_read_sensor_common:
+	arg PAN_REG_DELTA_X,pdata
+	call twspi_read
+	store 2,mem_mouse_x
+	arg PAN_REG_DELTA_Y,pdata
+	call twspi_read
+	store 2,mem_mouse_y
+	rtn
+
+	/* sdio high will cost extra 9mA */
+mouse_sensor_sdio_low:
+	fetcht 1,mem_mouse_sensor_sdio_gpio
+	call gpio_get_bit
+	rtn true
+	setarg 0x0a
+	call twspi_read
+	nop 1000
+	branch mouse_sensor_sdio_low
+
+mouse_set_sdio_high:		// make sdio high to make 100uA less
+	setarg 0x8100
+	branch twspi_write
+	
+/****************************sensor*************************/
+
+/*******************mouse fast connect******************/
+mouse_buletooth_fast_conn_init:
+	jam 0xff,mem_mouse_bluetooth_fast_conn_flag
+	fetch 1,mem_mouse_bluetooth_type
+	bbit1 MODE_4_MOUSE,mouse_ble_fast_conn_init
+	bbit1 MODE_3_MOUSE,mouse_bt_fast_conn_init
+mouse_ble_fast_conn_init:	
+	jam 0x34,mem_xrecord_mode
+	setarg 0x0f0f0f
+	store 3,mem_le_lap
+	store 3,mem_le_lap+3
+	branch mouse_start_reconnect
+
+mouse_bt_fast_conn_init:
+	jam 0x33,mem_xrecord_mode
+	arg mem_mouse_compare_addr_ff,contr
+	call mouse_load_bt_device
+	branch mouse_start_reconnect
+
+mouse_buletooth_fast_conn_end:
+	bpatch patch1a_3,mem_patch1a
+	call mouse_select_reconn_device
+	call mouse_bluetooth_fast_conn_disable
+	fetch 1,mem_device_flag
+	beq MODE_BT_DEVICE1,mouse_device1_check_auto_discover
+	beq MODE_BT_DEVICE2,mouse_device2_check_auto_discover
+	rtn
+mouse_device1_check_auto_discover:
+	fetch 6,mem_device1_addr
+	branch mouse_device_check_auto_discover
+mouse_device2_check_auto_discover:
+	fetch 6,mem_device2_addr
+mouse_device_check_auto_discover:	
+	fetcht 6,mem_mouse_compare_addr_ff
+	isub temp,null
+	branch mouse_start_discovery ,zero
+	branch mouse_start_reconnect_device
+
+mouse_bt_fast_conn_send_device_name:
+	call mouse_bluetooth_fast_conn_disable
+	fetch 1,mem_local_name_length
+	increase 3,pdata
+	copy pdata,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x04a1		// report id = 4
+	istore 2,contw
+	fetch 1,mem_local_name_length
+	increase 1,pdata
+	copy pdata,loopcnt
+	arg mem_local_name_length,contr
+	branch memcpy
+
+mouse_bluetooth_fast_conn_disable:
+	jam 0x5a,mem_mouse_bluetooth_fast_conn_flag
+	rtn	
+/*******************mouse fast connect******************/
+
+mouse_stop_bluetooth_mode:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_RECONNECT,mouse_cancel_reconnect
+	bbit1 UI_STATE_BLE_CONNECTED,app_ble_disconnect
+	bbit1 UI_STATE_BT_CONNECTED,app_bt_disconnect
+	branch mouse_stop_discovery
+
+mouse_disconnect:
+	setarg 0
+	store 2,mem_mouse_no_data_timer
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,app_ble_disconnect
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,app_bt_disconnect
+	rtn
+	
+mouse_cancel_reconnect:
+	call mouse_bt_cannel_reconn_enable
+	branch check_51cmd_bb_reconn_cancel
+
+mouse_check_125Hz:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_BT_125Hz
+mouse_bluetooth_125Hz:
+	nbranch mouse_bluetooth_125hz_clear,user
+	fetch 1,mem_bluetooth_125hz_cnt
+	increase 1,pdata
+	and_into 0x0f,pdata
+	store 1,mem_bluetooth_125hz_cnt
+	nrtn blank
+mouse_bluetooth_125hz_clear:
+	jam 0,mem_bluetooth_125hz_cnt
+	disable user
+	rtn
+
+
+mouse_current_mult_update:
+	fetch 1,mem_sensor_motion_gpio
+	rtnne GPIO_DISABLE
+	jam 0,mem_lpm_mult
+	jam 30,mem_mouse_current_mult_timer
+	rtn
+
+
+mouse_priority_bb_event:	
+	bpatch patch1a_4,mem_patch1a
+	copy regc,pdata
+	beq BT_EVT_LE_CONNECTED,mouse_le_bb_event_connected
+	beq BT_EVT_BB_CONNECTED,mouse_bb_event_connected
+	beq BT_EVT_LE_DISCONNECTED,mouse_le_bb_disconnected
+	beq BT_EVT_BB_DISCONNECTED,mouse_bb_disconnected
+	beq BT_EVT_SETUP_COMPLETE,mouse_bt_event_setup_complete
+	beq BT_EVT_BUTTON_LONG_PRESSED,mouse_bb_event_discovery_btn
+	beq BT_EVT_HID_HANDSHAKE,mouse_bt_hid_handshake
+	beq BT_EVT_HID_CONNECTED,app_hid_connected
+	beq BT_EVT_RECONN_FAILED,mouse_bb_event_reconn_failed
+	beq BT_EVT_RECONN_PAGE_TIMEOUT,mouse_bb_event_reconn_timeout
+	beq BT_EVT_SWITCH_NOT_ACCEPT,app_bt_role_switch	
+	beq BT_EVT_SWITCH_SUCCESS_MASTER,mouse_enter_sniff_check
+	beq BT_EVT_SNIFF_NOT_ACCEPT,mouse_sniff_not_accept
+	beq BT_EVT_PINCODE_REQ,mouse_bb_event_pincode
+	beq BT_EVT_REMOTE_UNSNIFF,app_start_auto_sniff
+	beq BT_EVT_LE_PAIRING_SUCCESS,mouse_le_pairing_success
+	beq BT_EVT_LE_ENC_INFO,mouse_le_enc_info
+	beq BT_EVT_LE_START_ENC,mouse_le_ll_start_encryt
+	beq BT_EVT_LE_PAIRING_COMPLETE,mouse_le_pairing_complete
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,mouse_le_conn_param_update_rsp_recieved
+	beq BT_EVT_VIRTUAL_CABLE_UNPLUG,mouse_irtual_cable_unplug
+	beq BT_EVT_24G_PAIRING_COMPLETE,mouse_24g_pairing_complete
+	beq BT_EVT_24G_ATTEMPT_FAIL,mouse_24g_attempt_fail
+	beq BT_EVT_24G_ATTEMPT_SUCCESS,mouse_24g_attempt_success
+	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,mouse_le_parse_conn_param_accepted
+	rtn
+
+/***************************le*************************/
+mouse_le_bb_event_connected:
+	jam 0,mem_mouse_long_mult_flag
+	call mouse_init_sensor_reset
+	jam 1,mem_mouse_le_bb_connected_flag
+	call mouse_24g_first_store_reconn_info
+	fetch 1,mem_mouse_le_reconnect_flag
+	nbranch mouse_le_bb_event_connected_next,blank
+	jam 0x14,mem_mouse_send_secutiry_request_timer
+mouse_le_bb_event_connected_next:
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	set0 APP_DISC_BY_BUTTON ,pdata
+	store APP_DISC_RSN_SIZE,mem_app_disconn_reason_flag
+	jam 0,mem_mouse_direct_timer
+	fetch 2,mem_le_battery_level_updata_timer_init
+	store 2,mem_le_battery_level_updata_timer
+	call mouse_no_data_timer_init
+	branch mouse_stop_discovery
+
+mouse_le_bb_disconnected:
+	jam 0,mem_mouse_le_bb_connected_flag
+	setarg LE_INTERVAL_7_5MS
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_BT_125Hz,mouse_le_bb_disconnected_next
+	setarg LE_INTERVAL_8_75MS
+mouse_le_bb_disconnected_next:	
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+	jam LE_LPM_ENABLE,mem_mouse_le_conn_param_reject
+	jam 0,mem_mouse_clear_sensor_data_flag
+	call le_clr_config_more_data
+	branch mouse_bb_disconnected
+
+mouse_le_pairing_success:
+	arg LL_PAIRING_SUCCESS_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_le_enc_info:
+mouse_updata_le_param:
+	jam BT_CMD_LE_UPDATE_CONN,mem_fifo_temp
+	branch ui_ipc_send_cmd
+	
+mouse_le_ll_start_encryt:
+	fetch 1,mem_mouse_le_reconnect_flag
+	beq 1,mouse_le_ll_reconn_start_encryt
+	branch mouse_le_ll_enable_start_enc_flag
+mouse_le_ll_reconn_start_encryt:
+	call mouse_updata_le_param
+	jam 20,mem_le_start_encrypt_timer
+mouse_le_ll_enable_start_enc_flag:
+	arg LL_START_ENC_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_le_enable_connect_flag:
+	fetch 1,mem_le_connect_status_flag
+	qset1 pdata
+	store 1,mem_le_connect_status_flag
+	rtn
+
+mouse_le_pairing_complete:
+	branch app_ble_store_reconn_info
+
+mouse_le_conn_param_update_rsp_recieved:
+	fetch 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	rtneq BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_ACCEPTED
+	fetch 1,mem_le_tsniff
+	rshift2 pdata,pdata
+	sub pdata,LE_INTERVAL_15MS,null
+	rtn positive
+	setarg LE_INTERVAL_11_25MS
+	store 2,mem_le_interval_min
+	store 2,mem_le_interval_min+2
+	call mouse_updata_le_param
+mouse_le_conn_param_lpm_disable:
+	jam LE_LPM_DISABLE,mem_mouse_le_conn_param_reject
+	rtn
+
+mouse_le_conn_param_lpm_enable:
+	jam LE_LPM_ENABLE,mem_mouse_le_conn_param_reject
+	rtn
+
+mouse_le_bb_event_connect_complete:
+	fetch 1,mem_mouse_le_reconnect_flag
+	nrtn blank
+	fetch 1,mem_le_att_handle
+	sub pdata,34,pdata
+	nrtn zero
+	jam 0,mem_le_start_encrypt_timer
+mouse_le_write_enable:	
+	arg WRITE_REQ_ENABLE_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_le_parse_conn_param_accepted:
+	fetch 1,mem_le_new_conninterval
+	sub pdata,LE_INTERVAL_15MS,null
+	nbranch mouse_le_conn_param_lpm_disable,positive
+	fetch 1,mem_le_new_connslavelatency
+	fetcht 1,mem_lpm_mult_init
+	isub temp,null
+	branch mouse_le_lpm_mult_reinit,positive
+	fetch 1,mem_le_new_connslavelatency
+	store 1,mem_lpm_mult
+	branch mouse_le_conn_param_lpm_enable
+mouse_le_lpm_mult_reinit:
+	fetch 1,mem_lpm_mult_init
+	store 1,mem_lpm_mult
+	branch mouse_le_conn_param_lpm_enable
+	
+/*
+mouse_le_disable_connect_flag:
+	fetch 1,mem_le_connect_status_flag
+	qset0 pdata
+	store 1,mem_le_connect_status_flag
+	rtn
+*/
+mouse_le_clean_connect_flag:
+	jam 0,mem_le_connect_status_flag
+	rtn
+
+/*
+mouse_le_reconn_write_enable_timer_reinit:
+	fetch 1,mem_mouse_le_reconnect_flag
+	rtn blank
+	fetch 1,mem_le_connect_status_flag
+	and pdata,0x03,pdata
+	rtneq 0x03
+	jam 2,mem_le_start_encrypt_timer
+	rtn
+*/
+mouse_le:
+	bpatch patch1a_5,mem_patch1a
+	call le_fifo_check_nearly_full
+	nrtn blank
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_le_next
+	fetch 1,mem_le_connect_status_flag
+	and pdata,0x03,pdata
+	rtnne 0x03
+mouse_le_next:	
+	fetch 1,mem_mouse_clear_sensor_data_flag
+	call mouse_clear_sensor_data_by_reset,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_24G_PAIRING_FLAG,mouse_le_send_empty_packet
+	bbit1 MOUSE_SELECT_DEVICE_FLAG,mouse_le_send_empty_packet
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,mouse_le_send_empty_packet
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,mouse_le_send_empty_packet
+	call mouse_motion
+	call mouse_check_125Hz
+	nrtn user
+	call mouse_current_mult_update
+	call mouse_data_xy_release
+	call mouse_wheel_trigger
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,mouse_le_send_mouse_data
+	fetch 1,mem_customer_key
+	beq 1,mouse_le_send_keyboard_package_data		
+mouse_le_send_mouse_data:
+	branch mouse_fill_mouse_data_le
+
+
+mouse_le_send_keyboard_package_data:
+	fetch 1,mem_customer_data_trigger
+	branch mouse_le_release_keyboard_data,blank
+	fetch 8,mem_customer_key_press+1
+mouse_fill_keyboard_package_data_le:
+	store 8,mem_pdatatemp
+	fetch 1,mem_customer_key_press
+	beq KB_MULTIKEY_REPORT_ID,mouse_fill_multimedia_key_data_le
+	beq KB_SYSTEM_CONCTRL_REPORT_ID,mouse_fill_systemctrl_key_data_le
+	jam 8,mem_le_data_len
+	fetcht 2,mem_le_keyboard_handle
+	branch mouse_fill_data_le
+	
+
+mouse_le_release_keyboard_data:
+	fetch 8,mem_customer_key_release+1
+	branch mouse_fill_keyboard_package_data_le
+
+mouse_fill_multimedia_key_data_le:
+	jam 3,mem_le_data_len
+	fetcht 2,mem_le_multimedia_handle
+	branch mouse_fill_data_le
+
+mouse_fill_systemctrl_key_data_le:
+	jam 2,mem_le_data_len
+	fetcht 2,mem_le_systemctrl_handle
+	branch mouse_fill_data_le
+
+mouse_fill_battery_level_le:
+	arg 1,rega
+	fetcht 2,mem_le_battery_level_handle
+	call le_att_malloc_tx_notify
+	fetch 1,mem_le_battery_level_percentage
+	istore 1,contw
+	rtn
+
+
+mouse_le_send_empty_packet:
+	setarg 0
+	store 7,mem_mouse_key
+mouse_fill_mouse_data_le:
+	jam 7,mem_le_data_len
+	fetch 7,mem_mouse_key
+	store 7,mem_pdatatemp
+	fetcht 2,mem_le_notify_handle
+	branch mouse_fill_data_le
+
+mouse_fill_data_le:
+	fetch 1,mem_le_data_len
+	copy pdata,rega
+	call le_att_malloc_tx_notify
+	fetcht 1,mem_le_data_len
+	copy temp,loopcnt
+	arg mem_pdatatemp,contr
+	branch memcpy	
+
+mouse_check_51cmd_adv:
+	jam 0,mem_mouse_le_reconnect_flag
+	fetch 3,mem_le_adv_ind
+	store 3,mem_le_adv_data+4
+	call mouse_le_check_adv_flag
+	setarg ADV_FLAG_BREDR_NOT_SUPPORTED |ADV_FLAG_LIMITED_DISCOVERABLE
+	istore 1,contr
+	arg mem_le_adv_swift_pair,contr
+	call mouse_le_adv_data_update
+	branch check_51cmd_adv
+
+mouse_le_check_adv_flag:
+	arg mem_le_adv_data,rega
+mouse_le_check_adv_flag_loop:
+	ifetch 1,rega	//length
+	rtn blank
+	iadd contr,rega
+	ifetch 1,contr	//type
+	rtneq 0x01
+	branch mouse_le_check_adv_flag_loop
+	
+mouse_le_adv_data_update:
+	arg mem_le_adv_data+11,contw
+	arg 19,loopcnt
+	call memcpy
+	branch le_modified_name_adv
+	
+/***************************le*************************/
+
+
+/***********************bt****************************/	
+mouse_bt_sniff_param_interval_setup:
+	setarg CLASSIC_INTERVAL_7_5MS
+	store 2,mem_sniff_param_interval
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_BT_125Hz
+	setarg CLASSIC_INTERVAL_8_75MS
+	store 2,mem_sniff_param_interval
+	rtn
+
+mouse_bb_event_connected:
+	jam 0,mem_mouse_long_mult_flag
+	call mouse_init_sensor_reset
+	call mouse_24g_first_store_reconn_info
+	branch mouse_stop_discovery
+
+mouse_bb_disconnected:
+	jam 0,mem_mouse_enter_sniff_count
+	jam 0,mem_mouse_bt_send_first_package_flag
+	call mouse_bt_sniff_param_interval_setup
+	call mouse_bb_discon_clear_stack
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	bbit1 APP_DISC_BLE,mouse4_0_event_bb_disconn
+	bbit1 APP_DISC_BY_BUTTON,app_disconn_reason_clear
+	bbit1 APP_DISC_AFTER_PAIRING,mouse_event_light_state_pairing
+	bbit1 APP_DISC_AFTER_RECONN,mouse_event_light_state_hibernate
+	bbit1 APP_DISC_AFTER_SNIFF,mouse_event_light_state_hibernate
+	branch mouse_start_discovery
+mouse_bb_discon_clear_stack:
+	setarg 0
+	store 8,mem_wheel_tb_old_pinlevel
+	istore 4,contw             //clean wheel statue
+	jam 0,mem_mouse_move_flag
+	jam APP_HANDSHAKE_NULL,mem_app_handshake_flag
+	jam 0,mem_ltk_exists
+	rtn
+
+mouse4_0_event_bb_disconn:
+	call mouse_le_clean_connect_flag
+	fetch APP_DISC_RSN_SIZE,mem_app_disconn_reason
+	bbit1 APP_DISC_BY_BUTTON,app_disconn_reason_clear
+	branch mouse_app_enter_hibernate
+
+
+mouse_event_light_state_pairing:
+	bbit1 APP_DISC_AFTER_HANDSHAKE,mouse_event_light_state_hibernate
+	bbit1 APP_DISC_AFTER_SNIFF,mouse_event_light_state_hibernate
+	branch mouse_start_discovery
+mouse_event_light_state_hibernate:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BTN_DOWN,mouse_start_discovery
+	call app_disconn_reason_clear
+
+	call mouse_key_check_once	//mult_key pair
+	call mouse_commbination_key_process
+	fetch 1,mem_commbination_key_statue
+	beq COMMBINATION_KEY_STATE_DOWN,mouse_delay_enter_hibernata
+	
+	fetch 1,mem_mouse_bluetooth_reconnect_timeout
+	nrtn blank
+	branch mouse_app_enter_hibernate
+
+
+mouse_bt_event_setup_complete:
+	rtn
+
+mouse_bt_send_first_package_timer_init:
+	jam 4,mem_mouse_bt_send_first_package_timer
+	rtn
+
+mouse_bt_hid_handshake:
+	jam APP_HANDSHAKE_DONE,mem_app_handshake_flag
+	call app_lpm_mult_enable
+	call app_bt_store_reconn_info
+	setarg 0
+	store 2,mem_discovery_timeout_timer_count
+	store 1,mem_hid_handshake_timer_count
+	call mouse_bt_send_first_package_timer_init
+	branch app_bt_enter_sniff
+
+mouse_bt_hid_handshake_boot_check:	
+	jam 0,mem_mouse_bt_boot_mode
+	fetch 1,mem_l2cap_rcv_hidtype
+	isolate1 0,pdata
+	rtn true
+	jam 1,mem_mouse_bt_boot_mode	//boot mode
+	rtn
+
+	
+mouse_bb_event_reconn_timeout:
+mouse_bb_event_reconn_failed:
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_buletooth_fast_conn_end
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+	rtnbit1 UI_STATE_BT_DISCOVERY
+	rtnbit1 UI_STATE_BLE_ADV
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+	bbit1 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY,mouse_start_discovery
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_first_bb_event_reconn_timeout
+	branch mouse_app_enter_hibernate
+
+mouse_enter_sniff_check:
+	fetch 1,mem_mouse_enter_sniff_count
+	rtnne 2
+	jam 0,mem_mouse_enter_sniff_count
+	call mouse_bt_sniff_param_interval_setup
+	call mouse_bt_send_first_package_timer_init
+	branch app_bt_enter_sniff
+
+mouse_sniff_not_accept:
+	fetch 1,mem_mouse_enter_sniff_count
+	rtneq 2
+	increase 1,pdata
+	store 1,mem_mouse_enter_sniff_count
+	jam 0x12,mem_sniff_param_interval	//89Hz
+	call mouse_bt_send_first_package_timer_init
+	branch app_bt_enter_sniff
+
+mouse_bb_event_pincode:
+	call pincode_reinit
+	branch app_bt_set_pincode
+
+mouse_irtual_cable_unplug:
+	setarg 0x01
+	store 6,mem_plap
+	jam REC_3_MODE,mem_record_bt_mode
+	branch mouse_unplug_clean_bdaddr
+
+mouse_irtual_cable_unplug1:
+	setarg -1
+	store 6,mem_plap
+	jam REC_3_MODE,mem_record_bt_mode
+	jam 0xff,mem_mouse_bluetooth_fast_conn_flag
+	call mouse_before_store_reconn_info
+	jam 0xff,mem_device1_type
+	branch mouse_store_device_info_delay
+
+mouse_bt:
+	bpatch patch1a_6,mem_patch1a
+	rtn attempt
+	fetch 1,mem_app_handshake_flag
+	rtn blank
+	call l2cap_malloc_is_fifo_nearly_full
+	nrtn blank
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_bt_fast_conn_send_device_name	
+	fetch 1,mem_mouse_clear_sensor_data_flag
+	call mouse_clear_sensor_data_by_reset,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_24G_PAIRING_FLAG,mouse_send_empty_data
+	bbit1 MOUSE_SELECT_DEVICE_FLAG,mouse_send_empty_data
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,mouse_send_empty_data
+	bbit1 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,mouse_send_empty_data
+	call mouse_motion
+	call mouse_check_125Hz
+	nrtn user
+	call mouse_current_mult_update
+	call mouse_data_xy_release
+	call mouse_wheel_trigger
+	fetch 1,mem_mouse_bt_boot_mode
+	beq 1,mouse_send_data_boot_mode	//boot
+	fetch 1,mem_mouse_bt_send_first_package_flag
+	rtn blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,mouse_send_data
+	fetch 1,mem_customer_key
+	beq 1,mouse_bt_send_keyboard_packet
+mouse_send_data:
+	arg 9,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x02a1
+	istore 2,contw
+	fetch 7,mem_mouse_key
+	istore 7,contw
+	rtn
+
+mouse_send_data_boot_mode:
+	fetch 1,mem_mouse_key
+	store 1,mem_mouse_bt_boot_data
+	fetch 1,mem_mouse_x
+	istore 1,contw
+	fetch 1,mem_mouse_y
+	istore 1,contw
+	fetch 2,mem_mouse_z
+	istore 2,contw
+	arg 7,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x02a1		// pid:02  mouse
+	istore 2,contw
+	fetch 5,mem_mouse_bt_boot_data
+	istore 5,contw
+	rtn
+
+mouse_send_empty_data:
+	setarg 0
+	store 7,mem_mouse_key
+	branch mouse_send_data
+
+
+mouse_bt_send_keyboard_packet:
+	fetch 1,mem_customer_data_trigger
+	branch mouse_bt_release_keyboard_data,blank
+	fetch 8,mem_customer_key_press+1
+mouse_bt_send_keyboard_data:
+	store 8,mem_pdatatemp
+	fetch 1,mem_customer_key_press
+	beq KB_MULTIKEY_REPORT_ID,mouse_bt_send_multimedia_key_data
+	beq KB_SYSTEM_CONCTRL_REPORT_ID,mouse_bt_send_systemctrl_key_data
+	arg 10,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x01a1		// pid:01  standard key
+	istore 2,contw
+	fetch 8,mem_pdatatemp
+	istore 8,contw
+	rtn
+
+mouse_bt_send_multimedia_key_data:
+	arg 4,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x03a1		// pid:03  multimedia key
+	istore 2,contw
+	fetch 2,mem_pdatatemp
+	istore 2,contw
+	rtn	
+
+mouse_bt_send_systemctrl_key_data:
+	arg 3,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0x04a1		// pid:04  systemctrl key	
+	istore 2,contw
+	fetch 1,mem_pdatatemp
+	istore 1,contw
+	rtn		
+
+mouse_bt_release_keyboard_data:
+	fetch 8,mem_customer_key_release+1
+	branch mouse_bt_send_keyboard_data	
+/*******************bt****************************/
+
+
+
+/********************mouse 100ms timer*****************/
+mouse_bb_event_timer:
+	bpatch patch1a_7,mem_patch1a
+	call mouse_adc_read
+	call mouse_low_voltage_led_timer
+	//24g
+	call g24_pair_timeout_timer
+	call g24_reconn_timeout_timer
+	call mouse_24g_long_sleep_param_update_timer
+	//led
+	call mouse_device_poweron_timer
+	call mouse_dpi_led_blink_delay_timer
+	//poll
+	call mouse_dpi_key_check_long_press
+	call mouse_bt_discovery_check
+	call mouse_commbination_key_process
+	call mouse_check_discovery_timeout_timer
+	//ble
+	call mouse_check_direct_timeout_timer
+	call mouse_le_enable_att_list_timer
+	call mouse_le_battery_updata_timer
+	call mouse_le_send_smp_security_request_timer
+	//bt
+	call mouse_check_hid_handshake_timer
+	call mouse_bt_check_sniff_req_timeout_timer
+	call mouse_check_reconnect_delay_long_sleep		//delete 3.0,reconnect fail
+	call mouse_current_mult_update_timer
+	call mouse_wheel_trigger_timer
+	call mouse_store_information_delay_timer
+	branch mouse_check_no_data_timeout_timer
+
+
+
+
+mouse_bt_discovery_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY,mouse_bt_discovery_by_pb_button
+	rtn
+
+mouse_bt_discovery_by_pb_button:
+	fetch 1,mem_select_device_button_statue
+	rtnne PB_BUTTON_STATE_DOWN
+	arg mem_bt_discovery_count,regc
+	arg mouse_long_button_bt_discovery,regb
+	branch timer_single_step
+		
+mouse_long_button_bt_discovery:
+	fetch 1,mem_device_flag
+	rtneq MODE_24G_DEVICE
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+	arg MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,queue
+	call mouse_enable_function_flag
+	call app_evt_button_long_pressed
+	branch mouse_bb_event_discovery_btn
+
+		
+mouse_commbination_key_process:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_commbination_key_process
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+	fetcht 1,mem_mouse_commbination_key_bt
+	branch mouse_commbination_key_start
+
+mouse_24g_commbination_key_process:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+	fetcht 1,mem_mouse_commbination_key_24g
+mouse_commbination_key_start:
+	storet 1,mem_mouse_commbination_key
+	call mouse_check_key_gpio
+	and pdata,0x07,pdata
+	fetcht 1,mem_mouse_commbination_key
+	isub temp,null
+	branch mouse_commbination_key_down,zero
+mouse_commbination_key_up:
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_combination_ui_button_count	//combination key timer init 
+	fetch 1,mem_commbination_key_statue
+	rtneq COMMBINATION_KEY_STATE_UP
+	jam COMMBINATION_KEY_STATE_UP,mem_commbination_key_statue	
+	rtn
+		
+mouse_commbination_key_down:
+	call mouse_combination_ui_timer
+	fetch 1,mem_commbination_key_statue
+	rtneq COMMBINATION_KEY_STATE_DOWN
+	jam COMMBINATION_KEY_STATE_DOWN,mem_commbination_key_statue
+	branch check_51cmd_bb_reconn_cancel
+
+
+mouse_combination_ui_timer:
+	arg mouse_24g_start_pair_mode,regb
+	arg mem_combination_ui_button_count,regc
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,timer_single_step
+	arg mouse_long_button_bt_discovery,regb
+	call timer_single_step
+	fetch 1,mem_combination_ui_button_count
+	beq 1,mouse_bt_discovery_button_down_enable	// ble release key press
+	rtn
+
+
+
+mouse_check_discovery_timeout_timer:	
+	arg mem_mouse_discovery_timer,regc
+	arg mouse_check_discovery_timeout,regb
+	branch timer_single_step_2B
+
+mouse_check_discovery_timeout:
+	call mouse_stop_discovery
+	branch mouse_app_enter_hibernate
+
+
+mouse_check_direct_timeout_timer:	
+	arg mem_mouse_direct_timer,regc
+	arg mouse_check_direct_timeout,regb
+	call timer_single_step_2B
+	fetch 1,mem_mouse_direct_timer
+	beq 1,app_ble_stop_direct_adv
+	rtn
+
+mouse_check_direct_timeout:
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,mouse_buletooth_fast_conn_end
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY,mouse_start_discovery
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_first_bb_event_reconn_timeout
+	branch mouse_app_enter_hibernate
+	
+mouse_le_enable_att_list_timer:
+	arg mem_le_start_encrypt_timer,regc
+	arg mouse_le_write_enable,regb
+	branch timer_single_step
+
+mouse_le_send_smp_security_request_timer:
+	fetch 1,mem_mouse_le_bb_connected_flag
+	rtn blank
+	arg mem_mouse_send_secutiry_request_timer,regc
+	arg mouse_le_pairing_sm_start_check,regb
+	branch timer_single_step
+mouse_le_pairing_sm_start_check:
+	fetch 1,mem_mouse_le_reconnect_flag
+	nrtn blank
+	fetch 1,mem_le_pairing_state
+	rtnne FLAG_LE_PAIRING_NULL
+	branch le_pairing_sm_start
+
+mouse_le_battery_updata_timer:
+	arg mem_le_battery_level_updata_timer,regc
+	arg mouse_le_battery_level_updata,regb
+	branch timer_single_step
+
+mouse_le_battery_level_updata:
+	fetch 2,mem_le_battery_level_updata_timer_init
+	store 2,mem_le_battery_level_updata_timer
+	branch mouse_fill_battery_level_le
+	
+mouse_le_enable_att_list:	
+	fetch 1,mem_le_connect_status_flag
+	rtnbit1 LL_PAIRING_SUCCESS_FLAG
+	call mouse_updata_le_param
+	arg WRITE_REQ_ENABLE_FLAG,queue
+	branch mouse_le_enable_connect_flag
+
+mouse_check_hid_handshake_timer:
+	arg mem_hid_handshake_timer_count,regc
+	arg mouse_bt_hid_handshake,regb
+	branch timer_single_step
+	
+mouse_bt_check_sniff_req_timeout_timer:
+	arg mem_mouse_bt_send_first_package_timer,regc
+	arg mouse_bt_send_first_package,regb
+	branch timer_single_step
+mouse_bt_send_first_package:
+	jam 1,mem_mouse_bt_send_first_package_flag
+	rtn
+
+mouse_check_reconnect_delay_long_sleep:
+	arg mem_mouse_bluetooth_reconnect_timeout,regc
+	arg mouse_app_enter_hibernate,regb
+	branch timer_single_step
+
+
+mouse_current_mult_update_timer:
+	arg mem_mouse_current_mult_timer,regc
+	arg mouse_current_mult_reinit,regb
+	branch timer_single_step
+mouse_current_mult_reinit:
+	fetch 1,mem_lpm_mult_init
+	store 1,mem_lpm_mult
+	jam 1,mem_mouse_long_mult_flag
+	rtn
+
+
+mouse_check_no_data_timeout_timer:	
+	fetch 1,mem_usb_addr
+	rtnbit1 7
+	arg mem_mouse_no_data_timer,regc
+	arg mouse_check_no_data_timeout,regb
+	branch timer_single_step_2B
+
+mouse_check_no_data_timeout:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_hibernate_set
+	branch mouse_disconnect
+	
+mouse_no_data_timer_init:
+	fetch 2,mem_mouse_no_data_timeout
+	store 2,mem_mouse_no_data_timer
+	rtn
+
+mouse_store_information_delay_timer:
+	arg mem_store_information_delay_timer,regc
+	arg mouse_store_device_info_check,regb
+	branch timer_single_step
+
+mouse_store_device_info_check:
+	call mouse_store_device_info
+	fetch 1,mem_mouse_need_soft_reset
+	nbranch mouse_soft_reset,blank
+	rtn
+
+mouse_bb_event_discovery_btn:
+	isolate1 mark_24g,mark
+	call mouse_24g_stop,true
+	call mouse_disconnect
+	call mouse_le_clean_connect_flag
+	branch mouse_start_discovery
+	
+mouse_start_discovery:
+	bpatch patch1b_0,mem_patch1b
+	call mouse_bluetooth_fast_conn_disable
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_ADV,mouse_start_discovery_norandom
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_BLE_RANDOM_ADDRE,mouse_start_discovery_norandom
+	fetcht 2,mem_random_addr_increase_count
+	increase 1,temp
+	storet 2,mem_random_addr_increase_count
+	storet 2,mem_le_lap+1
+	random pdata					//random ble addr
+	store 1,mem_le_lap
+mouse_start_discovery_norandom:
+	fetch 3,mem_mouse_le_lap_temp
+	store 3,mem_le_lap+3
+	call app_lpm_mult_disable
+	fetch 2,mem_discovery_timeout
+	store 2,mem_mouse_discovery_timer
+	jam 6,mem_connection_options
+	setarg 0
+	store 2,mem_mouse_no_data_timer
+	store 1,mem_mouse_direct_timer
+	store 1,mem_mouse_bluetooth_reconnect_timeout
+	store 1,mem_mouse_device_poweron_timer_count
+	store 1,mem_mouse_clear_sensor_data_flag
+	arg MOUSE_STORE_EEPROM_FLAG,queue
+	call mouse_enable_function_flag
+	call mouse_bt_discovery_button_down_disable
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_4_MOUSE,pdata
+	call mouse_check_51cmd_adv,true
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_3_MOUSE,pdata
+	call check_51cmd_start_discovery,true
+	call mouse_low_voltage_led_blink_disable
+	branch mouse_discover_setting_led_gpio
+
+
+mouse_stop_discovery:
+	bpatch patch1b_1,mem_patch1b
+	arg MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG,queue
+	call mouse_disable_function_flag
+	jam 0,mem_mouse_bluetooth_reconnect_timeout
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_4_MOUSE,pdata
+	call mouse_stop_le_adv,true
+	fetch 1,mem_mouse_bluetooth_type
+	isolate1 MODE_3_MOUSE,pdata
+	call mouse_stop_bt3_discovery,true
+	branch mouse_device_led_off
+mouse_stop_le_adv:
+	jam 0,mem_mouse_direct_timer
+	branch check_51cmd_stop_adv
+mouse_stop_bt3_discovery:
+	setarg 0
+	store 2,mem_mouse_discovery_timer
+	branch check_51cmd_stop_discovery
+
+mouse_store_remote_bdaddr:
+	bpatch patch1b_2,mem_patch1b
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_STORE_EEPROM_FLAG
+	call mouse_device_poweron_timer_init
+	arg MOUSE_STORE_EEPROM_FLAG,queue
+	call mouse_disable_function_flag
+	call mouse_check_device_addr
+mouse_unplug_clean_bdaddr:
+	call mouse_before_store_reconn_info
+	branch mouse_store_device_info_delay
+
+	
+mouse_check_device_addr:
+	fetch 1,mem_record_bt_mode
+	beq REC_4_MODE,mouse_check_le_device_addr
+	beq REC_3_MODE,mouse_check_bt_device_addr
+	rtn
+mouse_check_le_device_addr:
+	store 1,mem_device_addr_temp
+	fetch 6,mem_le_plap
+	branch mouse_check_bt_device_addr_common
+mouse_check_bt_device_addr:
+	store 1,mem_device_addr_temp
+	fetch 6,mem_plap
+mouse_check_bt_device_addr_common:
+	store 6,mem_device_addr_temp+1
+	fetch 7,mem_device_addr_temp
+	arg mem_device1_type,contr
+	arg 3,loopcnt
+mouse_check_device_addr_end:
+	ifetcht 7,contr
+	isub temp,null
+	branch mouse_clean_addr,zero
+	increase 22,contr
+	loop mouse_check_device_addr_end
+	rtn
+mouse_before_store_reconn_info:
+	arg mem_device1_type,rega
+	fetch 1,mem_device_flag
+	increase -1,pdata
+	mul32 pdata,29,pdata
+	iadd rega,rega
+	fetch 1,mem_record_bt_mode
+	istore 1,rega
+	beq REC_4_MODE,mouse_store_le_device
+	beq REC_3_MODE,mouse_store_bt_device
+	rtn
+	
+mouse_store_le_device:
+	fetch 6,mem_le_plap
+	istore 6,contw
+	arg mem_le_ltk,contr
+	call memcpy16
+	fetch 6,mem_le_lap
+	istore 6,contw
+	rtn
+mouse_store_bt_device:
+	fetch 6,mem_plap
+	istore 6,contw
+	arg mem_link_key,contr
+	branch memcpy16
+
+mouse_clean_addr:
+	increase -6,contr
+	copy contr,contw
+	fetcht 6,mem_device_addr_temp+1
+	increase 3,temp
+	istoret 6,contw
+	rtn
+	
+mouse_select_reconn_device:
+	arg mem_device1_type,rega
+	fetch 1,mem_device_flag
+	rtneq MODE_24G_DEVICE
+	increase -1,pdata
+	mul32 pdata,29,pdata
+	iadd rega,rega
+	ifetch 1,rega
+	store 1,mem_xrecord_mode
+	beq REC_3_MODE,mouse_load_bt_device
+	beq REC_4_MODE,mouse_load_le_device
+	rtn
+
+mouse_load_bt_device:
+	ifetch 6,contr
+mouse_load_bt_device_end:
+	store 6,mem_hci_plap
+	arg mem_link_key,contw
+	call memcpy16
+	branch check_link_key_load
+
+mouse_load_le_device:
+	ifetch 6,contr
+mouse_load_le_device_end:
+	store 6,mem_hci_plap
+	arg mem_le_ltk,contw
+	call memcpy16
+	ifetch 6,contr
+	store 6,mem_le_lap
+	rtn
+
+
+
+mouse_app_initflag_check:
+	fetch 2,mem_store_flag
+	arg EEPROM_INIT_FLAG,temp
+	isub temp,null
+	branch mouse_load_device_info,zero
+	storet 2,mem_store_flag
+	call mouse_ble_init_address
+	fetch 1,mem_device_flag_temp
+	store 1,mem_device_flag
+	fetch 1,mem_config_sensor_dpi
+	store 1,mem_mouse_dpi
+	fetch 4,mem_24g_fast_conn_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_24g_addr	
+	rtn
+
+mouse_load_device_info:
+	call mouse_select_reconn_device
+	fetch 4,mem_mouse_24g_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_24g_addr
+	rtn
+	
+mouse_ble_init_address:
+	fetch 6,mem_le_lap
+	store 6,mem_device1_locall_addr
+	add pdata,0x0100,pdata
+	store 6,mem_device2_locall_addr
+	add pdata,0x0100,pdata
+	store 6,mem_device3_locall_addr
+	rtn
+	
+
+mouse_store_device_info_delay:	
+	fetch 1,mem_store_information_delay_timer_init
+	store 1,mem_store_information_delay_timer
+	rtn
+
+mouse_store_device_info:
+	bpatch patch1b_3,mem_patch1b
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_store_eeprom_device_info
+	bbit1 MOUSE_ENABLE_FLASH,mouse_store_flash_device_info
+	rtn
+
+mouse_load_flash_info_check:
+	call spid_init_flash
+	call mouse_spid_flash_release_form_powerdown
+	call mouse_information_flash_parameters
+	call spid_read_flash
+	call mouse_spid_flash_powerdown
+	call mouse_app_initflag_check
+	branch mouse_sensor_spi_init
+
+
+mouse_information_flash_parameters:
+	setarg mem_mouse_information_end
+	arg mem_mouse_information_start,temp
+	isub temp,temp
+	fetch 3,mem_flash_base
+	arg mem_mouse_information_start,rega
+	rtn
+	
+mouse_store_flash_device_info:
+	call spid_init_flash
+	call mouse_spid_flash_release_form_powerdown
+	call mouse_flash_erase_sector
+
+	call mouse_information_flash_parameters
+	call mouse_spid_write_flash
+	call mouse_spid_flash_powerdown
+	branch mouse_sensor_spi_init
+
+mouse_spid_flash_release_form_powerdown:
+	jam FLASH_COMMAND_RELEASE_FROM_POWERDOWN,mem_temp
+mouse_spid_write_flash_cmd:
+	call delay_nop100
+	call spid_unlock_flash
+	arg mem_write_flash_head_temp,rega
+	fetcht 1,mem_temp
+	call mouse_spid_write_flash_cmd_common
+	branch delay_nop100
+
+mouse_spid_flash_powerdown:
+	jam FLASH_COMMAND_POWERDOWN,mem_temp
+	branch mouse_spid_write_flash_cmd
+
+mouse_spid_write_flash_cmd_common:
+	istoret 1,rega
+	rshift16 pdata,temp
+	istoret 1,contw
+	rshift8 pdata,temp
+	istoret 1,contw
+	istore 1,contw
+	deposit rega
+	store 2,core_spid_txaddr
+	setarg 0
+	store 2,core_spid_rxlen
+	jam spid_start,core_misc_ctrl
+	branch wait_spid_done
+		
+mouse_flash_erase_sector:
+	fetch 3,mem_flash_base
+	store 3,mem_spi_write_addr
+	branch spid_flash_erase_sector+2
+
+mouse_spid_write_flash:
+	copy pdata,regc
+	copy rega,pdata
+	increase -4,pdata
+	copy pdata,regb
+	ifetch 4,regb
+	store 4,mem_write_flash_head_temp
+	copy regc,pdata
+	call spid_write_flash
+	fetch 4,mem_write_flash_head_temp
+	istore 4,regb
+	rtn
+
+mouse_flash_power_down:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_FLASH
+	call mouse_spid_flash_powerdown
+	call twspi_enable	// 2 wire mode
+	fetcht 1,mem_spi_cs_gpio		//disable flash
+	call gpio_out_inactive
+	fetcht 1,mem_spi_hold_gpio
+	branch mouse_gpio_config_input_pd
+
+mouse_load_eeprom_info_check:
+	call iicd_read_init_pin
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	isolate1 MOUSE_ENABLE_2K_EEPROM,pdata
+	ncall clear_eeprom_size_2k,true
+	call mouse_eeprom_load_recon_info
+	branch mouse_app_initflag_check
+
+mouse_eeprom_load_recon_info:
+	arg 128,temp
+	arg mem_device_flag,rega
+	arg MOUSE_INFO_EEPROM_OFFECT,regb
+	branch iicd_read_eep_data
+
+mouse_store_eeprom_device_info:
+	arg 128,temp
+	arg mem_device_flag,rega
+	arg MOUSE_INFO_EEPROM_OFFECT,regb
+	branch iicd_write_protect_eep_data
+
+
+mouse_store_eerpom_dpi:
+	arg 1,temp
+	arg mem_mouse_dpi,rega
+	arg MOUSE_DPI_EEPROM_OFFECT,regb
+	branch iicd_write_protect_eep_data
+
+mouse_load_eeprom_dpi:
+	arg 1,temp
+	arg mem_mouse_dpi,rega
+	arg MOUSE_DPI_EEPROM_OFFECT,regb
+	branch iicd_read_eep_data
+
+
+
+mouse_idle:
+	bpatch patch1b_4,mem_patch1b
+	call mouse_low_voltage_led_no_enter_lpm
+	call ui_check_paring_button
+	call mouse_dpi_check
+	call mouse_select_device_check
+	call mouse_check_select_device_by_switch
+	call mouse_bt_button_check
+	branch mouse_wheel_check
+	
+mouse_select_device_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON,mouse_select_device_by_pb_button
+	bbit1 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY,mouse_select_device_by_pb_button
+	rtn
+
+mouse_select_device_by_pb_button_check_once:
+	jam 0x03,mem_mouse_pbkey_press_status
+mouse_select_device_by_pb_button:	
+	fetch 1,mem_config_select_device_button_gpio
+	rtneq GPIO_DISABLE
+	arg 0,rega
+	jam MOUSE_PB_KEY,mem_mouse_key_temp
+	fetcht 1,mem_config_select_device_button_gpio
+	call mouse_pb_button_check
+	store 1,mem_mouse_pbkey_press_status
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_pb_button_check_end	
+	call mouse_matrix_public_gpio_reset
+mouse_select_device_by_pb_button_exit:	
+	copy rega,pdata
+	bbit1 MOUSE_PB_KEY,mouse_select_device_button_down
+	branch mouse_select_device_button_up
+
+mouse_3io6key_pb_button_check_end:
+	fetcht 1,mem_config_select_device_button_gpio
+	call mouse_gpio_config_input_pu
+	branch mouse_select_device_by_pb_button_exit
+
+
+mouse_pb_button_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND,mouse_pb_button_connect_gnd
+	fetch 1,mem_mouse_pbkey_press_status
+	copy pdata,regc
+	fetch 1,mem_matrix_public_gpio
+	beq GPIO_DISABLE,mouse_3io6key_check
+	fetch 1,mem_mouse_ghost_flag
+	nbranch mouse_select_device_by_pb_button_end,blank
+	branch mouse_pb_button_connect_matrix
+
+mouse_select_device_by_pb_button_end:
+	jam PB_BUTTON_STATE_UP,mem_select_device_button_statue
+	jam 0,mem_mouse_pbkey_press_status
+	rtn
+
+mouse_pb_button_connect_gnd:
+	fetch 1,mem_mouse_pbkey_press_status
+	branch mouse_check_key_connect_gnd
+
+mouse_pb_button_connect_matrix:
+	call gpio_get_bit
+	fetcht 1,mem_matrix_public_gpio
+	branch mouse_pb_button_connect_gnd,true
+	fetcht 1,mem_matrix_public_gpio
+	call gpio_out_active
+	fetcht 1,mem_config_select_device_button_gpio
+	fetch 1,mem_mouse_pbkey_press_status
+	branch mouse_check_key_connect_gnd
+	
+mouse_select_device_button_up:
+	fetch 1,mem_select_device_button_statue
+	rtneq PB_BUTTON_STATE_UP
+	jam PB_BUTTON_STATE_UP,mem_select_device_button_statue	
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+	fetch 1,mem_bt_discovery_count
+	sub pdata,20,null
+	ncall mouse_ready_reconnection_by_button,positive		// press button less than 30-20=1000ms
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_bt_discovery_count
+	rtn
+
+mouse_select_device_button_down:
+	call mouse_select_device_ghost_check
+	rtn user
+	fetch 1,mem_select_device_button_statue
+	rtneq PB_BUTTON_STATE_DOWN
+	jam PB_BUTTON_STATE_DOWN,mem_select_device_button_statue
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY,mouse_long_button_bt_discovery
+	fetch 1,mem_mouse_direct_timer
+	rtn blank
+	fetch 1,mem_mouse_direct_timeout
+	store 1,mem_mouse_direct_timer
+	rtn
+
+mouse_select_device_ghost_check:
+	disable user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
+	fetch 1,mem_mouse_lkey_press_status
+	rtn blank
+	fetch 1,mem_mouse_rkey_press_status
+	rtn blank
+	enable user
+	rtn
+	
+
+
+mouse_check_select_device_by_switch:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO,mouse_check_select_device_by_switch_gpio
+	bbit1 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC,mouse_adc_read
+	rtn
+mouse_check_select_device_by_switch_gpio:	
+	fetcht 1,mem_device_switch_gpio
+	call mouse_gpio_config_input_pu
+	fetcht 1,mem_device_switch_gpio
+	call gpio_get_bit
+	branch mouse_check_select_24gdevice,true
+mouse_select_btdevice:
+	fetch 1,mem_device_flag
+	rtneq MODE_BT_DEVICE1
+	jam MODE_BT_DEVICE1,mem_device_flag
+	branch mouse_stop_bluetooth_mode
+	
+	
+mouse_check_select_24gdevice:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC,mouse_check_select_24g_device
+	fetch 6,mem_mouse_vdd_switch_gnd_full_vol
+	store 6,mem_mouse_vdd_calculate_set
+mouse_check_select_24g_device:	
+	fetch 1,mem_device_flag
+	rtneq MODE_24G_DEVICE
+	jam MODE_24G_DEVICE,mem_device_flag
+	branch mouse_24g_stop
+
+	
+
+mouse_ready_reconnection_by_button:
+	bpatch patch1b_5,mem_patch1b
+	fetch 1,mem_device_number
+	rtneq 1		// 1channel
+	call mouse_select_device_number
+	storet 1,mem_device_flag
+mouse_store_device_number_before_reset:	
+	jam 0,mem_link_key_exists
+	call mouse_select_device_enable
+	call mouse_stop_bluetooth_mode
+	call mouse_select_device_disable
+	jam 1,mem_mouse_need_soft_reset
+	branch mouse_store_device_info_delay
+
+
+mouse_soft_reset:
+	call mouse_select_device_enable
+	branch soft_reset_chip
+
+mouse_select_device_number:
+	fetcht 1,mem_device_flag
+	increase 1,temp
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G,mouse_select_device_number_24g
+	sub temp,2,null
+	ncall mouse_select_device_count_clean_bt,positive
+	rtn
+	
+mouse_select_device_number_24g:	
+	fetch 1,mem_device_number
+	increase -1,pdata
+	isub temp,null
+	ncall mouse_select_device_count_clean_24g,positive
+	rtn
+
+mouse_select_device_count_clean_24g:
+	arg 0,temp
+	rtn
+mouse_select_device_count_clean_bt:
+	arg 1,temp
+	rtn
+
+
+mouse_store_device_number2eeprom:
+	arg 1,temp
+	arg mem_device_flag,rega
+	arg 0,regb
+	branch iicd_write_protect_eep_data
+		
+
+mouse_bt_button_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+	call mouse_select_device_by_pb_button
+	rtn
+
+
+
+
+mouse_select_device_enable:
+	arg MOUSE_SELECT_DEVICE_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_select_device_disable:
+	arg MOUSE_SELECT_DEVICE_FLAG,queue
+	branch mouse_disable_function_flag
+mouse_bt_cannel_reconn_enable:
+	arg MOUSE_BT_CANNEL_RECONN_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_bt_cannel_reconn_disable:
+	arg MOUSE_BT_CANNEL_RECONN_FLAG,queue
+	branch mouse_disable_function_flag
+mouse_bt_discovery_button_down_enable:
+	arg MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,queue
+	branch mouse_enable_function_flag
+mouse_bt_discovery_button_down_disable:
+	arg MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG,queue
+	branch mouse_disable_function_flag
+
+mouse_adc_read_enable:
+	arg MOUSE_ENABLE_ADC,queue
+	branch mouse_enable_function_flag
+
+mouse_24g_set_250Hz:
+	arg MOUSE_ENABLE_24G_250Hz,queue
+	branch mouse_enable_function_flag
+
+mouse_24g_search_dongle_enable:
+	arg MOUSE_ENABLE_24G_SEARCH_DONGLE,queue
+	branch mouse_enable_function_flag
+	
+mouse_16M_enable:
+	arg MOUSE_ENABLE_16M,queue
+	branch mouse_enable_function_flag
+	
+mouse_dpi_4level_enable:
+	arg MOUSE_ENABLE_DPI_LEVEL_4,queue
+	branch mouse_enable_function_flag
+
+
+mouse_enable_function_flag:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	qset1 pdata
+	store MOUSE_FLAG_LEN,mem_mouse_flag
+	rtn
+
+mouse_disable_function_flag:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	qset0 pdata
+	store MOUSE_FLAG_LEN,mem_mouse_flag
+	rtn
+
+mouse_customer_key_enable:
+	arg MOUSE_ENABLE_KEYBOARD,queue
+	call mouse_enable_function_flag
+	setarg 0
+	store 8,mem_customer_key_press
+	store 8,mem_customer_key_release
+	fetch 1,mem_mouse_enable_flag	// 00--win+d     01--ctrl+alt+a    02--AC home    03--play
+	and pdata,0xc0,pdata
+	beq 0x40,mouse_customer_key_ctrl_alt_a
+	beq 0x80,mouse_customer_AC_home
+	beq 0xc0,mouse_customer_key_play
+	setarg 0x070008
+mouse_customer_standrad_key_set:	
+	store 8,mem_customer_key_press+1		// win + d
+	rtn
+
+mouse_customer_key_ctrl_alt_a:
+	setarg 0x040005
+	branch mouse_customer_standrad_key_set
+
+	
+mouse_customer_AC_home:
+	setarg 0x022303
+mouse_customer_media_key_set:	
+	store 8,mem_customer_key_press
+	setarg 0x03
+	store 8,mem_customer_key_release
+	rtn
+	
+mouse_customer_key_play:
+	setarg 0x00cd03
+	branch mouse_customer_media_key_set
+
+	
+
+
+
+	
+mouse_polling_device:
+	bpatch patch1b_6,mem_patch1b
+	fetch 1,mem_reconn_times
+	increase -1,pdata
+	store 1,mem_reconn_times
+	fetcht 1,mem_device_flag
+	sub temp,1,null
+	ncall mouse_select_device_number,zero
+	storet 1,mem_device_flag
+	jam 0,mem_link_key_exists
+	call mouse_store_device_number2eeprom
+	call mouse_before_store_reconn_info
+	branch mouse_start_reconnect_device
+	
+
+
+//notice: need to call p_mouse_drawing_optima_init when waked from mult
+mouse_drawing_optima:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_SMOOTHER
+	fetch 4,mem_mouse_x
+	rtn blank
+	call mouse_data_abs_check
+	setarg 0x03	//asm_flag enable condition
+	call mouse_pdata_greater_than_check
+	call mouse_disable_asm,blank
+	ncall mouse_enable_asm,blank
+	setarg 0x02	//asm_flag disable condition
+	call mouse_data_less_than_check
+	call mouse_disable_asm,blank
+	fetch 1,mem_mouse_asm_flag
+	beq 1,mouse_drawing_optima_modify
+mouse_drawing_optima_init:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_SMOOTHER
+	arg 5,loopcnt
+	arg mem_mouse_asm_flag,contw
+	branch clear_mem
+
+mouse_drawing_optima_modify:
+	call mouse_drawing_optima_xy_offset_modify
+	fetch 2,mem_mouse_x_pre
+	store 2,mem_data_pre
+	fetch 2,mem_mouse_x
+	store 2,mem_data_current
+	call mouse_drawing_optima_data_x
+	fetch 2,mem_data_pre
+	store 2,mem_mouse_x_pre
+	fetch 2,mem_data_current
+	store 2,mem_mouse_x
+
+	fetch 2,mem_mouse_y_pre
+	store 2,mem_data_pre
+	fetch 2,mem_mouse_y
+	store 2,mem_data_current
+	call mouse_drawing_optima_data_y
+	fetch 2,mem_data_pre
+	store 2,mem_mouse_y_pre
+	fetch 2,mem_data_current
+	store 2,mem_mouse_y
+	rtn
+
+mouse_drawing_optima_xy_offset_modify:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_XY_OFFSET
+	fetch 2,mem_mouse_x_pre
+	store 2,mem_data_value
+	call mouse_pre_xy_data_judge
+	store 2,mem_mouse_x_pre
+	fetch 2,mem_mouse_x
+	store 2,mem_data_value
+	call mouse_current_xy_data_judge
+	store 2,mem_mouse_x
+	fetch 2,mem_mouse_y_pre
+	store 2,mem_data_value
+	call mouse_pre_xy_data_judge
+	store 2,mem_mouse_y_pre
+	fetch 2,mem_mouse_y
+	store 2,mem_data_value
+	call mouse_current_xy_data_judge
+	store 2,mem_mouse_y
+	rtn
+
+mouse_pre_xy_data_judge:	
+	fetch 1,mem_data_value+1
+	branch mouse_pre_xy_pdata_offset,blank
+	branch mouse_pre_xy_ndata_offset
+
+mouse_pre_xy_pdata_offset:
+	fetch 1,mem_data_value
+	call mouse_pre_xy_get_0_4_times
+	store 1,mem_data_value
+mouse_xy_data_offset_new:
+	fetch 2,mem_data_value
+	rtn
+mouse_pre_xy_ndata_offset:
+	fetch 1,mem_data_value
+	call mouse_pdata_invert
+	call mouse_pre_xy_get_0_4_times
+	call disable_blank,blank
+	call mouse_pdata_get_new_value
+	branch mouse_xy_data_offset_new
+	
+mouse_current_xy_data_judge:
+	fetch 1,mem_data_value+1
+	branch mouse_current_xy_pdata_offset,blank
+	branch mouse_current_xy_ndata_offset
+mouse_current_xy_pdata_offset:
+	fetch 1,mem_data_value
+	call mouse_current_xy_get_0_6_times
+	store 1,mem_data_value
+	branch mouse_xy_data_offset_new
+mouse_current_xy_ndata_offset:	
+	fetch 1,mem_data_value
+	call mouse_pdata_invert
+	call mouse_current_xy_get_0_6_times
+	call disable_blank,blank
+	call mouse_pdata_get_new_value
+	branch mouse_xy_data_offset_new
+	
+mouse_pre_xy_get_0_4_times:
+	mul32 pdata,4,pdata
+	div pdata,5
+	call wait_div_end
+	quotient pdata
+	rtn
+mouse_current_xy_get_0_6_times:	//0.6 times
+	mul32 pdata,12,pdata
+	div pdata,10
+	call wait_div_end
+	quotient pdata
+	rtn	
+	
+mouse_drawing_optima_data_x:
+	fetch 2,mem_data_pre
+	fetcht 2,mem_data_current
+	iadd temp,pdata
+	fetcht 1,mem_mouse_data_xtemp
+	iadd temp,pdata
+	and pdata,0x01,temp
+	storet 1,mem_mouse_data_xtemp
+	branch mouse_drawing_optima_data
+
+mouse_drawing_optima_data_y:
+	fetch 2,mem_data_pre
+	fetcht 2,mem_data_current
+	iadd temp,pdata
+	fetcht 1,mem_mouse_data_ytemp
+	iadd temp,pdata
+	and pdata,0x01,temp
+	storet 1,mem_mouse_data_ytemp
+	branch mouse_drawing_optima_data
+
+/**********
+input:data_pre,data_current
+output:data_pre,data_current after optima
+***********/
+mouse_drawing_optima_data:
+	store 3,mem_data_sum
+	isolate1 16,pdata
+	branch mouse_data_sum_overflow,true
+	fetch 1,mem_data_sum+1
+	beq 0xff,mouse_data_sum_n
+	fetch 1,mem_data_sum
+mouse_data_store_pre:
+	rshift pdata,pdata
+	store 2,mem_data_pre
+	store 2,mem_data_current
+	rtn
+mouse_data_sum_overflow:
+	fetch 1,mem_data_sum+1	//sum positive
+	beq 0,mouse_data_sum_overflow_p
+	fetch 3,mem_data_sum	
+	branch mouse_data_store_pre
+mouse_data_sum_overflow_p:
+	jam 0,mem_data_sum+2
+	fetch 1,mem_data_sum
+	branch mouse_data_store_pre
+
+mouse_data_sum_n:
+	fetch 1,mem_data_sum	//sum negetive
+	call mouse_pdata_get_half
+	store 1,mem_data_pre
+	store 1,mem_data_current
+	branch mouse_data_zero,blank
+	setarg 0xff
+mouse_data_set_direction:	
+	store 1,mem_data_pre+1
+	store 1,mem_data_current+1
+	rtn
+mouse_data_zero:
+	setarg 0
+	branch mouse_data_set_direction
+
+mouse_pdata_get_half:
+	call mouse_pdata_invert
+	rshift pdata,pdata
+mouse_pdata_get_new_value:	
+	call mouse_rega_in_out
+	sub pdata,0,pdata
+	store 1,mem_data_value	
+	rtn
+
+mouse_pdata_invert:
+	sub pdata,0,pdata
+mouse_rega_in_out:	
+	store 1,mem_rega
+	fetch 1,mem_rega
+	rtn
+
+mouse_disable_asm:
+	jam 0,mem_mouse_asm_flag
+	rtn
+mouse_enable_asm:
+	jam 1,mem_mouse_asm_flag
+	rtn
+
+//rega mouse_x, regb mouse_y, pdata refer
+mouse_pdata_greater_than_check:
+	isub rega,null
+	nbranch disable_blank,positive
+	isub regb,null
+	nbranch disable_blank,positive
+	branch enable_blank
+mouse_data_less_than_check:
+	isub rega,null
+	nrtn positive
+	isub regb,null
+	nrtn positive
+	branch enable_blank
+
+mouse_data_abs_check:
+	fetch 2,mem_mouse_x
+	call mouse_data_abs
+	copy pdata,rega
+	fetch 2,mem_mouse_y
+	call mouse_data_abs
+	copy pdata,regb
+	rtn
+
+/***********
+input: data_current
+output:pdata,abs
+************/
+mouse_data_abs:
+	store 2,mem_data_current
+	fetch 1,mem_data_current+1
+	beq 0xff,mouse_data_reversal
+	fetch 1,mem_data_current
+mouse_data_abs_store:
+	and_into 0xff,pdata
+	//output:pdata
+	rtn
+mouse_data_reversal:
+	fetch 2,mem_data_current
+	sub pdata,0,pdata
+	branch mouse_data_abs_store
+
+mouse_24g_long_sleep_param_update_timer:
+	arg mem_24g_long_sleep_param_update_timer,regc
+	arg mouse_24g_long_sleep_normal_param,regb
+	branch timer_single_step
+mouse_24g_long_sleep_normal_param:
+	fetch 4,mem_24g_long_sleep_set1
+	store 4,mem_24g_enter_hibernate
+	jam 1,mem_mouse_long_mult_flag
+	rtn
+
+
+mouse_24g_long_sleep_set:
+	fetch 1,mem_24g_long_sleep_set_level
+	beq 0x00,mouse_24g_long_sleep_set_30ms
+	beq 0x01,mouse_24g_long_sleep_set_50ms
+	beq 0x02,mouse_24g_long_sleep_set_80ms
+	beq 0x03,mouse_24g_long_sleep_set_100ms
+mouse_24g_long_sleep_set_80ms:
+	setarg 0x0ea600
+mouse_24g_long_sleep_set_end:	
+	store 4,mem_24g_long_sleep_set1
+	rtn
+mouse_24g_long_sleep_set_30ms:
+	setarg 0x05e740
+	branch mouse_24g_long_sleep_set_end
+mouse_24g_long_sleep_set_50ms:
+	setarg 0x0927c0
+	branch mouse_24g_long_sleep_set_end
+mouse_24g_long_sleep_set_100ms:
+	setarg 0x124f80
+	branch mouse_24g_long_sleep_set_end
+
+	
+
+mouse_24g_hibernate_set:
+	jam 0,mem_24g_attempt_fail_flag
+	call g24_transmit_next_packet
+	setarg -1
+	store 4,mem_24g_enter_hibernate
+	setarg 0
+	store 7,mem_mouse_key
+	jam 1,mem_sensor_shutdown_flag
+	call mouse_sensor_powerdown
+	call mouse_setgpio_hibernate
+	branch g24_long_sleep
+
+mouse_wakeup_24g:
+	fetch 1,mem_sensor_shutdown_flag
+	ncall mouse_init_sensor_wakeup,blank
+	jam 0,mem_sensor_shutdown_flag
+	branch g24_transmit_no_ack
+
+mouse_24g_transmit_start:
+	fetch 1,mem_sensor_shutdown_flag
+	nbranch g24_short_sleep,blank
+	branch g24_transmit_start_next
+
+
+mouse_24g_stop:
+	set0 mark_24g,mark
+	jam STATE_24G_STOP,mem_24g_conn_sm
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	branch mouse_disable_function_flag
+
+
+mouse_24g_start_mode:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G,mouse_24g_mode_setup_error
+	call mouse_wakeup_from_power_check	// wake from hibernate :enble user
+	branch mouse_24g_reconn_dongle_start,user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_reconn_general_dongle
+	bbit0 MOUSE_ENABLE_24G_POWER_ON_PAIRING,mouse_24g_reconn_general_dongle
+	call mouse_key_check_once
+	and pdata,0x07,pdata
+	fetcht 1,mem_mouse_commbination_key_24g
+	isub temp,null
+	branch mouse_24g_start_pair_mode,zero
+	branch mouse_24g_reconn_general_dongle
+
+mouse_24g_mode_setup_error:
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	rtn
+
+mouse_24g_reconn_dongle_start:
+	fetch 2,mem_24g_reconn_timeout_init
+	store 2,mem_24g_reconn_timeout
+	jam RECEIVER_AND_3_0_ADDR,mem_24g_reconn_type
+	branch g24_reconn_start
+
+
+mouse_24g_first_start_auto_pair_mode:
+	call mouse_wakeup_from_power_check
+	branch mouse_24g_first_start_reconn,user  	// wake from hibernate :enble user
+mouse_24g_reconn_general_dongle:	
+	jam MODE_24G_DEVICE,mem_device_flag
+	fetch 2,mem_mouse_24g_power_on_fast_conn_timer
+	store 2,mem_24g_reconn_timeout
+	jam FAST_CONN_AND_3_0_ADDR,mem_24g_reconn_type
+	branch g24_reconn_start
+
+mouse_24g_start_auto_pair:
+	call mouse_discover_setting_led_gpio
+	fetch 2,mem_24g_pair_timeout_init
+	store 2,mem_24g_reconn_timeout
+	jam PAIR_AND_3_0_ADDR,mem_24g_reconn_type
+	branch g24_reconn_start
+
+
+mouse_24g_first_start_reconn:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_reconn_dongle_start
+	call mouse_bluetooth_fast_conn_disable
+	branch mouse_24g_first_bluetooth_reconnect
+	
+mouse_24g_first_bluetooth_reconnect:
+	call mouse_24g_stop
+	call mouse_device_led_all_off
+mouse_check_bt_reconn_target:
+	jam MODE_BT_DEVICE1,mem_device_flag
+	call mouse_select_reconn_device
+	branch mouse_start_reconnect_device
+
+mouse_24g_first_bb_event_reconn_timeout:
+	call mouse_wakeup_from_power_check
+	branch mouse_app_enter_hibernate,user
+	branch mouse_start_discovery
+
+
+mouse_24g_first_store_reconn_info:
+	call mouse_wakeup_from_power_check
+	rtn user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_store_device_info_delay
+	rtn
+
+mouse_24g_start_pair_mode:
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	call mouse_enable_function_flag
+	setarg 0
+	store 2,mem_24g_reconn_timeout	
+	call mouse_stop_discovery
+	call mouse_low_voltage_led_blink_disable
+	call mouse_discover_setting_led_gpio
+	jam TYPE_MS,mem_24g_data_type
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,g24_pair_start
+	jam TYPE_KB,mem_24g_data_type
+	branch g24_pair_start
+
+	
+mouse_24g_attempt_fail:
+	fetch 1,mem_24g_attempt_fail_flag
+	nbranch mouse_24g_hibernate_set,blank
+	fetch 1,mem_24g_reconn_type
+	beq FAST_CONN_AND_3_0_ADDR,mouse_24g_fast_conn_attempt_fail
+	beq PAIR_AND_3_0_ADDR,mouse_24g_auto_pair_attempt_fail
+	beq RECEIVER_AND_3_0_ADDR,mouse_reconn_dongle_attempt_fail
+mouse_24g_attempt_fail_enter_hibernate:
+	call mouse_device_led_off
+	call mouse_24g_stop
+	fetch 1,mem_reconn_times
+	nbranch mouse_polling_device,blank
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_app_enter_hibernate
+	rtn
+
+mouse_24g_fast_conn_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_start_auto_pair
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_start_auto_pair
+	branch mouse_24g_reconn_dongle_start
+
+
+mouse_24g_auto_pair_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_attempt_fail_enter_hibernate
+	fetch 1,mem_device_number
+	beq 1,mouse_24g_attempt_fail_enter_hibernate		//24g first mode and only 2.4g device
+	branch mouse_24g_first_bluetooth_reconnect
+
+mouse_reconn_dongle_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_24g_attempt_fail_enter_hibernate
+	bbit1 MOUSE_ENABLE_FLASH,mouse_24g_attempt_fail_enter_hibernate
+	branch mouse_24g_start_auto_pair+1
+
+		
+mouse_24g_attempt_success:
+	call mouse_init_sensor_reset
+	jam 0,mem_mouse_long_mult_flag
+	jam 0,mem_24g_conn_sm
+	jam 0,mem_24g_reconn_type
+	fetch 4,mem_24g_receiver_addr
+	fetch 4,mem_24g_fast_conn_addr
+	isub temp,null
+	rtn zero
+	branch mouse_24g_first_store_reconn_info
+	
+mouse_24g_pairing_complete:
+	arg MOUSE_24G_PAIRING_FLAG,queue
+	call mouse_disable_function_flag
+	call mouse_device_poweron_timer_init
+	setarg 0
+	store 2,mem_24g_pair_timeout
+	store 2,mem_24g_reconn_timeout
+	store 1,mem_24g_conn_sm
+	store 1,mem_mouse_move_flag
+	store 1,mem_24g_reconn_type
+
+	call mouse_init_sensor_reset
+	call mouse_read_sensor_common
+	fetch 4,mem_24g_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_mouse_24g_addr
+	branch mouse_store_device_info_delay
+
+mouse_24g_package_data:
+	rtnmark0 mark_24g
+	call mouse_motion
+	nrtn user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_KEYBOARD,mouse_24g_mouse_package_data
+	fetch 1,mem_customer_key
+	nbranch mouse_24g_keyboard_package_data,blank
+mouse_24g_mouse_package_data:
+	call mouse_data_xy_release
+	fetch 1,mem_24g_data_type
+	bbit1 1,mouse_24g_mouse_package_data_now	// last package is keyboard data
+	fetcht 1,mem_24g_txbuf+1
+	fetch 1,mem_mouse_key
+	ior temp,pdata
+	store 1,mem_mouse_key
+	fetcht 1,mem_24g_txbuf+6
+	fetch 1,mem_mouse_z
+	iadd temp,pdata
+	store 1,mem_mouse_z
+	fetcht 1,mem_24g_txbuf+7
+	fetch 1,mem_mouse_tz
+	iadd temp,pdata
+	store 1,mem_mouse_tz	
+mouse_24g_mouse_package_data_now:	
+	jam TYPE_MS,mem_24g_data_type
+	arg 7,rega	//length
+	arg mem_mouse_key,regb //tx buff
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_24G_250Hz,g24_transmit_by_interrupt_enable
+	fetch 2,mem_mouse_z
+	rtn blank
+	branch g24_transmit_by_interrupt_enable
+
+mouse_24g_keyboard_package_data:
+	jam TYPE_KB,mem_24g_data_type
+	arg 9,rega	//length
+	fetch 1,mem_customer_data_trigger
+	nbranch mouse_customer_key_press,blank
+	arg mem_customer_key_release,regb	//tx buff
+	rtn
+mouse_customer_key_press:
+	arg mem_customer_key_press,regb
+	rtn
+
+
+
+/**************************************g24 search receiver*****************************************/
+
+mouse_24g_search_dongle_init:
+	setarg 0
+	store 3,mem_mouse_search_dongle_action
+	rtn
+
+mouse_24g_search_dongle:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_24G_SEARCH_DONGLE
+	fetch 1,mem_mouse_long_mult_flag
+	rtn blank
+	fetch 1,mem_24g_abort_pac
+	rtn blank
+	fetch 1,mem_mouse_search_dongle_interval
+	increase 1,pdata
+	and_into 3,pdata
+	store 1,mem_mouse_search_dongle_interval
+	nrtn blank	//400ms
+	jam 0,mem_mouse_search_dongle_ch
+mouse_24g_search_dongle_loop:
+	fetch 1,mem_mouse_search_dongle_ch
+	increase 1,pdata
+	store 1,mem_mouse_search_dongle_ch
+	sub pdata,G24_CH_NUMBER,null
+	nbranch mouse_24g_search_dongle_loop_end,positive
+	call g24_reconn_data_prep
+	call g24_transmit_receive_ack
+	nbranch mouse_24g_search_dongle_loop_retry,sync
+	nbranch mouse_24g_search_dongle_loop_retry,user3
+	call mouse_g24_ackpayload_parse
+	call mouse_24g_search_dongle_success
+mouse_24g_search_dongle_loop_end:
+	call g24_txbuf_clear
+	fetch 1,mem_mouse_search_dongle_count
+	increase 1,pdata
+	store 1,mem_mouse_search_dongle_count
+	beq G24_CH_POLL_COUNT,mouse_24g_search_dongle_check
+	rtn
+
+mouse_24g_search_dongle_loop_retry:
+	call g24_ch
+	branch mouse_24g_search_dongle_loop
+
+mouse_24g_search_dongle_check:
+	jam 0,mem_mouse_search_dongle_count
+	fetch 1,mem_mouse_search_dongle_action
+	rtnbit1 G24_DISCONN_STATE
+	set1 G24_DISCONN_STATE,pdata
+	store 1,mem_mouse_search_dongle_action
+	fetch 2,mem_mouse_24g_search_dongle_time_init		//3min
+//	store 2,mem_mouse_no_data_timer
+//	branch mouse_sensor_powerdown
+	branch mouse_24g_hibernate_set
+
+
+mouse_24g_search_dongle_success:
+	fetch 1,mem_24g_abort_pac
+	branch mouse_24g_search_dongle_init,blank
+	jam 0,mem_mouse_search_dongle_count
+	fetch 1,mem_mouse_search_dongle_action
+	rtnbit0 G24_DISCONN_STATE
+	set0 G24_DISCONN_STATE,pdata
+	store 1,mem_mouse_search_dongle_action
+	call mouse_no_data_timer_init
+	branch mouse_init_sensor_wakeup
+
+mouse_g24_ackpayload_parse:
+	call g24_ackpayload_parse
+	fetch 1,mem_24g_rxbuf+1
+	compare 0x08,pdata,0xf8
+	nrtn true
+	fetch 1,mem_24g_rxbuf+2		// pc sleep mouse ackpayload: 01 08 ff
+	beq 0xff,mouse_24g_hibernate_set
+	rtn
+
+/**************************************g24 search receiver*****************************************/
+
+
+/**************************************g24 new process start********************************************/
+mouse_24g_before_lpm_sleep:
+	fetch 1,mem_device_flag
+	bne MODE_24G_DEVICE,lpm_sleep_skip_cb_function
+	fetch 1,mem_24g_disable_fec1
+	rtn blank
+mouse_peripheral_clock_off:
+	jam 2,core_clksel			//use rc clock
+	fetch 1,core_lpm_ctrl		//close xtal en reg
+	and pdata,0xfc,pdata
+	store 1,core_lpm_reg
+	branch lpm_write_ctrl
+
+/**************************************g24 new process end********************************************/
+
+
+/*******************led*************************/
+mouse_device_poweron_timer:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_POWER_ON_LED
+	fetch 1,mem_mouse_device_poweron_timer_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_mouse_device_poweron_timer_count
+	branch mouse_device_led_off,blank
+	branch mouse_device_led_on
+	
+mouse_device_poweron_timer_init:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_POWER_ON_LED
+	call mouse_low_voltage_led_blink_disable
+	fetch 1,mem_mouse_device_poweron_timer_count_init
+	store 1,mem_mouse_device_poweron_timer_count
+	rtn	
+
+	
+mouse_discover_setting_led_gpio:
+	jam 0,mem_mouse_device_poweron_timer_count
+	fetch 2,mem_mouse_disconvey_led_blink_time
+	store 2,mem_mouse_on_time
+	store 2,mem_mouse_off_time	
+mouse_setting_led_gpio_comman:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_led_24g
+	beq MODE_BT_DEVICE1,mouse_device_led_bt1
+	beq MODE_BT_DEVICE2,mouse_device_led_bt2
+	rtn
+mouse_device_led_24g:
+	fetch 1,mem_config_device_24g_led_gpio
+	branch mouse_led_blink
+mouse_device_led_bt1:
+	fetch 1,mem_config_device_bt1_led_gpio
+	branch mouse_led_blink
+mouse_device_led_bt2:
+	fetch 1,mem_config_device_bt2_led_gpio
+mouse_led_blink:
+	store 1,mem_temp
+	call mouse_device_led_off
+	fetch 1,mem_temp
+	store 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	jam UI_LED_STATE_BLINK_START,mem_mouse_led_type
+	branch ui_led_blink_start_global
+
+
+mouse_dpi_led_blink_delay:
+	fetch 1,mem_dpi_led_gpio
+	rtneq GPIO_DISABLE
+	fetch 2,mem_mouse_discovery_timer
+	nrtn blank
+	fetch 2,mem_24g_pair_timeout
+	nrtn blank
+	fetch 2,mem_24g_reconn_timeout
+	nrtn blank
+	fetch 1,mem_mouse_device_poweron_timer_count
+	nrtn blank
+	fetch 1,mem_mouse_dpi_led_delay_count_init
+	branch mouse_dpi_led_blink_init,blank
+	store 1,mem_mouse_dpi_led_delay_count  //delay 1s led blink
+	rtn
+
+
+mouse_dpi_led_blink_delay_timer:
+	arg mem_mouse_dpi_led_delay_count,regc
+	arg mouse_dpi_led_blink_init,regb
+	branch timer_single_step	
+	
+mouse_dpi_led_blink_init:
+	fetch 1,mem_dpi_led_gpio
+	store 1,mem_mouse_struct_led_gpio
+	fetch 2,mem_mouse_dpi_led_blink_time
+	store 2,mem_mouse_on_time
+	store 2,mem_mouse_off_time
+	arg 0,rega
+	fetcht 1,mem_mouse_dpi
+	increase 1,temp
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_DPI_LEVEL_4,mouse_dpi_led_blink_init_end
+	increase 1,temp
+	sub temp,4,null
+	ncall mouse_dpi_led_blink_count_clean,positive		// blink count:2 3 4 1
+mouse_dpi_led_blink_init_end:	
+	storet 1,mem_mouse_blink_count
+	jam UI_LED_STATE_BLINK_START,mem_mouse_led_type
+	rtn
+
+mouse_dpi_led_blink_count_clean:
+	arg 1,temp
+	rtn
+
+mouse_check_dpi_blink:
+	disable user
+	fetch 1,mem_dpi_led_gpio
+	fetcht 1,mem_mouse_struct_led_gpio
+	isub temp,null
+	nrtn zero
+	fetch 1,mem_mouse_blink_count
+	rtn blank
+	jam 0,mem_adc_low_volatage_led_blink_enable
+	enable user
+	rtn
+
+mouse_device_led_all_off:
+	call mouse_dpi_led_off
+	call mouse_device_24g_led_off
+	call mouse_device_bt1_led_off
+	branch mouse_device_bt2_led_off
+
+mouse_device_led_off:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_24g_led_off
+	beq MODE_BT_DEVICE1,mouse_device_bt1_led_off
+	beq MODE_BT_DEVICE2,mouse_device_bt2_led_off
+	rtn
+
+mouse_device_24g_led_off:
+	jam 0,mem_24g_device_led_status
+	fetcht 1,mem_config_device_24g_led_gpio
+	branch mouse_led_off
+
+mouse_device_bt1_led_off:
+	fetcht 1,mem_config_device_bt1_led_gpio
+	branch mouse_led_off
+	
+mouse_device_bt2_led_off:
+	fetcht 1,mem_config_device_bt2_led_gpio
+	branch mouse_led_off
+
+mouse_dpi_led_off:
+	fetcht 1,mem_dpi_led_gpio
+	branch mouse_led_off
+
+mouse_device_led_on:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_24g_led_on
+	beq MODE_BT_DEVICE1,mouse_device_bt1_led_on
+	beq MODE_BT_DEVICE2,mouse_device_bt2_led_on
+	rtn
+
+mouse_device_24g_led_on:
+	fetcht 1,mem_config_device_24g_led_gpio
+	branch mouse_led_on
+mouse_device_bt1_led_on:
+	fetcht 1,mem_config_device_bt1_led_gpio
+	branch mouse_led_on
+mouse_device_bt2_led_on:
+	fetcht 1,mem_config_device_bt2_led_gpio
+	branch mouse_led_on
+
+mouse_led_off:
+	bpatch patch1b_7,mem_patch1b
+	storet 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	branch ui_led_off_global
+mouse_led_on:
+	bpatch patch1c_0,mem_patch1c
+	storet 1,mem_mouse_struct_led_gpio
+	arg 0,rega
+	branch ui_led_on_global
+
+mouse_ui_led_off_static:
+	fetch 1,mem_config_device_24g_led_gpio
+	isub temp,null
+	call mouse_clear_24g_led_statue,zero
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_4_LED,gpio_out_inactive
+	call mouse_check_bt2_led_off
+	call mouse_check_dpi_led_off
+	call mouse_check_low_v_led_off
+	fetch 1,mem_mouse_led_off_4_led
+	branch gpio_out_inactive,blank
+	jam 0,mem_mouse_led_off_4_led
+	branch gpio_set_high_impedance
+
+mouse_ui_led_on_static:
+	fetch 1,mem_config_device_24g_led_gpio
+	isub temp,null
+	call mouse_set_24g_led_statue,zero
+	branch gpio_out_active 
+
+
+mouse_check_bt2_led_off:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_BT2_FOR_4_LED
+	fetch 1,mem_config_device_bt2_led_gpio
+	branch mouse_check_1gpio_2led_off
+mouse_check_dpi_led_off:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_DPI_FOR_4_LED
+	fetch 1,mem_dpi_led_gpio
+	branch mouse_check_1gpio_2led_off
+mouse_check_low_v_led_off:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_LOW_V_FOR_4_LED
+	fetch 1,mem_config_low_voltage_alarm_gpio
+mouse_check_1gpio_2led_off:
+	isub temp,null
+	nrtn zero
+	jam 1,mem_mouse_led_off_4_led
+	rtn
+
+mouse_clear_24g_led_statue:
+	jam 0,mem_24g_device_led_status
+	rtn
+
+mouse_set_24g_led_statue:
+	jam 1,mem_24g_device_led_status
+	rtn
+
+mouse_low_voltage_led_timer:
+	fetch 2,mem_mouse_discovery_timer
+	nrtn blank
+	fetch 2,mem_24g_pair_timeout
+	nrtn blank
+	fetch 2,mem_24g_reconn_timeout
+	nrtn blank
+	fetch 1,mem_mouse_device_poweron_timer_count
+	nrtn blank
+	call mouse_check_dpi_blink
+	rtn user
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_LOW_VOLTAGE_LED
+	rtnbit0 MOUSE_LOW_VOLTAGE_FLAG
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND,mouse_low_voltage_led_blink_new_data
+	fetch 1,mem_adc_low_volatage_led_timer_count
+	increase 1,pdata
+	store 1,mem_adc_low_volatage_led_timer_count
+	sub pdata,20,null
+	ncall mouse_adc_low_volatage_led_timer_count_clean,positive
+	beq 2,mouse_low_voltage_led_on
+	beq 4,mouse_low_voltage_led_off
+	beq 6,mouse_low_voltage_led_on
+	beq 8,mouse_low_voltage_led_off
+	rtn
+mouse_adc_low_volatage_led_timer_count_clean:
+	jam 1,mem_adc_low_volatage_led_timer_count
+	branch mouse_low_voltage_led_off
+mouse_low_voltage_led_on:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED,mouse_device_led_on
+	fetch 1,mem_config_low_voltage_alarm_gpio
+	rtneq GPIO_DISABLE
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	branch mouse_led_on
+mouse_low_voltage_led_off:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED,mouse_device_led_off
+	fetch 1,mem_config_low_voltage_alarm_gpio
+	rtneq GPIO_DISABLE
+	fetcht 1,mem_config_low_voltage_alarm_gpio
+	branch mouse_led_off
+
+mouse_low_voltage_led_blink_new_data:
+	fetch 2,mem_mouse_no_data_timeout
+	fetcht 2,mem_mouse_no_data_timer
+	isub temp,temp
+	fetch 2,mem_adc_low_volatage_led_blink_timer
+	isub temp,null
+	nbranch mouse_low_voltage_led_blink_disable,positive
+	fetch 1,mem_adc_low_volatage_led_blink_enable
+	nrtn blank
+	jam 1,mem_adc_low_volatage_led_blink_enable
+	branch mouse_low_voltage_led_blink_init
+	
+mouse_low_voltage_led_blink_init:
+	fetch 2,mem_mouse_low_v_led_blink_time
+	store 2,mem_mouse_on_time
+	store 2,mem_mouse_off_time
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED,mouse_setting_led_gpio_comman
+	fetch 1,mem_config_low_voltage_alarm_gpio
+	rtneq GPIO_DISABLE
+	branch mouse_led_blink
+
+mouse_low_voltage_led_blink_disable:
+	jam 0,mem_adc_low_volatage_led_blink_enable
+	branch mouse_low_voltage_led_off
+
+
+mouse_low_voltage_led_no_enter_lpm:	
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_LOW_VOLTAGE_LED
+	rtnbit0 MOUSE_LOW_VOLTAGE_FLAG
+	bbit1 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND,mouse_low_voltage_led_no_enter_lpm_blink
+	fetch 1,mem_adc_low_volatage_led_timer_count
+	sub pdata,10,null
+	branch mouse_lpm_mode_clear,positive
+mouse_low_voltage_led_no_enter_lpm_next:	
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,g24_transmit_by_interrupt_exit_check
+	jam 1,mem_lpm_mode
+	rtn
+
+g24_transmit_by_interrupt_exit_check:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag	
+	rtnbit1 MOUSE_ENABLE_24G_250Hz	
+	branch g24_transmit_by_interrupt_exit
+
+mouse_lpm_mode_clear:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,g24_transmit_by_interrupt_enable
+	jam 0,mem_lpm_mode
+	rtn
+
+mouse_low_voltage_led_no_enter_lpm_blink:
+	fetch 1,mem_adc_low_volatage_led_blink_enable
+	nbranch mouse_lpm_mode_clear,blank
+	branch mouse_low_voltage_led_no_enter_lpm_next
+	
+	
+/*******************led*************************/	
+mouse_store_signal_rssi:
+	call rssi_hex2dec
+	fetch 1,mem_rssi
+	branch rssi_signal
+
+mouse_le_transmit:
+	call mouse_store_signal_rssi
+	branch power_ctrl_start
+
+mouse_bt_slave_match:
+	call mouse_store_signal_rssi
+	fetch 1,mem_state
+	isolate1 state_inconn,pdata
+	nrtn true
+	fetch 1,mem_arq
+	isolate1 wack,pdata
+	call power_ctrl_pac_succ_decrs,true
+	ncall power_ctrl_pac_succ_incrs,true
+	branch power_ctrl_start
+
+mouse_le_set_lpm_mult:
+	fetch 1,mem_le_connect_status_flag
+	compare 3,pdata,3
+	nbranch disable_blank,true
+	call app_lpm_mult_enable
+	branch enable_blank
+
+mouse_bt_set_lpm_mult:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank
+	jam 1,mem_current_sniff_attempt
+	jam 0,mem_current_sniff_timeout
+	branch enable_blank
+
+mouse_set_lpm_mult:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,mouse_le_set_lpm_mult
+	branch mouse_bt_set_lpm_mult
+
+/*****************close define  COMPILE_MOUSE**********/
+else
+mouse_init:
+mouse_irtual_cable_unplug:
+mouse_store_remote_bdaddr:
+mouse_ui_led_off_static:
+mouse_ui_led_on_static:
+mouse_bt_hid_handshake_boot_check:
+mouse_delay_enter_hibernata:
+mouse_low_voltage_led_no_enter_lpm_blink:
+	rtn
+endif
+
+
+
Index: program/app_remote_car.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_remote_car.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_remote_car.prog	(working copy)
@@ -0,0 +1,393 @@
+ifdef COMPILE_REMOTE_CAR
+
+remote_car_init:
+	rtn wake	
+	call keyscan_key_init
+	setarg remote_car_g24_package_data
+	store 2,mem_cb_24g_transmit_data
+
+	setarg remote_car_process_lpm_before
+	store 2,mem_cb_24g_lpm_before
+	
+	setarg remote_car_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+	
+	setarg remote_car_scale_process_idle
+	store 2,mem_cb_idle_process	
+	
+	setarg remote_car_scale_process_bb_event
+	store 2,mem_cb_bb_event_process
+
+	setarg remote_car_event_timer
+	store 2,mem_cb_event_timer
+	
+	setarg remote_car_power_off_signal
+	store 2,mem_remote_car_power_off_cb
+	
+	setarg remote_car_soft_switch_power_on_signal
+	store 2,mem_remote_car_power_standby_cb
+	
+	
+	bpatch patch1c_1,mem_patch1c
+	call set_eeprom_size_2k
+	call remote_car_init_environment
+
+	call queue_init
+	fetch 1,mem_remote_car_config_soft_switch_enable
+	store 1,mem_remote_car_hard_soft_switch
+	beq HARD_SWITCH, remote_car_hard_switch_power_on_signal
+	fetch 1,mem_remote_car_config_soft_switch_gpio
+	store 1,mem_ui_button_gpio
+remote_car_soft_switch_power_on_init:
+	call remote_car_ui_led_init
+	call ui_button_init
+	call ui_button_polling
+	jam POWER_STARTING,mem_remote_car_power_state
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+	branch app_enter_hibernate
+
+
+
+remote_car_hard_switch_power_on_signal:
+	jam POWER_STANDBY,mem_remote_car_power_state
+remote_car_soft_switch_power_on_signal:
+	call remote_car_ui_led_init
+	arg 0,rega
+	call ui_led_blink_start_global
+	call remote_car_set_24g_addr_eeprom
+	call iicd_read_eep_data
+	call g24_factory_check
+	branch g24_pair_start,user
+	fetch 4,mem_24g_addr
+	store 4,mem_24g_receiver_addr
+	fetch 2,mem_24g_reconn_timeout_init
+	store 2,mem_24g_reconn_timeout
+	branch g24_reconn_start
+
+remote_car_set_24g_addr_eeprom:
+	arg 4,temp
+	arg mem_24g_addr,rega
+	arg REMOTE_INFO_EEPROM_OFFECT,regb
+	rtn
+
+
+remote_car_power_off_signal:	
+remote_car_ui_led_init:
+	bpatch patch1c_2,mem_patch1c
+	fetch 1,mem_remote_car_config_connect_led_gpio
+	bne INVALID_PIN_NUM,remote_car_pairing_led_gpio_set
+remote_car_ui_led_init_1:
+	fetcht 1, mem_remote_car_led_map
+	branch gpio_config_output
+remote_car_pairing_led_gpio_set:
+	store 1,mem_remote_car_led_map
+	branch remote_car_ui_led_init_1
+
+
+remote_car_init_environment:
+	call g24_transmit_init
+remote_no_data_timer_init:
+	fetch 2,mem_remote_car_no_data_timeout
+	store 2,mem_remote_car_no_data_timer
+	rtn
+
+remote_car_le_before_hibernate:
+	call remote_car_process_lpm_before
+remote_gpio_set_before_hibernate:
+	fetch 1,mem_remote_style_struct_led_gpio
+	set1 7,pdata
+	arg gpcfg_output_high,temp
+	branch gpio_config_function
+
+remote_car_process_lpm_before:
+	call gpio_set_before_lpm
+	branch keyscan_process_lpm_before
+
+remote_car_key_scan_process:
+	call keyscan_key_process
+	call get_remote_key_state
+	call remote_conn_led_state
+	branch send_data
+
+remote_conn_led_state:
+	fetch 1,mem_remote_car_24g_status
+	rtnne WORK_PAIRED
+	fetch 4,mem_remote_car_motor1_key0_press_state
+	branch remote_car_stop_state,blank
+	jam 0,mem_remote_car_no_data_check
+	enable user
+	branch check_51cmd_led_on
+remote_car_stop_state:
+	fetch 1,mem_remote_car_no_data_check
+	rtneq 0xff
+	pincrease 1
+	store 1,mem_remote_car_no_data_check
+	disable user
+	branch check_51cmd_led_off
+
+	
+get_remote_key_state:
+	fetcht 2,mem_key_value_retention
+	and temp,0x01,pdata
+	rshift temp,temp
+	store 1,mem_remote_car_motor1_key0_press_state
+	and temp,0x01,pdata
+	rshift temp,temp
+	store 1,mem_remote_car_motor1_key1_press_state
+	and temp,0x01,pdata
+	rshift temp,temp
+	store 1,mem_remote_car_motor2_key2_press_state
+	and temp,0x01,pdata
+	rshift temp,temp
+	store 1,mem_remote_car_motor2_key3_press_state
+	rtn
+send_data:
+	bpatch patch1c_3,mem_patch1c
+	call remote_car_fb_check
+	call remote_car_lr_check
+	call remote_car_no_data_timeout_check
+	nrtn user
+	branch remote_car_send_key 
+
+
+remote_car_no_data_timeout_check:
+	fetch 1,mem_remote_car_24g_status
+	rtnne WORK_PAIRED
+	fetch 1,mem_remote_car_no_data_check
+	rtn blank
+	sub pdata,1,null
+	nrtn positive
+	fetch 2,mem_24g_reconn_timeout_init
+	store 2,mem_24g_reconn_timeout
+	enable user
+	rtn
+
+
+	
+remote_car_fb_check:
+	fetch 1,mem_remote_car_motor1_key0_press_state
+	nbranch remote_car_send_motor1_key0_press,blank
+	fetch 1,mem_remote_car_motor1_key1_press_state
+	nbranch remote_car_send_motor1_key1_press,blank
+	branch remote_car_send_motor1_key0_rel
+	
+remote_car_lr_check:
+	fetch 1,mem_remote_car_motor2_key2_press_state
+	nbranch remote_car_send_motor2_key2_press,blank
+	fetch 1,mem_remote_car_motor2_key3_press_state
+	nbranch remote_car_send_motor2_key3_press,blank
+	branch remote_car_send_motor2_key2_rel
+
+
+remote_car_scale_process_idle:
+	call remote_car_24g_status_process
+	branch remote_car_key_scan_process
+
+remote_car_scale_process_bb_event:
+	copy regc,pdata
+	beq BT_EVT_BUTTON_UP,app_event_button_up
+	beq BT_EVT_BUTTON_LONG_PRESSED,app_button_long_pressed
+	beq BT_EVT_24G_PAIRING_COMPLETE,remote_car_24g_pairing_complete
+	beq BT_EVT_24G_ATTEMPT_SUCCESS,remote_car_24g_attempt_success
+	beq BT_EVT_24G_ATTEMPT_FAIL,remote_car_24g_attempt_fail
+	rtn
+
+remote_car_24g_attempt_fail:
+	branch g24_txbuf_clear
+
+remote_car_24g_pairing_complete:
+	call remote_car_set_24g_addr_eeprom
+	call iicd_write_protect_eep_data
+remote_car_24g_attempt_success:
+	jam 0,mem_24g_conn_sm
+	jam WORK_PAIRED,mem_remote_car_24g_auto_work_step
+	jam WORK_PAIRED,mem_remote_car_24g_pair_success_flag
+	rtn
+
+remote_car_24g_status_process:
+	fetch 1,mem_remote_car_24g_auto_work_step
+	rtneq POWER_ON
+	fetch 1,mem_remote_car_24g_status
+	rtneq WORK_PAIRED
+	jam WORK_PAIRED,mem_remote_car_24g_status
+remote_car_scale_process_paired:
+	arg 0,rega
+	branch ui_led_off_global
+remote_car_scale_process_shutdown:
+	arg 0,rega
+	call ui_led_off_global
+	call remote_car_ui_led_init
+	branch app_enter_hibernate
+	
+remote_car_event_timer:
+	call app_power_timer
+	call g24_pair_timeout_timer
+	call g24_reconn_timeout_timer	
+	branch remote_car_no_data_timer
+
+remote_car_no_data_timer:
+	fetch 1,mem_remote_car_config_timeout_shutdown_enable
+	rtn blank
+	fetch 1,mem_key_value_retention
+	nbranch remote_no_data_timer_init,blank
+	arg mem_remote_car_no_data_timer,regc
+	arg remote_car_scale_process_shutdown,regb
+	branch timer_single_step_2B
+
+
+//cross key,control front-back motor layout
+remote_car_send_motor1_key0_press:	//front
+	jam MOTOR_POSITIVE,mem_remote_car_24g_motor1_payload
+	rtn
+remote_car_send_motor1_key1_press:	//back
+	jam MOTOR_NEGATIVE,mem_remote_car_24g_motor1_payload
+	rtn
+remote_car_send_motor2_key2_press:	//left
+	jam MOTOR_POSITIVE,mem_remote_car_24g_motor2_payload
+	rtn
+remote_car_send_motor2_key3_press:	//right
+	jam MOTOR_NEGATIVE,mem_remote_car_24g_motor2_payload
+	rtn
+
+
+remote_car_send_motor1_key0_rel:
+remote_car_send_motor1_key1_rel:
+	jam MOTOR_STOP,mem_remote_car_24g_motor1_payload
+	rtn
+remote_car_send_motor2_key2_rel:
+remote_car_send_motor2_key3_rel:
+	jam MOTOR_STOP,mem_remote_car_24g_motor2_payload
+	rtn
+	
+remote_car_send_key:
+	arg mem_remote_car_24g_motor_packet,rega
+	branch queue_push
+remote_car_send_attack:
+	arg mem_remote_car_24g_fire_packet,rega
+	branch queue_push
+
+remote_car_g24_package_data:
+	fetch 1,mem_remote_car_24g_pair_success_flag
+	beq WORK_PAIRED,remote_car_g24_send_empty
+	arg mem_remote_car_24g_tx_temp,rega
+	call queue_pop
+	nbranch remote_car_moto_data,user
+remote_car_g24_package_data_continue:
+	arg mem_remote_car_24g_tx_temp,contr
+	ifetch 1,contr
+	copy pdata,rega
+	arg mem_remote_car_24g_tx_temp+1,regb
+	//rega: length
+	//regb: tx buffer
+	rtn
+	
+remote_car_g24_send_empty:
+	jam 0,mem_remote_car_24g_pair_success_flag
+	enable user
+	arg 1,rega
+	arg mem_remote_car_empty_packet,regb
+	rtn
+	
+remote_car_moto_data:
+	fetch 1,mem_remote_car_24g_tx_temp+3	//cmd
+	beq CAR_CMD_L_R_MOTOR_CONTROL,remote_car_moto_data_next
+	beq CAR_CMD_F_B_MOTOR_CONTROL,remote_car_moto_data_next
+	rtn
+remote_car_moto_data_next:
+	fetch 1,mem_remote_car_24g_tx_temp+6	//data moto1
+	nbranch remote_car_moto_data_enable_user,blank
+	fetch 1,mem_remote_car_24g_tx_temp+8	//data moto2
+	nbranch remote_car_moto_data_enable_user,blank
+	fetch 1,mem_remote_car_24g_tx_temp+10	//data moto3
+	nbranch remote_car_moto_data_enable_user,blank
+	rtn
+remote_car_moto_data_enable_user:
+	enable user
+	branch remote_car_g24_package_data_continue
+
+
+
+/*************remote car default_init starting*********************/
+remote_car_default_init:
+	jam 0x14,mem_ui_button_timeout
+	jam 0x01,mem_ui_button_last_state
+	setarg 0x060f
+	store 2,mem_remote_car_queue_each_size
+	setarg mem_remote_car_queue_each_size
+	store 2,mem_queue_ptr
+	jam 0x01,mem_lpm_mode
+	jam 0x06,mem_lpm_overhead
+	jam 0x02,mem_lpm_mult_timeout
+	jam 0x00,mem_remote_car_hard_soft_switch
+	setarg mem_remote_style_led_type
+	store 2,mem_ui_led_struct_ptr
+	jam 0x01,mem_ui_led_struct_num
+	jam 0xff,mem_remote_style_blink_count
+	setarg 0x0296
+	store 2,mem_remote_style_on_time
+	setarg 0x073a
+	store 2,mem_remote_style_off_time
+	setarg mem_remote_car_soft_power
+	store 2,mem_power_param_ptr
+	setarg 0x0c0c
+	store 2,mem_remote_car_power_off_timeout
+	setarg mem_remote_car_keyscan
+	store 2,mem_keyscan_ptr
+	jam 0x00,mem_remote_car_config_soft_switch_enable
+	jam 0xff,mem_remote_car_config_connect_led_gpio
+	jam 0xff,mem_remote_car_config_soft_switch_gpio
+	jam 0x00,mem_remote_car_config_key_map
+	jam 0x00,mem_remote_car_config_layout
+	jam 0x00,mem_remote_car_config_check_way
+	jam 0x01,mem_remote_car_config_timeout_shutdown_enable
+	setarg 0x4e55
+	store 2,mem_current_vdd_value_default_mid_x
+	store 2,mem_current_vdd_value_default_mid_y
+	setarg 0x0007
+	store 2,mem_current_vdd_default_range
+	jam 0x02,mem_adc_config_flag
+	setsect 0,0x35a0c
+	setsect 1,0x11a
+	setsect 2,0x60
+	setsect 3,0x28
+	store 9,mem_remote_car_24g_motor_packet
+	setsect 0,0x2000a
+	setsect 1,0x02
+	istore 4,contw
+	setsect 0,0x35a08
+	setsect 1,0x19a
+	setsect 2,0x00
+	setsect 3,0x00
+	store 9,mem_remote_car_24g_fire_packet
+	setarg 0x0064
+	store 2,mem_remote_car_no_data_timeout
+	jam TX_POWER_0DB,mem_tx_power
+	jam 0x01,mem_24g_data_type		//24g init
+	jam 0x06,mem_24g_max_retry
+	jam 0x01,mem_24g_pair_switch
+	jam 0x00,mem_24g_fast_conn_enable
+	call g24_rx_window_init
+	call g24_interval_param_8ms
+	call g24_chmap_param_init
+	call g24_pair_param_init
+	setarg 0x0708
+	store 2,mem_24g_pair_timeout_init
+	setarg 0x0050
+	store 2,mem_24g_reconn_timeout_init
+	setarg 0x0a7700
+	store 3,mem_24g_long_sleep_set
+	setarg 0x604800
+	store 3,mem_24g_enter_hibernate
+	rtn
+
+/*************remote car default_init ending*********************/
+
+else
+remote_car_init:
+	rtn
+endif
+
+
+
+
Index: program/app_shutter.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_shutter.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/app_shutter.prog	(working copy)
@@ -0,0 +1,1005 @@
+
+ifdef COMPILE_SHUTTER
+
+//define CLASSIC_SHUTTER_FUCTION
+
+shutter_init:
+	call enable_authrom
+
+	rtn wake
+	setarg shutter_le_before_hibernate
+	store 2,mem_cb_before_hibernate
+
+	setarg shutter_process_lpm_before
+	store 2,mem_cb_before_lpm
+	
+	setarg app_enter_hibernate
+	store 2,mem_cb_discovry_timeout
+	
+	setarg shutter_process_idle
+	store 2,mem_cb_idle_process
+		
+	setarg shutter_process_bb_event 
+	store 2,mem_cb_bb_event_process
+
+	setarg shutter_le_scale_lpm_lock
+	store 2,mem_cb_check_wakelock
+	
+	setarg ble_shutter_receive_data
+	store 2,mem_cb_att_write
+
+	setarg shutter_le_bb_event_timer
+	store 2,mem_cb_event_timer
+
+	setarg shutter_key_change
+	store 2,mem_cb_shutter_keycan
+
+	setarg shutter_soft_swtich_power_on
+	store 2,mem_shutter_soft_switch_poweron_callback_function
+	setarg shutter_soft_swtich_power_off
+	store 2,mem_shutter_soft_switch_poweroff_callback_function
+
+	call shutter_set_ble_version
+	call le_modified_name
+	call shutter_init_param	
+	call keyscan_key_init
+	call queue_init
+	call ui_led_init_global
+	
+	bpatch patch1c_4,mem_patch1c
+	call shutter_load_buffer_config_form_DataRom
+ifdef CLASSIC_SHUTTER_FUCTION
+	call shutter_load_bluetooth_config_by_eeprom
+	call shutter_random_mac_addr
+	call classic_shutter_load_reconn_info
+endif
+	fetch 1, mem_shutter_hard_soft_switch_case
+	beq HARD_SWITCH, shutter_hart_swtich_power_on
+	fetch 1,mem_shutter_soft_switch_button_gpio
+	store 1,mem_ui_button_gpio
+	branch ui_soft_swtich_init
+
+shutter_set_ble_version:
+	//set ble version  4.1 
+	jam 7,mem_lmp_version
+	rtn
+
+/**************hard swtich function**************/
+shutter_hart_swtich_power_on:
+	jam UI_BUTTON_GPIO_DISABLE,mem_ui_button_gpio
+	jam SS_STATE_POWER_ON,mem_shutter_soft_switch_power_state
+	branch shutter_start_reconnect
+/****************************/
+
+/**************lpm lock callback function**************/
+shutter_le_scale_lpm_lock:
+	fetch 1,mem_shutter_soft_switch_power_state
+	beq SS_STATE_POWER_OFF,app_get_lpm_wake_lock
+	call l2cap_malloc_get_full_map
+	fetch 1,mem_used_map
+	nbranch app_get_lpm_wake_lock,blank
+	branch app_put_lpm_wake_lock
+/****************************/
+
+/**************c512bt event callback function*************/
+shutter_process_bb_event:
+	copy regc,pdata
+	
+ifdef CLASSIC_SHUTTER_FUCTION
+/**************classic shutter event*****************/
+	beq BT_EVT_BB_CONNECTED,classic_shutter_process_baseband_connect
+	beq BT_EVT_BB_DISCONNECTED,classic_shutter_process_baseband_disconnect
+	beq BT_EVT_RECONN_FAILED,classic_shutter_process_reconnect_failed
+	beq BT_EVT_SETUP_COMPLETE,classic_shutter_process_setup_complete
+	beq BT_EVT_HID_CONNECTED,app_hid_connected
+	beq BT_EVT_HID_DISCONNECTED,classic_shutter_process_hid_disconnect
+	beq BT_EVT_HID_HANDSHAKE,classic_shutter_process_hid_handshake
+	beq BT_EVT_RECONN_PAGE_TIMEOUT,classic_shutter_process_reconnect_page_timeout
+	beq BT_EVT_VIRTUAL_CABLE_UNPLUG,classic_shutter_process_virtual_cable_unplug
+	beq BT_EVT_REMOTE_UNSNIFF,classic_shutter_process_remote_unsniff
+	beq BT_EVT_STORE_NVRAM,classic_shutter_process_store_reconnect_information
+endif
+/**************ble shutter event*****************/
+	beq BT_EVT_LE_CONNECTED,ble_shutter_process_baseband_connect
+	beq BT_EVT_LE_DISCONNECTED,ble_shutter_process_baseband_disconnect
+	beq BT_EVT_LE_RECONNECT_COMPLETE,ble_shutter_process_reconnect_complete
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,ble_shutter_process_parse_connect_parameter_update_response
+/***************soft swtich event****************/
+	beq BT_EVT_BUTTON_LONG_PRESSED,shutter_process_soft_swtich_button_long_press
+	beq BT_EVT_BUTTON_DOWN,shutter_process_soft_swtich_button_down
+	beq BT_EVT_BUTTON_UP,shutter_process_soft_swtich_button_up
+	rtn
+/****************************/
+
+ifdef CLASSIC_SHUTTER_FUCTION
+/******************classic shutter event**********************/
+classic_shutter_process_baseband_connect:
+	jam 0,mem_classic_shutter_hid_disconn_count
+	jam 0,mem_classic_shutter_cable_unplug_conut	
+	rtn
+
+
+classic_shutter_process_baseband_disconnect:
+	call classic_shutter_disconnect_clear_flag
+	branch classic_shutter_process_reconnect_failed
+
+classic_shutter_disconnect_clear_flag:
+	jam APP_HANDSHAKE_NULL,mem_app_handshake_flag
+	jam 0,mem_hid_handshake_timer_count
+	jam 0,mem_unsniff2sniff_timer_count
+	jam 0,mem_classic_shutter_cable_unplug_conut
+	jam 0,mem_classic_shutter_hid_disconn_count
+	branch queue_init
+
+
+classic_shutter_process_reconnect_failed:
+	call app_disconn_reason_clear
+	branch shutter_start_bluetooth_discovery
+
+
+classic_shutter_process_setup_complete:
+	call shutter_stop_bluetooth_discovery
+	branch app_led_stop_blink
+
+
+classic_shutter_process_hid_disconnect:
+	jam 0,mem_classic_shutter_cable_unplug_conut	
+	setarg FLAG_SHUTTER_HID_DISCONN_TIMEOUT
+	store 1,mem_classic_shutter_hid_disconn_count
+	rtn
+
+
+classic_shutter_process_hid_handshake:
+	fetch 1,mem_app_handshake_flag
+	rtneq APP_HANDSHAKE_DONE
+	jam APP_HANDSHAKE_DONE,mem_app_handshake_flag
+	call app_lpm_mult_enable
+	call app_store_reconn_info
+	call shutter_stop_bluetooth_discovery
+	call app_led_off
+	branch app_bt_enter_sniff
+
+
+classic_shutter_process_reconnect_page_timeout:
+	branch classic_shutter_process_reconnect_failed
+
+
+classic_shutter_process_virtual_cable_unplug:
+	setarg FLAG_SHUTTER_CABLE_UNPLUG_TIMEOUT
+	store 1,mem_classic_shutter_cable_unplug_conut
+	rtn
+
+
+classic_shutter_process_remote_unsniff:
+	branch app_start_auto_sniff
+
+
+/***************classic shutter store reconn info***********************/
+classic_shutter_process_store_reconnect_information:
+	arg NVRAM_EEPROM_OFFSET,regb
+	fetch 1,mem_nv_data_number
+	mul32 pdata,34,temp
+	fetch 2,mem_nv_data_ptr
+	copy pdata,rega
+	branch iicd_write_eep_data
+
+classic_shutter_load_reconn_info:
+	arg NVRAM_EEPROM_OFFSET,regb
+	fetch 1,mem_shutter_bluetooth_type
+	rtnbit0 CLASSIC_SHUTTER
+	fetch 1,mem_nv_data_number
+	rtn blank
+	mul32 pdata,34,temp
+	fetch 2,mem_nv_data_ptr
+	copy pdata,rega
+	branch iicd_read_eep_data
+/**************************************/
+endif
+/******************ble shutter event**********************/
+ble_shutter_process_baseband_connect:
+	call shutter_stop_bluetooth_discovery
+	setarg 0
+	store 2,mem_ble_shutter_reconn_timer
+	branch app_led_off
+
+
+ble_shutter_process_baseband_disconnect:
+	call queue_init
+	jam 0,mem_ble_shutter_enable_notify
+	branch shutter_start_reconnect
+
+
+ble_shutter_process_reconnect_complete:
+	call queue_init
+	jam 1,mem_ble_shutter_enable_notify
+	fetch 8,mem_ble_shutter_interval_min
+	store 8,mem_le_interval_min
+	call app_lpm_mult_enable
+	branch le_l2cap_tx_update_req
+
+
+ble_shutter_process_parse_connect_parameter_update_response:
+	fetch 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	rtneq BLE_SIGNALING_CONNECT_PARAMETER_UPDATE_ACCEPTED
+	fetch 8,mem_ble_shutter_interval_min_new
+	rtn blank
+	store 8,mem_le_interval_min
+	branch le_l2cap_tx_update_req
+/**************************************/
+
+/******************soft swtich event**********************/
+shutter_process_soft_swtich_button_long_press:
+	branch ui_soft_switch_botton_long_press
+
+shutter_process_soft_swtich_button_down:
+	fetch 1,mem_shutter_hard_soft_switch_case
+	rtneq HARD_SWITCH
+	fetch 1,mem_shutter_soft_switch_power_state
+	rtnne SS_STATE_POWER_ON
+	call shutter_store_currenct_led_state
+	branch app_led_on
+	
+shutter_store_currenct_led_state:
+	jam 1,mem_shutter_soft_swtich_botton_down
+	arg 11,loopcnt
+	arg mem_shutter_soft_swtich_led_struct_temp,contw
+	arg mem_shutter_led_struct_app_led,contr
+	branch memcpy
+	
+shutter_process_soft_swtich_button_up:
+	fetch 1,mem_shutter_hard_soft_switch_case
+	rtneq HARD_SWITCH
+	fetch 1,mem_shutter_soft_switch_power_state
+	beq SS_STATE_POWER_ON,shutter_load_currenct_led_state
+	branch ui_soft_switch_botton_up
+
+shutter_load_currenct_led_state:
+	fetch 1,mem_shutter_soft_swtich_botton_down
+	rtnne 1
+	jam 0,mem_shutter_soft_swtich_botton_down
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,app_led_off
+	bbit1 UI_STATE_BLE_CONNECTED,app_led_off
+	arg 11,loopcnt
+	arg mem_shutter_soft_swtich_led_struct_temp,contr
+	arg mem_shutter_led_struct_app_led,contw
+	branch memcpy
+	
+/**************************************/
+
+
+shutter_le_bb_event_timer:
+/**************shutter check sleep timer**********************/
+	call shutter_check_sleep_timer
+/************************************/
+/**************soft reset power off timer**********************/
+	call shutter_check_power_off_timer
+/************************************/
+
+ifdef CLASSIC_SHUTTER_FUCTION
+/**************classic shutter timer**********************/
+	call classic_shutter_check_unplug_timer
+	call classic_shutter_hid_handshake_timer
+	call classic_shutter_hid_disconn_timer
+/************************************/
+endif
+/**************ble shutter timer**********************/
+	branch ble_shutter_reconn_timer
+/************************************/
+
+/**************shutter check sleep timer**********************/
+shutter_check_sleep_timer:
+	arg mem_shutter_sleep_timer,regc
+	arg shutter_sleep_timeout,regb
+	branch timer_single_step_2B
+shutter_sleep_timeout:
+	jam SS_STATE_POWER_OFF,mem_shutter_soft_switch_power_state
+	call app_led_off
+	call shutter_disconnect_current_connection
+	branch shutter_wait_power_off
+
+/**************soft reset power off timer**********************/
+shutter_check_power_off_timer:
+	arg mem_shutter_power_off_timer,regc
+	arg shutter_check_power_off_timeout,regb
+	branch timer_single_step
+
+shutter_check_power_off_timeout:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,shutter_wait_power_off
+	bbit1 UI_STATE_BT_CONNECTED,shutter_wait_power_off
+	fetch 1,mem_shutter_led_struct_app_led_type
+	beq UI_LED_STATE_BLINK_START,shutter_wait_power_off
+	beq UI_LED_STATE_BLINK_LIGHTING,shutter_wait_power_off
+	beq UI_LED_STATE_BLINK_DARKING,shutter_wait_power_off
+	branch app_enter_hibernate
+/************************************/
+ifdef CLASSIC_SHUTTER_FUCTION
+/**************classic shutter timer**********************/
+classic_shutter_check_unplug_timer:
+	arg mem_classic_shutter_cable_unplug_conut,regc
+	arg classic_shutter_unplug_timeout,regb
+	branch timer_single_step
+	
+classic_shutter_unplug_timeout:
+	fetch 1,mem_CONTROL_tasks
+	set1  L2CAP_DISCONNECT_INTERRUPT, pdata
+	set1  L2CAP_DISCONNECT_CONTROL, pdata
+	store 1,mem_CONTROL_tasks	
+	rtn
+
+classic_shutter_hid_handshake_timer:
+	arg mem_hid_handshake_timer_count,regc
+	arg classic_shutter_process_hid_handshake,regb
+	branch timer_single_step
+
+classic_shutter_hid_disconn_timer:
+	arg mem_classic_shutter_hid_disconn_count,regc
+	arg app_bt_disconnect,regb
+	branch timer_single_step
+
+/************************************/
+endif
+/**************ble shutter timer**********************/
+ble_shutter_reconn_timer:
+	fetch 1,mem_shutter_soft_switch_power_state
+	rtnne SS_STATE_POWER_ON
+	arg mem_ble_shutter_reconn_timer,regc
+	arg shutter_start_bluetooth_discovery,regb
+	branch timer_single_step_2B
+/************************************/
+
+shutter_process_idle:
+	call shutter_send_data_to_master
+	branch keyscan_key_process
+
+
+shutter_process_lpm_before:
+	call gpio_set_before_lpm
+	branch keyscan_process_lpm_before
+
+shutter_le_before_hibernate:
+	call gpio_set_before_lpm
+	branch disable_authrom
+
+//////////////////////////////////////////////////////////////////////////////////////////
+
+
+/****************shutter bluetooth control**********************/
+shutter_stop_bluetooth_discovery:
+	fetch 1,mem_shutter_bluetooth_type
+ifdef CLASSIC_SHUTTER_FUCTION	
+	bbit1 CLASSIC_SHUTTER,classic_shutter_stop_bluetooth_discovery
+endif	
+	bbit1 BLE_SHUTTER,ble_shutter_stop_bluetooth_discovery
+	rtn
+
+ble_shutter_stop_bluetooth_discovery:
+	fetch 2,mem_ble_shutter_connect_timeout
+	store 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+	branch app_ble_stop_adv
+	
+ifdef CLASSIC_SHUTTER_FUCTION	
+classic_shutter_stop_bluetooth_discovery:
+	fetch 2,mem_classic_shutter_connect_timeout
+	store 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+	branch app_bt_stop_discovery
+endif
+
+shutter_start_bluetooth_discovery:
+	fetch 1,mem_shutter_soft_switch_power_state
+	rtnne SS_STATE_POWER_ON
+	fetch 1,mem_shutter_bluetooth_type
+ifdef CLASSIC_SHUTTER_FUCTION	
+	bbit1 CLASSIC_SHUTTER,classic_shutter_start_discovery
+endif
+	bbit1 BLE_SHUTTER,ble_shutter_start_discovery
+	rtn
+ifdef CLASSIC_SHUTTER_FUCTION
+classic_shutter_start_discovery:
+	fetch 2,mem_classic_shutter_discovery_timeout,
+	store 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+	branch app_bt_start_discovery_short
+endif
+ble_shutter_start_discovery:
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	fetch 2,mem_ble_shutter_discovery_timeout
+	store 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+	fetch 2,mem_ble_shutter_discovery_adv_interval
+	call shutter_ble_adv_interval_set
+	call app_led_start_blink
+	fetch 4,mem_ble_shutter_discovery_blink_on_time
+	store 4,mem_shutter_led_struct_app_led_on_time
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	branch app_ble_start_adv
+
+
+shutter_start_reconnect:
+	fetch 1,mem_shutter_soft_switch_power_state
+	rtnne SS_STATE_POWER_ON
+	fetch 1,mem_shutter_bluetooth_type
+ifdef CLASSIC_SHUTTER_FUCTION	
+	bbit1 CLASSIC_SHUTTER,classic_shutter_start_reconnect
+endif
+	bbit1 BLE_SHUTTER,ble_shutter_start_reconnect
+	rtn
+ifdef CLASSIC_SHUTTER_FUCTION
+classic_shutter_start_reconnect:
+	call app_check_reconn_target
+	branch shutter_start_bluetooth_discovery,blank
+	call app_led_on	
+	call app_bt_stop_discovery
+	branch app_bt_start_reconnect	
+endif
+ble_shutter_start_reconnect:
+	fetch 2,mem_ble_shutter_reconn_timer
+	fetcht 2,mem_ble_shutter_reconn_timeout
+	storet 2,mem_ble_shutter_reconn_timer
+	nrtn blank
+	fetch 2,mem_ble_shutter_reconn_adv_interval
+	call shutter_ble_adv_interval_set
+	call app_led_start_blink
+	fetch 4,mem_ble_shutter_reconn_blink_on_time
+	store 4,mem_shutter_led_struct_app_led_on_time
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	branch app_ble_start_adv
+
+shutter_disconnect_current_connection:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,app_ble_disconnect
+ifdef CLASSIC_SHUTTER_FUCTION
+	bbit1 UI_STATE_BT_CONNECTED,app_bt_disconnect
+endif
+	branch shutter_stop_bluetooth_discovery
+/**************************************/
+ifdef CLASSIC_SHUTTER_FUCTION
+/******************classic shutter load reconnect*********************/
+app_check_reconn_target:
+	fetch 1,mem_nv_data_number
+	copy pdata,loopcnt
+	fetch 2,mem_nv_data_ptr
+	copy pdata,rega
+app_check_reconn_target_loop:
+	ifetch 2,rega
+	beq 0,found_reconn_device
+	increase NV_DATA_LEN,rega
+	loop app_check_reconn_target_loop
+	branch enable_blank
+
+found_reconn_device:
+	ifetch 6,contr
+	store 6,mem_hci_plap
+	increase 10,contr
+	arg mem_link_key,contw
+	call  memcpy16
+	call check_link_key_load
+	branch disable_blank
+	
+/**************************************/
+endif
+/////////////////////////////////////////////////////////////////////////
+//output:if user is enable,mean,can send data
+shutter_check_data_enable:
+	call disable_user
+	fetch 2,mem_ui_state_map
+ifdef CLASSIC_SHUTTER_FUCTION
+	bbit1 UI_STATE_BT_CONNECTED,shutter_check_bt_data_enable
+endif
+	bbit1 UI_STATE_BLE_CONNECTED,shutter_check_ble_data_enable
+	rtn
+
+ifdef CLASSIC_SHUTTER_FUCTION
+shutter_check_bt_data_enable:
+	fetch 1,mem_hid_interrupt_state
+	rtnne 0x3f	
+	branch enable_user
+endif	
+
+shutter_check_ble_data_enable:
+	fetch 1,mem_ble_shutter_enable_notify
+	rtn blank
+	branch enable_user
+/////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////
+//output:if user is enable,mean,bluetooth disconnect
+shutter_check_bluetooth_conn:
+	call disable_user
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BT_CONNECTED
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	branch enable_user
+/////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////
+shutter_change_bluetooth_status_bt_disconn:
+	fetch 1,mem_shutter_bluetooth_type
+ifdef CLASSIC_SHUTTER_FUCTION
+	bbit1 CLASSIC_SHUTTER,classic_shutter_change_bluetooth_status_bt_disconn
+endif
+	bbit1 BLE_SHUTTER,ble_shutter_change_bluetooth_status_bt_disconn
+	rtn
+ifdef CLASSIC_SHUTTER_FUCTION	
+classic_shutter_change_bluetooth_status_bt_disconn:
+	fetch 1,mem_scan_mode
+	rtnne 0x03
+	branch shutter_start_reconnect
+endif
+ble_shutter_change_bluetooth_status_bt_disconn:
+	branch shutter_start_reconnect
+
+/////////////////////////////////////////////////////////////////////////
+
+shutter_check_send_data:
+	disable user2
+	fetch 2,mem_shutter_sleep_timeout
+	store 2,mem_shutter_sleep_timer
+
+	call shutter_check_bluetooth_conn
+	branch shutter_change_bluetooth_status_bt_disconn,user
+	
+	call shutter_check_data_enable
+	nrtn user
+	enable user2
+	rtn
+
+//queue = key index
+//rega =1 press, =0 release
+shutter_key_change:
+	call shutter_check_send_data
+	nrtn user2
+	deposit rega
+	branch shutter_key_release,blank
+shutter_key_press:
+	call app_led_on
+	arg mem_key0_press,regc
+	branch push_queue_press_or_release
+
+shutter_key_release:
+	call app_led_off
+	arg mem_key0_release,regc
+
+push_queue_press_or_release:
+	arg MAX_QUEUE_NUM,pdata
+	imul32 queue,pdata
+	iadd regc,regc
+	
+//input:regc the address that want push to queue buffer
+push_buffer_in_queue:
+	ifetch 1,regc
+	rtn blank
+	call queue_push_one_byte
+	increase 1,regc
+	branch push_buffer_in_queue
+
+
+shutter_send_data_to_master:
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BLE_CONNECTED,pop_queue_to_ble_data
+ifdef CLASSIC_SHUTTER_FUCTION	
+	bbit1 UI_STATE_BT_CONNECTED,pop_queue_to_classic_data
+endif
+	rtn
+
+pop_queue_to_ble_data:
+	call le_fifo_check_nearly_full
+	nrtn blank
+	call queue_pop_one_byte
+	nrtn user
+	pincrease -1
+	mul32 pdata,SHUTTER_BLE_DATA_BUFFER,pdata
+	arg mem_ble_data_buffer1,temp
+	iadd temp,contr
+	branch le_send_notify_from_list
+
+ifdef CLASSIC_SHUTTER_FUCTION
+pop_queue_to_classic_data:
+	call l2cap_malloc_is_fifo_nearly_full
+	nrtn blank
+	call queue_pop_one_byte
+	nrtn user
+	pincrease -1
+	mul32 pdata,SHUTTER_CLASSIC_DATA_BUFFER,pdata
+	arg mem_classic_data_buffer1,temp
+	iadd temp,contr
+	ifetch 5,contr
+	store 5,mem_classic_data_buffer
+classic_send_hid_data:
+	fetch 1,mem_classic_data_buffer
+	copy pdata,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_int_remote_cid
+	istore 2,contw
+	setarg 0xa1
+	istore 1,contw
+	fetch 4,mem_classic_data_buffer + 1
+	istore 9,contw
+	rtn
+endif
+///////////queue function////////////
+//input:pdata is data that want push
+queue_push_one_byte:
+	store 1,mem_pdatatemp
+	arg mem_pdatatemp,rega
+	branch queue_push
+
+queue_pop_one_byte:
+	arg mem_pdatatemp,rega
+	call queue_pop
+	nrtn user
+	fetch 1,mem_pdatatemp
+	rtn
+
+///////////queue function ending////////////
+ble_shutter_receive_data:
+	fetch 2,mem_le_att_handle
+	beq GATT_KEYBOARD_WRITE_HANDLE,ble_shutter_process_reconnect_complete
+	rtn
+
+shutter_init_param:
+	setarg 0x02
+	store 1,mem_shutter_power_off_timeout
+/////////////ble connect interval//////////////
+	setarg 0x00200008
+	store 4,mem_ble_shutter_interval_min		//set min interval is 10ms,set max interval is 40ms
+	setarg 0x012c0005
+	istore 4,contw
+///////////////////////////////////////
+//////////////////MTU/////////////
+	jam 0x17,mem_le_local_mtu
+///////////////////////////////////////
+////////////////justwork/////////
+	setarg 0x1b
+ 	store 2,mem_le_pairing_handle
+ 	call le_set_config_fixed_ltk
+	call le_set_fixed_ltk
+	call le_set_justwork
+	branch le_set_config_read_authentication
+///////////////////////////////////////
+
+shutter_load_buffer_config_form_DataRom:
+///////load data Rom/////////
+ifdef CLASSIC_SHUTTER_FUCTION	
+	arg BT_KEY_VALUE_LIST_SIZE,loopcnt
+	arg mem_classic_data_buffer1,contw
+	arg CLASSIC_SHUTTER_KEY_VALUE_LIST,contr
+	call memcpy_fast
+endif
+	arg BLE_KEY_VALUE_LIST_SIZE,loopcnt
+	arg mem_ble_data_buffer1,contw
+	arg BLE_SHUTTER_KEY_VALUE_LIST,contr
+	branch memcpy_fast
+
+shutter_load_ble_gatt_form_DataRom:
+	arg BLE_GATT_LIST_SIZE,loopcnt
+	arg BLE_SHUTTER_GATT_LIST,contr
+	branch memcpy_fast
+
+ifdef CLASSIC_SHUTTER_FUCTION
+shutter_load_bt_sdp_form_DataRom:
+	arg BT_SDP_LIST_SIZE,loopcnt
+	arg CLASSIC_SHUTTER_SDP_LIST,contr
+	branch memcpy_fast
+
+shutter_load_bluetooth_config_store_name:
+	fetch 1,mem_shutter_config_data_temp
+	copy pdata,loopcnt
+	store 1,mem_le_name_len
+	call memcpy_fast
+	fetch 1,mem_shutter_config_data_temp
+	copy pdata,loopcnt
+	store 1,mem_local_name_length
+	call memcpy_fast
+	ifetch 1,contr
+	store 1,mem_shutter_key_num
+	ifetch 1,contr
+	store 1,mem_shutter_hard_soft_switch_case
+	rtn
+
+shutter_load_bluetooth_config_by_eeprom:
+	fetch 1,mem_shutter_bluetooth_type
+	rtnbit0 CLASSIC_SHUTTER
+	arg 3,temp
+	fetch 2,mem_shutter_config_eeprom_offset_addr
+	copy pdata,regb
+	arg mem_shutter_config_eeprom_start_flag,rega
+	call iicd_read_eep_data
+	fetcht 2,mem_shutter_config_eeprom_start_flag
+	setarg SHUTTER_EEPROM_CONFIG_CRC
+	isub temp,null
+	nrtn zero
+	fetch 1,mem_shutter_config_user_size
+	rtn blank
+	copy pdata,temp
+	fetch 2,mem_shutter_config_eeprom_offset_addr
+	add pdata,3,regb
+	arg mem_shutter_config_data_temp,rega
+	call iicd_read_eep_data
+	branch shutter_store_config
+
+shutter_store_config:
+	call shutter_load_bluetooth_config_store_name
+shutter_load_bluetooth_config_custom:
+	ifetch 2,contr
+	rtn blank
+	copy pdata,contw
+	ifetcht 1,contr
+	copy temp,loopcnt
+	call memcpy
+	branch shutter_load_bluetooth_config_custom
+///////////////////////////////////////////////////////////////////
+
+//////////////////////////random mac address//////////////////////////////
+shutter_random_mac_addr:
+	fetch 1,mem_shutter_bluetooth_type
+	rtnbit0 CLASSIC_SHUTTER
+	fetch 2,mem_classic_shutter_random_mac_offset_addr
+	rtn blank
+	copy pdata,regb
+	arg 4,temp
+	arg mem_shutter_random_mac_data_temp,rega
+	call iicd_read_eep_data
+	fetch 1,mem_shutter_random_mac_data_temp
+	bne 1,shutter_write_random_mac_addr_to_eeprom
+	branch shutter_write_random_mac_addr
+shutter_write_random_mac_addr_to_eeprom:
+	setarg 1
+	store 1,mem_shutter_random_mac_data_temp
+	force 3,loopcnt
+	call generate_random_loop
+	fetch 2,mem_classic_shutter_random_mac_offset_addr
+	copy pdata,regb
+	arg 4,temp
+	arg mem_shutter_random_mac_data_temp,rega
+	call iicd_write_eep_data
+shutter_write_random_mac_addr:
+	fetch 3,mem_shutter_random_mac_data_temp + 1
+	store 3,mem_lap
+	store 3,mem_le_lap
+	rtn
+endif
+	
+/////////////////////////////////////////////////////////////////
+shutter_soft_swtich_power_on:
+	branch shutter_start_reconnect
+
+
+shutter_soft_swtich_power_off:
+	arg 0,rega
+	arg mem_shutter_power_off_led_style,regc
+	call ui_led_set_style_global
+	call shutter_disconnect_current_connection
+shutter_wait_power_off:
+	fetch 1,mem_shutter_power_off_timeout
+	store 1,mem_shutter_power_off_timer
+	rtn
+	
+
+/*************soft swtich ui config*********************/
+ui_soft_swtich_init:
+	setarg SS_STATE_POWER_UP
+	call ui_soft_swtich_init_power_on_time
+	jam UI_BUTTON_STATE_UP,mem_ui_button_last_state
+	call ui_button_init
+	call ui_button_polling
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BTN_DOWN
+	branch app_enter_hibernate
+
+ui_soft_swtich_init_power_on_time:
+	fetcht 2,mem_power_param_ptr
+	istore 1,temp		//init power state 
+	ifetch 1,contw		//power on time
+	store 1,mem_ui_button_timeout
+	rtn
+
+
+ui_soft_switch_botton_up:
+	fetch 2,mem_power_param_ptr
+	ifetch 1,pdata
+	rtnne SS_STATE_POWER_UP
+	branch app_enter_hibernate
+
+
+ui_soft_switch_botton_long_press:
+	fetcht 2,mem_power_param_ptr
+	ifetch 1,temp
+	beq SS_STATE_POWER_ON,ui_soft_switch_power_off
+ui_soft_switch_power_on:
+	setarg SS_STATE_POWER_ON
+	fetcht 2,mem_power_param_ptr
+	istore 1,temp		//init power state 
+	add temp,SS_POWER_OFF_TIME,contr
+	ifetch 1,contr
+	istore 1,mem_ui_button_timeout
+	ifetch 2,contr
+	branch callback_func
+
+ui_soft_switch_power_off:
+	setarg SS_STATE_POWER_OFF
+	call ui_soft_swtich_init_power_on_time
+	add temp,SS_POWER_OFF_CB,contr
+	ifetch 2,contr
+	branch app_enter_hibernate,blank		//no call back function , just enter hibernate
+	branch callback_func
+	
+/*************soft swtich ui config ending*********************/
+
+//pdata:adv interval value
+shutter_ble_adv_interval_set:
+	store 2,mem_lpm_interval
+	increase -4,pdata
+	store 2,mem_le_adv_interval
+	rtn
+
+le_send_notify_from_list:
+	ifetch 1,contr	//length 
+	copy pdata,rega
+	ifetcht 2,contr	//handle
+	call store_contr
+	call le_att_malloc_tx_notify
+	copy rega,loopcnt
+	call get_contr
+	branch memcpy
+
+/*************shutter default_init starting*********************/
+shutter_default_init:
+	fetch 2,mem_shutter_key_conf0_temp
+	store 2,mem_shutter_key_conf0
+	fetch 1,mem_shutter_led_struct_app_led_gpio_temp
+	store 1,mem_shutter_led_struct_app_led_gpio
+	store 1,mem_shutter_power_off_led_style_gpio
+	fetch 1,mem_shutter_hard_soft_switch_case_temp
+	store 1,mem_shutter_hard_soft_switch_case
+	fetch 1,mem_shutter_soft_switch_button_gpio_temp
+	store 1,mem_shutter_soft_switch_button_gpio
+	jam 0x01,mem_shutter_bluetooth_type
+	setarg 0x0030
+	store 2,mem_classic_shutter_random_mac_offset_addr
+	setarg 0x0000
+	store 2,mem_shutter_config_eeprom_offset_addr
+	setarg 0x0002
+	store 2,mem_key0_press
+	store 2,mem_key1_press
+	setarg 0x0006
+	store 2,mem_key0_release
+	store 2,mem_key1_release
+	setarg 0x0007
+	store 2,mem_key2_press
+	setarg 0x0008
+	store 2,mem_key2_release
+	setarg mem_shutter_soft_switch_power_state
+	store 2,mem_power_param_ptr
+	setarg 0x201400
+	store 3,mem_shutter_soft_switch_power_state
+	jam 0x01,mem_lpm_mode
+	setarg 0x0100
+	store 2,mem_lpm_interval
+	jam 0x08,mem_lpm_overhead
+	jam 0x05,mem_lpm_mult
+	jam 0x02,mem_lpm_mult_timeout
+	setarg 0x0030
+	store 2,mem_sniff_param_interval
+	setarg 0x0001
+	istore 2,contw
+	jam 0x0a,mem_unsniff2sniff_timer
+	setarg 0x0096
+	store 2,mem_ble_shutter_reconn_blink_on_time
+	istore 2,contw
+	setarg 0x0296
+	store 2,mem_ble_shutter_discovery_blink_on_time
+	istore 2,contw
+	setsect 0,0x10
+	setsect 1,0x8008
+	setsect 2,0x2c000
+	setsect 3,0x04
+	store 8,mem_ble_shutter_interval_min_new
+	jam 0x01,mem_ui_led_struct_num
+	setarg mem_shutter_led_struct_app_led
+	store 2,mem_ui_led_struct_ptr
+	setarg 0x0000
+	store 2,mem_shutter_led_struct_app_led
+	setsect 0,0x1a0
+	setsect 1,0x68
+	setsect 2,0x00
+	setsect 3,0x00
+	store 8,mem_shutter_led_struct_app_led_on_time
+	setarg 0x0301
+	store 2,mem_shutter_power_off_led_style
+	setsect 0,0x1a0
+	setsect 1,0xe8
+	setsect 2,0x00
+	setsect 3,0x00
+	store 8,mem_shutter_power_off_led_style_on_time
+	setarg 0x000e
+	store 2,mem_ble_shutter_reconn_adv_interval
+	setarg 0x0140
+	store 2,mem_ble_shutter_discovery_adv_interval
+	store 2,mem_le_adv_interval
+	setarg 0x0050
+	store 2,mem_ble_shutter_reconn_timeout
+	jam 0x07,mem_le_adv_channel_map
+	jam 0x00,mem_le_adv_enable
+	setsect 0,0xfb
+	setsect 1,0x2c212
+	setsect 2,0x800f
+	setsect 3,0x21
+	store 8,mem_local_rx_max_octets
+	setsect 0,0x0bb8
+	setsect 1,0x02ee
+	store 4,mem_ble_shutter_discovery_timeout
+	setarg mem_queue_each_size
+	store 2,mem_queue_ptr
+	setarg 0x2001
+	store 2,mem_queue_each_size
+	jam 0x1f,mem_le_adv_data_len
+	setsect 0,0x10102
+	setsect 1,0x80c1
+	setsect 2,0x18120
+	setsect 3,0x640c
+	store 9,mem_le_adv_data
+	setsect 0,0x3c1
+	istore 2,contw
+	jam 0x1f,mem_le_scan_data_len
+	setsect 0,0x2090d
+	setsect 1,0x34c15
+	setsect 2,0x28532
+	setsect 3,0x1d1d5
+	store 9,mem_le_scan_data
+	setsect 0,0x26574
+	setsect 1,0x1c
+	istore 3,contw
+	setarg mem_shutter_keyscan
+	store 2,mem_keyscan_ptr
+	jam 0x02,mem_shutter_key_num
+	jam 0x17,mem_app_connection_options		//NVRAM CONFIG
+	setarg mem_shutter_nv_data
+	store 2,mem_nv_data_ptr
+	jam 0x05,mem_nv_data_number
+	setarg 0x2540
+	store 2,mem_class
+	setarg 0x040003
+	store 3,mem_lmp_io_cap_payload_iocap
+	jam 0x03,mem_ssp_mode_flag
+	jam 0x01,mem_ssp_enable
+	jam 0x01,mem_ui_profile_supported
+	jam 0x00,mem_ptt
+	setsect 0,0x3ffff
+	setsect 1,0x2fe23
+	setsect 2,0x199d9
+	setsect 3,0x20d
+	store 8,mem_features		//NVRAM CONFIG END
+	setarg BLE_SHUTTER_GATT_LIST	//BLE ATT LIST 
+	store 2,mem_ui_le_uuid_table	//BLE ATT LIST END
+	jam 0x01,mem_eir_enable	//BT SDP LIST
+	setsect 0,0x10306
+	setsect 1,0x4
+	setsect 2,0x2010
+	setsect 3,0x9040
+	store 9,mem_all_uuid_16bits
+	setsect 0,0x20011
+	setsect 1,0x44
+	istore 5,contw
+	jam 0x00,mem_all_uuid_128bits
+	setarg CLASSIC_SHUTTER_SDP_LIST
+	store 2,mem_ui_uuid_table	//BT SDP LIST END
+	rtn	
+	
+
+/*************shutter default_init ending*********************/
+
+
+
+
+
+else
+	branch assert
+	
+endif
Index: program/ble_protocol_stack/le.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le.prog	(working copy)
@@ -0,0 +1,2003 @@
+ifdef COMPILE_LE
+//******************************************//
+//*************LE INIT ****************//
+//******************************************//
+
+le_init_conn:
+	bpatchx patch32_6,mem_patch32
+	disable wake
+	jam 1,mem_le_conn_handle
+	jam 3,mem_le_state
+	jam 1,mem_le_arq
+	setarg -1
+	store 2,mem_le_event_count
+	force 0,pdata
+	store 1,mem_le_ch
+	store 1,mem_le_op
+	store 3,mem_sniff_rcv
+	store 3,mem_sniff_lost
+	call le_clear_enc
+	jam 1,mem_le_txheader
+	jam 0,mem_le_txlen
+	jam FUN_RX_LL_1M_PHY,mem_le_rx_phy
+	jam FUN_TX_LL_1M_PHY,mem_le_tx_phy
+	jam 0,mem_le_l2cap_att_states
+	branch le_supervision_flush
+
+le_init_master:
+	bpatchx patch32_7,mem_patch32
+	enable master
+	jam lemode_master,mem_le_mode
+	jam 1,mem_le_att_handle
+	jam 1,mem_le_search_handle_start
+	setarg 0xffff
+	store 2,mem_le_search_handle_end
+	force 0,pdata
+	store 5,mem_ccm_pcnt_rx
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_tx	
+	branch le_init_conn
+
+
+le_init_slave:
+	bpatchx patch33_0,mem_patch33
+	disable master
+ 	setarg 0x17
+ 	store 2,mem_le_remote_mtu
+	increase 4,pdata
+	store 2,mem_remote_rx_max_octets
+	jam lemode_slave,mem_le_mode
+	jam 0,mem_le_adv_enable
+	jam 0,mem_lpm_current_mult
+	call le_clear_pairing_state
+	fetch 2,mem_le_superto
+	store 2,mem_le_init_superto
+	fetch 2,mem_le_tsniff
+	mul32 pdata,5,pdata
+	rshift4 pdata,pdata
+	store 2,mem_le_superto			// vol.6 part B 4.5.2 only 6*conninterval before establish
+	branch le_init_conn
+	
+
+//******************************************//
+//*************LE main process*********//
+//******************************************//
+
+le_conn_dispatch:
+	bpatchx patch33_1,mem_patch33
+	call le_enable
+ 	fetch 1,mem_le_state
+ 	isolate1 lestate_encryption,pdata
+ 	setflag true,mark_ble_encryption,mark
+	call app_process_ble
+	fetch 1,mem_le_mode
+	bbit1 mode_master,le_master_dispatch
+	branch le_slave_dispatch
+	
+//******************************************//
+//***********LE master process*********//
+//******************************************//
+	
+le_master_dispatch:
+	bpatchx patch33_2,mem_patch33
+	enable master
+	call le_supervision_update
+	branch le_master_disconn,positive
+	call le_setup
+	call le_prepare_tx
+	disable match
+	call le_transmit_receive_sifs
+	nrtn match
+	fetch 1,mem_le_conn_rcv
+	increase 1,pdata
+	store 1,mem_le_conn_rcv
+	call le_acknowledge
+	disable master
+	rtn
+	
+le_master_disconn:
+	call le_disconnect
+	disable master
+	rtn
+	
+//******************************************//
+//***********LE slave process***********//
+//******************************************//
+le_slave_dispatch:
+	bpatchx patch33_3,mem_patch33
+	jam 0,mem_le_md_count
+	set0 mark_ble_crc_fail,mark
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256
+	call le_secure_connect_sm
+endif
+	disable attempt
+	call le_supervision_update
+	branch le_slave_disconn,positive
+	fetch 1,mem_le_rx_phy
+	call le_enable_phy_by_pdata
+	call le_setup
+	call le_receive_slave
+	nbranch le_slave_unsync,sync	// vol.6 part B 4.5.1 respond even crc error
+	call le_got_first_packet
+	branch le_slave_match,match
+	bmark1 mark_ble_crc_fail,le_slave_crc_fail
+	branch le_slave_cont
+	
+
+le_slave_crc_fail:
+le_slave_match:
+	bpatchx patch33_4,mem_patch33
+	fetch 1,mem_le_md_count
+	pincrease 1
+	store 1,mem_le_md_count
+	beq LE_MD_MAX_COUNT,le_slave_cont
+	call le_acknowledge
+	call le_prepare_tx
+	fetch 1,mem_le_tx_phy
+	call le_enable_phy_by_pdata
+	call le_transmit_norx
+	call le_parse
+	fetch 2,mem_cb_ble_transmit
+	call callback_func
+	call le_check_md
+	branch le_slave_more_data,user
+le_slave_cont:
+	bpatchx patch33_5,mem_patch33
+	call le_pairing_sm
+ 	call le_check_paring_time
+	call check_51cmd
+	fetch 1,mem_le_op
+	bbit1 op_disconn,le_slave_disconn
+le_slave_unsync:
+	bpatchx patch33_6,mem_patch33
+	call le_lpm_set_mult
+	branch calc_clke_offset
+
+
+le_check_md:
+	disable user
+	bmark1 mark_ble_rx_md,enable_user
+	bmark1 mark_ble_tx_md,enable_user
+	bmark1 mark_ble_crc_fail,enable_user
+	rtn
+
+
+le_slave_more_data:
+	bpatchx patch33_7,mem_patch33
+	enable attempt
+	call le_transmit_receive_sifs_notx
+	branch le_slave_match,match
+	bmark1 mark_ble_crc_fail,le_slave_crc_fail
+	branch le_slave_cont
+
+le_slave_disconn:
+
+	//fall through
+le_disconnect:
+	bpatchx patch34_0,mem_patch34
+	call le_clear_connection_info
+	call app_disconn_reason_collect_ble
+ifdef SECURE_CONNECTION
+	call le_clear_pairing_state
+	call le_sc_state_clear
+endif
+	jam BT_EVT_LE_DISCONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event
+
+le_clear_connection_info:
+	arg mem_used_map,contw
+	call memset0_16
+	jam 0,mem_le_conn_handle
+	jam lemode_idle,mem_le_mode
+	jam 0,mem_le_state
+le_clear_pairing_state:
+	bpatchx patch34_1,mem_patch34
+	jam FLAG_LE_ENC_NULL,mem_le_enc_state
+	jam FLAG_LE_PAIRING_NULL,mem_le_pairing_state
+	branch sp_clear_flags
+	
+le_got_first_packet:
+	bpatchx patch34_2,mem_patch34
+	fetch 1,mem_le_conn_rcv
+	increase 1,pdata
+	store 1,mem_le_conn_rcv
+	fetch 1,mem_le_state
+	rtnbit1 lestate_got_first_packet
+	set1 lestate_got_first_packet,pdata
+	store 1,mem_le_state
+	fetch 2,mem_le_init_superto
+	store 2,mem_le_superto
+	setarg 0
+	store 4,mem_le_transmit_window
+	rtn
+
+
+//input: pdata is phy mode
+//bit0 is le 1M phy
+//bit1 is le 2M phy
+//bit2 is le coded phy s2
+//bit7 is le coded phy s8
+le_enable_phy_by_pdata:
+	copy pdata,temp
+	bpatchx patch34_3,mem_patch34
+	copy temp,pdata
+	bbit1 BIT_LE_1M_PHY,le_enable
+	bbit1 BIT_LE_2M_PHY,le_enable_2M
+	bbit0 BIT_LE_CODED_PHY,le_enable
+	bbit1 BIT_LE_CODED_PHY_S8,le_enable_coded_s8
+	bbit1 BIT_LE_CODED_PHY_S2,le_enable_coded_s2
+	branch le_enable
+
+le_enable_2M:
+	call le_enable
+	set1 mark_ble_2M,mark
+	set0 mark_ble_lr,mark
+	jam 0x03,0x8901
+	jam 0x84,0x8920
+	rtn
+
+le_enable_coded_s2:
+le_enable_coded:
+	call le_enable
+	set1 mark_ble_lr,mark
+	set0 mark_ble_lr_s8,mark
+	jam 0x05,0x8901
+	jam 0x80,0x8920
+	jam 0x20,0x8930
+	jam 0x0a,0x8934
+	rtn
+
+le_enable_coded_s8:
+	call le_enable_coded
+	set1 mark_ble_lr_s8,mark
+	rtn
+
+le_enable:
+	bpatchx patch34_4,mem_patch34
+	enable le
+	set0 mark_ble_2M,mark
+	set0 mark_ble_lr,mark
+	jam 0x01,0x8901
+	jam 0x80,0x8920
+	jam 0xa7,0x8925
+	jam 0x03,0x8930
+	jam 0x58,0x8933
+	jam 0x0a,0x8934
+	jam 0x40,0x8937
+	jam 9,core_rx_bq_cfg0
+	rtn
+
+
+le_disable:
+	bpatchx patch34_5,mem_patch34
+	disable le
+	set0 mark_ble_encryption,mark
+	jam 0x00,0x8901
+	jam 0x80,0x8920
+	jam 0xa3,0x8925
+	jam 0x03,0x8930
+	jam 0x68,0x8933
+	jam 0x09,0x8934
+	jam 0x28,0x8937
+	jam 9,core_rx_bq_cfg0
+	rtn
+	
+le_prep:
+	disable enable_crc
+	disable enable_white
+	fetch 3,mem_le_crcinit
+	iforce crc24_init
+	fetch 1,mem_le_ch_mapped
+	reverse pdata,temp
+	set1 1,temp
+	rshift temp,white_init
+	rtn
+	
+
+le_rx_setfreq:
+	call le_setfreq
+le_rf_rx_enable:	
+	call set_freq_rx
+	fetch 2,mem_param_pll_setup
+	call sleep
+	branch rf_rx_enable
+
+le_tx_setfreq:
+	branch txon,match
+	bmark1 mark_ble_crc_fail,txon
+le_tx_setfreq0:
+	call le_setfreq
+	branch set_freq_tx
+le_setfreq:
+	bpatchx patch34_6,mem_patch34
+	call set_sync_on
+	fetch 1, mem_le_testtype
+	nbranch le_ctf_test,blank
+	fetch 1,mem_le_ch_mapped
+	sub pdata,36,null
+	branch le_ctf_normal,positive
+	force 0,temp
+	rtneq 37
+	force 24,temp
+	rtneq 38
+	force 78,temp
+	rtn
+	
+le_ctf_normal:
+	sub pdata,10,null
+	branch le_ctf_low,positive
+	increase 1,pdata
+	
+le_ctf_low:	
+	lshift pdata,pdata
+	add pdata,2,temp
+	rtn
+	
+le_ctf_test:
+	fetch 1,mem_le_ch_mapped
+	lshift pdata,temp
+	rtn
+
+le_sca_map:
+	arg 500,temp
+	rtn blank
+	arg 250,temp
+	rtneq 1
+	arg 150,temp
+	rtneq 2
+	arg 100,temp
+	rtneq 3
+	arg 75,temp
+	rtneq 4
+	arg 50,temp
+	rtneq 5
+	arg 40,temp
+	rtneq 6
+	arg 20,temp
+	rtn
+
+
+	
+le_setup:
+	bpatchx patch34_7,mem_patch34
+	enable swfine
+	fetch 4,mem_le_access
+	iforce access
+	call calc_mod_value_scale_le
+	call le_map_channel
+	setarg 0x200
+	branch le_setup_master,master
+	fetch 2,mem_le_receive_window
+	rshift pdata,pdata
+le_setup_master:
+	fetcht 2,mem_param_pll_setup
+	iadd temp,pdata
+	call ahead_window
+	deposit clke
+	rtn
+
+
+le_context_nextevent:
+	bpatchx patch35_0,mem_patch35
+	call push_stack_rega_b_c
+	storer loopcnt ,2,mem_loopcnt
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	rtnbit0 mode_le
+	add rega,coffset_le_event_cnt,contw
+	ifetch 2,contw
+	increase 1,pdata
+	istore 2,contw
+	call le_update_param
+	call le_update_channel_map
+	call le_update_phy	
+	call le_context_nexthop
+	call pop_stack_rega_b_c
+	fetchr loopcnt ,2,mem_loopcnt
+	rtn
+	
+le_context_nexthop:	
+	add rega,coffset_le_hop,contr
+	ifetch 1,contr
+	add rega,coffset_le_ch,contw
+	ifetcht 1,contw
+	iadd temp,pdata
+	sub pdata,36,null
+	branch le_nexthop_nowrap,positive
+	increase -37,pdata
+le_nexthop_nowrap:
+	istore 1,contw
+	rtn
+
+//input rega
+le_calc_channel_map:
+	add rega,coffset_le_channel_map,contr
+	ifetch 5,contr
+	force 0,temp
+	force 37,loopcnt
+le_count_channels_loop:
+	bbit0 0,le_count_channels_notused
+	increase 1,temp
+le_count_channels_notused:
+	rshift pdata,pdata
+	loop le_count_channels_loop
+	add temp,-1,pdata
+	add rega,coffset_le_channels,contw
+	istore 1,contw
+	rtn
+
+le_map_channel:
+	bpatchx patch35_1,mem_patch35
+	fetch 1,mem_le_ch
+	iforce queue
+	fetcht 5,mem_le_channel_map
+	qisolate1 temp
+	branch le_map_channel_end,true
+le_map_channel_next:
+	fetch 1,mem_le_channels
+	isub queue,pdata
+	branch le_map_channel_cont,positive
+	sub pdata,-1,queue
+	branch le_map_channel_next
+le_map_channel_cont:
+	copy queue,loopcnt
+	force 0,queue
+le_map_channel_loop:
+	qisolate1 temp
+	branch le_map_channel_skip,true
+	increase 1,loopcnt
+le_map_channel_skip:
+	deposit loopcnt
+	branch le_map_channel_end,blank
+	increase 1,queue
+	increase -1,loopcnt
+	branch le_map_channel_loop
+le_map_channel_end:
+	deposit queue
+	store 1,mem_le_ch_mapped
+	rtn
+
+
+le_wait_tx:
+	branch le_wait_master,master
+	until null,timeout
+	rtn
+	
+le_wait_master:
+	arg 0xea0,timeup
+	until clkn_rt,meet
+	rtn
+
+le_receive_adv:
+	disable swfine
+	fetch 2,mem_le_scan_window
+	copy pdata,timeup
+	branch le_receive_packet
+
+
+le_receive_slave:
+	bpatchx patch35_2,mem_patch35
+ 	call le_dec_init
+	enable swfine
+	fetch 2,mem_le_receive_window
+	fetcht 4,mem_le_transmit_window
+	iadd temp,timeup
+le_receive_packet:
+	call le_rx_setfreq
+le_receive_rxon:
+	bpatchx patch35_3,mem_patch35
+	call le_prep
+	bmark0 mark_ble_lr,le_receive_nolr
+	pulse dewhiten_code_calc
+	nop 30
+	call le_prep
+	lshift3 timeup,timeup
+le_receive_nolr:
+	disable match
+	enable decode_fec0
+	enable is_rx
+	disable is_tx
+	copy timeup,stop_watch
+	correlate null,timeout
+	branch le_receive_on_attempt,attempt
+	copy clke,temp
+	storet 6,mem_sync_clke
+le_receive_on_attempt:
+	nbranch le_unsync_end,sync
+	bpatchx patch35_4,mem_patch35
+	enable swfine
+	arg PARAM_T_IFS_150US+PARAM_20MS_INIT+PARAM_SYNC_TIME_DIFFERENCE,temp
+	fetch 1,mem_system_clk
+	imul32 temp,stop_watch
+	call rf_debug_rx_sync_line	//L-H
+	branch le_receive_skip,attempt
+	call calc_clke_all_modem
+	fetch 1,mem_le_state
+	bbit0 lestate_got_first_packet,le_receive_skip
+	fetcht 6,mem_sync_clke
+	call lpm_adjust_clk,wake
+le_receive_skip:
+	call save_rssi
+	enable enable_white
+	enable enable_crc
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	store 1,mem_le_rxbuf_data_header
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	store 1,mem_le_rxbuf_data_length
+ 	copy pdata,loopcnt
+	branch le_rx_nopayload,zero
+
+	bmark1 mark_ble_encryption,le_rx_dec
+
+le_rx_loop:
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	istore 1,contw
+	loop le_rx_loop
+	branch le_rx_nopayload
+
+le_rx_dec: 
+	copy contw,regb
+	call le_check_retransmit	
+//	bmark1 mark_old_packet,le_retransmit_end_of_packet
+	fetchr rega, 1,mem_le_rxbuf_data_length
+	increase -4,rega
+	nbranch le_mic_error,positive
+//	storer rega, 1,mem_le_rxbuf_data_length
+	call le_dec_start	
+	copy regb,contw
+	arg 0,temp
+	fetchr loopcnt, 1,mem_le_rxbuf_data_length
+	increase -4,loopcnt
+	branch le_rx_dec_loop_end,zero
+le_rx_dec_loop:
+	
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	istore 1,contw
+	increase 1,temp
+	and temp,0xf,null
+	call le_dec,zero
+	loop le_rx_dec_loop
+le_rx_dec_loop_end:
+	call le_dec_end	
+	copy regb,contw
+	
+
+le_rx_nopayload:
+	bpatchx patch35_5,mem_patch35
+	parse demod,bucket,24	
+	rshift32 pdata,pdata
+	rshift16 pdata,pdata
+	istore 3,contw
+	enable swfine
+	call le_set_until_tx_timer
+	branch le_crc_fail,crc_failed
+	bmark0 mark_ble_encryption,le_rx_match
+	fetch 1,mem_le_rxbuf_data_length
+	branch le_rx_match,blank
+	increase -4,pdata
+	store 1,mem_le_rxbuf_data_length
+	call wait_ccm_done
+ 	fetch 1,core_misc_status
+	bbit0 7, le_mic_error
+ 	force regidx_result,regext_index
+	storer regext, 4,mem_le_peer_mic
+le_rx_match:
+	call rf_debug_rx_crc_line	//L
+	enable match
+	set0 mark_ble_crc_fail,mark
+le_crc_fail_tx:
+	call ccm_ctrl_clr
+	fetch 1,mem_le_rx_phy
+	nsetflag ble_coded_info,BIT_LE_CODED_PHY_S8,pdata
+	store 1,mem_le_rx_phy
+le_match_set_txfreq:
+	bpatchx patch35_6,mem_patch35
+	fetcht 1,mem_last_freq
+	add temp,2,rega
+	bmark1 mark_ble_2M,le_match_set_txfreq_offset
+	add temp,2,rega
+le_match_set_txfreq_offset:
+	disable decode_fec0
+	call set_sync_on	
+	branch rf_tx_write_freq				/* set frequency to tx mode freq */
+	
+
+le_dec_init:
+	rtnmark0 mark_ble_encryption
+	call load_sk
+	force regidx_result,regext_index
+	call aes_clear
+	branch aes_clear_data
+	
+	
+le_dec_start:
+	jam 0,core_ccm_aad0 
+	jam 1,core_ccm_aad1
+	fetch 1,mem_le_rxbuf_data_header
+	and_into 0x3,pdata
+	store 1,core_ccm_aad2
+	
+	setarg mem_le_rxbuf_data_payload
+	store 2,core_ccm_input_playload_addr
+	store 2,core_ccm_output_playload_addr
+
+	fetchr rega, 1,mem_le_rxbuf_data_length
+	increase -4,rega
+
+	fetcht 5,mem_ccm_pcnt_rx	
+	isolate1 mark_old_packet,mark
+	call le_pcnt_rx_sub1,true
+	call ccm_b0
+	setarg 0
+	store 2,core_ccm_inptr
+	jam 6,core_ccm_ctrl
+	jam 7,core_ccm_ctrl	
+	rtn	
+
+le_pcnt_rx_sub1:
+	sub temp,0,null
+	branch le_pcnt_rx_sub1_0,zero
+	increase -1,temp
+	set1 LE_CCM_DIRECTIONBIT,temp
+	rtn
+
+le_pcnt_rx_sub1_0:
+	setarg 0xffffff
+	lshift16 pdata,pdata
+	arg 0xffff,temp
+	ior temp,temp
+	rtn
+
+le_dec:
+	copy contw,regb
+	fetch 1,mem_le_rxbuf_data_length
+	increase -4,pdata
+	isub temp,null
+	rtn zero
+	storet 2,core_ccm_inptr
+	copy regb,contw
+	rtn
+	
+le_dec_end://mic
+	parse demod,bucket,32
+	rshift32 pdata,pdata
+	rshift8 pdata,pdata
+	istore 4,contw
+	copy contw,regb
+//	store 4,mem_le_peer_mic
+	force regidx_data,regext_index
+	copy  pdata,regext
+	storet 2,core_ccm_inptr
+	rtn
+
+le_mic_error:
+	branch le_end_of_packet
+
+le_retransmit_end_of_packet:
+	call le_set_until_tx_timer	// start SIFS timer after last bit of crc
+	call end_of_packet
+	branch le_rx_match
+
+le_crc_fail:
+	call rf_debug_rx_crc_fail_line
+	bmark1 mark_ble_crc_fail,le_crc_fail_consecutive //two consecutive packets received with an invalid CRC match within a connection event shall close the event
+	set1 mark_ble_crc_fail,mark
+	branch le_crc_fail_tx
+	
+le_unsync_end:	
+le_crc_fail_consecutive:
+	set0 mark_ble_crc_fail,mark
+	branch le_end_of_packet
+
+le_end_of_packet:
+	call ccm_ctrl_clr
+	branch end_of_packet
+	
+calc_clke_all_modem:
+	bmark1 mark_ble_lr,calc_clke_modem_coded
+	bmark1 mark_ble_2M,calc_clke_modem_2M
+	fetch 2,mem_param_clke_cal_le_1m
+	copy pdata,clke_rt
+	copy bt_clk,clke_bt
+	rtn
+
+
+calc_clke_modem_coded:
+	fetch 2,mem_param_clke_cal_le_coded
+	copy pdata,clke_rt
+	add bt_clk,1,clke_bt
+	rtn
+
+calc_clke_modem_2M:
+	fetch 2,mem_param_clke_cal_le_2m
+	copy pdata,clke_rt
+	copy bt_clk,clke_bt
+	rtn
+
+
+le_set_until_tx_timer:
+	fetch 1,mem_le_rxbuf_data_length
+	add pdata,5,temp	//PDU Length
+	lshift3 temp,temp	//PDU bit size
+	fetch 1,mem_le_rx_phy
+	bmark1 mark_ble_lr,le_set_until_tx_timer_rx_lr
+	bbit1 BIT_LE_1M_PHY,le_set_until_tx_timer_rx_1M
+	bbit1 BIT_LE_2M_PHY,le_set_until_tx_timer_rx_2M
+le_set_until_tx_timer_rx_lr:
+	branch le_set_until_tx_timer_rx_coded_s2,ble_coded_info
+	branch le_set_until_tx_timer_rx_coded_s8
+
+le_set_until_tx_timer_rx_1M:
+	branch le_calc_stop_watch
+
+le_set_until_tx_timer_rx_2M:
+	rshift temp,temp
+	branch le_calc_stop_watch
+
+le_set_until_tx_timer_rx_coded_s2:
+	add temp,3,temp	//term2
+	lshift temp,temp
+	branch le_set_until_tx_timer_rx_coded
+
+le_set_until_tx_timer_rx_coded_s8:
+	add temp,3,temp	//term2
+	lshift3 temp,temp
+le_set_until_tx_timer_rx_coded:
+	setarg PARAM_CODED_C1_TERM1_TIME_40US
+	iadd temp,temp
+	branch le_calc_stop_watch
+
+le_calc_stop_watch:
+	fetch 1,mem_system_clk
+	imul32 temp,temp		//mips cpu
+	arg PARAM_20MS_INIT,rega
+	imul32 rega,pdata
+	isub temp,temp
+	copy stop_watch,pdata
+	isub temp,stop_watch
+	rtn
+
+le_transmit_receive_sifs_without_change_mode:
+	call le_transmit
+	fetcht 1,mem_last_freq
+	call set_freq_rx
+	call rf_rx_enable
+	enable swfine
+	arg 5500,timeup
+	branch le_receive_rxon
+
+
+le_transmit_receive_sifs:
+	bpatchx patch35_7,mem_patch35
+	fetch 1,mem_le_tx_phy
+	call le_enable_phy_by_pdata
+	call le_transmit
+le_transmit_receive_sifs_notx:
+	fetch 1,mem_le_rx_phy
+	call le_enable_phy_by_pdata
+
+	fetcht 1,mem_last_freq
+	call set_freq_rx
+	call rf_rx_enable
+	enable swfine
+	arg 5500,timeup
+	bmark0 mark_ble_lr,le_receive_rxon
+	arg 8500,timeup
+	branch le_receive_rxon
+
+le_transmit_norx:
+	call le_transmit
+	branch end_of_packet
+	
+le_transmit:
+	bpatchx patch36_0,mem_patch36
+	call le_prep
+	call le_tx_setfreq
+	call rf_debug_tx_on_line	//H
+	set1 TXGFSK,radio_ctrl
+	enable encode_fec0
+	enable is_tx
+	disable is_rx
+	call le_wait_tx
+	disable lr_s2en
+	bmark1 mark_ble_lr,le_transmit_lr
+	bmark1 mark_ble_2M,le_transmit_2M
+	rshift16 access,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,40
+le_transmit_packet:
+	enable enable_white
+	enable enable_crc
+	bpatchx patch36_1,mem_patch36
+	fetch 1,mem_le_txheader
+	inject mod,8
+	ifetch 1,contr
+	copy pdata,loopcnt
+	inject mod,8
+	sub loopcnt,0,null
+	branch le_tr_nopayload,zero
+
+	fetch 1,core_ccm_ctrl
+	branch le_transmit_packet_not_enc,blank 
+	bmark1 mark_ble_encryption,le_transmit_packet_enc
+le_transmit_packet_not_enc:	
+	arg mem_le_txpayload,contr
+le_tr_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop le_tr_loop
+	
+le_tr_nopayload:
+	enable enable_parity
+	inject mod,24
+	disable enable_parity
+	bmark0 mark_ble_lr,le_transmit_skip
+	disable enable_white
+	setarg 0
+	inject mod,3
+le_transmit_skip:
+	until null,tx_clear
+	nop 100          /* flush out the last bit */
+	disable encode_fec0
+	disable encode_fec3
+	call set_sync_on
+	call rf_debug_tx_off_line	//L
+le_check_start_pause_enc:
+	fetch 1,mem_le_txheader
+	and pdata,LLID_LE_LL,pdata
+	rtnne LLID_LE_LL
+	fetch 1,mem_le_enc_state
+	beq  FLAG_LE_ENC_PAUSE,le_clear_enc
+	rtnne FLAG_LE_SEND_START_ENC_REQ
+	fetch 1,mem_le_txpayload
+	beq LL_START_ENC_REQ,le_set_enc
+	rtn
+	
+
+le_transmit_packet_enc:
+	increase -4,loopcnt
+	copy loopcnt,temp	
+	call ccm_wait_enc	
+	arg mem_le_txpayload,contr
+le_transmit_packet_enc_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop le_transmit_packet_enc_loop
+	call ccm_check_enc_done
+	copy regext,pdata
+	inject mod,32
+	branch le_tr_nopayload
+
+le_transmit_lr:
+	arg 10,loopcnt
+le_transmit_lr_preamble_loop:
+	setarg 0x3c
+	inject mod,8
+	loop le_transmit_lr_preamble_loop
+	disable encode_fec0
+	enable encode_fec3
+	rshift16 access,pdata
+	rshift16 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,32
+	bmark1 mark_ble_lr_s8,le_transmit_lr_s8
+le_transmit_lr_s2:
+	setarg 1
+	inject mod,5
+	enable lr_s2en
+	branch le_transmit_packet
+
+le_transmit_lr_s8:
+	setarg 0
+	inject mod,5
+	branch le_transmit_packet
+
+le_transmit_2M:
+	fetch 1,mem_system_clk
+	rshift pdata,loopcnt
+le_transmit_2M_dealy:
+	nop 2
+	loop le_transmit_2M_dealy
+//	nop 36	//2M 前端发送比1M快3us左右
+	rshift16 access,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,temp
+	copy temp,pdata
+	inject mod,8
+	copy temp,pdata
+	inject mod,40
+	branch le_transmit_packet
+	
+
+le_update_param:
+	arg le_update_param_ahead1_cb,regc
+	arg le_update_param_cb,regb
+	arg lestate_update_param,queue
+	branch le_check_update_flag
+
+le_update_param_ahead1_cb:
+	add rega,coffset_sniff_anchor,contr
+	ifetcht 4,contr
+	add rega,coffest_le_new_transmitwindowsize,contr
+	ifetch 1,contr
+	add rega,coffset_le_window_size,contw
+	istore 1,contw
+	ifetch 2,contr
+	lshift2 pdata,pdata
+	iadd temp,timeup	//add windowsize
+	add rega,coffset_sniff_anchor,contw  
+	deposit timeup
+	istore 4,contw
+	ifetch 2,contr
+	lshift2 pdata,pdata
+	add rega,coffset_tsniff,contw
+	istore 2,contw
+	ifetch 4,contr
+	add rega,coffset_le_slave_latency,contw
+	istore 4,contw
+	branch le_receive_window_size
+
+le_update_param_cb:
+	ifetch 1,rega
+	set0 lestate_got_first_packet,pdata
+	istore 1,rega
+	fetch 2,mem_le_superto
+	store 2,mem_le_init_superto
+	storer rega,2,mem_rega
+	jam BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,mem_fifo_temp
+	call ui_ipc_send_event
+	fetchr rega,2,mem_rega
+	add rega,coffset_le_slave_superto,contr
+	ifetch 2,contr
+	store 2,mem_le_init_superto
+	rtn	
+
+le_update_channel_map:
+	arg 0,regc
+	arg le_update_channel_map_cb,regb
+	arg lestate_update_map,queue
+	branch le_check_update_flag
+	
+le_update_channel_map_cb:
+	add rega,coffset_le_new_map,contr
+	ifetch 5,contr
+	add rega,coffset_le_channel_map,contw
+	istore 5,contw
+	branch le_calc_channel_map
+	
+
+le_update_phy:
+	arg 0,regc
+	arg le_update_phy_cb,regb
+	arg lestate_update_phy,queue
+	branch le_check_update_flag
+	
+le_update_phy_cb:
+	add rega,coffset_le_new_m2s_phy,contr
+	ifetch 1,contr
+	call le_update_phy_cb_m2s
+	istore 1,contw
+	add rega,coffset_le_new_s2m_phy,contr
+	ifetch 1,contr
+	call le_update_phy_cb_s2m
+	istore 1,contw
+	storer rega,2,mem_rega
+	jam BT_EVT_LE_UPDATE_PHY,mem_fifo_temp
+	call ui_ipc_send_event
+	fetchr rega,2,mem_rega
+	rtn	
+
+le_update_phy_cb_m2s:
+	call le_update_phy_cb_m2s_no_change,blank
+	add rega,coffset_le_rx_phy,contw
+	nrtn master
+	fetcht 1,mem_le_tx_phys
+	isolate1 BIT_LE_CODED_PHY_S8,temp
+	setflag true,BIT_LE_CODED_PHY_S8,pdata
+	add rega,coffset_le_tx_phy,contw
+	rtn
+
+le_update_phy_cb_m2s_no_change:
+	add rega,coffset_le_rx_phy,contr
+	ifetch 1,contr
+	nrtn master
+	add rega,coffset_le_tx_phy,contr
+	ifetch 1,contr
+	rtn
+
+le_update_phy_cb_s2m:
+	call le_update_phy_cb_s2m_no_change,blank
+	fetcht 1,mem_le_tx_phys
+	isolate1 BIT_LE_CODED_PHY_S8,temp
+	setflag true,BIT_LE_CODED_PHY_S8,pdata
+	add rega,coffset_le_tx_phy,contw
+	nrtn master
+	set0 BIT_LE_CODED_PHY_S8,pdata
+	add rega,coffset_le_rx_phy,contw
+	rtn
+
+le_update_phy_cb_s2m_no_change:
+	add rega,coffset_le_tx_phy,contr
+	ifetch 1,contr
+	nrtn master
+	add rega,coffset_le_rx_phy,contr
+	ifetch 1,contr
+	rtn
+	
+
+//regb regc is cb function
+//queue is state flag
+le_check_update_flag:
+	ifetch 1,rega
+	qisolate0 pdata
+	rtn true
+	add rega,coffset_le_event_cnt,contr
+	ifetcht 2,contr
+	add rega,coffset_le_instant,contr
+	ifetch 2,contr
+	
+	isub temp,pdata
+	branch le_update,zero
+	nbranch le_check_update_small,positive
+	sub pdata,1,null
+	branch le_update_ahead1,zero
+	rtn
+	
+le_update_ahead1:
+	copy regc,pdata
+	branch callback_func
+
+le_update:
+	ifetch 1,rega
+	qset0 pdata
+	istore 1,rega
+	copy regb,pdata
+	branch callback_func
+	
+le_check_update_small:
+	add rega,coffset_le_event_cnt,contr
+	ifetch 2,contr
+	add rega,coffset_le_instant,contr
+	ifetch 2,contr
+	isub temp,pdata
+	arg 0xffff,temp
+	isub temp,null
+	branch le_update,zero
+	arg 0xf000,temp
+	isub temp,null
+	nbranch le_update,positive
+	rtn
+	
+
+le_check_retransmit:
+	fetcht 1,mem_le_arq
+	fetch 1,mem_le_rxbuf_data_header
+//	isolate1 md,pdata
+//	setflag true,mark_ble_rx_md,mark
+	rshift pdata,pdata
+	ixor temp,pdata
+	isolate1 nesn,pdata
+	setflag true,mark_old_packet,mark	/* retransmit */
+	rtn
+
+
+le_acknowledge:
+	bpatchx patch36_2,mem_patch36
+	call le_supervision_flush
+	rtnmark1 mark_ble_crc_fail
+	call le_check_wak
+	fetch 1,mem_le_rxbuf_data_header
+	isolate1 md,pdata
+	setflag true,mark_ble_rx_md,mark
+	rshift pdata,pdata
+	ixor temp,pdata
+	isolate1 nesn,pdata
+	setflag true,mark_old_packet,mark	/* retransmit */
+	rtnmark1 mark_old_packet
+	fetch 1,mem_le_rxbuf_data_length
+	branch le_ack_unenc,blank		/* empty packet, no decryption */
+	fetch 1,mem_le_state
+	bbit0 lestate_encryption,le_ack_unenc
+	fetcht 4,mem_le_peer_mic
+	fetch 4,mem_ccm_last_mic			
+	isub temp,null
+	branch assert,zero
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_rx
+	
+le_ack_unenc:
+	fetcht 1,mem_le_arq
+	setflip nesn,temp
+	storet 1,mem_le_arq
+	fetch 1,mem_le_configuration
+	rtnbit0 BIT_BLE_DEAL_BB_PACKET
+	bpatchx patch36_3,mem_patch36
+	fetch 1,mem_le_rxbuf_data_length
+	rtn blank		//empty packet
+	fetch 1,mem_le_rxbuf_data_header
+	compare LLID_CONTINUE,pdata,3
+	branch le_parse_writing_attribute_continue,true //ACL-U continue
+	compare LLID_START,pdata,3
+	branch le_parse_writing_attribute_start,true
+	rtn
+
+	
+le_check_wak:
+	bpatchx patch36_4,mem_patch36
+	fetcht 1,mem_le_arq
+	isolate0 wak,temp
+	rtn true
+	fetch 1,mem_le_rxbuf_data_header
+	lshift pdata,pdata
+	ixor temp,pdata
+	rtnbit0 sn			/* received NESN is same as SN, NAK */
+	set0 wak,temp
+	setflip sn,temp
+	storet 1,mem_le_arq
+	compare 3,temp,3
+	nrtn true
+	rtn
+	
+
+le_set_enc:
+	fetch 1,mem_le_state
+	set1 lestate_encryption,pdata
+	store 1,mem_le_state
+	set1 mark_ble_encryption,mark
+	rtn	
+	
+le_clear_enc:
+	bpatchx patch36_5,mem_patch36
+	jam FLAG_LE_ENC_NULL,mem_le_enc_state
+	arg 0,pdata
+	store 4,mem_ccm_last_mic
+	store 5,mem_ccm_pcnt_tx
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_rx
+	fetch 1,mem_le_state
+	set0 lestate_encryption,pdata
+	store 1,mem_le_state
+	set0 mark_ble_encryption,mark
+	rtn
+
+
+
+
+le_scan_check_sender_addr_type:
+	arg 1,rega// sender_addr_type
+	fetch 1,mem_le_rxbuf_adv_connect_ind_header
+	rtnbit1 LE_SENDER_ADDR_BIT
+	arg 0,rega
+	rtn
+
+
+le_get_master_rx_max:
+	copy contr,contw
+	fetcht 2,mem_remote_rx_max_octets
+	copy contw,contr
+	rtn
+
+
+le_prepare_tx:
+	bpatchx patch36_6,mem_patch36
+	fetch 1,mem_le_arq
+	rtnbit1 wak
+	call le_check_tx_md
+	call le_fifo_get_first_tx_ptr	//no packet to send
+	branch le_send_empty,blank
+	ifetch 2,contr
+	ifetcht 2,contr
+	copy temp,rega
+	isub rega,pdata
+	call le_get_master_rx_max
+	call not_greater_than
+	copy pdata,temp
+	ifetchr type,1,contr
+	copy rega,pdata
+	iadd contr,pdata
+	store 2,mem_contr
+	call le_update_tx_type
+	call le_send_packet
+	
+	call le_fifo_get_first_tx_ptr
+	ifetch 2,contr
+	copy pdata,rega	//rega:total length
+	copy contr,regc
+	ifetcht 2,contr
+	copy temp,regb	//temp&regb is offset
+	isub regb,pdata
+	call le_get_master_rx_max
+	call not_greater_than
+	iadd regb,pdata
+	istore 2,regc
+	isub rega,null
+	nrtn zero
+	branch le_fifo_release_first_node
+
+	
+le_check_tx_md:
+	call le_check_continue
+	rtnmark1 mark_ble_tx_md
+	fetch 1,mem_le_configuration
+	bbit0 BIT_BLE_TRANSMIT_PACKET_BY_MD,le_clear_md
+	call le_fifo_get_second_tx_ptr	//no packet to send
+	branch le_clear_md,blank
+	branch le_set_md
+
+	
+le_check_continue:
+	call le_fifo_get_first_tx_ptr	//no packet to send
+	branch le_clear_md,blank
+	ifetch 2,contr				//pdata:length
+	ifetcht 2,contr				//temp:offest
+	isub temp,rega			//pdata:length - offset
+	call le_get_master_rx_max
+	copy temp,pdata
+	isub rega,null
+	branch le_clear_md,positive				//27 > length -offset
+le_set_md:
+	set1 mark_ble_tx_md,mark
+	rtn
+
+le_clear_md:
+	set0 mark_ble_tx_md,mark
+	rtn
+
+le_update_tx_type:
+	copy rega,pdata
+	rtn blank
+	arg LLID_CONTINUE,type
+	rtn
+
+
+le_att_check_notification_enable: // temp ->handle,output-> pdata,output :contr->rega
+	bpatchx patch36_7,mem_patch36
+	increase 1,temp
+	call le_att_get_handle_ptr
+	increase -2,contr
+	ifetch 2,contr
+	arg CLIENT_CHARACTERTIC_CONFIGURATION,temp
+	isub temp,null
+	nrtn zero
+	increase 1,contr
+	copy contr,rega
+	ifetch 1,contr
+	rtn
+	
+
+le_send_empty:
+	force 0,temp
+	force 1,type
+	
+le_send_packet:
+	bpatchx patch37_0,mem_patch37
+	storet 1,mem_le_txlen
+	fetcht 1,mem_le_arq
+	set1 wak,temp
+	and temp,0xfc,pdata
+	ior type,pdata
+	store 1,mem_le_arq
+	and_into 0x1f,pdata
+	isolate1 mark_ble_tx_md,mark
+	setflag true,md,pdata
+	store 1,mem_le_txheader
+
+	fetch 1,mem_le_txheader
+	compare 1,type,3
+	nbranch le_send_no_txlen,true
+	fetch 1,mem_le_txlen
+	rtn blank
+	
+le_send_no_txlen:	
+	bmark1 mark_ble_encryption,le_send_packet_enc
+	fetchr loopcnt,1,mem_le_txlen
+	fetch 2,mem_contr
+	copy pdata,contr
+	arg mem_le_txpayload,contw
+	branch memcpy_fast
+	
+le_send_packet_enc:
+	call load_sk
+	branch le_encrypt_new_start
+
+get_lpm_wake_ble_rx_lock:
+	arg wake_lock_ble_rx,queue
+	branch lpm_get_wake_lock
+
+put_lpm_wake_ble_rx_lock:
+	arg wake_lock_ble_rx,queue
+	branch lpm_put_wake_lock
+
+
+le_parse:
+	bpatchx patch37_1,mem_patch37
+	rtnmark1 mark_old_packet
+	rtnmark1 mark_ble_crc_fail
+	fetch 1,mem_le_rxbuf_data_header
+	and pdata,0x3,pdata
+	store 1,mem_le_packet_llid
+	fetch 1,mem_le_rxbuf_data_length
+	rtn blank							//empty rtn
+	setarg mem_le_rxbuf_data_payload
+	store 2,mem_le_payload_ptr
+	bpatchx patch37_2,mem_patch37
+	fetch 1,mem_le_packet_llid
+	beq LLID_LE_LL,le_parse_ll
+le_parse_l2cap:
+	call le_check_l2cap_complete
+	nbranch get_lpm_wake_ble_rx_lock,user
+	call put_lpm_wake_ble_rx_lock
+	setarg 0
+	store 2,mem_le_packet_len_recved
+	fetch 2,mem_le_payload_ptr
+	add pdata,2,contr	//l2cap length
+	bpatchx patch37_3,mem_patch37
+	ifetch 2,contr
+	beq LE_L2CAP_CID_ATT,le_parse_att
+	beq LE_L2CAP_CID_SMP,le_parse_smp
+	beq LE_L2CAP_CID_SIGNAL,le_parse_signaling
+	rtn
+
+
+le_check_l2cap_complete:
+	fetch 1,mem_le_packet_llid
+	beq LLID_START,le_check_l2cap_llid_start
+	beq LLID_CONTINUE,le_check_l2cap_llid_continue
+	rtn
+
+//input: pdata is CID number
+//output: 	if CID is legal ,enable user
+//		if ICD is illegal,disable user 
+le_check_l2cap_CID_legal:
+	call enable_user
+	arg LE_L2CAP_CID_ATT,temp
+	isub pdata,null
+	rtn zero
+	arg LE_L2CAP_CID_SIGNAL,temp
+	isub pdata,null
+	rtn zero
+	arg LE_L2CAP_CID_SMP,temp
+	isub pdata,null
+	rtn zero
+	branch disable_user
+
+	
+le_check_l2cap_llid_start:
+	fetch 2,mem_le_payload_ptr
+	copy pdata,contr
+	ifetch 2,contr
+	store 2,mem_le_l2cap_size
+	ifetch 2,contr			//CID
+	call le_check_l2cap_CID_legal
+	nrtn user		//CID error
+	fetcht 1,mem_le_rxbuf_data_length
+	storet 2,mem_le_packet_len_recved
+	fetch 2,mem_le_l2cap_size
+	increase 4,pdata		//CID:2 L2cap length 2
+	isub temp,null
+	branch enable_user,zero
+	fetchr loopcnt,1,mem_le_rxbuf_data_length
+	arg mem_le_l2cap_buf,contw
+	fetch 2,mem_le_payload_ptr
+	copy pdata,contr
+	call memcpy_fast
+	branch disable_user
+
+//no input
+//output: 	if CID is legal ,enable user
+//		if ICD is illegal,disable user 
+le_check_l2cap_continue_legal:
+	call enable_user
+	fetch 2,mem_le_packet_len_recved
+	nrtn blank
+	branch disable_user
+
+le_check_l2cap_llid_continue:
+	call le_check_l2cap_continue_legal
+	nrtn user		//check receive start packet
+	fetch 2,mem_le_packet_len_recved
+	arg mem_le_l2cap_buf,contw
+	iadd contw,rega
+	fetcht 1,mem_le_rxbuf_data_length
+	iadd temp,pdata
+	store 2,mem_le_packet_len_recved
+	fetchr loopcnt,1,mem_le_rxbuf_data_length
+	copy rega,contw
+	fetch 2,mem_le_payload_ptr
+	copy pdata,contr
+	call memcpy_fast
+	setarg mem_le_l2cap_buf
+	store 2,mem_le_payload_ptr		//update ptr->mem_le_l2capbuff
+	fetch 2,mem_le_l2cap_size
+	increase 4,pdata
+	fetcht 2,mem_le_packet_len_recved
+	isub temp,null
+	branch enable_user,zero
+	branch disable_user
+
+
+
+
+
+le_get_search_att_uuid:
+	call store_contr
+	arg mem_le_search_uuid_length,contw
+	branch le_get_search_common
+
+
+	/* rega pointers to data, regb is length */
+le_writeatt_cb:
+	fetch 2,mem_cb_att_write
+	branch callback_func
+	
+le_supervision_update:
+	fetcht 4,mem_le_supervision_timer
+	call get_clkbt
+	isub temp,timeup					/* and to 28 bits */
+	deposit timeup
+	fetcht 2,mem_le_superto
+	lshift4 temp,temp
+	lshift temp,temp
+	isub temp,pdata
+	rtn
+	
+le_supervision_flush:
+	call get_clkbt
+	store 4,mem_le_supervision_timer
+	rtn
+
+	
+//input rega
+le_receive_window_size:
+	bpatchx patch37_4,mem_patch37
+	add rega, coffset_le_peer_sca,contr
+	ifetch 1,contr
+	call le_sca_map
+	add rega, coffset_tsniff,contr
+	ifetch 2,contr
+	imul32 temp,pdata
+	fetcht 2,mem_param_rt_rthalfslot
+	imul32 temp,pdata
+	arg 1000000,temp
+	idiv temp
+	arg PARAM_WINDOWN_SIZE,temp
+	fetch 1,mem_system_clk
+	imul32 temp,temp
+	add rega, coffset_le_window_size,contr
+	ifetch 1,contr
+	imul32 temp,pdata
+	iadd temp,pdata
+	store 4,mem_le_transmit_window	
+	fetch 2,mem_rx_window_sniff
+	call wait_div_end
+	quotient temp
+	iadd temp,pdata
+	add rega, coffset_rx_window,contw
+	istore 2,contw
+	rtn
+
+	
+
+le_init_attlist_search:
+	bpatchx patch37_5,mem_patch37
+	fetch 2,mem_le_search_handle_start
+	iforce regb
+	fetch 2,mem_le_search_handle_end
+	iforce regc
+	fetch 2,mem_ui_le_uuid_table
+	iforce contr
+	enable user
+	rtn
+
+	/* return handle in pdata, blank:end of list, positive:in range */
+le_att_handle_inrange:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	rtn blank
+	isub regb,null			/* less than start ? */
+	nrtn positive
+	isub regc,null			/* greater than end ? */
+	rtn zero
+	branch le_att_handle_blank,positive
+	force 1,null
+	rtn
+le_att_handle_blank:
+	force 0,pdata
+	rtn
+
+
+	/* handle in temp, return pointer in contr to length, blank not found */
+le_att_get_handle_ptr:
+	call le_att_get_handle_ptr2
+	branch le_att_get_handle_ptr_found,zero
+	rtn
+	
+le_att_get_handle_ptr2:
+	bpatchx patch37_6,mem_patch37
+	fetch 2,mem_ui_le_uuid_table
+	iforce contr
+le_att_get_handle_loop1:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	rtn blank
+	isub temp,null
+	rtn zero
+	ifetch 1,contr
+	iadd contr,contr	
+	ifetch 1,contr			// length  
+	iadd contr,contr
+	branch le_att_get_handle_loop1
+le_att_get_handle_ptr_found:
+	ifetch 1,contr
+	iadd contr,contr	
+	rtn	
+
+
+
+le_att_get_short_uuid_ptr:
+	bpatchx patch37_7,mem_patch37
+	fetch 2,mem_ui_le_uuid_table
+	iforce contr
+le_att_get_short_uuid_loop:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	rtn blank
+	ifetch 1,contr
+	iadd contr,contr
+	increase -2,contr
+	ifetch 2,contr
+	isub temp,null
+	rtn zero
+	ifetch 1,contr			 
+	iadd contr,contr
+	branch le_att_get_short_uuid_loop	
+
+
+//output:temp:new handle num
+//contr:address write data
+le_att_get_last_handle:
+	fetch 2,mem_ui_le_uuid_table
+	iforce contr
+le_att_get_last_handle_loop:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	rtn blank
+	add pdata,1,temp
+	ifetch 1,contr
+	iadd contr,contr	
+	ifetch 1,contr			// length
+	iadd contr,contr
+	copy contr,contw
+	branch le_att_get_last_handle_loop
+
+
+le_att_get_handle_info_from_ptr:
+	fetch 2, mem_le_cur_attlist_start_ptr
+	branch le_att_get_handle_info_fast
+
+le_att_get_handle_info:
+	bpatchx patch38_0,mem_patch38
+	fetch 2,mem_ui_le_uuid_table
+le_att_get_handle_info_fast:
+	iforce contr
+le_att_get_handle_loop:
+	ifetch 2,contr
+	and_into 0xff,pdata
+	branch le_att_unfind_handle,blank
+	isub temp,null
+	branch le_att_finded_handle, zero
+	ifetch 1,contr			// length  
+	iadd contr,contr	
+	ifetch 1,contr			//length 
+	iadd contr,contr
+	branch le_att_get_handle_loop
+le_att_unfind_handle:
+	branch disable_blank
+
+le_att_finded_handle:
+	ifetch 1,contr
+	store 1,mem_le_cur_uuid_length
+	copy pdata,loopcnt
+	arg mem_le_cur_uuid,contw
+	call memcpy_fast
+	ifetch 1,contr
+	store 1,mem_le_curr_att_len
+	call store_contr
+	branch enable_blank
+
+	
+le_modified_name:
+	bpatchx patch38_1,mem_patch38
+	call le_modified_name_att_list
+	branch le_modified_name_adv
+
+le_modified_name_att_list:
+	arg UUID_CHRCTR_DEVICE_NAME,temp
+	call le_att_get_short_uuid_ptr
+	rtn blank
+	ifetch 1,contr						// attribute length
+	copy contr,contw
+	fetcht 1,mem_le_name_len
+	copy temp,loopcnt
+	isub temp,null
+	nbranch le_name_length_longer_than_att,positive
+	isub temp,temp
+	arg mem_le_name,contr
+	call memcpy_fast
+	copy temp,loopcnt
+	ncall memcpy_empty,zero
+	rtn
+le_name_length_longer_than_att:
+	copy pdata,loopcnt
+	arg mem_le_name,contr
+	branch memcpy_fast
+
+
+le_modified_name_adv:
+	arg mem_le_adv_data_len+32,regc
+	arg mem_le_adv_data,rega
+	call le_modified_name_adv_and_scan
+	setarg 0
+	setflag user,0,pdata
+	store 1,mem_pdatatemp
+	arg mem_le_scan_data_len+32,regc
+	arg mem_le_scan_data,rega
+	call le_modified_name_adv_and_scan
+	rtn user
+	fetch 1,mem_pdatatemp
+	branch assert,blank
+	rtn
+
+
+le_modified_name_adv_and_scan:
+	bpatchx patch38_2,mem_patch38
+	call enable_user
+	call clear_temp_block
+	arg 0,regb	//current length
+	arg mem_le_data_temp,contw
+	call le_modified_name_adv_loop
+	fetch 1,mem_le_name_len
+	add pdata,1,temp
+	iadd regb,rega	
+	increase 2,rega
+	sub rega,0x1f,null
+	nbranch le_modified_name_adv_and_scan_name_overflow,positive
+	istoret 1,contw		//store ble name length
+	arg GAP_ADTYPE_LOCAL_NAME_COMPLETE,temp
+	istoret 1,contw		//store ble name type
+	iforce loopcnt
+	call memcpy_fast
+	copy rega,regb
+le_modified_name_adv_and_scan_store_data:
+	deposit regb
+	store 1,mem_le_data_len_temp
+	arg mem_le_data_len_temp,contr
+	setarg -32
+	iadd regc,contw
+	branch memcpy32
+
+le_modified_name_adv_and_scan_name_overflow:
+	call disable_user
+	branch le_modified_name_adv_and_scan_store_data
+	
+le_modified_name_adv_loop:
+	ifetch 1,rega		//pdata:length
+	rtn blank			//length is zero,ending find
+	pincrease 1		//length += 1
+	ifetcht 1,contr		//pdata:type
+	sub temp,GAP_ADTYPE_LOCAL_NAME_COMPLETE,null
+	branch le_modified_name_adv_found_name,zero
+	iadd regb,regb	
+	copy rega,contr
+	iforce loopcnt
+	call memcpy_fast
+	copy contr,rega
+le_modified_name_adv_loop2:
+	deposit rega
+	isub regc,null
+	rtn positive
+	branch le_modified_name_adv_loop
+
+le_modified_name_adv_found_name:
+	iadd rega,rega
+	branch le_modified_name_adv_loop2
+
+
+memcpy_empty:
+	setarg SPACE
+	istore 1,contw
+	loop memcpy_empty
+	rtn
+
+	
+le_lpm_set_mult:
+	bpatchx patch38_3,mem_patch38
+	disable wake
+	branch le_lpm_set_mult_attempt,attempt
+	nbranch le_lpm_lost,match
+le_lpm_set_mult_attempt:
+	call lpm_match
+	fetch 2,mem_rx_window_sniff
+	store 2,mem_le_receive_window
+le_lpm_set_mult_attempt_match:
+	nbranch lpm_mult_short,match
+	bmark1 mark_old_packet,lpm_mult_short
+
+	fetch 1,mem_le_rxbuf_data_length
+	nbranch lpm_mult_short,blank		// rx not empty, short interval
+	fetch 1,mem_le_txlen
+	nbranch lpm_mult_short,blank		// tx not empty, short interval
+	
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_SHORT_MULT,lpm_mult_short	//check flag,if flag is 1,always short mult
+	
+	fetch 1,mem_le_state
+	bbit1 lestate_update_param,lpm_mult_short
+	branch lpm_mult_wait_timeout
+	
+le_lpm_lost:
+	fetcht 2,mem_rx_window_sniff
+	rshift temp,temp
+	fetch 2,mem_le_receive_window
+	iadd temp,pdata
+	store 2,mem_le_receive_window
+	branch lpm_lost
+
+///////////////////////////////BLE CONFIG//////////////////////////////////////////
+le_set_config_fixed_tk:
+	arg BIT_BLE_PASSKEY_FIXED_KEY,queue
+	branch le_set_config
+
+le_clr_config_fixed_tk:
+	arg BIT_BLE_PASSKEY_FIXED_KEY,queue
+	branch le_clr_config
+
+le_set_config_fixed_ltk:
+	arg BIT_BLE_PAIRING_FIXED_LTK,queue
+	branch le_set_config
+
+le_clr_config_fixed_ltk:
+	arg BIT_BLE_PAIRING_FIXED_LTK,queue
+	branch le_clr_config
+
+le_set_config_more_data:
+	arg BIT_BLE_TRANSMIT_PACKET_BY_MD,queue
+	branch le_set_config
+
+le_clr_config_more_data:
+	arg BIT_BLE_TRANSMIT_PACKET_BY_MD,queue
+	branch le_clr_config
+
+le_set_config_read_authentication:
+	arg BIT_BLE_READ_AUTH,queue
+	branch le_set_config
+
+le_clr_config_read_authentication:
+	arg BIT_BLE_READ_AUTH,queue
+	branch le_clr_config
+
+le_set_config_write_authentication:
+	arg BIT_BLE_WRITE_AUTH,queue
+	branch le_set_config
+
+le_clr_config_write_authentication:
+	arg BIT_BLE_WRITE_AUTH,queue
+	branch le_clr_config
+
+le_set_config_short_mult:
+	arg BIT_BLE_SHORT_MULT,queue
+	branch le_set_config
+
+le_clr_config_short_mult:
+	arg BIT_BLE_SHORT_MULT,queue
+	branch le_clr_config
+
+
+le_set_config:
+	fetch 1,mem_le_configuration
+	qset1 pdata
+	store 1,mem_le_configuration
+	rtn
+
+le_clr_config:
+	fetch 1,mem_le_configuration
+	qset0 pdata
+	store 1,mem_le_configuration
+	rtn
+
+le_set_fixed_ltk:
+	setarg 0x112233
+	store 3,mem_le_fixed_ltk
+	setarg 0x445566
+	istore 3,contw
+	setarg 0x778899
+	istore 3,contw
+	setarg 0x001122
+	istore 3,contw
+	setarg 0x334455
+	istore 3,contw
+	setarg 0x66
+	istore 1,contw
+	rtn
+
+
+le_set_justwork:
+	setarg 0x01000302
+	store 4,mem_le_pres
+	setarg 0x010010
+	store 3,mem_le_pres_max_keysize
+	jam 1,mem_le_pairing_mode
+	rtn
+
+/////////////////////////////////////////////////////////////////////////
+
+le_fifo_malloc_tx_empty:
+	arg 0,rega
+	arg LLID_EMPTY,type
+	branch le_fifo_malloc_tx
+
+
+//rega:len regb:ll opcode
+le_fifo_malloc_tx_ll:
+	arg LLID_LE_LL,type
+	call le_fifo_malloc_tx
+	copy regb,pdata
+	istore 1,contw
+	rtn
+	
+
+//rega:len regb:cid
+le_fifo_malloc_tx_l2cap:
+	force LLID_START,type
+	increase 4,rega
+	call le_fifo_malloc_tx
+	increase -4,rega
+	copy rega,pdata
+	istore 2,contw
+	copy regb,pdata
+	istore 2,contw
+	rtn
+
+
+//rega:len type:llid
+le_fifo_malloc_tx:
+	bpatchx patch38_4,mem_patch38
+	increase 5,rega
+	call ble_l2cap_malloc
+	increase -5,rega
+	copy rega,pdata
+	istore 2,contw				//lengh
+	setarg 0
+	istore 2,contw				//offset
+	copy type,pdata
+	istore 1,contw				//LLID
+	rtn
+
+
+le_fifo_get_first_tx_ptr:
+	call l2cap_malloc_fifo_out
+	copy pdata,contr
+	rtn
+
+le_fifo_get_second_tx_ptr:
+	fetch 2,mem_tx_fifo2_ptr
+	rtn
+
+le_fifo_get_last_tx_ptr:
+	call le_fifo_get_last_tx_ptr0
+	copy pdata,contr
+	rtn
+
+
+le_fifo_get_last_tx_ptr0:
+	fetch 2,mem_tx_fifo3_ptr
+	rtn
+
+
+le_fifo_get_first_l2cap_ptr:
+	call le_fifo_get_first_tx_ptr
+	increase 5,contr
+	rtn
+
+le_fifo_get_first_att_ptr:
+	call le_fifo_get_first_tx_ptr
+	increase 9,contr
+	rtn
+
+le_fifo_get_last_att_ptr:
+	call le_fifo_get_last_tx_ptr
+	increase 9,contr
+	rtn
+
+le_fifo_get_last_l2cap_ptr:
+	call le_fifo_get_last_tx_ptr
+	increase 5,contr
+	rtn
+
+
+le_fifo_check_full:
+	branch l2cap_malloc_is_fifo_full
+
+
+le_fifo_check_nearly_full:
+	branch l2cap_malloc_is_fifo_nearly_full
+
+	
+le_fifo_check_empty:
+	branch l2cap_malloc_is_fifo_empty
+
+
+le_fifo_release_first_node:
+	branch l2cap_malloc_free
+
+
+/*
+	function name:le_set_dle (data packet length extension)
+	input:pdata is dle params
+	bit0~bit15 max rx octets
+	bit16~bit31 max rx time
+	bit32~bit47 max tx octets
+	bit48~bit63 max tx time
+*/
+le_set_dle:
+	store 8,mem_local_rx_max_octets
+	branch le_set_feature_data_packet_length_extension
+
+
+/*
+	function name:le_set_phys
+	input:temp is tx & rx phys
+	bit0~bit7 is tx phys
+	bit8~bit15 is rx phys
+*/
+le_set_phys:
+	and temp,0xff,rega
+	call le_set_tx_phy
+	rshift8 temp,rega
+	branch le_set_rx_phy
+
+le_set_tx_phy:
+	storer rega,1,mem_le_tx_phys
+	isolate1 BIT_LE_2M_PHY,rega
+	call le_set_feature_2M_phy,true
+	isolate1 BIT_LE_CODED_PHY,rega
+	call le_set_feature_coded_phy,true
+	rtn
+
+le_set_rx_phy:
+	storer rega,1,mem_le_rx_phys
+	branch le_set_tx_phy+1
+
+
+le_set_feature_2M_phy:
+	arg BIT_LL_FEATURE_LE_2M_PHY,queue
+	branch le_set_feature
+
+
+le_set_feature_coded_phy:
+	arg BIT_LL_FEATURE_LE_CODED_PHY,queue
+	branch le_set_feature
+
+
+le_set_feature_data_packet_length_extension:
+	arg BIT_LL_FEATURE_LE_DATA_PACKET_LENGTH_EXTENSION,queue
+	branch le_set_feature
+
+
+le_set_feature:
+	fetch 8,mem_le_local_feature
+	qset1 pdata
+	store 8,mem_le_local_feature
+	rtn
+
+
+
Index: program/ble_protocol_stack/le_advertising.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_advertising.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_advertising.prog	(working copy)
@@ -0,0 +1,381 @@
+
+/*
+ble core spec advertising
+*/
+
+le_advertising_dispatch:
+	jam FUN_RX_LL_1M_PHY,mem_le_rx_phy
+	jam FUN_TX_LL_1M_PHY,mem_le_tx_phy
+	call le_enable
+	call le_scan
+	call le_adv
+	branch le_disable
+
+le_scan:
+	bpatchx patch38_5,mem_patch38
+	fetch 1,mem_le_scan_enable
+	rtnne LE_SCAN_ENABLE
+	arg le_scan_interval_timer,queue
+	call timer_check
+	nrtn blank
+	fetch 2,mem_le_scan_interval
+	fetcht 2,mem_le_scan_window
+	isub temp,pdata
+	arg le_scan_interval_timer,queue
+	call timer_init
+	disable master
+	call le_init_adv
+	call le_wait_adv
+	nrtn match
+	bpatchx patch38_6,mem_patch38
+	fetch 6,mem_le_rxbuf+2
+	store 6,mem_le_plap
+//	call le_scan_dongle
+
+	fetch 1,mem_le_adv_rcv
+	increase 1,pdata
+	store 1,mem_le_adv_rcv
+	call le_create_conn
+	rtn master
+	call le_send_scan_request
+	nrtn match
+	fetch 1,mem_le_scanrsp_rcv
+	increase 1,pdata
+	store 1,mem_le_scanrsp_rcv
+	fetch 9,mem_le_rxbuf+8
+	store 9,mem_tmp_buffer
+	rtn
+
+
+le_wait_adv:
+	bpatchx patch38_7,mem_patch38
+	call le_next_adv_channel
+	call le_receive_adv
+	fetch 1,mem_le_adv_waitcnt
+	increase 1,pdata
+	store 1,mem_le_adv_waitcnt
+	rtn
+
+
+le_create_conn:
+	bpatchx patch39_0,mem_patch39
+	fetch 1,mem_cmd_le_create_conn
+	rtnne hci_cmd_le_create_conn
+	fetch 6,mem_le_plap
+	fetcht 6,mem_le_conn_peer_addr
+	isub temp,null
+	nrtn zero
+	call context_new
+	nrtn zero
+	call le_connect_request
+	call le_init_master
+	jam 0,mem_hci_cmd
+	jam 0,mem_le_peer_sca
+	jam 0,mem_le_scan_enable
+	jam 0,mem_cmd_le_create_conn
+	branch context_save
+
+le_connect_request:
+	bpatchx patch39_1,mem_patch39
+	force -1,pdata
+	setsect 2,1
+	store 5,mem_le_channel_map
+	arg mem_le_state,rega	
+	call le_calc_channel_map	
+	force 4,loopcnt
+	arg mem_le_access,contw
+	call generate_random_loop	
+	fetch 2,mem_le_timeout
+	store 2,mem_le_superto
+le_con_req_hop_retry:
+	random pdata
+	and_into 0xf,pdata
+	sub pdata,4,null
+	branch le_con_req_hop_retry,positive
+	store 1,mem_le_hop
+	store 1,mem_tmp1
+	bpatchx patch39_2,mem_patch39
+	fetcht 2,mem_le_conn_interval
+	storet 2,mem_le_tsniff	
+	copy temp,regc			// tsniff in regc
+	add clkn_bt,7,pdata			// leave space for offset
+	idiv regc
+	call wait_div_end
+	remainder rega
+	isub rega,pdata
+	iadd regc,pdata
+	fetcht 2,mem_le_dsniff
+	iadd temp,pdata
+	store 4,mem_le_anchor
+	isub clkn_bt,rega
+	increase -6,rega			// window offset
+	arg 0x2205,regb			// length & CONN_REQ PDU
+	fetch 1,mem_le_conn_own_addr_type
+	nsetflag blank,LE_SENDER_ADDR_BIT,regb
+	fetch 1,mem_le_conn_peer_addr_type
+	nsetflag blank,LE_RECEIVER_ADDR_BIT,regb
+	copy regb,pdata
+	store 2,mem_le_txheader
+	fetch 6,mem_le_lap
+	istore 6,contw//own addr
+	fetch 6,mem_le_plap
+	istore 6,contw// peer addr
+	fetch 4,mem_le_access
+	istore 4,contw
+	random pdata
+	istore 2,contw				/* crc init */
+	random pdata
+	istore 1,contw
+	force 2,pdata				/* window size */	
+	istore 1,contw
+	rshift2 rega,pdata
+	istore 2,contw				/* window offset */
+	rshift2 regc,pdata			
+	istore 2,contw				/* conn Interval */
+	bpatchx patch39_3,mem_patch39
+	setarg 0					/* slave latency */
+	istore 2,contw
+	fetch 2,mem_le_timeout
+	istore 2,contw
+	fetch 5,mem_le_channel_map
+	istore 5,contw				/* channel map */
+	fetch 1,mem_le_hop
+	arg param_le_sca,temp
+	ior temp,pdata
+	istore 1,contw
+	call le_transmit_norx
+	setarg mem_le_txheader
+	add pdata,18,contr
+	ifetch 3,contr
+	store 3,mem_le_crcinit
+	rtn
+		
+
+
+le_adv:
+	jam 36,mem_le_ch_mapped
+	jam 0,mem_le_adv_channel_map_temp
+le_adv_loop:
+	fetch 1,mem_le_adv_enable
+	rtn blank
+	arg le_adv_interval_timer,queue
+	call timer_check
+	nrtn blank
+	bpatchx patch39_4,mem_patch39
+le_adv_loop_tx:
+	enable swfine
+	call le_init_adv
+	call le_next_adv_channel
+	call le_send_adv_ind
+	nbranch le_adv_not_match,match
+	fetch 1,mem_le_req_rcv
+	increase 1,pdata
+	store 1,mem_le_req_rcv
+	fetch 1,mem_le_rxbuf_adv_header
+	and pdata,0x0f,pdata
+	beq SCAN_REQ,le_send_scan_response
+	beq CONNECT_REQ,le_parse_connect_req
+le_adv_not_match:
+	bpatchx patch39_5,mem_patch39
+	fetch 1,mem_le_adv_channel_map_temp
+	fetcht 1,mem_le_adv_channel_map
+	isub temp,null
+	nbranch le_adv_loop,zero
+	random pdata 
+	arg 0x1ff,temp
+	iand temp,pdata
+	add pdata,250,pdata
+	call delay
+	arg le_adv_interval_timer,queue
+	fetch 2,mem_le_adv_interval
+	branch timer_init
+
+
+le_init_adv:
+	bpatchx patch39_6,mem_patch39
+	disable master
+le_adv_access:
+	setarg 0x8e89be
+	lshift8 pdata,pdata
+	or_into 0xd6,pdata
+	iforce access
+	setarg 0x555555
+	store 3,mem_le_crcinit
+	branch calc_mod_value_scale_le
+
+
+
+le_send_adv_ind:
+	bpatchx patch39_7,mem_patch39
+	fetch 1,mem_le_adv_type
+	fetcht 1,mem_le_adv_own_addr_type
+	lshift4 temp,temp
+	lshift2 temp,temp
+	iadd temp,temp
+	storet 1,mem_le_txheader
+	beq ADV_DIRECT_IND,le_send_adv_direct_ind
+	fetcht 1,mem_le_adv_data_len
+	add temp,6,pdata
+	store 1,mem_le_txlen
+	fetch 6,mem_le_lap
+	store 6,mem_le_txpayload
+	copy temp,loopcnt
+	arg mem_le_adv_data,contr
+	call memcpy_fast
+	branch le_send_adv_transmit
+
+le_send_adv_direct_ind:
+	setarg 12
+	store 1,mem_le_txlen
+	fetch 6,mem_le_lap
+	store 6,mem_le_txpayload
+	fetch 6,mem_hci_plap
+	istore 6,contw
+le_send_adv_transmit:
+	bpatchx patch3a_0,mem_patch3a
+	fetch 1,mem_le_adv_transmit
+	increase 1,pdata
+	store 1,mem_le_adv_transmit
+	arg 1800,stop_watch
+	disable match
+	branch le_transmit_receive_sifs_without_change_mode
+
+
+le_send_scan_request:
+	bpatchx patch3a_1,mem_patch3a
+	fetch 1,mem_le_scan_type
+	rtnne LE_SCAN_TYPE_ACTIVE
+	fetch 1,mem_le_adv_transmit
+	increase 1,pdata
+	store 1,mem_le_adv_transmit
+	arg 0x0c03,temp// length + SCAN_REQ PDU
+	fetch 1,mem_le_scan_own_addr_type
+	nsetflag blank,LE_SENDER_ADDR_BIT,temp
+	copy rega,pdata
+	nsetflag blank,LE_RECEIVER_ADDR_BIT,temp	
+	storet 2,mem_le_txheader
+	fetch 6,mem_le_lap
+	istore 6,contw
+	fetch 6,mem_le_plap
+	istore 6,contw
+	branch le_transmit_receive_sifs_without_change_mode
+
+le_send_scan_response:
+	fetch 6,mem_le_rxbuf_adv_scan_req_adv_address
+	fetcht 6,mem_le_lap
+	isub temp,null
+	nrtn zero
+	arg SCAN_RSP,temp
+	fetch 1,mem_le_adv_own_addr_type
+	nsetflag blank,LE_SENDER_ADDR_BIT,temp
+	storet 1,mem_le_txheader
+	fetcht 1,mem_le_scan_data_len
+	add temp,6,pdata
+	store 1,mem_le_txlen
+	fetch 6,mem_le_lap
+	store 6,mem_le_txpayload
+	arg mem_le_scan_data,contr
+	copy temp,loopcnt
+	call memcpy_fast
+	call le_transmit_norx
+	branch le_adv_not_match
+
+le_parse_connect_req:
+	fetch 6,mem_le_rxbuf_adv_connect_ind_adv_address
+	fetcht 6,mem_le_lap
+	isub temp,null
+	nrtn zero
+	call le_scan_check_sender_addr_type
+	storer rega,1,mem_le_conn_peer_addr_type
+	fetch 6,mem_le_rxbuf_adv_connect_ind_init_address
+	store 6,mem_le_plap
+	fetch 8,mem_le_rxbuf_adv_connect_ind_access_address
+	store 8,mem_le_access 	// and crcinit & window size
+	fetcht 2,mem_le_rxbuf_adv_connect_ind_win_offset	// transmit offset
+	bpatchx patch3a_2,mem_patch3a
+	lshift2 temp,temp
+	fetch 2,mem_le_rxbuf_adv_connect_ind_interval	// connInterval
+	lshift2 pdata,pdata
+	store 2,mem_le_tsniff
+	store 4,mem_le_anchor
+	isub temp,pdata
+	add pdata,-2,clke_bt
+	fetch 9,mem_le_rxbuf_adv_connect_ind_latency
+	store 9,mem_le_slave_latency// and super to & channel map
+	fetch 1,mem_le_rxbuf_adv_connect_ind_hop_and_sca
+	and pdata,0x1f,temp
+	storet 1,mem_le_hop
+	rshift4 pdata,temp
+	rshift temp,temp
+	storet 1,mem_le_peer_sca
+	arg mem_le_state,rega
+	call le_receive_window_size
+	arg mem_le_state,rega	
+	call le_calc_channel_map
+	call le_init_slave
+	call context_new
+	nrtn zero
+	bpatchx patch3a_3,mem_patch3a
+	call calc_clke_offset
+	call le_l2cap_reset_signaling_identifier
+	jam BT_EVT_LE_CONNECTED,mem_fifo_temp
+	call ui_ipc_send_event
+	branch context_save
+
+
+le_next_adv_channel:
+	bpatchx patch3a_4,mem_patch3a
+	fetch 1,mem_le_ch_mapped
+	beq 37,le_next_adv_channel_curr_channel_37
+	beq 38,le_next_adv_channel_curr_channel_38
+	beq 39,le_next_adv_channel_curr_channel_39
+	branch le_next_adv_channel_curr_channel_39
+
+le_next_adv_channel_curr_channel_37:
+	fetcht 1,mem_le_adv_channel_map
+	isolate1 BIT_ADV_CHANNEL_MAP_38,temp		//check 38 channel enable
+	branch set_le_next_adv_channel_38,true
+	isolate1 BIT_ADV_CHANNEL_MAP_39,temp		//check 39 channel enable
+	branch set_le_next_adv_channel_39,true
+	branch set_le_next_adv_channel_37
+
+
+le_next_adv_channel_curr_channel_38:
+	fetcht 1,mem_le_adv_channel_map
+	isolate1 BIT_ADV_CHANNEL_MAP_39,temp		//check 39 channel enable
+	branch set_le_next_adv_channel_39,true
+	isolate1 BIT_ADV_CHANNEL_MAP_37,temp		//check 37 channel enable
+	branch set_le_next_adv_channel_37,true
+	branch set_le_next_adv_channel_38
+
+
+le_next_adv_channel_curr_channel_39:
+	fetcht 1,mem_le_adv_channel_map
+	isolate1 BIT_ADV_CHANNEL_MAP_37,temp		//check 37 channel enable
+	branch set_le_next_adv_channel_37,true
+	isolate1 BIT_ADV_CHANNEL_MAP_38,temp		//check 38 channel enable
+	branch set_le_next_adv_channel_38,true
+	branch set_le_next_adv_channel_39
+
+set_le_next_adv_channel_37:
+	jam 37,mem_le_ch_mapped
+	fetch 1,mem_le_adv_channel_map_temp
+	set1 BIT_ADV_CHANNEL_MAP_37,pdata
+	store 1,mem_le_adv_channel_map_temp
+	rtn
+
+set_le_next_adv_channel_38:
+	jam 38,mem_le_ch_mapped
+	fetch 1,mem_le_adv_channel_map_temp
+	set1 BIT_ADV_CHANNEL_MAP_38,pdata
+	store 1,mem_le_adv_channel_map_temp
+	rtn
+
+set_le_next_adv_channel_39:
+	jam 39,mem_le_ch_mapped
+	fetch 1,mem_le_adv_channel_map_temp
+	set1 BIT_ADV_CHANNEL_MAP_39,pdata
+	store 1,mem_le_adv_channel_map_temp
+	rtn
+
+
Index: program/ble_protocol_stack/le_l2cap_att.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_l2cap_att.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_l2cap_att.prog	(working copy)
@@ -0,0 +1,874 @@
+
+
+le_parse_att:
+	ifetch 3,contr
+	store 3,mem_le_att_opcode
+	beq ATTOP_EXCHANGE_MTU_REQUEST,le_parse_att_exchange_mtu_request
+	beq ATTOP_EXCHANGE_MTU_RESPONSE,le_parse_att_exchange_mtu_response
+	beq ATTOP_FIND_INFORMATION_REQUEST,le_parse_att_find_information_request
+	beq ATTOP_FIND_BY_TYPE_VALUE_REQUEST,le_parse_att_find_by_type_value_request
+	beq ATTOP_READ_BY_TYPE_REQUEST,le_parse_att_read_by_type_request
+	beq ATTOP_READ_REQUEST,le_parse_att_read_request
+	beq ATTOP_READ_BLOB_REQUEST,le_parse_att_read_blob_request
+	beq ATTOP_READ_BY_GROUP_TYPE_REQUEST,le_parse_att_read_by_group_type_request
+	beq ATTOP_WRITE_REQUEST,le_parse_att_write_request
+	beq ATTOP_PREPARE_WRITE_REQUEST,le_parse_att_prepare_write_request
+	beq ATTOP_EXECUTE_WRITE_REQUEST,le_parse_att_execute_write_request
+	beq ATTOP_HANDLE_VALUE_CONFIRMATION,le_parse_handle_value_confirmation
+	beq ATTOP_WRITE_COMMAND,le_parse_att_write_command
+	rtn
+
+
+le_send_att_exchange_mtu_requset:
+	force 3,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_EXCHANGE_MTU_REQUEST
+	istore 1,contw
+	fetch 2,mem_le_local_mtu
+	istore 2,contw
+	rtn
+
+
+le_parse_att_exchange_mtu_request:
+	call le_parse_att_exchange_mtu_response
+le_send_att_exchange_mtu_response:
+	force 3,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_EXCHANGE_MTU_RESPONSE
+	istore 1,contw
+	fetch 2,mem_le_local_mtu
+	istore 2,contw
+	rtn
+
+le_parse_att_exchange_mtu_response:
+	rshift8 pdata,pdata
+	store 2,mem_le_remote_mtu
+	rtn
+
+le_parse_att_find_information_request:
+	call le_get_search_handle_start_end_common
+	call enable_user
+	branch le_send_att_find_information_response
+	
+le_send_att_find_information_response:
+	arg 3,timeup
+	call le_init_attlist_search
+le_send_att_find_information_res_loop:
+	call le_att_handle_inrange
+	branch le_send_att_find_information_res_end,blank
+	nbranch le_send_att_find_information_res_next,positive
+	increase -2,contr
+	call store_contr
+	call get_contw
+	nbranch le_send_att_find_information_res_store_info,user
+	call push_stack_rega_b_c
+	call disable_user
+	storer timeup,4,mem_timeup
+	force 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	fetchr timeup,4,mem_timeup
+	call pop_stack_rega_b_c
+	setarg ATTOP_FIND_INFORMATION_RESPONSE
+	istore 1,contw
+	setarg UUID_SIZE_16BIT
+	istore 1,contw
+le_send_att_find_information_res_store_info:
+	call get_contr
+	ifetch 2,contr
+	and_into 0xff,pdata
+	istore 2,contw
+	ifetch 1,contr
+	copy pdata,loopcnt
+	call memcpy
+	call store_contw
+	increase -1,timeup
+	branch le_send_att_find_information_res_end,zero
+le_send_att_find_information_res_cont:
+	ifetch 1,contr
+	iadd contr,contr
+	branch le_send_att_find_information_res_loop
+le_send_att_find_information_res_next:
+	ifetch 1,contr
+	iadd contr,contr
+	branch le_send_att_find_information_res_cont
+le_send_att_find_information_res_end:
+	branch le_send_att_error_response_notfound,user
+	branch le_send_auto_len_by_mem
+
+
+le_parse_att_find_by_type_value_request:
+	call le_get_search_handle_start_end_common
+	ifetch 2,contr
+	store 2,mem_le_search_uuid
+	call store_contr
+	arg mem_le_search_att_type_length,contw
+	fetch 2,mem_le_l2cap_size
+	increase -7,pdata
+	call le_get_search_common2
+	branch le_send_att_find_by_type_value_response
+
+
+le_start_end_handle_check_1:
+	disable user
+	fetcht 2,mem_le_search_handle_start
+	fetch 2,mem_le_search_handle_end
+	isub temp,null
+	nbranch le_start_end_handle_check_1_fail,positive
+	deposit temp
+	rtnne 0
+le_start_end_handle_check_1_fail:
+	enable user
+	jam ATT_ERR_INVALID_HANDLE,mem_le_err_code
+	branch le_send_att_error_response
+
+
+le_send_att_find_by_type_value_response:
+	call le_start_end_handle_check_1
+	rtn user
+	fetcht 2,mem_le_search_uuid
+	setarg UUID_GATT_PRIMARY_SERVICE
+	isub temp,null
+	branch le_send_att_find_by_type_value_res_primary,zero
+	branch le_send_att_error_response_notfound
+	
+
+le_send_att_find_by_type_value_res_primary:
+	jam LE_FIND_BY_TYPE_VAL_RES_NOT_FOUND,mem_le_search_res
+	fetcht 2,mem_le_search_handle_start
+	storet 2,mem_temp
+	call le_att_get_handle_info
+	nbranch le_send_att_error_response_notfound,blank
+le_send_att_find_primary_search_loop:
+	fetcht 2,mem_temp
+	call le_att_get_handle_info
+	nbranch le_send_att_error_response_notfound2,blank	
+	copy contr,rega
+	fetch 1,mem_le_curr_att_len
+	copy pdata,loopcnt
+	fetcht 1,mem_le_search_att_type_length
+	isub temp,null
+	nbranch le_send_att_find_primary_search_loop1,zero
+	arg mem_le_search_att_type,regb
+	call string_compare
+
+	branch le_send_att_find_primary_search_end_start_handle_found,zero
+
+	fetch 2,mem_le_cur_uuid
+	fetcht 2,mem_le_search_uuid
+	isub temp,null
+	branch le_send_att_find_primary_search_end_ending_handle_found,zero
+le_send_att_find_primary_search_loop1:
+	fetch 2,mem_temp
+	increase 1,pdata
+	store 2,mem_temp
+	branch le_send_att_find_primary_search_loop
+
+le_send_att_error_response_notfound2:
+	fetch 1,mem_le_search_res
+	beq LE_FIND_BY_TYPE_VAL_RES_FOUND_STARTING_HANDLE,le_send_att_find_primary_search_end_ending_handle_found
+	branch le_send_att_error_response_notfound
+
+	
+le_send_att_find_primary_search_end_start_handle_found:
+	fetch 2,mem_le_cur_uuid
+	fetcht 2,mem_le_search_uuid
+	isub temp,null
+	nbranch  le_send_att_find_primary_search_loop1,zero
+	jam LE_FIND_BY_TYPE_VAL_RES_FOUND_STARTING_HANDLE,mem_le_search_res
+//	copy rega,temp
+	fetcht 2,mem_temp
+	storet 2,mem_le_cur_handle_start
+	branch le_send_att_find_primary_search_loop1
+
+le_send_att_find_primary_search_end_ending_handle_found:
+	fetch 1,mem_le_search_res
+	beq LE_FIND_BY_TYPE_VAL_RES_NOT_FOUND,le_send_att_find_primary_search_loop1
+	jam LE_FIND_BY_TYPE_VAL_RES_FOUND_ENDING_HANDLE,mem_le_search_res
+	fetcht 2,mem_temp
+	increase -1,temp
+	storet 2,mem_le_cur_handle_end
+	
+le_send_att_find_primary_search_end:
+	arg 5,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_FIND_BY_TYPE_VALUE_RESPONSE
+	istore 1,contw
+	fetch 2,mem_le_cur_handle_start
+	istore 2,contw
+	fetch 2,mem_le_cur_handle_end
+	istore 2,contw
+	rtn
+
+
+
+le_parse_att_read_by_type_request:
+	call le_get_search_handle_start_end_common
+	call le_get_search_att_type
+	branch le_send_att_read_by_type_response
+	
+le_send_att_read_by_type_response:
+	fetcht 2,mem_le_search_handle_start
+	storet 2,mem_temp
+	call le_init_attlist_search
+	call le_att_get_handle_ptr2
+	increase -2,contr
+	copy contr,pdata
+	store 2,mem_le_cur_attlist_start_ptr
+
+	fetcht 2,mem_le_search_att_type
+	setarg UUID_CHRCTR_DEVICE_NAME
+	isub temp,null
+	branch le_send_att_read_by_type_res_device_name,zero
+	setarg UUID_GATT_CHARACTERISTIC
+	isub temp,null
+	nbranch le_send_att_read_by_type_res_not_characteristic,zero
+	arg 2,timeup
+le_send_att_read_by_type_response_loop:
+	call le_att_check_handle_end
+	nbranch le_send_att_read_by_type_response_end,positive
+	fetcht 2,mem_temp
+	call le_att_get_handle_info_from_ptr
+	nbranch le_send_att_read_by_type_response_end,blank
+	call le_att_same_type
+	nbranch le_send_att_read_by_type_response_next_handle,zero
+	nbranch le_send_att_read_by_type_res_found_next,user
+	disable user
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BY_TYPE_RESPONSE
+	istore 1,contw
+	copy contw,alarm
+	increase 1,contw
+	
+	call le_send_att_read_by_type_write_properties
+	call le_att_next_handle
+	call le_att_get_handle_info_from_ptr
+	call le_send_att_read_by_type_write_uuid
+	fetch 1,mem_le_cur_uuid_length
+	add pdata,5,rega
+	istorer rega,1,alarm
+	
+	sub rega,7,null
+	ncall enable_user2,zero
+	call disable_user2,zero
+ 	call le_get_search_max_mtu_data
+	idiv rega
+	call wait_div_end
+	quotient timeup
+	increase -1,timeup
+	branch le_send_att_read_by_type_response_end,zero
+le_send_att_read_by_type_response_next_handle:
+	call le_att_next_handle
+	branch le_send_att_read_by_type_response_loop
+le_send_att_read_by_type_response_end:
+	branch le_send_att_error_response_notfound,user
+	branch le_send_auto_len_by_mem
+
+le_send_att_read_by_type_res_found_next:
+	call le_store_att_record
+	call le_att_next_handle
+	call le_att_get_handle_info_from_ptr
+	call le_send_att_read_by_type_res_check_pair_length_type
+	nbranch le_send_att_read_by_type_response_end,blank
+
+	call get_contw
+	fetch 2,mem_temp
+	increase -1,pdata
+	istore 2,contw
+	call le_write_att_record_common
+	call le_send_att_read_by_type_write_uuid
+	increase -1,timeup
+	branch le_send_att_read_by_type_response_end,zero
+	branch le_send_att_read_by_type_response_next_handle
+
+	
+le_send_att_read_by_type_write_properties:
+	fetch 2,mem_temp
+	istore 2,contw
+	
+	fetch 1,mem_le_curr_att_len
+	copy pdata,loopcnt
+	call get_contr
+	call memcpy_fast
+	branch store_contw
+le_send_att_read_by_type_write_uuid:
+	call get_contw
+	fetch 2,mem_temp
+	istore 2,contw
+	call store_contw
+	fetch 1,mem_le_cur_uuid_length
+	copy pdata,loopcnt
+	call get_contw	
+	call get_contr
+	isub loopcnt,contr
+	increase -1,contr
+	call memcpy_fast
+	branch store_contw
+
+
+
+le_send_att_read_by_type_res_not_characteristic:
+	call le_att_get_short_uuid_ptr
+	branch le_send_att_error_response_notfound,blank
+	copy contr,regc
+	increase -5,contr // point to handle
+	ifetch 2,contr
+	store 2,mem_temp
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BY_TYPE_RESPONSE
+	istore 1,contw
+	ifetch 1,regc
+	copy pdata,loopcnt
+	increase 2,pdata
+	istore 1,contw
+	fetch 2,mem_temp
+	istore 2,contw
+	add regc,1,contr
+	call memcpy_fast
+	call store_contw
+	branch le_send_auto_len_by_mem
+
+	
+
+le_send_att_read_by_type_res_device_name:
+	arg UUID_CHRCTR_DEVICE_NAME,temp
+	call le_att_get_short_uuid_ptr
+	rtn blank
+	increase -5,contr // point to handle
+	ifetch 2,contr		
+	store 2,mem_temp
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BY_TYPE_RESPONSE
+	istore 1,contw
+	fetch 1,mem_le_name_len
+	copy pdata,loopcnt
+	increase 2,pdata
+	istore 1,contw
+	fetch 2,mem_temp
+	istore 2,contw
+	arg mem_le_name,contr
+	call memcpy_fast
+	call store_contw
+	branch le_send_auto_len_by_mem
+
+
+
+le_parse_att_read_request:
+	call le_check_encrypt_state
+	fetcht 2,mem_le_att_handle
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_READ_AUTH,le_send_att_read_response_check_auth
+
+//input:temp is handle
+le_send_att_read_response:
+	call le_att_get_handle_ptr2
+	nbranch le_send_att_error_response_notfound,zero
+	call le_send_att_read_response_check_handle,user
+	rtn user
+	call le_att_get_handle_ptr_found
+	increase -2,contr
+	ifetch 2,contr
+	arg UUID_CHRCTR_DEVICE_NAME,temp
+	isub temp,null
+	branch le_send_device_name,zero
+	ifetch 1,contr
+	sub pdata,22,null
+	branch le_send_att_read_response_less,positive
+	force 22,pdata
+le_send_att_read_response_less:
+	copy pdata,regc
+	call store_contr
+	add regc,1,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_RESPONSE
+	istore 1,contw
+	copy regc,loopcnt
+	call get_contr
+	branch memcpy
+
+le_send_device_name:
+	call store_contr
+	fetch 1,mem_le_name_len
+	add pdata,1,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_RESPONSE
+	istore 1,contw
+	fetch 1,mem_le_name_len
+	copy pdata,loopcnt
+	arg mem_le_name,contr
+	branch memcpy
+	
+	
+le_send_att_read_response_check_auth:
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch le_send_att_read_response,zero
+	nbranch le_send_att_read_response,user
+le_send_att_read_response_error_insufficient_auth:
+	jam ATT_ERR_INSUFFICIENT_AUTHENTICATION,mem_le_err_code
+	branch le_send_att_error_response
+
+le_send_att_read_response_check_handle:
+	increase -2,contr
+	ifetch 2,contr
+	bbit1 BIT_OF_ATT_HANDLE_READ_AUTHENTICATED,le_send_att_read_response_error_insufficient_auth
+	branch disable_user
+
+le_parse_att_read_blob_request:
+	ifetch 2,contr
+	store 2,mem_le_att_offset
+le_send_att_read_blob_response:
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BLOB_RESPONSE
+	istore 1,contw
+	fetch 2,mem_le_att_offset
+	iforce rega
+	fetcht 2,mem_le_att_handle
+	call le_att_get_handle_ptr 
+	branch le_send_att_error_response_notfound,blank
+	ifetch 1,contr
+	isub rega,loopcnt
+	nbranch le_send_att_error_response_notfound,positive
+	sub loopcnt,22,null
+	branch le_send_att_read_blob_response_less,positive
+	force 22,loopcnt
+le_send_att_read_blob_response_less:
+	deposit rega
+	iadd contr,contr
+	call memcpy_fast
+	call store_contw
+	branch le_send_auto_len_by_mem
+
+
+//查询server
+le_parse_att_read_by_group_type_request:
+	call le_get_search_handle_start_end_common
+ 	call le_get_search_att_type
+	branch le_send_att_read_by_group_type_response
+
+
+//mem_le_search_att_type
+//mem_le_search_handle_start
+//mem_le_search_handle_end
+le_send_att_read_by_group_type_response:
+	arg 2,timeup
+	fetcht 2,mem_le_search_handle_start
+	storet 2,mem_temp
+	call le_att_get_handle_ptr2
+	increase -2,contr
+	copy contr,pdata
+	store 2,mem_le_cur_attlist_start_ptr
+le_send_att_read_by_group_type_response_loop:
+	call le_att_check_handle_end		//check current handle >= ending handle
+	nbranch le_send_att_read_by_group_type_end0,positive
+	fetcht 2,mem_temp
+	call le_att_get_handle_info_from_ptr	//get current handle info
+	nbranch le_send_att_read_by_group_type_end1,blank
+
+	call le_att_same_type				//compair attr group type
+	nbranch le_send_att_read_by_group_type_next_handle,zero
+	copy timeup,pdata
+	beq 0,le_send_att_read_by_group_type_end1	//loop count
+	nbranch le_send_att_read_by_group_type_store_write_record,user		//un first
+	disable user
+	//first att uuid
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BY_GROUP_TYPE_RESPONSE
+	istore 1,contw
+	fetch 1,mem_le_curr_att_len
+	add pdata,4,rega
+	istorer rega,1,contw
+	call store_contw
+	sub rega,6,null
+	ncall enable_user2,zero
+	call disable_user2,zero
+ 	call le_get_search_max_mtu_data
+	idiv rega
+	call wait_div_end
+	quotient timeup
+	branch le_send_att_read_by_group_type_store_record
+le_send_att_read_by_group_type_store_write_record:
+	call le_send_att_read_by_group_type_check_pair_length_type
+	nbranch le_send_att_read_by_group_type_end1,blank
+	fetch 2,mem_temp
+	increase -1,pdata
+	store 2,mem_le_cur_handle_end
+	call le_write_att_record
+le_send_att_read_by_group_type_store_record:
+	fetch 2,mem_temp
+	store 2,mem_le_cur_handle_start
+	call le_store_att_record
+	increase -1,timeup
+//	branch le_send_att_read_by_group_type_last_find,zero		
+le_send_att_read_by_group_type_next_handle:
+	call le_att_next_handle
+	branch le_send_att_read_by_group_type_response_loop
+
+le_send_att_read_by_type_res_check_pair_length_type:
+	fetch 1,mem_le_cur_uuid_length
+	branch le_send_att_read_by_group_type_check_pair_length_type+1
+
+//output:blank is same
+le_send_att_read_by_group_type_check_pair_length_type:
+	fetch 1,mem_le_curr_att_len
+	branch le_send_att_read_by_group_type_check_pair_length_type_16byte,user2
+	increase -2,pdata
+	rtn
+
+le_send_att_read_by_group_type_check_pair_length_type_16byte:
+	increase -16,pdata
+	rtn
+
+le_send_att_read_by_group_type_end0:	//> att handle end
+	fetch 2,mem_temp
+	store 2,mem_le_cur_handle_end
+	branch le_send_att_read_by_group_type_end_common
+le_send_att_read_by_group_type_end1:	//>att max list handle or diff len 
+	fetch 2,mem_temp
+	increase -1,pdata
+	store 2,mem_le_cur_handle_end
+	branch le_send_att_read_by_group_type_end_common
+le_send_att_read_by_group_type_end_common:
+	branch le_send_att_error_response_notfound,user
+	call le_write_att_record
+	branch le_send_auto_len_by_mem
+
+
+
+
+le_parse_att_write_request:
+	copy contr,rega
+	fetch 2,mem_le_l2cap_size
+	add pdata,-3,regb
+	call le_writeatt_cb
+le_send_att_write_response_check_auth:
+	call le_check_encrypt_state
+	fetcht 2,mem_le_att_handle
+	call le_att_get_handle_ptr2
+	nbranch le_send_att_write_response_error_invalid_handle,zero
+	call le_send_att_write_response_check_handle,user
+	rtn user
+
+	fetch 1,mem_le_configuration
+	bbit0 BIT_BLE_WRITE_AUTH,le_send_att_write_response
+
+	fetcht 2,mem_le_att_handle
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch le_send_att_write_response,zero
+	call le_check_encrypt_state
+	nbranch le_send_att_write_response,user
+	branch le_send_att_read_response_error_insufficient_auth
+
+
+le_send_att_write_response:
+	force 1,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_WRITE_RESPONSE
+	istore 1,contw
+	rtn
+
+le_send_att_write_response_check_handle:
+	increase -2,contr
+	ifetch 2,contr
+	bbit1 BIT_OF_ATT_HANDLE_WRITE_AUTHENTICATED,le_send_att_read_response_error_insufficient_auth
+	branch disable_user
+
+le_send_att_write_response_error_invalid_handle:
+	jam ATT_ERR_INVALID_HANDLE,mem_le_err_code
+	branch le_send_att_error_response
+
+
+le_check_encrypt_state:
+	call disable_user
+	fetch 1,mem_le_pairing_mode
+	rtneq LE_PAIRING_MODE_NONE
+	fetch 1,mem_context
+	rtnbit1 lestate_encryption
+	branch enable_user
+
+
+le_parse_att_prepare_write_request:
+	add contr,2,rega
+	fetch 2,mem_le_l2cap_size
+	add pdata,-5,regb
+	call le_writeatt_cb
+	branch le_send_att_prepare_write_response
+
+
+le_send_att_prepare_write_response:
+	fetch 2,mem_le_l2cap_size
+	copy pdata,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_PREPARE_WRITE_RESPONSE
+	istore 1,contw
+	fetch 2,mem_le_att_handle
+	istore 2,contw
+	fetch 2,mem_le_l2cap_size
+	add pdata,-5,loopcnt	
+	fetch 2,mem_le_payload_ptr
+	add pdata,7,contr
+	ifetch 2,contr		//offset
+	istore 2,contw
+	branch memcpy_fast
+
+
+
+le_parse_att_execute_write_request:
+
+le_send_att_execute_write_response:
+	force 1,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_EXECUTE_WRITE_RESPONSE
+	istore 1,contw
+	rtn
+
+le_parse_handle_value_confirmation:
+	fetch 1,mem_le_l2cap_att_states
+	set0 BLE_L2CAP_RECV_CONFIRMATION_PACKET,pdata
+	store 1,mem_le_l2cap_att_states
+	rtn
+
+le_parse_att_write_command:
+	copy contr,rega
+	fetch 2,mem_le_l2cap_size
+	add pdata,-3,regb
+	branch le_writeatt_cb
+
+
+
+//rga:len temp:handle;rgea,regb,regc already used
+le_att_malloc_tx_notify:
+	copy temp,regc
+	increase 3,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	increase -3,rega
+	setarg ATTOP_HANDLE_VALUE_NOTIFICATION
+	istore 1,contw
+	copy regc,temp
+	istoret 2,contw
+	rtn
+
+//rga:len temp:handle;rgea,regb,regc already used
+le_att_malloc_tx_indication:
+	fetch 1,mem_le_l2cap_att_states
+	set1 BLE_L2CAP_SEND_INDICATION_PACKET,pdata
+	store 1,mem_le_l2cap_att_states
+	copy temp,regc
+	increase 3,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	increase -3,rega
+	setarg ATTOP_HANDLE_VALUE_INDICATION
+	istore 1,contw
+	copy regc,temp
+	istoret 2,contw
+	rtn
+
+
+///////////////////////////ATT common function////////////////////////////////////
+
+le_send_att_error_response_notfound:	
+	jam ATT_ERR_ATTRIBUTE_NOT_FOUND,mem_le_err_code
+le_send_att_error_response:	
+	force 5,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_ERROR_RESPONSE
+	istore 1,contw
+	fetch 1,mem_le_att_opcode
+	istore 1,contw
+	fetch 2,mem_le_att_handle
+	istore 2,contw
+	fetch 1,mem_le_err_code
+	istore 1,contw
+	rtn
+
+
+le_fifo_malloc_tx_l2cap_gatt:
+	force LE_L2CAP_CID_ATT,regb
+	branch le_fifo_malloc_tx_l2cap
+
+
+le_att_next_handle:
+	fetcht 2,mem_temp
+	increase 1,temp
+	storet 2,mem_temp
+	rtn
+
+le_att_check_handle_end:
+	fetcht 2,mem_temp
+	fetch 2,mem_le_search_handle_end
+	isub temp,null
+	rtn
+
+
+le_att_same_type:
+	fetcht 1,mem_le_search_att_type_length
+	arg mem_le_search_att_type,rega
+le_att_check_same_common:
+	fetch 1,mem_le_cur_uuid_length
+	copy pdata,loopcnt
+	isub temp,null
+	nrtn zero
+	arg mem_le_cur_uuid ,regb
+	branch string_compare
+
+le_att_same_uuid:
+	fetcht 1,mem_le_search_uuid_length
+	arg mem_le_search_uuid,rega
+	branch le_att_check_same_common
+
+
+le_store_att_record:
+	fetch 1,mem_le_curr_att_len
+	store 1, mem_tmp_buffer
+	copy pdata,loopcnt
+	call get_contr
+	branch memcpy_fast
+
+
+le_write_att_record:
+	call get_contw
+	fetch 2,mem_le_cur_handle_start
+	istore 2,contw
+	fetch 2,mem_le_cur_handle_end
+	istore 2,contw
+le_write_att_record_common:
+	fetch 1,mem_tmp_buffer
+	copy pdata,loopcnt
+	call memcpy_fast
+	branch store_contw
+
+
+
+le_send_auto_len_by_mem:
+	bpatchx patch3a_5,mem_patch3a
+	call get_contw
+	call le_fifo_get_last_att_ptr
+	copy contw,pdata
+	isub contr,rega
+	call le_fifo_get_last_l2cap_ptr
+	copy rega,pdata
+	istore 2,contr
+	increase 4,rega
+	call le_fifo_get_last_tx_ptr
+	copy rega,pdata
+	istore 1,contr
+	rtn
+
+
+le_get_search_handle_start_end_common:
+	rshift8 pdata,pdata
+	store 2,mem_le_search_handle_start
+	ifetch 2,contr
+	store 2,mem_le_search_handle_end
+	rtn
+
+le_get_search_max_mtu_data:
+	fetch 2,mem_le_remote_mtu
+	increase -2,pdata
+	//-2原因
+	//uint8_t attribute opcode
+	//uint8_t length
+	fetcht 2,mem_le_local_mtu
+	increase -2,temp
+	call not_greater_than
+	arg 240,temp
+	call not_greater_than
+	//pdata is max mtu size
+	rtn
+
+le_get_search_att_type:
+	call store_contr
+	arg mem_le_search_att_type_length,contw
+le_get_search_common:	
+	fetch 2,mem_le_l2cap_size
+	increase -5,pdata
+le_get_search_common2:		
+	istore 1,contw
+	copy pdata,loopcnt
+	call get_contr
+	branch memcpy_fast	
+
+
+
+le_parse_writing_attribute_start:
+	fetch 2,mem_le_rxbuf_data_att_cid//CID
+	rtnne LE_L2CAP_CID_ATT
+	fetch 1,mem_le_l2cap_att_states
+	set1 BLE_L2CAP_DEAL_WITH_CONTINUE_PACKET,pdata
+	store 1,mem_le_l2cap_att_states
+	fetch 3,mem_le_rxbuf_data_att_opcode
+	store 3,mem_le_att_opcode
+	set1 mark_old_packet,mark
+	beq ATTOP_WRITE_REQUEST,le_parse_attribute_write_request
+	beq ATTOP_WRITE_COMMAND,le_parse_attribute_write_command
+	beq ATTOP_EXECUTE_WRITE_REQUEST,le_parse_att_execute_write_request
+	beq ATTOP_EXCHANGE_MTU_REQUEST,le_parse_att_exchange_mtu_request
+	beq ATTOP_HANDLE_VALUE_CONFIRMATION,le_parse_handle_value_confirmation
+	set0 mark_old_packet,mark
+le_clear_l2cap_att_states_deal_with_contiune_packet:
+	fetch 1,mem_le_l2cap_att_states
+	set0 BLE_L2CAP_DEAL_WITH_CONTINUE_PACKET,pdata
+	store 1,mem_le_l2cap_att_states
+	rtn
+
+le_parse_writing_attribute_continue:
+	fetch 1,mem_le_l2cap_att_states
+	rtnbit0 BLE_L2CAP_DEAL_WITH_CONTINUE_PACKET
+	set1 mark_old_packet,mark
+	call le_parse_l2cap_continue_common
+	call le_parse_attribute_check_complete_packet
+	call le_clear_l2cap_att_states_deal_with_contiune_packet,user
+	fetch 1,mem_le_att_opcode
+	beq ATTOP_WRITE_REQUEST,le_send_att_write_response_check_auth
+	rtn
+
+
+le_parse_attribute_write_request:
+	call le_parse_attribute_write_command
+	branch le_send_attribute_write_response_check_auth
+
+le_send_attribute_write_response_check_auth:
+	call le_parse_attribute_check_complete_packet
+	nrtn user
+	branch le_send_att_write_response_check_auth
+
+
+le_parse_attribute_write_command:
+	call le_parse_attribute_check_complete_packet_init
+	arg mem_le_rxbuf_data_att_write_payload,rega
+	branch le_writeatt_cb
+
+
+le_parse_attribute_check_complete_packet_init:
+	fetch 1,mem_le_rxbuf_data_att_write_length
+	add pdata,-7,regb
+	increase -4,pdata
+	store 2,mem_le_packet_len_recved	//payload length
+	fetcht 2,mem_le_rxbuf_data_att_write_l2cap_length	//l2cap length
+	storet 2,mem_le_l2cap_size
+	rtn
+
+
+le_parse_l2cap_continue_common:
+	fetchr regb,1,mem_le_rxbuf_data_continue_length
+	fetch 2,mem_le_packet_len_recved
+	iadd regb,temp
+	storet 2,mem_le_packet_len_recved
+	arg mem_le_rxbuf_data_continue_payload,rega
+	branch le_writeatt_cb
+
+
+//enable user,recevie complete packet
+le_parse_attribute_check_complete_packet:
+	call disable_user
+	fetch 2,mem_le_packet_len_recved
+	fetcht 2,mem_le_l2cap_size
+	isub temp,null
+	nrtn zero
+	branch enable_user
+
Index: program/ble_protocol_stack/le_l2cap_att_wechat.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_l2cap_att_wechat.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_l2cap_att_wechat.prog	(working copy)
@@ -0,0 +1,276 @@
+
+ifdef COMPILE_WECHAT
+
+/*
+	function name:le_l2cap_att_receive_data_check_wechat_air_sync_protocol
+	依据微信蓝牙外设协议1.0.4
+	输入:
+		rega is le rx data address
+		regb is le rx data length
+		mem_le_att_handle is write handle
+	输出:
+		user enable 是微信协议
+		disable不是微信协议
+*/
+le_l2cap_att_receive_data_check_wechat_air_sync_protocol:
+	call enable_user
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	arg le_l2cap_att_receive_data_deal_wechat_air_sync_protocol,regc
+	branch wechat_air_sync_calc_function
+le_l2cap_att_receive_data_deal_wechat_air_sync_protocol:
+	fetcht 2,mem_le_att_handle
+	fetch 1,mem_wechat_indication_handle
+	pincrease 1
+	isub temp,null
+	branch wechat_air_sync_enable_indicate_chara,zero
+	fetch 1,mem_wechat_write_handle
+	isub temp,null
+	branch wechat_air_sync_receive_wechat_data,zero
+	branch disable_user
+	
+wechat_air_sync_enable_indicate_chara:
+	call wechat_air_sync_reset_nSeq
+wechat_air_sync_send_request_auth:
+	call wechat_air_sync_init_authreq_base_request
+	arg mem_wechat_authreq_base_request,rega
+	arg ECI_REQ_AUTH_MESSAGE_LENGTH,loopcnt
+	arg ECI_REQ_AUTH,temp
+	branch wechat_air_sync_send_message
+
+wechat_air_sync_receive_wechat_data:
+	fetch 1,mem_wechat_receive_push_data
+	beq 1,wechat_air_sync_receive_wechat_data_contiune_packet
+	ifetch 2,rega
+	arg WECHAT_RX_HEAD,temp
+	isub temp,null
+	branch wechat_air_sync_receive_wechat_data_head_packet,zero
+wechat_air_sync_receive_wechat_data_contiune_packet:
+	fetch 2,mem_wechat_rx_len
+	iadd regb,pdata
+	store 2,mem_wechat_rx_len	
+	fetch 2,mem_wechat_rx_address
+	copy pdata,contw
+	copy rega,contr
+	copy regb,loopcnt
+	call memcpy_fast
+	copy contw,pdata
+	store 2,mem_wechat_rx_address
+	branch wechat_air_sync_receive_wechat_packet_complete
+
+
+wechat_air_sync_receive_wechat_data_head_packet:
+	fetch 2,mem_wechat_rx_buffer_ptr
+	copy pdata,contw
+	copy rega,contr
+	copy regb,loopcnt
+	call memcpy_fast
+	copy contw,pdata
+	store 2,mem_wechat_rx_address
+	storer regb,2,mem_wechat_rx_len
+	fetchr regc,2,mem_wechat_rx_buffer_ptr
+	add regc,WECHAT_PROTOCOL_MESSAGE_N_CMD_ID,contr
+	ifetch 2,contr
+	arg ECI_PUSH_RECEIVE_DATA,temp
+	isub temp,null
+	call wechat_air_sync_receive_wechat_push_data,zero
+	branch wechat_air_sync_receive_wechat_packet_complete
+
+wechat_air_sync_receive_wechat_push_data:
+	jam 1,mem_wechat_receive_push_data
+	rtn
+
+wechat_air_sync_receive_wechat_packet_complete:
+	fetch 2,mem_wechat_rx_len
+	fetchr regc,2,mem_wechat_rx_buffer_ptr
+	add regc,WECHAT_PROTOCOL_MESSAGE_N_LENGTH,contr
+	ifetcht 2,contr
+	byteswap temp,temp
+	isub temp,null
+	nrtn positive
+	jam 0,mem_wechat_receive_push_data
+	fetchr regc,2,mem_wechat_rx_buffer_ptr
+	add regc,WECHAT_PROTOCOL_MESSAGE_N_CMD_ID,contr
+	ifetch 2,contr
+	arg ECI_RESPONSE_AUTH,temp
+	isub temp,null
+	branch wechat_air_sync_receive_wechat_data_auth_respone,zero
+	arg ECI_PUSH_RECEIVE_DATA,temp
+	isub temp,null
+	branch wechat_air_sync_receive_wechat_data_push_receive_data,zero
+	rtn
+
+wechat_air_sync_receive_wechat_data_auth_respone:
+wechat_air_sync_wechat_send_request_init:
+	call wechat_air_sync_init_authreq_base_request
+	arg mem_wechat_initreq_base_request,rega
+	arg ECI_REQ_INIT_MESSAGE_LENGTH,loopcnt
+	arg ECI_REQ_INIT,temp
+	branch wechat_air_sync_send_message
+
+
+//接收数据的回调，可以使用wechat_air_sync_check_push_data_struct解析函数
+wechat_air_sync_receive_wechat_data_push_receive_data:
+
+	fetch 2,mem_wechat_rx_push_data_cb
+	branch callback_func
+
+/*
+数据解析默认函数，不能保证全部数据格式都能解析
+输出:disable user is no data
+	loopcnt is data length
+	contr is data ptr
+*/
+wechat_air_sync_check_push_data_struct:
+	call disable_user
+	fetchr regc,2,mem_wechat_rx_buffer_ptr
+	add regc,WECHAT_PROTOCOL_MESSAGE_PAYLOAD,contr
+	ifetch 2,contr
+	rtnne TAG_RecvDataPush_BasePush
+	ifetch 1,contr
+	rtnne TAG_RecvDataPush_Data
+	ifetch 1,contr
+	rtn blank
+	copy pdata,loopcnt
+	copy contr,regc
+	branch enable_user
+
+
+wechat_air_sync_send_message:
+	call enable_user2
+wechat_air_sync_send_message_without_payload:
+	fetch 2,mem_wechat_tx_buffer_ptr
+	store 2,mem_wechat_tx_address
+	copy pdata,contw
+	setarg WECHAT_HEAD_MAGIC_NUMBER
+	istore 1,contw			//bMagicNumber
+	setarg WECAHT_HEAD_VERSION
+	istore 1,contw			//bVer
+	add loopcnt,8,regd	//nLength
+	byteswap regd,pdata
+	istore 2,contw			//nLength
+	istoret 2,contw			//nCmdId
+	fetcht 2,mem_wechat_tx_nSeq
+	istoret 2,contw			//Tx nSeq
+	copy contw,regc
+	copy rega,contr
+	call memcpy_fast,user2
+	storer regd,2,mem_wechat_tx_len
+	branch wechat_air_sync_update_nSeq
+	
+wechat_air_sync_update_nSeq:
+	byteswap temp,pdata
+	pincrease 1
+	byteswap pdata,pdata
+	nbranch wechat_air_sync_store_nSeq,blank
+wechat_air_sync_reset_nSeq:
+	setarg 0x0100
+wechat_air_sync_store_nSeq:
+	store 2,mem_wechat_tx_nSeq
+	rtn
+
+
+wechat_air_sync_init_authreq_base_request:
+	setarg 0x000a
+	store 2,mem_wechat_authreq_base_request
+	setarg 0x048084
+	lshift8 pdata,pdata
+	or pdata,0x18,pdata
+	store 4,mem_wechat_authreq_protocol_version
+	setarg 0x0120
+	store 2,mem_wechat_authreq_auth_protocol
+	setarg 0x0228
+	store 2,mem_wechat_authreq_eam_mac_no_encrypt
+	setarg 0x063a
+	store 2,mem_wechat_authreq_mac_address
+	fetch 6,mem_le_lap
+	call inverse_data_6Byte
+	store 6,mem_wechat_authreq_device_address
+	rtn
+
+wechat_air_sync_ble_transmit_wechat_message:
+	fetch 1,mem_le_l2cap_att_states
+	rtnbit1 BLE_L2CAP_RECV_CONFIRMATION_PACKET
+	call le_fifo_check_nearly_full
+	nrtn blank				//no fifo
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	arg wechat_air_sync_ble_send_wechat_message,regc
+	branch wechat_air_sync_calc_function
+
+wechat_air_sync_ble_send_wechat_message:
+	call module_get_le_remote_mtu
+	fetch 2,mem_wechat_tx_len
+	rtn blank
+	add temp,-3,pdata		//sub handle and opcode
+	fetcht 2,mem_wechat_tx_len
+	call not_greater_than
+	copy pdata,rega
+	copy temp,pdata
+	isub rega,pdata
+	store 2,mem_wechat_tx_len
+	fetcht 1,mem_wechat_indication_handle
+	call le_att_malloc_tx_indication
+	fetch 2,mem_wechat_tx_address
+	copy pdata,contr
+	copy rega,loopcnt
+	call memcpy_fast
+	copy contr,pdata
+	store 2,mem_wechat_tx_address
+	rtn
+
+
+wechat_air_sync_calc_function:
+	call wechat_air_sync_load_in_local_buffer
+	copy regc,pdata
+	call callback_func
+	branch wechat_air_sync_store_in_global_buffer
+
+
+wechat_air_sync_load_in_local_buffer:
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	copy pdata,contr
+	arg WECHAT_AIR_SYNC_STRUCT_SIZE,loopcnt
+	arg mem_wechat_indication_handle,contw
+	branch memcpy_fast
+
+wechat_air_sync_store_in_global_buffer:
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	copy pdata,contw
+	arg WECHAT_AIR_SYNC_STRUCT_SIZE,loopcnt
+	arg mem_wechat_indication_handle,contr
+	branch memcpy_fast
+
+
+//input:rega is data ptr
+//regb is data length
+wechat_air_sync_send_wechat_packet:
+	call enable_user
+	fetch 2,mem_le_wechat_air_sync_ptr
+	rtn blank
+	arg wechat_air_sync_send_wechat_packet_cb,regc
+	branch wechat_air_sync_calc_function
+
+wechat_air_sync_send_wechat_packet_cb:
+	fetch 2,mem_wechat_tx_len
+	nrtn blank
+	call disable_user
+	call disable_user2
+	add regb,6,loopcnt
+	arg ECI_REQ_SEND_DATA,temp
+	call wechat_air_sync_send_message_without_payload
+	copy regc,contw
+	setarg 0x12000a
+	istore 3,contw
+	istorer regb,1,contw
+	copy rega,contr
+	copy regb,loopcnt
+	call memcpy_fast
+	setarg 0x0018
+	istore 2,contw
+	rtn
+
+endif
+
Index: program/ble_protocol_stack/le_l2cap_signalling.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_l2cap_signalling.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_l2cap_signalling.prog	(working copy)
@@ -0,0 +1,54 @@
+
+
+le_parse_signaling:
+	ifetch 1,contr
+	ifetcht 1,contr //id
+	ifetcht 2,contr //length
+	beq L2CAP_CONNECTION_PARAMETER_UPDATE_RESPONSE,le_l2cap_parse_conn_parameter_update_rsp
+	rtn
+le_l2cap_parse_conn_parameter_update_rsp:
+	ifetch 2,contr	//result
+	store 2,mem_le_l2cap_signaling_conn_param_update_rsp_result
+	jam BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+//mem_le_interval_min:the ptr that connection parameter,
+//include 	ConnIntervalMin,ConnIntervalMax,
+//		ConnSlaveLatency,ConnSupervisionTimeout
+le_l2cap_tx_update_req:
+	arg 0x0c,rega
+	arg L2CAP_CONNECTION_PARAMETER_UPDATE_REQUEST,regc
+	call le_fifo_malloc_tx_l2cap_signaling
+	setarg 0x08
+	istore 2,contw
+	fetch 8,mem_le_interval_min
+	istore 8,contw
+	rtn
+
+
+//rega:len regc:signaling opcode
+le_fifo_malloc_tx_l2cap_signaling:
+	call le_l2cap_update_signaling_identifier
+	arg LE_L2CAP_CID_SIGNAL,regb
+	call le_fifo_malloc_tx_l2cap
+	copy regc,pdata
+	istore 1,contw
+	fetch 1,mem_le_signaling_identifier
+	istore 1,contw
+	rtn
+
+
+le_l2cap_update_signaling_identifier:
+	fetch 1,mem_le_signaling_identifier
+	//beq 0xff,le_l2cap_signaling_identifier_set_1
+	pincrease 1
+	store 1,mem_le_signaling_identifier
+	rtnne 0
+	
+le_l2cap_reset_signaling_identifier:
+	jam 1,mem_le_signaling_identifier
+	rtn
+
+
+
Index: program/ble_protocol_stack/le_l2cap_smp.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_l2cap_smp.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_l2cap_smp.prog	(working copy)
@@ -0,0 +1,611 @@
+
+le_pairing_mode_init:
+	fetch  1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_NONE, le_set_no_pairing
+	beq LE_PAIRING_MODE_LAGACY_JUSTWORK,le_set_pairing_mode_lagacy_just_work
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY,le_set_pairing_mode_lagacy_passkey
+ifdef SECURE_CONNECTION
+	beq LE_PAIRING_MODE_SECURE_CONNECT_JUSTWORK,le_set_pairing_mode_secure_justwork
+	beq LE_PAIRING_MODE_SECURE_CONNECT_NUMERIC,le_set_pairing_mode_secure_numeric
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,le_set_pairing_mode_secure_passkey
+endif
+	rtn
+
+ifdef SECURE_CONNECTION	
+le_set_pairing_mode_secure_justwork:
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch le_set_noinputnooutput
+le_set_pairing_mode_secure_numeric:
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	jam FLAG_IOCAP_DISPLAYYESNO,mem_le_pres_iocap
+	rtn
+le_set_pairing_mode_secure_passkey:	
+	jam FLAG_LE_BONDING_MITM_SECURE,mem_le_pres_auth
+	branch le_set_displayonly
+endif
+le_set_no_pairing:
+	jam FLAG_LE_NO_BONDING_NO_MITM,mem_le_pres_auth
+le_set_noinputnooutput:	
+	jam FLAG_IOCAP_NOINPUTNOOUTPUT,mem_le_pres_iocap
+	rtn
+le_set_pairing_mode_lagacy_just_work:
+	jam FLAG_LE_BONDING_MITM,mem_le_pres_auth
+	branch le_set_noinputnooutput
+le_set_pairing_mode_lagacy_passkey:
+	jam FLAG_LE_BONDING_MITM,mem_le_pres_auth
+le_set_displayonly:	
+	jam FLAG_IOCAP_DISPLAYONLY,mem_le_pres_iocap
+	rtn
+
+	
+le_secure_connection_enable:
+	fetch 1,mem_secure_connections_enable
+	set1 SECURE_CONNECTIONS_LE_BIT,pdata
+	store 1,mem_secure_connections_enable
+	rtn
+	
+le_secure_connection_disable:
+	fetch 1,mem_secure_connections_enable
+	set0 SECURE_CONNECTIONS_LE_BIT,pdata
+	store 1,mem_secure_connections_enable
+	rtn
+
+le_parse_smp:
+	ifetch 1,contr
+	beq SMP_PAIRING_REQUEST,le_parse_smp_pairing_request
+//	beq SMP_PAIRING_RESPONSE,le_parse_smp_pairing_response
+	beq SMP_PAIRING_CONFIRM,le_parse_smp_pairing_confirm
+	beq SMP_PAIRING_RANDOM,le_parse_smp_pairing_random
+	beq SMP_PAIRING_FAILED,le_parse_smp_pairing_failed
+//	beq SMP_ENCRYPTION_INFORMATION,le_parse_smp_encryption_information
+	beq SMP_MASTER_IDENTIFICATION,le_parse_smp_master_identification
+	beq SMP_IDENTITY_INFORMATION,le_parse_smp_identity_information
+	beq SMP_IDENTITY_ADDRESS_INFORMATION,le_parse_smp_identity_address_information
+	beq SMP_SIGNING_INFORMATION,le_parse_smp_signing_information
+	beq SMP_SECURITY_REQUEST,le_parse_smp_security_request
+ifdef SECURE_CONNECTION
+	beq SMP_PAIRING_PUBLIC_KEY,le_parse_smp_public_key
+	beq SMP_PAIRING_DHKEY_CHECK,le_parse_smp_dhkey_check
+endif
+	rtn
+
+
+
+le_send_smp_security_request:
+	force 2,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_SECURITY_REQUEST
+	istore 1,contw
+	fetch 1,mem_le_pres_auth
+	istore 1,contw
+	rtn
+		
+le_parse_smp_pairing_request:
+	store 1,mem_le_preq
+	ifetch 6,contr
+	istore 6,contw
+	fetch 1,mem_le_pairing_mode
+	beq  LE_PAIRING_MODE_NONE,le_smp_pairing_fail_reason_not_support_pairing
+	call le_send_smp_pairing_response
+	fetch 1,mem_sc_only_mode
+	branch le_parse_smp_pairing_request2, blank
+	fetch 1,mem_le_preq_auth
+	bbit0  LE_AUTH_SECURE_CONNECTION_PAIRING_BIT,app_ble_disconnect
+	fetch 1,mem_le_pairing_mode
+	bbit0 LE_PAIRING_MODE_SECURE_CONNECT_BIT,app_ble_disconnect
+le_parse_smp_pairing_request2:	
+	jam FLAG_LE_PAIRING_RCV_PAIRING_REQ,mem_le_pairing_state
+	fetch 1,mem_le_preq_iocap
+	beq  FLAG_IOCAP_DISPlAYONLY,le_set_tk_0
+	beq  FLAG_IOCAP_DISPLAYYESNO,le_set_tk_0
+	beq  FLAG_IOCAP_NOINPUTNOOUTPUT,le_set_tk_0
+	fetch 1,mem_le_pairing_mode	
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY,le_parse_smp_pairing_req_passkey
+	rtneq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY
+le_set_tk_0:
+	arg 0,pdata
+	store 4,mem_le_tk
+	rtn
+
+le_parse_smp_pairing_req_passkey:
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_PASSKEY_FIXED_KEY,le_parse_smp_pairing_req_fixed_passkey
+le_genernate_tk:
+	arg mem_le_tk,rega
+	copy rega,contw
+	arg 3,loopcnt
+	call generate_random_loop
+	fetch 2,mem_le_tk + 2
+	and_into 0x7,pdata
+	store 2,mem_le_tk + 2
+le_parse_smp_pairing_req_fixed_passkey:
+	jam BT_EVT_LE_TK_GENERATE,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+
+le_send_smp_pairing_response:
+	force 7,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	fetch 7,mem_le_pres
+	istore 7,contw
+	rtn
+		
+
+le_parse_smp_pairing_confirm:
+ifdef SECURE_CONNECTION
+	jam FLAG_LE_PAIRING_RECEIVE_PAIRING_CONFIRM,mem_le_pairing_state
+	arg mem_le_rconfirm,contw
+	call memcpy16
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,le_parse_smp_pairing_confirm_secure_passkey
+	beq LE_PAIRING_MODE_LAGACY_PASSKEY_RES_INPUT,le_parse_smp_pairing_confirm_passkey_res_input
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,le_parse_smp_pairing_confirm_sc_passkey_res_input
+endif
+	branch le_send_smp_pairing_confirm
+ifdef SECURE_CONNECTION
+le_parse_smp_pairing_confirm_secure_passkey:
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_PASSKEY_WAIT_CONFIRM,mem_le_secure_connect_state	
+	rtn
+endif
+
+
+le_parse_smp_pairing_confirm_passkey_res_input:
+	jam BT_EVT_LE_GET_PASSKEY,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+le_parse_smp_pairing_confirm_sc_passkey_res_input:
+	fetch 4,mem_le_tk
+	branch le_parse_smp_pairing_confirm_passkey_res_input,blank
+	branch le_parse_smp_pairing_confirm_secure_passkey
+
+
+le_send_smp_pairing_confirm:
+	jam FLAG_LE_PAIRING_SEND_PAIRING_CONFIRM,mem_le_pairing_state
+ifdef SECURE_CONNECTION
+	fetch 1,mem_le_pairing_mode
+	bbit1 LE_PAIRING_MODE_SECURE_CONNECT_BIT,le_send_smp_pairing_confirm_sc
+endif
+	call generate_confirm
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_CONFIRM
+	istore 1,contw
+	branch  store_aes_result
+
+	
+ifdef SECURE_CONNECTION
+le_send_smp_pairing_confirm_sc:
+	arg mem_le_srand,contw	
+	call generate_random
+	call function_f4_cb
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_CONFIRM
+	istore 1,contw
+	branch  load_inverse_result
+
+endif
+
+	
+le_parse_smp_pairing_random:	
+ifdef SECURE_CONNECTION
+	copy contr,rega
+	fetch 1,mem_le_pairing_mode
+	bbit1 LE_PAIRING_MODE_SECURE_CONNECT_BIT,le_parse_smp_pairing_random_sc
+	copy rega,contr
+endif
+	call authenticate_rconfirm
+	branch le_parse_smp_pairing_random_success,zero
+le_send_pairing_confirm_value_failed:
+	jam PAIRING_FAILED_CONFIRM_VALUE_FAILED,mem_le_ll_pairing_fail_reason
+le_send_pairing_failed:
+	force 2,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_FAILED
+	istore 1,contw
+	fetch 1,mem_le_ll_pairing_fail_reason
+	istore 1,contw	
+le_parse_smp_pairing_failed:
+	force smp_pairing_timer,queue
+	call timer_stop
+	jam FLAG_LE_PAIRING_NULL,mem_le_pairing_state
+	jam BT_EVT_LE_PAIRING_FAIL,mem_fifo_temp
+	branch ui_ipc_send_event
+
+le_smp_pairing_fail_reason_not_support_pairing:
+	jam PAIRING_FAILED_PAIRING_NOT_SUPPORTED,mem_le_ll_pairing_fail_reason
+	branch le_send_pairing_failed
+	
+	
+ifdef SECURE_CONNECTION	
+le_parse_smp_pairing_random_sc:
+	arg mem_le_mrand,contw
+	copy rega,contr
+	call memcpy16	
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,le_parse_smp_pairing_random_sc_passkey
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,le_parse_smp_pairing_random_sc_passkey
+	call function_g2
+	call le_send_smp_pairing_random
+	fetch 1,mem_le_pairing_mode
+	rtnne LE_PAIRING_MODE_SECURE_CONNECT_NUMERIC
+	jam BT_EVT_LE_GKEY_GENERATE,mem_fifo_temp
+	branch ui_ipc_send_event	
+	
+le_parse_smp_pairing_random_sc_passkey:
+	call function_f4_ca
+	arg mem_AES_CMAC_temp,contw
+	call load_inverse_result	
+	arg mem_AES_CMAC_temp,rega
+	arg mem_le_rconfirm ,regb
+	arg 16,loopcnt
+	call string_compare
+	nbranch le_send_pairing_confirm_value_failed,zero
+	branch le_send_smp_pairing_random
+endif
+	
+le_parse_smp_pairing_random_success:
+	call generate_stk
+	jam BT_EVT_LE_PAIRING_SUCCESS,mem_fifo_temp
+	call ui_ipc_send_event
+	jam 1,mem_ltk_exists
+	jam FLAG_LE_PAIRING_AFTER_AUTH,mem_le_pairing_state
+	
+le_send_smp_pairing_random:
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_RANDOM
+	istore 1,contw
+	arg mem_le_srand,contr
+	branch memcpy16
+
+le_send_smp_encryption_information:
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_ENCRYPTION_INFORMATION
+	istore 1,contw
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_PAIRING_FIXED_LTK,le_send_fixed_ltk
+	arg mem_le_ltk,contr
+	branch memcpy16
+
+le_send_fixed_ltk:
+	arg mem_le_fixed_ltk,contr
+	branch memcpy16
+
+
+le_send_smp_master_identification:
+	arg mem_le_ediv,contw
+	force 10,loopcnt
+	call generate_random_loop
+	force 11,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_MASTER_IDENTIFICATION
+	istore 1,contw
+	fetch 2,mem_le_ediv
+	istore 2,contw
+	fetch 8,mem_le_rand
+	istore 8,contw
+	rtn
+
+le_send_smp_identity_information:
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_IDENTITY_INFORMATION
+	istore 1,contw
+	setarg 0
+	istore 8,contw
+	istore 8,contw
+	rtn
+	
+
+le_send_smp_identity_address_information:
+	force 8,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_IDENTITY_ADDRESS_INFORMATION
+	istore 1,contw
+	fetch 1,mem_le_conn_own_addr_type
+	istore 1,contw
+	fetch 6,mem_le_lap	
+	istore 6,contw
+	rtn	
+
+
+le_send_pairing_fail_unspecified_reason:
+	jam PAIRING_FAILED_UNSPECIFIED_REASON,mem_le_ll_pairing_fail_reason
+	branch le_send_pairing_failed
+
+le_check_init_key_distribution:
+	fetch 1,mem_le_pres_init_key_distribution
+	fetcht 1,mem_le_pres_init_key_distribution
+	iand temp,pdata
+	rtn	
+
+le_parse_smp_identity_information:
+	arg mem_le_irk,contw
+	call memcpy16
+	call le_check_init_key_distribution
+	isolate0 LE_INITATOR_IRK_BIT,pdata
+	branch le_send_pairing_fail_unspecified_reason,true
+	fetch 1,mem_device_option
+	rtnne dvc_op_module
+	call le_check_master_addr_type
+	nrtn user
+	branch app_ble_store_reconn_info
+
+//output:user is enable ,random addr type
+le_check_master_addr_type:
+	call disable_user
+	fetch 1,mem_le_conn_peer_addr_type
+	rtneq MASTER_PUBLIC_ADDR
+	fetch 1,mem_le_preq_init_key_distribution
+	rtnbit0 LE_INITATOR_IRK_BIT
+	branch enable_user
+
+le_parse_smp_identity_address_information:
+	call le_check_init_key_distribution
+	isolate0 LE_INITATOR_IRK_BIT,pdata
+	branch le_send_pairing_fail_unspecified_reason,true
+	rtn
+
+le_parse_smp_master_identification:
+le_parse_smp_signing_information:	
+le_parse_smp_security_request:
+	rtn
+	
+ifdef SECURE_CONNECTION
+le_parse_smp_public_key:
+	arg mem_le_pubkey_remote_x_256,contw	
+	call memcpy64
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_RECEIVE_PUBLIC_KEY,mem_le_secure_connect_state
+	rtn
+
+le_parse_smp_dhkey_check:
+	arg mem_sp_confirm_remote,contw
+	call memcpy16	
+	jam LE_SC_STAT_RECEIVE_DHKEY,mem_le_secure_connect_state
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	rtn	
+
+le_send_smp_pairing_public_key:
+	force 65,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_PUBLIC_KEY
+	istore 1,contw	
+	arg mem_sc_pubkey_local_x_256,contr
+	branch memcpy64
+	
+le_send_smp_pairing_dhkey_check:
+	call function_f6_eb	
+	force 17,rega
+	call le_fifo_malloc_tx_l2cap_smp
+	setarg SMP_PAIRING_DHKEY_CHECK
+	istore 1,contw
+	branch load_inverse_result
+	
+endif
+
+le_check_paring_time:
+	fetch 1,mem_le_pairing_state
+	rtneq FLAG_LE_PAIRING_END
+	arg FLAG_LE_PAIRING_RCV_PAIRING_REQ,temp
+	isub temp,null
+	nrtn positive
+	arg smp_pairing_timer,queue
+	call timer_check
+	nrtn blank
+	branch le_send_pairing_fail_unspecified_reason
+
+le_pairing_sm:
+	bpatchx patch3a_6,mem_patch3a
+	call le_fifo_check_nearly_full
+	nrtn blank	
+	fetch 1,mem_le_pairing_state
+	beq FLAG_LE_PAIRING_NULL,le_pairing_sm_null
+	beq FLAG_LE_PAIRING_START,le_pairing_sm_start
+	beq FLAG_LE_PAIRING_SEND_RECURITY_REQ,le_pairing_sm_send_sec_req
+	beq FLAG_LE_PAIRING_RCV_PAIRING_REQ,le_pairing_sm_rcv_pairing_req
+	beq FLAG_LE_PAIRING_AFTER_AUTH,le_pairing_sm_after_auth
+	beq FLAG_LE_PARING_SEND_ENC_INFORMATION,le_pairng_sm_send_enc_information
+	beq FLAG_LE_PARING_SEND_MASTER_IDENTIFICATION,le_pairng_sm_send_master_indentification
+	beq FLAG_LE_PARING_SEND_INDENTITY_INFORMATION,le_pairng_sm_send_indentity_information
+	rtn
+
+le_pairing_sm_null:
+le_pairing_sm_send_sec_req:
+	fetch 1,mem_le_enc_state
+	rtnne FLAG_LE_SEND_START_ENC_RSP
+	jam FLAG_LE_ENC_END,mem_le_enc_state
+	jam FLAG_LE_PAIRING_END,mem_le_pairing_state
+	jam BT_EVT_LE_RECONNECT_COMPLETE ,mem_fifo_temp
+	branch ui_ipc_send_event	
+	
+	
+le_pairing_sm_start:
+	jam FLAG_LE_PAIRING_SEND_RECURITY_REQ,mem_le_pairing_state
+	branch le_send_smp_security_request
+
+le_pairing_sm_rcv_pairing_req:
+	jam FLAG_LE_PAIRING_WAIT_STK_GENERATION,mem_le_pairing_state
+	setarg TIMER_SMP_PAIRING_TIMEOUT
+	arg smp_pairing_timer,queue
+	branch timer_init
+	
+le_pairing_sm_after_auth:
+	fetch 1,mem_le_enc_state
+	beq FLAG_LE_SEND_START_ENC_RSP,le_pairing_sm_after_auth_start_enc
+	rtn
+	
+le_pairing_sm_after_auth_start_enc:
+	fetch 1,mem_le_pairing_mode
+	bbit1 LE_PAIRING_MODE_SECURE_CONNECT_BIT,le_pairing_sm_after_auth_start_enc_sc
+
+	jam FLAG_LE_PARING_SEND_ENC_INFORMATION,mem_le_pairing_state
+	call le_send_smp_encryption_information
+le_pairing_sm_after_auth_start_enc_common:
+	jam BT_EVT_LE_ENC_INFO,mem_fifo_temp
+	call ui_ipc_send_event
+	fetch 1,mem_device_option
+	rtnne dvc_op_module
+	call le_check_master_addr_type
+	rtn user
+	branch app_ble_store_reconn_info
+
+le_pairing_sm_after_auth_start_enc_sc:
+	jam FLAG_LE_PARING_SEND_MASTER_IDENTIFICATION,mem_le_pairing_state
+	branch le_pairing_sm_after_auth_start_enc_common
+
+le_pairng_sm_send_enc_information:	
+	jam FLAG_LE_PARING_SEND_MASTER_IDENTIFICATION,mem_le_pairing_state
+	branch le_send_smp_master_identification
+
+le_pairng_sm_send_master_indentification:	
+	fetch 1,mem_le_preq_resp_key_distribution
+	fetcht 1,mem_le_pres_resp_key_distribution
+	iand temp,pdata
+	isolate0 LE_INITATOR_IRK_BIT,pdata
+	branch le_parse_start_enc_rsp_after_auth_end,true
+	jam FLAG_LE_PARING_SEND_INDENTITY_INFORMATION,mem_le_pairing_state
+	branch le_send_smp_identity_information
+
+le_pairng_sm_send_indentity_information:		
+	call le_send_smp_identity_address_information
+	branch le_parse_start_enc_rsp_after_auth_end
+
+
+le_parse_start_enc_rsp_after_auth_end:
+	force smp_pairing_timer,queue
+	call timer_stop
+	jam FLAG_LE_ENC_END,mem_le_enc_state
+	jam FLAG_LE_PAIRING_END,mem_le_pairing_state
+	jam BT_EVT_LE_PAIRING_COMPLETE ,mem_fifo_temp
+	branch ui_ipc_send_event	
+	
+
+ifdef SECURE_CONNECTION
+
+le_secure_connect_sm:
+	bpatchx patch3a_7,mem_patch3a
+	fetch 1,mem_le_pairing_mode
+	rtnbit0 LE_PAIRING_MODE_SECURE_CONNECT_BIT
+	fetch 1,mem_le_secure_connect_flag
+	rtnne LE_SP_FLAG_COMMIT_256
+	jam SP_FLAG_STANDBY,mem_le_secure_connect_flag
+	fetch 1,mem_le_secure_connect_state
+	beq  LE_SC_STAT_RECEIVE_PUBLIC_KEY,le_sc_sm_receive_public_key
+	beq LE_SC_STAT_WAIT_SEND_PUBLIC_KEY,le_sc_sm_wait_send_public_key
+	beq LE_SC_STAT_SEND_PUBLIC_KEY,le_sc_sm_send_public_key
+	beq LE_SC_STAT_RECEIVE_DHKEY,le_sc_sm_receive_dhkey
+	beq LE_SC_STAT_WAIT_CONFIRM_GKEY,le_sc_sm_wait_confirm_gkey
+	beq  LE_SC_STAT_PASSKEY_WAIT_CONFIRM,le_sc_sm_passkey_wait_confirm
+	rtn	
+
+le_sc_state_clear:
+	jam SP_FLAG_STANDBY,mem_le_secure_connect_flag
+	jam LE_SC_STAT_NULL,mem_le_secure_connect_state
+	jam FLAG_LE_SC_CONFRIM_NULL,mem_le_sc_confirm_gkey_flag
+	rtn
+	
+le_sc_sm_passkey_wait_confirm:
+	fetch 1,mem_authentication_passkey_times
+	copy pdata,queue
+	increase 1,pdata
+	store 1,mem_authentication_passkey_times
+	fetch 4,mem_le_tk
+	qisolate1 pdata
+	setarg 0x80
+	setflag true,0,pdata
+	store 1,mem_passkey_1bit
+	branch le_sc_sm_ready_send_pairing_confirm
+	
+le_sc_sm_wait_confirm_gkey:
+	fetch 1,mem_le_sc_confirm_gkey_flag
+	jam FLAG_LE_SC_CONFRIM_NULL,mem_le_sc_confirm_gkey_flag
+	beq FLAG_LE_SC_CONFRIM_GKEY_OK,le_sc_confirm_gkey_ok
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	rtn
+	
+le_sc_confirm_gkey_ok:
+	jam BT_EVT_LE_PAIRING_SUCCESS,mem_fifo_temp
+	call ui_ipc_send_event	
+	jam FLAG_LE_PAIRING_AFTER_AUTH,mem_le_pairing_state
+	branch le_send_smp_pairing_dhkey_check
+
+le_sc_sm_receive_dhkey:
+	fetch 1,mem_sp_dhkey_invalid
+	beq SP_KEY_VALID_256,le_dhkey_ready
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	rtn
+
+le_dhkey_ready:
+	call function_f5
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY ,le_dhkey_ready_common
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT ,le_dhkey_ready_common
+	call le_set_tk_0 
+le_dhkey_ready_common:
+	call function_f6_ea
+	arg mem_AES_CMAC_temp,rega
+	arg mem_sp_confirm_remote ,regb
+	arg 16,loopcnt
+	call string_compare
+	branch le_dhkey_check_ok,zero
+le_dhkey_check_fail:	
+	jam PAIRING_FAILED_DHKEY_CHECK_FAILED,mem_le_ll_pairing_fail_reason
+	branch le_send_pairing_failed
+
+	
+le_dhkey_check_ok:
+	call sp_calc_check_publickey_256
+	nbranch le_dhkey_check_fail,zero
+	jam 1,mem_ltk_exists
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_JUSTWORK,le_sc_confirm_gkey_ok
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY ,le_sc_confirm_gkey_ok	
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT ,le_sc_confirm_gkey_ok	
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_WAIT_CONFIRM_GKEY,mem_le_secure_connect_state	
+	rtn	
+
+le_sc_sm_send_public_key:
+	fetch 1,mem_le_pairing_mode
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY,le_sc_sm_send_public_key_passkey
+	beq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT,le_sc_sm_send_public_key_passkey
+	jam 0,mem_passkey_1bit
+le_sc_sm_ready_send_pairing_confirm:
+	branch le_send_smp_pairing_confirm
+
+le_sc_sm_send_public_key_passkey:
+	jam 0,mem_authentication_passkey_times
+	rtneq LE_PAIRING_MODE_SECURE_CONNECT_PASSKEY_RES_INPUT
+	branch le_parse_smp_pairing_req_passkey
+
+	
+le_sc_sm_receive_public_key:
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	fetch 1,mem_sc_local_key_invalid
+	beq SP_KEY_VALID_256,le_public_key_ready
+	rtn
+	
+le_public_key_ready:
+	jam LE_SC_STAT_WAIT_SEND_PUBLIC_KEY,mem_le_secure_connect_state	
+	jam SP_KEY_INVALID,mem_sp_dhkey_invalid
+	branch sp_dhkey_calc_256	
+
+le_sc_sm_wait_send_public_key:
+	jam LE_SP_FLAG_COMMIT_256,mem_le_secure_connect_flag
+	jam LE_SC_STAT_SEND_PUBLIC_KEY,mem_le_secure_connect_state
+	branch le_send_smp_pairing_public_key
+
+endif
+
+
+le_fifo_malloc_tx_l2cap_smp:
+	force LE_L2CAP_CID_SMP,regb
+	branch le_fifo_malloc_tx_l2cap
+
+
Index: program/ble_protocol_stack/le_ll.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_ll.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ble_protocol_stack/le_ll.prog	(working copy)
@@ -0,0 +1,339 @@
+
+le_parse_ll:
+	fetch 1,mem_le_rxbuf_data_ll_opcode
+	beq LL_CONNECTION_UPDATE_IND,le_parse_connection_update_ind
+	beq LL_CHANNEL_MAP_IND,le_parse_channel_map_ind
+	beq LL_TERMINATE_IND,le_parse_terminate_ind
+	beq LL_ENC_REQ,le_parse_enc_req
+	beq LL_ENC_RSP,le_parse_enc_rsp
+	beq LL_START_ENC_REQ,le_parse_start_enc_req
+	beq LL_START_ENC_RSP,le_parse_start_enc_rsp
+	beq LL_UNKNOWN_RSP,le_parse_unknown_rsp
+	beq LL_FEATURE_REQ,le_parse_feature_req
+	beq LL_FEATURE_RSP,le_parse_feature_rsp
+	beq LL_PAUSE_ENC_REQ,le_parse_pause_enc_req
+	beq LL_PAUSE_ENC_RSP,le_parse_pause_enc_rsp
+	beq LL_VERSION_IND,le_parse_version_ind
+	beq LL_REJECT_IND,le_parse_reject_ind
+	beq LL_PING_REQ,le_parse_ping_req
+	beq LL_PING_RSP,le_parse_ping_rsp
+	beq LL_LENGTH_REQ,le_parse_length_req
+	beq LL_LENGTH_RSP,le_parse_length_rsp
+	beq LL_PHY_REQ,le_parse_phy_req
+	beq LL_PHY_UPDATE_IND,le_parse_phy_update_ind
+	fetchr regc,1,mem_le_rxbuf_data_ll_opcode
+	branch le_send_unknown_rsp
+
+
+//LL Opcode:0x00
+le_parse_connection_update_ind:
+	ifetch 9,contr
+	store 9,mem_le_new_param
+	ifetch 2,contr
+	store 2,mem_le_instant
+	fetch 1,mem_le_state
+	set1 lestate_update_param,pdata
+	store 1,mem_le_state
+	rtn
+
+
+//LL Opcode:0x01
+le_parse_channel_map_ind:
+	ifetch 5,contr
+	store 5,mem_le_new_map
+	ifetch 2,contr
+	store 2,mem_le_instant
+le_update_map_enable:
+	fetch 1,mem_le_state
+	set1 lestate_update_map,pdata
+	store 1,mem_le_state
+	rtn
+
+
+//LL Opcode:0x02
+le_parse_terminate_ind:
+	setarg 20 // 200ms
+	store 2,mem_le_superto
+	store 2,mem_le_init_superto
+	rtn
+
+
+//LL Opcode:0x03
+le_parse_enc_req:
+	ifetch 8,contr
+	store 8,mem_le_rand
+	ifetch 2,contr
+	store 2,mem_le_ediv
+	ifetch 8,contr
+	store 8,mem_le_skdm
+	ifetch 4,contr
+	store 4,mem_ccm_ivm
+	call le_send_enc_rsp
+	bpatchx patch3b_0,mem_patch3b
+	fetch 1,mem_le_pairing_state
+	beq FLAG_LE_PAIRING_AFTER_AUTH,le_parse_enc_req_after_auth
+	fetch 1,mem_le_configuration
+	bbit1  BIT_BLE_PAIRING_FIXED_LTK,le_parse_enc_req_fixed_ltk
+	fetch 1,mem_nv_data_number
+	ncall load_device_list_mode_4,blank
+	fetch 1,mem_ltk_exists
+	beq 0,le_ltk_lost
+le_parse_enc_req_after_auth:
+	jam FLAG_LE_RCV_ENC_START,mem_le_enc_state
+	call  le_send_start_enc_req
+	branch generate_sk
+le_parse_enc_req_fixed_ltk:
+	jam 1,mem_ltk_exists
+	arg mem_le_fixed_ltk,contr
+	arg mem_le_ltk,contw
+	call memcpy16
+	branch le_parse_enc_req_after_auth
+le_ltk_lost:
+	bpatchx patch3b_1,mem_patch3b
+	jam FLAG_LE_ENC_NULL,mem_le_enc_state
+	jam FLAG_LE_ENC_NULL,mem_le_pairing_state
+	jam BT_EVT_LE_LTK_LOST,mem_fifo_temp
+	branch ui_ipc_send_event
+
+//LL Opcode:0x04
+le_parse_enc_rsp:
+	ifetch 8,contr
+	store 8,mem_le_skds
+	ifetch 4,contr
+	store 4,mem_ccm_ivs
+	branch generate_sk
+
+
+//LL Opcode:0x05
+le_parse_start_enc_req:
+	fetch 1,mem_le_state
+	set1 lestate_encryption,pdata
+	store 1,mem_le_state
+	rtn
+
+//LL Opcode:0x06
+le_parse_start_enc_rsp:
+	rtn master
+	jam BT_EVT_LE_START_ENC,mem_fifo_temp
+	call ui_ipc_send_event	
+	jam FLAG_LE_SEND_START_ENC_RSP,mem_le_enc_state
+	branch le_send_start_enc_rsp
+
+
+//LL Opcode:0x07
+le_parse_unknown_rsp:
+	rtn
+
+
+//LL Opcode:0x08
+le_parse_feature_req:
+	branch le_send_feature_rsp
+
+
+//LL Opcode:0x09
+le_parse_feature_rsp:
+	rtn
+
+
+//LL Opcode:0x0a
+le_parse_pause_enc_req:
+	jam FLAG_LE_ENC_PAUSE,mem_le_enc_state
+	call le_send_pause_enc_rsp	
+	jam BT_EVT_LE_PAUSE_ENC,mem_fifo_temp
+	branch ui_ipc_send_event	
+
+
+//LL Opcode:0x0b
+le_parse_pause_enc_rsp:
+	rtn
+
+
+//LL Opcode:0x0c
+le_parse_version_ind:
+	rtn master
+	branch le_send_version_ind
+
+
+//LL Opcode:0x0d
+le_parse_reject_ind:
+	rtn
+
+
+//LL Opcode:0x13
+le_parse_ping_req:
+	branch le_send_ping_rsp
+
+
+//LL Opcode:0x14
+le_parse_ping_rsp:
+	rtn
+
+
+le_parse_length_req:
+	call le_parse_length_rsp
+	branch le_send_data_length_res
+
+le_parse_length_rsp:
+	ifetch 8,contr
+	store 8,mem_remote_rx_max_octets
+	fetch 2,mem_remote_rx_max_octets
+	fetcht 2,mem_local_tx_max_octets
+	call not_greater_than
+	store 2,mem_remote_rx_max_octets
+	
+	fetch 2,mem_remote_tx_max_octets
+	fetcht 2,mem_local_rx_max_octets
+	call not_greater_than
+	store 2,mem_remote_tx_max_octets
+	rtn
+
+
+//LL Opcode:0x16
+le_parse_phy_req:
+	branch le_send_phy_rsp
+
+
+//LL Opcode:0x18
+le_parse_phy_update_ind:
+	ifetch 2,contr
+	store 2,mem_le_new_m2s_phy
+	ifetch 2,contr
+	store 2,mem_le_instant
+	rtn blank
+	fetch 1,mem_le_state
+	set1 lestate_update_phy,pdata
+	store 1,mem_le_state	
+	rtn
+
+
+///////////////////send ll packet//////////////
+//LL Opcode:0x02
+le_send_terminate_ind_user_terminated:
+	arg ERROR_REMOTE_USER_TERMINATED_CONNECTION,regc
+
+//regc:The ErrorCode field shall be set to inform the remote device why the connection is about to be terminated.
+le_send_terminate_ind:
+	arg 2,rega
+	arg LL_TERMINATE_IND,regb
+	call le_fifo_malloc_tx_ll
+	copy regc,pdata
+	istore 1,contw
+	rtn
+
+
+//LL Opcode:0x04
+le_send_enc_rsp:
+	arg mem_le_skds,contw
+	force 8,loopcnt
+	call generate_random_loop
+	arg mem_ccm_ivs,contw
+	force 4,loopcnt
+	call generate_random_loop
+	arg 13,rega
+	arg LL_ENC_RSP,regb
+	call le_fifo_malloc_tx_ll
+	fetch 8,mem_le_skds
+	istore 8,contw
+	fetch 4,mem_ccm_ivs
+	istore 4,contw
+	rtn
+
+
+//LL Opcode:0x05
+le_send_start_enc_req:
+	jam FLAG_LE_SEND_START_ENC_REQ,mem_le_enc_state
+	arg LL_START_ENC_REQ,regb
+	branch le_send_ll_one_lenth
+
+
+//LL Opcode:0x06
+le_send_start_enc_rsp:
+	arg LL_START_ENC_RSP,regb
+	branch le_send_ll_one_lenth
+
+
+//LL Opcode:0x07
+//input:regc is receive ll opcode
+le_send_unknown_rsp:
+	arg 2,rega
+	arg LL_UNKNOWN_RSP,regb
+	call le_fifo_malloc_tx_ll
+	istorer regc,1,contw
+	rtn	
+
+
+//LL Opcode:0x09
+le_send_feature_rsp:
+	arg 9,rega
+	arg LL_FEATURE_RSP,regb
+	call le_fifo_malloc_tx_ll
+	fetch 8,mem_le_local_feature
+	or pdata,FUN_LL_FEATURE_LE_ENCRYPTION,pdata
+	istore 8,contw
+	rtn
+
+
+//LL Opcode:0x0B
+le_send_pause_enc_rsp:
+	arg LL_PAUSE_ENC_RSP,regb
+	branch le_send_ll_one_lenth
+
+
+//LL Opcode:0x0C
+le_send_version_ind:
+	arg 6,rega
+	arg LL_VERSION_IND,regb
+	call le_fifo_malloc_tx_ll
+	fetch 5,mem_lmp_version
+	istore 5,contw
+	rtn
+
+//LL Opcode:0x0D
+le_send_reject_ind:
+	arg 2,rega
+	arg LL_REJECT_IND,regb
+	call le_fifo_malloc_tx_ll
+	setarg LE_ERR_PIN_OR_KEY_MISSING
+	istore 1,contw
+	rtn		
+
+
+//LL Opcode:0x13
+le_send_ping_rsp:
+	arg LL_PING_RSP,regb
+	branch le_send_ll_one_lenth
+	
+le_send_data_length_req:
+	arg LL_LENGTH_REQ,regb
+	branch le_send_data_length
+
+le_send_data_length_res:
+	arg LL_LENGTH_RSP,regb
+le_send_data_length:
+	arg 9,rega
+	call le_fifo_malloc_tx_ll
+	fetch 8,mem_local_rx_max_octets
+	istore 8,contw
+	rtn
+
+
+//LL Opcode:0x17
+le_send_phy_rsp:
+	arg 3,rega
+	arg LL_PHY_RSP,regb
+	call le_fifo_malloc_tx_ll
+	fetch 1,mem_le_tx_phys
+	and pdata,0x07,pdata
+	istore 1,contw
+	fetch 1,mem_le_rx_phys
+	and pdata,0x07,pdata
+	istore 1,contw
+	rtn		
+
+
+//regb:ll opcode
+le_send_ll_one_lenth:
+	arg 1,rega
+	branch le_fifo_malloc_tx_ll
+
+
Index: program/bt.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/bt.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/bt.prog	(working copy)
@@ -0,0 +1,4565 @@
+define FPGA
+define ROMCODE
+define PATCH
+//define RAM_VERSION
+//define CLK24M
+//define ACL_DEBUG
+define SECURE_CONNECTION
+define DEBUG_RF_INIT
+
+define SIMPLE_PAIRING
+define COMPILE_RFCOMM
+define COMPILE_SHUTTER
+define COMPILE_ANTILOST
+define COMPILE_MOUSE
+define COMPILE_MODULE
+define COMPILE_USB
+define COMPILE_DONGLE
+define COMPILE_LE
+define COMPILE_24G
+define COMPILE_CAR
+define COMPILE_REMOTE_CAR
+//define COMPILE_WECHAT
+//define COMPLIE_TEST
+//define COMPLIE_TEST_CODE
+INCLUDE "bt_format"
+
+org 0x0000		// start from patch ram address start
+ifdef SIM
+include sim.prog
+else
+include patch.prog
+endif
+
+/******************************************/
+/***********   ROM Start   ***************/
+/******************************************/
+
+org 0x800		// start from rom address start
+start:
+	call lpmstate
+
+soft_reset:
+	bpatch patch00_0,mem_patch00
+	clear_stack
+	call app_param_init
+	call initialize_radio
+	call iic_init_360khz
+	call init_param
+	call l2cap_init
+	bpatch patch00_1,mem_patch00
+	call rfcomm_init
+	call init_lmp
+	call ui_init
+	call app_init
+	bpatch patch00_2,mem_patch00
+	call app_lpm_init,wake
+ifdef SIMPLE_PAIRING
+	call publickey_init
+	call sp_wait_pubkey_calc_done
+else
+	call sp_reset
+ifdef SECURE_CONNECTION
+	call publickey_init
+endif
+endif
+	call lpm_recover_clk,wake
+main_loop:	
+	bpatch patch00_3,mem_patch00
+ifdef SIMPLE_PAIRING
+	call sp_calc_sequence
+endif
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256
+endif
+ifdef SIMPLE_PAIRING
+ifdef SECURE_CONNECTION
+	call sp_calc_sequence_256_check
+endif
+endif
+	call le_advertising_dispatch
+	call idle_dispatch
+	call app_process_idle
+	bpatch patch00_4,mem_patch00
+	call inquiry_dispatch
+	call inquiry_scan_dispatch
+	call page_scan_dispatch
+	call connection_dispatch
+	call g24_dispatch
+	call lpm_dispatch
+	branch main_loop
+
+connection_dispatch:
+	call connection_incontext
+	rtnmark0 mark_context
+	set0 mark_context,mark
+	call context_save
+	branch le_disable
+	
+connection_incontext:
+	bpatch patch00_5,mem_patch00
+	call context_search_insniff
+	nbranch connection_nosniff,zero
+	call context_load
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	bbit1 mode_le,le_conn_dispatch
+	bbit1 mode_master, master_dispatch
+	branch slave_dispatch
+connection_nosniff:
+	call context_get_next
+	copy loopcnt,null
+	rtn zero
+	call context_load
+	fetch 1,mem_state
+	bbit1 state_inpage,master_page
+	fetch 1,mem_mode
+	bbit1 mode_master, master_dispatch
+	branch slave_dispatch
+
+
+
+/**************************************/
+/**************idle dispatch*********/
+/**************************************/
+	
+idle_dispatch:
+	fetch 1,mem_hci_cmd
+	rtn blank
+	beq hci_cmd_inquiry,idle_inquiry
+	beq hci_cmd_inquiry_cancel,idle_inquiry_cancel
+	beq hci_cmd_remote_name_req,idle_remote_name_req
+	beq hci_cmd_create_conn,idle_create_conn
+	beq hci_cmd_le_create_conn,idle_le_create_conn
+	call context_search_conn_handle
+	rtn zero
+	call context_search_plap
+	rtn zero
+idle_exit:
+	jam 0,mem_hci_cmd
+	rtn
+
+idle_le_create_conn:
+	jam hci_cmd_le_create_conn,mem_cmd_le_create_conn
+	jam 0,mem_hci_cmd
+	rtn
+	
+idle_inquiry:
+	set1 mark_inquiry_on,mark
+	set0 mark_inquiry_trainb,mark
+	jam param_ninquiry,mem_ninqy_index
+	jam 31,mem_nfreq_index_inq
+	branch idle_exit
+
+idle_inquiry_cancel:
+	set0 mark_inquiry_on,mark
+	force 0,stop_watch
+	branch idle_exit
+
+idle_remote_name_req:
+	call context_search_plap
+	rtn zero
+	force LMP_NAME_REQ,temp
+	jam 5,mem_nameres_cnt
+	branch idle_start_page
+
+idle_create_conn:
+	bpatch patch00_6,mem_patch00
+idle_create_conn_device:
+	fetch 6,mem_hci_plap
+//	branch idle_exit,blank
+	nop 1
+	jam RECONNECT_HID,memui_reconnect_mode
+	//jam HS_INIT_CALL,mem_hs_mode //init as master
+	jam CONN_SM_WAIT_FEATURES_RES,mem_conn_sm
+	branch idle_create_conn_cont
+	
+idle_create_conn_cont:
+	force LMP_VERSION_REQ,temp
+idle_start_page:
+	bpatch patch00_7,mem_patch00
+	fetch 1,mem_page_mode
+	branch idle_page_mode_r0,blank
+	lshift3 pdata,pdata
+	lshift4 pdata,pdata
+	increase -1,pdata
+idle_page_mode_r0:
+	store 1,mem_npage
+	store 1,mem_npage_index
+	jam 31,mem_nfreq_index_page
+	set0 mark_page_trainb,mark
+	call context_new
+	nbranch idle_page_fail,zero
+	call get_free_amaddr
+	store 1,mem_amaddr
+	storet 1,mem_lmo_opcode2
+	fetch 6,mem_hci_plap
+	store 6,mem_plap
+	bpatch patch01_0,mem_patch01
+	call timer_reinit
+	fetcht 1,mem_lmo_opcode2
+	force 0,pdata
+	compare LMP_NAME_REQ,temp,0xff
+	nsetflag true,state_init_seq,pdata
+	set1 state_inpage,pdata
+	store 1,mem_state
+	jam BT_EVT_RECONN_STARTED,mem_fifo_temp
+	call ui_ipc_send_event
+	force 0,pdata
+	setflag true,smap_name_req,pdata
+	store 1,mem_state_map
+	setarg 0
+	set1 mode_master,pdata
+	store 1,mem_mode
+	enable master
+	call context_save
+	disable master
+	force page_length_timer,queue
+	fetch 2,mem_page_to
+	call timer_init
+	branch idle_exit
+idle_page_fail:
+	bpatch patch01_1,mem_patch01
+	fetch 6,mem_hci_plap
+	store 6,mem_plap
+	compare LMP_NAME_REQ,temp,0xff
+	branch idle_name_fail,true
+	branch idle_exit
+idle_name_fail:
+	arg mem_tmp_buffer,contw
+	arg 8,loopcnt
+	call memset0
+	jam BT_EVT_RECONN_FAILED,mem_fifo_temp
+	call ui_ipc_send_event
+	branch idle_exit
+	
+
+/******************************************/
+/**************  Inquiry  *****************/
+/******************************************/
+
+inquiry_dispatch:
+	rtnmark0 mark_inquiry_on
+	force inquiry_length_timer,queue
+	call timer_check
+	nsetflag blank,mark_inquiry_on,mark
+	nbranch inquiry_start,blank
+	rtn
+	
+
+
+inquiry_start:
+	bpatch patch01_2,mem_patch01
+	fetcht 2,mem_inq_window
+	force 4,queue
+	call sniff_check_window
+	rtn user
+	call afh_clear
+	force 0,freq_mode
+inquiry_restart:
+	rtn timeout
+	set0 mark_fhs_already_good,mark
+	set0 mark_fhs_eir,mark
+inquiry_rx_restart:
+	add clkn_bt,1,bt_clk
+	isolate1 mark_inquiry_trainb,mark
+	setflag true,2,freq_mode
+	compare 0x00,bt_clk,0x02      /* see if this is even slot */
+	nbranch inquiry_receive,true
+
+inquiry_transmit:
+	bpatch patch01_3,mem_patch01
+	fetch 1,mem_inquiry_transmit
+	increase 1,pdata
+	store 1,mem_inquiry_transmit
+	call fetch_giac
+	call tx_radio_freq
+	call fetch_diac
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_native
+	call send_access_word
+	call end_of_packet
+	call inquiry_check_train
+	branch inquiry_restart
+
+inquiry_check_train:
+	bpatch patch01_4,mem_patch01
+	fetch 1,mem_nfreq_index_inq
+	increase -1,pdata
+	store 1,mem_nfreq_index_inq
+	rtn positive  /* if it's time to incremnt N */
+	jam 31,mem_nfreq_index_inq
+	fetch 1,mem_ninqy_index
+	increase -1,pdata
+	store 1,mem_ninqy_index
+	rtn positive      /* if it's time to change train */
+	setflip mark_inquiry_trainb,mark
+	jam param_ninquiry,mem_ninqy_index
+	rtn
+
+inquiry_receive:
+	bpatch patch01_5,mem_patch01
+	call fetch_giac
+	call rx_radio_freq
+	call fetch_diac
+	call start_rx_native
+	call start_receiver	/* get ready for that id packet */
+	call wait_access_clkn_rt
+	branch inquiry_sync,sync   /* try look for id packet again if not found */
+	call inquiry_check_train
+	branch inquiry_rx_restart
+inquiry_sync:
+	bpatch patch01_6,mem_patch01
+	call save_rssi
+	call scan_mode_whiten
+	call receive_packet_whitened
+	set0 mark_rxbuf_inuse,mark
+	rtnmark0 mark_fhs_already_good
+inquiry_receive_rtn:
+inquiry_receive_eir_rtn:
+	fetch 1,mem_inquiry_rcv
+	increase 1,pdata
+	store 1,mem_inquiry_rcv
+	rtn
+		
+/******************************************/
+/**************  Master Dispatch  *************/
+/******************************************/
+
+
+
+master_page:
+	bpatch patch01_7,mem_patch01
+	enable master
+	enable clknt
+	fetch 2,mem_page_interval
+	branch master_page_no_interval,blank
+	force page_interval_timer,queue
+	call timer_check               
+	nrtn blank
+master_page_no_interval:
+	bpatch patch02_0,mem_patch02
+	fetcht 2,mem_page_window
+	force 40,queue
+	call sniff_check_window
+	branch page_exit,user
+	force page_length_timer,queue
+	call timer_check
+	nbranch page_start,blank
+	fetch 1,mem_state_map
+	bbit1 smap_name_req,master_npage_timeout
+	branch master_page_timeout
+master_npage_timeout:
+	arg mem_tmp_buffer,contw
+	arg 8,loopcnt
+	call memset0
+master_page_timeout:
+	bpatch patch02_1,mem_patch02
+	jam 0,mem_state
+	call init_lmp_work
+	jam 0,memui_reconnect_mode
+	jam BT_EVT_RECONN_PAGE_TIMEOUT,mem_fifo_temp
+	call ui_ipc_send_event	
+	branch page_exit
+
+page_start:
+	bpatch patch02_2,mem_patch02
+	force 0,timeup
+	until clkn_rt,meet
+	fetch 1,mem_page_clk
+	increase -1,pdata
+	ixor clkn_bt,pdata
+	compare 0,pdata,3
+	nbranch page_start,true
+	deposit am_addr
+	store 1,mem_fhs_am_addr
+	force 0,N_tx_slot
+	force 0,freq_mode
+
+page_restart:
+	bpatch patch02_3,mem_patch02
+	branch page_exit,timeout
+	call fetch_page_bt_adr
+	fetchr timeup,2,mem_param_rf_setup
+	until clkn_rt,meet         /* wait for the start_receiver time against native real clk  */
+page_rx_restart:
+	bpatch patch02_4,mem_patch02
+	fetch 4,mem_page_clk    /* deposit clk_estimate */
+	iforce bt_clk
+	increase 1,pdata
+	store 4,mem_page_clk
+	isolate1 mark_page_trainb,mark
+	setflag true,2,freq_mode
+	compare 0x00,bt_clk,0x02      /* see if this is even slot */
+	nbranch page_receive,true
+	fetch 1, mem_page_transmit
+	increase 1,pdata
+	store 1, mem_page_transmit
+	call tx_radio_freq
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_native
+	call send_access_word
+	call end_of_packet
+	call page_check_train
+	branch page_restart	
+page_exit:
+	bpatch patch02_5,mem_patch02
+	disable master
+	fetch 2,mem_page_interval      
+	rtn blank
+	force page_interval_timer,queue
+	branch timer_init              
+
+page_check_train:
+	bpatch patch02_6,mem_patch02
+	fetch 1,mem_nfreq_index_page
+	increase -1,pdata
+	store 1,mem_nfreq_index_page
+	rtn positive
+	jam 31,mem_nfreq_index_page
+	fetch 1,mem_npage_index
+	increase -1,pdata                 /* increment N */
+	store 1,mem_npage_index
+	rtn positive      			/* if it's time to change train */
+	setflip mark_page_trainb,mark             /* change train */
+	fetch 1,mem_npage
+	store 1,mem_npage_index
+	rtn
+	
+page_receive:
+	bpatch patch02_7,mem_patch02
+	call rx_radio_freq
+	call start_rx_native
+	call start_receiver	/* get ready for that id packet */
+	call wait_access_clkn_rt	/* try id look for id packet again */
+	branch page_sync,sync         /* restart if didn't receive anything */
+	call page_check_train
+	branch page_rx_restart
+page_sync:
+	call end_of_packet
+	fetch 1, mem_page_rcv
+	increase 1,pdata
+	store 1, mem_page_rcv
+	force 0,stop_watch
+	fetch 4,mem_page_clk
+page_send_fhs:
+	bpatch patch03_0,mem_patch03
+	call rf_setup_time_master_slot
+	call fetch_page_bt_adr
+	increase 1,N_tx_slot
+page_send_fhs_continue:
+	and_into 0x1fd,bt_clk
+	and_into 0x1fc,freq_mode               /* master response = x00, even_train settin must remain the same */
+	call tx_radio_freq
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_native
+	call send_access_word
+	deposit clkn_bt
+	store 4,mem_clkn_bt
+	force 0,am_addr
+	force type_fhs,type
+	call scan_mode_whiten
+	call transmit_packet_whitened
+page_wait_fhs_reply:
+	bpatch patch03_1,mem_patch03
+	call rf_setup_time_slave_slot
+	or_into 0x02,bt_clk
+	and_into 0x1fc,freq_mode               /* master response sequence = x00, even train setting must be preserved */
+	call rx_radio_freq
+	call start_rx_native
+	call start_receiver	/* get ready for that id packet */
+	call wait_access_clkn_rt	/* look for that reply */
+	call end_of_packet,sync              /* id reply is enough */
+	branch page_wait_fhs_reply_ok,sync           /* no reply then send fhs again */
+	fetch 1,mem_fhs_wait_counter
+	branch page_restart,blank
+	increase -1,pdata
+	store 1,mem_fhs_wait_counter
+	branch page_send_fhs
+	
+page_wait_fhs_reply_ok:
+	bpatch patch03_2,mem_patch03
+	fetch 1, mem_page_rcv_fhs
+	increase 1,pdata
+	store 1, mem_page_rcv_fhs
+	call prepare_newconn
+master_newconn_loop:
+	set1 mark_first_packet,mark
+	call master_newconn_once
+	branch newconn_poll_responded,sync
+	set0 mark_first_packet,mark
+	call new_conn_timeout
+	nbranch master_newconn_loop,blank
+	branch page_restart
+
+newconn_poll_responded:
+	bpatch patch03_3,mem_patch03
+	set0 mark_first_packet,mark
+	fetch 1,mem_state
+	set0 state_inpage,pdata
+	store 1,mem_state
+	call newconn_init
+	disable master
+	rtn
+	
+
+master_dispatch:
+	bpatch patch03_4,mem_patch03
+	enable master
+	enable clknt
+	call role_switch_master
+	rtn user
+	call rf_setup_time_master_slot
+	add clkn_bt,1,bt_clk
+	call fetch_self_bt_adr
+	force 0x03,freq_mode
+	call scheduler_tx_l2cap_pkt
+	call prepare_tx
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_native
+	call send_access_word
+	call transmit_packet
+master_loop:
+	bpatch patch03_5,mem_patch03
+	call parse_lmp
+	call master_conn_recv_packet
+	nbranch master_notmatch,match
+	call supervision_flush
+	call parse_l2cap
+	fetch 1,mem_master_rcvcnt
+	increase 1,pdata
+	store 1,mem_master_rcvcnt
+master_notmatch:
+	bpatch patch03_6,mem_patch03
+	call scheduler_process
+	call check_master_disconnect
+	nrtn master					/* disconnected */
+	call check_attempt
+	nbranch master_attempt,blank
+master_exit:
+	disable master
+	rtn
+
+master_attempt:
+	call prepare_tx
+	call master_conn_send_packet
+	branch master_loop
+
+
+check_master_disconnect:
+	branch check_master_match,match
+	call supervision_update
+	branch master_disconnect,positive
+check_master_match:
+	call check_disconnect_timeout
+	nbranch master_disconnect,user
+	fetch 1,mem_state_map
+	rtnbit0 smap_name_req
+	rtnbit1 smap_name_res
+	fetch 1,mem_op
+	rtnbit1 op_disconn
+	call conn_timer_expired
+	nrtn blank
+	fetch 1,mem_nameres_cnt
+	increase -1,pdata
+	store 1,mem_nameres_cnt
+	nrtn blank
+	branch lmp_disconnect
+
+master_disconnect:
+	bpatch patch03_7,mem_patch03
+	call quit_connection
+	disable master
+	fetch 1,mem_state_map
+	bbit1 smap_name_req,master_name_disconnect
+	rtn
+	
+master_name_disconnect:
+	fetch 1,mem_state_map
+	rtnbit1 smap_name_res
+master_name_error:
+	arg mem_tmp_buffer,contw
+	arg 8,loopcnt
+	branch memset0
+	
+check_disconnect_timeout:
+	bpatch patch04_0,mem_patch04
+	enable user
+	fetch 1,mem_op
+	rtnbit0 op_disconn
+	call conn_timer_expired
+	nrtn blank
+	branch disable_user
+
+conn_timer_expired:
+	fetch 1,mem_conn_timer
+	increase -1,pdata
+	store 1,mem_conn_timer
+	rtn
+
+linkkey_ready:
+	bpatch patch04_1,mem_patch04
+	fetch 1,mem_state
+	bbit1 state_linkkey,linkkey_set
+	fetch 1,mem_pairing_auth
+	branch linkkey_set,blank
+	jam DEFALT_PAIRING_AUTH,mem_pairing_auth
+	jam BT_EVT_LINKKEY_GENERATE,mem_fifo_temp
+	call ui_ipc_send_event
+	branch linkkey_set
+linkkey_set:
+	bpatch patch04_2,mem_patch04
+	call context_traverse_linkkey
+	fetch 1,mem_state
+	set1 state_linkkey,pdata
+	store 1,mem_state
+	jam 1,mem_link_key_exists
+	fetch 1,mem_conn_sm
+	bne CONN_SM_PAIRING,linkkey_set_continue
+linkkey_set_continue:
+	rtn
+
+generate_linkkey_continue:
+	jam PAIRING_AUTH,mem_pairing_auth
+clear_linkstate:
+	fetch 1,mem_state
+	set0 state_linkkey,pdata
+	store 1,mem_state
+	rtn
+	
+
+	/* rtn user if switch */
+role_switch_check:
+	bpatch patch04_3,mem_patch04
+	disable user
+	fetch 2,mem_tsniff
+	arg 0xffff,temp
+	isub temp,null
+	nrtn zero
+	fetch 4,mem_sniff_anchor
+	branch role_switch_clkn,clknt
+	isub clke_bt,pdata
+	branch role_switch_clke
+role_switch_clkn:
+	isub clkn_bt,pdata
+role_switch_clke:
+	sub pdata,4,null
+	nrtn positive
+	force 0,pdata
+	store 2,mem_tsniff
+	branch enable_user
+
+
+	/* pdata: switch instant, set tsniff=0 for special sniff */	
+role_switch_prepare:
+	copy pdata,temp
+	storet 4,mem_sniff_anchor
+role_switch_prepare0:
+	bpatch patch04_4,mem_patch04
+	jam SWITCH_FLAG_ACCEPT,mem_switch_flag
+	setarg 0xffff
+	store 2,mem_tsniff
+	jam 1,mem_sniff_attempt
+	rtn
+
+
+role_switch_master:
+	bpatch patch04_5,mem_patch04
+	call role_switch_check
+	nrtn user
+	disable user
+	jam param_newconnto,mem_newconnto_counter
+	set0 mark_fhs_already_good,mark
+	set0 mark_role_switch_receive_fhs,mark
+roles_waitfhs_loop:
+	call rf_setup_time_master_slot
+	call master_recv_packet
+	bmark1 mark_fhs_already_good,roles_replyto_fhs
+	call new_conn_timeout
+	nbranch roles_waitfhs_loop,blank
+	bmark1 mark_role_switch_receive_fhs,roles_replyto_fhs_rcvd
+role_switch_fail_master:
+	bpatch patch04_6,mem_patch04
+	disable user
+	deposit clkn_bt
+	store 4,mem_next_btclk
+	enable clknt
+	enable master
+	jam BT_EVT_SWITCH_FAIL_MASTER,mem_fifo_temp
+	branch ui_ipc_send_event
+	
+roles_replyto_fhs:
+	bpatch patch04_7,mem_patch04
+	call rf_setup_time_slave_slot
+	arg type_id,type
+	call master_send_packet
+	set1 mark_role_switch_receive_fhs,mark
+	set0 mark_fhs_already_good,mark
+	fetch 1,mem_amaddr
+	iforce am_addr	//use current LT_ADDR
+	jam 2,mem_newconnto_counter
+	branch roles_waitfhs_loop
+
+roles_replyto_fhs_rcvd:
+	fetch 4,mem_clke_bt		//wait for 2 fhs,need 2.5ms
+	pincrease 8
+	store 4,mem_clke_bt
+	disable clknt
+	disable master
+	call apply_switch_clke
+	call prepare_newconn
+roles_newconns_loop:
+	bpatch patch05_0,mem_patch05
+	call slave_newconn_once
+	branch roles_newconns_responded,match
+	call new_conn_timeout
+	nbranch roles_newconns_loop,blank
+	branch role_switch_fail_master
+roles_newconns_responded:
+	fetch 1,mem_mode
+	set0 mode_master,pdata
+	store 1,mem_mode
+	call supervision_flush
+	call calc_clke_offset
+	enable user
+	jam BT_EVT_SWITCH_SUCCESS_MASTER,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+
+
+context_load:
+	bpatch patch05_1,mem_patch05
+	set1 mark_context,mark
+	deposit rega
+	store 2,mem_context_ptr
+	force context_size,loopcnt
+	arg mem_le_state,contw
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	copy rega,contr
+	bbit1 mode_le,memcpy
+	arg mem_state,contw
+	call memcpy
+	disable attempt
+	fetch 1,mem_amaddr
+	iforce am_addr
+	jam 1,mem_current_sniff_attempt
+	branch context_load_master,master
+	jam 1,mem_current_sniff_attempt
+context_load_master:
+	fetch 1,mem_state
+	rtnbit0 state_insniff
+	fetch 1,mem_sniff_attempt
+	store 1,mem_current_sniff_attempt
+	fetch 1,mem_sniff_timeout
+	store 1,mem_current_sniff_timeout
+	rtn
+	
+context_save:
+	bpatch patch05_2,mem_patch05
+	fetch 2,mem_context_ptr
+	iforce contw
+	force context_size,loopcnt
+	arg mem_le_state,contr
+	branch memcpy,le
+	arg mem_state,contr
+	branch memcpy
+
+	
+
+context_get_next:
+	arg context_num,loopcnt
+	fetcht 1,mem_current_context
+context_get_next_loop:
+	increase 1,temp
+	compare context_num,temp,0xff
+	nbranch context_get_next_cont,true
+	arg 0,temp
+context_get_next_cont:
+	storet 1,mem_current_context
+	mul32 temp,context_size,pdata
+	arg mem_context,rega
+	iadd rega,rega
+	ifetch 1,rega
+	bbit1 state_insniff,context_get_next_sniff
+	rtnbit1 state_inconn
+	rtnbit1 state_inpage
+context_get_next_sniff:
+	loop context_get_next_loop
+	rtn
+	
+context_new:
+	bpatch patch05_3,mem_patch05
+	arg context_search_empty,regc
+	call context_search
+	nrtn zero					// all occupied
+	deposit rega
+	store 2,mem_context_ptr
+	force 0,null
+	rtn
+	
+	//return zero if anyone's wack is 1.
+	//return nzero if all wack is 0
+context_check_all_wack:
+	call check_esco_amaddr
+	branch context_check_esco_wack,true
+	fetch 2,mem_context_ptr
+	add pdata,coffset_arq,contw
+	fetch 1,mem_arq
+	istore 1,contw
+	arg context_check_a_wack,regc
+	branch context_search
+
+context_check_esco_wack:
+	fetch 1,mem_arq
+	isolate1 wack,pdata
+	branch context_esco_wack,true
+	force 1,null
+	rtn
+context_esco_wack:
+	force 0,null
+	rtn
+	
+	//rtn nzero if idle(no conn)
+context_check_idle:
+	arg context_check_inconn,regc
+	branch context_search
+	
+context_traverse_linkkey:
+	fetcht 2,mem_context_ptr
+	arg context_traverse_clearkey,regc
+	branch context_search
+	
+	
+	/* return zero if conn handle is found */
+context_search_conn_handle:
+	fetcht 1,mem_hci_conn_handle
+context_search_conn_handle2:
+	arg context_search_handle,regc
+	branch context_search
+	/* return zero if plap is found */
+context_search_plap:
+	bpatch patch05_4,mem_patch05
+	fetcht 6,mem_hci_plap
+context_search_plap2:
+	arg context_search_lap,regc
+	branch context_search
+	/* return zero if sniff anchor is meet and rega pointers to context */
+context_search_insniff:
+	arg context_search_sniff,regc
+	branch context_search
+	/* return zero if sniff window is in content with current transaction */
+context_search_sniff_window:
+	arg context_search_window,regc
+context_search:
+	bpatch patch05_5,mem_patch05
+	arg mem_context,rega
+	arg context_num,loopcnt
+context_search_loop:
+	ifetch 1,rega
+	copy regc,pc
+context_search_next:
+	increase context_size,rega
+	loop context_search_loop
+	force 1,null
+	rtn
+
+context_search_empty:
+	bbit1 state_inconn,context_search_next
+	bbit1 state_inpage,context_search_next
+	force 0,null
+	rtn
+	
+context_search_lap:
+	bbit1 state_inpage,context_search_lap_cont
+	bbit0 state_inconn,context_search_next
+context_search_lap_cont:
+	add rega,coffset_plap,contr
+	ifetch 6,contr
+	isub temp,null
+	rtn zero
+	branch context_search_next
+
+context_search_handle:
+	bbit0 state_inconn,context_search_next
+	add rega,coffset_conn_handle,contr
+	ifetch 1,contr
+	isub temp,null
+	rtn zero
+	branch context_search_next
+
+context_search_sniff:
+	bbit0 state_insniff,context_search_next
+context_search_sniff_loop:
+	call context_get_anchor
+	call sign_pdata_temp
+	isub temp,pdata
+	increase 1,pdata
+	branch context_search_sniff_miss,positive
+	copy contr,regb
+	store 9,mem_temp
+	fetch 1,mem_sc_calc
+	nbranch context_search_sniff_sc,blank
+	fetch 9,mem_temp
+	copy regb,contr
+	increase 5,pdata  
+	branch context_search_meet1
+context_search_sniff_sc:
+	fetch 9,mem_temp
+	copy regb,contr	
+	increase 20,pdata  
+context_search_meet1:
+	nbranch context_search_next,positive
+context_search_meet:
+	copy temp,bt_clk
+	call context_next_anchor
+	force 0,null
+	rtn
+	
+	
+context_search_sniff_miss:
+	iforce regb
+	add rega,coffset_tsniff,contr
+	ifetch 2,contr
+	branch context_search_meet,blank
+	call context_next_anchor
+	branch context_search_sniff_loop
+
+sign_pdata_temp:
+	rshift16 pdata,timeup    
+	rshift8 timeup,timeup    
+	branch sign_pdata_temp_p0,zero    
+	compare 0xf,timeup,0xf    
+	nrtn true    
+	rshift16 temp,timeup    
+	rshift8 timeup,timeup    
+	nrtn zero    
+	set1 28,temp    
+	rtn
+sign_pdata_temp_p0:    
+	rshift16 temp,timeup    
+	rshift8 timeup,timeup    
+	compare 0xf,timeup,0xf    
+	nrtn true    
+	set1 28,pdata    
+	rtn
+
+context_check_inconn:
+	bbit0 state_inconn,context_search_next
+	force 0,null 				// found
+	rtn
+	
+context_check_a_wack:
+	bbit0 state_inconn,context_search_next
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	bbit1 mode_le,context_search_next
+	add rega,coffset_arq,contr
+	ifetch 1,contr
+	bbit0 wack,context_search_next
+	force 0,null 				// found
+	rtn
+
+context_get_anchor:
+	add rega,coffset_mode,contr
+	ifetcht 1,contr
+	deposit clkn_bt
+	isolate1 mode_master,temp
+	add rega,coffset_sniff_anchor,contr
+	ifetcht 4,contr
+	rtn true
+	add rega,coffset_clk_offset,contr
+	ifetch 6,contr
+	call calc_clke2
+	deposit clke_bt
+	rtn
+
+context_next_anchor:
+	add rega,coffset_tsniff,contr
+	add rega,coffset_sniff_anchor,contw
+	ifetch 2,contr
+	iadd temp,timeup			/* wrap to 28 bits */
+	deposit timeup
+	istore 4,contw
+	branch le_context_nextevent
+	
+
+context_search_window:
+	bbit0 state_insniff,context_search_next
+	call context_get_anchor
+	iadd stop_watch,pdata
+	iadd stop_watch,pdata
+	iadd queue,pdata
+	isub temp,null
+	nbranch context_search_next,positive
+	force 0,null
+	rtn
+
+context_traverse_clearkey:
+	bbit0 state_inconn,context_search_next
+	deposit temp
+	isub rega,null
+	branch context_search_next,null
+	add rega,coffset_mode,contr
+	ifetch 1,contr
+	bbit1 mode_le,context_search_next
+	ifetch 1,rega
+	set0 state_linkkey,pdata
+	istore 1,rega
+	branch context_search_next
+
+	
+master_conn_send_packet:
+	bpatch patch05_6,mem_patch05
+	call rf_setup_time_master_slot
+master_send_packet:
+	add clkn_bt,1,bt_clk          /* master start to use native clock */
+	call fetch_self_bt_adr
+	force 0x03,freq_mode          /* we are in connection!! */
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_native
+	call send_access_word
+	branch transmit_packet
+
+master_conn_recv_packet:
+	bpatch patch05_7,mem_patch05
+	call rf_setup_time_slave_slot
+master_recv_packet:
+	add clkn_bt,1,bt_clk          /* master start to use native clock */
+	call fetch_self_bt_adr
+	force 0x03,freq_mode          /* we are in connection!! */
+	call rx_radio_freq
+	call init_rx_packet_flags
+	call prep_crypt
+	call start_rx_native	/* start listening at start_rx time */
+	call start_receiver
+master_rx_conn_finish_packet:
+	call wait_access_clkn_rt	/* master use native clock */
+	nrtn sync
+	call save_rssi
+	branch receive_packet
+	
+	
+
+master_newconn_once:
+	bpatch patch06_0,mem_patch06
+	fetch 1,mem_fhs_am_addr
+	iforce am_addr			//review
+	force type_poll,type
+	call master_conn_send_packet
+	branch master_conn_recv_packet
+
+
+
+
+
+
+/******************************************/
+/************* Inquiry Scan ***************/
+/******************************************/
+
+inquiry_scan_dispatch:
+	fetch 1,mem_scan_mode
+	rtnbit0 inq_scan_mode
+	force iscan_interval_timer,queue
+	call timer_check
+	nrtn blank
+	fetcht 2,mem_iscan_window
+	force 4,queue
+	call sniff_check_window
+	rtn user
+	call inquiry_scan_start
+	force iscan_interval_timer,queue
+	fetch 2,mem_iscan_interval
+	nbranch timer_init,sync
+	random pdata				/* inquiry scan backoff */
+	iand mask3ff,pdata
+	branch timer_init
+	
+
+inquiry_scan_start:
+	bpatch patch06_1,mem_patch06
+	jam 0,mem_fhs_am_addr
+	disable clknt
+	disable attempt
+	call afh_clear
+	and clkn_bt,0x1fc,bt_clk      /* freeze the clock, set bit[1] 0, this is version 1.1 */
+	force 0x01,freq_mode     /* slave in inquiry scan, kind of same as inquriy_response, this is version 1.1 */
+	call fetch_giac
+	call rx_radio_freq
+	setflip mark_inquiry_state,mark
+	fetch 1,mem_inquiryscan_waitcnt
+	increase 1,pdata
+	store 1,mem_inquiryscan_waitcnt
+	call fetch_diac
+	call start_receiver	/* get ready for that id packet */
+	call wait_access_forever	/* until there is timeout, or matched (true) */
+	nrtn sync
+	bpatch patch06_2,mem_patch06
+	force 0,stop_watch
+	call shutdown_radio	/* must have heard */
+	fetch 1,mem_inquiryscan_rcvcnt
+	increase 1,pdata
+	store 1,mem_inquiryscan_rcvcnt
+	call fetch_giac
+	call rf_setup_time_slave_slot
+	or_into 0x002,bt_clk               /* put clk(1) to 1 */
+	force 0x01,freq_mode               /* slave in inquriy and page, response only */
+	call tx_radio_freq
+	call fetch_diac
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_external
+	deposit clkn_bt
+	store 4,mem_clkn_bt
+	call send_access_word
+	force type_fhs,type
+	force 0,am_addr                       /* put 0 into am_addr field for fhs */
+	call scan_mode_whiten
+	call transmit_packet_whitened
+	call send_eir
+	and_into 0x1fd,bt_clk                 /* put clk(1) back to 0 */
+	increase 1,N_tx_slot
+	rtn
+
+send_eir:
+	bpatch patch06_3,mem_patch06
+	fetch 1,mem_eir_enable
+	rtn blank
+	arg mem_eir,contw
+	fetch 1,mem_local_name_length
+	copy pdata,loopcnt
+	increase 1,pdata
+	istore 1,contw	
+	copy contw,temp
+	increase 1,pdata
+	store 2,mem_tx_len	
+	copy temp,contw
+	setarg 0x09  //type:name
+	istore 1,contw		
+	arg  mem_local_name,contr
+	call memcpy       //name
+
+	arg mem_all_uuid_128bits,regc
+	arg 4,loopcnt
+	call get_all_uuid
+	arg mem_all_uuid_16bits,regc
+	arg 1,loopcnt
+	call get_all_uuid
+
+	force type_dm3,type		/* DM3 */
+	jam 2,mem_tx_lch
+	setarg mem_eir
+	store 2,mem_txptr
+	call rf_setup_time_slave_slot
+	call tx_radio_freq
+	call start_transmitter	/* get ready for that id packet */
+	call start_tx_external
+	call send_access_word
+	call scan_mode_whiten
+	call transmit_packet_whitened
+	rtn
+
+
+get_all_uuid:
+	copy contw,temp
+	copy regc,contr
+	ifetch 1,contr
+	rtn blank
+lshift_loop:
+	lshift pdata,pdata
+	loop lshift_loop
+	copy pdata,rega
+	increase 2,pdata
+	copy pdata,queue
+	fetch 2,mem_tx_len
+	iadd queue,pdata
+	store 2,mem_tx_len
+	copy temp,contw
+	copy rega,pdata
+	increase 1,pdata
+	istore 1,contw
+	copy regc,contr
+	ifetch 1,contr
+	ifetch 1,contr	//fetch type
+	istore 1,contw
+	copy rega,loopcnt
+	branch memcpy  //copy uuid
+	
+/******************************************/
+/******** Slave dispatch ***********/
+/******************************************/
+
+page_scan_dispatch:	
+	fetch 1,mem_scan_mode
+	rtnbit0 page_scan_mode
+	force pscan_interval_timer,queue
+	call timer_check
+	nrtn blank
+	fetcht 2,mem_pscan_window
+	force 40,queue
+	call sniff_check_window
+	rtn user
+	force 0,am_addr
+	jam param_pagerespto,mem_fhs_wait_counter
+	set0 mark_fhs_already_good,mark
+	call page_scan_start
+	force pscan_interval_timer,queue
+	fetch 2,mem_pscan_interval
+	branch timer_init
+	
+
+page_scan_start:
+	bpatch patch06_4,mem_patch06
+	disable clknt
+	call afh_clear
+	fetch 1,mem_pagescan_waitcnt
+	increase 1,pdata
+	store 1,mem_pagescan_waitcnt
+	force 0,N_tx_slot
+	call fetch_self_bt_adr
+	add clkn_bt,1,bt_clk      /* freeze the clock on native clock until scan window is up */
+	force 0x02, freq_mode     /* slave in inquiry and page, not response */
+	bpatch patch06_5,mem_patch06
+	call rx_radio_freq
+	call start_receiver	/* wait for that id packet from master */
+	call wait_access_forever
+	nrtn sync                          /* pscan window timeout occured, back to dispatch */
+	call shutdown_radio	/* got the id packet */
+	fetch 1,mem_pagescan_rcvcnt
+	increase 1,pdata
+	store 1,mem_pagescan_rcvcnt
+	force 0,stop_watch
+	call rf_setup_time_slave_slot
+	or_into 0x002,bt_clk               /* put clk(1) to 1 */
+	force 0x01,freq_mode               /* slave in inquriy and page, response only */
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_external
+	call send_access_word
+	call end_of_packet
+	force 0,am_addr
+	fetchr timeup,2,mem_param_rf_setup
+	until clke_rt,meet
+	or_into 0x03,clke_bt
+	and_into 0x1fd,bt_clk
+page_scan_wait_fhs_restart:
+	bpatch patch06_6,mem_patch06
+	increase 1,N_tx_slot
+	call rx_radio_freq
+	call start_receiver
+	call wait_access_mhalfbnd
+	nbranch page_scan_wait_fhs_again,sync	/* go back if didn't find access code */
+	call scan_mode_whiten
+	call receive_packet_whitened
+	bmark1 mark_fhs_already_good,page_scan_reply_to_fhs
+page_scan_wait_fhs_again:
+	bpatch patch06_7,mem_patch06
+	fetch 1,mem_fhs_wait_counter
+	rtn blank
+	increase -1,pdata
+	store 1,mem_fhs_wait_counter
+	call rf_setup_time_master_slot	/* set up expiration time */
+	branch page_scan_wait_fhs_restart
+
+
+page_scan_reply_to_fhs:
+	bpatch patch07_0,mem_patch07
+	set0 1,clke_bt
+	set1 0,clke_bt
+	fetch 1,mem_pagescan_rcvfhscnt
+	increase 1,pdata
+	store 1,mem_pagescan_rcvfhscnt
+	call rf_setup_time_slave_slot
+	or_into 0x02,bt_clk
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_external
+	call send_access_word
+	call end_of_packet
+slave_apply_clke_bt:
+	compare 0x03,clke_bt,0x03
+	branch slave_apply_clke_bt_now,true
+	until null,mhalfbnd
+	branch slave_apply_clke_bt
+slave_apply_clke_bt_now:
+	fetch 4,mem_clke_bt
+	or_into 0x03,pdata
+	icopy clke_bt
+
+start_slave_connection:
+	bpatch patch07_1,mem_patch07
+	fetch 6,extm_lap
+	store 6,mem_plap
+	call prepare_newconn
+slave_newconn_loop:
+	call slave_newconn_once
+	branch sconn_successful,match     /* we were talked to */
+	call new_conn_timeout
+	nbranch slave_newconn_loop,blank
+	rtn
+
+	
+sconn_successful:
+	bpatch patch07_2,mem_patch07
+	call newconn_init
+	call context_new
+	nrtn zero
+	jam 0,mem_mode
+	call calc_clke_offset
+	branch context_save
+
+
+
+
+slave_dispatch:
+	bpatch patch07_3,mem_patch07
+	call calc_clke
+	call role_switch_slave
+	rtn user
+slave_loop:
+	bpatch patch07_4,mem_patch07
+	call scheduler_process
+	call slave_conn_recv_packet	/* go listen for a packet */
+	nbranch slave_notmatch,match
+	fetch 2,mem_cb_bt_slave_match
+	call callback_func
+	call supervision_flush
+	call scheduler_tx_l2cap_pkt
+	call prepare_tx
+	call slave_conn_send_packet
+	call parse_l2cap
+	call parse_lmp
+	fetch 1,mem_slave_rcvcnt
+	increase 1,pdata
+	store 1,mem_slave_rcvcnt
+	call calc_clke_offset
+slave_notmatch:
+	bpatch patch07_5,mem_patch07
+	call lpm_set_mult
+	call supervision_update
+	branch slave_disconnect,positive
+	call check_disconnect_timeout
+	nbranch slave_disconnect,user
+	call check_attempt
+	nbranch slave_loop,blank
+	rtn
+
+slave_disconnect:
+	bpatch patch07_6,mem_patch07
+	jam 0,mem_tester_emulate
+	jam 0,mem_debug_config
+	call quit_connection
+	set0 mark_testmode,mark
+	call test_enable_white
+	fetch 1,mem_state
+	rtn
+
+
+role_switch_slave:
+	call role_switch_check
+	nrtn user
+	copy am_addr,temp
+	call get_free_amaddr
+	store 1,mem_fhs_am_addr
+	copy temp,am_addr
+	jam param_newconnto,mem_newconnto_counter
+roles_sendfhs_loop:
+	bpatch patch07_7,mem_patch07
+	call rf_setup_time_master_slot
+	force type_fhs,type
+	call slave_send_access
+	deposit clkn_bt
+	store 4,mem_clkn_bt
+	call transmit_packet
+	call rf_setup_time_slave_slot
+	enable user3
+	call slave_receive_access
+	branch roles_got_fhs_reply,sync
+	call shutdown_radio
+	call new_conn_timeout
+	nbranch roles_sendfhs_loop,blank
+	rtnmark0 mark_accept_switch
+	jam LMP_SLOT_OFFSET,mem_lmo_opcode2
+	set1 mark_switch_initiated,mark
+	rtn
+roles_got_fhs_reply:
+	enable clknt
+	call prepare_newconn
+	call afh_clear
+roles_newconn_loop:
+	bpatch patch08_0,mem_patch08
+	call master_newconn_once
+	branch roles_newconn_responded,sync
+	call new_conn_timeout
+	nbranch roles_newconn_loop,blank
+	disable clknt
+	deposit clke_bt
+	store 4,mem_next_btclk
+	rtn
+roles_newconn_responded:
+	enable master
+	bmark0 mark_accept_switch,roles_newconn_nolmp
+	set0 mark_accept_switch,mark
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_HOST_CONNECTION_REQ,mem_lmi_opcode2
+	call tid_set_reply
+roles_newconn_nolmp:
+	deposit am_addr
+	store 1,mem_amaddr
+	force 0,pdata
+	store 6,mem_clk_offset
+	fetch 1,mem_mode
+	set1 mode_master,pdata
+	store 1,mem_mode
+	call supervision_flush
+	disable master
+	enable user
+	rtn
+
+	
+
+init_rx_packet_flags:
+	bpatch patch08_1,mem_patch08
+	disable match
+	set0 mark_loopback,mark
+	set0 mark_am_addr_broadcast,mark          /* initialize slave flags */
+	set0 mark_longpacket,mark
+	set0 mark_old_packet,mark
+	fetch 1,mem_arq    /* mem_arq + am_addr */
+	set0 arqnx,pdata
+	set1 flowx,pdata
+	store 1,mem_arq
+	rtn
+
+prepare_newconn:
+	bpatch patch08_2,mem_patch08
+	jam param_newconnto,mem_newconnto_counter
+	jam param_newconn_arq,mem_arq
+	fetch 2,mem_rx_window_init
+	store 2,mem_rx_window
+	deposit clkn_bt
+	store 4,mem_next_btclk
+	rtn clknt
+	deposit clke_bt
+	store 4,mem_next_btclk
+	rtn
+
+newconn_init:
+	bpatch patch08_3,mem_patch08
+	call init_lmp_reinit
+	call new_conn_handle
+	store 1,mem_conn_handle
+	setarg 0
+	store 2,mem_l2cap_rxbuff1_len
+	setarg param_supervision_to
+	store 2,mem_supervision_to
+	fetch 1,mem_state
+	set1 state_inconn,pdata
+	store 1,mem_state
+	jam 0,mem_op
+	jam 0,mem_state_map
+	jam 0,mem_lpm_current_mult
+	branch supervision_flush
+	
+
+clear_linkkey:
+	bpatch patch08_4,mem_patch08
+	force 0,pdata
+	store 8,mem_link_key
+	istore 8,contw
+	call clear_linkstate
+	branch context_traverse_linkkey
+	
+new_conn_timeout:
+	fetch 1,mem_newconnto_counter
+	increase -1,pdata
+	store 1,mem_newconnto_counter
+	rtn
+
+new_conn_handle:
+	fetch 1,mem_handle_num
+	increase 1,pdata
+	store 1,mem_handle_num
+	rtn
+
+
+quit_connection:
+	bpatch patch08_5,mem_patch08
+	fetch 1,mem_hci_cmd
+	beq hci_cmd_remote_name_req,quit_connection_name
+	fetch 1,mem_lmp_to_send
+	bne LMP_NAME_REQ,quit_connection_cont
+quit_connection_name:
+	call cmd_check_plap
+	nbranch quit_connection_cont,zero
+	call master_name_error
+	jam 0,mem_hci_cmd
+quit_connection_cont:
+	bpatch patch08_6,mem_patch08
+	call app_disconn_reason_collect_bt
+	call sniff_exit
+	jam BT_EVT_BB_DISCONNECTED,mem_fifo_temp
+	call ui_ipc_send_event
+	call init_lmp_work
+	call l2cap_init_work
+ifdef SIMPLE_PAIRING
+	call sp_clear_flags
+endif
+	fetch 1,mem_state
+	set0 state_inconn,pdata
+	store 1,mem_state
+	jam 0,memui_reconnect_mode
+
+	fetch 1,mem_state_map
+	compare 0x0,pdata,0xc0
+	branch quit_connection_not_clear_mark,true
+	set0 mark_rxbuf_inuse,mark
+quit_connection_not_clear_mark:
+	fetch 1,mem_arq
+	bbit0 wack,quit_connection_not_clear_tx
+quit_connection_not_clear_tx:
+	fetch 1,mem_op
+	rtnbit0 op_txl2cap
+	set0 mark_tx_l2cap,mark
+	rtn
+
+slave_newconn_once:
+	bpatch patch08_7,mem_patch08
+	fetch 1,extm_newconn_am_addr
+	rtn blank     
+	icopy am_addr
+	call slave_conn_recv_packet
+	nrtn match
+	force type_null,type
+	call slave_conn_send_packet
+	deposit am_addr
+	store 1,mem_amaddr                 /* now the new am_addr is official */
+	force 0,pdata
+	store 1,extm_newconn_am_addr
+	rtn
+
+
+/******************************************/
+/********  Time consuming task  ***********/
+/******************************************/
+prepare_tx:
+	bpatch patch09_0,mem_patch09
+	fetch 1,mem_state
+	bbit0 state_insco,prepare_tx_not_sco
+	force type_hv3,type
+	bmark0 mark_esco,prepare_tx_not_esco
+	call check_esco_amaddr
+	nbranch prepare_tx_not_sco,true
+	branch prepare_tx_not_sco,attempt	
+	call set_wait_ack					/* send esco only at the first attempt */
+	setarg 2		/* esco only has 1 retry */
+	store 2,mem_retransmission_cnt
+	rtn
+
+prepare_tx_not_esco:
+	nrtn attempt						/* send sco only at the first attempt */
+prepare_tx_not_sco:
+	bpatch patch09_1,mem_patch09
+	call context_check_all_wack			 //abandon mark_retransmit, use context_check_all_wack instead.
+	nbranch prepare_tx_no_retransmit,zero
+	fetch 1,mem_arq
+	bbit0 wack,prepare_tx_pollnull		/* other wack, tx buffer in use, but not me */
+prepare_tx_retransmit:
+	bmark1 mark_loopback,prepare_tx_loopback
+	fetch 1,mem_debug_config
+	bbit1 debug_tx_pattern,prepare_tx_txpat
+	fetch 2,mem_retransmission_cnt
+	increase -1,pdata
+	store 2,mem_retransmission_cnt
+	branch prepare_tx_nomore_retransmit,blank
+	fetch 1,mem_last_type
+	iforce type
+	rtn
+
+prepare_tx_nomore_retransmit:
+	bpatch patch09_2,mem_patch09
+	call clear_got_tx
+prepare_tx_no_retransmit:
+	call check_esco_amaddr
+	branch prepare_tx_pollnull,true
+	call send_lmp
+	branch prepare_tx_sendlmp,user
+	fetch 1,mem_op
+	bbit1 op_txl2cap,prepare_tx_sendl2cap
+	bmark1 mark_loopback,prepare_tx_loopback
+	fetch 1,mem_debug_config
+	bbit1 debug_tx_pattern,prepare_tx_txpat
+prepare_tx_pollnull:
+	force type_poll,type				/* POLL for master */
+	rtn master
+	force type_null,type				/* default is NULL */
+	rtn
+prepare_tx_loopback:
+	bpatch patch09_3,mem_patch09
+	fetch 1,mem_rx_type
+	iforce type
+	rtnne 1
+	force type_null,type
+	rtn
+prepare_tx_txpat:
+	fetch 1,test_mode_packet_type
+	and pdata,0xf,type
+	set1 mark_loopback,mark
+	rtn
+prepare_tx_sendlmp:
+	force type_lmp,type
+	call set_wait_ack
+prepare_tx_ccm_edr_lmp:
+	call check_enc_ccm
+	rtn blank		
+	jam 3,mem_llid
+	fetch 1,mem_lmo_header_length
+	and pdata,0x1f8,pdata
+	rshift3 pdata,pdata
+	store 2,mem_ccm_len
+	copy pdata,rega
+	arg mem_lmo_header_opcode,regc
+	branch ccm_br_enc_new	
+
+	
+prepare_tx_sendl2cap:
+	call tx_l2cap_type
+	call set_wait_ack
+prepare_tx_ccm_edr:
+	call check_enc_ccm
+	rtn blank		
+	fetch 1,mem_tx_lch
+	and_into 3,pdata
+	store 1,mem_llid
+	fetch 2,mem_tx_len
+	copy pdata,rega
+	store 2,mem_ccm_len
+	fetch 2,mem_txptr
+	copy pdata,regc
+	branch ccm_br_enc_new
+	
+	
+set_wait_ack:
+	bpatch patch09_4,mem_patch09
+	fetcht 1,mem_arq
+	set1 wack,temp
+	storet 1,mem_arq
+	deposit type
+	store 1,mem_last_type
+	setarg 0xffff
+	store 2,mem_retransmission_cnt
+	rtn
+
+tx_l2cap_type:
+	bpatch patch09_5,mem_patch09
+	fetch 1,mem_state_map
+	isolate1 smap_edr,pdata
+	fetch 2,mem_tx_len
+	branch tx_l2cap_type_edr,true
+	force type_dm1,type		/* DM1 */
+	sub pdata,17,null			
+	rtn positive
+	force type_dh1,type		/* DH1 */
+	sub pdata,27,null				
+	rtn positive
+	force type_dm3,type		/* DM3 */
+	sub pdata,121,null
+	rtn positive
+	force type_dh3,type		/* DH3 */
+	sub pdata,183,null
+	rtn positive	
+	force type_dm5,type		/* DM5 */
+	sub pdata,224,null
+	rtn positive
+	force type_dh5,type		/* DH5 */
+	rtn
+tx_l2cap_type_edr:
+	force type_dm1,type
+	sub pdata,17,null
+	rtn positive
+	force type_dh1,type		/*2-DH1*/
+	sub pdata,54,null
+	rtn positive
+	force type_dm3,type		/*2-DH3*/
+	arg 367,temp
+	isub temp,null
+	nrtn positive
+	force type_dm5,type		/*2-DH5*/
+	arg 679,temp
+	isub temp,null
+	nrtn positive
+	force type_dh5,type		/*3-DH5*/
+	rtn
+
+
+/******************************************/
+/***********  Receive Packet  *************/
+/******************************************/
+
+
+
+slave_receive_master_slot:
+	fetch 1,mem_state
+	bbit0 state_insniff,slave_receive_notsniff
+	fetch 2,mem_tsniff
+	branch slave_receive_notsniff,blank		/* role switch */
+	nbranch slave_receive_sniff,attempt
+slave_receive_notsniff:
+	call rf_setup_time_master_slot
+slave_receive_access:
+	add clke_bt,1,bt_clk
+slave_receive_sniff:
+	enable swfine
+	fetch 2,mem_rx_window
+	rshift pdata,pdata
+	fetcht 2,mem_param_pll_setup
+	iadd temp,pdata
+	call ahead_window
+	call fetch_extm_bt_adr
+	force 0x03,freq_mode          /* connection hop */
+	call rx_radio_freq
+	call init_rx_packet_flags
+	call prep_crypt
+	bpatch patch09_6,mem_patch09
+	fetch 2,mem_rx_window
+	rshift pdata,pdata
+	call ahead_window
+	call start_receiver
+	enable decode_fec0
+	fetch 2,mem_rx_window
+	fetcht 2,mem_param_clke_cal
+	iadd temp,stop_watch
+	correlate null,timeout
+	copy clke,temp
+	storet 6,mem_sync_clke
+	disable decode_fec0
+	nrtn sync
+	fetch 2,mem_param_clke_cal
+	copy pdata,clke_rt
+	copy bt_clk,clke_bt
+	branch lpm_adjust_clk,wake
+	rtn
+
+
+slave_conn_recv_packet:
+	bpatch patch09_7,mem_patch09
+	call slave_receive_master_slot
+	nbranch shutdown_radio,sync
+	call save_rssi
+	bmark0 mark_testmode,receive_packet
+	fetch 2,mem_tst_pktcnt_sync
+	increase 1,pdata
+	store 2,mem_tst_pktcnt_sync
+receive_packet:
+	call rf_debug_rx_sync_line	//L-H
+	rshift bt_clk,temp
+	or temp,0x40,white_init
+receive_packet_whitened:
+	bpatch patch0a_0,mem_patch0a
+	enable enable_white
+	enable enable_hec
+	enable decode_fec1
+	parse demod,bucket,3  /* get am_addr */
+	rshift8 pwindow,pdata
+	store 1,mem_temp_am_addr
+	parse demod,bucket,4  /* get type */
+	inject bucket,7       /* align up to pwindow */
+	copy pwindow,pdata
+	store 1,mem_rx_type
+	parse demod,bucket,3  /* get arq */
+	rshift8 pwindow,pdata
+	store 1,mem_temp_arq
+	fetch 1,mem_rx_type
+	sub pdata,3,null
+	branch receive_packet_noedr,positive
+	beq 7,receive_packet_noedr		/* esco packet */
+	fetch 1,mem_state_map
+	isolate1 smap_edr,pdata
+	setflag true,PSK,radio_ctrl
+receive_packet_noedr:
+	bpatch patch0a_1,mem_patch0a
+	parse demod,bucket,8   /* cycle thru hec */
+	disable decode_fec1
+	disable enable_hec   /* at this moment, 1 seqn + 8 hec is in shift */
+	branch error_header,crc_failed  /* if hec error, nothing is valid */
+	bmark0 mark_testmode,receive_packet_amchk
+	fetch 2,mem_tst_pktcnt_hec
+	increase 1,pdata
+	store 2,mem_tst_pktcnt_hec
+receive_packet_amchk:	
+	bpatch patch0a_2,mem_patch0a
+	fetch 1,mem_temp_am_addr
+	compare 0,pdata,0x07           /* check for broadcast */
+	setflag true,mark_am_addr_broadcast,mark   /* received a broadcast message, can fire ar_addr if during unpark_req */
+	branch am_addr_ok,true
+	icompare 0x07,am_addr
+	branch am_addr_match,true
+	bmark0 mark_esco,end_of_packet
+	fetch 1,mem_arq    /* mem_arq + am_addr */
+	set0 arqnx,pdata
+	set1 flowx,pdata
+	store 1,mem_arq
+am_addr_match:
+	call rf_debug_rx_match_line	//L
+	enable match
+am_addr_ok:
+	bpatch patch0a_3,mem_patch0a
+	fetch 1,mem_rx_type
+	icopy type
+	bmark1 mark_am_addr_broadcast,arqn_bypass        /* arqn doesn't make sense */
+	fetcht 1,mem_temp_arq
+	fetch 1,mem_arq
+	set0 flow,pdata
+	isolate1 flow,temp
+	setflag true,flow,pdata
+	isolate1 arqn,temp
+	setflag true,arqn,pdata
+	store 1,mem_arq
+	isolate0 arqn,temp
+	branch arqn_bypass,true
+	call clear_got_tx
+arqn_bypass:
+	bpatch patch0a_4,mem_patch0a
+	arg 0,temp
+	call reserve_slot
+	and type,0xf,pdata
+	beq type_poll,process_poll
+	beq type_null,end_of_packet	/* null */
+	beq type_fhs,process_fhs
+	fetcht 1,mem_temp_arq
+	fetch 1,mem_arq
+	icompare 0x04,temp    /* bit 2 is seqn */
+	nbranch rx_type_dispatch,true   /* different then it's new */
+	bmark0 mark_am_addr_broadcast,failed_seqn         /* seqn failed, and not broadcast */
+	bbit0 bcast1,rx_type_dispatch           /* first broadcast never fail seqn */
+failed_seqn:
+	set1 mark_old_packet,mark
+rx_type_dispatch:
+	bpatch patch0a_5,mem_patch0a
+	deposit type
+	beq type_dm1, process_dm1
+	beq type_dh1, process_dh1
+	beq type_3dh1, process_3dh1
+	arg 4,temp
+	call reserve_slot
+	beq type_dm3, process_dm3
+	beq type_dh3, process_dh3
+	arg 8,temp
+	call reserve_slot
+	beq type_dm5, process_dm5
+	beq type_dh5, process_dh5
+	rtn
+
+
+
+
+process_poll:
+	branch end_of_packet
+
+process_dm3:
+process_dm5:
+	set1 mark_longpacket,mark
+process_dm1:
+	enable decode_fec2
+	branch process_dmh
+	
+process_dh3:
+process_dh5:
+	set1 mark_longpacket,mark
+process_3dh1:
+	set1 PSK3M,radio_ctrl
+process_dh1:
+	enable decode_fec0
+process_dmh:
+	bpatch patch0a_6,mem_patch0a
+	bmark1 mark_first_packet,end_of_packet
+	bmark1 mark_rxbuf_inuse,end_of_packet			/* buffer in use, nack */
+	isolate0 PSK,radio_ctrl
+	branch process_dmh_noedr,true
+	disable enable_white
+	enable decode_fec0
+	disable decode_fec2
+	add clkn_bt,2,timeup
+	correlate clkn_bt,meet
+	nbranch error_payload,sync
+	set1 mark_longpacket,mark
+	enable enable_white
+process_dmh_noedr:
+	bpatch patch0a_7,mem_patch0a
+	enable encrypt
+	enable enable_crc
+	parse demod,bucket,3  /* parse in lch+l2cap flow */
+	rshift8 pwindow,pdata
+	store 1,mem_lch_code		/* for loopback */
+	parse demod,bucket,5  /* parse in 5 bit packetlength */
+	bmark1 mark_longpacket,process_dmh_long
+	rshift3 pwindow,loopcnt
+	rshift3 loopcnt,loopcnt
+	branch process_dmh_common
+process_dmh_long:
+	parse demod,bucket,5		/* multi slot packet length of dh3 dh5 dm3 dm5 */
+	rshift pwindow,loopcnt
+	parse demod,bucket,3  /* undefined+bit 9 of length */
+process_dmh_common:	
+	bpatch patch0b_0,mem_patch0b
+	deposit loopcnt
+	store 2,mem_len
+	branch process_dmh_data_0,blank
+	call check_enc_ccm
+	branch process_dmh_common2,blank
+process_dmh_common2_ccm:
+	increase 4,loopcnt
+	deposit loopcnt
+process_dmh_common2:	
+	isub mask3ff,null
+	branch error_payload,positive	/* packet too large, discard */
+	bpatch patch0b_1,mem_patch0b
+	set0 mark_fhs_eir,mark
+	fetch 1,mem_lch_code
+	and_into 0x03,pdata
+	arg mem_rxbuf,contw //lmp_data or test packet
+	beq LLID_LMP,process_lmp
+	bmark1 mark_testmode,process_dmh_common2_testmode
+	//non-HCI mode
+	fetch 1,mem_lch_code
+	and_into 0x03,pdata
+	beq LLID_L2CAP_START,process_dmh_data_l2cap_start_pkt
+	beq LLID_L2CAP_CONT,process_dmh_data_l2cap_continue_pkt
+	branch error_payload
+	
+process_dmh_common2_testmode:	
+	arg mem_l2cap_rxbuff1,contw
+	branch process_dmh_data	
+
+process_dmh_data_0:
+	call check_enc_ccm
+	branch process_dmh_data_end,blank
+	setarg 0
+	store 2,mem_ccm_len
+	parse demod,bucket,32
+	rshift32 pdata,pdata
+	rshift8 pdata,pdata
+	store 4,mem_le_peer_mic
+	branch process_dmh_data_end
+	
+//blank not enc_ccm
+check_enc_ccm:
+	fetch 1,mem_state_map
+	bbit0 smap_encryption,enable_blank
+	fetch 1,mem_encapsulated_minor_type
+	bne ENCAPSULATED_MINOR_TYPE_P256,enable_blank
+	branch disable_blank
+	
+process_lmp:
+	fetch 2,mem_len
+	sub pdata,17,null		//lmp buffer size
+	nbranch error_payload,positive
+	bmark1 mark_old_packet,ack_payload
+	branch process_dmh_data
+
+	
+process_dmh_data_l2cap_start_pkt:
+	bpatch patch0b_2,mem_patch0b
+	bmark1 mark_old_packet,ack_payload
+	fetch 2,mem_len
+	arg 0x2e0,temp //l2cap buffer size
+	isub temp,null
+	branch error_payload,positive
+	fetch 1,mem_l2cap_rxbuff_inuse
+	bbit0 L2CAP_INUSE_BUFF1,process_dmh_data_into_buff1
+	bbit0 L2CAP_INUSE_BUFF2,process_dmh_data_into_buff2
+	branch end_of_packet
+process_dmh_data_into_buff1:
+	jam 1,mem_l2cap_rxbuff_new //new data in buff 1
+	fetch 2,mem_l2cap_rxbuff1_len
+	bne 0,end_of_packet			//baseband head error
+	arg mem_l2cap_rxbuff1,contw
+	branch process_dmh_data
+process_dmh_data_into_buff2:
+	jam 2,mem_l2cap_rxbuff_new //new data in buff 2
+	fetch 2,mem_l2cap_rxbuff2_len
+	bne 0,end_of_packet
+	arg mem_l2cap_rxbuff2,contw
+	branch process_dmh_data
+	
+process_dmh_data_l2cap_continue_pkt:
+	bpatch patch0b_3,mem_patch0b
+	bmark1 mark_old_packet,ack_payload
+	fetch 2,mem_len
+	arg 0x2e0,temp //l2cap buffer size
+	isub temp,null
+	branch error_payload,positive
+	fetch 1,mem_l2cap_rxbuff_new
+	beq 1,process_dmh_data_l2cap_continue_pkt1
+	beq 2,process_dmh_data_l2cap_continue_pkt2
+	branch end_of_packet
+process_dmh_data_l2cap_continue_pkt1:
+	arg mem_l2cap_rxbuff1,contw
+	fetch 2,mem_l2cap_rxbuff1_len
+	iadd contw,contw
+	branch process_dmh_data
+process_dmh_data_l2cap_continue_pkt2:
+	arg mem_l2cap_rxbuff2,contw
+	fetch 2,mem_l2cap_rxbuff2_len
+	iadd contw,contw
+process_dmh_data:	
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	istore 1,contw
+	loop process_dmh_data
+process_dmh_data_end:	
+	bpatch patch0b_4,mem_patch0b
+	parse demod,bucket,16  /* cycle through the crc */
+	branch error_payload_crc,crc_failed
+	call check_enc_ccm
+	call enable_user2
+	ncall ccm_br_decrypt_new,blank
+	nbranch error_mic_error,user2
+	call rf_debug_rx_crc_line	//L
+
+	fetch 1,mem_l2cap_flow_ctrl_flag
+	beq L2CAP_FLOW_CTRL_ENABLE,flow_ctrl
+
+	bmark1 mark_testmode,process_dmh_cont
+	bmark1 mark_old_packet,redundant_payload
+	fetch 1,mem_lch_code
+	compare 3,pdata,3
+	branch process_dmh_cont,true
+	fetch 2,mem_len
+	branch process_dmh_cont,blank
+	bpatch patch0b_5,mem_patch0b
+	fetch 1,mem_l2cap_rxbuff_new
+	beq 1,process_l2cap_pass_crc_buff1
+	beq 2,process_l2cap_pass_crc_buff2
+	branch assert
+process_l2cap_pass_crc_buff1:
+	fetch 2,mem_l2cap_rxbuff1_len
+	fetcht 2,mem_len
+	iadd temp,pdata
+	store 2,mem_l2cap_rxbuff1_len
+	rtn blank
+	fetcht 2,mem_l2cap_rxbuff1// l2cap payload length
+	increase 4,temp
+	isub temp,null
+	call l2cap_buff1_inuse,zero //l2cap pkts not ended
+	branch process_dmh_cont
+process_l2cap_pass_crc_buff2:
+	fetch 2,mem_l2cap_rxbuff2_len
+	fetcht 2,mem_len
+	iadd temp,pdata
+	store 2,mem_l2cap_rxbuff2_len
+	rtn blank
+	fetcht 2,mem_l2cap_rxbuff2// l2cap payload length 
+	add temp,4,temp
+	isub temp,null
+	call l2cap_buff2_inuse,zero //l2cap pkts not ended
+//	branch process_dmh_cont
+process_dmh_cont:
+	bpatch patch0b_6,mem_patch0b
+	fetcht 1,mem_state_map
+	fetch 1,mem_lch_code
+	compare 3,pdata,0x03
+	setflag true,smap_rxlmp,temp
+	nsetflag true,smap_rxl2cap,temp
+	storet 1,mem_state_map
+	nbranch process_dmh_cont_rxbuf_not_use,true
+	set1 mark_rxbuf_inuse,mark
+process_dmh_cont_rxbuf_not_use:
+	bmark0 mark_testmode,ack_payload
+	isolate1 smap_rxlmp,temp
+	branch ack_payload,true
+	fetch 2,mem_tst_pktcnt_crc
+	increase 1,pdata
+	store 2,mem_tst_pktcnt_crc
+	set1 mark_loopback,mark
+	set0 smap_rxl2cap,temp
+	set0 mark_rxbuf_inuse,mark
+	storet 1,mem_state_map
+ack_payload:
+	bpatch patch0b_7,mem_patch0b
+	call check_enc_ccm
+	ncall ccm_br_pcnt_rx_add,blank
+	fetcht 1,mem_temp_arq
+	fetch 1,mem_arq
+	set1 arqnx,pdata
+	isolate1 seqn,temp            /* if accept, seqn always copies from the header */
+	setflag true,seqn,pdata
+	isolate1 mark_am_addr_broadcast,mark
+	setflag true,bcast1,pdata
+	store 1,mem_arq
+	fetch 2,mem_len
+	nbranch end_of_packet,blank
+	fetch 1,mem_state_map
+	set0 smap_rxl2cap,pdata//better to do this in l2cap_flow_ctrl_stop
+	store 1,mem_state_map
+	fetch 1,mem_lch_code
+	compare 0x01,pdata,0x07
+	//call l2cap_flow_ctrl_stop,true
+	branch end_of_packet
+	
+error_header:
+	bpatch patch0c_0,mem_patch0c
+	disable match
+	fetch 2,mem_rx_hec_err
+	increase 1,pdata
+	store 2,mem_rx_hec_err
+	branch end_of_packet
+error_payload_crc:
+	fetch 2,mem_rx_crc_err
+	increase 1,pdata
+	store 2,mem_rx_crc_err
+	call discard_pkt
+	bmark0 mark_testmode,error_payload
+	set1 mark_loopback,mark
+error_payload:
+	branch end_of_packet
+
+flow_ctrl:
+error_mic_error:
+	branch error_payload_crc
+
+	
+discard_pkt:
+	bpatch patch0c_1,mem_patch0c
+	fetch 1,mem_lch_code
+	compare 3,pdata,0x03
+	nbranch discard_pkt_l2cap,true
+discard_pkt_lmp:	
+	fetcht 1,mem_state_map
+	set0 smap_rxlmp,temp
+	storet 1,mem_state_map
+	rtn
+discard_pkt_l2cap:
+//	isolate1 mark_testmode,mark
+//	setflag true,mark_loopback,mark
+	fetcht 1,mem_state_map
+	set0 smap_rxl2cap,temp
+	storet 1,mem_state_map
+	rtn
+
+redundant_payload:
+	fetch 1,mem_arq
+	set1 arqnx,pdata
+	store 1,mem_arq
+end_of_packet:
+	bpatch patch0c_2,mem_patch0c
+	disable encode_fec0
+	disable encode_fec2
+	disable decode_fec0
+	disable decode_fec2
+	disable enable_crc
+	disable encrypt
+	disable enable_white
+	branch shutdown_radio,is_rx
+	until null,tx_clear
+	nop 100          /* flush out the last bit */
+	branch shutdown_radio
+	
+process_fhs:
+	bpatch patch0c_3,mem_patch0c
+	enable enable_crc
+	enable decode_fec2
+	parse demod,bucket,72
+	isolate1 58,pdata
+	setflag true,mark_fhs_eir,mark
+	copy bt_adr,temp             /* save current address to aside */
+	ialigned bt_adr            /* send it to access gen */
+	ialigned fhs0			/* get fhs_misc */
+	pulse recalc                /* calc the lap just received from the other guy */
+	setsect 2,0xfffff             /* preset ms of shift reg as big mask */
+	setsect 3,0x0ffff             /* preset ms of shift reg as big mask */
+	nop 32                       /* 30 cycles after recalc */
+	iverify fhs_parity             /* check fhs_parity against ls 34 bits at shift reg, with msb 36 bits as mask */
+	deposit lap
+	store 3,extm_lap
+	deposit uap
+	store 1,extm_uap
+	copy temp,bt_adr             /* put the address back */
+	branch fhs_parity_ok,true     /* fhs parity failed */
+	branch error_payload
+fhs_parity_ok:
+	bpatch patch0c_4,mem_patch0c
+	parse demod,bucket,72
+	ialigned fhs1                   /* give host the information on class and fhs_misc */
+	ialigned am_addr                /* store the am_addr the master assigned us */
+	ialigned nap
+	ialigned regb                   /* store external clock in regb according to clock format */
+	force 0,pdata
+	parse demod,bucket,16  /* cycle through the crc */
+	branch error_payload,crc_failed
+	call rf_debug_rx_crc_line	//L
+	setarg 0x0ffffffc
+	iand regb,pdata
+	store 4,mem_clke_bt
+	deposit fhs_class
+	store 3,extm_class
+	deposit fhs_misc
+	store 1,extm_fhs_misc
+	deposit am_addr
+	store 1,extm_newconn_am_addr
+	deposit nap
+	store 2,extm_nap
+	deposit bt_clk
+	inject rxf,32
+	compare type_fhs,type,0x0f         /* see if this was fhs packet */
+	setflag true,mark_fhs_already_good,mark
+	branch end_of_packet
+
+clear_got_tx:
+	bpatch patch0c_5,mem_patch0c
+	fetch 1,mem_arq
+	rtnbit0 wack
+	set0 wack,pdata
+	setflip seqnx,pdata
+	store 1,mem_arq
+	call check_enc_ccm
+	ncall ccm_br_pcnt_tx_add,blank
+	fetch 1,mem_last_type
+	beq type_lmp,clear_got_txlmp
+	rtneq type_hv3
+	fetch 1,mem_op
+	rtnbit0 op_txl2cap,pdata
+	set0 op_txl2cap,pdata
+	set1 op_pkt_comp,pdata
+	store 1,mem_op
+	set0 mark_tx_l2cap,mark
+	fetch 2,mem_l2cap_tx_multi_offset
+	nrtn blank
+	fetch 1,mem_op
+	set0 op_pkt_comp,pdata
+	store 1,mem_op
+	branch l2cap_malloc_free
+
+clear_got_txlmp:
+	bpatch patch0c_6,mem_patch0c
+	fetch 1,mem_lmo_header_opcode_x
+	rshift pdata,pdata
+	beq LMP_START_ENCRYPTION_REQ,start_encryption
+	beq LMP_STOP_ENCRYPTION_REQ,stop_encryption
+	beq LMP_UNSNIFF_REQ, sniff_exit
+	beq LMP_ESCAPE,clear_lmp_escape
+	rtnne LMP_ACCEPTED
+	fetch 1,mem_lmo_payload
+	beq LMP_START_ENCRYPTION_REQ,clear_send_setup_complete
+	rtn
+
+clear_lmp_escape:
+	fetch 1,mem_lmo_payload
+	set1 7,pdata
+	rtn
+clear_send_setup_complete:
+	rtn master
+	fetch 1,mem_state
+	rtnbit1 state_conn_comp
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	rtn
+	
+	
+start_encryption:
+	bpatch patch0c_7,mem_patch0c
+	fetch 1,mem_state_map
+	set1 smap_encryption,pdata
+	store 1,mem_state_map
+	jam 1,core_encrypt
+	force 0,pdata
+	store 5,mem_ccm_pcnt_rx
+	set1 BR_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_tx	
+	rtn	
+
+stop_encryption:
+	bpatch patch0d_0,mem_patch0d
+	fetch 1,mem_state_map
+	set0 smap_encryption,pdata
+	store 1,mem_state_map
+	jam 0,core_encrypt
+	rtn
+
+
+sniff_init:
+	bpatch patch0d_1,mem_patch0d
+	add clkn_bt,3,rega
+	branch sniff_init_master,master
+	add clke_bt,3,rega
+sniff_init_master:
+	fetcht 2,mem_tsniff
+	deposit rega
+	set0 27,pdata
+	idiv temp
+	fetch 2,mem_dsniff
+	call wait_div_end
+	remainder regc
+	isub regc,pdata
+	branch sniff_init_nowrap,positive
+	iadd temp,pdata
+sniff_init_nowrap:
+	iadd rega,pdata
+	store 4,mem_sniff_anchor
+	jam SWITCH_FLAG_INIT,mem_switch_flag
+	fetch 1,mem_state
+	set1 state_insniff,pdata
+	store 1,mem_state
+	fetch 1,mem_sniff_attempt
+	store 1,mem_current_sniff_attempt
+	setarg 0
+	store 3,mem_sniff_rcv
+	store 3,mem_sniff_lost
+	store 1,mem_sniff_unint_lost
+	jam BT_EVT_ENTER_SNIFF,mem_fifo_temp
+	call ui_ipc_send_event
+	fetch 2,mem_rx_window_sniff
+	store 2,mem_rx_window
+	nrtn master
+	add am_addr,-1,queue
+	rtn
+
+sniff_exit:
+	bpatch patch0d_2,mem_patch0d
+	fetch 1,mem_state
+	rtnbit0 state_insniff
+	set0 state_insniff,pdata
+	store 1,mem_state
+	fetch 2,mem_rx_window_init
+	store 2,mem_rx_window
+	disable wake
+	jam BT_EVT_EXIT_SNIFF,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+check_attempt:
+	bpatch patch0d_3,mem_patch0d
+	enable attempt
+	fetch 1,mem_state
+	bbit1 state_insniff,check_attempt_sniff
+	rtnmark1 mark_testmode						/* pdata won't be blank now, try attempt */
+	fetch 1,mem_arq
+	rtnbit1 wack
+	fetch 1,mem_lmp_to_send
+	nrtn blank
+	fetch 1,mem_op
+	rtnbit1 op_txl2cap
+check_attempt_nomore:
+	force 0,pdata
+	rtn
+
+check_attempt_sniff:
+	bbit0 state_insco,check_attempt_not_sco
+	fetch 1,mem_current_sniff_attempt
+	beq 2,check_attempt_sniff_restore_sco
+	fetch 1,mem_arq
+	bbit1 wack,check_attempt_notimeout
+	bmark0 mark_esco_rxok,check_attempt_notimeout
+check_attempt_sniff_restore_sco:
+	nbranch check_attempt_notimeout,master
+	fetch 1,mem_lmp_to_send
+	nbranch check_attempt_notimeout,blank
+check_attempt_sco_master:
+	branch check_attempt_nomore
+
+
+
+
+
+	
+check_attempt_not_sco:
+	fetch 1,mem_current_sniff_attempt
+	bne 1,check_attempt_notimeout
+	fetch 1,mem_current_sniff_timeout
+	branch check_attempt_notimeout,blank
+	increase -1,pdata
+	store 1,mem_current_sniff_timeout
+	fetch 1,mem_arq
+	rtnbit1 wack						// waiting for next ack
+	nrtn match						// waiting for next poll
+check_attempt_notimeout:
+	fetch 1,mem_current_sniff_attempt
+	increase -1,pdata
+	store 1,mem_current_sniff_attempt
+	rtn
+
+
+
+
+
+
+
+
+
+	/* enable user if sniff window vialation, queue is extra overhead */
+sniff_check_window:
+	bpatch patch0d_4,mem_patch0d
+	disable swfine
+	copy temp,stop_watch
+	call context_search_sniff_window
+	disable user
+	nrtn zero
+	force 0,stop_watch
+	enable user
+	rtn
+
+	//return true if it is esco context
+check_esco_amaddr:
+	fetch 1,mem_esco_addr
+	icompare 0xff,am_addr
+	rtn
+	
+
+parse_l2cap:	
+	bpatch patch0d_5,mem_patch0d
+	set0 mark_rxbuf_inuse,mark 
+parse_l2cap_cont:
+	jam L2CAP_RX_CLEAR,mem_l2cap_rx_done
+	fetch 1,mem_l2cap_rxbuff_inuse
+	rtn blank
+	isolate1 L2CAP_INUSE_BUFF1,pdata
+	arg mem_l2cap_rxbuff1,contr
+	call process_rx_l2cap_pkt,true
+	bpatch patch0d_6,mem_patch0d
+	fetch 1,mem_l2cap_rx_done
+	beq L2CAP_RX_DONE,parse_l2cap_release_buff1
+	
+	jam L2CAP_RX_CLEAR,mem_l2cap_rx_done
+	fetch 1,mem_l2cap_rxbuff_inuse
+	rtnbit0 L2CAP_INUSE_BUFF2
+	arg mem_l2cap_rxbuff2,contr	
+	call process_rx_l2cap_pkt
+	fetch 1,mem_l2cap_rx_done
+	beq L2CAP_RX_DONE,parse_l2cap_release_buff2
+	rtn
+		
+parse_l2cap_release_buff1:
+	fetch 1,mem_l2cap_rxbuff_inuse
+	set0 L2CAP_INUSE_BUFF1,pdata
+	store 1,mem_l2cap_rxbuff_inuse
+	setarg 0
+	store 2,mem_l2cap_rxbuff1_len
+	rtn
+parse_l2cap_release_buff2:
+	fetch 1,mem_l2cap_rxbuff_inuse
+	set0 L2CAP_INUSE_BUFF2,pdata
+	store 1,mem_l2cap_rxbuff_inuse
+	setarg 0
+	store 2,mem_l2cap_rxbuff2_len
+	rtn
+
+l2cap_buff1_inuse:
+	fetch 1,mem_l2cap_rxbuff_inuse
+	set1 L2CAP_INUSE_BUFF1,pdata
+	store 1,mem_l2cap_rxbuff_inuse
+	rtn
+
+l2cap_buff2_inuse:
+	fetch 1,mem_l2cap_rxbuff_inuse
+	set1 L2CAP_INUSE_BUFF2,pdata
+	store 1,mem_l2cap_rxbuff_inuse
+	rtn
+
+/******************************************/
+/**********  Transmit Packet  *************/
+/******************************************/
+
+slave_send_access:
+	bpatch patch0d_7,mem_patch0d
+	add clke_bt,1,bt_clk          /* slave start to use native clock */
+	call fetch_extm_bt_adr
+	force 0x03,freq_mode          /* connection frequency */
+	call tx_radio_freq
+	call start_transmitter
+	call start_tx_external
+	branch send_access_word
+	
+
+slave_conn_send_packet:
+	bpatch patch0e_0,mem_patch0e
+	call rf_setup_time_slave_slot
+	deposit clke_bt
+	fetcht 4,mem_next_btclk
+	isub temp,pdata
+	rtnne 1					/* missed slave slot */
+	compare type_null,type,0x1f
+	nbranch slave_conn_send_access,true
+	fetch 1,mem_rx_type
+	rtn blank					/* null packet, do nothing */
+slave_conn_send_access:
+	call slave_send_access
+transmit_packet:
+	compare type_id,type,0x1f        /* is this id only ? */
+	branch end_of_packet,true
+	rshift bt_clk,temp
+	or temp,0x40,white_init
+transmit_packet_whitened:
+	bpatch patch0e_1,mem_patch0e
+	enable enable_white
+	enable enable_hec
+	enable encode_fec1
+	set0 mark_longpacket,mark
+	deposit am_addr
+	inject mod,3             /* am_addr, temp is disabled */
+	deposit type
+	inject mod,4
+	fetch 1,mem_arq   /* aka mem_arq */
+	inject bucket,4  /* align up to flowx, arqnx, seqnx */
+	inject mod,3
+	enable enable_parity
+	inject mod,8   /* transmit parity */
+	disable encode_fec1
+	disable enable_parity
+	disable enable_hec
+	set0 PSK3M,radio_ctrl
+	arg 0,temp
+	call reserve_slot
+	bpatch patch0e_2,mem_patch0e
+	and type,0x1f,pdata
+	beq type_lmp, transmit_lmp
+	beq type_null, end_of_packet
+	beq type_poll, end_of_packet
+	beq type_fhs, transmit_fhs  /* master mode fhs need got_tx and ack */
+	beq type_dm1, transmit_dm1
+	beq type_dh1, transmit_dh1
+	beq type_3dh1, transmit_3dh1
+	arg 4,temp
+	call reserve_slot
+	beq type_dm3, transmit_dm3
+	beq type_dh3, transmit_dh3
+	arg 8,temp
+	call reserve_slot
+	beq type_dh5, transmit_dh5
+	branch transmit_dm5	/* must be 14, dm5 */
+
+
+	
+transmit_fhs:
+	bpatch patch0e_3,mem_patch0e
+	fetch 1,mem_fhs_am_addr            /* this is the am_addr to assign to slave */
+	icopy am_addr
+	fetch 1,mem_fhs_misc
+	icopy fhs_misc    /* [7:6]SR [5:4]SP [3:1]PS [0]undef  */
+	fetch 3,mem_class   /* store away class */
+	icopy fhs_class
+	fetch 2,mem_nap
+	icopy nap
+	enable enable_crc
+	enable encode_fec2
+	copy bt_adr,rega
+	call fetch_self_bt_adr
+	pulse recalc
+	nop 32                    /* 30 cycles after recalc for sync word generation */
+	copy bt_clk,timeup
+	fetch 4,mem_clkn_bt
+	icopy bt_clk
+	preload fhs0
+	set1 58,pdata		/* eir */
+	inject mod,72
+	preload fhs1
+	inject mod,72
+	copy timeup,bt_clk
+	copy rega,bt_adr
+	enable enable_parity
+	inject mod,16   /* generate CRC */
+	disable enable_parity
+	branch end_of_packet
+
+transmit_lmp_ccm:
+	disable encrypt
+	branch transmit_lmp_common
+	
+transmit_lmp:
+	bpatch patch0e_4,mem_patch0e
+	call check_enc_ccm
+	nbranch transmit_lmp_ccm,blank
+	enable encrypt
+transmit_lmp_common:
+	enable enable_crc
+	enable encode_fec2
+	fetch 1,mem_lmo_header_length   /* this is the payload header */
+	and pdata,0x1f8,temp       /* temp is number of bits, check payload header format */
+	arg mem_lmo_header_length,contr
+	increase 8,temp   /* temp is in bits */
+	rshift3 temp,loopcnt
+transmit_lmp_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop  transmit_lmp_loop
+	branch transmit_end
+
+
+transmit_dm1:
+	enable encode_fec2
+	branch transmit_dmh
+transmit_dm3:
+transmit_dm5:
+	enable encode_fec2
+	set1 mark_longpacket,mark
+	branch transmit_dmh
+
+transmit_3dh1:
+	set1 PSK3M,radio_ctrl
+transmit_dh1:
+	enable encode_fec0
+	branch transmit_dmh
+	
+transmit_dh3:
+transmit_dh5:
+	set1 PSK3M,radio_ctrl
+	enable encode_fec0
+	set1 mark_longpacket,mark
+
+transmit_dmh:
+	bpatch patch0e_5,mem_patch0e
+	fetch 1,mem_state_map
+	bbit0 smap_edr,transmit_noedr
+	sub type,3,null
+	branch transmit_noedr,positive
+	disable encrypt
+	disable encode_fec2
+	enable encode_fec0
+	disable enable_white
+	set1 PSK,radio_ctrl
+	isolate1 PSK3M,radio_ctrl
+	branch transmit_edr3m,true
+	setarg 0xabeee
+	inject mod,20
+	branch transmit_edr_sync_end
+transmit_edr3m:
+	setarg 0x5faeba
+	inject mod,24
+	setarg 0x12
+	inject mod,6
+transmit_edr_sync_end:	
+	enable enable_white
+	set1 mark_longpacket,mark
+transmit_noedr:
+	enable encrypt
+	enable enable_crc
+	bmark1 mark_loopback,transmit_loopback
+	fetch 1,mem_tx_lch
+	inject mod,3
+	fetch 2,mem_tx_len
+	iforce loopcnt
+	bmark1 mark_longpacket,transmit_long
+	inject mod,5
+	branch transmit_stuff
+transmit_long:	
+	inject mod,13
+transmit_stuff:
+	deposit loopcnt
+	branch transmit_end,blank
+	fetch 2,mem_txptr
+	iforce contr
+transmit_stuff_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop transmit_stuff_loop
+//	branch transmit_end
+
+transmit_end:
+	bpatch patch0e_6,mem_patch0e
+	call check_enc_ccm
+	branch transmit_end2,blank
+	fetch 4,mem_le_mic  
+	inject mod,32
+transmit_end2:	
+	enable enable_parity
+	inject mod,16
+	disable enable_parity
+	call set_wait_ack
+	fetch 1,mem_state_map
+	bbit0 smap_edr,end_of_packet
+	force 0,pdata
+	inject mod,6				/* edr trailer */
+	branch end_of_packet
+
+
+transmit_loopback:
+	bpatch patch0e_7,mem_patch0e
+	bmark1 mark_longpacket,transmit_loopback_long
+transmit_loopback_short:
+	fetch 1,mem_lch_code
+	inject mod,3						/* LLID and FLOW */
+	fetch 1,mem_len	/* take packet length */
+	iforce regc
+	inject mod,5
+	branch transmit_loopback_cont
+transmit_loopback_long:
+	fetch 1,mem_lch_code
+	inject mod,3						/* LLID and FLOW */
+	fetch 2,mem_len	/* take packet length */
+	iforce regc
+	inject mod,13
+transmit_loopback_cont:
+	arg mem_l2cap_rxbuff1,contr
+transmit_loopback_loop:	
+	copy regc,null
+	branch transmit_loopback_end,zero
+	ifetch 1,contr
+	inject mod,8
+	increase -1,regc
+	branch transmit_loopback_loop
+transmit_loopback_end:
+	fetch 2,mem_tst_pktcnt_dmh
+	increase 1,pdata
+	store 2,mem_tst_pktcnt_dmh
+	branch transmit_end
+	
+
+apply_switch_clke:
+	fetch 4,mem_clke_bt
+	add pdata,7,rega
+	fetch 2,mem_slot_offset
+	nbranch apply_switch_nozero,blank
+	increase -3,rega
+	branch apply_switch_wait_loop
+apply_switch_nozero:
+	mul32 pdata,12,pdata
+	fetcht 2,core_halfslot
+	increase 1,temp
+apply_switch_loop:
+	isub temp,pdata
+	nbranch apply_switch_bt,positive
+	increase -1,rega
+	branch apply_switch_loop
+apply_switch_bt:
+	sub pdata,0,pdata
+apply_switch_wait_loop:
+	until null,oneslot
+	compare 0,clkn_bt,3
+	nbranch apply_switch_wait_loop,true
+	iforce clke_rt
+	copy rega,clke_bt
+	iforce clke_rt
+	rtn
+	
+
+calc_slot_offset:
+	bpatch patch0f_0,mem_patch0f
+	until null,halfslot
+	deposit clke
+	iforce contr
+	rshift16,pdata,pdata
+	isub clkn_bt,loopcnt
+	and_into 3,loopcnt			/* bt portion */
+	nbranch calc_bt_portion,zero
+	force 0,pdata
+	branch calc_skip_bt
+calc_bt_portion:
+	fetcht 2,mem_param_rt_rthalfslot
+	force 0,pdata
+calc_slot_offset_loop:
+	iadd temp,pdata
+	loop calc_slot_offset_loop
+calc_skip_bt:
+	iadd contr,pdata			/* add rt portion */
+	div pdata,12
+	call get_div_result
+	store 2,mem_slot_offset
+	rtn
+
+calc_clke_offset:
+	bpatch patch0f_1,mem_patch0f
+	deposit clke
+	copy clkn,temp
+	isub temp,null
+	nsetflag positive,44,pdata
+	isub temp,temp
+	fetch 2,mem_param_rt_rthalfslot
+	isolate0 15,temp
+	branch calc_clke_pos,true
+	copy temp,alarm
+	arg 0x10000,temp
+	fetch 2,mem_param_rt_rthalfslot
+	isub temp,pdata
+	iadd alarm,temp
+	
+calc_clke_pos:
+	storet 6,mem_le_clk_offset
+	rtn le
+	storet 6,mem_clk_offset
+	rtn
+
+calc_clke:
+	disable clknt
+	fetch 6,mem_le_clk_offset
+	branch calc_clke2,le
+	fetch 6,mem_clk_offset
+calc_clke2:
+	iadd clkn,alarm
+	increase 10,alarm
+	fetch 2,mem_param_rt_rthalfslot
+	isub alarm,pdata
+	isolate0 15,pdata
+	branch calc_clke_pos_adj,true
+	setarg 0x10000
+	fetchr regd,2,mem_param_rt_rthalfslot
+	isub regd,pdata
+	iadd alarm,alarm
+calc_clke_pos2:
+	copy alarm,clke
+	rtn
+calc_clke_pos_adj:		/* add 2 clock */
+	force 0,null
+	branch calc_clke_pos2
+	
+/******************************************/
+/********* RF related functions ***********/
+/******************************************/
+
+calc_mod_value_scale:
+	branch calc_mod_value_scale_le2,le
+	setarg 0x402c17
+	store 3,mem_scale_ratio
+	rshift16 access,pdata
+	rshift3 pdata,temp
+	arg 48,loopcnt
+calc_mod_value_scale_do:
+	setarg 0
+	store 3,mem_xcnt
+calc_mod_vs_loop:
+	rshift temp,pdata
+	ixor temp,pdata
+	and_into 3,pdata
+	bbit0 1,calc_mod_vs01
+	pincrease -1
+calc_mod_vs01:
+	arg mem_xcnt,contw
+	iadd contw,contw
+	ifetch 1,contw
+	pincrease 1
+	istore 1,contw
+	rshift temp,temp
+	loop calc_mod_vs_loop
+	arg mem_xcnt+2,rega
+	arg mem_scale_ratio,regb
+	arg 0,regc
+	arg 3,loopcnt
+calc_mod_vs_loop2:
+	ifetch 1,rega
+	ifetcht 1,regb
+	imul32 temp,pdata
+	iadd regc,regc
+	increase -1,rega
+	increase 1,regb
+	loop calc_mod_vs_loop2
+	fetch 1,mem_scale_ratio+1
+	lshift8 pdata,pdata
+	lshift4 pdata,pdata
+	idiv regc
+	call wait_div_end
+	quotient pdata
+	store 2,mod_value_scale1
+	store 2,mem_scale_ratio_temp
+	rtn
+
+calc_mod_value_scale_le2:
+	fetch 2,mem_scale_ratio_temp
+	store 2,mod_value_scale1
+	rtn
+
+calc_mod_value_scale_le:
+	setarg 0x402d19
+	store 3,mem_scale_ratio
+	rshift32 access,pdata
+	rshift3 pdata,temp
+	arg 32,loopcnt
+	branch calc_mod_value_scale_do
+
+calc_radio_freq:
+	bpatch patch0f_2,mem_patch0f
+	call set_sync_on
+	copy bt_clk,pdata
+	and_into 0x180,pdata
+	compare 3,freq_mode,0x07
+	nbranch freq_not_connection,true    /* don't do the hack if not in connection */
+	rshift3 pdata,pdata
+	iadd freq_index,pdata
+	branch do_hop_mod_now
+freq_not_connection:	
+	copy freq_index,pdata
+do_hop_mod_now:
+	div pdata,79
+	pulse recalc         /* now is good time to recalc id */
+	call wait_div_end
+	remainder rega
+	add rega,-40,temp
+	branch odd_half,positive
+	lshift rega,temp
+	branch freq_result
+odd_half:
+	lshift temp,temp
+	increase 1,temp
+freq_result:	
+	bpatch patch0f_3,mem_patch0f
+	fetch 1,mem_mode
+	bbit0 afh_change,afh_process_con
+afh_process_0:	
+	fetch 4, mem_afh_instant   
+	isub bt_clk, null
+	branch afh_process_con,positive
+	call afh_clear
+	fetch 1,mem_afh_new_mod
+	rtn blank
+	fetch 1,mem_mode
+	set1 afh_enable,pdata
+	store 1,mem_mode
+	fetch 5,mem_afh_map_new
+	store 5,mem_afh_map_lo
+	ifetch 5,contr
+	store 5,mem_afh_map_hi
+	call afh_process_freq_map
+afh_process_con:
+	fetch 1,mem_mode
+	rtnbit0 afh_enable
+	isolate1 1,bt_clk
+	branch afh_same_channel,true	/* at odd slot, use the same as last even */
+	rshift3 temp,rega
+	and temp,7,queue
+	setarg mem_afh_map_lo  
+	iadd rega, rega
+	ifetch 1, rega
+	qisolate0 pdata
+	branch afh_process_1,true		/* not in map, do afh */
+	deposit temp
+	branch afh_process_end
+afh_process_1:
+	fetch 1, mem_afh_used
+	iforce regb                     
+	deposit bt_clk
+	and_into 0x180, pdata
+	rshift3 pdata,pdata
+	iadd freq_index,pdata
+	idiv regb
+	setarg mem_afh_map     
+	call wait_div_end
+	remainder rega
+	iadd rega,contr
+	ifetch 1,contr
+afh_process_end:	
+	store 1,mem_afh_index
+	iforce temp  
+  	rtn
+
+afh_same_channel:
+	fetch 1, mem_afh_index           /* last afh index  */
+	iforce temp
+	rtn
+
+afh_clear:
+	fetch 1,mem_mode
+	set0 afh_enable,pdata
+	set0 afh_change,pdata
+	store 1,mem_mode
+	rtn
+/*
+fixed_frequency:
+	fetcht 1,mem_fixed_freq
+	rtn
+*/
+afh_process_freq_map:
+	bpatch patch0f_4,mem_patch0f
+	arg mem_afh_map,contw
+	force 10,loopcnt
+	call memset0
+	arg mem_afh_map,contw
+	force 0,regc
+	force 2,queue
+process_freq_3:	
+	fetch 5,mem_afh_map_lo
+	iforce temp
+	compare 2,queue,0xff
+	branch process_freq_1,true
+	rshift temp,temp
+process_freq_1:	
+	isolate0 0,temp
+	branch process_freq_0,true
+	deposit regc
+	istore 1,contw
+process_freq_0:
+	rshift2 temp,temp
+	increase 2,regc
+	compare 40,regc,0xfe
+	nbranch process_freq_2,true
+	fetch 5,mem_afh_map_hi
+	iforce temp
+	compare 2,queue,0xff
+	branch process_freq_2,true
+	rshift temp,temp
+process_freq_2:	
+	sub regc,78,null
+	branch process_freq_1,positive
+	force 1,regc
+	increase -1,queue
+	nbranch process_freq_3,zero
+	arg mem_afh_map,rega
+	deposit contw
+	isub rega,pdata
+	store 1,mem_afh_used
+	rtn
+
+rx_radio_freq:
+	bpatch patch0f_5,mem_patch0f
+	call calc_radio_freq
+	fetch 1,mem_debug_config
+	bbit0 debug_rx_fixed_freq,rx_radio_freq_now
+	fetcht 1,mem_rx_fixed_freq
+rx_radio_freq_now:
+	branch set_freq_rx
+	
+
+tx_radio_freq:
+	bpatch patch0f_6,mem_patch0f
+	call calc_radio_freq
+	fetch 1,mem_debug_config
+	bbit0 debug_tx_fixed_freq,tx_radio_freq_now
+	fetcht 1,mem_tx_fixed_freq
+tx_radio_freq_now:
+	branch set_freq_tx
+	
+
+fetch_giac:
+	force 0,uap
+	fetch 3,mem_glap
+	iforce lap
+	rtn
+
+fetch_page_bt_adr:
+	bpatch patch0f_7,mem_patch0f
+	fetch 1,mem_hci_puap
+	icopy uap
+	fetch 3,mem_hci_plap
+	icopy lap
+	rtn
+
+fetch_self_bt_adr:
+	bpatch patch10_0,mem_patch10
+	fetch 2,mem_nap
+	icopy nap
+	fetch 1,mem_uap
+	icopy uap
+	fetch 3,mem_lap
+	icopy lap                 /* copy self_adr,bt_adr */      /* use own address */
+	rtn
+
+fetch_extm_bt_adr:
+	bpatch patch10_1,mem_patch10
+	fetch 2,mem_pnap
+	icopy nap
+	fetch 1,mem_puap
+	icopy uap
+	fetch 3,mem_plap
+	icopy lap         
+	rtn
+
+
+fetch_diac:
+	bmark1 mark_all_diac,fetch_diac_do
+	rtnmark0 mark_inquiry_state
+	rtnmark0 mark_periodical_diac
+fetch_diac_do:
+	and_into -256,lap
+	pulse recalc
+	nop 32
+	rtn
+
+
+shutdown_radio:
+	bpatch patch10_2,mem_patch10
+	call rf_debug_shutdown_radio_line	//L-H-L
+	force 0x08,radio_ctrl
+	force 0,radio_ctrl
+	disable is_rx
+	disable is_tx
+	pulse packet_end
+	jam 0x5,modem_en
+	nop 2
+	jam 0x0,modem_en
+	call set_sync_on
+	jam 0,core_syn_en
+	jam 0x10,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0,core_rf_ldo_en1
+	branch gain_control
+
+
+
+set_sync_on:
+	bpatch patch10_3,mem_patch10
+	jam 0x5,modem_en
+	nop 2
+	jam 0x0,modem_en					/* if called from tx or rx */
+	fetch 1,mem_fcomp_div
+	beq XTAL_24M,set_sync_on_24m
+	beq XTAL_16M,set_sync_on_16m
+set_sync_on_24m:
+	jam 0xaa,core_rf_ldo_cfg4
+	jam 0xaa,core_rf_ldo_cfg5
+	jam 0x15,core_rf_ldo_cfg6
+	
+	jam 0x78,core_rf_ldo_en0 //ldo en
+	fetch 1,core_clkpll_cfg6
+	set1 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0x04,core_rf_ldo_en1
+	nop 60
+	jam 0x7a,core_syn_en //module en
+	jam 0,core_rx_en0
+	jam 0,core_rx_en1    
+	jam 0,core_tx_en0
+	jam 0,core_tx_en1
+
+	jam 0x2a,core_rf_ldo_cfg5  //ldo bleeding current disable
+	jam 0x78,core_rf_ldo_en0
+set_sync_on_next:
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0,core_syn_cal_ctrl
+	rtn
+
+set_sync_on_16m:
+	jam 0xe6,core_syn_aac_cfg1
+
+	jam 0xaa,core_rf_ldo_cfg4
+	jam 0xaa,core_rf_ldo_cfg5
+	jam 0x15,core_rf_ldo_cfg6
+	
+	jam 0x78,core_rf_ldo_en0 //ldo en
+	fetch 1,core_clkpll_cfg6
+	set1 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0x04,core_rf_ldo_en1
+	nop 60
+	jam 0x3a,core_syn_en //module en
+	jam 0,core_rx_en0                 
+	jam 0,core_rx_en1       
+	jam 0,core_tx_en0
+	jam 0,core_tx_en1
+
+	jam 0x2a,core_rf_ldo_cfg5  //ldo bleeding current disable
+	jam 0x38,core_rf_ldo_en0
+	branch set_sync_on_next
+
+set_freq_rx:
+	bpatch patch10_4,mem_patch10
+	
+	fetch 1,mem_fcomp_div
+	sub pdata,XTAL_24M,null
+	call rf_rx_write_freq_24m,zero
+	ncall rf_rx_write_freq_16m,zero
+
+	storet 1,mem_last_freq
+	add temp,0,pdata
+	bmark1 mark_ble_2M,set_rxfreq_2M_offset
+	add temp,1,pdata
+set_rxfreq_2M_offset:
+	call rf_rx_write_freq
+	branch calc_mod_value_scale
+
+
+rf_rx_write_freq_24m:
+	jam 0,core_syn_cal_ctrl
+	jam 0x04,core_syn_top_ctrl
+	jam 0,core_syn_mmd_cp_ctrl
+	jam 0x03,core_syn_cp_lpf_cfg
+	jam 0x40,core_syn_afc_cfg3
+	rtn
+rf_rx_write_freq_16m:
+	jam 0x30,core_syn_cal_ctrl
+	jam 0x06,core_syn_top_ctrl
+	jam 0,core_syn_mmd_cp_ctrl
+	jam 0x20,core_syn_cp_lpf_cfg
+	jam 0x15,core_syn_afc_cfg3
+	rtn
+
+rf_rx_enable:
+	bpatch patch10_5,mem_patch10
+	call rf_debug_rx_gpio_high
+	
+	fetch 1,mem_gain_fix
+	beq 0xff,rf_rx_enable_no_soft_agc 
+	arg mem_gain_table,contr
+	iadd contr,contr
+	ifetch 1,contr
+	store 1,core_rf_rx_gain_fix
+	jam 0x27,core_rf_rx_agc_ctrl
+	
+rf_rx_enable_no_soft_agc:
+	fetcht 1,mem_gain_second_agc_en	//0x00 or 0x08
+	fetch 1,core_rf_rx_agc_ctrl
+	ior temp,pdata
+	store 1,core_rf_rx_agc_ctrl
+
+	jam 0xaa,core_rf_ldo_cfg4 //ldo config set
+	jam 0x2a,core_rf_ldo_cfg5
+	jam 0x13,core_rf_ldo_cfg6
+	jam 0x7f,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	nop 60
+	jam 0x1f,core_rx_en0
+	jam 0xf8,core_rx_en1
+	jam 0x18,core_tx_en0
+	jam 0x00,core_rf_ldo_cfg4
+	jam 0x20,core_rf_ldo_cfg5
+	nop 10
+	jam 0x04,modem_en
+	nop 2
+	jam 0x0c,modem_en
+	rtn
+
+
+	/* pdata is frequency, 00=2400Mhz */
+rf_rx_write_freq:
+	bpatch patch10_6,mem_patch10
+	arg 2400,contr
+	iadd contr,pdata
+	fetcht 1,mem_fcomp_div
+	branch rf_write_freq_calc
+
+	/* rega is frequency, 00=2400Mhz */
+rf_tx_write_freq:
+	bpatch patch10_7,mem_patch10
+	fetch 1,mem_fcomp_div
+	sub pdata,XTAL_24M,null
+	call rf_tx_write_freq_24m,zero
+	ncall rf_tx_write_freq_16m,zero
+	
+	setarg 2400
+	iadd rega,pdata
+	lshift pdata,pdata
+	fetcht 1,mem_fcomp_div
+	mul32 temp,0x03,temp
+rf_write_freq_calc:	
+	lshift temp,temp
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	store 1,core_syn_divr_int
+	remainder pdata		
+	lshift16 pdata,pdata
+	lshift8 pdata,pdata
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	store 1,core_syn_divr_int+3
+	rshift8 pdata,pdata
+	store 1,core_syn_divr_int+2
+	rshift8 pdata,pdata
+	store 1,core_syn_divr_int+1
+	fetcht 1,core_syn_cal_ctrl		//reg syn_cal_ctrl[3:0] = 2??￥b0000, reset
+	and_into 0xf0,temp
+	storet 1,core_syn_cal_ctrl
+	nop 12
+	fetch 1,mem_fcomp_div
+	beq XTAL_24M,rf_write_freq_calc_24m
+	beq XTAL_16M,rf_write_freq_calc_16m
+rf_write_freq_calc_24m:	
+	or_into 0x0c,temp
+	storet 1,core_syn_cal_ctrl
+	nop 12
+	or_into 0x03,temp
+	storet 1,core_syn_cal_ctrl
+	rtn
+
+rf_write_freq_calc_16m:
+	or_into 0x3c,temp
+	storet 1,core_syn_cal_ctrl
+	nop 12
+	or_into 0x33,temp
+	storet 1,core_syn_cal_ctrl
+	rtn
+
+
+rf_tx_write_freq_24m:
+	jam 0,core_syn_cal_ctrl
+	jam 0x12,core_syn_top_ctrl
+	jam 0,core_syn_mmd_cp_ctrl
+	jam 0x03,core_syn_cp_lpf_cfg
+	jam 0xa6,core_syn_aac_cfg1
+	jam 0x40,core_syn_afc_cfg3
+	rtn
+
+rf_tx_write_freq_16m:
+	jam 0x30,core_syn_cal_ctrl
+	jam 0x15,core_syn_top_ctrl
+	jam 0,core_syn_mmd_cp_ctrl
+	jam 0x20,core_syn_cp_lpf_cfg
+	jam 0xa6,core_syn_aac_cfg1
+	jam 0x15,core_syn_afc_cfg3
+	rtn
+
+
+set_freq_tx:
+	bpatch patch11_0,mem_patch11
+
+	jam 0x12,core_syn_top_ctrl
+	storet 1,mem_last_freq
+	add temp,2,rega
+	call rf_tx_write_freq
+	nop 0x3c0
+
+txon:
+	bpatch patch11_1,mem_patch11
+	
+	jam 0xaa,core_rf_ldo_cfg4 //ldo config set
+	jam 0x2a,core_rf_ldo_cfg5
+	jam 0x10,core_rf_ldo_cfg6
+	
+	jam 0x7f,core_rf_ldo_en0	//ldo en
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0x07,core_rf_ldo_en1 
+	nop 60
+
+	jam 0x0d,core_tx_en0
+	jam 0xf9,core_tx_en1		// reg tx_en1[7:0] = 8??￥b11011001
+	jam 0x00,core_rf_ldo_cfg4
+	jam 0x20,core_rf_ldo_cfg5
+	nop 10
+	jam 0x01, modem_en
+	nop 2
+	jam 0x03, modem_en
+txon_next:	
+	bpatch patch11_2,mem_patch11
+	fetch 1,mem_tx_power
+	beq TX_POWER_3DB,set_tx_power_3db
+	beq TX_POWER_5DB,set_tx_power_5db
+	beq TX_POWER_6DB,set_tx_power_6db
+	beq TX_POWER_7DB,set_tx_power_7db
+	beq TX_POWER_10DB,set_tx_power_10db
+	beq TX_POWER_F3DB,set_tx_power_f3db
+	beq TX_POWER_F5DB,set_tx_power_f5db
+	beq TX_POWER_F20DB,set_tx_power_f20db
+	beq TX_POWER_F30DB,set_tx_power_f30db
+set_tx_power_0db:
+	jam 0x6a,core_tx_pwr_ctrl0
+	jam 0x07,core_tx_pwr_ctrl1
+set_rf_ldo_cfg89:
+	jam 0xa3,core_rf_ldo_cfg8
+	jam 0x07,core_rf_ldo_cfg9
+	rtn
+
+set_tx_power_3db:
+	jam 0x66,core_tx_pwr_ctrl0
+	jam 0x0b,core_tx_pwr_ctrl1
+set_rf_ldo_cfg89_2:
+	jam 0xaa,core_rf_ldo_cfg8
+	jam 0x0a,core_rf_ldo_cfg9
+	rtn
+
+set_tx_power_5db:
+	jam 0x6c,core_tx_pwr_ctrl0
+	jam 0x0d,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89_2
+
+set_tx_power_6db:
+	jam 0x6b,core_tx_pwr_ctrl0
+	jam 0x0f,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89_2
+
+set_tx_power_7db:
+	jam 0xa7,core_tx_pwr_ctrl0
+	jam 0x0f,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89_2
+
+set_tx_power_10db:
+	jam 0xb6,core_tx_pwr_ctrl0
+	jam 0x0f,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89_2
+
+set_tx_power_f3db:
+	jam 0x68,core_tx_pwr_ctrl0
+	jam 0x05,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+	
+set_tx_power_f5db:
+	jam 0x60,core_tx_pwr_ctrl0
+	jam 0x05,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+
+set_tx_power_f20db:
+	jam 0x53,core_tx_pwr_ctrl0
+	jam 0x01,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+
+set_tx_power_f30db:
+	jam 0x4c,core_tx_pwr_ctrl0
+	jam 0x00,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+
+
+initialize_radio:
+	jam clksel_rc,core_clksel
+initialize_radio_wait:
+	fetch 2,mem_rf_init_ptr
+	bbit0 14,initialize_radio_wait
+	iforce contr
+	arg 0x8a00,temp
+initialize_radio_loop:
+	ifetch 1,contr
+	beq 0xff,initialize_radio_cont
+	ior temp,contw
+	ifetch 1,contr
+	istore 1,contw
+	branch initialize_radio_loop
+	
+initialize_radio_cont:
+	bpatch patch11_3,mem_patch11
+	fetch 1,mem_wdt_always_work
+	call wdt_set_disable,blank
+
+	jam 0x05,core_clkpll_cfg0
+	jam 0x94,core_rx_iqadc_cfg
+	call initialize_rc_cal
+	call initialize_rf_ldo_cfg1
+	call initialize_syn_afc_cfg1
+	jam 0xe6,core_syn_aac_cfg1
+
+	//optimize RX SX pn
+	jam 0x90,core_syn_pfd_lkd_cfg
+	jam 0x0b,core_rf_ldo_cfg2
+	jam 0x05,core_rf_ldo_cfg3
+
+	//Improve auto agc
+	jam 0x76,core_agc_wb_sat_th
+	jam 0x76,core_agc_nb_sat_th
+
+	fetch 1,mem_fcomp_div
+	bne XTAL_16M,initialize_radio_cont_next
+	jam 0x34,core_clkpll_cfg5		//16M XTAL
+initialize_radio_cont_next:
+	jam 0xff,core_clkpll_ctrl1
+	nop 100
+	jam 0x0e,core_clkpll_ctrl2
+	jam 0x03,core_clkpll_ctrl0
+	
+	call set_tx_power_0db
+	
+	jam 0x2b,core_tx_mixer_cfg1
+	jam 0x13,core_tx_mixer_cfg2
+
+	call init_lpm_ctrl
+	nop 10
+	jam clksel_dpll,core_clksel
+	jam SYSTEM_CLK_12M,mem_system_clk
+	branch le_disable
+
+initialize_syn_afc_cfg1:
+	fetch 1,mem_syn_afc_cfg1
+	nbranch initialize_syn_afc_cfg1_set,blank
+	setarg 0x29
+initialize_syn_afc_cfg1_set:	
+	store 1,core_syn_afc_cfg1
+	rtn
+
+initialize_rf_ldo_cfg1:
+	fetch 1,mem_rf_ldo_cfg1
+	nbranch initialize_rf_ldo_cfg1_set,blank
+	setarg 0x00
+initialize_rf_ldo_cfg1_set:
+	store 1,core_rf_ldo_cfg1
+	rtn
+
+initialize_rc_cal:
+	fetch 1,mem_rc_cal
+	branch initialize_rc_cal_set,blank
+	setarg 0xd3
+initialize_rc_cal_set:	
+	store 1,core_rx_bq_bw_cal
+	rtn
+	
+	
+save_rssi:
+	bpatch patch11_4,mem_patch11
+	jam 0x20,mem_rssi_hex
+	fetch 1,modem_rssi
+	store 1,mem_modem_rssi
+	sub pdata,0xfc,null
+	nrtn positive
+	sub pdata,0x7f,null
+	rtn positive
+
+	fetch 1,modem_gain
+	and pdata,0x0f,temp
+	lshift temp,temp
+	rshift4 pdata,pdata
+	iadd temp,temp
+	mul32 temp,3,temp
+	fetch 1,mem_modem_rssi
+	sub pdata,0xff,pdata
+	iadd temp,pdata 
+	increase -5,pdata
+	store 1,mem_rssi_hex
+	rtn
+
+rssi_hex2dec:
+	fetch 1,mem_rssi_hex
+	call bcd
+	store 1,mem_rssi			/* bcd value */
+	rtn
+
+bcd:
+	and_into 0xff,pdata
+	div pdata,10
+	call get_div_result
+	lshift4 pdata,pdata
+	remainder temp
+	ior temp,pdata
+	rtn
+
+gain_control:
+	fetch 1,mem_gain_fix
+	rtneq 0xff
+	nbranch  gain_increase,sync
+	fetch 1,mem_modem_rssi
+	sub pdata,0xf0,null
+	nbranch gain_descend,positive
+	sub pdata,0x7f,null
+	branch gain_descend,positive
+	
+	fetchr rega, 1,core_rf_rx_gain_fix
+	fetch 1,mem_gain_fix
+	rtneq 0	
+	arg mem_gain_table,contr
+	iadd contr,contr
+	ifetch 1,contr
+	isub rega,null
+	nrtn zero
+	increase -2,contr
+	ifetcht  1,contr
+	rshift4 temp,pdata
+	rshift4 rega,regb
+	isub regb,regb
+	and temp,0xf,pdata
+	and rega,0xf,rega
+	isub rega,rega
+	lshift rega,pdata
+	iadd regb,regb
+	mul32 regb,3,regb
+	fetcht 1,mem_modem_rssi
+	and temp,0x80,pdata
+	rtn blank
+add_negative:
+	setarg 0x100
+	isub temp,temp
+	copy regb,pdata
+	isub temp,pdata
+	rtn positive
+	and pdata,0xff,pdata
+	rtneq 0xff
+	rtneq 0xfe
+	
+gain_increase:	
+	fetch 1,mem_gain_fix
+	beq 1,set_rx_gain0
+	beq 2,set_rx_gain1
+//	beq 0,set_rx_gain0
+	branch set_rx_gain0
+	
+gain_descend:
+	fetch 1,mem_gain_fix
+	beq 0,set_rx_gain1
+	beq 1,set_rx_gain2
+//	beq 2,set_rx_gain2
+set_rx_gain2:
+	jam 2,mem_gain_fix
+	rtn
+
+set_rx_gain0:
+	jam 0,mem_gain_fix
+	rtn
+	
+set_rx_gain1:
+	jam 1,mem_gain_fix
+	rtn
+
+	
+xtal_fast_wake:
+	setarg 0xf0f
+	branch lpm_write_config
+
+init_lpm_ctrl:
+	setarg 0x80f
+	branch lpm_write_config
+
+
+
+start_receiver:
+	bpatch patch11_5,mem_patch11
+	disable is_tx
+	enable is_rx
+	pulse init_encrypt
+	branch rf_rx_enable
+
+prep_crypt:
+	bpatch patch11_6,mem_patch11
+	call check_enc_ccm
+	nbranch prep_crypt_ccm, blank	
+	fetch 1,mem_state_map
+	isolate1 smap_encryption,pdata
+	setflag true,0,pdata
+	store 1,core_encrypt
+	arg mem_kc,contr
+	ifetch 9,contr
+	iforce kc_ls
+	ifetch 7,contr
+	iforce kc_ms
+	fetch 1,mem_key_size
+	add pdata,-1,g1l
+	pulse kc_p_activate               /* immediately start calculating primary Key */
+	rtn
+
+prep_crypt_ccm:
+	jam 0,core_encrypt
+	rtn
+	
+wait_access_end:
+	deposit clke
+	store 6,mem_sync_clke
+	disable decode_fec0
+	nbranch shutdown_radio,sync
+	fetch 2,mem_param_clke_cal
+	copy pdata,clke_rt
+	increase 1,clke_bt
+	and_into 0x1fc,clke_bt
+	rtn
+
+
+
+wait_access_mhalfbnd:
+	enable decode_fec0
+wait_access_mhalfbnd_correlate:
+	correlate null,mhalfbnd    /* keep correlating until sync is found, or clke half */
+	branch wait_access_end,sync
+	compare 0x02,clke_bt,0x02
+	nbranch wait_access_mhalfbnd_correlate,true
+	branch wait_access_end
+
+wait_access_clkn_rt:
+	bpatch patch11_7,mem_patch11
+	fetchr timeup,2,mem_param_conn_access	/* found sync must occur within this time */
+	enable decode_fec0
+	correlate clkn_rt,meet    /* keep correlating until sync is found, or until clkn_rt timeup */
+	disable decode_fec0
+	nbranch shutdown_radio,sync
+	rtn
+
+wait_access_forever:
+	bpatch patch12_0,mem_patch12
+	enable decode_fec0
+	correlate null,timeout    /* keep correlating until sync is found, or timeout */
+	disable decode_fec0
+	nbranch shutdown_radio,sync
+	fetch 2,mem_param_clke_cal
+	copy pdata,clke_rt
+	and_into 0x1fc,clke_bt
+	rtn
+
+	/* reserve slots for mult-slot packet */
+reserve_slot:
+	bpatch patch12_1,mem_patch12
+	iforce rega
+	deposit bt_clk
+	iadd temp,timeup
+	copy timeup,pdata
+	store 4,mem_next_btclk
+	deposit rega
+	rtn
+
+	/* pdata = clks ahead of bt_clk */
+ahead_window:
+	copy pdata,temp
+	bpatch patch12_2,mem_patch12
+	copy temp,pdata
+	call clk2bt
+	lshift16 bt_clk,pdata
+	set1 44,pdata
+	call clk_diff
+	set0 44,pdata
+	call get_clk
+	call clk_diff
+	rtn user
+	call clk2rt
+	iforce stop_watch
+	until null,timeout
+	rtn
+
+
+setup_clk:
+	bpatch patch12_3,mem_patch12
+	branch setup_clkn,clknt
+	until clke_rt,meet
+skip_setup_clke:
+	copy clke_bt,temp
+	branch setup_clknbt
+setup_clkn:
+	branch skip_setup_clkn,attempt
+	until clkn_rt,meet
+skip_setup_clkn:
+	copy clkn_bt,temp
+setup_clknbt:
+	branch setup_clk11,user
+	compare 1,temp,3
+	nbranch setup_clk,true
+setup_complete:
+	bpatch patch12_4,mem_patch12
+	fetch 1,mem_state
+	rtnbit0 state_inconn
+	fetch 4,mem_next_btclk
+	isub temp,pdata
+	nrtn positive
+	sub pdata,0xff,null
+	branch setup_clk,positive
+	rtn
+setup_clk11:
+	compare 3,temp,3
+	nbranch setup_clk,true
+	branch setup_complete
+
+rf_setup_time:
+	bpatch patch12_5,mem_patch12
+	fetchr timeup,2,mem_param_rf_setup
+	branch setup_clk
+	
+rf_setup_time_slave_slot:
+	disable user
+	branch rf_setup_time
+
+rf_setup_time_master_slot:
+	enable user
+	branch rf_setup_time
+	
+start_transmitter:
+	bpatch patch12_6,mem_patch12
+	call prep_crypt
+	disable is_rx
+	enable is_tx
+	rtn
+
+
+
+start_tx_native:
+	bpatch patch12_7,mem_patch12
+	fetchr timeup,2,mem_param_tx_setup
+	until clkn_rt,meet         /* wait until start_tx time */
+	pulse init_encrypt
+	rtn
+
+start_rx_native:
+	bpatch patch13_0,mem_patch13
+	fetchr timeup,2,mem_param_rx_setup
+	until clkn_rt,meet
+	rtn
+
+
+start_tx_external:
+	bpatch patch13_1,mem_patch13
+	fetchr timeup,2,mem_param_tx_setup
+	until clke_rt,meet         /* wait until start_tx time */
+	pulse init_encrypt
+	rtn
+
+send_access_word:
+	bpatch patch13_2,mem_patch13
+	call rf_debug_tx_on_line	//H
+	preload access          /* load in access word ready to be sent */
+	enable encode_fec0
+	set1 TXGFSK,radio_ctrl
+	inject mod,72
+	disable encode_fec0
+	rtn
+
+
+scan_mode_whiten:
+	copy xin,temp
+	or_into 0x60,temp                /* extend xin with 5->1, 6->1 */
+	copy temp,white_init
+	rtn
+
+
+
+	/* return blank if free amaddr is found */
+get_free_amaddr:
+	bpatch patch13_3,mem_patch13
+	fetch 1,mem_current_amaddr
+	increase 1,pdata
+	bne param_esco_addr,get_free_amaddr_cont
+	force 1,pdata
+get_free_amaddr_cont:
+	store 1,mem_current_amaddr
+	iforce am_addr
+	rtn
+
+get_clk:
+	copy clkn,temp
+	rtn master
+	copy clke,temp
+	rtn
+
+get_clkbt:
+	deposit clkn_bt
+	rtn master
+	deposit clke_bt
+	rtn
+
+
+supervision_update:
+	bpatch patch13_4,mem_patch13
+	fetcht 4,mem_supervision_timer
+	call get_clkbt
+	isub temp,timeup					/* and to 28 bits */
+	deposit timeup
+	fetcht 2,mem_supervision_to
+	lshift temp,temp
+	isub temp,pdata
+	rtn
+	
+supervision_flush:
+	bpatch patch13_5,mem_patch13
+	call get_clkbt
+	store 4,mem_supervision_timer
+	rtn
+
+assert:
+	bpatch patch13_6,mem_patch13
+	branch assert
+	
+loop:
+	branch loop
+
+sleep:	
+	rtn blank
+	/* sleep pdata clocks, only even clocks are accurate */
+	rshift pdata,pdata
+	increase -3,pdata
+sleep_loop:	
+	increase -1,pdata
+	nbranch sleep_loop,zero
+	force 0,pdata
+	rtn
+
+
+
+init_param:
+	/* clear specified sched ram */
+	arg 0x10,loopcnt
+	arg 0,contw
+	call memset0
+	arg mem_le_state,contw
+	arg 10,loopcnt
+	call memset0
+	jam 0,mem_sp_calc
+	jam 0,mem_fifo_temp
+	jam 0,mem_le_testtype
+	jam 0,mem_debug_config
+	jam 0,mem_lmp_conn_state
+	jam 0,mem_connection_options
+	jam 0,mem_tester_emulate
+	jam 0,mem_tester_cnt
+	setarg param_glap
+	store 3,mem_glap
+	jam 0x60,mem_fhs_misc		/* R1 for 1.28s ps interval,P2 */
+	jam param_max_slot,mem_max_slot
+	jam 0x02,mem_fw_ver		/* set firmware version */
+
+	setarg param_tx_setup
+	store 2,mem_param_tx_setup
+	setarg param_rf_setup
+	store 2,mem_param_rf_setup
+	setarg param_conn_access
+	store 2,mem_param_conn_access
+	setarg param_rx_setup
+	store 2,mem_param_rx_setup
+	setarg param_clke_cal
+	store 2,mem_param_clke_cal
+	setarg param_pll_setup
+	store 2,mem_param_pll_setup
+	setarg param_dpll_start_delay
+	store 2,mem_param_dpll_start_delay
+	setarg param_rt_rthalfslot
+	store 2,mem_param_rt_rthalfslot
+	setarg param_clke_cal_le_1m
+	store 2,mem_param_clke_cal_le_1m
+	setarg param_clke_cal_le_2m
+	store 2,mem_param_clke_cal_le_2m
+	setarg param_clke_cal_le_coded
+	store 2,mem_param_clke_cal_le_coded
+	setarg mem_ble_tx_buff0
+	store 2,mem_ble_l2cap_tx_buff0_ptr
+	setarg mem_ble_l2cap_tx_buff_size
+	store 2,mem_ble_l2cap_tx_buff_size_ptr
+	
+	call init_memp	
+	setarg mem_sp_state_end
+	arg mem_sp_state_start,contw
+	isub contw,loopcnt
+	call clear_mem
+
+init_param_next:
+	bpatch patch13_7,mem_patch13
+	rtn wake
+	setarg 0
+	store 2,mem_tx_len
+	rshift clkn_bt,pdata
+	store 4,mem_last_clkn
+	rtn
+
+clk24m_init:
+	jam 6,core_clksel
+	jam 1,core_clksel
+	nop 10
+	setarg 7498
+	store 2,core_halfslot
+	rtn
+
+
+ifdef COMPLIE_TEST_CODE
+
+test_init:
+	setarg test_proc
+	store 2,mem_cb_bt_process
+	setarg test_proc
+	store 2,mem_cb_idle_process
+	rtn
+
+test_proc:
+	fetch 1,mem_state
+	bbit0 state_insniff,check_test_cond
+	set1 mark_lpm_mult_enable,mark
+	fetch 6,mem_sniff_rcv
+	store 6,mem_local_name
+	rtn
+
+check_test_cond:
+	fetch 1,mem_tester_emulate
+	rtnbit0 tester_change
+	fetch 1,mem_tester_cnt
+	increase 1,pdata
+	store 1,mem_tester_cnt
+	rtnne 5
+	jam 0,mem_tester_cnt
+	fetch 1,mem_tester_emulate
+	set0 tester_change,pdata
+	store 1,mem_tester_emulate
+	bbit1 tester_exit,check_test_exit
+	isolate1 tester_no_whitening,pdata
+	call test_no_white,true
+	ncall test_enable_white,true
+	fetch 1,test_mode_packet_type
+	compare 0x20,pdata,0x30
+	fetch 1,mem_state_map
+	setflag true,smap_edr,pdata
+	store 1,mem_state_map
+	fetch 1,mem_tester_emulate
+	fetcht 1,mem_debug_config
+	isolate1 tester_pattern_test,pdata
+	setflag true,debug_tx_pattern,temp
+	isolate1 tester_fixed_freq,pdata
+	setflag true,debug_tx_fixed_freq,temp
+	setflag true,debug_rx_fixed_freq,temp
+	storet 1,mem_debug_config
+	fetch 1,test_mode_tx_freq
+	store 1,mem_tx_fixed_freq
+	fetch 1,test_mode_rx_freq
+	store 1,mem_rx_fixed_freq
+	set1 mark_testmode,mark
+	rtn
+	
+check_test_exit:
+	set0 mark_testmode,mark
+	jam 0,mem_tester_emulate
+	fetch 1,mem_test_mode_old_debug_config
+	store 1,mem_debug_config
+	branch test_enable_white
+
+endif
+
+/*****************************************LPO************************************************/
+
+lpmstate:
+	setarg 0xee21
+	store 2,core_clkoff			// disable unused peripherals
+	fetch 4,core_gpio_in
+	store 4,mem_saved_gpio_in
+	fetch 1,core_lpm_ctrl+3
+	store 1,mem_wakup_from_power_flag	//power up bit2 = 0
+	fetch 1,core_lpm_ldocnt
+	bbit0 gpio_latch,loadcode		// power up boot
+	enable wake
+	bbit0 cold_wake,lpmwake		
+	disable wake
+	deposit auxcnt
+	nbranch lpmwake,blank		// sleep interrupted, wakeup
+	fetch 1,core_lpm_ctrl+3
+	bbit1 reload_code,lpmwake
+	arg param_hibernate_clks,temp
+	branch lpm_enter_sleep
+lpmwake:
+	fetch 4,core_lpm_ctrl2
+	store 4,core_lpm_reg
+	fetch 1,core_lpm_ctrl2+1
+	and_into 0xe0,pdata			//digital aon ldo vout sel: 1.2v
+	store 1,core_lpm_reg+1
+	call lpm_write_ctrl3
+	fetch 3,core_lpm_xtalcnt
+	store 3,core_lpm_reg
+	ifetch 1,contr
+	or_into isogate_mask,pdata		// open all isolation gate&power switch
+	istore 1,contw
+	call lpm_write_ctrl2
+	fetch 1,core_lpm_isogate
+	set1 enable_retmem,pdata
+	store 1,core_lpm_isogate
+	call lpm_write_ctrl2
+	call lpm_load_context,wake
+	fetch 1,core_lpm_reg+2
+	set0 gpio_latch,pdata			// enable gpio fuction
+	store 1,core_lpm_reg+2
+	call lpm_write_ctrl2
+	nbranch loadcode,wake		// wakeup from hibernate
+	rtnmark0 mark_otp_encrypt
+	jam lock_otp,core_misc_ctrl	// disable further read/write of key
+	rtn 
+
+
+lpm_ctrl3_cfg_dig_vsel:
+	fetch 1,mem_dig_aon_vsel
+	beq 1,lpm_ctrl3_cfg_vsel_108
+	beq 2,lpm_ctrl3_cfg_vsel_096
+	beq 3,lpm_ctrl3_cfg_vsel_084
+lpm_ctrl3_cfg_vsel_120:
+	fetch 1,mem_lpm_ctrl3_aon_vsel
+	and_into 0xe0,pdata
+lpm_ctrl3_cfg_vsel_store:	
+	store 1,mem_lpm_ctrl3_aon_vsel
+	rtn
+lpm_ctrl3_cfg_vsel_108:
+	fetch 1,mem_lpm_ctrl3_aon_vsel
+	and_into 0xe0,pdata
+	or_into 0x1d,pdata
+	branch lpm_ctrl3_cfg_vsel_store
+lpm_ctrl3_cfg_vsel_096:
+	fetch 1,mem_lpm_ctrl3_aon_vsel
+	and_into 0xe0,pdata
+	or_into 0x1b,pdata
+	branch lpm_ctrl3_cfg_vsel_store
+lpm_ctrl3_cfg_vsel_084:
+	fetch 1,mem_lpm_ctrl3_aon_vsel
+	and_into 0xe0,pdata
+	or_into 0x17,pdata
+	branch lpm_ctrl3_cfg_vsel_store
+
+lpm_load_context:
+	fetch 1,mem_saved_spidctrl
+	store 1,core_spid_ctrl
+	arg mem_saved_gpio,contr
+	arg core_gpio_conf,contw
+	call memcpy20
+	arg core_gpio_conf1,contw
+	call memcpy3
+	fetch 8,mem_saved_mark
+	iforce mark
+	fetch 8,core_gpio_wakeup_low
+	store 8,mem_gpio_wakeup_low
+	branch load_ucode
+
+lpm_save_context:
+	deposit mark
+	store 8,mem_saved_mark
+	arg core_gpio_conf,contr
+	arg mem_saved_gpio,contw
+	call memcpy20
+	arg core_gpio_conf1,contr
+	call memcpy3
+	fetch 1,core_spid_ctrl
+	store 1,mem_saved_spidctrl
+	branch lpm_write_gpio_wakeup
+
+lpo_calibration:
+	fetch 1,core_aes_en
+	rshift4 pdata,pdata
+	nbranch lpo_cal_inited,blank
+	fetch 3,mem_clks_per_lpo
+	nrtn blank
+	fetch 1,core_aes_en
+	or_into 0xc0,pdata
+	store 1,core_aes_en
+	jam ccnt_start,core_misc_ctrl
+lpo_cal_inited:
+	fetch 1,core_perf_status
+	rtnbit0 1
+	fetch 3,core_clk_counter
+	store 3,mem_clks_per_lpo
+	rtn
+
+
+	/* temp is synced clke */
+lpm_adjust_clk:
+	bpatch patch14_0,mem_patch14
+	deposit clke
+	call clk_diff_rt
+	fetcht 4,mem_sleep_counter_all
+	sub temp,0xff,null
+	rtn positive				// interval too small
+	lshift8 pdata,pdata
+	lshift4 pdata,pdata
+	idiv temp
+	call get_div_result
+	arg param_lpm_adjmax,temp
+	call ceiling
+	store 1,mem_lpm_adjust
+	nbranch lpm_adjust_positive,user
+	sub pdata,0,pdata
+lpm_adjust_positive:
+	fetcht 3,mem_clks_per_lpo
+	iadd temp,pdata
+	store 3,mem_clks_per_lpo
+lpm_clear_counter:
+	setarg 0
+	store 4,mem_sleep_counter_all
+	rtn
+
+
+	/* temp is lpo counter for doze */
+//lpm_doze:
+//	fetch 1,mem_lpm_config+2
+//	set1 reload_code,pdata
+//	store 1,mem_lpm_config+2
+//	branch lpm_hibernate_normal
+	
+
+	/* no retention memory at all */
+lpm_hibernate:
+	arg param_hibernate_clks,temp
+	fetch 1,mem_lpm_config+1
+	set0 7,pdata					/* lowest lpo */
+	store 1,mem_lpm_config+1
+lpm_hibernate_normal:
+	bpatch patch14_1,mem_patch14
+	call lpm_write_gpio_wakeup
+	fetch 1,mem_lpm_hibernate_switch
+	store 1,mem_lpm_xtalcnt + 4
+	fetch 1,mem_lpm_xtalcnt + 2
+	set1 cold_wake,pdata
+	store 1,mem_lpm_xtalcnt + 2
+
+	/* temp is lpo clocks to sleep */
+lpm_sleep:
+	bpatch patch14_2,mem_patch14
+	call xtal_fast_wake
+	fetch 2,mem_cb_before_lpm_sleep
+	call callback_func
+lpm_sleep_skip_cb_function:
+	fetch 4,mem_sleep_counter_all
+	iadd temp,pdata
+	store 4,mem_sleep_counter_all
+	call lpm_save_context
+	call lpm_ctrl3_cfg_dig_vsel
+	fetch 4,mem_lpm_ctrl3
+	copy pdata,regb
+	fetch 5,mem_lpm_xtalcnt
+	store 4,core_lpm_reg
+	rshift32 pdata,rega
+	until null,lpo_edge
+	deposit clkn
+	store 6,mem_sleep_clkn
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	until null,lpo_edge
+	until null,lpo_edge
+	deposit rega
+	store 1,core_lpm_isogate
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	until null,lpo_edge
+	until null,lpo_edge
+	storer regb,4,core_lpm_reg
+	jam lpmreg_sel_ctrl3,core_lpm_wr
+lpm_enter_sleep:
+	until null,lpo_edge
+	until null,lpo_edge
+	storet 4,core_lpm_reg
+	jam lpmreg_sel_counter,core_lpm_wr
+	until null,never
+
+
+
+
+lpm_recover_clk:
+	bpatch patch14_3,mem_patch14
+	setarg 0
+	copy auxcnt,null
+	branch lpm_recover_timeout,zero
+	fetch 1,core_lpm_xtalcnt
+	fetcht 1,core_lpm_buckcnt
+	isub temp,null
+	branch lpm_recover_xtal,positive
+	deposit temp
+lpm_recover_xtal:
+	isub auxcnt,pdata
+	increase 1,pdata
+lpm_recover_timeout:
+	increase 10,pdata
+	until null,lpo_edge
+	iadd lpo_time,pdata
+	fetcht 4,mem_sleep_counter
+	iadd temp,pdata
+	fetcht 3,mem_clks_per_lpo
+	imul32 temp,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,pdata
+	increase param_lpm_fix,pdata
+	fetcht 2,mem_param_rt_rthalfslot
+	idiv temp
+	call get_div_result
+	lshift16 pdata,pdata
+	remainder temp
+	ior temp,pdata
+	fetcht 6,mem_sleep_clkn
+	call clk_add
+	copy temp,clkn
+	fetch 6,mem_context + coffset_clk_offset
+	call calc_clke2
+	deposit clke
+	store 6,mem_pdatatemp
+	deposit auxcnt
+	istore 1,contw
+	fetch 1,core_gpio_in1
+	or_into 0xf0,pdata
+	istore 1,contw
+	rtn
+	
+lpm_dispatch:
+	bpatch patch14_4,mem_patch14
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	rtn blank
+	fetch 1,mem_lpm_mode
+	rtn blank
+	fetch 1,mem_ssp_enable
+	branch lpm_dispatch_next,blank
+	fetch 1,mem_sp_local_key_invalid	// simple pairing is not ready
+	rtn blank
+lpm_dispatch_next:
+	fetch 1,mem_sc_calc
+	nrtn blank	
+	arg context_check_a_wack,regc
+	call context_search
+	rtn zero
+	call lpm_check_wake_lock
+	nrtn blank
+	fetch 1,mem_context
+	compare 3,pdata,0x7							/* sco won't sleep */
+	nbranch lpm_dispatch_unconn,true
+	fetch 2,mem_context + coffset_tsniff		/* role switch */
+	rtn blank																
+	rtn wake
+	bpatch patch14_5,mem_patch14
+lpm_dispatch_next2:
+	fetcht 1,mem_lpm_current_mult
+	fetch 2,mem_context + coffset_tsniff
+	imul32 temp,pdata
+	rshift4 temp,temp
+	rshift2 temp,temp
+	isub temp,pdata
+	fetcht 4,mem_context + coffset_sniff_anchor
+	iadd temp,pdata
+	fetcht 1,mem_lpm_overhead
+	isub temp,pdata
+	lshift16 pdata,alarm
+	bpatch patch14_6,mem_patch14
+	fetch 2,mem_context + coffset_rx_window
+	rshift pdata,pdata
+	call clk2bt
+	deposit alarm
+	call clk_diff
+	copy clke,temp
+	call clk_diff_rt
+	rtn user
+lpm_dispatch_sleep:
+	call clk2lpo
+lpm_dispatch_lpo:
+	bpatch patch14_7,mem_patch14
+	fetch 1,mem_lpm_xtalcnt
+	isub temp,null
+	branch lpm_clear_counter,positive
+	storet 4,mem_sleep_counter
+	call app_will_enter_lpm
+	call l2cap_lpm_save_txbuf
+	fetcht 4,mem_sleep_counter
+	branch lpm_sleep
+	
+lpm_dispatch_unconn:
+	bpatch patch15_0,mem_patch15
+	fetch 1,mem_context
+	rtnbit1 state_inconn					// wont sleep in connection
+	rtnbit1 state_inpage					// wont sleep when paging
+	fetch 1,mem_ssp_enable
+	branch lpm_unconn_nossp,blank
+	fetch 1,mem_sp_local_key_invalid	// simple pairing is not ready
+	rtn blank
+lpm_unconn_nossp:
+	fetch 1,mem_le_adv_enable
+	nbranch lpm_unconn_cont,blank
+	fetch 1,mem_scan_mode
+	rtn blank
+lpm_unconn_cont:
+	fetch 2,mem_lpm_interval
+	rtn blank
+lpm_sleep_btclk:
+	fetcht 1,mem_lpm_overhead
+	isub temp,pdata
+	arg 7500,temp				/* 1.25ms */
+	imul32 temp,pdata
+	branch lpm_dispatch_sleep
+
+lpm_set_mult:
+	bpatch patch15_1,mem_patch15
+	disable wake
+	fetch 1,mem_state
+	rtnbit0 state_insniff
+	nbranch lpm_not_match,match
+	call lpm_match
+	fetch 2,mem_rx_window_sniff
+	store 2,mem_rx_window
+	fetch 1,mem_arq
+	bbit1 wack,lpm_mult_short
+	bmark0 mark_lpm_mult_enable,lpm_mult_short
+	call l2cap_malloc_is_fifo_empty
+	nbranch lpm_mult_short,blank
+	fetch 1,mem_classic_bt_flag
+	bbit1 SHORT_MULT_FLAG,lpm_mult_short
+lpm_mult_wait_timeout:
+	fetch 2,mem_cb_bt_set_mult
+	call callback_func
+	nbranch lpm_mult_short,blank
+	jam 0,mem_lpm_current_mult
+	bmark0 mark_lpm_mult_enable,lpm_mult_short
+	fetch 1,mem_lpm_mult_cnt
+	branch lpm_mult_long,blank
+	increase -1,pdata
+	store 1,mem_lpm_mult_cnt
+	rtn
+
+
+classic_bt_set_mult_short_flag:
+	arg SHORT_MULT_FLAG,queue
+	branch classic_bluetooth_set_flag
+	
+classic_bt_clr_mult_short_flag:
+	arg SHORT_MULT_FLAG,queue
+	branch classic_bluetooth_clr_flag
+
+
+
+lpm_match:
+	jam 0,mem_sniff_unint_lost
+	fetch 3,mem_sniff_rcv
+	increase 1,pdata
+	store 3,mem_sniff_rcv
+	rtn
+
+lpm_not_match:
+	bpatch patch15_2,mem_patch15
+	fetcht 2,mem_rx_window_sniff
+	rshift temp,temp
+	fetch 2,mem_rx_window
+	iadd temp,pdata
+	store 2,mem_rx_window
+lpm_lost:
+	jam 0,mem_lpm_current_mult
+	fetch 3,mem_sniff_lost
+	increase 1,pdata
+	store 3,mem_sniff_lost
+	fetch 1,mem_sniff_unint_lost
+	increase 1,pdata
+	store 1,mem_sniff_unint_lost
+	rtn
+
+lpm_mult_short:
+	jam 0,mem_lpm_current_mult
+	fetch 1,mem_lpm_mult_timeout
+	store 1,mem_lpm_mult_cnt
+	rtn
+
+lpm_mult_long:
+	fetcht 1,mem_lpm_mult
+	storet 1,mem_lpm_current_mult
+	rtn
+
+lpm_cal_xtal_startup:
+	fetch 1,mem_lpm_xtalcnt
+	nrtn blank
+	jam clksel_rc,core_clksel
+	setarg 0xf0c
+	call lpm_write_config
+	setarg 200000
+	call sleep
+	until null,lpo_edge
+	copy lpo_time,alarm
+	call xtal_fast_wake
+	jam clksel_xtal,core_clksel
+	nop 10
+	until null,lpo_edge
+	deposit lpo_time
+	isub alarm,pdata
+	increase 0x30,pdata
+	arg 0xff,temp
+	call ceiling
+	store 1,mem_lpm_xtalcnt
+	nop 30000
+	nop 30000
+	nop 30000	
+	rtn
+
+//lpm_cal_xtal_startup_by_snooze:
+//	fetch 1,mem_lpm_xtalcnt
+//	nrtn blank
+//	jam 0xff,core_xtal_stable_time
+//	jam clksel_rc,core_clksel
+//	call xtal_fast_wake
+//	setarg 1000
+//	iadd lpo_time,alarm
+//	snooze
+//	deposit lpo_time
+//	nop 12000	//delay about 1ms
+//	nop 12000	//delay about 1ms
+//	nop 12000	//delay about 1ms
+//	nop 12000	//delay about 1ms
+//	nop 12000	//delay about 1ms
+//	nop 12000	//delay about 1ms
+//	nop 12000	//delay about 1ms
+//	nop 12000	//delay about 1ms
+//	nop 12000	//delay about 1ms
+//	isub alarm,pdata
+//	add pdata,0x30,pdata
+//	arg 0xff,temp
+//	call ceiling
+//	store 1,mem_lpm_xtalcnt
+//	nop 30000
+//	nop 30000
+//	nop 30000	//delay 90000 nop
+//	rtn
+
+
+
+	/* pdata is lpm_reg[11:0] */
+lpm_write_config:
+	arg 0xfff,contw
+	iand contw,contw
+	fetch 1,mem_lpm_config
+	and_into 0xf0,pdata
+	lshift8 pdata,pdata
+	ior contw,pdata
+	store 2,core_lpm_reg
+	ifetch 2,contr
+	istore 2,contw
+
+lpm_write_ctrl:
+	setarg lpmreg_sel_ctrl
+	branch lpm_write
+
+lpm_write_ctrl2:
+	setarg lpmreg_sel_ctrl2
+lpm_write:
+	until null,lpo_edge
+	store 1,core_lpm_wr
+	until null,lpo_edge
+	until null,lpo_edge
+	rtn
+
+lpm_write_sel_vdd:
+	fetch 4,core_lpm_ctrl2
+	store 4,core_lpm_reg
+	fetch 1,core_lpm_ctrl2
+	and_into 0x41,pdata
+	fetcht 1,mem_lpm_ctrl3_app_vsel
+	ior temp,pdata
+	store 1,core_lpm_reg
+lpm_write_ctrl3:
+	setarg lpmreg_sel_ctrl3
+	branch lpm_write
+
+
+lpm_write_gpio_wakeup:
+	bpatch patch15_3,mem_patch15
+	fetch 4,mem_gpio_wakeup_low
+	store 4,core_lpm_reg
+	setarg lpmreg_sel_gpiolow
+	call lpm_write
+	fetch 4,mem_gpio_wakeup_high
+	store 4,core_lpm_reg
+	setarg lpmreg_sel_gpiohigh
+	branch lpm_write
+
+lpm_get_wake_lock:
+	fetch 2,mem_lpm_wake_lock
+	qset1 pdata
+	store 2,mem_lpm_wake_lock
+	rtn
+
+lpm_put_wake_lock:
+	fetch 2,mem_lpm_wake_lock
+	qset0 pdata
+	store 2,mem_lpm_wake_lock
+	rtn
+
+
+
+lpm_check_wake_lock:
+	bpatch patch15_4,mem_patch15
+	call app_check_wake_lock
+	fetch 2,mem_lpm_wake_lock
+	copy pdata,rega
+	fetch 1,mem_state_map
+	isolate1 smap_rxlmp,pdata
+	setflag true,wake_lock_lmp_rx,rega
+	fetch 1,mem_lmo_opcode1
+	fetcht 1,mem_lmo_opcode2
+	iadd temp,pdata
+	fetcht 1,mem_lmp_to_send
+	iadd temp,pdata
+	nsetflag blank,wake_lock_lmp_tx,rega
+	fetch 3,mem_tx_fifo3
+	nsetflag blank,wake_lock_ble_tx,rega
+	fetch 2,mem_l2cap_rxbuff1_len
+	fetcht 2,mem_l2cap_rxbuff2_len
+	iadd temp,pdata
+	nsetflag blank,wake_lock_l2cap_rx,rega
+	fetch UTIL_FIFO_LEN,mem_ipc_fifo_bt2c51
+	nsetflag blank,wake_lock_ipc_bt2c51,rega
+	fetch UTIL_FIFO_LEN,mem_ipc_fifo_c512bt
+	nsetflag blank,wake_lock_ipc_c512bt,rega
+	fetch 1,mem_hci_cmd
+	nsetflag blank,wake_lock_cmd,rega
+	fetch 1,mem_device_option
+	compare dvc_op_module,pdata,0xff
+	call lpm_uart_wake_lock,true
+	copy rega,pdata
+	store 2,mem_lpm_wake_lock
+	rtn
+
+lpm_uart_wake_lock:
+	fetch 2,core_uart_rxitems
+	nsetflag blank,wake_lock_uart_rx ,rega
+	fetch 2,core_uart_txitems
+	nsetflag blank,wake_lock_uart_tx ,rega
+	rtn
+
+lpm_shut_down:
+	fetch 4,core_lpm_ctrl
+	set0 27,pdata
+	store 4,core_lpm_reg
+	call lpm_write_ctrl
+	branch assert
+	
+lpm_disable_exen_output:
+	fetch 4,core_lpm_xtalcnt
+	set0 20,pdata
+	store 4,core_lpm_reg
+	branch lpm_write_ctrl2
+
+
Index: program/debug.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/debug.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/debug.prog	(working copy)
@@ -0,0 +1,66 @@
+
+// Rf debug
+
+/*****************************************************************************************************************************************************************************************
+    txon     txoff       rxon		      sync             crc pass    shutdown radio          match
+     _________          ______________    _________________     ___        ___                     
+    |         |        |              |  |                 |   |   |      |   |                   
+    |	      |        |              |  |                 |   |   |      |   |                   
+____|tx data  |________|   rx window  |__| rx data         |___|   |______|   |_______       __________
+
+*****************************************************************************************************************************************************************************************/
+
+rf_debug_rx_gpio_low:
+	fetch 1,mem_rf_debug_rx_gpio
+rf_debug_gpio_low:
+	arg gpcfg_output_low,temp
+	branch gpio_config_function
+
+rf_debug_rx_on_line:
+rf_debug_rx_gpio_high:
+	fetch 1,mem_rf_debug_rx_gpio
+rf_debug_gpio_high:
+	arg gpcfg_output_high,temp
+	branch gpio_config_function
+
+rf_debug_rx_gpio_h_l_h:
+	call rf_debug_rx_gpio_high
+rf_debug_rx_gpio_l_h:
+	call rf_debug_rx_gpio_low
+	branch rf_debug_rx_gpio_high
+
+rf_debug_rx_gpio_l_h_l:
+rf_debug_shutdown_radio_line:
+	call rf_debug_rx_gpio_l_h
+rf_debug_rx_crc_line:
+	branch rf_debug_rx_gpio_low
+
+rf_debug_rx_sync_line:
+	branch rf_debug_rx_gpio_l_h
+
+rf_debug_rx_crc_fail_line:
+	call rf_debug_rx_gpio_l_h
+	branch rf_debug_rx_gpio_l_h_l
+
+rf_debug_rx_match_line:
+rf_debug_rx_crc_error_line:
+rf_debug_rx_sync_timeout_line:
+	branch rf_debug_rx_gpio_low
+
+
+rf_debug_tx_off_line:
+rf_debug_tx_gpio_low:
+	fetch 1,mem_rf_debug_tx_gpio
+	branch rf_debug_gpio_low
+
+rf_debug_tx_on_line:
+rf_debug_tx_gpio_high:
+	fetch 1,mem_rf_debug_tx_gpio
+	branch rf_debug_gpio_high
+
+rf_debug_tx_gpio_l_h_l:
+	call rf_debug_tx_gpio_low
+	call rf_debug_tx_gpio_high
+	branch rf_debug_tx_gpio_low
+
+	
Index: program/g24_protocol_stack/24g.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g.prog	(working copy)
@@ -0,0 +1,530 @@
+
+
+g24_dispatch:
+	bpatchx patch3b_2,mem_patch3b
+	bmark1 mark_24g_rxmode,g24_receive_dispatch
+	branch g24_transmit_dispatch
+
+
+/****************************g24 base transceiver start********************************/
+
+g24_prep:
+	disable enable_crc
+	disable enable_white
+	setarg 0x555555
+	iforce crc24_init
+	fetch 1,mem_24g_ch
+	branch le_prep+5	
+
+g24_receive_packet:
+	bpatchx patch3b_3,mem_patch3b
+	fetch 1,mem_24g_rx_phy
+	call le_enable_phy_by_pdata
+	fetch 4,mem_24g_addr
+	iforce access
+	call calc_mod_value_scale_le
+	call set_sync_on
+	fetcht 1,mem_24g_ch
+	call le_rf_rx_enable
+g24_receive_rxon:
+	call g24_prep
+	bmark0 mark_ble_lr,g24_receive_nolr
+	pulse dewhiten_code_calc
+	nop 30
+	call g24_prep
+g24_receive_nolr:
+	disable user3
+	enable decode_fec0
+	enable is_rx
+	disable is_tx
+	enable swfine
+	fetch 2,mem_24g_rx_window
+	iforce stop_watch
+	correlate null,timeout
+	nbranch g24_sync_timeout,sync
+	call rf_debug_rx_sync_line
+	bmark1 mark_ble_lr,g24_receive_skip_fec1
+	fetch 1,mem_24g_disable_fec1
+	nbranch g24_receive_skip_fec1,blank
+	disable decode_fec0	
+	enable decode_fec1	//lr do not use fec1
+g24_receive_skip_fec1:
+	enable enable_white
+	enable enable_crc
+	call g24_receive_byte
+	store 1,mem_24g_get_syncword_crc8
+	fetcht 1,mem_24g_syncword_crc8
+	isub temp,null
+	nbranch g24_end_of_packet,zero
+	bpatchx patch3b_4,mem_patch3b
+	disable user7
+	isolate1 mark_ble_lr,mark
+	call g24_lr_receive_pdu_len,true
+	branch g24_end_of_packet,user7
+	call g24_receive_byte
+	store 1,mem_24g_rxbuf	//device id
+	bmark1 mark_24g_rxmode,g24_receive_skip
+	fetch 1,mem_24g_rxbuf
+	fetcht 1,mem_24g_data_type
+	icompare bits_data,temp
+	nbranch g24_end_of_packet,true
+g24_receive_skip:
+	call g24_receive_byte
+	isolate1 mark_ble_lr,mark
+	call g24_lr_receive_payload_len,true
+	istore 1,contw
+	rshift3 pdata,pdata
+	sub pdata,0x1f,null
+	nbranch g24_end_of_packet,positive	//max payload: 32bytes
+	copy pdata,loopcnt
+	branch g24rx_nopayload,zero
+g24rx_loop:
+	call g24_receive_byte
+	istore 1,contw
+	loop g24rx_loop
+g24rx_nopayload:
+	bmark1 mark_24g_rxmode,g24_receive_skip_rssi
+	copy contw,rega
+	call g24_receive_byte
+	store 1,mem_rssi_hex_received	//receive rssi hex
+	copy rega,contw
+g24_receive_skip_rssi:
+	parse demod,bucket,24
+	rshift32 pdata,pdata
+	rshift16 pdata,pdata
+	istore 3,contw
+	fetch 1,mem_24g_disable_fec1
+	nbranch g24_receive_skip_disable_fec1,blank
+	disable decode_fec1
+g24_receive_skip_next:
+	isolate1 mark_24g_rxmode,mark
+	call save_rssi_dec,true
+	branch g24_end_of_packet,crc_failed
+	call rf_debug_rx_crc_line	//L
+	enable user3
+	call le_match_set_txfreq
+	bpatchx patch3b_5,mem_patch3b
+	rtnmark1 mark_24g_rxmode
+	fetch 1,mem_rssi_hex_received
+	fetcht 1,mem_rssi_hex_received_max_value
+	isub temp,null
+	call copy_temp2pdata,positive
+	branch rssi_signal
+
+g24_receive_skip_disable_fec1:
+	disable decode_fec0
+	branch g24_receive_skip_next
+	
+
+g24_lr_receive_pdu_len:
+	call g24_receive_byte
+	sub pdata,1,null
+	branch enable_user7,positive
+	increase -2,pdata	//minus hec and pdu length
+	bmark1 mark_24g_rxmode,g24_lr_receive_pdu_norssi
+	branch enable_user7,blank
+	increase -1,pdata	//minus rssi_hex length
+g24_lr_receive_pdu_norssi:
+	store 1,mem_temp	//payload length
+	rtn
+
+g24_lr_receive_payload_len:
+	and_into 0x07,pdata	//pdata[7:3]:length
+	fetcht 1,mem_temp	//payload length
+	lshift3 temp,temp
+	ior temp,pdata
+	rtn
+	
+g24_receive_byte:
+	parse demod,bucket,8
+	rshift3 pwindow,pdata
+	rtn
+
+g24_sync_timeout:
+	isolate1 mark_24g_rxmode,mark
+	call rssi_noise,true
+g24_end_of_packet:
+	call le_disable
+	disable encode_fec1
+	disable decode_fec1
+	branch end_of_packet
+
+g24_set_freq_tx:
+	call set_sync_on
+	fetcht 1,mem_24g_ch
+	branch set_freq_tx
+
+g24_transmit:
+	bpatchx patch3b_6,mem_patch3b
+	fetch 1,mem_24g_tx_phy
+	call le_enable_phy_by_pdata
+	fetch 4,mem_24g_addr
+	iforce access
+	call g24_prep
+	call g24_set_freq_tx
+	set1 TXGFSK,radio_ctrl
+	enable encode_fec0
+	enable is_tx
+	disable is_rx
+	call rf_debug_tx_on_line
+	disable lr_s2en
+	bmark1 mark_ble_lr,g24_transmit_lr
+	bmark1 mark_ble_2M,g24_transmit_2M
+	rshift16 access,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,40
+g24_transmit_packet:
+	bmark1 mark_ble_lr,g24_transmit_nolr
+	fetch 1,mem_24g_disable_fec1
+	nbranch g24_transmit_nolr,blank
+	disable encode_fec0	
+	enable encode_fec1	////lr use encode_fec3
+g24_transmit_nolr:
+	enable enable_white
+	enable enable_crc
+	fetch 1,mem_24g_txlen
+	iforce loopcnt
+	arg mem_24g_txpayload,contr
+g24tr_loop:
+	ifetch 1,contr
+	inject mod,8
+	loop g24tr_loop
+	enable enable_parity
+	inject mod,24	//crc
+	disable enable_parity
+	bmark0 mark_ble_lr,g24_transmit_skip
+	disable enable_white
+	setarg 0
+	inject mod,3
+g24_transmit_skip:	
+	until null,tx_clear
+	nop 100
+	disable lr_s2en
+	disable encode_fec0
+	fetch 1,mem_24g_disable_fec1
+	nbranch g24_transmit_skip_disable_fec1,blank
+	disable encode_fec1
+g24_transmit_skip_disable_fec1:
+	disable encode_fec3
+	call set_sync_on
+	branch rf_debug_tx_off_line
+
+g24_transmit_lr:
+	arg 10,loopcnt
+g24_transmit_lr_preamble_loop:
+	setarg 0x3c
+	inject mod,8
+	loop g24_transmit_lr_preamble_loop
+	disable encode_fec0
+	enable encode_fec3
+	rshift16 access,pdata
+	rshift16 pdata,pdata
+	rshift4 pdata,pdata
+	inject mod,32
+	bmark1 mark_ble_lr_s8,g24_transmit_lr_s8
+g24_transmit_lr_s2:
+	setarg 1
+	inject mod,5
+	enable lr_s2en
+	branch g24_transmit_packet
+
+g24_transmit_lr_s8:
+	setarg 0
+	inject mod,5
+	branch g24_transmit_packet
+
+g24_transmit_2M:
+	fetch 1,mem_system_clk
+	rshift pdata,loopcnt
+g24_transmit_2M_dealy:
+	nop 2
+	loop g24_transmit_2M_dealy
+//	nop 36	//2M 前端发送比1M快3us左右
+	rshift16 access,pdata
+	rshift8 pdata,pdata
+	rshift4 pdata,temp
+	copy temp,pdata
+	inject mod,8
+	copy temp,pdata
+	inject mod,40
+	branch g24_transmit_packet
+
+/****************************g24 base transceiver end********************************/
+
+
+
+/****************************g24 general func start********************************/
+
+g24_transmit_prep:
+	fetch 1,mem_24g_tx_phy
+	bbit1 BIT_LE_CODED_PHY,g24_lr_transmit_prep
+// total length
+	fetch 1,mem_24g_datalen
+	increase 3,pdata	//hec/type/control
+	store 1,mem_24g_txlen
+//hec
+	fetch 1,mem_24g_syncword_crc8
+	store 1,mem_24g_txpayload
+// data type
+	fetch 1,mem_24g_data_type
+	istore 1,contw
+//prepare 5bit payload length, 2bit PID, 1bit NO_ACK
+	fetch 1,mem_24g_datalen
+g24_transmit_prep_pdu:
+	lshift3 pdata,pdata
+	fetcht 1,mem_24g_pid
+	and temp,0x03,temp
+	lshift temp,temp
+	ior temp,pdata
+	fetcht 1,mem_24g_no_ack
+	iadd temp,pdata
+	istore 1,contw
+//prepare payload data
+	fetch 1,mem_24g_datalen
+	iforce loopcnt
+	arg mem_24g_txbuf,contr
+	call memcpy
+//rssi hex	
+	rtnmark0 mark_24g_rxmode
+	fetch 1,mem_rssi_hex
+	istore 1,contw
+	fetch 1,mem_24g_tx_phy
+	rtnbit1 BIT_LE_CODED_PHY
+	fetch 1,mem_24g_txlen
+	increase 1,pdata	//plus rssi_hex length
+	store 1,mem_24g_txlen
+	rtn
+	
+g24_lr_transmit_prep:
+// total length
+	fetch 1,mem_24g_datalen
+	increase 4,pdata	//hec/pdu/type/control
+	bmark0 mark_24g_rxmode,g24_lr_transmit_prep_skip
+	increase 1,pdata	//mem_rssi_hex
+g24_lr_transmit_prep_skip:
+	store 1,mem_24g_txlen
+//hec
+	fetch 1,mem_24g_syncword_crc8
+	store 1,mem_24g_txpayload
+// pdu length
+	fetch 1,mem_24g_txlen
+	increase -2,pdata	//minus hec and pdu length
+	istore 1,contw
+// data type
+	fetch 1,mem_24g_data_type
+	istore 1,contw
+	setarg 0
+	branch g24_transmit_prep_pdu
+
+g24_read_len_pid_crc:
+//read control
+	fetch 1,mem_24g_rxbuf+1
+	rshift3 pdata,pdata
+	store 1,mem_24g_rxdata_length
+//get crc
+	increase 1,pdata
+	arg mem_24g_rxbuf+1,contr
+	iadd contr,contr
+	ifetch 3,contr
+	store 3,mem_24g_sta_crc
+//read pid
+	fetch 1,mem_24g_rxbuf+1
+	rshift pdata,pdata
+	and pdata,0x03,pdata
+	store 1,mem_24g_sta_pid
+	rtn
+
+	
+g24_ch:
+	fetcht 1,mem_24g_current_ch_number
+	call g24_ch_map_size
+	storet 1,mem_24g_current_ch_number
+	rtn
+
+g24_ch_map_size:
+	call g24_ch_calc
+	increase 1,temp
+	and_into 3,temp //map size =4
+	rtn
+	
+g24_ch_calc:
+	fetch 1,mem_24g_addr	
+	and_into 0x03,pdata
+	mul32 pdata,4,rega			//24addr low bit0 bit1 ,00-map1,01-map2,10-map3,11-map4
+	setarg mem_24g_ch_map1
+	iadd rega,pdata
+	iadd temp,contr
+	ifetch 1,contr
+	store 1,mem_24g_ch
+	rtn
+
+
+g24_update_addr_and_synccrc8:
+	store 4,mem_24g_addr
+//output: 1BYTE crc8
+g24_syncword_crc8:
+	arg 0,rega
+	arg 4,loopcnt
+	arg mem_24g_addr,contr
+g24_syncword_crc8_loop:
+	ifetch 1,contr
+	iadd rega,rega
+	loop g24_syncword_crc8_loop
+	copy rega,pdata
+	store 2,mem_24g_syncword
+	fetch 1,mem_24g_syncword
+	fetcht 1,mem_24g_syncword+1
+	iadd temp,pdata
+	store 1,mem_24g_syncword_crc8
+	rtn
+
+
+g24_timer_check:
+	call disable_user
+	fetcht 4,mem_24g_tx_btclk
+	copy clkn_bt,pdata
+	isub temp,null
+	ncall g24_timer_timeout,positive
+	copy pdata,regb
+	fetch 4,mem_24g_tx_btclk
+	fetcht 1,mem_24g_interval
+	iadd temp,temp
+	copy regb,pdata
+	isub temp,null
+	nrtn positive
+	set0 28,pdata
+	store 4,mem_24g_tx_btclk
+	branch enable_user
+g24_timer_timeout:
+	rtn zero
+	set1 28,pdata
+	rtn
+g24_timer_init:
+	setarg 0
+	store 4,mem_24g_tx_btclk
+	rtn
+
+
+
+//mem_24g_ch_map1:00 13 2c 42
+//mem_24g_ch_map2:06 15 36 48
+//mem_24g_ch_map3:0f 1a 3a 4c
+//mem_24g_ch_map4:11 23 31 4d
+g24_chmap_param_init:
+	setsect 0,0x1300
+	setsect 1,0x1908b
+	setsect 2,0x36150
+	setsect 3,0x3d20
+	store 9,mem_24g_ch_map1
+	setsect 0,0x3a1a
+	setsect 1,0xc453
+	setsect 2,0xd312
+	setsect 3,0x1
+	istore 7,contw
+	fetch 1,mem_24g_ch_map_update
+	rtn blank
+	arg mem_24g_ch_update_map1,contr
+	arg mem_24g_ch_map1,contw
+	branch memcpy16
+
+
+
+//mem_24g_ch_update_map1:00 1e 00 4e
+//mem_24g_ch_update_map2:03 23 03 42
+//mem_24g_ch_update_map3:06 25 06 4c
+//mem_24g_ch_update_map4:09 27 09 3c
+g24_chamap_param_update:
+	setarg 0x4e001e
+	store 3,mem_24g_ch_update_map1+1
+	setarg 0x032303
+	istore 3,contw
+	setarg 0x250642
+	istore 3,contw
+	setarg 0x094c06
+	istore 3,contw
+	setarg 0x3c0927
+	istore 3,contw
+	jam 1,mem_24g_ch_map_update
+	rtn
+
+
+g24_rx_window_init:
+	arg 0x6978,temp
+	bmark1 mark_24g_rxmode,g24_rx_window_store
+	arg 0x12c0,temp
+	fetch 1,mem_24g_rx_phy
+	bbit0 2,g24_rx_window_store	//uncoded phy
+	arg 0x2ee0,temp
+g24_rx_window_store:	
+	storet 2,mem_24g_rx_window
+	rtn
+
+g24_enable_1M:
+	jam 0x01,mem_24g_rx_phy
+	jam 0x01,mem_24g_tx_phy
+	rtn
+
+//g24_enable_2M:
+//	jam 0x02,mem_24g_rx_phy
+//	jam 0x02,mem_24g_tx_phy
+//	rtn
+//	
+//g24_enable_coded_s2:
+//	jam 0x04,mem_24g_rx_phy
+//	jam 0x04,mem_24g_tx_phy
+//	rtn
+
+//g24_enable_coded_s8:
+//	jam 0x84,mem_24g_rx_phy
+//	jam 0x84,mem_24g_tx_phy
+//	rtn
+
+
+/****************************g24 general func end********************************/
+
+
+
+/****************************g24 sim start********************************/
+/*
+g24_sim_rx:
+	set1 mark_24g_rxmode,mark
+	jam 1,mem_24g_rx_phy	//0x01:1M/0x02:2M/0x04:S2/0x84:S8
+	fetch 1,mem_24g_rx_phy
+	call le_enable_phy_by_pdata
+	jam 0,mem_24g_ch
+	setarg 0x123456
+	store 3,mem_24g_addr
+	istore 1,contw
+	call g24_syncword_crc8
+	setarg 0x3000
+	store 2,mem_24g_rx_window
+g24_sim_rx_loop:
+	call g24_receive_packet
+	call g24_read_len_pid_crc
+	call g24_end_of_packet
+	branch g24_sim_rx_loop
+
+g24_sim_tx:
+	jam 1,mem_24g_tx_phy
+	fetch 1,mem_24g_tx_phy
+	call le_enable_phy_by_pdata
+	jam 0,mem_24g_ch
+	setarg 0x123456
+	store 3,mem_24g_addr
+	istore 1,contw
+	call g24_syncword_crc8
+	jam 1,mem_24g_datalen
+	jam 1,mem_24g_txbuf
+	jam 0x88,mem_rssi_hex
+	call g24_transmit_prep
+g24_sim_tx_loop:
+	call g24_transmit
+	call g24_end_of_packet
+	branch g24_sim_tx_loop
+
+*/
+
+/****************************g24 sim end********************************/
+
+	
Index: program/g24_protocol_stack/24g_pair.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_pair.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_pair.prog	(working copy)
@@ -0,0 +1,399 @@
+
+
+g24_pair_param_init:
+	jam 0x4e,mem_24g_pair_ch
+	setarg 0x101520
+	store 3,mem_24g_pair_addr
+	setarg 0x05
+	istore 1,contw
+	rtn
+
+
+
+/****************************g24 pair transmitter start********************************/
+
+g24_pair_timeout_timer:
+	arg mem_24g_pair_timeout,regc
+	arg g24_stop_24g_mode,regb
+	branch timer_single_step_2B
+
+g24_pair_start:
+	set1 mark_24g,mark
+	fetch 1,mem_24g_conn_sm
+	set0 STATE_24G_RECONN,pdata
+	set1 STATE_24G_PAIR,pdata
+	store 1,mem_24g_conn_sm
+	setarg 0
+	store 2,mem_24g_reconn_timeout
+	fetch 2,mem_24g_pair_timeout_init
+	store 2,mem_24g_pair_timeout
+	jam 0,mem_24g_pair_no_ack
+	call g24_pair_sm_reinit
+g24_pair_init_param:
+	jam 0,mem_24g_pid
+	fetch 1,mem_24g_pair_ch
+	store 1,mem_24g_ch
+	fetch 1,mem_24g_pair_tx_power
+	store 1,mem_tx_power
+	fetch 4,mem_24g_pair_addr
+	branch g24_update_addr_and_synccrc8
+
+
+g24_pair_dispatch:
+	bpatchx patch3b_7,mem_patch3b
+	fetch 1,mem_24g_pair_sm
+	beq STATE_24G_PAIRING_SUCCESS,g24_pair_exit
+	beq STATE_24G_PAIRING_1,g24_pair_sm_1
+	beq STATE_24G_PAIRING_2,g24_pair_sm_2
+	beq STATE_24G_PAIRING_3,g24_pair_sm_3
+	beq STATE_24G_PAIRING_4,g24_pair_sm_4
+	rtn
+
+g24_pair_sm_1:
+	jam DATATYPE_ATTEMP,mem_24g_txbuf
+	branch g24_pair_sm_prep
+
+g24_pair_sm_2:
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_2_skip,blank
+	fetch 4,mem_24g_device_addr
+	call g24_update_addr_and_synccrc8	//use transmitter addr
+g24_pair_sm_2_skip:
+	jam DATATYPE_BIND,mem_24g_txbuf	
+	branch g24_pair_sm_prep
+
+g24_pair_sm_3:
+	jam DATATYPE_CONFIG,mem_24g_txbuf	
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_prep,blank
+	fetch 4,mem_24g_receiver_addr		//prep receiver addr
+	store 4,mem_24g_txbuf+2
+	branch g24_pair_sm_common
+
+g24_pair_sm_4:
+	jam DATATYPE_OK,mem_24g_txbuf
+g24_pair_sm_prep:
+	fetch 4,mem_24g_device_addr
+	store 4,mem_24g_txbuf+2
+g24_pair_sm_common:
+	fetch 1,mem_24g_data_type
+	and_into bits_data,pdata
+	store 1,mem_24g_txbuf+1
+	jam 0,mem_24g_txbuf+6
+	jam 7,mem_24g_datalen
+	call g24_transmit_prep
+	call g24_transmit_receive_ack
+	nrtn sync
+	nrtn user3
+	call g24_txbuf_clear
+	call g24_ackpayload_parse
+	bpatchx patch3c_0,mem_patch3c
+	fetch 1,mem_24g_pair_sm
+	rtneq STATE_24G_PAIRING_SUCCESS
+	beq STATE_24G_PAIRING_1,g24_pair_sm_1_waiting_ack
+	beq STATE_24G_PAIRING_2,g24_pair_sm_2_waiting_ack
+	beq STATE_24G_PAIRING_3,g24_pair_sm_3_waiting_ack
+	beq STATE_24G_PAIRING_4,g24_pair_sm_4_waiting_ack
+	rtn
+
+g24_pair_sm_reinit:	
+	jam STATE_24G_PAIRING_2,mem_24g_pair_sm
+	fetch 1,mem_24g_pair_switch
+	rtn blank
+	jam STATE_24G_PAIRING_1,mem_24g_pair_sm
+	rtn
+
+g24_pair_sm_1_waiting_ack:
+	jam STATE_24G_PAIRING_2,mem_24g_pair_sm
+	branch g24_transmit_abandon
+	
+g24_pair_sm_2_waiting_ack:
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_2_waiting_ack_skip,blank
+	fetch 4,mem_24g_rxpayload+2
+	store 4,mem_24g_receiver_addr
+g24_pair_sm_2_waiting_ack_skip:	
+	jam STATE_24G_PAIRING_3,mem_24g_pair_sm
+	branch g24_transmit_abandon
+
+g24_pair_sm_3_waiting_ack:
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_3_waiting_ack_skip,blank
+	fetch 4,mem_24g_rxpayload+2
+	fetcht 4,mem_24g_device_addr
+	isub temp,null
+	nrtn zero
+g24_pair_sm_3_waiting_ack_skip:	
+	jam STATE_24G_PAIRING_4,mem_24g_pair_sm
+	branch g24_transmit_abandon	
+	
+g24_pair_sm_4_waiting_ack:
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_4_waiting_ack_skip,blank
+	fetch 4,mem_24g_rxpayload+2
+	fetcht 4,mem_24g_receiver_addr
+	isub temp,null
+	nrtn zero
+g24_pair_sm_4_waiting_ack_skip:	
+	jam STATE_24G_PAIRING_SUCCESS,mem_24g_pair_sm
+	jam BT_EVT_24G_PAIRING_COMPLETE,mem_fifo_temp
+	call ui_ipc_send_event
+	setarg 0
+	store 2,mem_24g_pair_timeout
+	fetch 4,mem_24g_rxpayload+2
+	call g24_update_addr_and_synccrc8
+g24_pair_exit:
+	fetch 1,mem_24g_conn_sm
+	set0 STATE_24G_PAIR,pdata
+	store 1,mem_24g_conn_sm
+	branch g24_transmit_abandon
+
+
+
+
+/****************************g24 pair transmitter end********************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/****************************g24 pair receiver start********************************/
+
+
+g24_bind_mode_enable:
+	jam DONGLE_BIND,mem_24g_work_mode
+	jam CLEAR_INIT,mem_24g_mode_init
+	rtn
+
+g24_bind_init:
+	fetch 1,mem_24g_mode_init
+	rtnbit1 DONGLE_BIND
+	set1 DONGLE_BIND,pdata
+	store 1,mem_24g_mode_init
+	setarg 0
+	store 3,mem_24g_device1_bind_step
+	store 4,mem_24g_transmitter_addr
+	jam 1,mem_24g_ackpayload_enable
+	branch g24_pair_init_param
+
+
+g24_bind_ackpayload_prep:
+	jam 1,mem_24g_ackpayload_enable
+	jam 0x08,mem_24g_datalen
+	arg mem_24g_bind_payload,contr
+	arg mem_24g_txbuf,contw
+	branch memcpy8
+
+
+g24_bind_data_process:
+	bpatchx patch3c_1,mem_patch3c
+	call g24_rx_interrupt_clear
+	call g24_receive_packet
+	nbranch g24_rx_interrupt_clear,user3
+	call g24_bind_data_parse
+	call g24_transmit_ack
+	call g24_bind_device_status_check
+	call dongle_kb_bind_soft_reset
+	fetch 1,mem_24g_pair_switch
+	rtn blank
+	fetch 4,mem_24g_transmitter_addr
+	rtn blank
+	branch g24_update_addr_and_synccrc8
+
+g24_bind_data_error:
+	call g24_rx_interrupt_clear
+	branch g24_end_of_packet
+
+g24_bind_data_parse:
+	jam BIND_MODE_CONTINUE,mem_24g_bind_mode_continue	//about 400ms
+	arg mem_24g_rxbuf,contr
+	arg mem_24g_rxdata_temp,contw
+	call memcpy8
+	bpatchx patch3c_2,mem_patch3c
+	fetch 1,mem_24g_rxdata_temp+2
+	beq DATATYPE_BIND,g24_bind_first_step	//bind step 1
+	beq DATATYPE_CONFIG,g24_bind_second_step
+	beq DATATYPE_OK,g24_bind_third_step
+	beq DATATYPE_ATTEMP,g24_data_attemp
+	rtn
+
+
+g24_bind_first_step:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_bind_first_step_device1
+	beq DATATYPE_DEVICE2,g24_bind_first_step_device2
+	rtn
+
+g24_bind_first_step_device1:
+	jam 1,mem_24g_device1_bind_step
+g24_bind_dvc1_payload_cfg:
+	jam DATATYPE_DEVICE1,mem_24g_bind_payload
+g24_bind_payload_cfg:
+	jam 0x80,mem_24g_bind_payload+1
+	fetch 6,mem_lap
+	store 6,mem_24g_bind_payload+2
+	rtn
+
+g24_bind_first_step_device2:
+	jam 1,mem_24g_device2_bind_step
+g24_bind_dvc2_payload_cfg:
+	jam DATATYPE_DEVICE2,mem_24g_bind_payload
+	branch g24_bind_payload_cfg
+
+
+g24_bind_second_step:
+	fetch 1,mem_24g_pair_switch
+	branch g24_bind_second_step_skip,blank
+	fetch 4,mem_24g_rxdata_temp+4
+	fetcht 4,mem_lap
+	isub temp,null
+	nrtn zero
+g24_bind_second_step_skip:	
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_bind_second_step_device1
+	beq DATATYPE_DEVICE2,g24_bind_second_step_device2
+	rtn
+
+g24_bind_second_step_device1:
+	fetch 1,mem_24g_device1_bind_step
+	beq 1,g24_bind_dvc1_step_set2
+	rtn
+g24_bind_dvc1_step_set2:
+	jam 2,mem_24g_device1_bind_step
+	fetch 1,mem_24g_pair_switch
+	branch g24_bind_dvc1_payload_cfg,blank
+g24_bind_dvc1_payload_cfg_transmitter_addr:
+	jam DATATYPE_DEVICE1,mem_24g_bind_payload
+g24_bind_payload_cfg_transmitter_addr:
+	jam 0x80,mem_24g_bind_payload+1
+	fetch 4,mem_24g_transmitter_addr
+	store 4,mem_24g_bind_payload+2
+	branch enable_user
+
+g24_bind_second_step_device2:
+	fetch 1,mem_24g_device2_bind_step
+	beq 1,g24_bind_dvc2_step_set2
+	rtn
+g24_bind_dvc2_step_set2:
+	jam 2,mem_24g_device2_bind_step
+	fetch 1,mem_24g_pair_switch
+	branch g24_bind_dvc2_payload_cfg,blank	
+	jam DATATYPE_DEVICE2,mem_24g_bind_payload
+	branch g24_bind_payload_cfg_transmitter_addr
+
+
+g24_bind_third_step:
+	fetch 1,mem_24g_pair_switch
+	branch g24_bind_third_step_skip,blank
+	fetch 4,mem_24g_rxdata_temp+4
+	fetcht 4,mem_24g_transmitter_addr
+	isub temp,null
+	nrtn zero
+g24_bind_third_step_skip:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_bind_third_step_device1
+	beq DATATYPE_DEVICE2,g24_bind_third_step_device2
+	rtn
+
+g24_bind_third_step_device1:
+	fetch 1,mem_24g_device1_bind_step
+	beq 2,g24_bind_dvc1_step_success
+	rtn
+g24_bind_dvc1_step_success:
+	call g24_binding_dvc1_living	//works on auto pair only
+	call g24_bind_dvc1_payload_cfg
+	fetch 1,mem_24g_bind_device_status
+	or_into 0x01,pdata
+	store 1,mem_24g_bind_device_status
+g24_bind_exit:
+	setarg 0
+	store 2,mem_24g_device1_bind_step
+	rtn
+	
+g24_bind_third_step_device2:
+	fetch 1,mem_24g_device2_bind_step
+	bne 0,g24_bind_dvc2_step_success
+	rtn
+g24_bind_dvc2_step_success:
+	call g24_binding_dvc2_living	//works on auto pair only
+	call g24_bind_dvc2_payload_cfg
+	fetch 1,mem_24g_bind_device_status
+	or_into 0x02,pdata
+	store 1,mem_24g_bind_device_status
+	call g24_bind_exit
+	branch dongle_g24_store_dvc2_bind_flag
+
+g24_binding_device_check:	//works on auto pair
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_BIND
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	fetch 1,mem_24g_rxbuf+3
+	beq DATATYPE_DEVICE1,g24_binding_dvc1_status	//bit0
+	beq DATATYPE_DEVICE2,g24_binding_dvc2_status	//bit1
+	rtn
+g24_binding_dvc1_status:
+	fetch 1,mem_24g_bind_device_living
+	rtnbit0 0
+disable_user3:
+	disable user3
+	rtn 
+g24_binding_dvc2_status:
+	fetch 1,mem_24g_bind_device_living
+	rtnbit0 1
+	branch disable_user3
+
+g24_binding_dvc1_living:
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	fetch 1,mem_24g_bind_device_living
+	or_into 0x01,pdata
+	store 1,mem_24g_bind_device_living
+	rtn
+
+g24_binding_dvc2_living:
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	fetch 1,mem_24g_bind_device_living
+	or_into 0x02,pdata
+	store 1,mem_24g_bind_device_living
+	rtn
+
+
+g24_bind_device_status_check:
+	fetch 1,mem_24g_bind_device_status
+	rtn blank
+g24_bind_device_status:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_binding_dvc1_living
+	beq DATATYPE_DEVICE2,g24_binding_dvc2_living
+	rtn
+
+
+
+/****************************g24 pair receiver end********************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: program/g24_protocol_stack/24g_receiver.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_receiver.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_receiver.prog	(working copy)
@@ -0,0 +1,556 @@
+
+g24_receive_init:
+	set1 mark_24g_rxmode,mark
+	fetch 1,mem_tx_power
+	store 1,mem_tx_power_temp
+	call g24_rx_window_init
+	branch rssi_receiver_buff_init
+
+g24_receive_dispatch:
+	fetch 2,mem_cb_24g_receive_process
+	branch callback_func
+
+g24_ackpayload_prep:
+	jam 0,mem_24g_datalen
+	fetch 1,mem_24g_ackpayload_enable
+	rtn blank
+	fetch 2,mem_cb_24g_ackpayload
+	branch callback_func
+
+
+g24_receive_packet_start:
+	call g24_receive_transmit_ack
+	nbranch g24_rx_interrupt_clear,user3
+g24_receive_packet_parse:
+	call g24_receive_packet_parse_pid_crc
+	nbranch g24_rx_interrupt_clear,user
+	fetch 1,mem_24g_rxdata_length
+	branch g24_rx_interrupt_clear,blank
+	increase 2,pdata
+	iforce loopcnt
+	arg mem_24g_rxbuf,contr
+	arg mem_24g_rxdata_temp,contw
+	call memcpy
+	jam 0,mem_24g_mode_switch
+	fetch 1,mem_24g_pair_mode
+	call g24_enable_nodata_timer,blank
+	bpatchx patch3c_3,mem_patch3c
+	fetch 1,mem_24g_rxdata_temp+2
+	beq DATATYPE_DEVICE1,g24_data_device1	//mouse
+	beq DATATYPE_DEVICE2,g24_data_device2	//keyboard
+	beq DATATYPE_ATTEMP,g24_data_receive_attemp	//reconn packet
+g24_rx_interrupt_clear:
+	arg mem_24g_rxbuf,contw
+	arg 66,loopcnt
+	branch clear_mem
+
+g24_data_receive_attemp:
+	call g24_bind_device_status		//works on auto pair only
+	branch g24_data_attemp
+
+g24_data_device1:
+	call g24_binding_dvc1_living	//works on auto pair only
+	call g24_ch_timer_reinit
+	fetch 1,mem_24g_abort_packet
+	fetcht 1,mem_24g_rxdata_temp
+	isolate1 bit_abort,temp
+	setflag true,0,pdata
+	store 1,mem_24g_abort_packet
+	beq 1,g24_data_attemp_device1_abort
+	fetch 1,mem_24g_hop_packet
+	fetcht 1,mem_24g_rxdata_temp
+	isolate1 bit_hop,temp
+	setflag true,0,pdata
+	store 1,mem_24g_hop_packet
+	fetch 2,mem_cb_24g_data_device1
+	branch callback_func
+
+g24_data_device2:
+	call g24_binding_dvc2_living	//works on auto pair only
+	fetcht 1,mem_24g_rxdata_temp
+	isolate1 bit_abort,temp
+	branch g24_data_attemp_device2_abort,true
+	fetch 2,mem_cb_24g_data_device2
+	branch callback_func
+
+g24_data_attemp_device1_abort:
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_car,null
+	call car_stop_blink,zero
+	fetch 4,mem_24g_rxdata_temp+10
+	branch g24_store_device1_addr
+g24_data_attemp_device2_abort:
+	fetch 4,mem_24g_rxdata_temp+10
+	branch g24_store_device2_addr	
+
+
+g24_receive_packet_parse_pid_crc:
+	call disable_user
+	fetch 1,mem_24g_sta_pid
+	fetcht 1,mem_24g_last_pid
+	isub temp,null
+	ncall enable_user,zero
+	fetch 1,mem_24g_sta_pid
+	store 1,mem_24g_last_pid
+	fetch 3,mem_24g_sta_crc
+	fetcht 3,mem_24g_last_crc
+	isub temp,null
+	ncall enable_user,zero
+	fetch 3,mem_24g_sta_crc
+	store 3,mem_24g_last_crc
+	rtn
+
+g24_receive_transmit_ack:
+	call g24_rx_interrupt_clear
+	call g24_receive_packet
+	nrtn user3
+g24_transmit_ack:
+//data type
+	fetch 1,mem_24g_rxbuf
+	store 1,mem_24g_data_type
+//read len pid crc
+	call g24_read_len_pid_crc
+//read ack
+	fetch 1,mem_24g_rxbuf+1
+	isolate1 bit_ack_24g,pdata
+	branch g24tx_no_ack,true
+g24tx_with_ack:
+	call g24_ackpayload_prep
+	call g24_transmit_prep
+	call g24_transmit
+g24tx_no_ack:
+	branch g24_end_of_packet
+
+
+g24_enable_nodata_timer:
+	jam 1,mem_24g_nodata_timer_enable
+g24_enable_nodata_timer_init:
+	setarg TIMER_NODATA_DELAY
+	arg TIMER_NODATA,queue
+	branch timer_init
+
+
+
+/****************************g24 receiver mode switch start********************************/
+
+g24_mode_switch_init:
+	jam 1,mem_24g_mode_switch
+	jam 0,mem_24g_time_slice
+	jam 0xff,mem_24g_interval
+	branch g24_timer_init
+	
+g24_mode_switch_bind_work:
+	bpatchx patch3c_4,mem_patch3c
+	fetch 1,mem_24g_mode_switch
+	rtn blank
+	call g24_timer_check
+	nrtn user	//80ms
+	call g24_bind_mode_continue
+	fetch 1,mem_24g_time_slice
+	increase 1,pdata
+	and_into 1,pdata
+	store 1,mem_24g_time_slice
+	beq 0,g24_work_mode_switch
+	beq 1,g24_bind_mode_switch
+	rtn
+
+g24_bind_mode_continue:
+	fetch 1,mem_24g_bind_mode_continue
+	rtn blank
+	increase -1,pdata
+	store 1,mem_24g_bind_mode_continue
+	rtn
+
+g24_work_mode_switch:
+	fetch 1,mem_24g_bind_mode_continue
+	nrtn blank
+	branch g24_switch_work_mode
+
+g24_bind_mode_switch:
+	fetch 1,mem_24g_bind_mode_continue
+	nrtn blank
+	branch g24_bind_mode_enable
+
+
+g24_mode_B_S_switch_init:	//bind and search
+	fetch 1,mem_24g_B_S_mode_switch_disable
+	nrtn blank
+	fetch 1,mem_24g_mode_B_S_switch_exit
+	call g24_mode_B_S_switch_start,blank
+	fetch 1,mem_24g_mode_B_S_switch_init
+	rtnbit1 0
+	set1 0,pdata
+	store 1,mem_24g_mode_B_S_switch_init
+	jam 1,mem_24g_mode_B_S_switch
+	jam 0,mem_24g_B_S_time_slice
+	setarg 0
+	store 2,mem_24g_mode_B_S_switch_cnt
+	jam 0x60,mem_24g_interval	//30ms
+	branch g24_timer_init
+
+g24_mode_switch_bind_search:
+	fetch 1,mem_24g_work_mode
+	rtneq DONGLE_WORK
+	fetch 1,mem_24g_B_S_mode_switch_disable
+	nrtn blank
+	fetch 1,mem_24g_mode_B_S_switch_exit
+	nrtn blank
+	fetch 1,mem_24g_mode_B_S_switch
+	rtn blank
+	call g24_timer_check
+	nrtn user
+	fetch 2,mem_24g_mode_B_S_switch_cnt
+	increase 1,pdata
+	store 2,mem_24g_mode_B_S_switch_cnt
+	arg 0x7d0,temp	//1min
+	isub temp,null
+	branch g24_mode_B_S_switch_exit,positive
+	call g24_bind_mode_continue
+	fetch 1,mem_24g_B_S_time_slice
+	increase 1,pdata
+	and_into 1,pdata
+	store 1,mem_24g_B_S_time_slice
+	beq 0,g24_mode_switch_search
+	beq 1,g24_bind_mode_enable
+	rtn
+
+g24_mode_switch_search:
+	fetch 1,mem_24g_bind_mode_continue
+	nbranch g24_bind_mode_enable,blank
+	branch g24_search_mode_enable
+
+g24_mode_B_S_switch_exit:
+	jam 1,mem_24g_mode_B_S_switch_exit
+	branch g24_search_mode_enable
+
+g24_mode_B_S_switch_stop:
+	jam 0,mem_24g_mode_B_S_switch
+	rtn
+g24_mode_B_S_switch_start:
+	jam 1,mem_24g_mode_B_S_switch
+	rtn
+
+
+
+/****************************g24 receiver mode switch end********************************/
+
+
+
+
+/****************************g24 receiver work mode start********************************/
+
+g24_work_init:
+	fetch 1,mem_24g_mode_init
+	rtnbit1 DONGLE_WORK
+	set1 DONGLE_WORK,pdata
+	store 1,mem_24g_mode_init
+	fetch 1,mem_tx_power_temp
+	store 1,mem_tx_power
+	jam 0,mem_24g_ackpayload_enable
+	jam 0,mem_usb_tx_enable
+	jam 1,mem_24g_abort_packet
+	jam 0,mem_24g_pid
+	fetch 4,mem_lap
+	call g24_update_addr_and_synccrc8
+	call g24_ch
+	branch g24_rx_interrupt_clear
+
+
+g24_switch_work_mode:
+	jam 0,mem_24g_ackpayload_enable
+g24_work_mode_enable:
+	jam DONGLE_WORK,mem_24g_work_mode
+	jam CLEAR_INIT,mem_24g_mode_init	
+	rtn
+
+
+g24_work_mode_start:
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_WORK
+	call g24_work_init
+	call g24_ch_process
+	branch g24_receive_packet_start
+
+
+
+/****************************g24 receiver work mode end********************************/
+
+
+
+
+
+
+/****************************g24 receiver bind mode start********************************/
+
+g24_bind_mode_auto:
+	bpatchx patch3c_5,mem_patch3c
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_BIND
+	call g24_bind_init
+	call g24_bind_data_process
+	fetch 1,mem_24g_pair_mode
+	nrtn blank
+	fetch 1,mem_24g_bind_device_status
+	rtn blank
+	jam 0,mem_24g_mode_switch
+	call g24_switch_work_mode
+	call g24_enable_nodata_timer
+	branch g24_timer_init
+
+
+/****************************g24 receiver bind mode end********************************/
+
+
+
+
+
+
+/****************************g24 receiver search mode start********************************/
+
+g24_search_mode_init:
+	fetch 1,mem_24g_mode_init
+	rtnbit1 DONGLE_SEARCH
+	set1 DONGLE_SEARCH,pdata
+	store 1,mem_24g_mode_init
+	jam 0,mem_24g_time_slice
+	jam 1,mem_24g_ackpayload_enable
+	setarg 0
+	store 3,mem_rssi_noise_self_index
+	store 7,mem_24g_self_config_ch_once
+	call g24_receiver_addr_check
+	nrtn zero
+	fetch 1,mem_24g_current_ch_number
+	store 1,mem_24g_self_ch_number
+	fetch 1,mem_24g_ch
+	store 1,mem_24g_self_last_ch
+	rtn
+
+
+g24_search_mode_auto:
+	bpatchx patch3c_6,mem_patch3c
+	fetch 1,mem_24g_work_mode
+	rtnne DONGLE_SEARCH
+	call g24_search_mode_init
+	call g24_auto_addr_ch_search
+	call g24_receive_transmit_ack
+	nbranch g24_rx_interrupt_clear,user3
+	//dongle addr,then parse rxdata
+	call g24_receiver_addr_check
+	call g24_receive_packet_parse,zero
+
+	fetch 1,mem_24g_abort_packet
+	call g24_mode_B_S_switch_stop,blank	//works on auto pair only
+	
+	//receive data,then go to paired
+	jam DONGLE_WORK,mem_24g_work_mode
+	fetch 1,mem_24g_mode_init
+	set1 DONGLE_WORK,pdata
+	store 1,mem_24g_mode_init
+
+	fetch 1,mem_24g_ackpayload_enable
+	sub pdata,2,null
+	ncall g24_ackpayload_disable,zero
+
+	call g24_rx_interrupt_clear
+	call g24_enable_nodata_timer
+	call g24_receiver_addr_check
+	branch g24_self_ch_num_reinit,zero
+	fetch 4,mem_24g_addr
+	fetcht 4,mem_24g_device2_addr
+	isub temp,null
+	branch g24_device2_ch_num_reinit,zero		
+	fetch 4,mem_24g_addr
+	fetcht 4,mem_24g_device1_addr
+	isub temp,null
+	branch g24_device1_ch_num_reinit,zero
+	rtn
+
+
+g24_self_ch_num_reinit:
+	fetch 1,mem_24g_self_ch_number
+g24_current_ch_num_reinit:
+	store 1,mem_24g_current_ch_number
+	rtn
+
+g24_device2_ch_num_reinit:
+	fetch 1,mem_24g_device2_ch_number
+	branch g24_current_ch_num_reinit
+
+g24_device1_ch_num_reinit:
+	fetch 1,mem_24g_device1_ch_number
+	branch g24_current_ch_num_reinit
+
+
+g24_auto_addr_ch_search:
+	fetch 1,mem_24g_time_slice
+	increase 1,pdata
+	and_into 3,pdata
+	store 1,mem_24g_time_slice
+	//pairing address and channel come first
+	beq 0,g24_auto_bind_config_device2
+	beq 1,g24_auto_bind_config_self
+	beq 2,g24_auto_bind_config_device1
+	beq 3,g24_auto_bind_config_self
+	rtn
+
+g24_auto_bind_config_device1:
+	call g24_bind_dvc1_payload_cfg
+	fetch 4,mem_24g_device1_addr
+	branch g24_auto_addr_ch_search,blank
+	call g24_update_addr_and_synccrc8
+	fetch 1,mem_24g_device1_config_ch_once
+	call g24_device1_config_ch_once,blank
+	fetch 1,mem_24g_device1_last_ch
+	store 1,mem_24g_ch
+	fetcht 1,mem_rssi_noise_device1_index
+	fetchr rega,2,mem_rssi_noise_device1_buffer_ptr
+	call rssi_store
+	storet 1,mem_rssi_noise_device1_index
+	call rssi_average
+	storet 1,mem_rssi_noise_device1_avg
+	sub temp,RSSI_THRESH_NOISE,null
+	nrtn positive
+	fetcht 1,mem_24g_device1_ch_number
+	call g24_ch_map_size
+	storet 1,mem_24g_device1_ch_number
+	store 1,mem_24g_device1_last_ch
+	rtn
+
+g24_device1_config_ch_once:
+	jam 1,mem_24g_device1_config_ch_once
+	arg 0,temp
+	call g24_ch_calc
+	store 1,mem_24g_device1_last_ch
+	rtn
+	
+g24_auto_bind_config_device2:
+	call g24_bind_dvc2_payload_cfg
+	fetch 4,mem_24g_device2_addr
+	branch g24_auto_addr_ch_search,blank
+	call g24_update_addr_and_synccrc8
+	fetch 1,mem_24g_device2_config_ch_once
+	call g24_device2_config_ch_once,blank
+	fetch 1,mem_24g_device2_last_ch
+	store 1,mem_24g_ch
+	fetcht 1,mem_rssi_noise_device2_index
+	fetchr rega,2,mem_rssi_noise_device2_buffer_ptr
+	call rssi_store
+	storet 1,mem_rssi_noise_device2_index
+	call rssi_average
+	storet 1,mem_rssi_noise_device2_avg
+	sub temp,RSSI_THRESH_NOISE,null
+	nrtn positive
+	fetcht 1,mem_24g_device2_ch_number
+	call g24_ch_map_size
+	storet 1,mem_24g_device2_ch_number
+	store 1,mem_24g_device2_last_ch
+	rtn
+
+g24_device2_config_ch_once:
+	jam 1,mem_24g_device2_config_ch_once
+	arg 0,temp
+	call g24_ch_calc
+	store 1,mem_24g_device2_last_ch
+	rtn	
+
+g24_auto_bind_config_self:
+	call g24_bind_dvc1_payload_cfg
+	fetch 4,mem_lap
+	call g24_update_addr_and_synccrc8
+	fetch 1,mem_24g_self_config_ch_once
+	call g24_self_config_ch_once,blank
+	fetch 1,mem_24g_self_last_ch
+	store 1,mem_24g_ch
+	fetcht 1,mem_rssi_noise_self_index
+	fetchr rega,2,mem_rssi_noise_self_buffer_ptr
+	call rssi_store
+	storet 1,mem_rssi_noise_self_index
+	call rssi_average
+	storet 1,mem_rssi_noise_self_avg
+	sub temp,RSSI_THRESH_NOISE,null
+	nrtn positive
+	fetcht 1,mem_24g_self_ch_number
+	call g24_ch_map_size
+	storet 1,mem_24g_self_ch_number
+	store 1,mem_24g_self_last_ch
+	rtn
+
+g24_self_config_ch_once:
+	jam 1,mem_24g_self_config_ch_once
+	fetch 1,mem_24g_self_last_ch
+	store 1,mem_24g_ch
+	rtn
+
+
+g24_ackpayload_disable:
+	jam 0,mem_24g_ackpayload_enable
+	rtn
+
+
+g24_receiver_addr_check:
+	fetch 4,mem_24g_addr
+	fetcht 4,mem_lap
+	isub temp,null
+	rtn
+
+/****************************g24 receiver search mode end********************************/
+
+
+
+
+
+
+/****************************g24 receiver nodata process start********************************/
+
+
+g24_nodata_process:
+	fetch 1,mem_24g_ackpayload_enable
+	rtneq 2
+	fetch 1,mem_24g_nodata_timer_enable
+	rtn blank
+	arg TIMER_NODATA,queue
+	call timer_check
+	nrtn blank
+	jam 0,mem_24g_nodata_timer_enable
+	jam 0,mem_24g_bind_mode_continue
+	call g24_mode_B_S_switch_init	//works on auto pair only	
+	//no data for more than 100ms,then go to search
+g24_search_mode_enable:	
+	jam DONGLE_SEARCH,mem_24g_work_mode
+	jam CLEAR_INIT,mem_24g_mode_init
+	branch g24_rx_interrupt_clear
+
+
+/****************************g24 receiver nodata process end********************************/
+
+
+g24_ch_process:
+	fetch 1,mem_24g_abort_packet
+	beq 1,rssi_noise_monitor
+	fetch 1,mem_24g_hop_packet
+	beq 1,g24_ch_receive_hop_pac
+	fetcht 4,mem_24g_hop_btclk
+	copy clkn_bt,pdata
+	isub temp,null
+	ncall g24_timer_timeout,positive
+	copy pdata,regb
+	fetch 4,mem_24g_hop_btclk
+	fetcht 1,mem_24g_hop_interval
+	iadd temp,temp
+	copy regb,pdata
+	isub temp,null
+	nrtn positive
+	set0 28,pdata
+	store 4,mem_24g_hop_btclk
+	jam 1,mem_24g_abort_packet
+	branch g24_ch
+
+g24_ch_receive_hop_pac:
+	jam 0,mem_24g_hop_packet
+	branch g24_ch
+
+g24_ch_timer_reinit:
+	copy clkn_bt,pdata
+	store 4,mem_24g_hop_btclk
+	rtn
+
Index: program/g24_protocol_stack/24g_reconn.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_reconn.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_reconn.prog	(working copy)
@@ -0,0 +1,162 @@
+
+/****************************g24 reconn transmitter start********************************/
+
+g24_reconn_timeout_timer:
+	arg mem_24g_reconn_timeout,regc
+	arg g24_stop_24g_mode,regb
+	branch timer_single_step_2B
+
+
+g24_reconn_start:
+	bpatchx patch3c_7,mem_patch3c
+	set1 mark_24g,mark
+	fetch 1,mem_24g_conn_sm
+	set0 STATE_24G_PAIR,pdata
+	set1 STATE_24G_RECONN,pdata
+	store 1,mem_24g_conn_sm
+	fetch 1,mem_24g_fast_conn_enable
+	branch g24_reconn_receiver_addr,blank
+	fetch 1,mem_24g_reconn_type
+	beq FAST_CONN_AND_RECEIVER,g24_reconn_fast_conn
+	beq FAST_CONN_AND_3_0_ADDR,g24_reconn_fast_conn
+	beq RECEIVER_AND_3_0_ADDR,g24_reconn_device_3_0_addr
+	beq PAIR_AND_3_0_ADDR,g24_reconn_device_3_0_addr
+g24_reconn_fast_conn:
+	fetch 1,mem_24g_pair_tx_power
+	store 1,mem_tx_power
+	fetcht 1,mem_24g_fast_conn_temp_ch
+	storet 1,mem_24g_current_ch_number
+	fetch 4,mem_24g_fast_conn_addr
+	call g24_ch_syncword_crc8_init
+	storet 1,mem_24g_fast_conn_temp_ch
+	rtn
+	 
+g24_reconn_receiver_addr:
+	jam TX_POWER_3DB,mem_tx_power
+	fetcht 1,mem_24g_receiver_temp_ch
+	storet 1,mem_24g_current_ch_number
+	fetch 4,mem_24g_receiver_addr
+	call g24_ch_syncword_crc8_init
+	storet 1,mem_24g_receiver_temp_ch
+	rtn
+
+g24_reconn_device_3_0_addr:
+	jam TX_POWER_3DB,mem_tx_power
+	fetcht 1,mem_24g_device_temp_ch
+	storet 1,mem_24g_current_ch_number
+	fetch 4,mem_24g_device_addr
+	call g24_ch_syncword_crc8_init
+	storet 1,mem_24g_device_temp_ch
+	rtn	
+
+g24_store_receiver_addr:
+	fetch 4,mem_24g_rxpayload+2
+	store 4,mem_24g_receiver_addr	
+g24_ch_syncword_crc8_init:	
+	call g24_update_addr_and_synccrc8
+	branch g24_ch
+
+
+g24_reconn_dispatch:
+	bpatchx patch3d_0,mem_patch3d
+	call g24_reconn_data_prep
+	call g24_transmit_receive_ack
+	nbranch g24_reconn_device_fail,sync
+	nbranch g24_reconn_device_fail,user3
+	call g24_ackpayload_parse
+g24_reconn_receiver_succ:
+	fetch 1,mem_24g_conn_sm
+	set0 STATE_24G_RECONN,pdata
+	store 1,mem_24g_conn_sm
+	setarg 0
+	store 2,mem_24g_pair_timeout
+	store 2,mem_24g_reconn_count
+	store 2,mem_24g_reconn_timeout	
+	fetch 4,mem_24g_pair_addr
+	fetcht 4,mem_24g_addr
+	isub temp,null
+	branch g24_pair_start,zero
+	fetch 4,mem_24g_device_addr
+	fetcht 4,mem_24g_addr
+	isub temp,null
+	call g24_store_receiver_addr,zero
+g24_reconn_attempt_success:	
+	jam BT_EVT_24G_ATTEMPT_SUCCESS,mem_fifo_temp
+	call ui_ipc_send_event
+g24_txbuf_clear:
+	arg 4,loopcnt
+	arg mem_24g_txbuf,contw
+	branch memset0
+
+g24_reconn_data_prep:
+	jam DATATYPE_ATTEMP,mem_24g_txbuf
+	fetch 1,mem_24g_data_type
+	store 1,mem_24g_txbuf+1
+	fetch 4,mem_24g_device_addr
+	store 4,mem_24g_txbuf+2
+	jam 6,mem_24g_datalen
+	branch g24_transmit_prep
+
+g24_reconn_device_fail:
+	fetch 1,mem_24g_fast_conn_enable
+	branch g24_ch,blank
+	fetch 2,mem_24g_reconn_count
+	increase 1,pdata
+	store 2,mem_24g_reconn_count
+	isolate1 3,pdata	// each 8 times switch
+	fetch 1,mem_24g_reconn_type
+	beq FAST_CONN_AND_RECEIVER,g24_reconn_fast_conn_and_receiver
+	beq FAST_CONN_AND_3_0_ADDR,g24_reconn_fast_conn_and_3_0
+	beq RECEIVER_AND_3_0_ADDR,g24_reconn_receiver_and_3_0
+	beq PAIR_AND_3_0_ADDR,g24_reconn_pair_and_3_0
+	branch g24_reconn_receiver_addr
+
+
+g24_reconn_fast_conn_and_receiver:
+	branch g24_reconn_receiver_addr,true
+	branch g24_reconn_fast_conn
+
+g24_reconn_fast_conn_and_3_0:
+	branch g24_reconn_device_3_0_addr,true
+	branch g24_reconn_fast_conn
+	
+g24_reconn_receiver_and_3_0:
+	branch g24_reconn_device_3_0_addr,true
+	branch g24_reconn_receiver_addr
+
+g24_reconn_pair_and_3_0:
+	branch g24_pair_init_param,true
+	branch g24_reconn_device_3_0_addr
+
+
+/****************************g24 reconn transmitter end********************************/
+
+
+
+
+
+/****************************g24 reconn receiver start********************************/
+
+g24_data_attemp:
+	fetch 1,mem_24g_rxdata_temp+3
+	beq DATATYPE_DEVICE1,g24_data_attemp_device1
+	beq DATATYPE_DEVICE2,g24_data_attemp_device2
+	rtn
+g24_data_attemp_device1:
+	fetch 4,mem_24g_rxdata_temp+4
+	store 4,mem_24g_transmitter_addr
+g24_store_device1_addr:
+	store 4,mem_24g_device1_addr
+	rtn
+g24_data_attemp_device2:
+	fetch 4,mem_24g_rxdata_temp+4
+	store 4,mem_24g_transmitter_addr	
+g24_store_device2_addr:
+	store 4,mem_24g_device2_addr
+	rtn
+
+/****************************g24 reconn receiver end********************************/
+
+
+
+
Index: program/g24_protocol_stack/24g_rssi.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_rssi.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_rssi.prog	(working copy)
@@ -0,0 +1,109 @@
+
+/****************************g24 rssi general start********************************/
+
+rssi_store:
+	copy rega,pdata
+	iadd temp,contw
+	fetch 1,mem_rssi
+	istore 1,contw
+	increase 1,temp
+	fetch 1,mem_rssi_buff_index	//buff len minus 1
+	iand temp,temp
+	rtn
+rssi_average:
+	fetch 1,mem_rssi_buff_index
+	increase 1,pdata
+	store 2,mem_loopcnt
+	copy pdata,loopcnt
+	copy rega,contr
+	arg 0,pdata
+rssi_average_loop:
+	ifetcht 1,contr
+	iadd temp,pdata
+	loop rssi_average_loop
+	fetcht 2,mem_loopcnt
+	idiv temp
+	call wait_div_end
+	quotient temp
+	rtnmark1 mark_24g_rxmode
+	copy temp,pdata
+	rtnmark0 mark_24g
+	call bcd
+	copy pdata,temp
+	rtn
+
+save_rssi_dec:
+	call save_rssi
+	branch rssi_hex2dec
+
+/****************************g24 rssi general end********************************/
+
+
+
+
+
+/****************************g24 transmitter rssi start********************************/
+rssi_transmitter_buff_init:
+	fetch 2,mem_rssi_signal_buf_ptr
+	branch rssi_buff_clear
+
+rssi_signal:
+	copy pdata,rega
+	fetcht 1,mem_rssi_signal_index
+	fetch 2,mem_rssi_signal_buf_ptr
+	iadd temp,contw
+	copy rega,pdata
+	istore 1,contw
+	increase 1,temp
+	fetch 1,mem_rssi_buff_index	//buff len minus 1
+	iand temp,temp
+	storet 1,mem_rssi_signal_index
+	rtn
+
+/****************************g24 transmitter rssi end********************************/
+
+
+
+
+
+/****************************g24 receiver rssi start********************************/
+
+rssi_receiver_buff_init:
+	fetch 2,mem_rssi_noise_buffer_ptr
+	call rssi_buff_clear
+	fetch 2,mem_rssi_noise_self_buffer_ptr
+	call rssi_buff_clear
+	fetch 2,mem_rssi_noise_device1_buffer_ptr
+	call rssi_buff_clear
+	fetch 2,mem_rssi_noise_device2_buffer_ptr
+rssi_buff_clear:
+	rtn blank
+	copy pdata,contw
+	fetch 1,mem_rssi_buff_index
+	increase 1,pdata
+	copy pdata,loopcnt
+	branch clear_mem
+
+
+rssi_noise:
+	call save_rssi_dec
+	rtn blank
+	fetcht 1,mem_rssi_noise_index
+	fetchr rega,2,mem_rssi_noise_buffer_ptr
+	call rssi_store
+	storet 1,mem_rssi_noise_index
+	rtn
+
+
+rssi_noise_monitor:
+	fetchr rega,2,mem_rssi_noise_buffer_ptr
+	call rssi_average
+	storet 1,mem_rssi_noise_avg
+	sub temp,RSSI_THRESH_NOISE,null
+	nrtn positive
+	branch g24_ch
+
+
+/****************************g24 receiver rssi end********************************/
+
+	
Index: program/g24_protocol_stack/24g_transmitter.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_transmitter.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_transmitter.prog	(working copy)
@@ -0,0 +1,377 @@
+
+
+g24_transmit_init:
+	fetch 4,mem_lap		//need to roll this address
+	store 4,mem_24g_device_addr
+	call g24_rx_window_init
+	branch rssi_transmitter_buff_init
+
+g24_interval_param_4ms:
+	setarg G24_4MS_INTERVAL_PARAM
+	store 3,mem_24g_short_sleep_set
+	setarg 0x100c0c
+	store 3,mem_24g_interval
+	setarg 0x00bb80
+	store 3,mem_24g_long_sleep_set
+	jam 5,mem_24g_fast_hop_count
+	rtn
+
+g24_interval_param_8ms:
+	setarg G24_8MS_INTERVAL_PARAM
+	store 3,mem_24g_short_sleep_set
+	setarg 0x1c1919
+	store 3,mem_24g_interval
+	setarg 0x017700
+	store 3,mem_24g_long_sleep_set
+	jam 11,mem_24g_fast_hop_count
+	rtn
+
+
+g24_transmit_dispatch:
+	rtnmark0 mark_24g
+	fetch 1,mem_24g_conn_sm
+	bbit1 STATE_24G_PAIR,g24_pair_dispatch
+	bbit1 STATE_24G_RECONN,g24_reconn_dispatch
+	fetch 1,mem_24g_transmit_by_interrupt
+	beq G24_TX_TIMER_INT_ENABLE,g24_transmit_by_interrupt
+g24_transmit_no_interrupt:
+	bpatchx patch3d_1,mem_patch3d
+	call g24_txdata_prep
+	nbranch g24_nodata_transmit,user
+g24_transmit_start:
+	call g24_transmit_process
+	call power_ctrl_start
+	fetch 1,mem_device_option
+	beq dvc_op_mouse,mouse_24g_transmit_start
+g24_transmit_start_next:	
+	fetch 8,mem_24g_long_sleep_set
+	store 8,mem_24g_enter_hibernate
+	fetch 2,mem_24g_long_sleep_param_update_timer_init
+	store 2,mem_24g_long_sleep_param_update_timer
+g24_short_sleep:
+	call g24_lpm_wait
+	nrtn user
+	call clear_wake
+	fetch 3,mem_24g_short_sleep_set
+	branch g24_long_seep2
+
+
+
+
+/****************************g24 transmitter data prep start********************************/
+
+g24_txdata_prep:
+	call g24_package_data
+	nrtn user
+	branch g24_transmit_prep
+
+
+g24_package_data:
+	fetch 2,mem_cb_24g_transmit_data
+	call callback_func
+	branch g24_accumulate_data,user
+	fetch 7,mem_24g_txbuf+1	//mouse data
+	rtn blank
+	branch enable_user	// retransmit
+	
+g24_accumulate_data:
+	jam 0,mem_24g_abort_pac
+	add rega,1,pdata
+	store 1,mem_24g_datalen
+	call g24_transmit_rf_ctrl_clear
+	store 1,mem_24g_txbuf
+	copy regb,contr
+	copy rega,loopcnt
+	branch memcpy
+
+g24_transmit_rf_ctrl_clear:	
+	fetch 1,mem_24g_data_type
+	and_into bits_data,pdata
+	store 1,mem_24g_data_type
+	rtn
+
+/****************************g24 transmitter data prep end********************************/
+
+
+
+
+/****************************g24 transmitter data transmit start********************************/
+
+g24_transmit_process:
+	jam 0,mem_24g_retry
+g24_transmit_loop:
+	fetchr timeup,2,mem_param_rx_setup
+	until clkn_rt,meet
+	call g24_transmit_receive_ack
+	fetch 1,mem_24g_no_ack	//tx noack
+	beq no_ack_24g,g24_transmit_no_ack
+	nbranch g24_retransmit,sync
+	nbranch g24_retransmit,user3
+	call g24_ackpayload_parse
+	fetch 1,mem_device_option
+	beq dvc_op_mouse,mouse_wakeup_24g
+g24_transmit_no_ack:
+	call power_ctrl_pac_succ_incrs
+g24_transmit_next_packet:
+	call g24_txbuf_clear
+	fetch 1,mem_24g_pid
+	increase 1,pdata
+	store 1,mem_24g_pid
+	call g24_hop_enable_packet
+g24_transmit_abandon:
+	setarg 0
+	store 1,mem_24g_ensure
+	store 2,mem_24g_txfail_cnt
+	rtn
+
+g24_transmit_receive_ack:
+	disable user3
+	call g24_transmit
+	fetch 1,mem_24g_no_ack
+	beq no_ack_24g,g24_end_of_packet
+	force 0,radio_ctrl
+	fetch 4,mem_24g_addr
+	iforce access
+	call calc_mod_value_scale_le	
+	fetcht 1,mem_last_freq
+	call set_freq_rx
+	call rf_rx_enable
+	call g24_receive_rxon
+	call g24_end_of_packet,user3
+	rtn
+
+g24_retransmit:
+	fetch 1,mem_24g_abort_pac
+	nrtn blank
+	fetch 2,mem_24g_txfail_cnt
+	increase 1,pdata
+	store 2,mem_24g_txfail_cnt	
+	fetch 1,mem_24g_txfail_cnt+1
+	bbit1 4,g24_tx_attempt_fail
+	call g24_transmit_hop_process
+	branch g24_transmit_loop
+
+
+g24_ackpayload_parse:
+	call g24_read_len_pid_crc
+	fetch 1,mem_24g_rxdata_length	//ack payload length 
+	rtn blank
+	iforce loopcnt
+	arg mem_24g_rxbuf+2,contr
+	arg mem_24g_rxpayload,contw	//ack payload buffer 
+	branch memcpy
+
+
+g24_tx_attempt_fail:
+	setarg 0
+	store 2,mem_24g_txfail_cnt
+	jam 1,mem_24g_attempt_fail_flag
+g24_stop_24g_mode:	
+	jam BT_EVT_24G_ATTEMPT_FAIL,mem_fifo_temp
+	branch ui_ipc_send_event
+
+/****************************g24 transmitter data transmit end********************************/
+
+
+
+
+
+/****************************g24 transmitter hop start********************************/
+
+g24_transmit_hop_process:
+	bpatchx patch3d_2,mem_patch3d
+	fetcht 1,mem_24g_retry
+	fetch 1,mem_24g_fast_hop_count			// 125Hz=11  250Hz=5
+	isub temp,null
+	nbranch g24_tx_fast_hop,positive		// >= (6+6)or(3+3) hop fast    fail packet count >= 2
+	increase 1,temp
+	storet 1,mem_24g_retry
+	fetch 1,mem_24g_fast_hop_count
+	beq 5,g24_transmit_hop_process_4ms
+	fetch 1,mem_24g_retry
+	beq 6,g24_hop_ch_disable
+	beq 12,g24_hop_ch_disable
+	rtn	
+
+
+g24_transmit_hop_process_4ms:
+	fetch 1,mem_24g_retry
+	beq 3,g24_hop_ch_disable
+	beq 6,g24_hop_ch_disable
+	rtn	
+
+
+
+g24_hop_ch_enable:
+	//fetch 1,mem_24g_data_type
+	//set1 bit_hop,pdata
+	//store 1,mem_24g_data_type
+	//update txpayload
+g24_txpayload_type_update:	
+	bmark1 mark_ble_lr,g24_lr_type_update
+	store 1,mem_24g_txpayload+OFFSET_DATA_TYPE
+	rtn
+g24_lr_type_update:
+	store 1,mem_24g_txpayload+OFFSET_LR_DATA_TYPE
+	rtn
+
+g24_hop_enable_packet:
+	fetch 1,mem_24g_data_type
+	rtnbit0 bit_hop
+g24_hop_ch_disable:
+	fetch 1,mem_24g_data_type
+	set0 bit_hop,pdata
+	store 1,mem_24g_data_type
+	call g24_txpayload_type_update
+	call power_ctrl_pac_succ_decrs
+	branch g24_ch
+
+g24_tx_fast_hop:
+	call power_ctrl_txpower_incrs
+	call power_ctrl_pac_succ_decrs
+	branch g24_ch
+	
+/****************************g24 transmitter hop end********************************/
+
+
+
+
+
+
+
+
+
+
+
+
+
+/****************************g24 transmitter long lpm prep start********************************/
+
+g24_search_receiver:
+	fetch 2,mem_cb_24g_search_receiver
+	branch callback_func
+
+g24_nodata_transmit:
+	fetch 1,mem_24g_abort_pac
+	call g24_send_abort_packet,blank
+	call g24_transmit_by_interrupt_exit
+	call g24_search_receiver
+	branch g24_long_sleep
+
+g24_send_abort_packet:
+	jam TYPE_MS,mem_24g_data_type
+	jam 1,mem_24g_abort_pac
+	call g24_transmit_rf_ctrl_clear
+	store 1,mem_24g_txbuf
+	setarg 0
+	store 7,mem_24g_txbuf+1
+	fetch 4,mem_24g_device_addr
+	store 4,mem_24g_txbuf+8
+	jam 12,mem_24g_datalen
+	fetch 1,mem_24g_data_type
+	set1 bit_abort,pdata
+	store 1,mem_24g_data_type
+	call g24_transmit_prep
+	branch g24_transmit_start
+	
+g24_long_sleep:
+	call g24_lpm_wait
+	nrtn user
+	fetch 8,mem_24g_enter_hibernate
+g24_long_seep2:
+	call clk2lpo
+	storet 4,mem_sleep_counter
+	branch lpm_sleep
+
+g24_lpm_wait:
+	bpatchx patch3d_3,mem_patch3d
+	enable user
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch disable_user,blank
+	fetch 1,mem_lpm_mode
+	branch disable_user,blank
+g24_setgpio_lpm_before:
+	fetch 2,mem_cb_24g_lpm_before
+	branch callback_func
+
+
+/****************************g24 transmitter long lpm prep end********************************/
+
+
+
+
+
+
+
+/****************************g24 transmit by interrupt start********************************/
+
+g24_transmit_by_interrupt:
+	call g24_timer_check
+	nrtn user
+	call g24_interval_calibrate
+	fetch 2,mem_24g_transmit_by_interrupt_exit_count
+	increase 1,pdata
+	store 2,mem_24g_transmit_by_interrupt_exit_count
+	fetcht 2,mem_24g_transmit_by_interrupt_exit_count_init
+	isub temp,null
+	call g24_transmit_by_interrupt_exit,zero
+	branch g24_transmit_no_interrupt
+
+	
+g24_transmit_by_interrupt_exit:
+	jam G24_TX_TIMER_INT_DISABLE,mem_24g_transmit_by_interrupt
+	setarg 0
+	store 2,mem_24g_transmit_by_interrupt_exit_count
+	setarg 100
+	store 2,mem_24g_transmit_by_interrupt_exit_count_init
+g24_interval_min:
+	jam 0,mem_24g_pac_index
+	fetch 1,mem_24g_interval_min
+g24_interval_store:
+	store 1,mem_24g_interval
+	rtn
+g24_interval_max:
+	fetch 1,mem_24g_interval_max
+	branch g24_interval_store
+	
+g24_interval_calibrate:
+	fetch 1,mem_24g_pac_index
+	increase 1,pdata
+	store 1,mem_24g_pac_index
+	beq 4,g24_interval_max
+	beq 5,g24_interval_min
+	rtn
+
+g24_transmit_by_interrupt_enable:
+	jam G24_TX_TIMER_INT_ENABLE,mem_24g_transmit_by_interrupt
+	setarg 0
+	store 2,mem_24g_transmit_by_interrupt_exit_count
+	rtn
+
+
+/****************************g24 transmit by interrupt end********************************/
+
+
+
+
+/****************************g24 transmitter fac check start********************************/
+
+g24_factory_check:
+	arg 2,loopcnt
+	arg mem_24g_addr,contr
+pdata_0xff_check:
+	call enable_user
+	setarg 0xffff
+pdata_0xff_check_loop:
+	ifetcht 2,contr
+	isub temp,null
+	ncall disable_user,zero
+	loop pdata_0xff_check_loop
+	rtn
+
+/****************************g24 transmitter fac check end********************************/
+
+
+
+	
Index: program/g24_protocol_stack/24g_txpower_ctrl.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_txpower_ctrl.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/g24_protocol_stack/24g_txpower_ctrl.prog	(working copy)
@@ -0,0 +1,95 @@
+
+/****************************g24 transmitter tx power start********************************/
+
+power_ctrl_start:
+	bpatchx patch3d_4,mem_patch3d
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_ADV
+	rtnbit1 UI_STATE_BT_RECONNECT
+	rtnbit1 UI_STATE_BT_DISCOVERY
+	fetchr rega,2,mem_rssi_signal_buf_ptr
+	call rssi_average
+	storet 1,mem_rssi_avg_received
+	fetch 1,mem_rssi_dis_max_24g
+	bmark1 mark_24g,power_ctrl_start_next
+	fetch 1,mem_rssi_dis_max_ble
+power_ctrl_start_next:
+	isub temp,null
+	nbranch power_ctrl_txpower_incrs_force,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	sub pdata,2,null
+	nbranch power_ctrl_txpower_decrs_check,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	beq 0,power_ctrl_txpower_incrs
+	rtn
+
+power_ctrl_txpower_decrs_check:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	fetcht 1,mem_power_ctrl_pac_succ_cnt_init
+	isub temp,null
+	nrtn zero
+	jam 0,mem_power_ctrl_pac_succ_cnt
+power_ctrl_txpower_decrs:
+	fetcht 1,mem_rssi_avg_received
+	fetch 1,mem_rssi_dis_min_24g
+	bmark1 mark_24g,power_ctrl_txpower_decrs_next
+	fetch 1,mem_rssi_dis_min_ble
+power_ctrl_txpower_decrs_next:	
+	isub temp,null
+	nrtn positive
+	fetch 1,mem_power_ctrl_level
+	beq 0,power_ctrl_decrs_level0
+	increase -1,pdata
+	store 1,mem_power_ctrl_level
+	beq 0,power_ctrl_decrs_level0
+power_ctrl_decrs_level1:
+power_ctrl_incrs_level1:	//0dBm
+	jam TX_POWER_0DB,mem_tx_power
+	rtn
+
+power_ctrl_txpower_incrs_force:
+	jam 0,mem_power_ctrl_pac_succ_cnt
+power_ctrl_txpower_incrs:
+	fetch 1,mem_power_ctrl_level
+	beq 2,power_ctrl_incrs_level2
+	increase 1,pdata
+	store 1,mem_power_ctrl_level
+	beq 1,power_ctrl_incrs_level1
+power_ctrl_incrs_level2:	//+6dBm
+	jam TX_POWER_6DB,mem_tx_power
+	rtn
+	
+power_ctrl_decrs_level0: //-5dBm
+	jam TX_POWER_f5DB,mem_tx_power
+	rtn
+
+power_ctrl_pac_succ_cnt_init:
+	jam 1,mem_power_ctrl_level
+	jam 0,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+power_ctrl_pac_succ_incrs:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	increase 1,pdata
+	store 1,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+power_ctrl_pac_succ_decrs:
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	sub pdata,2,null
+	ncall power_ctrl_pac_succ_cnt_reinit,positive
+	fetch 1,mem_power_ctrl_pac_succ_cnt
+	rtneq 0
+	increase -1,pdata
+	store 1,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+power_ctrl_pac_succ_cnt_reinit:
+	jam 3,mem_power_ctrl_pac_succ_cnt
+	rtn
+
+/****************************g24 transmitter tx power end********************************/
+
+
+
+
Index: program/hci_main.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/hci_main.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/hci_main.prog	(working copy)
@@ -0,0 +1,306 @@
+/*********************************/
+/**********   HCI  *****************/
+/*********************************/
+
+hci_init:
+	clear_stack		//清空堆栈
+	call wdt_set_disable
+	call hci_init_clksel_xtal
+	call hci_init_uart_default_config
+	call hci_init_uart_config
+	call hci_init_pwm_default_config
+	call hci_init_pwm
+
+	jam 1,mem_hci_command_complete_num_hci_command_packet
+	jam HCI_H4_TYPE_EVENT,mem_hci_event_head_type
+
+hci_process_loop:
+	call hci_process_check_uart_rx
+	branch hci_process_loop
+	
+hci_init_clksel_xtal:
+	jam clksel_xtal,core_clksel
+	rtn
+
+hci_init_uart_default_config:
+	call hci_init_uart_default_config_tx
+	call hci_init_uart_default_config_rx
+	call hci_init_uart_default_config_rts
+	branch hci_init_uart_default_config_cts
+
+hci_init_uart_default_config_tx:
+	fetch 1,mem_hci_uart_tx_gpio
+	nrtn blank
+	jam HCI_UART_TX_GPIO_NUM,mem_hci_uart_tx_gpio
+	rtn	
+
+hci_init_uart_default_config_rx:
+	fetch 1,mem_hci_uart_rx_gpio
+	nrtn blank
+	jam HCI_UART_RX_GPIO_NUM,mem_hci_uart_rx_gpio
+	rtn	
+hci_init_uart_default_config_rts:
+	fetch 1,mem_hci_uart_rts_gpio
+	nrtn blank
+	jam HCI_UART_RTS_GPIO_NUM,mem_hci_uart_rts_gpio
+	rtn	
+hci_init_uart_default_config_cts:
+	fetch 1,mem_hci_uart_cts_gpio
+	nrtn blank
+	jam HCI_UART_CTS_GPIO_NUM,mem_hci_uart_cts_gpio
+	rtn	
+
+
+hci_init_uart_config:
+	setarg mem_h5rx_buf
+	store 2,mem_pdatatemp
+	setarg mem_h5rx_buf_end
+	istore 2,contw
+	setarg mem_h5tx_buf
+	istore 2,contw
+	setarg mem_h5tx_buf_end
+	istore 2,contw	
+	fetch 8,mem_pdatatemp
+	call uarta_init_dma_mem
+	call uart_clock_select_main_freq_crystal
+	arg 115200,temp
+	call uarta_calc_baud_rate_config
+	fetch 1,mem_hci_uart_tx_gpio
+	arg gpcfg_uart_txd,temp
+	call gpio_config_function_int
+	fetch 1,mem_hci_uart_rx_gpio
+	arg gpcfg_uart_rxd|gpcfg_pullup,temp
+	call gpio_config_function_int
+	fetch 1,mem_hci_uart_rts_gpio
+	arg gpcfg_uart_rts,temp
+	call gpio_config_function_int
+	fetch 1,mem_hci_uart_cts_gpio
+	arg gpcfg_uart_cts,temp
+	call gpio_config_function_int
+
+	arg FUN_UART_CONTROL_ENABLE|FUN_UART_CONTROL_SETTING_RATE_BAUD,temp
+	storet 1,core_uart_ctrl
+	branch clean_mem
+
+hci_init_pwm_default_config:
+	fetch 1,mem_hci_pwm_12mhz_gpio
+	nrtn blank
+	jam HCI_PMW_12MHZ_GPIO_NUM,mem_hci_pwm_12mhz_gpio
+	rtn	
+
+hci_init_pwm:
+	fetch 1,mem_hci_pwm_12mhz_gpio
+	arg gpcfg_pwm_out0,temp
+	call gpio_config_function_int
+	arg 0x40,rega
+	call pwm_init
+	arg 0,rega
+	arg 0,regb
+	setarg 0
+	call pwm_duty_cycle_set
+	arg 0,queue
+	branch pwm_set_select
+
+
+hci_process_check_uart_rx:
+	fetch 2,core_uart_rxitems
+	add pdata,-4,rega
+	nrtn positive
+	call uarta_prepare_rx
+	ifetch 1,contru
+	beq HCI_H4_TYPE_CMD,hci_parse_packet_cmd
+//	beq HCI_H4_TYPE_ACL,hci_parse_packet_acl
+	call delay_10ms
+	branch uarta_clear_current_rx
+
+//hci_parse_packet_acl:
+//	rtn
+hci_parse_packet_cmd:
+	ifetch 2,contru	// Opcode
+	store 2,mem_hci_opcode
+	arg 0x3ff,temp
+	iand temp,temp	//low 10bit
+	storet 2,mem_hci_opcode_ocf
+	rshift2 pdata,pdata
+	rshift8 pdata,pdata	//high 6bit
+	store 1,mem_hci_opcode_ogf
+	ifetch 1,contru	// parameter total length
+	pincrease -1		//大于等于
+	isub rega,null
+	rtn positive
+	call hci_parse_complete_packet
+	branch hci_drop_current_packet
+
+hci_parse_complete_packet:
+	fetch 1,mem_hci_opcode_ogf
+//	beq HCI_OGF_LINK_CONTROL,hci_parse_packet_cmd_ogf_link_control
+//	beq HCI_OGF_LINK_POLICY,hci_parse_packet_cmd_ogf_link_policy
+//	beq HCI_OGF_CONTROLLER_AND_BASEBAND,hci_parse_packet_cmd_ogf_controller_and_baseband
+//	beq HCI_OGF_INFOMATIONAL_PARAM,hci_parse_packet_cmd_ogf_infomational_parameters
+//	beq HCI_OGF_STATUS_PARAM,hci_parse_packet_cmd_ogf_status_parameters
+//	beq HCI_OGF_TEST,hci_parse_packet_cmd_ogf_testing
+//	beq HCI_OGF_LE_CONTROLLER,hci_parse_packet_cmd_ogf_le_controller
+	beq HCI_OGF_VENDOR_SPECIFIC_DEBUG,hci_parse_packet_cmd_ogf_vendorspecific_debug
+	branch hci_send_event_command_complete_error_command_nuknown
+
+//hci_parse_packet_cmd_ogf_link_control:
+//hci_parse_packet_cmd_ogf_link_policy:
+//hci_parse_packet_cmd_ogf_controller_and_baseband:
+//hci_parse_packet_cmd_ogf_infomational_parameters:
+//hci_parse_packet_cmd_ogf_status_parameters:
+//hci_parse_packet_cmd_ogf_testing:
+//hci_parse_packet_cmd_ogf_le_controller:
+
+hci_parse_packet_cmd_ogf_vendorspecific_debug:
+	bpatch patch1c_5,mem_patch1c
+	fetch 1,mem_hci_opcode_ocf
+	beq HCI_VENDOR_CMD_RESET,hci_normal_reply
+	beq HCI_VENDOR_CMD_CHIPID,phci_grp_vendor_chipid
+	beq HCI_VENDOR_CMD_BAUD,phci_grp_vendor_baud
+	beq HCI_VENDOR_CMD_PATCH,phci_grp_vendor_patch
+	beq HCI_VENDOR_CMD_PATCH_DONE,phci_grp_vendor_done
+	beq HCI_VENDOR_CMD_ECHO,hci_normal_reply
+	beq HCI_VENDOR_CMD_MEM,phci_grp_vendor_mem
+	beq HCI_VENDOR_CMD_SET_FLOW_CONTROL,phci_grp_vendor_flow_control
+	branch hci_normal_reply
+
+	
+phci_grp_vendor_chipid:
+	jam COMMAND_SUCCEEDED,mem_hci_command_complete_return_parameter
+	fetch 2,core_chipid
+	store 2,mem_hci_command_complete_return_parameter_chip_id
+	arg 3,loopcnt
+	branch hci_send_event_command_complete
+	
+phci_grp_vendor_baud:
+	ifetch 2,contu
+	store 2,core_uart_baud
+	rtn
+
+
+phci_grp_vendor_patch_common:
+	ifetch 1,contu
+	copy pdata,temp //check sum via temp
+	store 1,core_ucode_low
+	ifetch 1,contu
+	iadd temp,temp
+	set1 7,pdata
+	store 1,core_ucode_ctrl
+	ifetch 1,contu
+	iadd temp,temp
+	copy pdata,loopcnt
+	rtn
+	
+phci_grp_vendor_patch:
+	call phci_grp_vendor_patch_common
+phci_grp_vendor_patch_loop:
+	ifetch 1,contu
+	store 1,core_ucode_data
+	iadd temp,temp
+	loop phci_grp_vendor_patch_loop
+phci_grp_vendor_patch_check_sum:	
+	and temp,0xff,temp
+	ifetch 1,contu
+	isub temp,null
+	nbranch phci_grp_vendor_patch_bad,zero
+	branch hci_normal_reply
+
+phci_grp_vendor_done:
+	arg 0x20,loopcnt    //patch switch length
+	arg mem_patch00,contw
+	arg 0,temp //checksum
+phci_grp_vendor_done_loop:
+	ifetch 1,contu
+	istore 1,contw
+	iadd temp,temp
+	loop phci_grp_vendor_done_loop
+	and temp,0xff,temp
+	ifetch 1,contu
+	isub temp,null
+	nbranch phci_grp_vendor_patch_bad,zero
+	jam 0,core_ucode_ctrl
+	call hci_normal_reply
+	call wait_uarttx
+	branch soft_reset
+
+phci_grp_vendor_patch_bad:
+	jam 0,core_ucode_ctrl
+	branch hci_send_event_command_complete_error_command_nuknown
+	
+
+phci_grp_vendor_mem:
+	ifetch 1,contu
+	copy pdata,loopcnt
+	ifetch 2,contu
+	copy pdata,contw
+	call uart_copy_rx_bytes
+	branch hci_normal_reply
+
+phci_grp_vendor_flow_control:
+	fetch 1,core_uart_ctrl
+	set1 BIT_UART_CONTROL_FLOW_CONTROL,pdata
+	store 1,core_uart_ctrl
+	branch hci_normal_reply
+
+	
+hci_normal_reply:
+	branch hci_send_event_command_complete_without_payload
+
+hci_send_event_command_complete_error_command_nuknown:
+	jam COMMAND_UNKNOWN,mem_hci_command_complete_return_parameter
+	branch hci_send_event_command_complete_without_payload+1
+hci_send_event_command_complete_error_command_disallowed:
+	jam COMMAND_DISALLOWED,mem_hci_command_complete_return_parameter
+	branch hci_send_event_command_complete_without_payload+1
+hci_send_event_command_complete_without_payload:
+	jam COMMAND_SUCCEEDED,mem_hci_command_complete_return_parameter
+	arg 1,loopcnt
+	branch hci_send_event_command_complete
+
+/***************
+function:send command complete event to host
+input:
+mem_mesh_command_complete_num_hci_command_packet:
+Num Hci Command Packet Commonly used 1
+mem_mesh_hci_opcode:command opcode ,OCF & OGF
+loopcnt:return parameters data length
+mem_mesh_command_complete_return_parameter
+:return parameters data point
+***************/
+hci_send_event_command_complete:
+	jam HCI_EVENT_COMMAND_COMPLETE,mem_hci_event_head_event_code
+	add loopcnt,3,pdata
+	store 1,mem_hci_event_para_total_length
+	call hci_prepare_send_event
+	fetch 3,mem_hci_command_complete_num_hci_command_packet
+	istore 3,contwu
+//	copy rega,contr
+	arg mem_hci_command_complete_return_parameter,contr
+	call uart_copy_tx_bytes
+	branch uarta_send_register_pop
+
+//mem_mesh_event_head_event_code:event code
+//mem_mesh_event_para_total_length:parameter total length
+hci_prepare_send_event:
+	call uarta_prepare_tx_register_push
+	fetch 3,mem_hci_event_head_type
+	istore 3,contwu
+	rtn
+
+hci_drop_current_packet:
+	call uarta_prepare_rx
+	increase 3,contru
+	ifetch 1,contru
+	iadd contru,contru
+	branch uarta_rxdone
+
+cmd_exit:
+	jam 0,mem_hci_cmd
+	rtn
+
+cmd_check_plap:
+	fetch 6,mem_hci_plap
+	fetcht 6,mem_plap
+	isub temp,null
+	rtn
+
Index: program/hid.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/hid.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/hid.prog	(working copy)
@@ -0,0 +1,89 @@
+/**
+* the following API is to send the HID data
+* 
+*/
+
+/**
+* the following API is to process the hid  rx data
+* 
+*/
+//handle the hid data
+
+hid_rx_process:
+	bpatch patch1c_6,mem_patch1c
+	fetch 2,mem_l2cap_payload_ptr
+	copy pdata,contr
+	ifetch 1,contr
+	store 1,mem_l2cap_rcv_hidtype
+	and pdata,0x0f,temp
+	rshift4 pdata,pdata //hidtype
+	beq hid_type_set_idle,hid_rx_process_handshake
+	beq hid_type_set_protocol,hid_rx_process_handshake
+	beq hid_type_data,hid_rx_process_data
+	beq HID_TYPE_SET_REPORT,hid_rx_process_set_report
+	beq HID_TYPE_CONTROL,hid_rx_process_hid_control
+	rtn
+
+hid_rx_process_hid_control:
+	copy temp,pdata
+	beq HID_CONTROL_P_VIRTUALCABLEUNPLUG,hid_rx_process_virtual_cable_unplug
+	beq HID_CONTROL_P_SUSPEND,hid_rx_process_suspend
+	rtn
+	
+hid_rx_process_virtual_cable_unplug:
+	jam BT_EVT_VIRTUAL_CABLE_UNPLUG,mem_fifo_temp
+	call ui_ipc_send_event
+	fetch 1,mem_device_option
+	rtnne dvc_op_mouse
+	copy temp,pdata
+	beq HID_CONTROL_P_VIRTUALCABLEUNPLUG,mouse_irtual_cable_unplug
+	rtn
+hid_rx_process_suspend:
+	rtn
+
+hid_rx_process_set_report:
+	call hid_rx_process_data
+	arg 0x01,rega
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_ctrl_remote_cid
+	istore 2,contw
+	setarg 0x00
+	istore 1,contw
+	rtn
+
+hid_rx_process_handshake:
+	arg 1,rega//payload length
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_ctrl_remote_cid
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	jam 1,mem_ui_data_txbuff_length
+	fetch 1,mem_hid_control_state
+	set1 l2cap_channel_hid_handshake_done,pdata
+	store 1,mem_hid_control_state
+	jam BT_EVT_HID_HANDSHAKE,mem_fifo_temp
+	call ui_ipc_send_event
+	fetch 1,mem_device_option
+	rtnne dvc_op_mouse
+	branch mouse_bt_hid_handshake_boot_check
+	
+
+hid_rx_process_data:
+	ifetch 1,contr
+	beq HID_REPORT_ID_KB,hid_rx_process_data_hid_kb
+	rtn
+
+hid_rx_process_data_hid_kb:
+	rtn
+
+	
+hid_malloc_tx_buff:
+	call l2cap_malloc
+	copy rega,temp
+	storet 1,mem_ui_data_txbuff_length
+	copy pdata,contw
+	copy rega,pdata
+	istore 2,contw //hid payload length
+	rtn
+
Index: program/kscan_peipherals.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/kscan_peipherals.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/kscan_peipherals.prog	(working copy)
@@ -0,0 +1,152 @@
+
+
+
+ifdef COMPILE_KEYSCAN
+/****************************************key scan***************************************/
+/******the key_scan use explain******
+
+* First:call kscan_init
+* Second:call kscan_main
+* Finally: the key scanning reault is mem_kscan_value.
+
+******
+***************************************************************************************
+*/
+kscan_init:  
+	fetch 2,mem_kscan_ptr
+	copy pdata,regc
+	call kscan_row_num_select
+	branch kscan_col_num_select
+
+kscan_col_init:
+	setarg 0
+	add regc,KEYSCAN_OFFECT_SHIFT_COUNT,rega
+	istore 1,rega
+	add regc,KEYSCAN_OFFECT_COL_NUM,rega
+	ifetch 1,rega
+	branch kscan_value_init,blank
+	copy pdata,loopcnt
+	add regc,KEYSCAN_OFFECT_COL_CONF_PIN,regb
+kscan_col_loop: 
+	ifetcht 1, regb
+	call gpio_config_output
+	ifetcht 1, regb
+	call gpio_out_active
+	call kscan_value_init             
+	ifetcht 1,regb
+	call gpio_config_input
+	increase 1,regb
+	loop kscan_col_loop
+	rtn  
+kscan_row_num_select:          
+	add regc,KEYSCAN_OFFECT_ROW_NUM,contw
+	ifetch 1,contw 
+	rtn blank
+	copy pdata,loopcnt
+	add regc,KEYSCAN_OFFECT_ROW_CONF_PIN,rega
+	branch kscan_ioselect_input   
+kscan_col_num_select:           
+	add regc,KEYSCAN_OFFECT_COL_NUM,contw
+	ifetch 1,contw 
+	rtn blank
+	copy pdata,loopcnt
+	add regc,KEYSCAN_OFFECT_COL_CONF_PIN,rega
+	branch kscan_ioselect_input
+kscan_ioselect_input: 
+	ifetcht 1,rega
+	call gpio_config_input 
+	increase 1,rega
+	loop kscan_ioselect_input
+	rtn
+kscan_value_init:
+	setarg 0
+	add regc,KEYSCAN_OFFECT_ROW_COUNT,rega
+	istore 1,rega
+	add regc,KEYSCAN_OFFECT_ROW_CONF_PIN,rega
+kscan_save_vaule:
+	ifetcht 1,rega       
+	call gpio_get_bit   
+	add regc,KEYSCAN_OFFECT_VALUE_TEMP,temp
+	ifetch 2,temp
+ 	add regc,KEYSCAN_OFFECT_SHIFT_COUNT,contr
+	ifetcht 1,contr
+	copy temp,queue
+	qsetflag true,pdata
+
+	add regc,KEYSCAN_OFFECT_VALUE_TEMP,temp
+ 	istore 2,temp
+	increase 1,rega
+    
+	add regc,KEYSCAN_OFFECT_SHIFT_COUNT,contw
+	ifetch 1,contw 
+	increase 1,pdata
+	istore 1,contw
+    
+	add regc,KEYSCAN_OFFECT_ROW_COUNT,contw
+	ifetcht 1,contw 
+	increase 1,temp
+	istoret 1,contw
+	add regc,KEYSCAN_OFFECT_ROW_NUM,contw
+	ifetch 1,contw 
+	ixor temp,null  
+	nbranch kscan_save_vaule,zero
+	rtn       
+	
+	
+kscan_lpm_berfore:
+	fetch 2,mem_kscan_ptr
+	copy pdata,regc
+ 	add regc,KEYSCAN_OFFECT_ROW_NUM,contw
+ 	ifetch 1,contw 
+	copy pdata,loopcnt
+	add regc,KEYSCAN_OFFECT_COL_CONF_PIN,rega
+kscan_select_wake:    
+	ifetcht 1,rega
+	call gpio_set_wake   
+	increase 1,rega
+	loop kscan_select_wake
+	rtn
+
+kscan_clkn_bt_timer_check:
+	ifetcht 4,rega
+	copy clkn_bt,pdata
+	isub temp,null
+	rtn positive
+	setarg 0
+	istore 4,rega
+	rtn
+
+kscan_process:
+	fetch 2,mem_kscan_ptr
+	copy pdata,regc
+	add regc,KEYSCAN_OFFECT_BTCLK,rega
+	call kscan_clkn_bt_timer_check
+	ifetch 4,rega
+	add regc,KEYSCAN_OFFECT_BTCLK_INTERVAL,regb
+	ifetcht 1,regb
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	istore 4,rega
+	call kscan_col_init  
+	add regc,KEYSCAN_OFFECT_VALUE_TEMP,rega
+	ifetch 2,rega
+	add regc,KEYSCAN_OFFECT_LASVALUE,rega
+	ifetcht 2,rega
+	istore 2,rega
+	iand temp,pdata
+	add regc,KEYSCAN_OFFECT_VALUE,rega    
+	istore 2,rega 
+	rtn  
+
+endif
+	
+	
+
+
+
+	
+    
+	
+
Index: program/l2cap.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/l2cap.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/l2cap.prog	(working copy)
@@ -0,0 +1,1901 @@
+/************************************/
+/*initialize L2CAP related variables*/
+/************************************/
+l2cap_init:
+	branch l2cap_init_wake,wake
+l2cap_init_work:
+	setarg mem_l2cap_xmem_end
+	arg mem_l2cap_xmem_start,contw
+	isub contw,loopcnt
+	call clear_mem
+l2cap_init_wake:	
+	bpatch patch1c_7,mem_patch1c
+	setarg mem_sdp_mem_end
+	arg mem_sdp_mem_start,contw
+	isub contw,loopcnt
+	call clear_mem
+	setarg mem_l2cap_mem_end
+	arg mem_l2cap_mem_start,contw
+	isub contw,loopcnt
+	call clear_mem
+	branch l2cap_lpm_load_txbuf
+	
+process_rx_l2cap_pkt:
+	bpatch patch1d_0,mem_patch1d
+	copy contr,temp
+	//call l2cap_malloc_is_fifo_full
+	//nrtn blank
+	copy temp,contr
+	ifetch 2,contr
+	store 2,mem_l2cap_rx_pkt_length
+	ifetch 2,contr
+	store 2,mem_l2cap_rx_cid
+	deposit contr
+	store 2,mem_l2cap_payload_ptr
+	fetch 1,memui_reconnect_mode
+	beq NO_RECONNECTION,l2cap_rx_multiplexing
+	branch ml2cap_rx_multiplexing
+
+l2cap_rx_multiplexing:
+	fetch 2, mem_l2cap_rx_pkt_length
+	branch l2cap_rx_reset_state,blank
+	bpatch patch1d_1,mem_patch1d
+	fetch 1,mem_l2cap_rx_cid
+	beq L2CAP_signal_channel,l2cap_call_proc_signal
+l2cap_rx_multiplexing0:
+	beq L2CAP_SDP_channel,l2cap_call_proc_sdp
+	beq L2CAP_RFCOMM_channel,l2cap_call_proc_rfcomm
+	beq L2CAP_HID_Control_channel,l2cap_call_proc_hid
+	beq L2CAP_HID_Interrupt_channel,l2cap_call_proc_hid
+	branch l2cap_rx_reset_state
+
+l2cap_check_map:
+//	call l2cap_malloc_is_fifo_full
+//	nrtn blank
+	bpatch patch1d_2,mem_patch1d
+	call l2cap_malloc_get_full_map
+	fetch 1,mem_used_map
+	beq 0,set_pdata_0
+	beq 1,set_pdata_0
+	beq 2,set_pdata_0
+	beq 3,set_pdata_0
+	beq 0x81,set_pdata_0
+	beq 0xc0,set_pdata_0
+	beq 0x80,set_pdata_0
+	beq 0x40,set_pdata_0
+	rtn
+
+l2cap_call_proc_signal:
+	call l2cap_check_map
+	nrtn blank
+l2cap_call_proc_signal0:
+	call l2cap_malloc_signal_channel
+	call l2cap_process_signal_pkt
+	fetcht 2,mem_l2cap_signal_tx_length
+	branch l2cap_call_proc_no_reply,blank
+	call l2cap_get_signal_tx_buff
+	fetch 2,mem_l2cap_signal_tx_length
+	istore 2,contw
+	force L2CAP_signal_channel,pdata
+	istore 2,contw
+	branch l2cap_rx_reset_state
+	
+l2cap_call_proc_sigal_pending:
+	fetch 1,mem_l2cap_pending_item
+	rtn blank
+	copy pdata,rega
+	bpatch patch1d_3,mem_patch1d
+	fetch 4,mem_l2cap_sdpres_delay_time
+	arg 0x100,temp
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	jam 0,mem_l2cap_pending_item
+	copy rega,pdata
+	beq L2CAP_SDP_channel,l2cap_sdp_conn_succ
+	branch assert
+l2cap_sdp_conn_succ:
+	arg 0,debug
+	call l2cap_malloc_signal_channel
+	call restore_l2cap_req_param
+	call l2cap_get_signal_tx_payload
+	call save_cont_pointers
+	call send_connection_sdp_res
+	call l2cap_get_signal_tx_buff
+	//fetch 2,mem_l2cap_signal_tx_length
+	setarg 0x000c
+	istore 2,contw
+	force L2CAP_signal_channel,pdata
+	istore 2,contw
+	branch l2cap_rx_reset_state
+
+
+
+l2cap_reset_sdp_map:
+	bpatch patch1d_4,mem_patch1d
+	fetch 2,mem_sdp_tx_pkt_length
+	increase 4,pdata
+	call rshift7
+	add pdata,1,temp ///temp: how many128
+	arg mem_tx_fifo3,contr
+	ifetch 3,contr
+	rtn blank
+	store 3,mem_tx_fifo_map_temp
+	fetch 1,mem_tx_fifo_map_temp
+	copy pdata,rega
+	call check_l2cap_map
+	copy regb,pdata
+	store 1,mem_tx_fifo3
+	rtn
+
+check_l2cap_map:
+	arg 0,queue
+	arg 0,regb
+
+check_l2cap_map_loop:
+	sub queue,7,null
+	nrtn positive
+	qisolate1 rega
+	branch check_l2cap_map_used,true
+	branch check_l2cap_map_used2
+
+check_l2cap_map_used:
+	copy temp,pdata
+	branch check_l2cap_map_used2,blank
+	qset1 regb
+	increase -1,temp
+
+check_l2cap_map_used2:
+	increase 1,queue
+	branch check_l2cap_map_loop
+
+l2cap_call_proc_sdp:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank// not process this packet until fifo empty
+	call l2cap_check_map
+	nrtn blank
+	call l2cap_malloc_sdp_channel
+	call enable_authrom
+	call sdp_process
+	call disable_authrom
+	call l2cap_reset_sdp_map
+	branch l2cap_call_proc_sdp_common
+
+	
+ml2cap_call_proc_sdp:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank// not process this packet until fifo empty
+	call l2cap_malloc_sdp_channel
+	call enable_authrom
+	call sdp_process
+	call disable_authrom
+l2cap_call_proc_sdp_common:
+	call l2cap_get_sdp_tx_buff
+	fetch 2,mem_sdp_tx_pkt_length
+	branch l2cap_call_proc_no_reply,blank
+	istore 2,contw
+	fetch 2,mem_sdp_remote_cid
+	istore 2,contw
+	branch l2cap_rx_reset_state
+
+l2cap_call_proc_hid:
+	call hid_rx_process
+	branch l2cap_rx_reset_state
+
+l2cap_call_proc_rfcomm:
+	bpatch patch1d_5,mem_patch1d
+	jam RFCOMM_MALLOC_SUCCEED,mem_rfcomm_malloc_fail_flag
+	call rfcomm_rx_process
+	fetch 1,mem_rfcomm_malloc_fail_flag
+	rtneq RFCOMM_MALLOC_FAIL
+	branch l2cap_rx_reset_state
+l2cap_call_proc_no_reply:
+	call l2cap_malloc_discard
+	//fall through
+l2cap_rx_reset_state:
+	setarg 0
+	store 2,mem_l2cap_rx_pkt_length
+	store 2,mem_l2cap_rx_cid
+	jam L2CAP_RX_DONE,mem_l2cap_rx_done
+	rtn
+/* To process one L2CAP signalling pkt consisting of 1 or more signalling commands.	*/
+l2cap_process_signal_pkt:
+	bpatch patch1d_6,mem_patch1d
+	call l2cap_get_signal_tx_payload
+	force 0,regb
+	fetch 2,mem_l2cap_rx_pkt_length
+	copy pdata,regc
+	fetch 2,mem_l2cap_payload_ptr
+	iforce contr
+l2cap_process_signal_pkt_loop:
+	call l2cap_process_one_signal
+	deposit regc
+	increase -4,regc
+	increase -4,pdata
+	nbranch l2cap_process_signal_pkt_loop,blank
+	copy regb,pdata
+	store 2,mem_l2cap_signal_tx_length
+	rtn
+
+l2cap_process_one_signal:
+	bpatch patch1d_7,mem_patch1d
+	ifetch 1,contr
+	beq signal_cmd_reject,l2cap_proc_signal_cmd_reject
+	beq signal_connect_req,l2cap_proc_signal_connect_req
+	beq signal_connect_rsp,l2cap_proc_signal_connect_rsp
+	beq signal_config_req,l2cap_proc_signal_config_req
+	beq signal_config_rsp,l2cap_proc_signal_config_rsp
+	beq signal_disconnect_req,l2cap_proc_signal_disconnect_req
+	beq signal_disconnect_rsp,l2cap_proc_signal_disconnect_rsp
+	beq signal_echo_req,l2cap_proc_signal_echo_req
+	beq signal_echo_rsp,l2cap_proc_signal_echo_rsp
+	beq signal_info_req,l2cap_proc_signal_info_req
+	beq signal_info_rsp,l2cap_proc_signal_info_rsp
+	call l2cap_reject_command
+l2cap_process_one_signal_rtn:
+	rtn
+
+l2cap_proc_signal_info_req:
+	ifetch 1,contr //IDs
+	copy pdata,queue
+	ifetch 2,contr //length
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	setarg signal_info_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1, contw
+	ifetch 2,contr 
+l2cap_proc_signal_info_req_reply:
+	beq L2CAP_SIG_EXT_FEATRUE,l2cap_proc_signal_info_req_ext
+	beq L2CAP_SIG_FIX_FEATRUE,l2cap_proc_signal_info_req_fix
+	rtn
+l2cap_proc_signal_info_req_ext:
+	setarg 0x020008
+	istore 6, contw
+	setarg 0x0280
+	istore 4, contw
+	force 12,pdata
+	branch l2cap_proc_signal_info_req_common
+l2cap_proc_signal_info_req_fix:
+	setarg 0x3000c
+	istore 6, contw
+	setarg 0x0006
+	istore 8, contw
+	force 16,pdata
+l2cap_proc_signal_info_req_common:
+	iadd regb,regb
+	branch l2cap_process_one_signal_rtn
+	
+ml2cap_proc_signal_info_req:
+	ifetch 1,contr //IDs
+	copy pdata,queue
+	ifetch 2,contr //length
+	copy pdata,rega
+	ifetch 2,contr
+	store 2,mem_temp
+	copy regc,pdata
+	isub rega,regc 
+	call l2cap_get_signal_tx_payload
+	setarg signal_info_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw 
+	fetch 2,mem_temp
+	branch l2cap_proc_signal_info_req_reply
+
+
+/*  Respond to the command reject signal sent from the remote BD.   */
+l2cap_proc_signal_cmd_reject:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	iadd contr,contr
+	copy regc,pdata
+	isub rega,regc
+l2cap_proc_signal_cmd_reject_rtn:
+	branch l2cap_process_one_signal_rtn
+/* Respond to an L2CAP connection request from remote BD. (generate a connection_rsp)	*/
+l2cap_proc_signal_connect_req:
+	call save_cont_pointers
+	//fetch 6,mem_inquiry_bd_addr
+  	//store 6,mem_master_paged_bd_addr
+  	call load_cont_pointers
+	arg 0,debug
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	ifetch 2,contr
+	copy pdata,temp //PSM
+	ifetch 2,contr
+	copy pdata,timeup
+	bpatch patch1e_0,mem_patch1e
+	copy temp,pdata
+	beq PSM_SDP,l2cap_proc_signal_connect_req_sdp
+	beq PSM_RFCOMM,l2cap_proc_signal_connect_req_rfcomm
+	beq PSM_HID_control,l2cap_proc_signal_connect_req_hid_ctrl
+	beq PSM_HID_interrupt,l2cap_proc_signal_connect_req_hid_int
+	call l2cap_reject_command
+	branch l2cap_proc_signal_connect_req_rtn
+
+l2cap_proc_signal_connect_req_sdp:
+	call save_cont_pointers
+	arg L2CAP_SDP_channel,temp
+	fetch 2,mem_sdp_remote_cid
+	nbranch already_connected,blank
+	copy timeup,pdata
+	store 2,mem_sdp_remote_cid
+	copy clkn_bt,pdata
+	store 4,mem_l2cap_sdpres_delay_time
+	call store_l2cap_req_param
+	branch  send_connection_pending
+
+store_l2cap_req_param:
+	storet 2,mem_psm
+	deposit timeup
+	store 2,mem_scid
+	deposit rega
+	store 2,mem_cmd_length
+	deposit regb
+	store 2,mem_tt2
+	deposit regc
+	store 2,mem_tt3
+	deposit queue
+	store 2,mem_id
+	rtn
+
+restore_l2cap_req_param:
+	fetcht 2,mem_psm
+	fetch 2,mem_scid
+	copy pdata,timeup
+	fetch 2,mem_cmd_length
+	copy pdata,rega
+	fetch 2,mem_tt2
+	copy pdata,regb
+	fetch 2,mem_tt3
+	copy pdata,regc
+	fetch 2,mem_id
+	copy pdata,queue
+	rtn
+
+l2cap_proc_signal_connect_req_rfcomm:
+	call save_cont_pointers
+	setarg L2CAP_RFCOMM_channel
+	arg L2CAP_RFCOMM_channel,temp
+	fetch 2,mem_RFCOMM_remote_CID
+	nbranch already_connected,blank
+	copy timeup,pdata
+	store 2,mem_RFCOMM_remote_CID
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_rfcomm_state
+	branch send_connection_res
+l2cap_proc_signal_connect_req_hid_ctrl:
+	call save_cont_pointers
+	arg L2CAP_HID_Control_channel,temp
+	fetch 2,mem_hid_ctrl_remote_cid
+	nbranch already_connected,blank
+	copy timeup,pdata
+	store 2,mem_hid_ctrl_remote_cid
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_control_state
+	branch send_connection_res
+l2cap_proc_signal_connect_req_hid_int:
+	call save_cont_pointers
+	deposit clke
+	arg L2CAP_HID_Interrupt_channel,temp
+	fetch 2,mem_hid_int_remote_cid
+	nbranch already_connected,blank
+	copy timeup,pdata
+	store 2,mem_hid_int_remote_cid
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_interrupt_state
+	branch send_connection_res
+
+send_connection_pending:
+	setarg L2CAP_connect_pending
+	store 2,memL2CAP_T1
+	jam L2CAP_SDP_channel,mem_l2cap_pending_item
+	branch send_connection_res0
+send_connection_sdp_res:
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_sdp_state
+send_connection_res:
+	setarg L2CAP_connect_successful
+	store 2,memL2CAP_T1
+send_connection_res0:
+	bpatch patch1e_1,mem_patch1e
+	call load_cont_pointers
+	setarg signal_connect_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 0x0008
+	istore 2,contw
+	copy temp,pdata
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	fetch 2,memL2CAP_T1
+	beq L2CAP_connect_pending,connect_pending
+	isolate0 0,debug
+	branch connect_suc,true
+	setarg L2CAP_connect_refused_no_resources
+connect_suc:
+	istore 2,contw
+	force 0x0000,pdata
+	istore 2,contw
+	setarg 12
+	branch connect_req_update_byte_counts
+connect_pending:
+	istore 2,contw
+	force 0x0002,pdata
+	istore 2,contw
+	setarg 12
+	branch connect_req_update_byte_counts
+	
+already_connected:
+	set1 0,debug
+	branch send_connection_res
+connect_req_update_byte_counts:
+	iadd regb,regb
+	copy regc,pdata
+	isub rega,regc
+	branch l2cap_proc_signal_connect_req_rtn
+l2cap_proc_signal_connect_req_rtn:
+	branch l2cap_process_one_signal_rtn
+
+l2cap_proc_signal_connect_rsp:
+	ifetch 1,contr //identifier
+	copy pdata,queue
+	ifetch 2,contr //length
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr //remote cid
+	copy pdata,timeup
+	ifetch 2,contr //local cid
+	copy pdata,temp
+	bpatch patch1e_2,mem_patch1e
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch l2cap_proc_signal_connect_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch l2cap_proc_signal_connect_rsp_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch l2cap_proc_signal_connect_rsp_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch l2cap_proc_signal_connect_rsp_hid_int,zero
+	rtn
+
+l2cap_proc_signal_connect_rsp_sdp:
+	copy timeup,pdata
+	store 2,mem_sdp_remote_cid
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_sdp_state
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_connect_rsp_rfcomm:
+	copy timeup,pdata
+	store 2,mem_rfcomm_remote_CID
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_rfcomm_state
+	rtn
+l2cap_proc_signal_connect_rsp_hid_int:
+	copy timeup,pdata
+	store 2,mem_hid_ctrl_remote_cid
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_interrupt_state
+	rtn
+l2cap_proc_signal_connect_rsp_hid_ctrl:
+	copy timeup,pdata
+	store 2,mem_hid_int_remote_cid
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_control_state
+	rtn
+
+l2cap_proc_signal_config_req:
+	ifetch 1,contr//identifier
+	copy pdata,queue
+	ifetch 2,contr//length
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr//dest cid
+	copy pdata,temp
+	copy temp,rega
+	bpatch patch1e_3,mem_patch1e
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch l2cap_proc_signal_config_req_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch l2cap_proc_signal_config_req_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch l2cap_proc_signal_config_req_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch l2cap_proc_signal_config_req_hid_int,zero
+	branch l2cap_reject_command
+	//branch L2CAP_proc_signal_config_req_rtn
+l2cap_proc_signal_config_req_sdp:
+	copy contw, timeup
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	//set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_sdp_state
+	copy timeup,contw
+	arg L2CAP_SDP_channel,timeup
+	fetch 2,mem_sdp_remote_cid
+	copy pdata,temp
+	branch l2cap_send_config_rsp
+l2cap_proc_signal_config_req_hid_ctrl:
+	copy contw, timeup
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	//set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_hid_control_state
+	copy timeup,contw
+	arg L2CAP_HID_Control_channel,timeup
+	fetch 2,mem_hid_ctrl_remote_cid
+	copy pdata,temp
+	branch l2cap_send_config_rsp
+l2cap_proc_signal_config_req_hid_int:
+	copy contw, timeup
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	//set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_hid_interrupt_state
+	copy timeup,contw
+	arg L2CAP_HID_Interrupt_channel,timeup
+	fetch 2,mem_hid_int_remote_cid
+	copy pdata,temp
+	branch l2cap_send_config_rsp
+l2cap_proc_signal_config_req_rfcomm:
+	copy contw, timeup
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	//set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_rfcomm_state
+//	jam UPPERSM_RP_SDP_CONN,mem_upper_sm_remote_page
+	copy timeup,contw
+	arg L2CAP_RFCOMM_channel,timeup
+	fetch 2,mem_RFCOMM_remote_CID
+	copy pdata,temp
+l2cap_send_config_rsp:
+	bpatch patch1e_4,mem_patch1e
+	setarg  signal_config_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 0x0006
+	istore 2,contw
+	copy temp,pdata
+	istore 2,contw
+	force 0x00,pdata
+	istore 2,contw
+	force L2CAP_config_success,pdata
+	istore 2,contw
+	force 10,pdata
+	iadd regb,regb
+	//copy temp,pdata
+	storet 2,mem_config_req_dest_CID
+	copy queue,pdata
+	store 1,mem_config_identifier
+	force L2CAP_SDP_channel,pdata
+	icompare 0xff,timeup
+	branch l2cap_send_config_rsp_is_sdp,true
+	increase 1,pdata
+l2cap_send_config_rsp_is_sdp:
+	//store 1,mem_send_config_req
+	rtn
+l2cap_check_channel_state:
+	disable user
+	rtnbit1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	copy contr,contw
+	increase -1,contw
+	istore 1,contw
+	enable user
+	rtn
+l2cap_send_config_req:
+l2cap_send_config_req_sdp:
+	fetch 1,mem_sdp_state
+	call l2cap_check_channel_state
+	nbranch l2cap_send_config_req_rfcomm,user
+	jam L2CAP_SDP_channel,mem_send_config_req
+	fetch 2,mem_sdp_remote_cid
+	store 2,mem_config_req_dest_CID
+	branch l2cap_generate_config_req
+l2cap_send_config_req_rfcomm:
+	fetch 1,mem_rfcomm_state
+	call l2cap_check_channel_state
+	nbranch l2cap_send_config_req_hid_ctrl,user
+	jam L2CAP_RFCOMM_channel,mem_send_config_req
+	fetch 2,mem_RFCOMM_remote_CID
+	store 2,mem_config_req_dest_CID
+	branch l2cap_generate_config_req
+l2cap_send_config_req_hid_ctrl:
+	fetch 1,mem_hid_control_state
+	call l2cap_check_channel_state
+	nbranch l2cap_send_config_req_hid_int,user
+	jam L2CAP_HID_Control_channel,mem_send_config_req
+	fetch 2,mem_hid_ctrl_remote_cid
+	store 2,mem_config_req_dest_CID
+	branch l2cap_generate_config_req
+l2cap_send_config_req_hid_int:
+	fetch 1,mem_hid_interrupt_state
+	call l2cap_check_channel_state
+	nrtn user//End of sending config req
+	jam L2CAP_HID_Interrupt_channel,mem_send_config_req
+	fetch 2,mem_hid_int_remote_cid
+	store 2,mem_config_req_dest_CID
+	//branch L2CAP_generate_config_req
+
+l2cap_generate_config_req:
+	bpatch patch1e_5,mem_patch1e
+	call l2cap_get_req_id
+	call l2cap_malloc_signal_channel
+	force 0,regb
+	call l2cap_get_signal_tx_payload
+	force signal_config_req,pdata
+	istore 1,contw
+	fetch 1,mem_ML2CAP_comm_id
+	istore 1,contw
+	setarg 0x0008
+	istore 2,contw
+	fetch 2,mem_config_req_dest_CID
+	istore 2,contw
+	setarg 0x0000
+	istore 2,contw
+	force 1,pdata
+	istore 1,contw
+	force 2,pdata
+	istore 1,contw
+	fetch 1,mem_send_config_req
+	beq L2CAP_RFCOMM_channel,l2cap_generate_config_req_rfcomm
+	setarg L2CAP_config_MTU_SDP
+	istore 2,contw
+	branch l2cap_generate_config_req_done
+l2cap_generate_config_req_rfcomm:
+	setarg L2CAP_config_MTU_RFCOMM
+	istore 2,contw
+l2cap_generate_config_req_done:
+	arg 0x0c,temp
+	storet 2,mem_l2cap_signal_tx_length
+	call l2cap_get_signal_tx_buff
+	fetch 2,mem_l2cap_signal_tx_length
+	istore 2,contw
+	force L2CAP_signal_channel,pdata
+	istore 2,contw
+	jam 0,mem_send_config_req
+l2cap_proc_signal_config_req_rtn:
+	branch l2cap_process_one_signal_rtn
+
+l2cap_proc_signal_config_rsp:
+	increase 1,contr
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr //source cid
+	copy pdata,rega
+	bpatch patch1e_6,mem_patch1e
+	setarg L2CAP_SDP_channel
+	isub rega,null
+	branch l2cap_proc_signal_config_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub rega,null
+	branch l2cap_proc_signal_config_rsp_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub rega,null
+	branch l2cap_proc_signal_config_rsp_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub rega,null
+	branch l2cap_proc_signal_config_rsp_hid_int,zero
+	increase 2,contr
+	ifetch 2,contr
+	iforce null
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_config_rsp_sdp:
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_sdp_state
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_config_rsp_rfcomm:
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_rfcomm_state
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_config_rsp_hid_ctrl:
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_hid_control_state
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_config_rsp_hid_int:
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_hid_interrupt_state
+	jam BT_EVT_HID_CONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event
+	
+
+
+l2cap_proc_signal_disconnect_req:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr
+	copy pdata,rega
+	ifetch 2,contr
+	copy pdata,timeup
+	copy rega,temp
+	call save_cont_pointers
+	bpatch patch1e_7,mem_patch1e
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_req_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_req_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_req_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_req_hid_int,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+l2cap_proc_signal_disconnect_req_hid_ctrl:
+	copy timeup,temp
+	fetch 2,mem_hid_ctrl_remote_cid
+	isub temp,null
+	branch l2cap_disconnect_hid_control_now,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+l2cap_proc_signal_disconnect_req_hid_int:
+	copy timeup,temp
+	fetch 2,mem_hid_int_remote_cid
+	isub temp,null
+	branch l2cap_disconnect_hid_interrupt_now,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+
+l2cap_proc_signal_disconnect_req_sdp:
+	copy timeup,temp
+	fetch 2,mem_sdp_remote_cid
+	isub temp,null
+	branch l2cap_disconnect_sdp_now,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+l2cap_disconnect_hid_control_now:
+	call l2cap_reset_hid_ctrl_state
+	branch l2cap_send_disconnect_rsp_pkt
+l2cap_disconnect_hid_interrupt_now:
+	call l2cap_reset_hid_int_state
+	fetch 2, mem_hid_ctrl_remote_cid
+	branch l2cap_send_disconnect_rsp_pkt, blank
+	//set the flag,hid channel close
+	//should we set here?
+	//call HID_mem_lock
+	//fetch 1, mem_hid_cb1
+	//set1 HID_CB_APP_HID_DISCONNECTED,pdata
+	//store 1, mem_hid_cb1
+	//call HID_mem_unlock
+	branch l2cap_send_disconnect_rsp_pkt
+
+l2cap_disconnect_sdp_now:
+	call l2cap_reset_sdp_channel_state
+	fetch 1,mem_upper_sm_ss
+	nbranch l2cap_send_disconnect_rsp_pkt,blank
+	//jam LMP_ENCRYPTION_MODE_REQ,mem_lmo_opcode2
+	//jam UPPERSM_RP_SDP_CONN,mem_upper_sm_remote_page
+	branch l2cap_send_disconnect_rsp_pkt
+l2cap_proc_signal_disconnect_req_rfcomm:
+	copy timeup,temp
+	fetch 2, mem_RFCOMM_remote_CID
+	isub temp,null
+	branch l2cap_disconnect_rfcomm_now,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_req_err_rtn
+l2cap_disconnect_rfcomm_now:
+	call l2cap_reset_rfcomm_channel_state
+	branch l2cap_send_disconnect_rsp_pkt
+l2cap_send_disconnect_rsp_pkt:
+	call load_cont_pointers
+	setarg signal_disconnect_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy rega,pdata
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	force 8,pdata
+	branch l2cap_proc_signal_disconnect_req_rtn
+l2cap_proc_signal_disconnect_req_err_rtn:
+	call load_cont_pointers
+	branch l2cap_proc_signal_disconnect_req_rtn
+l2cap_proc_signal_disconnect_req_rtn:
+	iadd regb,regb
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_disconnect_rsp:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr
+	copy pdata,timeup
+	ifetch 2,contr
+	copy pdata,temp
+	call save_cont_pointers
+	bpatch patch1f_0,mem_patch1f
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_rsp_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_rsp_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch l2cap_proc_signal_disconnect_rsp_hid_int,zero
+	call l2cap_reject_command
+	branch l2cap_proc_signal_disconnect_rsp_err_rtn
+l2cap_proc_signal_disconnect_rsp_sdp:
+	copy temp,rega
+	copy timeup,temp
+	fetch 2,mem_sdp_remote_cid
+	isub temp,null
+	call l2cap_reset_sdp_channel_state,zero
+	branch l2cap_proc_signal_disconnect_rsp_rtn
+l2cap_proc_signal_disconnect_rsp_rfcomm:
+	copy temp,rega
+	copy timeup,temp
+	fetch 2,mem_rfcomm_remote_CID
+	isub temp,null
+	call l2cap_reset_rfcomm_channel_state,zero
+	branch l2cap_proc_signal_disconnect_rsp_rtn
+l2cap_proc_signal_disconnect_rsp_hid_ctrl:
+	copy temp,rega
+	copy timeup,temp
+	fetch 2,mem_hid_ctrl_remote_cid
+	isub temp,null
+	call  l2cap_reset_hid_ctrl_state,zero
+	branch l2cap_proc_signal_disconnect_rsp_rtn
+l2cap_proc_signal_disconnect_rsp_hid_int:
+	copy temp,rega
+	copy timeup,temp
+	fetch 2,mem_hid_int_remote_cid
+	isub temp,null
+	call l2cap_reset_hid_int_state,zero
+	branch l2cap_proc_signal_disconnect_rsp_rtn
+l2cap_proc_signal_disconnect_rsp_rtn:
+	call load_cont_pointers
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_disconnect_rsp_err_rtn:
+	branch l2cap_process_one_signal_rtn
+
+/* received an echo request from remote BD.  Will echo the 1st 1 byte back,		*/
+l2cap_proc_signal_echo_req:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	iadd contr,contr
+	setarg 9
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	force 0x0000,pdata
+	istore 2,contw
+	force 4,pdata
+	iadd regb,regb
+	copy regc,pdata
+	isub rega,regc
+	branch l2cap_process_one_signal_rtn
+l2cap_proc_signal_echo_rsp:
+	branch l2cap_process_one_signal_rtn
+
+l2cap_proc_signal_info_rsp:
+	branch l2cap_process_one_signal_rtn
+l2cap_reject_command:
+	force 0,regb
+	call l2cap_get_signal_tx_payload
+	setarg signal_cmd_reject
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 2
+	istore 2,contw
+	setarg cmd_not_understood
+	istore 2,contw
+	increase 6,regb
+	arg 4,regc
+	branch l2cap_process_one_signal_rtn
+
+
+
+l2cap_reset_rfcomm_channel_state:
+	setarg 0
+	store 2,mem_RFCOMM_Tx_pkt_length
+	store 2,mem_RFCOMM_remote_CID
+	jam 0,mem_rfcomm_state
+	rtn
+l2cap_reset_sdp_channel_state:
+	setarg 0
+	store 2,mem_sdp_tx_pkt_length
+	store 2,mem_sdp_remote_cid
+	jam 0,mem_sdp_state
+	rtn
+l2cap_reset_hid_ctrl_state:
+	setarg 0
+	store 2,mem_hid_ctrl_remote_cid
+	jam 0,mem_hid_control_state
+	fetch 1,mem_hid_interrupt_state
+	beq 0,l2cap_reset_hid_disconnected
+	rtn
+
+l2cap_reset_hid_int_state:
+	setarg 0
+	store 2,mem_hid_int_remote_cid
+	jam 0,mem_hid_interrupt_state
+	fetch 1,mem_hid_control_state
+	beq 0,l2cap_reset_hid_disconnected
+	rtn
+	
+l2cap_reset_hid_disconnected:
+	jam BT_EVT_HID_DISCONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event	
+
+l2cap_disconnect_interrupt_req:
+	fetch 1,mem_CONTROL_tasks
+	set0  L2CAP_DISCONNECT_INTERRUPT, pdata
+	store 1,mem_CONTROL_tasks
+	fetch 2, mem_hid_int_remote_cid
+	rtn blank
+	call l2cap_malloc_signal_channel
+	fetch 2, mem_hid_int_remote_cid
+	copy pdata,rega
+	force L2CAP_HID_Interrupt_channel,regb
+	branch l2cap_generate_disconnect_req
+l2cap_disconnect_control_req:
+	fetch 1,mem_CONTROL_tasks
+	set0  L2CAP_DISCONNECT_CONTROL, pdata
+	store 1,mem_CONTROL_tasks
+	fetch 2, mem_hid_ctrl_remote_cid
+	rtn blank
+	call l2cap_malloc_signal_channel
+	fetch 2, mem_hid_ctrl_remote_cid
+	copy pdata,rega
+	force L2CAP_HID_Control_channel,regb
+l2cap_generate_disconnect_req:
+	call l2cap_get_req_id
+	call l2cap_get_signal_tx_payload
+	force signal_disconnect_req,pdata
+	istore 1,contw
+	fetch  1,mem_ML2CAP_comm_id
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy rega,pdata
+	istore 2,contw
+	copy regb,pdata
+	istore 2,contw
+	force 0x08,temp //signal tx length in temp
+	branch ml2cap_send_signal
+
+ml2cap_send_signal_connect_req:
+	bpatch patch1f_1,mem_patch1f
+	call l2cap_get_req_id
+	call l2cap_get_signal_tx_payload
+	setarg signal_connect_req
+	istore 1,contw
+	fetch 1,mem_ML2CAP_comm_id
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy temp,pdata	 //PSM
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	arg 8,temp
+	branch ml2cap_send_signal
+ml2cap_send_signal_config_req:
+	bpatch patch1f_2,mem_patch1f
+	call l2cap_get_req_id
+	call l2cap_get_signal_tx_payload
+	setarg signal_config_req
+	istore 1,contw
+	fetch 1,mem_ML2CAP_comm_id
+	istore 1,contw
+	setarg 0x0008
+	istore 2,contw
+	/****modigy for nokia*****/
+	copy temp,pdata
+	/*setarg 0x0040*/
+	istore 2,contw
+	setarg 0x0000
+	istore 2,contw
+	setarg 0x01
+	istore 1,contw
+	setarg 0x02
+	istore 1,contw
+	setarg L2CAP_config_MTU_RFCOMM
+	istore 2,contw
+	arg 0xc,temp
+	branch ml2cap_send_signal
+ml2cap_send_signal_disconn_req:
+	bpatch patch1f_3,mem_patch1f
+	call l2cap_get_req_id
+	call l2cap_get_signal_tx_payload
+	setarg signal_disconnect_req
+	istore 1,contw
+	fetch 1,mem_ML2CAP_comm_id
+	increase 1,pdata
+	copy contw,rega
+	store 1,mem_ML2CAP_comm_id
+	copy rega,contw
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy temp,pdata
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	arg 0x8,temp
+	//branch ml2cap_send_signal
+	//Fall through
+ml2cap_send_signal:
+	storet 2,mem_l2cap_signal_tx_length
+	copy temp,pdata
+	branch l2cap_malloc_discard,blank
+	call l2cap_get_signal_tx_buff
+	fetch 2,mem_l2cap_signal_tx_length
+	istore 2,contw //make sure that length is still in temp!
+	force L2CAP_signal_channel,pdata
+	istore 2,contw
+	rtn
+
+msdp_send_req_done:
+	fetch 2,mem_sdp_tx_pkt_length
+	branch assert,blank
+	call l2cap_get_sdp_tx_buff
+	fetch 2,mem_sdp_tx_pkt_length
+	istore 2,contw
+	fetch 2,mem_sdp_remote_cid
+	istore 2,contw
+	rtn
+ml2cap_rx_multiplexing:
+	fetch 2, mem_l2cap_rx_pkt_length
+	branch l2cap_rx_reset_state,blank
+	bpatch patch1f_4,mem_patch1f
+	fetch 1,mem_l2cap_rx_cid
+	beq L2CAP_signal_channel,ml2cap_call_proc_signal
+	beq L2CAP_SDP_channel,ml2cap_call_proc_sdp
+	beq L2CAP_RFCOMM_channel,l2cap_call_proc_rfcomm
+	beq L2CAP_HID_Control_channel,l2cap_call_proc_hid
+	beq L2CAP_HID_Interrupt_channel,l2cap_call_proc_hid
+	branch l2cap_rx_reset_state
+
+ml2cap_call_proc_signal:
+	call l2cap_malloc_signal_channel
+	force 0,regb
+	call l2cap_get_signal_tx_payload
+	copy pdata,contw
+	fetch 2,mem_l2cap_rx_pkt_length
+	copy pdata,regc
+	fetch 2,mem_l2cap_payload_ptr
+	iforce contr
+ml2cap_proc_one_comm_loop:
+	call ml2cap_proc_one_comm
+	increase -4,regc
+	nbranch ml2cap_proc_one_comm_loop,zero
+	copy regb,temp
+	call ml2cap_send_signal
+	branch l2cap_rx_reset_state
+	
+ml2cap_proc_one_comm:
+	ifetch 1,contr
+	beq signal_connect_req,ml2cap_proc_signal_connect_req
+	beq signal_cmd_reject,ml2cap_proc_signal_cmd_reject
+	beq signal_connect_rsp,ml2cap_proc_signal_connect_rsp
+	beq signal_config_rsp,ml2cap_proc_signal_config_rsp
+	beq signal_config_req,ml2cap_proc_signal_config_req
+	beq signal_disconnect_rsp,ml2cap_proc_signal_disconn_rsp
+	beq signal_disconnect_req,ml2cap_proc_signal_disconn_req
+	beq signal_echo_req,l2cap_proc_signal_echo_req
+	beq signal_info_req,ml2cap_proc_signal_info_req
+	branch ml2cap_proc_send_reject
+
+ml2cap_proc_signal_connect_req:
+	call save_cont_pointers
+	//jam NO_RECONNECTION,memui_reconnect_mode
+	call load_cont_pointers
+	branch l2cap_proc_signal_connect_req
+ml2cap_proc_signal_cmd_reject:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+mvptr:
+	ifetch 1,contr
+	increase -1,rega
+	nbranch mvptr,zero
+	rtn
+ml2cap_proc_signal_connect_rsp:
+	ifetch 1,contr //id
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega	//length
+	ifetch 2,contr
+	copy pdata,timeup	//destination	cid
+	ifetch 2,contr
+	copy pdata,temp	//source	cid
+	ifetch 2,contr 		// result
+	sub pdata,0,null
+	branch ml2cap_proc_signal_connect_rsp_sucessful,zero
+	beq L2CAP_connect_refused_PSM_unsupported,ml2cap_proc_signal_connect_refused_result
+	beq L2CAP_connect_refused_no_resources,ml2cap_proc_signal_connect_refused_result
+	branch ml2cap_proc_signal_connect_rsp_mnosucc
+ml2cap_proc_signal_connect_refused_result:
+	jam BT_EVT_ML2CAP_CONN_REFUSED,mem_fifo_temp
+	call ui_ipc_send_event
+ml2cap_proc_signal_connect_rsp_mnosucc:
+	ifetch 2,contr //reason
+	branch mnosucc
+ml2cap_proc_signal_connect_rsp_sucessful:
+	call save_cont_pointers
+	//fetch 1,mem_ML2CAP_comm_id
+	//icompare 0xff,queue
+	//nbranch mnosucc1,true
+	bpatch patch1f_5,mem_patch1f
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch ml2cap_proc_signal_connect_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch ml2cap_proc_signal_connect_rsp_rfcomm,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch ml2cap_proc_signal_connect_rsp_hid_int,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch ml2cap_proc_signal_connect_rsp_hid_ctrl,zero
+	branch mnosucc
+ml2cap_proc_signal_connect_rsp_sdp:
+	copy timeup,pdata
+	store 2,mem_sdp_remote_cid
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_sdp_state
+	branch mnosucc1
+ml2cap_proc_signal_connect_rsp_rfcomm:
+	copy timeup,pdata
+	store 2,mem_RFCOMM_remote_CID
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_rfcomm_state
+	branch mnosucc1
+ml2cap_proc_signal_connect_rsp_hid_ctrl:
+	copy timeup,pdata
+	store 2,mem_hid_ctrl_remote_cid
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_control_state
+	branch mnosucc1
+ml2cap_proc_signal_connect_rsp_hid_int:
+	copy timeup,pdata
+	store 2,mem_hid_int_remote_cid
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_CONN_RES,pdata
+	store 1,mem_hid_interrupt_state
+	//branch mnosucc1
+
+mnosucc1:
+	call load_cont_pointers
+mnosucc:
+	copy regc,pdata
+	isub rega,regc
+	rtn
+
+ml2cap_proc_signal_config_rsp:
+	ifetch 1,contr		//	Ident
+	copy pdata,queue
+	ifetch 2,contr		//	SigLen
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr		//	DestnCID
+	copy pdata,timeup
+	ifetch 2,contr
+	ifetch 2,contr		//	Get the result value, check success
+	nbranch mcrsdone1,blank
+	call save_cont_pointers
+	//fetch 1,mem_ML2CAP_comm_id
+	//icompare 0xff,queue
+	//nbranch mcfrsdone,true
+	copy timeup,temp
+	bpatch patch1f_6,mem_patch1f
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_rsp_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_rsp_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_rsp_hid_int,zero
+ml2cap_proc_signal_config_rsp_sdp:
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_sdp_state
+	rtn
+ml2cap_proc_signal_config_rsp_rfcomm:
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_rfcomm_state
+	rtn
+ml2cap_proc_signal_config_rsp_hid_ctrl:
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_hid_control_state
+	rtn
+ml2cap_proc_signal_config_rsp_hid_int:
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_RES,pdata
+	store 1,mem_hid_interrupt_state
+	jam BT_EVT_HID_CONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+mcfrsdone:
+	call load_cont_pointers
+mcrsdone1:
+	increase -6,rega
+mloop2:
+	branch mcrsdone,zero
+	increase 1,contr
+	increase -1,rega
+	branch mloop2
+mcrsdone:
+	rtn
+ml2cap_proc_signal_config_req:
+	ifetch 1,contr		//	Ident
+	copy pdata,queue
+	ifetch 2,contr		//	SigLen
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+	ifetch 2,contr		//	DestnCID
+	increase 2,contr
+	copy pdata,temp
+	setarg  signal_config_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	increase 2,rega
+	copy rega,pdata
+	istore 2,contw
+	call save_cont_pointers
+	bpatch patch1f_7,mem_patch1f
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_req_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_req_rfcomm,zero
+	setarg L2CAP_HID_Control_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_req_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	isub temp,null
+	branch ml2cap_proc_signal_config_req_hid_int,zero
+	branch mcfgrq_done
+ml2cap_proc_signal_config_req_sdp:
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	store 1,mem_sdp_state
+	bbit1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,ml2cap_proc_signal_config_req_sdp_nsndreq
+	fetcht 1,mem_CONTROL_tasks
+	set1 L2CAP_init_Config_Req,temp
+	storet 1,mem_CONTROL_tasks
+	copy queue,pdata
+	increase 1,pdata
+	store 1,mem_config_identifier
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_sdp_state
+ml2cap_proc_signal_config_req_sdp_nsndreq:
+	fetch 2,mem_sdp_remote_cid
+	store 2,mem_config_req_dest_CID
+	branch mcfgrq_done
+ml2cap_proc_signal_config_req_rfcomm:
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	store 1,mem_rfcomm_state
+	fetch 2,mem_RFCOMM_remote_CID
+	branch mcfgrq_done
+ml2cap_proc_signal_config_req_hid_ctrl:
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	store 1,mem_hid_control_state
+	fetch 2,mem_hid_ctrl_remote_cid
+	branch mcfgrq_done
+ml2cap_proc_signal_config_req_hid_int:
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_RCV_CFG_REQ,pdata
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_RES,pdata
+	store 1,mem_hid_interrupt_state
+	fetch 2,mem_hid_int_remote_cid
+	//branch mcfgrq_done
+
+mcfgrq_done:
+	copy pdata,timeup
+	call load_cont_pointers
+/*******for Nokia**************/
+	copy timeup,pdata
+	/*setarg 0x0040*/
+	istore 2,contw
+	force 0x0000,pdata
+	istore 2,contw
+	force 0x0000,pdata
+	istore 2,contw
+	force 10,pdata
+	iadd regb,regb
+	increase -6,rega
+mloop1:
+	branch mcrqdone,zero
+	ifetch 1,contr
+	istore 1,contw
+	increase 1,regb
+	increase -1,rega
+	branch mloop1
+mcrqdone:
+	rtn
+ml2cap_proc_signal_disconn_req:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	copy regc,pdata
+	isub rega,regc
+
+	ifetch 2,contr
+	copy pdata,rega
+	ifetch 2,contr
+	copy pdata,timeup
+	call save_cont_pointers
+	bpatchx patch20_0,mem_patch20
+	setarg L2CAP_SDP_channel
+	copy rega,temp
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_sdp,zero
+	setarg L2CAP_HID_Control_channel
+	copy rega,temp
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_hid_ctrl,zero
+	setarg L2CAP_HID_Interrupt_channel
+	copy rega,temp
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_hid_int,zero
+	branch mclsrfc
+ml2cap_proc_signal_disconn_sdp:
+	setarg 0x0000
+	store 2,mem_sdp_tx_pkt_length
+	store 2,mem_sdp_remote_cid
+	store 1,mem_sdp_state
+	branch mclssdp
+ml2cap_proc_signal_disconn_hid_ctrl:
+	call l2cap_reset_hid_ctrl_state
+	branch mclssdp
+ml2cap_proc_signal_disconn_hid_int:
+	call l2cap_reset_hid_int_state
+	//call HID_mem_lock
+	//fetch 1, mem_hid_cb1
+	//set1 HID_CB_APP_HID_DISCONNECTED,pdata
+	//store 1, mem_hid_cb1
+	//call HID_mem_unlock
+	branch mclssdp
+mclsrfc:
+	setarg 0x0000
+	store 2,mem_RFCOMM_Tx_pkt_length
+mclssdp:
+	call load_cont_pointers
+	setarg signal_disconnect_rsp
+	istore 1,contw
+	copy queue,pdata
+	istore 1,contw
+	setarg 0x0004
+	istore 2,contw
+	copy rega,pdata
+	istore 2,contw
+	copy timeup,pdata
+	istore 2,contw
+	force 8,pdata
+	iadd regb,regb
+	rtn
+
+ml2cap_proc_signal_disconn_rsp:
+	ifetch 1,contr
+	copy pdata,queue
+	ifetch 2,contr
+	copy pdata,rega
+	ifetch 2,contr
+	copy pdata,timeup
+	ifetch 2,contr
+	copy pdata,temp
+	call save_cont_pointers
+	bpatchx patch20_1,mem_patch20
+	fetch 1,mem_ML2CAP_comm_id
+	icompare 0xff,queue
+	nbranch mdisdone,true
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_rsp_sdp,zero
+	setarg L2CAP_RFCOMM_channel
+	isub temp,null
+	branch ml2cap_proc_signal_disconn_rsp_rfcomm,zero
+	branch mdisdone
+ml2cap_proc_signal_disconn_rsp_sdp:
+	jam 0,mem_sdp_remote_cid
+	jam 0,mem_sdp_state
+	branch mdisdone
+ml2cap_proc_signal_disconn_rsp_rfcomm:
+	//
+	//
+mdisdone:
+	call load_cont_pointers
+	copy regc,pdata
+	isub rega,regc
+	rtn
+
+ml2cap_proc_send_reject:
+	setarg signal_cmd_reject
+	istore 1,contw
+	ifetch 1,contr
+	istore 1,contw
+	setarg 0x0002
+	istore 2,contw
+	setarg 0x0000
+	istore 2,contw
+	setarg 0x0006
+	iadd regb,regb
+	force 4,regc
+	rtn
+	
+//l2cap command id, 0 is not allowed
+l2cap_get_req_id:
+	fetch 1,mem_ML2CAP_comm_id
+	increase 1,pdata
+	bne 0,l2cap_get_req_id_ok
+	increase 1,pdata
+l2cap_get_req_id_ok:
+	store 1,mem_ML2CAP_comm_id
+	rtn
+
+
+/*********************************************************/
+//char* malloc(short len)
+//input: rega -> len
+//rtn: regb -> pbuff;return from pdata
+//val: queue -> i
+//val: timeup -> buff_cnt
+/*********************************************************/
+l2cap_malloc:
+bt_l2cap_malloc:
+	arg mem_tx_buff0,regd
+	arg mem_bt_l2cap_tx_buff_size,rege
+	call enable_user
+	branch host_l2cap_malloc
+
+ble_l2cap_malloc:
+	fetchr regd,2,mem_ble_l2cap_tx_buff0_ptr
+	fetchr rege,2,mem_ble_l2cap_tx_buff_size_ptr
+	call disable_user
+	branch host_l2cap_malloc
+
+/*
+	malloc l2cap buffer
+	input:
+	BT is enable user
+	BLE is disable user
+	rega is want malloc buffer size
+	regd is l2cap buffer start ptr
+	rege is l2cap buffer size
+	output:
+	pdata & contw is buffer ptr
+*/
+host_l2cap_malloc:
+	bpatchx patch20_2,mem_patch20
+	call l2cap_malloc_is_fifo_full
+	nbranch assert,blank//assert when fifo full
+	call l2cap_malloc_get_full_map
+	arg 8,loopcnt
+host_l2cap_malloc_loop:
+	fetcht 1,mem_used_map
+	sub loopcnt,8,queue
+	qisolate1 temp
+	branch host_l2cap_malloc_next_buffer,true//if(1 == (used_map & (1 << i)))goto next;
+	call host_l2cap_malloc_check_buffer_enough
+	nbranch host_l2cap_malloc_next_buffer,positive//if(buff_cnt <= 0)goto next;
+	call host_l2cap_malloc_into_fifo
+	branch host_l2cap_malloc_succ//return (pbuff);
+host_l2cap_malloc_next_buffer:
+	copy rege,pdata
+	iadd regd,regd		//pbuff += BUFF_SIZE;//point to next buff
+	loop host_l2cap_malloc_loop
+	branch assert	//return NULL
+host_l2cap_malloc_succ:
+	copy regd,pdata
+	copy regd,contw
+	rtn//return pointer via pdata
+
+/*********************************************************/
+//char is_size_enough(char buff_index, short len)
+//input: rega -> len
+//input: loopcnt -> 8-buff_index
+//rtn: positive is diable mean no buffer
+//positive is enable mean get buffer
+/*********************************************************/
+host_l2cap_malloc_check_buffer_enough:
+	bpatchx patch20_3,mem_patch20
+	sub loopcnt,8,queue
+	arg 0,temp
+	arg 0,timeup
+host_l2cap_malloc_check_buffer_enough_loop:
+	copy queue,pdata
+	beq 8,host_l2cap_malloc_check_buffer_enough_end
+	fetch 1,mem_used_map
+	qisolate1 pdata		//the buffer is used
+	branch host_l2cap_malloc_check_buffer_enough_end,true
+	qset1 timeup
+	copy rege,pdata
+	iadd temp,temp
+	increase 1,queue
+	copy rega,pdata
+	isub temp,null
+	branch host_l2cap_malloc_check_buffer_enough_end,zero//(max_size_fom_buff_index ==  len)
+	branch host_l2cap_malloc_check_buffer_enough_loop,positive//(max_size_fom_buff_index <  len)
+host_l2cap_malloc_check_buffer_enough_end:
+	copy temp,pdata
+	isub rega,null
+	nrtn zero
+	qset1 timeup
+	rtn
+
+/*********************************************************/
+//void buff_into_fifo(char buff_index, char buff_cnt, short len)
+//input: rega -> len
+//input: regc -> buff_index
+//input: timeup -> buff_cnt
+//val:temp ->   (fifo->map)
+/*********************************************************/
+host_l2cap_malloc_into_fifo:
+	bpatchx patch20_4,mem_patch20
+	call l2cap_malloc_is_fifo_full
+	nbranch assert,blank //fifo full
+	call l2cap_malloc_is_fifo_empty
+	branch host_l2cap_malloc_into_fifo_no_push,blank//fifo empty, no need to push
+	fetch 9,mem_tx_fifo1
+	store 9,mem_tx_fifo0
+	setarg 0
+	istore 3,contw//mem_tx_fifo3
+host_l2cap_malloc_into_fifo_no_push:
+	storer timeup,1,mem_tx_fifo3_map
+	storer regd,2,mem_tx_fifo3_ptr
+	rtn
+
+
+/*********************************************************/
+//void* l2cap_malloc_fifo_out(void)
+//output:len -> temp
+//output:ptr ->pdata
+//only get ptr,not free
+/*********************************************************/
+l2cap_malloc_fifo_out:
+	bpatchx patch20_5,mem_patch20
+	call l2cap_malloc_fifo_get_first_ptr
+	increase 1,contr
+	ifetch 2,contr //ptr ->pdata
+	rtn
+
+
+/*********************************************************/
+//void free_first_buff_in_fifo(void)
+//only free the first one
+/*********************************************************/
+l2cap_malloc_free:
+	bpatchx patch20_6,mem_patch20
+	call l2cap_malloc_fifo_get_first_ptr
+	copy contr,contw
+	copy contr,temp
+	setarg 0
+	istore 3,contw
+	rtn
+
+
+/*********************************************************/
+//void l2cap_malloc_discard(void)
+//discard the latest malloc
+/*********************************************************/
+l2cap_malloc_discard:
+	bpatchx patch20_7,mem_patch20
+	call l2cap_malloc_is_fifo_empty
+	branch assert,blank
+	fetch 3,mem_tx_fifo2
+	store 3,mem_tx_fifo3
+	fetch 3,mem_tx_fifo1
+	store 3,mem_tx_fifo2
+	fetch 3,mem_tx_fifo0
+	store 3,mem_tx_fifo1
+	rtn
+
+
+/*********************************************************/
+//bool fifo_is_full(void)
+//blank == 1: not full
+//blank == 0: full
+/*********************************************************/
+l2cap_malloc_is_fifo_full:
+	bpatchx patch21_0,mem_patch21
+	fetch 3,mem_tx_fifo0
+	rtn
+
+
+/*********************************************************/
+//bool fifo_nearly_full(void)
+//blank == 1: nearly full
+//blank == 0: not nearly full
+/*********************************************************/
+l2cap_malloc_is_fifo_nearly_full:
+	bpatchx patch21_1,mem_patch21
+	fetch 3,mem_tx_fifo1
+	rtn
+
+
+/*********************************************************/
+//bool fifo_is_empty(void)
+//blank == 1: empty
+//blank == 0: not empty
+/*********************************************************/
+l2cap_malloc_is_fifo_empty:
+	bpatchx patch21_2,mem_patch21
+	fetch 3,mem_tx_fifo3
+	rtn
+
+
+/*********************************************************/
+//char* l2cap_malloc_fifo_get_first_ptr(void)
+//output:contr  -->ptr
+/*********************************************************/	
+l2cap_malloc_fifo_get_first_ptr:
+	call l2cap_malloc_is_fifo_empty
+	branch l2cap_malloc_fifo_get_first_ptr_empty,blank // fifo is empty
+	arg mem_tx_fifo0,contr
+l2cap_malloc_free_loop:
+	ifetch 3,contr
+	branch l2cap_malloc_free_loop,blank
+l2cap_malloc_fifo_get_first_ptr_empty:
+	increase -3,contr
+	rtn
+
+
+/*********************************************************/
+//char* l2cap_malloc_get_full_map(void)
+//output:mem_used_map  -->full_map
+//add all maps into one
+/*********************************************************/	
+l2cap_malloc_get_full_map:
+	bpatchx patch21_3,mem_patch21
+	arg 4,loopcnt
+	arg mem_tx_fifo0_map,contr
+	arg 0,temp
+l2cap_malloc_get_full_map_loop:	
+	ifetch 3,contr
+	and pdata,0xff,pdata
+	ior temp,temp
+	loop l2cap_malloc_get_full_map_loop
+	storet 1,mem_used_map
+	rtn
+
+
+l2cap_malloc_signal_channel:
+	bpatchx patch21_4,mem_patch21
+	arg L2CAP_SIGNAL_MALLOC_SIZE,rega
+	call l2cap_malloc
+	store 2,mem_l2cap_signal_tx_buff_ptr
+	increase 4,pdata
+	store 2,mem_l2cap_signal_tx_payload_ptr
+	setarg 0
+	store 2,mem_l2cap_signal_tx_length
+	rtn
+
+l2cap_get_signal_tx_buff:
+	fetch 2,mem_l2cap_signal_tx_buff_ptr
+	branch l2cap_util_pdata_to_contw
+
+l2cap_get_signal_tx_payload:
+	fetch 2,mem_l2cap_signal_tx_payload_ptr
+	branch l2cap_util_pdata_to_contw
+
+
+l2cap_malloc_sdp_channel:
+	bpatchx patch21_5,mem_patch21
+	arg SDP_MALLOC_SIZE,rega
+	call l2cap_malloc
+	store 2,mem_sdp_tx_buff_ptr
+	increase 4,pdata
+	store 2,mem_sdp_tx_payload_ptr
+	setarg 0
+	store 2,mem_sdp_tx_pkt_length
+	rtn
+
+l2cap_get_sdp_tx_buff:
+	fetch 2,mem_sdp_tx_buff_ptr
+	branch l2cap_util_pdata_to_contw
+
+l2cap_get_sdp_tx_payload:
+	fetch 2,mem_sdp_tx_payload_ptr
+	branch l2cap_util_pdata_to_contw
+
+
+l2cap_malloc_rfcomm_channel:
+	bpatchx patch21_6,mem_patch21
+	call push_stack
+	jam RFCOMM_MALLOC_FAIL,mem_rfcomm_malloc_fail_flag
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	arg RFCOMM_MALLOC_SIZE,rega
+	call l2cap_malloc
+	store 2,mem_rfcomm_tx_buff_ptr
+	increase 4,pdata
+	store 2,mem_rfcomm_tx_payload_ptr
+	setarg 0
+	store 2,mem_rfcomm_tx_pkt_length
+	jam RFCOMM_MALLOC_SUCCEED,mem_rfcomm_malloc_fail_flag
+	branch pop_stack
+
+l2cap_get_rfcomm_tx_buff:
+	fetch 2,mem_rfcomm_tx_buff_ptr
+	branch l2cap_util_pdata_to_contw
+	
+l2cap_util_pdata_to_contw:
+	branch assert,blank
+	copy pdata,contw
+	rtn
+	
+
+l2cap_lpm_save_calc_len:
+	bpatchx patch21_7,mem_patch21
+	arg 0,regb
+	arg mem_tx_fifo0_map,rega
+	increase -2,rega
+l2cap_lpm_save_calc_len_loop:
+	increase 2,rega
+	setarg mem_tx_fifo_end
+	isub rega,null
+	branch l2cap_lpm_save_calc_len_end,zero //end of 2lcap tx fifo
+	ifetch 1,rega
+	increase 1,rega
+	branch l2cap_lpm_save_calc_len_loop,blank
+	ifetcht 2,rega
+	ifetch 2,temp
+	iadd regb,regb
+	increase 4,regb //l2cap header len
+	branch l2cap_lpm_save_calc_len_loop
+l2cap_lpm_save_calc_len_end:
+	copy regb,pdata
+	rtn
+
+
+l2cap_lpm_get_wake_lock:
+	arg wake_lock_l2cap_tx,queue
+	branch lpm_get_wake_lock
+
+l2cap_lpm_put_wake_lock:
+	arg wake_lock_l2cap_tx,queue
+	branch lpm_put_wake_lock
+	
+l2cap_lpm_save_txbuf:
+	bpatchx patch22_0,mem_patch22
+	call l2cap_malloc_get_full_map
+	fetch 1,mem_used_map
+	rtn blank
+	call l2cap_lpm_save_calc_len
+	arg l2cap_lpm_txbuf_len,temp
+	isub temp,null
+	branch l2cap_lpm_get_wake_lock,positive //no enougth space to save l2cap tx data
+	call l2cap_lpm_put_wake_lock
+	arg mem_l2cap_lpm_txbuf,contw
+	arg mem_tx_fifo0,rega
+l2cap_lpm_save_txbuf_loop:
+	setarg mem_tx_fifo_end
+	isub rega,null
+	rtn zero //end of 2lcap tx fifo
+	ifetch 1,rega  //mem_tx_fifoX_map
+	increase 1,rega
+	nbranch l2cap_lpm_save_txbuf_nempty,blank
+	istore 2,contw // length = 0
+	increase 2,rega
+	branch l2cap_lpm_save_txbuf_loop
+l2cap_lpm_save_txbuf_nempty:
+	ifetch 2,rega //ptr
+	increase 2,rega
+	copy pdata,contr
+	ifetch 2,contr  //l2cap len
+	istore 2,contw
+	copy pdata,loopcnt
+	increase 2,loopcnt //add CID len
+	call memcpy
+	branch l2cap_lpm_save_txbuf_loop
+	
+l2cap_lpm_load_txbuf:
+	bpatchx patch22_1,mem_patch22
+	call l2cap_malloc_get_full_map
+	fetch 1,mem_used_map
+	rtn blank
+	arg mem_tx_fifo0_ptr,rega
+	increase -3,rega //mem_tx_fifo0_ptr -3
+	arg mem_l2cap_lpm_txbuf,contr
+l2cap_lpm_load_txbuf_loop:
+	increase 3,rega //mem_tx_fifoX_ptr
+	setarg mem_tx_fifo_end+1
+	isub rega,null
+	rtn zero //end of 2lcap tx fifo
+	ifetch 2,contr
+	branch l2cap_lpm_load_txbuf_loop,blank
+	increase 4,pdata //l2cap header len
+	copy pdata,loopcnt
+	copy contr,regb
+	ifetch 2,rega //ptr
+	copy pdata,contw
+	copy regb,contr
+	increase -2,contr
+	call memcpy
+	branch l2cap_lpm_load_txbuf_loop
+	
+
+
+	
Index: program/lmp.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/lmp.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/lmp.prog	(working copy)
@@ -0,0 +1,2744 @@
+	
+/******************************************/
+/*************   LMP Parse   **************/
+/******************************************/
+init_lmp:
+	rtn wake
+init_lmp_work:
+	bpatchx patch22_2,mem_patch22
+	setarg 0
+	store 1,mem_lmp_to_send
+	store 1,mem_conn_sm
+	store 1,mem_lmo_opcode1
+	store 1,mem_lmo_opcode2
+	store 1,mem_esco_addr
+	store 1,mem_connection_options
+	store 1,mem_pairing_auth
+	store 3,mem_encapsulated_major_type
+	store 1,mem_remote_br_sc_support
+	jam SWITCH_FLAG_INIT,mem_switch_flag
+	jam 0,mem_switch_fail_master_count
+	jam NULL_ENCRYP,mem_wait_encryption
+init_lmp_reinit:	
+	jam 0,mem_pairing_auth
+	jam 0,mem_sp_localsm
+	jam 0,mem_lmp_conn_state
+	//fall through
+parse_rx_done:
+	rtn
+
+parse_lmp:
+	bpatchx patch22_3,mem_patch22
+	call setlocalsm_master,master	//use this flag in hci
+	ncall setlocalsm_slave,master
+	call lmo_fifo_check
+	nrtn blank
+	fetch 1,mem_state_map
+	rtnbit0 smap_rxlmp
+	set0 smap_rxlmp,pdata
+	set0 mark_rxbuf_inuse,mark
+	store 1,mem_state_map
+	fetch 1,mem_rxbuf
+	fetcht 1,mem_state_map
+	isolate1 smap_lmptidinit,pdata
+	setflag true,smap_lmptid,temp
+	storet 1,mem_state_map
+	and_into 0x2,temp //smap_lmptid only
+	storet 1,mem_lmo_tid2
+	fetcht 1,mem_state_map
+	rshift pdata,pdata			/* align lmp_opcode */
+  	store 1,mem_lmi_opcode2
+	bpatchx patch22_4,mem_patch22
+  	fetch 1,mem_lmi_opcode2
+  	beq LMP_ESCAPE,parse_lmp_escape//multi
+  	beq LMP_ACCEPTED,parse_lmp_accepted//multi
+	beq LMP_NOT_ACCEPTED,parse_lmp_not_accepted//multi
+  	beq LMP_SET_AFH, parse_lmp_set_afh
+  	beq LMP_CLKOFFSET_REQ, parse_lmp_clkoffset_req
+ 	beq LMP_ENCRYPTION_MODE_REQ, parse_lmp_encryption_mode_req
+ 	beq LMP_ENCRYPTION_KEY_SIZE_REQ,parse_lmp_crypt_key
+	beq LMP_AUTO_RATE,parse_lmp_auto_rate
+	beq LMP_TEST_CONTROL,parse_lmp_test_control//multi
+	beq LMP_TEST_ACTIVATE,parse_lmp_test_activate
+	beq LMP_SETUP_COMPLETE,parse_lmp_setup_complete
+	beq LMP_SUPERVISION_TIMEOUT,parse_lmp_supervision_timeout
+	beq LMP_FEATURES_REQ,parse_lmp_features_req
+	beq LMP_HOST_CONNECTION_REQ,parse_lmp_conn_req
+	beq LMP_VERSION_REQ,parse_lmp_version_req
+	beq LMP_VERSION_RES,parse_lmp_version_res
+	beq LMP_DETACH,parse_lmp_detach
+	beq LMP_MAX_SLOT,parse_lmp_max_slot
+	beq LMP_MAX_SLOT_REQ,parse_lmp_max_slot_req
+	beq LMP_NAME_REQ,parse_lmp_name_req
+	beq LMP_NAME_RES,parse_lmp_name_res
+	beq LMP_FEATURES_RES,parse_lmp_features_res
+	beq LMP_COMB_KEY,parse_lmp_comb_key
+	beq LMP_AU_RAND, parse_lmp_au_rand
+	beq LMP_IN_RAND,parse_lmp_in_rand
+	beq LMP_SRES,parse_lmp_sres
+	beq LMP_INCR_POWER_REQ,parse_lmp_incr_power
+	beq LMP_DECR_POWER_REQ,parse_lmp_decr_power
+	beq LMP_MAX_POWER, parse_lmp_max_power
+	beq LMP_MIN_POWER, parse_lmp_min_power
+	beq LMP_PAGE_MODE_REQ, parse_lmp_page_mode_req
+	beq LMP_PAGE_SCAN_MODE_REQ, parse_lmp_page_scan_mode_req
+	beq LMP_PREFERRED_RATE, parse_lmp_preferred_rate
+	beq LMP_SLOT_OFFSET, parse_lmp_slot_offset
+	beq LMP_SNIFF_REQ, parse_lmp_sniff_req
+	beq LMP_START_ENCRYPTION_REQ, parse_lmp_start_encryption_req
+	beq LMP_STOP_ENCRYPTION_REQ, parse_lmp_stop_encryption_req
+	beq LMP_SWITCH_REQ, parse_lmp_switch_req
+	beq LMP_TEMP_RAND, parse_lmp_temp_rand
+	beq LMP_TEMP_KEY, parse_lmp_temp_key
+	beq LMP_TIMING_ACCURACY_REQ, parse_lmp_timing_accuracy_req
+	beq LMP_TIMING_ACCURACY_RES, parse_lmp_timing_accuracy_res
+	beq LMP_UNIT_KEY, parse_lmp_unit_key
+	beq LMP_UNSNIFF_REQ, parse_lmp_unsniff_req
+	beq LMP_USE_SEMI_PERMANENT_KEY, parse_lmp_use_semi_permanend_key
+	beq LMP_ENCAPSULATED_HEADER,parse_lmp_encapsulated_header
+	beq LMP_ENCAPSULATED_PAYLOAD,parse_lmp_encapsulated_payload
+	beq LMP_SIMPLE_PAIRING_CONFIRM,parse_simple_pairing_confirm
+	beq LMP_SIMPLE_PAIRING_NUMBER,parse_lmp_simple_pairing_number
+	beq LMP_DHKEY_CHECK,parse_dhkey_check
+	beq LMP_CLKOFFSET_RES, parse_lmp_clkoffset_res
+	beq LMP_ENC_KEY_SIZE_MASK_REQ,parse_enc_key_size_mask_req
+	beq LMP_QUALITY_OF_SERVICE_REQ,parse_quality_of_server_req
+	beq LMP_QUALITY_OF_SERVICE,parse_quality_of_server
+/* lmp is not recognized, check to see if we respond to all messages */ 
+/* rejecting the unrecognized message with PDU not recognized */
+reject_unknown_packet:
+	jam UNKNOWN_LMP_PDU,mem_lmo_reason2
+reject_lmp_packet:
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	rtn
+
+parse_quality_of_server_req:
+	branch accept_lmp_msg
+
+parse_quality_of_server:
+	rtn
+
+parse_lmp_clkoffset_req:
+	jam LMP_CLKOFFSET_RES,mem_lmo_opcode2
+	rtn	
+
+parse_enc_key_size_mask_req:
+	jam LMP_ENC_KEY_SIZE_MASK_RES,mem_lmo_opcode2
+	rtn
+	
+parse_lmp_set_afh:
+	fetch 4,mem_rxbuf+1
+	lshift pdata,pdata
+	store 4,mem_afh_instant
+	fetch 1,mem_rxbuf+5
+	store 1,mem_afh_new_mod
+	fetch 5,mem_rxbuf+6
+	store 5,mem_afh_map_new
+	fetch 5,mem_rxbuf+11
+	istore 5,contw
+	fetch 1,mem_mode
+	set1 afh_change,pdata
+	store 1,mem_mode
+	rtn
+parse_lmp_escape:
+	bpatchx patch22_5,mem_patch22
+	fetch 1,mem_rxbuf+1
+	set1 7,pdata
+	store 1,mem_lmi_opcode2
+	beq LMP_EXT_ACCEPTED,parse_lmpext_accepted
+	beq LMP_NOT_ACCEPTED_EXT,parse_lmpext_not_accepted
+	beq LMP_SNIFF_SUBRATING_REQ, parse_lmp_sniff_subrating_req
+	beq LMP_SNIFF_SUBRATING_RES, parse_lmp_sniff_subrating_res
+	beq LMP_PACKET_TYPE_TABLE_REQ,parse_lmpext_packet_type_table_req
+	beq LMP_EXT_FEATURES_REQ,parse_lmpext_features_req
+	beq LMP_EXT_FEATURES_RES,parse_lmpext_features_res
+	beq LMP_EXT_CHN_CLASSIFICATION_REQ,parse_lmpext_chn_classification_req
+	beq LMP_PAUSE_ENCRYPTION_REQ,parse_lmpext_pause_encrypt
+	beq LMP_RESUME_ENCRYPTION_REQ,parse_lmpext_resume_encrypt
+	beq LMP_IO_CAP_REQ,parse_lmpext_iocap_req
+	beq LMP_IO_CAP_RES,parse_lmpext_iocap_res
+	beq LMP_PING_REQ,parse_lmpext_ping_req
+	rtneq LMP_EXT_FEATURES_RES
+
+reject_unknown_ext_packet:
+	jam LMP_NOT_ACCEPTED_EXT,mem_lmo_opcode2
+	jam UNKNOWN_LMP_PDU,mem_lmo_reason2
+	rtn
+
+parse_lmpext_ping_req:
+	jam LMP_PING_RES,mem_lmo_opcode2
+	rtn
+	
+parse_lmpext_chn_classification_req:
+	jam LMP_NOT_ACCEPTED_EXT,mem_lmo_opcode2
+	jam NOT_SUPPORT_CHN_CLASSIFICATION,mem_lmo_reason2
+	rtn
+	
+parse_lmpext_iocap_req:
+	call iocap_lmpext_load
+	jam LMP_IO_CAP_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmpext_iocap_res:
+	call iocap_lmpext_load
+	branch iocap_lmpext_common
+	
+iocap_lmpext_load:
+	arg      mem_sp_iocap_remote,contw
+	fetch 3, mem_rxbuf+2
+	istore    3,contw
+	rtn
+	
+iocap_lmpext_common:
+ifdef SIMPLE_PAIRING
+	branch master_set_mem_master_sp_flag,true//is un very ok to use master flag,but we have to add many codes if wo don't
+endif
+	rtn
+parse_lmpext_accepted:
+	fetch 1,mem_rxbuf+3
+	set1 7,pdata
+	store 1,mem_lmi_accepted_opcode
+	beq LMP_PACKET_TYPE_TABLE_REQ,parse_lmpext_accepted_ptt
+	rtn
+
+	
+parse_lmpext_not_accepted:
+	fetch 1,mem_rxbuf+3
+	set1 7,pdata
+	store 1,mem_lmi_accepted_opcode
+	beq LMP_PACKET_TYPE_TABLE_REQ,parse_lmpext_not_accepted_ptt
+	rtn
+
+parse_lmpext_accepted_ptt:
+	fetch 1,mem_ptt
+	fetcht 1,mem_state_map
+	nsetflag blank,smap_edr,temp
+	storet 1,mem_state_map
+parse_lmpext_not_accepted_ptt:
+	fetch 1,mem_state
+	rtnbit0 state_init_seq
+	set0 state_init_seq,pdata
+	store 1,mem_state
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	rtn
+
+parse_lmpext_pause_encrypt:
+	nbranch parse_lmpext_pause_encrypt_slave, master
+	jam LMP_STOP_ENCRYPTION_REQ,mem_lmo_opcode2
+	branch tid_reply
+
+parse_lmpext_pause_encrypt_slave:	
+	jam LMP_PAUSE_ENCRYPTION_REQ, mem_lmo_opcode2
+	rtn
+
+parse_lmpext_resume_encrypt:
+//trans file to pc may cause pause/resume encrypt
+//if ms is conn_sm_wait_end the controllor won't send ack after recieved start_encypt_accept
+	call tid_reply
+	branch lmp_start_encryption
+
+parse_lmpext_features_req:
+	ifetch 1,contr
+	store 1,mem_ext_features_page
+	beq 1,parse_lmpext_features_req_page1
+	beq 2,parse_lmpext_features_req_page2	
+	rtn
+	
+parse_lmpext_features_req_page1:
+	jam LMP_EXT_FEATURES_RES,mem_lmo_opcode2
+	increase 1,contr
+	ifetch 1,contr
+	bbit1 LMP_FEATURES_EXT_PAGE1_SC_HOST_BIT,remote_support_br_sc_host
+	branch remote_not_support_br_sc_host
+	
+parse_lmpext_features_req_page2:
+	jam LMP_EXT_FEATURES_RES,mem_lmo_opcode2
+	increase 1,contr
+	ifetch 2,contr
+	bbit1 LMP_FEATURES_EXT_PAGE2_SC_CONTROLLER_BIT,remote_support_br_sc_controller
+	branch remote_not_support_br_sc_controller
+	
+remote_support_br_sc_controller:
+	fetch 1,mem_remote_br_sc_support
+	set1 REMOTE_BR_SC_CONTROLLER_BIT,pdata
+	call set_remote_br_sc_support
+	
+	fetch 1,mem_remote_br_sc_support
+	rtnne 3
+	fetch 1,mem_secure_connections_enable
+	rtnbit0 SECURE_CONNECTIONS_BR_BIT
+ 	jam ENCAPSULATED_MINOR_TYPE_P256,mem_encapsulated_minor_type
+ 	rtn
+ 	
+remote_not_support_br_sc_controller:
+	fetch 1,mem_remote_br_sc_support
+	set0 REMOTE_BR_SC_CONTROLLER_BIT,pdata
+set_remote_br_sc_support:	
+	store  1,mem_remote_br_sc_support
+	rtn
+	 
+remote_support_br_sc_host:
+	fetch 1,mem_remote_br_sc_support
+	set1 REMOTE_BR_SC_HOST_BIT,pdata
+	branch set_remote_br_sc_support	
+	
+remote_not_support_br_sc_host:
+	fetch 1,mem_remote_br_sc_support
+	set0 REMOTE_BR_SC_HOST_BIT,pdata
+	branch set_remote_br_sc_support	
+	
+parse_lmpext_features_res:
+	fetcht 1,mem_rxbuf+4
+	and temp,0x1,temp
+	storet 1,mem_remote_sppcap
+	fetch 1,mem_hci_cmd
+	bne hci_cmd_wait_remote_ext_feature,parse_lmpext_features_res_not_hci
+	jam 0,mem_hci_cmd
+parse_lmpext_features_res_not_hci:
+	fetch 1,mem_conn_sm
+	rtnne CONN_SM_WAIT_FEATURES_EXT
+	jam CONN_SM_SEND_CONN_REQ,mem_conn_sm
+	branch process_conn_sm
+
+parse_lmp_accepted:
+	bpatchx patch22_6,mem_patch22
+	fetch 1,mem_rxbuf+1
+	store 1,mem_lmi_accepted_opcode
+	beq LMP_HOST_CONNECTION_REQ,parse_lmp_accepted_hostconn//ok
+	beq LMP_IN_RAND,parse_lmp_accepted_inrand//ok
+	beq LMP_ENCRYPTION_MODE_REQ,parse_lmp_accepted_enc_mode//ok
+	beq LMP_ENCRYPTION_KEY_SIZE_REQ,parse_lmp_accepted_enc_keysize//ok
+	beq LMP_START_ENCRYPTION_REQ,parse_lmp_accepted_start_enc//ok
+	beq LMP_STOP_ENCRYPTION_REQ,parse_lmp_accepted_stop_enc//ok
+	beq LMP_UNSNIFF_REQ,parse_lmp_accepted_unsniff_req//ok
+	beq LMP_SNIFF_REQ,parse_lmp_accepted_sniff_req//ok
+	beq LMP_SWITCH_REQ,parse_lmp_accepted_switch
+	// simple pairing 
+	beq LMP_ENCAPSULATED_HEADER,parse_lmp_accepted_encapsulated_header//ok
+	beq LMP_ENCAPSULATED_PAYLOAD,parse_lmp_accepted_encapsulated_payload//ok
+	beq LMP_SIMPLE_PAIRING_NUMBER,parse_lmp_accepted_simple_pairing_number//ok
+	beq LMP_DHKEY_CHECK,parse_lmp_accepted_dhkey_check//ok
+	rtn
+	
+parse_lmp_not_accepted:
+	bpatchx patch22_7,mem_patch22
+	fetch 1,mem_rxbuf+1
+	store 1,mem_lmi_accepted_opcode
+	beq LMP_NAME_REQ,parse_lmp_not_accepted_name_req//ok
+	beq LMP_HOST_CONNECTION_REQ,parse_lmp_not_accepted_hostconn//ok
+	beq LMP_AU_RAND,parse_lmp_not_accepted_aurand//ok
+	beq LMP_IN_RAND,parse_lmp_not_accepted_inrand//ok
+	beq LMP_SWITCH_REQ,parse_lmp_not_accepted_switch//ok
+	/* simple pairing support */
+	beq  LMP_SIMPLE_PAIRING_NUMBER,parse_lmp_not_accepted_simple_pairing_number//ok
+	beq  LMP_DHKEY_CHECK,parse_lmp_not_accepted_dhkey_check//ok
+	beq LMP_UNSNIFF_REQ,parse_lmp_not_accepted_unsniff_req
+	beq LMP_SNIFF_REQ,parse_lmp_not_acdcept_sniff_req
+	rtn
+
+parse_lmp_accepted_switch:
+	jam BT_EVT_SWITCH_ACCEPT,mem_fifo_temp
+	call ui_ipc_send_event
+	branch role_switch_prepare0
+	
+parse_lmp_not_accepted_switch:
+	jam BT_EVT_SWITCH_NOT_ACCEPT,mem_fifo_temp
+	call ui_ipc_send_event
+	jam SWITCH_FLAG_NOT_ACCEPT,mem_switch_flag
+	setarg TIMER_SWITCH_WAITE
+	arg switch_wait_timer,queue
+	branch timer_init
+
+
+parse_lmp_accepted_hostconn:
+	//fetch 1,mem_state
+	//rtnbit0 state_init_seq
+	fetch 1,mem_lmp_conn_state
+	set1 RECEIVED_CONN_REQ,pdata
+	store 1,mem_lmp_conn_state
+	jam BT_EVT_BB_CONNECTED,mem_fifo_temp
+	call ui_ipc_send_event
+	jam LMP_PACKET_TYPE_TABLE_REQ,mem_lmo_opcode2
+	//nbranch parse_lmp_accepted_hostconn_ctn,master
+parse_lmp_accepted_hostconn_ctn:
+	/* checking to see if we requested host connection */
+	fetch 1,mem_conn_sm
+	bne CONN_SM_WAIT_CONN_ACCEPT, parse_rx_done
+	//branch parse_lmp_accepted_hostconn_master,master
+	/* continuing on with host connection state machine */
+	jam CONN_SM_AUTH_PAIR,mem_conn_sm
+	rtn
+	//branch host_create_conn_auth_pair
+
+	/* we need to move fast and send au_rand...jumping to next part of state machine for conn */
+//parse_lmp_accepted_hostconn_master:
+	//jam CONN_SM_AUTH_PAIR ,mem_conn_sm
+//	rtn
+
+parse_lmp_not_accepted_hostconn:
+	jam ACL_CONNECTION_ALREADY_EXISTS,mem_disconn_reason_send
+	jam LMP_DETACH,mem_lmo_opcode2
+	/* clearing connection state machine */
+	jam CONN_SM_STANDBY,mem_conn_sm
+	/* sending error message to host */
+	branch parse_rx_done,true
+	rtn
+
+parse_lmp_accepted_inrand:
+	fetch 1,mem_link_key_exists
+	nrtn blank
+	call clear_linkkey
+	call  lmp_generate_key
+	rtn master
+	set1 mark_slave_in_rand_accepted,mark
+	rtn
+
+parse_lmp_accepted_enc_mode:
+	nrtn master
+	jam LMP_ENCRYPTION_KEY_SIZE_REQ,mem_lmo_opcode2
+	fetch 1,mem_state_map
+	rtnbit0 smap_encryption
+	jam LMP_STOP_ENCRYPTION_REQ,mem_lmo_opcode2
+	rtn
+
+parse_lmp_accepted_enc_keysize:
+	branch lmp_start_encryption
+	
+parse_lmp_accepted_start_enc:
+	call send_create_conn_start_l2cap_timer_sm
+	fetch 1,mem_state
+	rtnbit1 state_conn_comp
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	fetch 1,mem_conn_sm
+	rtnne CONN_SM_ENCRYPT_WAIT
+	jam CONN_SM_ENCRYPT_WAIT_CLEAR,mem_conn_sm
+	rtn
+	
+parse_lmp_accepted_stop_enc:
+	/* again this won't work with multipoint. keep track of anyone else encrypting */
+	//jam HOST_STOP_ENCRYPTION,message_queue_B0
+	//jam 1,message_queue_B1
+	//jam HOST_RETURN_SUCCESS,message_queue_B2
+	//fetch 1,mem_lmp_state2
+	//set1 MESSAGE_QUEUE,pdata
+	//store 1,mem_lmp_state2
+	rtn
+
+parse_lmp_not_accepted_aurand:	
+parse_lmp_not_accepted_aurand_send_detach:	
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_mouse,null
+	call mouse_delay_enter_hibernata,zero
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam OTHER_END_TERMINATED,mem_disconn_reason_send
+	rtn
+/*in pair remote cancel the pair*/
+parse_lmp_not_accepted_inrand:
+	fetch 1,mem_rxbuf+2
+	beq KEY_MISSING,parse_lmp_inrand_key_missing
+	rtnne PAIRING_NOT_ALLOWED
+	jam PAIRING_NOT_ALLOWED,mem_disconn_reason_send
+	jam LMP_DETACH,mem_lmo_opcode2
+	rtn	
+parse_lmp_inrand_key_missing:
+	jam KEY_MISSING,mem_disconn_reason_send
+	jam LMP_DETACH,mem_lmo_opcode2
+	rtn
+	
+parse_lmp_not_accepted_name_req:
+	rtn
+	
+parse_lmp_not_accepted_simple_pairing_number:
+	jam SP_STAT_NULL,mem_sp_state
+	jam LMP_DETACH,mem_lmo_opcode2
+	branch parse_rx_done
+	
+parse_lmp_not_accepted_dhkey_check:
+	jam SP_STAT_NULL,mem_sp_state
+	jam LMP_DETACH,mem_lmo_opcode2
+	branch parse_rx_done
+parse_lmp_not_accepted_unsniff_req:
+	jam BT_EVT_UNSNIFF_NOT_ACCEPT,mem_fifo_temp
+	branch ui_ipc_send_event
+	
+parse_lmp_accepted_unsniff_req:
+	jam BT_EVT_UNSNIFF_ACCEPT,mem_fifo_temp
+	call ui_ipc_send_event
+	branch sniff_exit
+	
+parse_lmp_accepted_sniff_req:
+	jam BT_EVT_SNIFF_ACCEPT,mem_fifo_temp
+	call ui_ipc_send_event
+	setarg 0
+	store 2,mem_dsniff
+	fetch 2,mem_sniff_param_interval
+	lshift pdata,pdata
+	store 2,mem_tsniff
+	fetch 1,mem_sniff_param_attempt
+	store 1,mem_sniff_attempt
+	fetch 1,mem_sniff_param_timeout
+	store 1,mem_sniff_timeout
+	branch sniff_init
+	
+parse_lmp_not_acdcept_sniff_req:
+	jam BT_EVT_SNIFF_NOT_ACCEPT,mem_fifo_temp
+	branch ui_ipc_send_event
+	
+parse_lmp_crypt_key:
+	fetcht 1,mem_rxbuf+1
+	sub temp,6,null
+	branch lmp_reject_pdu_not_allowed,positive
+	storet 1,mem_key_size
+	branch accept_lmp_msg
+	
+parse_lmp_setup_complete:
+	fetch 1,mem_lmp_conn_state
+	set1 RECEIVED_SETUP_COMPLETE,pdata
+	store 1,mem_lmp_conn_state
+	rtnbit1 SENT_SETUP_COMPLETE
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	branch parse_rx_done
+	
+parse_lmp_max_slot:
+	//jam LMP_MAX_SLOT,mem_lmi_opcode2
+	//branch accept_lmp_msg
+	rtn
+	
+parse_lmp_max_slot_req:
+	fetch 1,mem_max_slot
+	fetcht 1,mem_rxbuf+1
+	isub temp,null
+	//jam LMP_MAX_SLOT_REQ,mem_lmi_opcode2
+	branch accept_lmp_msg,positive
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	jam UNSPECIFIED_ERROR,mem_lmo_reason2
+	jam LMP_MAX_SLOT_REQ,mem_lmi_opcode2
+	rtn
+	
+parse_lmp_detach:
+	branch prepare_disconnect
+	
+accept_lmp_msg:
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	rtn
+
+parse_lmp_incr_power:
+	jam LMP_MAX_POWER,mem_lmo_opcode2
+	rtn
+
+parse_lmp_decr_power:
+	jam LMP_MIN_POWER,mem_lmo_opcode2
+	rtn
+	
+parse_lmp_version_res:
+	fetch 1,mem_conn_sm
+	rtneq CONN_SM_WAIT_VERSION
+	/* continuing on with host connection state machine */
+	jam CONN_SM_SEND_FEATURES ,mem_conn_sm
+	/* we need to move fast and send au_rand...jumping to next part of state machine for conn */
+	rtn
+
+
+parse_lmp_auto_rate:
+	rtn	
+
+parse_lmp_in_rand:
+	fetch 1,mem_sc_only_mode
+	nbranch parse_lmp_in_rand_not_accept,blank
+	
+	call lmp_copy_rand
+	jam pincode_state_wait_pincode,mem_pincode_state
+	jam BT_EVT_PINCODE_REQ,mem_fifo_temp
+	call ui_ipc_send_event
+
+	call tid_check
+	nbranch lmp_accept_inrand,true
+	nbranch parse_lmp_inrand_res,master // ignore this because of not ssp temporary
+parse_lmp_in_rand_not_accept:
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	jam LMP_IN_RAND,mem_lmi_opcode2
+	jam TRANSACTION_COLLISION,mem_lmo_reason2
+	rtn
+	
+parse_lmp_inrand_res:
+	fetch 1,mem_op
+	set1 op_inrand_req,pdata
+	store 1,mem_op
+	rtn
+
+//store current tid
+pop_tid_follow:
+	fetcht 1,mem_state_map
+	nsetflag blank,smap_lmptid,temp
+	storet 1,mem_state_map
+	rtn
+	
+//restore current tid
+push_tid_follow:
+	fetch 1,mem_lmo_tid2
+	rshift pdata,pdata
+	and_into 1,pdata
+	rtn
+
+parse_lmp_au_rand_moudle:
+	fetch 1,mem_nv_data_number
+	rtn blank
+	fetch 1,mem_pairing_auth
+	call load_device_list,blank
+	rtn	
+
+parse_lmp_au_rand:
+	call parse_lmp_au_rand_moudle
+	call push_tid_follow
+	store 1,mem_sres_tid
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_au_rand_256
+	call lmp_copy_rand
+	jam LMP_SRES,mem_lmo_opcode2
+parse_lmp_au_rand_common:	
+	fetch 1,mem_link_key_exists
+	nrtn blank
+	fetch 1,mem_state
+	rtnbit1 state_combkey		/* we have comb key, but not verified */
+	jam KEY_MISSING,mem_lmo_reason2
+	branch reject_lmp_packet
+	
+parse_lmp_au_rand_256:
+	jam LMP_AU_RAND,mem_lmo_opcode2
+	arg mem_sp_random_remote,contw
+	arg mem_rxbuf+1,contr
+	call memcpy16	
+	branch parse_lmp_au_rand_common
+
+	
+parse_lmp_sres:	
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_sres_256
+
+	arg mem_plap,rega
+	call function_e1
+	fetcht 4,mem_input_store
+	fetch 4,mem_rxbuf+1
+	isub temp,null
+	branch authentication_ok,zero
+authentication_fail:	
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam AUTHENTICATION_FAILURE_ERROR,mem_disconn_reason_send	
+	rtn
+	
+authentication_ok:
+	call copy_aco
+	call authentication_ok_common
+	fetch 1,mem_ssp_enable
+	branch  pairing_success,blank
+	rtn
+
+parse_lmp_sres_256:
+	fetch 4,mem_rxbuf+1
+	fetcht 4,mema
+	isub temp,null
+	branch authentication_ok_256,zero
+	branch authentication_fail
+	
+authentication_ok_256:
+	call authentication_ok_common
+	fetch 1,mem_secure_connections_enable
+	bbit1  SECURE_CONNECTIONS_BR_BIT,pairing_success
+	rtn
+	
+	
+authentication_ok_common:
+	call linkkey_ready///save link key
+	fetch 1,mem_op
+	isolate1 op_auth_req,pdata
+	set0 op_auth_req,pdata
+	store 1,mem_op
+	fetch 1,mem_conn_sm
+	beq CONN_SM_AUTH_WAIT,authentication_ok_conn_sm
+	beq CONN_SM_PAIRING_WAIT,authentication_ok_conn_sm
+	rtn
+authentication_ok_conn_sm:
+	fetch 1,mem_pairing_auth
+	rtnne DEFALT_PAIRING_AUTH
+	fetch 1,mem_state_map
+	rtnbit1 smap_encryption
+	branch host_create_conn_encrypt
+
+parse_lmp_comb_key:
+	arg mem_rxbuf+1,rega
+	arg mem_kinit,regb
+	arg mem_random_number,contw
+	call xor16
+	arg mem_plap,rega
+	call generate_linkkey
+	jam LMP_AU_RAND,mem_lmo_opcode2
+	fetch 1,mem_state
+	bbit0 state_combkey,lmp_generate_key
+	rtn
+	
+parse_lmp_name_res:
+	fetch 2,mem_len
+	add pdata,-3,loopcnt	//for remote name length error
+	fetcht 1,mem_rxbuf+1
+	setarg mem_tmp_buffer
+	iadd temp,contw
+	arg mem_rxbuf+3,contr
+	call memcpy
+	fetcht 1,mem_name_offset
+	fetch 1,mem_rxbuf+2
+	isub temp,pdata
+	sub pdata,14,null
+	branch parse_lmp_name_res_end,positive
+	add temp,14,pdata
+	store 1,mem_name_offset
+	jam LMP_NAME_REQ,mem_lmo_opcode2
+	rtn
+parse_lmp_name_res_end:
+	fetch 1,mem_state_map
+	set1 smap_name_res,pdata
+	store 1,mem_state_map
+	bbit1 smap_name_req,lmp_disconnect
+	rtn
+parse_lmp_name_req:
+	fetch 1,mem_rxbuf+1
+	store 1,mem_lmi_opcode2 //offset 
+	jam LMP_NAME_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmp_conn_req:
+	branch accept_lmp_msg
+
+parse_lmp_timing_accuracy_req:
+	jam LMP_TIMING_ACCURACY_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmp_features_req:
+	jam LMP_FEATURES_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmp_version_req:
+	jam LMP_VERSION_RES,mem_lmo_opcode2
+	rtn
+
+parse_lmp_supervision_timeout:
+//	fetch 2,mem_rxbuf+1
+//	store 2,mem_supervision_to
+	rtn
+	
+
+
+parse_lmp_sniff_subrating_req:
+	fetch 2,mem_tsniff
+	iforce temp
+	fetch 1,mem_rxbuf+2
+	store 1,mem_subsniff_rate
+	imul32 temp,temp
+	fetch 2,mem_rxbuf+3
+	lshift pdata,pdata
+	store 2,mem_subsniff_tcmax
+	fetch 4,mem_rxbuf+5
+	lshift pdata,pdata
+ 	store 4,mem_subsniff_instant
+	//product pdata
+	deposit temp
+	store 2,mem_subsniff_tsniff
+	rtn
+parse_lmpext_packet_type_table_req:
+	fetcht 1,mem_ptt
+	fetch 1,mem_rxbuf+2
+	ixor temp,null
+	nbranch reject_unknown_ext_packet,zero
+	isolate1 0,pdata
+	fetch 1,mem_state_map
+	setflag true,smap_edr,pdata
+	store 1,mem_state_map
+	jam LMP_EXT_ACCEPTED,mem_lmo_opcode2
+	jam LMP_PACKET_TYPE_TABLE_REQ,mem_lmi_opcode2
+	rtn
+
+	
+parse_lmp_sniff_subrating_res:
+parse_lmp_preferred_rate:
+parse_lmp_max_power:
+parse_lmp_min_power:
+	rtn
+parse_lmp_page_mode_req:
+	//jam LMP_PAGE_MODE_REQ,mem_lmi_opcode2
+	branch accept_lmp_msg
+parse_lmp_page_scan_mode_req:
+	//this can influence connection. need accepted
+	//jam LMP_PAGE_SCAN_MODE_REQ,mem_lmi_opcode2
+	branch accept_lmp_msg
+
+
+	
+parse_lmp_slot_offset:
+	fetch 2,mem_rxbuf+1
+	store 2,mem_slot_offset
+	rtn
+
+parse_lmp_sniff_req_check_sniff_para:
+	fetch 2,mem_rxbuf+4 /* tsniff */
+	fetcht 1,mem_lpm_mult
+	imul32 temp,pdata
+	arg 0x640,temp
+	isub temp,null
+//	branch lmp_reject_pdu_not_allowed,positive
+	rtn
+	
+parse_lmp_sniff_req:
+	fetch 2,mem_rxbuf+6
+	branch lmp_reject_pdu_not_allowed,blank
+	call parse_lmp_sniff_req_check_sniff_para
+	branch lmp_reject_pdu_not_allowed,positive
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_module,null
+	call module_set_lpm_mult_2,zero
+	fetch 1,mem_state
+	bbit1 state_insniff,lmp_reject_pdu_not_allowed
+	fetch 2,mem_rxbuf+2 /* dsniff */
+	lshift pdata,pdata
+	store 2,mem_dsniff	
+	fetch 2,mem_rxbuf+4 /* tsniff */
+	lshift pdata,pdata
+	store 2,mem_tsniff
+	fetch 2,mem_rxbuf+6 /* sniff attempt */
+	store 1,mem_sniff_attempt
+	iforce temp
+	fetch 2,mem_rxbuf+8 /* sniff timeout */
+	store 1,mem_sniff_timeout
+	isub temp,null
+	nbranch set_big_value_to_attempt,positive
+	store 1,mem_sniff_attempt
+set_big_value_to_attempt:	
+	//call sniff_init
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_SNIFF_REQ,mem_lmi_opcode2
+	rtn
+
+parse_lmp_start_encryption_req:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_start_encryption_req_256
+	call accept_lmp_msg
+	call lmp_copy_rand
+	call function_e3
+	branch start_encryption
+
+parse_lmp_start_encryption_req_256:
+	call accept_lmp_msg
+//	call lmp_copy_rand
+	call start_encryption
+calc_kc:	
+	call function_h3
+	arg mem_kc,contw
+	arg mem_sp_calc_result_high,contr
+	arg 0x10,loopcnt
+	branch reverse_byte
+	
+parse_lmp_stop_encryption_req:
+	call accept_lmp_msg
+	branch stop_encryption
+	
+
+parse_lmp_switch_req:
+	fetch 4,mem_rxbuf+1
+	lshift pdata,pdata
+	//branch parse_lmp_switch_req_not_accept
+	branch parse_lmp_switch_accept,master
+	fetcht 1,mem_link_key_exists
+	nbranch parse_lmp_switch_req_clear_mark,blank
+parse_lmp_switch_req_not_accept:
+	jam LMP_SWITCH_REQ,mem_lmi_opcode2
+	branch lmp_reject_pdu_not_allowed
+	
+parse_lmp_switch_req_clear_mark:
+	jam LMP_SLOT_OFFSET,mem_lmo_opcode2
+	jam 0,mem_conn_sm
+	branch role_switch_prepare
+
+parse_lmp_switch_accept:
+	call role_switch_prepare
+	set1 mark_reconn_recieve_switch,mark
+	fetch 1,mem_connection_options
+	set0 CONNECTION_SWITCH,pdata
+	store 1,mem_connection_options
+	branch accept_lmp_msg
+
+	
+
+parse_lmp_temp_rand:
+parse_lmp_temp_key:
+parse_lmp_timing_accuracy_res:	
+parse_lmp_unit_key:	
+parse_lmp_use_semi_permanend_key:
+	rtn
+
+	
+parse_lmp_unsniff_req:
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_UNSNIFF_REQ,mem_lmi_opcode2
+	jam BT_EVT_REMOTE_UNSNIFF,mem_fifo_temp
+	call ui_ipc_send_event
+	branch sniff_exit
+	
+parse_lmp_encapsulated_header:
+	jam 0,mem_sp_remote_key_recv_count
+	fetch 1,mem_rxbuf+1
+	store 1,mem_encapsulated_major_type
+	bne ENCAPSULATED_MAJOR_TYPE,lmp_reject_pdu_not_allowed
+	fetcht 1,mem_rxbuf+2
+	storet 1,mem_encapsulated_minor_type
+	
+	fetch 1,mem_sc_only_mode
+	branch parse_lmp_encapsulated_header2,blank
+	sub temp,ENCAPSULATED_MINOR_TYPE_P256,null
+	nbranch authentication_fail,zero
+parse_lmp_encapsulated_header2:
+	fetch 1,mem_rxbuf+3
+	beq ENCAPSULATED_LEN_P256,parse_lmp_encapsulated_header3
+	beq ENCAPSULATED_LEN_P192,parse_lmp_encapsulated_header3
+	branch lmp_reject_pdu_not_allowed
+
+parse_lmp_encapsulated_header3:
+	store 1,mem_encapsulated_len	
+	call check_localsm
+	branch parse_lmp_encapsulated_header_master,true
+	jam SP_STAT_KEY_RECV,mem_sp_state
+parse_lmp_encapsulated_header_master:
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_ENCAPSULATED_HEADER,mem_lmi_opcode2
+	branch parse_rx_done
+	
+	
+parse_lmp_accepted_encapsulated_header:
+	//jam LMP_ENCAPSULATED_PAYLOAD,mem_lmi_opcode2
+	//branch   accept_lmp_msg  	
+	jam LMP_ENCAPSULATED_PAYLOAD,mem_lmo_opcode2
+      //   branch   accept_lmp_msg  	
+         rtn
+parse_lmp_accepted_simple_pairing_number:
+	fetch 1,mem_ssp_mode_flag
+	beq SSP_MODE_SSP_PIN_FLAG,parse_lmp_accepted_simple_pairing_number_ssp_pin
+	beq SSP_MODE_PASSKEY_ENTRY_FLAG,parse_lmp_accepted_simple_pairing_number_passkey
+parse_lmp_accepted_simple_pairing_number_common:
+	call check_localsm
+	rtn true
+	jam SP_STAT_CONFIRM_RECV,mem_sp_state
+	rtn
+
+parse_lmp_accepted_simple_pairing_number_ssp_pin:
+	call g_noninit_number_confirm
+	jam BT_EVT_BT_GKEY_GENERATE,mem_fifo_temp
+	call ui_ipc_send_event
+	branch parse_lmp_accepted_simple_pairing_number_common
+
+
+parse_lmp_accepted_simple_pairing_number_passkey:
+	call check_localsm
+	rtn true
+	fetch 1,mem_authentication_passkey_times
+	beq 19,authentication_passkey_end
+	increase 1,pdata
+	store 1,mem_authentication_passkey_times
+//	branch p_authentication_passkey
+
+authentication_passkey:
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	jam SP_STAT_COMMIT_CALC,mem_sp_state 
+	fetch 1,mem_authentication_passkey_times
+	copy pdata,queue
+	fetch 6,mem_pin
+	qisolate1 pdata
+	setarg 0x80
+	setflag true,0,pdata
+	store 1,mem_passkey_1bit
+	rtn
+
+authentication_passkey_end:	
+	jam SP_STAT_CONFIRM_RECV,mem_sp_state
+	rtn
+
+parse_lmp_accepted_dhkey_check:
+	call parse_lmp_accepted_dhkey_check_common
+pairing_success:
+	fetch 1,mem_flag_pairing_state
+	rtn blank
+	jam FLAG_PAIRING_STATE_NOT_PAIRING,mem_flag_pairing_state
+	jam BT_EVT_BT_PAIRING_SUCCESS,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+parse_lmp_accepted_dhkey_check_common:
+	call check_localsm
+ifdef SIMPLE_PAIRING
+	ncall g_noninit_192,true	//when be master  call g_init
+	call g_init_192,true
+endif
+	call check_localsm
+	rtn true
+	jam SP_STAT_LINK_KEY_CALC,mem_sp_state
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	rtn
+
+parse_simple_pairing_confirm:
+	arg mem_sp_confirm_remote,contw
+	arg mem_rxbuf+1,contr
+	call memcpy16
+	fetch 1,mem_ssp_mode_flag
+	rtneq  SSP_MODE_PASSKEY_ENTRY_FLAG
+ifdef SIMPLE_PAIRING
+	branch master_set_mem_master_sp_flag
+endif
+	rtn
+	
+parse_lmp_encapsulated_payload:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P192,parse_lmp_encapsulated_payload_192
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_encapsulated_payload_256
+	branch lmp_reject_pdu_not_allowed
+
+parse_lmp_encapsulated_payload_256:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_RANDOM_SEND,parse_encapsulated_payload_256_master
+	fetch    1,mem_sp_state
+	bne SP_STAT_KEY_RECV,lmp_reject_pdu_not_allowed
+parse_encapsulated_payload_256_master:
+	fetch    1,mem_sp_remote_key_recv_count
+	sub      pdata,0x30,contw
+	nbranch  lmp_reject_pdu_not_allowed,positive
+	arg      mem_le_pubkey_remote_x_256,contw
+	iadd     contw,contw
+	fetch 8,mem_rxbuf+1
+	istore   8,contw
+	fetch 8,mem_rxbuf+9
+	istore   8,contw
+	fetch    1,mem_sp_remote_key_recv_count
+	increase 16,pdata
+	store    1,mem_sp_remote_key_recv_count
+	bne ENCAPSULATED_LEN_P256,accept_lmp_msg
+	branch parse_lmp_encapsulated_payload_completed
+
+parse_lmp_encapsulated_payload_192:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_RANDOM_SEND,parse_encapsulated_payload_192_master
+	fetch    1,mem_sp_state
+	bne SP_STAT_KEY_RECV,lmp_reject_pdu_not_allowed
+parse_encapsulated_payload_192_master:
+	fetch    1,mem_sp_remote_key_recv_count
+	sub      pdata,0x20,contw
+	nbranch  lmp_reject_pdu_not_allowed,positive
+	arg      mem_sp_pubkey_remote,contw
+	iadd     contw,contw
+	fetch 8,mem_rxbuf+1
+	istore   8,contw
+	fetch 8,mem_rxbuf+9
+	istore   8,contw
+	fetch    1,mem_sp_remote_key_recv_count
+	increase 16,pdata
+	store    1,mem_sp_remote_key_recv_count
+	bne ENCAPSULATED_LEN_P192,accept_lmp_msg
+parse_lmp_encapsulated_payload_completed:
+	call check_localsm
+	branch accept_lmp_msg,true
+	jam      SP_KEY_VALID,mem_sp_remote_key_invalid
+	jam      SP_STAT_KEY_GENERATE,mem_sp_state
+	jam      SP_FLAG_COMMIT,mem_sp_flag  
+	branch   accept_lmp_msg
+	
+	
+parse_lmp_accepted_encapsulated_payload: 
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P192,parse_lmp_accepted_encapsulated_payload_192
+	beq ENCAPSULATED_MINOR_TYPE_P256,parse_lmp_accepted_encapsulated_payload_256
+	rtn
+	
+parse_lmp_accepted_encapsulated_payload_192:
+	fetch 1,mem_sp_local_key_send_count
+	beq	ENCAPSULATED_LEN_P192,parse_lmp_encapsulated_payload_all_accepted
+	jam LMP_ENCAPSULATED_PAYLOAD,mem_lmo_opcode2
+	rtn    
+	
+parse_lmp_accepted_encapsulated_payload_256:
+	fetch 1,mem_sp_local_key_send_count
+	beq	ENCAPSULATED_LEN_P256,parse_lmp_encapsulated_payload_all_accepted
+	jam LMP_ENCAPSULATED_PAYLOAD,mem_lmo_opcode2
+	rtn    
+	
+parse_lmp_encapsulated_payload_all_accepted:   
+	call check_localsm
+	branch parse_lmp_encapsulated_payload_all_accepted_master,true
+	fetch 1,mem_ssp_mode_flag
+	beq SSP_MODE_PASSKEY_ENTRY_FLAG,parse_lmp_encapsulated_payload_all_accepted_get_passkey
+	jam      SP_FLAG_COMMIT,mem_sp_flag
+	jam      SP_STAT_COMMIT_CALC,mem_sp_state 
+	branch   parse_rx_done
+
+parse_lmp_encapsulated_payload_all_accepted_get_passkey:
+	jam BT_EVT_BT_GET_PASSKEY,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+parse_lmp_encapsulated_payload_all_accepted_master:
+	//call sp_master_generate_local_key
+	branch   parse_rx_done   
+
+parse_lmp_simple_pairing_number:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_RANDOM_SEND,parse_lmp_simple_pairing_number_master
+	fetch    1,mem_sp_state
+	bne SP_STAT_RANDOM_RECV,lmp_reject_pdu_not_allowed
+parse_lmp_simple_pairing_number_master:
+	arg      mem_sp_random_remote,contw
+	fetch 8,mem_rxbuf+1
+	istore   8,contw
+	fetch 8,mem_rxbuf+9
+	istore   8,contw
+	call check_localsm
+	branch parse_lmp_simple_pairing_number_master0,true
+	jam      SP_STAT_RANDOM_SEND,mem_sp_state
+	jam      SP_FLAG_COMMIT,mem_sp_flag
+	branch accept_lmp_msg  
+parse_lmp_simple_pairing_number_master0:
+	jam SP_STAT_COMMIT_CALC,mem_master_sp_state
+ifdef SIMPLE_PAIRING
+	branch master_set_mem_master_sp_flag
+endif
+	branch lmp_reject_pdu_not_allowed	
+	
+parse_dhkey_check:
+	fetch    1,mem_master_sp_state
+	beq SP_STAT_CONFIRM_SEND,parse_dhkey_check_master
+	fetch    1,mem_sp_state
+	bne SP_STAT_CONFIRM_RECV,lmp_reject_pdu_not_allowed
+parse_dhkey_check_master:
+	arg mem_sp_check_result,contw
+	arg mem_rxbuf+1,contr
+	call memcpy16
+	call check_localsm
+	branch parse_dhkey_check_master0,true
+	fetch 1,mem_ssp_mode_flag
+	beq SSP_MODE_SSP_PIN_FLAG,number_comparison_mode
+number_comparison_successed:
+	jam 0,mem_flag_mode_ssp_pin
+	jam SP_STAT_CONFIRM_CHECK,mem_sp_state
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	jam LMP_DHKey_Check,mem_lmi_opcode2
+	branch   parse_rx_done
+	
+parse_dhkey_check_master0:
+	jam      SP_STAT_CONFIRM_CHECK,mem_master_sp_state
+	jam      SP_FLAG_COMMIT,mem_master_sp_flag
+	branch   parse_rx_done
+	
+lmp_reject_pdu_not_allowed:
+	jam PDU_NOT_ALLOWED,mem_lmo_reason2
+	branch reject_lmp_packet
+
+number_comparison_mode:
+	fetch 1,mem_flag_mode_ssp_pin
+	bbit1 FLAG_MODE_SSP_PIN_REVICEVE_COMPARISON_BIT ,comparison_result
+	set1 FLAG_MODE_SSP_PIN_RECIEVE_DHKEY_BIT,pdata
+	store 1,mem_flag_mode_ssp_pin
+	rtn
+	
+comparison_result:
+	bbit1 FLAG_MODE_SSP_PIN_COMPARISON_RESULT_BIT,number_comparison_successed
+	jam 0,mem_flag_mode_ssp_pin
+	branch lmp_reject_pdu_not_allowed
+
+	
+parse_lmp_clkoffset_res:
+	branch parse_rx_done
+		
+parse_lmp_encryption_mode_req:
+	fetch 1,mem_connection_options
+	set0 CONNECTION_ENCRYPT,pdata
+	store 1,mem_connection_options
+	call accept_lmp_msg
+	nrtn master					/* do sth only if we're master */
+	fetch 1,mem_rxbuf+1
+	fetcht 1,mem_op
+	setflag blank,op_stop_enc,temp
+	nsetflag blank,op_start_enc,temp
+	storet 1,mem_op
+	rtn 
+	
+parse_lmp_features_res:
+	fetcht 8,mem_rxbuf+1		/*fix bcp(baoshijie) err*/
+parse_lmp_features_res_not_hci:	
+	fetch 1,mem_conn_sm
+	rtnne CONN_SM_WAIT_FEATURES_RES
+
+	fetch 1,mem_connection_options
+	bbit0 CONNECTION_FEATURE_EXT,parse_lmp_send_conn
+
+	jam CONN_SM_SEND_FEATURES_EXT,mem_conn_sm
+	rtn
+parse_lmp_send_conn:
+	jam CONN_SM_SEND_CONN_REQ,mem_conn_sm
+	rtn
+parse_lmp_test_activate:
+	fetch 1,mem_debug_config
+	store 1,mem_test_mode_old_debug_config
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_TEST_ACTIVATE,mem_lmi_opcode2
+	rtn
+parse_lmp_test_control:
+	/* the 9 test control parameters are XORed with 0x55 */
+	/* doing the XOR here and storing in mem_temp_payload */
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_TEST_CONTROL,mem_lmi_opcode2
+	force 9,loopcnt
+	arg mem_rxbuf+1,contr
+	arg mem_temp_payload,contw
+parse_lmp_test_xor:
+	ifetch 1,contr
+	xor_into 0x55,pdata
+	istore 1,contw
+	loop parse_lmp_test_xor
+	fetch 1,test_mode_scenario
+	fetcht 1,mem_tester_emulate
+	set0 tester_no_whitening,temp
+	set0 tester_pattern_test,temp
+	beq EXIT_TEST_MODE,	 parse_lmp_test_control_exit
+	beq PAUSE_TEST_MODE,	 parse_lmp_test_control_pause
+	beq CLOSED_LOOP_BACK_ACL,	 parse_lmp_test_control_loopback
+	beq ACL_WITHOUT_WHITENING,	 parse_lmp_test_control_loopback_nowhite
+	beq CLOSED_LOOP_BACK_SCO,	 parse_lmp_test_control_loopback
+	beq SCO_WITHOUT_WHITENING,	 parse_lmp_test_control_loopback_nowhite
+	beq ZERO_PATTERN,	 parse_lmp_test_control_pattern
+	beq ONE_PATTERN,	 parse_lmp_test_control_pattern
+	beq ALT_PATTERN,	 parse_lmp_test_control_pattern
+	beq ALT2_PATTERN,	 parse_lmp_test_control_pattern
+	beq PSEUDORANDOM,	 parse_lmp_test_control_pattern
+	rtn
+parse_lmp_test_control_exit:
+	/* restoring old parameters */
+	fetch 1,mem_tester_emulate
+	set1 tester_exit,pdata
+	set1 tester_change,pdata
+	store 1,mem_tester_emulate
+	rtn
+parse_lmp_test_control_pattern:
+	set1 tester_pattern_test,temp
+	jam 5,mem_lch_code
+	fetch 2,test_mode_data_length
+	iforce loopcnt
+	store 2,mem_len
+	arg mem_rxbuf,contw
+	call pn9
+parse_lmp_test_control_loopback_nowhite:
+	set1 tester_no_whitening,temp
+parse_lmp_test_control_loopback:
+	set1 tester_change,temp
+	force 0,pdata
+	store 1,mem_slave_rcvcnt
+	store 2,mem_tst_pktcnt_crc
+	store 2,mem_tst_pktcnt_dmh
+	store 2,mem_tst_pktcnt_hec
+	store 2,mem_tst_pktcnt_sync
+	fetch 1,test_mode_hopping_mode
+	compare FIXED_FREQ,pdata,0xff
+	setflag true,tester_fixed_freq,temp
+	storet 1,mem_tester_emulate
+	rtn
+
+parse_lmp_test_control_pause:
+	set0 mark_testmode,mark
+	jam 0,mem_tester_emulate
+	fetch 1,mem_debug_config
+	set0 debug_tx_pattern,pdata
+	store 1,mem_debug_config
+	rtn
+
+
+	
+	
+
+lmp_copy_rand:	
+	arg mem_rxbuf+1,contr
+	arg mem_random_number,contw
+	branch memcpy16
+
+lmp_generate_key:
+	jam LMP_COMB_KEY,mem_lmo_opcode2
+	rtn
+
+lmp_start_encryption:
+	nrtn master
+	jam LMP_START_ENCRYPTION_REQ,mem_lmo_opcode2
+	rtn
+	
+lmp_accept_inrand:
+	arg mem_lap,rega
+	call generate_kinit
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_IN_RAND,mem_lmi_opcode2
+	rtn
+
+lmp_disconnect:
+	jam 10,mem_conn_timer
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam LOCAL_HOST,mem_disconn_reason_send	
+	rtn
+
+/*********************************/
+/*********lmp send*************/
+/********************************/
+	/* enable user if a lmp packet is to send */
+send_lmp:
+	bpatchx patch23_0,mem_patch23
+	disable user
+	call lmo_fifo_process
+	fetch 1,mem_lmp_to_send
+	rtn blank
+/* lmp message to be processed. this will either be because host??? */
+/* wants to send a lmp message or because one resulted from the LMP */
+/* processing section */
+/********* outgoing lmp lookup table *************/
+	bbit1 7,send_lmp_escape
+send_lmp0:
+	beq LMP_NAME_REQ,	 send_lmp_name_req
+	beq LMP_NAME_RES,	 send_lmp_name_res
+	beq LMP_ACCEPTED,	 send_lmp_accepted
+	beq LMP_NOT_ACCEPTED,	 send_lmp_not_accepted
+	beq LMP_FEATURES_REQ,	 send_lmp_features_req
+	beq LMP_FEATURES_RES,	 send_lmp_features_res
+	beq LMP_TIMING_ACCURACY_RES,	 send_lmp_timing_accuracy_res
+	beq LMP_VERSION_REQ,	 send_lmp_version_req
+	beq LMP_VERSION_RES,	 send_lmp_version_res
+	beq LMP_SETUP_COMPLETE,	 send_lmp_setup_complete
+	beq LMP_SUPERVISION_TIMEOUT,	 send_lmp_superto
+	beq LMP_HOST_CONNECTION_REQ,send_lmp_no_payload
+	beq LMP_IN_RAND,send_lmp_inrand
+	beq LMP_COMB_KEY,send_lmp_comb_key
+	beq LMP_AU_RAND,send_lmp_aurand
+	beq LMP_SRES,send_lmp_sres
+	beq LMP_ENCRYPTION_MODE_REQ,send_lmp_encryption_mode_req
+	beq LMP_ENCRYPTION_KEY_SIZE_REQ,send_lmp_encryption_key_size_req
+	beq LMP_START_ENCRYPTION_REQ,send_lmp_start_encryption
+	beq LMP_DETACH,send_lmp_detach
+	beq LMP_QUALITY_OF_SERVICE_REQ, send_lmp_quality_of_service_req
+	beq LMP_UNIT_KEY,send_lmp_unit_key
+	//Optional (O)
+	beq LMP_INCR_POWER_REQ,send_lmp_inc_power	
+	beq LMP_CLKOFFSET_RES, send_lmp_clkoffset_res	
+	beq LMP_MAX_POWER,send_lmp_nopayload_reply
+	beq LMP_MAX_SLOT, send_lmp_max_slot
+	beq LMP_MAX_SLOT_REQ, send_lmp_max_slot_req
+	beq LMP_MIN_POWER,send_lmp_nopayload_reply
+	beq LMP_SLOT_OFFSET, send_lmp_slot_offset
+	beq LMP_SWITCH_REQ, send_lmp_switch_req
+	beq LMP_SNIFF_REQ, send_lmp_sniff_req
+	beq LMP_STOP_ENCRYPTION_REQ, send_lmp_stop_encryption_req	
+	beq LMP_TIMING_ACCURACY_REQ, send_lmp_timing_accuracy_req
+	beq LMP_UNSNIFF_REQ, send_lmp_unsniff_req
+	beq LMP_ENCAPSULATED_HEADER,send_lmp_encapsulated_header
+	beq LMP_ENCAPSULATED_PAYLOAD,send_lmp_encapsulated_payload
+	beq LMP_SIMPLE_PAIRING_CONFIRM,send_lmp_simple_pairing_comfirm
+	beq LMP_SIMPLE_PAIRING_NUMBER,send_lmp_simple_pairing_number
+	beq LMP_DHKEY_CHECK,send_lmp_dhkey_check
+	beq LMP_AUTO_RATE,send_lmp_auto_rate
+	beq LMP_ENC_KEY_SIZE_MASK_RES,send_lmp_enc_key_size_mask_res
+	//master only must(M)
+	beq LMP_CLKOFFSET_REQ, send_lmp_clkoffset_req
+	beq LMP_QUALITY_OF_SERVICE, send_lmp_quality_of_service
+	beq LMP_TEST_ACTIVATE, send_lmp_test_activate
+	beq LMP_TEST_CONTROL, send_lmp_test_control
+send_lmp_error:
+	branch assert
+	rtn
+send_lmp_escape:
+	beq LMP_EXT_ACCEPTED,send_lmpext_accepted
+	beq LMP_EXT_FEATURES_REQ,send_lmpext_features_req
+	beq LMP_EXT_FEATURES_RES,send_lmpext_features_res
+	beq LMP_NOT_ACCEPTED_EXT,send_lmpext_not_accepted
+	beq LMP_PACKET_TYPE_TABLE_REQ,send_lmpext_packet_type_table_req
+	beq LMP_PAUSE_ENCRYPTION_REQ,send_lmpext_pause_encryption_req
+	beq LMP_IO_CAP_REQ,send_lmp_io_cap_req
+	beq LMP_IO_CAP_RES,send_lmpext_io_cap_res
+	beq LMP_SNIFF_SUBRATING_REQ,send_lmpext_sniff_subrating_req
+	beq LMP_SNIFF_SUBRATING_RES,send_lmpext_sniff_subrating_res
+	beq LMP_PING_RES,send_lmpext_ping_res
+	branch assert
+
+
+/******** LMP follow messages **********/
+/****** TID follow received packet  *******/
+
+send_lmp_accepted:
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_lmi_opcode
+	istore 1,contw
+	call send_lmp_follow
+	bpatchx patch23_1,mem_patch23
+	fetch 1,mem_lmi_opcode
+	beq LMP_IN_RAND,send_lmp_accepted_inrand
+	beq LMP_ENCRYPTION_MODE_REQ,send_lmp_accepted_enc_mode
+	beq LMP_ENCRYPTION_KEY_SIZE_REQ,send_lmp_accepted_enc_key
+	beq LMP_SNIFF_REQ,send_lmp_accept_sniff_req
+	beq LMP_HOST_CONNECTION_REQ,send_lmp_accepted_connection
+	beq LMP_DHKEY_CHECK,send_lmp_accept_dhkey_check
+	beq LMP_START_ENCRYPTION_REQ,send_create_conn_start_l2cap_timer_sm  
+	rtn	
+		
+send_create_conn_start_l2cap_timer_sm:
+	fetch 1,mem_conn_sm
+	rtn blank
+	jam CONN_SM_WAIT_DONE,mem_conn_sm
+	setarg TIMER_ENPT_WAITE
+	arg enpt_delay_timer,queue
+	branch timer_init
+	
+send_lmp_accept_sniff_req:
+	branch sniff_init
+send_lmp_not_accepted:
+	force 3,pdata
+	call msg_send_lmp
+	fetch 1,mem_lmi_opcode
+	beq LMP_AU_RAND,send_not_accept_aurand
+	istore 1,contw
+	fetch 1,mem_lmo_reason
+	istore 1,contw
+	branch send_lmp_follow
+
+send_not_accept_aurand:
+	istore 1,contw
+	fetch 1,mem_lmo_reason
+	istore 1,contw
+	arg mem_sres_tid,temp
+	branch special_tid_store
+
+send_lmpext_accepted:	
+	force 4,queue
+	call send_lmpext
+	setarg LMP_ESCAPE
+	istore 1,contw
+	fetch 1,mem_lmi_opcode
+	set0 7,pdata
+	istore 1,contw
+	fetch 1,mem_lmi_opcode
+	branch send_lmp_follow
+
+send_lmpext_not_accepted:
+	force 5,queue
+	call send_lmpext
+	setarg LMP_ESCAPE
+	istore 1,contw
+	fetch 1,mem_lmi_opcode
+	set0 7,pdata
+	istore 1,contw
+	fetch 1,mem_lmo_reason
+	istore 1,contw
+	branch send_lmp_follow
+	
+
+send_lmp_accepted_inrand:
+	call clear_linkkey
+	call tid_check	
+	rtn true
+	branch lmp_generate_key
+
+send_lmp_accepted_enc_mode:
+	fetch 1,mem_op
+	bbit1 op_start_enc,send_lmp_accepted_enc_start
+	rtnbit0 op_stop_enc
+	jam LMP_STOP_ENCRYPTION_REQ,mem_lmo_opcode2
+	set0 op_stop_enc,pdata
+	call tid_reply
+	branch send_lmp_accepted_enc_exit
+send_lmp_accepted_enc_start:
+	jam LMP_ENCRYPTION_KEY_SIZE_REQ,mem_lmo_opcode2
+	set0 op_start_enc,pdata
+send_lmp_accepted_enc_exit:
+	store 1,mem_op
+	rtn
+
+send_lmp_accepted_enc_key:
+	call check_localsm
+	branch lmp_start_encryption,true
+	rtn
+
+send_lmp_accepted_connection:
+	jam LMP_PACKET_TYPE_TABLE_REQ,mem_lmo_opcode2
+	//jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	fetch 1,mem_lmp_conn_state
+	set1 RECEIVED_CONN_REQ,pdata
+	store 1,mem_lmp_conn_state
+	jam BT_EVT_BB_CONNECTED,mem_fifo_temp
+	branch ui_ipc_send_event
+
+
+send_lmp_accept_dhkey_check:
+	rtn
+/******** LMP reply messages **********/
+/****** TID always set to remote  *******/
+
+
+send_lmpext_ping_res:
+	force 2,queue
+	call send_lmpext
+	branch send_lmp_reply	
+
+send_lmpext_features_res:
+	copy pdata,rega
+	call check_ssp_enable
+	fetch 1,mem_ext_features_page
+	beq 1,send_lmpext_features_res1
+	beq 2,send_lmpext_features_res2
+	rtn
+	
+send_lmpext_features_res1:	
+	copy rega,pdata
+	force 12,queue
+	call send_lmpext
+	setarg 0x01
+	istore 1,contw
+	fetch 2,mem_lmpext_ssp_enable
+	istore 9,contw
+	branch send_lmp_reply
+
+send_lmpext_features_res2:
+	copy rega,pdata
+	force 12,queue
+	call send_lmpext
+	setarg 0x02
+	istore 1,contw
+	setarg 0x010002
+	istore 9,contw
+	branch send_lmp_reply
+
+check_ssp_enable:
+	fetch 1,mem_ssp_enable 
+	branch ssp_disable, blank
+	call  ssp_enable
+	branch check_br_sc_enable
+
+ssp_disable:
+	fetch 1,mem_features+6
+	set0 param_featrue_ssp,pdata
+	store 1,mem_features+6
+	setarg 0x1
+	store 2,mem_lmpext_ssp_enable
+	branch sp_clear_flags
+	
+//default:featrue is enable,extfeature is disable
+ssp_enable:
+	bpatchx patch23_2,mem_patch23
+	fetch 1,mem_features+6
+	set1 param_featrue_ssp,pdata
+	store 1,mem_features+6
+	setarg param_lmpext_ssp_enable
+	store 2,mem_lmpext_ssp_enable
+	rtn
+	
+check_br_sc_enable:
+	fetch 1,mem_secure_connections_enable
+	bbit1  SECURE_CONNECTIONS_BR_BIT,br_sc_enable
+	rtn
+	
+br_sc_enable:
+	setarg 0x0902 //0x0902
+	store 2,mem_lmpext_ssp_enable
+	rtn
+
+send_lmpext_io_cap_res:     
+	force 5,queue
+         call send_lmpext
+       	fetch 3,mem_lmp_io_cap_payload_iocap
+         istore 3,contw
+	call send_lmp_reply
+	jam FLAG_PAIRING_STATE_PAIRING,mem_flag_pairing_state
+	fetch 1,mem_lmp_io_cap_payload_iocap
+	beq IO_CAPABILITY_DISPLAY_YESNO,responder_iocap_display_yesno
+	beq IO_CAPABILITY_KEYBOARD_ONLY,responder_iocap_keyboard_only
+	beq IO_CAPABILITY_NO_INPUT_NO_OUTPUT,responder_iocap_no_input_no_output
+	rtn
+
+responder_iocap_keyboard_only:
+	fetch 1,mem_sp_iocap_remote
+	beq IO_CAPABILITY_DISPLAY_ONLY,responder_iocap_keyboard_only_initiator_iocap_display_only
+	beq IO_CAPABILITY_DISPLAY_YESNO,responder_iocap_keyboard_only_initiator_iocap_display_yesno
+	beq IO_CAPABILITY_KEYBOARD_ONLY,responder_iocap_keyboard_only_initiator_iocap_keyboard_only
+	beq IO_CAPABILITY_NO_INPUT_NO_OUTPUT,responder_iocap_keyboard_only_initiator_iocap_no_input_no_output
+	rtn
+
+
+responder_iocap_display_yesno:
+	fetch 1,mem_sp_iocap_remote
+	beq IO_CAPABILITY_DISPLAY_ONLY,responder_iocap_display_yesno_initiator_iocap_display_only
+	beq IO_CAPABILITY_DISPLAY_YESNO,responder_iocap_display_yesno_initiator_iocap_display_yesno
+	beq IO_CAPABILITY_KEYBOARD_ONLY,responder_iocap_display_yesno_initiator_iocap_keyboard_only
+	beq IO_CAPABILITY_NO_INPUT_NO_OUTPUT,responder_iocap_display_yesno_initiator_iocap_no_input_no_output
+	rtn
+
+	
+responder_iocap_no_input_no_output:
+	fetch 1,mem_sp_iocap_remote
+	beq IO_CAPABILITY_DISPLAY_ONLY,responder_iocap_no_input_no_output_initiator_iocap_display_only
+	beq IO_CAPABILITY_DISPLAY_YESNO,responder_iocap_no_input_no_output_initiator_iocap_display_yesno
+	beq IO_CAPABILITY_KEYBOARD_ONLY,responder_iocap_no_input_no_output_initiator_iocap_keyboard_only
+	beq IO_CAPABILITY_NO_INPUT_NO_OUTPUT,responder_iocap_no_input_no_output_initiator_iocap_no_input_no_output
+	rtn
+
+responder_iocap_keyboard_only_initiator_iocap_no_input_no_output:
+responder_iocap_display_yesno_initiator_iocap_no_input_no_output:
+responder_iocap_display_yesno_initiator_iocap_display_only:
+responder_iocap_no_input_no_output_initiator_iocap_display_only:
+responder_iocap_no_input_no_output_initiator_iocap_display_yesno:
+responder_iocap_no_input_no_output_initiator_iocap_keyboard_only:
+responder_iocap_no_input_no_output_initiator_iocap_no_input_no_output:
+set_ssp_mode_justwork: 
+	jam SSP_MODE_JUST_WORK_FLAG,mem_ssp_mode_flag
+	fetch 1,mem_classic_bt_flag
+	bbit1 FLAG_SSP_REJECT_JUSTWORK,app_bt_disconnect
+	rtn
+
+responder_iocap_display_yesno_initiator_iocap_display_yesno:
+set_ssp_mode_numeric_comparison: 
+	jam SSP_MODE_SSP_PIN_FLAG,mem_ssp_mode_flag
+	rtn
+
+responder_iocap_keyboard_only_initiator_iocap_display_yesno:
+responder_iocap_keyboard_only_initiator_iocap_keyboard_only:	
+responder_iocap_keyboard_only_initiator_iocap_display_only:	
+responder_iocap_display_yesno_initiator_iocap_keyboard_only:
+set_ssp_mode_passkey: 
+	jam SSP_MODE_PASSKEY_ENTRY_FLAG,mem_ssp_mode_flag
+	rtn
+
+
+classic_bt_set_reject_justwork_flag:
+	arg FLAG_SSP_REJECT_JUSTWORK,queue
+	branch classic_bluetooth_set_flag
+
+classic_bt_clr_reject_justwork_flag:
+	arg FLAG_SSP_REJECT_JUSTWORK,queue
+	branch classic_bluetooth_clr_flag
+
+classic_bluetooth_set_flag:
+	fetch 1,mem_classic_bt_flag
+	qset1 pdata
+	store 1,mem_classic_bt_flag
+	rtn
+
+classic_bluetooth_clr_flag:
+	fetch 1,mem_classic_bt_flag
+	qset0 pdata
+	store 1,mem_classic_bt_flag
+	rtn
+
+         
+send_lmp_io_cap_req:
+	force 5,queue
+	call send_lmpext
+	fetch 3,mem_lmp_io_cap_payload_iocap
+	istore 3,contw
+	branch send_lmp_request
+	
+
+send_lmpext_sniff_subrating_req: 
+
+	rtn
+send_lmpext_sniff_subrating_res: 
+         force 9,queue
+         call send_lmpext
+         fetch 1,mem_subsniff_rate
+         istore 1,contw
+         fetch 2,mem_subsniff_tcmax
+         istore 2,contw
+         fetch 4,mem_subsniff_instant
+         istore 4,contw
+	branch send_lmp_reply
+
+send_lmp_name_res:
+	force 17,pdata
+	call msg_send_lmp
+	fetch 1,mem_lmi_opcode  /* loading name offset */
+	copy pdata,temp
+	beq 0x00,send_lmp_name_res_offset_ok
+	beq 0x0e,send_lmp_name_res_offset_ok
+	beq 0x1c,send_lmp_name_res_offset_ok
+	rtn
+send_lmp_name_res_offset_ok:
+	istore 1,contw	/* writing name offset */
+	fetch 1,mem_local_name_length
+	istore 1,contw	/* writing name length */
+	arg 14,loopcnt
+	setarg mem_local_name
+	iadd temp,contr	/* setting read location */
+	call memcpy
+	branch send_lmp_reply
+
+
+send_lmp_timing_accuracy_res:
+	force 3,pdata
+	call msg_send_lmp
+	setarg 0x0114
+	istore 2,contw
+	branch send_lmp_reply
+
+send_lmp_clkoffset_res:
+	// dopod s505 must wait for this res
+	force 3,pdata
+	call msg_send_lmp
+	fetch 4,mem_clke_bt
+	isub clkn_bt,pdata
+	branch send_lmp_clkoffset_res_master,master
+	sub pdata,0,pdata		/* our role is slave */
+send_lmp_clkoffset_res_master:	
+	// bit 16-2 of clkslave-clkmaster
+	rshift2 pdata,pdata
+	set0 15,pdata
+	istore 2,contw
+	branch send_lmp_reply
+
+send_lmp_version_res:
+	force 6,pdata
+	call msg_send_lmp
+	fetch 5,mem_lmp_version
+	istore 5,contw
+	branch send_lmp_reply
+
+send_lmp_features_res:
+	force 9,pdata
+	call msg_send_lmp
+	fetch 8,mem_features
+	istore 8,contw
+	branch send_lmp_reply  
+
+
+/******** LMP request messages **********/
+/****** TID always set to local initiated *******/
+	
+
+send_lmpext_features_req:
+	call check_ssp_enable
+	fetch 1,mem_lmp_to_send
+	force 12,queue
+	call send_lmpext
+	setarg 0x01
+	istore 1,contw
+	fetch 2,mem_lmpext_ssp_enable
+	istore 2,contw
+	setarg 0
+	istore 3,contw
+	setarg 0x00
+	istore 4,contw
+	branch send_lmp_request
+
+send_lmpext_packet_type_table_req:
+	force 3,queue
+	call send_lmpext
+	fetch 1,mem_ptt
+	istore 1,contw
+	disable user
+	call send_lmp_request
+	nrtn user
+	nrtn master
+	fetch 1,mem_afh_cfg
+	rtnbit0 AFH_CFG_ON
+	call afh_init
+	branch afh_open_all_channels
+	
+
+afh_init:
+	jam 0x3,mem_afh_cfg
+	setarg 0
+	store 4,mem_afh_timer
+	arg mem_afh_map_lo,contw
+	call afh_reset_map
+	arg mem_afh_map_new,contw
+	call afh_reset_map
+	arg mem_afh_classify_channel_map,contw
+	call afh_reset_map
+	branch afh_clear_error_counter
+afh_open_all_channels:
+	arg mem_afh_map_new,contw
+	call afh_reset_map
+	call afh_clear_error_counter
+	branch afh_set_send_flag
+
+
+afh_reset_map:
+	setarg 0xffffff
+	istore 3,contw
+	istore 3,contw
+	istore 3,contw
+	setarg 0x7f
+	istore 1,contw
+	rtn
+afh_clear_error_counter:
+	setarg 0
+	store 2,mem_afh_error_total
+	rtn
+afh_set_send_flag:
+	fetch 1,mem_afh_cfg
+	set1 send_lmp_set_afh,pdata
+	store 1,mem_afh_cfg
+	rtn
+
+
+send_lmpext_pause_encryption_req:
+	force 2,queue
+	call send_lmpext
+	nbranch send_lmp_reply,master
+	// assume slave will not send pause req firstly???
+	branch send_lmp_request
+
+
+	
+send_lmp_detach:
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_disconn_reason_send
+	istore 1,contw
+	call send_lmp_request
+prepare_disconnect:
+	fetch 1,mem_op
+	set1 op_disconn,pdata
+	store 1,mem_op
+	jam 50,mem_conn_timer
+	rtn
+	
+
+send_lmp_no_payload:
+	force 1,pdata
+	call msg_send_lmp
+	branch send_lmp_request
+send_lmp_nopayload_reply:
+	force 1,pdata
+	call msg_send_lmp
+	branch send_lmp_reply
+	
+	
+send_lmp_encryption_mode_req:
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_state_map
+	isolate0 smap_encryption,pdata
+	setflag true,0,pdata
+	and_into 1,pdata
+	istore 1,contw
+	branch send_lmp_request
+
+
+send_lmp_superto:
+	force 3,pdata
+	call msg_send_lmp
+	fetch 2,mem_supervision_to
+	istore 2,contw
+	branch send_lmp_request
+
+send_lmp_name_req:
+	jam 250,mem_conn_timer
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_name_offset
+	istore 1,contw
+	branch send_lmp_request
+
+send_lmp_test_control:
+	force 10,pdata
+	call msg_send_lmp
+	arg mem_temp_payload,contr
+	force 9,loopcnt
+send_lmp_test_control_loop:	
+	ifetch 1,contr
+	xor_into 0x55,pdata
+	istore 1,contw
+	loop send_lmp_test_control_loop
+	branch send_lmp_request  
+
+send_lmp_quality_of_service_req:
+	branch send_lmp_request
+send_lmp_unit_key:
+	branch send_lmp_request
+
+send_lmp_slot_offset:
+	rtn master
+	call calc_slot_offset
+	force 9,pdata
+	call msg_send_lmp
+	fetch 2,mem_slot_offset
+	istore 2,contw
+	fetch 3,mem_lap
+	istore 3,contw
+	fetch 1,mem_uap
+	istore 1,contw
+	fetch 2,mem_nap
+	istore 2,contw
+	bmark0 mark_switch_initiated,send_lmp_slot_offset_reply
+	set0 mark_switch_initiated,mark
+	call send_lmp_request
+	jam LMP_SWITCH_REQ,mem_lmo_opcode2
+	rtn
+send_lmp_slot_offset_reply:
+	call send_lmp_reply
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam LMP_SWITCH_REQ,mem_lmi_opcode2
+	rtn
+	
+send_lmp_switch_req:
+	arg 0x200,temp
+	branch switch_on_native,master
+	deposit clke_bt
+	branch switch_slack
+switch_on_native:
+	deposit clkn_bt
+switch_slack:
+	deposit bt_clk
+	iadd temp,pdata
+	and_into 0x1fc,pdata
+	store 4,mem_sniff_anchor
+	force 5,pdata
+	call msg_send_lmp
+	fetch 4,mem_sniff_anchor		/* reused as switch instant */
+	rshift pdata,pdata
+	istore 4,contw
+	branch send_lmp_request
+
+send_lmp_sniff_req:
+	force 10,pdata
+	call msg_send_lmp
+	arg mem_sniff_payload,contr
+	ifetch 9,contr
+	istore 9,contw
+	branch send_lmp_request
+
+	
+send_lmp_timing_accuracy_req:
+/* default to TID_NORM_SEND */
+	force 3,pdata
+	call msg_send_lmp
+	setarg 0x0114
+	istore 2,contw
+	branch send_lmp_request
+	
+send_lmp_unsniff_req:
+//--------------------need to completa
+	force 1,pdata
+	call msg_send_lmp
+	//fetch 1,mem_unsniff_pending
+	//nbranch send_msg_done,blank
+	//jam 1,mem_unsniff_pending
+	//fetch 2,mem_sniff_attempt
+	//fetch 2,mem_nsniff_attempt
+	//lshift3 pdata,pdata
+	//lshift pdata,pdata
+	//store 1,mem_unsniff_cnt
+	branch send_lmp_request
+
+	
+send_lmp_max_slot:
+	force 2,pdata
+	call msg_send_lmp
+	fetch 1,mem_max_slot
+	istore 1,contw
+	branch send_lmp_request
+	
+	
+send_lmp_max_slot_req:
+	force 2,pdata
+	call msg_send_lmp
+	setarg 0x05		/*5 slot*/
+	istore 1,contw
+	branch send_lmp_request
+
+
+send_lmp_inc_power:
+	force 2,pdata
+	call msg_send_lmp
+	setarg 0x00		/*5 slot*/
+	istore 1,contw
+	branch send_lmp_request
+
+
+send_lmp_setup_complete_by_module:
+	jam LMP_MAX_SLOT_REQ,mem_lmo_opcode2
+	rtn
+send_lmp_setup_complete:
+	fetch 1,mem_device_option
+	sub pdata,dvc_op_module,null
+	call send_lmp_setup_complete_by_module,zero
+	fetch 1,mem_state
+	set1 state_conn_comp,pdata
+	store 1,mem_state
+	copy clkn_bt,pdata
+	store 4,mem_aurand_send_delay_time
+	fetch 1,mem_lmp_conn_state
+	bbit1 SENT_SETUP_COMPLETE,send_lmp_setup_complete_has_sent
+	set1 SENT_SETUP_COMPLETE,pdata
+	store 1,mem_lmp_conn_state
+	jam BT_EVT_SETUP_COMPLETE,mem_fifo_temp
+	call ui_ipc_send_event
+	force 1,pdata
+	call msg_send_lmp
+	branch send_lmp_request
+send_lmp_setup_complete_has_sent:
+	jam 0,mem_lmp_to_send
+	rtn
+	
+send_lmp_version_req:
+	force 6,pdata
+	call msg_send_lmp
+	fetch 5,mem_lmp_version
+	istore 5,contw
+	branch send_lmp_request
+
+send_lmp_features_req:
+	force 9,pdata
+	call msg_send_lmp
+	fetch 8,mem_features
+	istore 8,contw
+	branch send_lmp_request  
+
+sp_master_send_io_cap_get:
+	jam SP_FLAG_COMMIT,mem_master_sp_flag
+	fetch 1,mem_sp_local_key_invalid
+	rtnne SP_KEY_VALID
+	jam SP_MASTER_STAT_START_DONE,mem_master_sp_state
+	rtn
+
+sp_master_send_io_cap_send:
+	call tid_initiate
+	jam LMP_IO_CAP_REQ,mem_lmo_opcode2
+	jam SP_STAT_KEY_SEND,mem_master_sp_state
+	rtn
+	
+	
+sp_master_send_LMP_ENCAPSULATED_HEADER:
+	call tid_initiate
+	jam      LMP_ENCAPSULATED_HEADER,mem_lmo_opcode2
+	jam SP_STAT_RANDOM_SEND,mem_master_sp_state
+	rtn
+	
+sp_master_commitment_compare:
+	arg mem_sp_calc_result_high,rega
+	arg mem_sp_confirm_remote,regb
+	arg 16,loopcnt
+	call string_compare
+	branch sp_master_commitment_compare_success,zero
+	jam SP_STAT_NULL,mem_master_sp_state
+ifdef SIMPLE_PAIRING
+	call master_clear_mem_master_sp_flag
+endif
+	jam LMP_SIMPLE_PAIRING_NUMBER,mem_lmi_opcode2 
+	branch lmp_reject_pdu_not_allowed
+	
+sp_master_commitment_compare_success:
+	jam SP_STAT_CONFIRM_CALC,mem_master_sp_state
+ifdef SIMPLE_PAIRING
+	call master_set_mem_master_sp_flag
+endif
+	jam LMP_SIMPLE_PAIRING_NUMBER,mem_lmi_opcode2
+	branch accept_lmp_msg  
+	
+
+	
+sp_master_send_lmp_simple_pairing_number:
+	jam LMP_SIMPLE_PAIRING_NUMBER,mem_lmo_opcode2
+	rtn
+	
+
+
+sp_send_lmp_encapsulated_header:
+	// calculate the private & public key here
+	//jam      LMP_ENCAPSULATED_HEADER,mem_lmp_to_send
+	jam      LMP_ENCAPSULATED_HEADER,mem_lmo_opcode2
+	//jam      TID_PAIRING,mem_lmp_tid
+	rtn
+	//fetch 1,mem_tid_table
+	//set1 TID_PAIRING,pdata
+	//store 1,mem_tid_table
+     
+    
+send_lmp_encapsulated_header: 
+	jam 0,mem_sp_local_key_send_count
+	force 4,pdata
+	call msg_send_lmp
+	fetch 3,mem_encapsulated_major_type
+	istore 3,contw 
+	call check_localsm
+	branch send_lmp_request,true
+	branch send_lmp_reply
+
+
+send_lmp_encapsulated_payload:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,send_lmp_encapsulated_payload_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,send_lmp_encapsulated_payload_192
+	rtn
+	
+send_lmp_encapsulated_payload_256:
+	 force 17,pdata
+	call msg_send_lmp
+	fetch 1,mem_sp_local_key_send_count
+	arg mem_sc_pubkey_local_x_256,contr
+	branch send_lmp_encapsulated_payload_common
+
+send_lmp_encapsulated_payload_192:
+	 force 17,pdata
+	call msg_send_lmp
+	fetch 1,mem_sp_local_key_send_count
+	arg mem_sp_pubkey_local,contr
+send_lmp_encapsulated_payload_common:
+	iadd contr,contr    
+	ifetch   8,contr
+	istore   8,contw
+	ifetch   8,contr
+	istore   8,contw
+	fetch    1,mem_sp_local_key_send_count
+	increase 16,pdata
+	store    1,mem_sp_local_key_send_count
+	call check_localsm
+	branch send_lmp_request,true
+	branch send_lmp_reply
+	//branch send_lmp_request
+	
+sp_send_lmp_simple_pairing_comfirm:
+        jam      SP_STAT_RANDOM_RECV,mem_sp_state
+        jam      LMP_SIMPLE_PAIRING_CONFIRM,mem_lmo_opcode2
+        rtn
+send_lmp_simple_pairing_comfirm:
+        //jam      SP_STAT_RANDOM_RECV,mem_sp_state
+        //jam      TID_PAIRING,mem_lmp_tid
+        force    17,pdata
+        call msg_send_lmp   
+        arg      mem_sp_calc_result_high,contr
+        ifetch   8,contr
+        istore   8,contw
+        ifetch   8,contr
+        istore   8,contw 
+        branch send_lmp_reply
+
+sp_send_lmp_simple_pairing_number:
+	jam      LMP_SIMPLE_PAIRING_NUMBER,mem_lmo_opcode2
+	rtn
+
+send_lmp_simple_pairing_number:
+	//jam      TID_PAIRING,mem_lmp_tid
+	call check_localsm
+ifdef SIMPLE_PAIRING
+	call sp_local_random_key_generator,true
+endif
+	force    17,pdata
+	call msg_send_lmp
+	arg      mem_sp_random_local,contr
+	ifetch   8,contr
+	istore   8,contw
+	ifetch   8,contr
+	istore   8,contw
+	call check_localsm
+	nbranch send_lmp_reply,true
+	branch send_lmp_request,true
+
+master_sp_sm_end:
+	//jam DEFAULT_STATEMACHINE,mem_sp_localsm
+	jam SP_STAT_DONE,mem_master_sp_state
+sp_aurand_send:
+	call tid_initiate
+	jam LMP_AU_RAND,mem_lmo_opcode2
+	call check_localsm_master
+ifdef SIMPLE_PAIRING
+	branch sp_master_key_prarm_push,true
+	branch sp_link_key_prarm_push
+endif
+master_sp_send_lmp_dhkey_check:
+	call tid_reply
+sp_send_lmp_dhkey_check: 
+	jam      LMP_DHKEY_CHECK,mem_lmo_opcode2
+	rtn
+send_lmp_dhkey_check: 
+	//jam      TID_PAIRING,mem_lmp_tid
+	force    17,pdata
+	call     msg_send_lmp
+	arg      mem_sp_calc_result_high,contr
+	ifetch   8,contr
+	istore   8,contw
+	ifetch   8,contr
+	istore   8,contw 
+	call check_localsm
+	nbranch send_lmp_reply,true
+	branch send_lmp_request,true
+
+send_lmp_enc_key_size_mask_res:
+	force 3,pdata
+	call msg_send_lmp   
+	setarg 0xfffe //enc key size mask
+	istore 2,contw
+	branch send_lmp_reply
+
+send_lmp_auto_rate:
+	branch send_lmp_request
+send_lmp_clkoffset_req:
+	branch send_lmp_request
+send_lmp_quality_of_service:
+	branch send_lmp_request
+send_lmp_test_activate:
+	branch send_lmp_request
+
+/******** LMP request/reply messages **********/
+/****** TID transaction specific *******/
+
+send_lmp_comb_key:
+	call generate_random_number
+	arg mem_lap,rega
+	call generate_linkkey
+	force 17,pdata
+	call msg_send_lmp
+	arg mem_kinit,rega
+	arg mem_random_number,regb
+	call xor16
+	nbranch send_lmp_follow,master
+	branch send_lmp_tid
+
+send_lmp_inrand:
+	call generate_random_number
+	arg mem_plap,rega
+	call generate_kinit
+send_lmp_rand:	/* used by in_rand,au_rand,start_encrypt */
+	force 17,pdata
+	call msg_send_lmp
+	arg mem_random_number,contr
+	call memcpy16
+	fetch 1,mem_conn_sm 
+	beq CONN_SM_AUTH_WAIT,send_lmp_request
+	beq CONN_SM_PAIRING_WAIT,send_lmp_request
+	branch send_lmp_tid
+
+send_lmp_aurand:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,send_lmp_aurand_256
+
+	fetch 1,mem_pairing_auth
+	branch send_lmp_aurand_notpairing,blank
+send_lmp_aurand2:
+	call check_localsm
+	call tid_initiate,true
+	ncall tid_reply,true
+	branch send_lmp_aurand_common
+send_lmp_aurand_notpairing:
+	call tid_initiate
+send_lmp_aurand_common:
+	call generate_random_number
+	branch send_lmp_rand
+
+send_lmp_aurand_256:
+	jam LMP_SRES,mem_lmo_opcode2
+	branch send_lmp_aurand2
+
+send_lmp_sres:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,send_lmp_sres_256
+
+	arg mem_lap,rega
+	call function_e1
+	force 5,pdata
+	call msg_send_lmp
+	fetch 4,mem_input_store
+	istore 4,contw
+	arg mem_sres_tid,temp
+	call special_tid_store
+	call copy_aco
+	call check_localsm
+	branch send_lmp_sres_master,true
+	jam DONE_ENCRYP,mem_wait_encryption
+	fetch 1,mem_pairing_auth
+	rtn blank
+	jam LMP_AU_RAND,mem_lmo_opcode2
+send_lmp_sres_master:
+	fetch 1,mem_link_key_exists
+	rtn blank
+send_lmp_sres_startenc:
+	call check_localsm
+	nbranch send_lmp_sres_startenc_slave,true
+	rtn
+	
+send_lmp_sres_startenc_slave:
+	rtnmark0 mark_slave_in_rand_accepted
+	set0 mark_slave_in_rand_accepted,mark
+	jam LMP_ENCRYPTION_MODE_REQ, mem_lmo_opcode2
+	rtn
+	
+send_lmp_sres_256:
+	call function_h4
+	call function_h5
+	force 5,pdata
+	call msg_send_lmp
+	fetch 4,memb
+	istore 4,contw
+	arg mem_sres_tid,temp
+	call special_tid_store
+	call copy_aco_256
+	call check_localsm
+	branch send_lmp_sres_master,true
+	jam DONE_ENCRYP,mem_wait_encryption
+	fetch 1,mem_pairing_auth
+	rtn blank
+	branch send_lmp_sres_master
+	
+copy_aco_256:
+	fetch 8,mem_sp_calc_result_high
+	store 8,mem_ccm_iv
+	rtn
+	
+send_lmp_start_encryption:
+	call generate_random_number
+	call function_e3
+	force 17,pdata
+	call msg_send_lmp
+	arg mem_random_number,contr
+	call memcpy16
+	branch send_lmp_tid
+
+send_lmp_stop_encryption_req:
+	force 1,pdata
+	call msg_send_lmp
+	branch send_lmp_tid
+
+send_lmp_encryption_key_size_req:
+	force 2,pdata
+	call msg_send_lmp
+	force 16,pdata
+	istore 1,contw
+	store 1,mem_key_size
+	branch send_lmp_tid
+
+msg_send_lmp:
+/* FLOW is set high and LMP is indicated */
+	lshift3 pdata,pdata
+	or_into 0x07,pdata
+	store 1,mem_lmo_header_length
+	arg 17,loopcnt
+	arg mem_lmo_payload,contw
+	call clear_mem
+	arg mem_lmo_payload,contw
+	rtn
+
+send_lmpext:
+	and pdata,0x7f,rega
+	jam LMP_ESCAPE,mem_lmp_to_send
+	deposit queue
+	call msg_send_lmp
+	deposit rega
+	istore 1,contw
+	rtn
+
+send_lmp_follow:
+	fetch 1,mem_lmp_to_send
+	lshift pdata,pdata
+	fetcht 1,mem_state_map
+	isolate1 smap_lmptid,temp
+	setflag true,0,pdata
+	branch send_lmp_exit
+
+
+send_lmp_tid:
+	fetcht 1,mem_state_map
+	and_into 1,temp
+	branch send_lmp_end
+
+send_lmp_reply:
+	force 0,temp
+	branch send_lmp_end
+	
+send_lmp_request:
+	force 1,temp
+send_lmp_end:
+	fetch 1,mem_lmp_to_send
+	lshift pdata,pdata
+	setflag master,0,pdata
+	ixor temp,pdata
+send_lmp_exit:
+	store 1,mem_lmo_header_opcode
+	store 1,mem_lmo_header_opcode_x
+	jam 0,mem_lmp_to_send
+	call lmo_fifo_process_lmo0empty
+	enable user
+	rtn
+
+//blank : not full 
+lmo_fifo_check:
+	fetch 1,mem_lmo_opcode2
+	rtn blank
+	call lmo_fifo_process
+	fetch 1,mem_lmo_opcode2
+	rtn
+
+lmo_fifo_process:
+	bpatchx patch23_3,mem_patch23
+	fetch 1,mem_lmp_to_send
+	branch lmo_fifo_process_lmo0empty,blank
+	fetch 1,mem_lmo_opcode1
+	nrtn blank
+	branch lmo_fifo_process_lmo2to1
+lmo_fifo_process_lmo0empty:
+	fetch 1,mem_lmo_opcode1
+	branch lmo_fifo_process_lmo1_empty,blank
+	fetch 3,mem_lmo_opcode1
+	store 3,mem_lmp_to_send//1=>0
+	fetcht 1,mem_lmo_tid1
+	fetch 1,mem_state_map
+	set0 smap_lmptid,pdata
+	ior temp,pdata
+	store 1,mem_state_map
+	jam 0,mem_lmo_opcode1
+lmo_fifo_process_lmo2to1:
+	fetch 1,mem_lmo_opcode2
+	rtn blank
+	fetch 4,mem_lmo_opcode2
+	store 4,mem_lmo_opcode1//2=>1
+	jam 0,mem_lmo_opcode2
+	rtn
+lmo_fifo_process_lmo1_empty:
+	fetch 1,mem_lmo_opcode2
+	rtn blank
+	fetch 3,mem_lmo_opcode2
+	store 3,mem_lmp_to_send//2=>0	
+	fetcht 1,mem_lmo_tid2
+	fetch 1,mem_state_map
+	set0 smap_lmptid,pdata
+	ior temp,pdata
+	store 1,mem_state_map
+	jam 0,mem_lmo_opcode2
+	rtn
+	
+//input:temp
+special_tid_store:
+	bpatchx patch23_4,mem_patch23
+	fetch 1,mem_state_map
+	copy pdata,regc
+	ifetch 1,temp
+	call pop_tid_follow
+	call send_lmp_follow
+	copy regc,pdata
+	store 1,mem_state_map
+	rtn
+	
+tid_reply:
+	fetcht 1,mem_state_map
+	set0 smap_lmptidinit,temp
+	storet 1,mem_state_map
+	rtn
+	
+tid_initiate:
+	fetcht 1,mem_state_map
+	set1 smap_lmptidinit,temp
+	storet 1,mem_state_map
+	rtn
+	
+	/* true if transaction from remote */
+tid_check:
+	nsetflag master,smap_lmptid,pdata //it is ok
+	fetcht 1,mem_state_map
+	ixor temp,pdata
+	isolate1 smap_lmptid,pdata
+	rtn	
+
+	/* set to remote */
+tid_set_reply:
+	fetch 1,mem_state_map
+	setflag master,smap_lmptid,pdata //it is ok
+	store 1,mem_state_map
+	rtn
+
+	/*rtn true when we lead lmp*/
+check_localsm:
+	fetch 1,mem_sp_localsm
+	compare 	LOCAL_STATEMACHINE,pdata,0x7f
+	rtn
+setlocalsm_master:
+	fetch 1,mem_sp_localsm
+	set1 7,pdata
+	store 1,mem_sp_localsm
+	rtn
+setlocalsm_slave:
+	fetch 1,mem_sp_localsm
+	set0 7,pdata
+	store 1,mem_sp_localsm
+	rtn
+check_localsm_master:
+	fetch 1,mem_sp_localsm
+	isolate1 7,pdata
+	store 1,mem_sp_localsm
+	rtn
+	
+generate_random_number:
+	/* generating a 16 byte random number,storing in ape_random_number */
+	arg mem_random_number,contw
+generate_random:
+	force 16,loopcnt
+generate_random_another:
+generate_random_loop:
+	random pdata
+	istore 1,contw
+	loop generate_random_another
+	rtn
+
+generate_linkkey:
+	call function_e21
+	arg mem_link_key,rega
+	arg mem_input_store,regb
+	ifetch 8,rega					/* check if already got comb key */
+	fetcht 1,mem_state
+	nsetflag blank,state_combkey,temp
+	storet 1,mem_state
+	copy rega,contw
+	call  xor16
+	branch generate_linkkey_continue
+
+/*********************************/
+/*********lmp send*************/
+/********************************/
+
+process_conn_sm:
+	//nrtn master
+	bpatchx patch23_5,mem_patch23
+
+	call lmo_fifo_check
+	nrtn blank
+process_conn_sm_continue:
+	fetch 1,mem_conn_sm
+	rtn blank
+	/* state machine begins in standby */
+	//beq CONN_SM_STANDBY, host_create_conn_begin
+	//beq CONN_SM_WAIT_PAGE, host_create_conn_wait_page
+	beq CONN_SM_SEND_CONN_REQ, host_create_conn_send_conn_req
+	beq CONN_SM_WAIT_CONN_ACCEPT, host_create_conn_wait_accept
+	beq CONN_SM_SEND_FEATURES, host_create_conn_send_features
+	beq CONN_SM_WAIT_FEATURES_RES, host_create_conn_waiting
+	beq CONN_SM_SEND_SWITCH,host_create_conn_send_switch
+	beq CONN_SM_AUTH_PAIR, host_create_conn_auth_pair
+	beq CONN_SM_AUTH_PAIR_WAIT, host_create_conn_auth_pair_wait
+	beq CONN_SM_ENCRYPT, host_create_conn_encrypt
+	beq CONN_SM_ENCRYPT_WAIT, host_create_conn_encrypt_wait
+	beq CONN_SM_ENCRYPT_WAIT_CLEAR, host_create_conn_encrypt_wait_clear
+	beq CONN_SM_SEND_SETUP_COMPLETE, host_create_conn_send_setup_complete
+	beq CONN_SM_WAIT_SETUP_COMPLETE, host_create_conn_wait_setup_complete
+	beq CONN_SM_DETACH_DELAY,host_create_conn_master_detach
+	beq CONN_SM_SEND_VERSION, host_create_conn_send_version
+	beq CONN_SM_WAIT_VERSION, host_create_conn_waiting
+	beq CONN_SM_WAIT_SWITCH_AFTER_HOST_CONNECTION, host_creat_conn_wait_switch
+	beq CONN_SM_SEND_FEATURES_EXT,host_creat_conn_send_feat_ext
+	beq CONN_SM_WAIT_FEATURES_EXT,host_create_conn_waiting
+	beq CONN_SM_PAIRING,host_create_conn_pairing
+	beq CONN_SM_PAIRING_WAIT,host_create_conn_pairing_wait
+	beq CONN_SM_AUTH,host_create_conn_auth
+	beq CONN_SM_AUTH_WAIT,host_create_conn_auth_wait
+	beq CONN_SM_DONE,host_create_conn_done
+	beq CONN_SM_WAIT_DONE,host_create_conn_done_wait
+	jam CONN_SM_STANDBY,mem_conn_sm
+	/* sending error message to host */
+	rtn
+host_create_conn_done:
+	fetch 1,mem_lmp_conn_state		
+	rtnbit0 RECEIVED_SETUP_COMPLETE
+	rtnbit0 SENT_SETUP_COMPLETE
+	jam CONN_SM_STANDBY,mem_conn_sm
+	call host_conn_judge_encrypt
+	branch scheduler_start_upper_sm
+	
+host_conn_judge_encrypt:
+	fetch 1,mem_connection_options
+	rtnbit0 CONNECTION_ENCRYPT
+	jam CONN_SM_ENCRYPT_WAIT,mem_conn_sm
+	rtn
+
+host_create_conn_done_wait:
+	arg enpt_delay_timer,queue
+	call timer_check
+	nrtn blank
+	jam CONN_SM_DONE,mem_conn_sm
+	rtn
+	
+host_create_conn_auth:
+	fetch 1,mem_connection_options
+	set0 CONNECTION_AUTH,pdata
+	store 1,mem_connection_options
+	jam CONN_SM_AUTH_WAIT,mem_conn_sm
+	jam LMP_AU_RAND,mem_lmo_opcode2
+	rtn 
+host_create_conn_auth_wait:
+	rtn
+host_create_conn_pairing:
+	fetch 1,mem_pincode_state
+	rtnne pincode_state_pincode_ready //wait for pincode
+	call host_auth
+	jam CONN_SM_PAIRING_WAIT,mem_conn_sm
+	rtn
+
+host_create_conn_pairing_wait:
+	rtn
+host_creat_conn_send_feat_ext:
+	jam CONN_SM_WAIT_FEATURES_EXT,mem_conn_sm
+	jam LMP_EXT_FEATURES_REQ,mem_lmo_opcode2
+	rtn
+host_create_conn_send_version:
+	jam CONN_SM_WAIT_VERSION,mem_conn_sm
+	jam LMP_VERSION_REQ,mem_lmo_opcode2
+	rtn 
+	
+host_creat_conn_wait_switch:
+	fetch 1,mem_switch_flag
+	rtneq SWITCH_FLAG_INIT
+	beq SWITCH_FLAG_ACCEPT,host_create_conn_switch_accept
+	arg switch_wait_timer,queue
+	call timer_check
+	nrtn blank
+	jam SWITCH_FLAG_INIT,mem_switch_flag
+	branch host_create_conn_switch
+host_create_conn_switch_accept:
+	rtn master
+	branch host_create_conn_auth_pair
+
+host_create_conn_send_features:
+	jam CONN_SM_WAIT_FEATURES_RES,mem_conn_sm
+	jam LMP_FEATURES_REQ,mem_lmo_opcode2
+	rtn 
+host_create_conn_send_switch:
+	jam LMP_SWITCH_REQ,mem_lmo_opcode2
+	set1 mark_switch_initiated,mark
+	jam CONN_SM_WAIT_CONN_ACCEPT,mem_conn_sm
+	setarg 0x1ff
+	store 2, mem_soft_timer
+	rtn
+
+host_create_conn_send_conn_req:
+	jam CONN_SM_WAIT_CONN_ACCEPT,mem_conn_sm
+	setarg 0xff
+	store 2,mem_soft_timer
+	set0 mark_reconn_recieve_switch,mark
+	jam LMP_HOST_CONNECTION_REQ,mem_lmo_opcode2
+	branch init_lmp_reinit
+host_create_conn_wait_accept:
+	rtnmark1 mark_reconn_recieve_switch
+	fetch 2,mem_soft_timer
+	increase -1,pdata
+	branch host_create_conn_resend,zero
+	store 2, mem_soft_timer
+	rtn
+host_create_conn_resend:
+	jam CONN_SM_SEND_SWITCH,mem_conn_sm
+	rtn
+host_create_conn_waiting:
+	/* we will exit waiting for connection request accepted, features res, or other commands to finish */
+	rtn 
+
+host_create_conn_switch:
+	fetch 1,mem_lmp_conn_state
+	rtnbit0 SENT_SETUP_COMPLETE
+	rtnbit0 RECEIVED_SETUP_COMPLETE
+	fetch 1,mem_connection_options
+	set0 CONNECTION_SWITCH,pdata
+	store 1,mem_connection_options
+	jam LMP_SWITCH_REQ,mem_lmo_opcode2
+	jam CONN_SM_WAIT_SWITCH_AFTER_HOST_CONNECTION,mem_conn_sm
+	rtn 
+
+host_create_conn_send_setup_complete:
+	jam CONN_SM_WAIT_SETUP_COMPLETE,mem_conn_sm	
+	jam LMP_SETUP_COMPLETE,mem_lmo_opcode2
+	rtn 
+
+host_create_conn_wait_setup_complete:
+	fetch 1,mem_lmp_conn_state
+	rtnbit0 RECEIVED_SETUP_COMPLETE
+	jam CONN_SM_STANDBY,mem_conn_sm	
+
+	rtn
+host_create_conn_wait_setup_complete_rtn:	
+	jam CONN_SM_AUTH_PAIR ,mem_conn_sm
+	rtn
+
+host_create_conn_master_detach:
+	fetch 2, mem_soft_timer
+	increase -1,pdata
+	branch host_create_conn_send_detach,blank//detach
+	store 2, mem_soft_timer
+	rtn 
+host_create_conn_send_detach:
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam LOCAL_HOST,mem_disconn_reason_send
+	jam 0,mem_conn_sm
+	rtn
+host_create_conn_auth_pair:
+	/* checking whether or not to do m/s switch */
+	fetch 1,mem_connection_options
+	bbit1 CONNECTION_SWITCH,host_create_conn_switch
+	bbit1 CONNECTION_AUTH,host_create_conn_auth_pair_true
+host_create_conn_sm_done:
+	jam CONN_SM_DONE,mem_conn_sm
+	rtn
+host_create_conn_auth_pair_true:
+	fetch 1,mem_link_key_exists
+	branch host_create_conn_auth_pair_nokey,blank
+	fetch 1,mem_lmp_conn_state
+	rtnbit0 SENT_SETUP_COMPLETE
+	rtnbit0 RECEIVED_SETUP_COMPLETE
+	fetch 4,mem_aurand_send_delay_time
+	arg 100,temp
+	iadd temp,temp
+	copy clkn_bt,pdata
+	isub temp,null
+	nrtn positive
+	branch host_create_conn_auth
+
+host_create_conn_auth_pair_nokey:
+	jam CONN_SM_PAIRING,mem_conn_sm
+	jam 4,mem_pin_length
+	setarg 0x3030
+	store 2,mem_pin
+	istore 2,contw
+	jam pincode_state_pincode_ready,mem_pincode_state
+	branch host_create_conn_pairing
+
+host_create_conn_auth_pair_wait:
+	rtn
+host_create_conn_encrypt:
+	fetch 1,mem_connection_options
+	bbit1 CONNECTION_ENCRYPT,host_create_conn_encrypt_start
+	jam CONN_SM_DONE,mem_conn_sm
+	rtn 
+
+host_create_conn_encrypt_start:
+	fetch 1,mem_connection_options
+	set0 CONNECTION_ENCRYPT,pdata
+	store 1,mem_connection_options
+	jam LMP_ENCRYPTION_MODE_REQ,mem_lmo_opcode2  
+	rtn
+
+host_create_conn_encrypt_wait:
+	fetch 1, mem_wait_encryption
+	rtn blank
+	jam CONN_SM_STANDBY,mem_conn_sm
+	branch host_create_conn_encrypt_start 
+
+host_create_conn_encrypt_wait_clear:
+	jam CONN_SM_SEND_SETUP_COMPLETE,mem_conn_sm
+	rtn 
+
+host_auth:
+	fetch 1,mem_op
+	bbit1 op_inrand_req,remote_auth
+	call tid_initiate
+	jam LMP_IN_RAND,mem_lmo_opcode2
+	branch cmd_exit
+remote_auth:
+	fetch 1,mem_op
+	set0 op_inrand_req,pdata
+	store 1,mem_op
+	call lmp_accept_inrand
+	call tid_set_reply
+	branch cmd_exit
+
+pincode_reinit:
+	setarg 4
+	store 1,mem_pin_length
+	setarg 0x3030
+	istore 2,contw
+	istore 2,contw
+	rtn
+	
+
Index: program/mesh_protocol_stack/mesh_access_layer.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_access_layer.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_access_layer.prog	(working copy)
@@ -0,0 +1,143 @@
+
+/*
+	mesh协议中access layer
+	主要是负责mesh中access layer数据的解析
+*/
+
+/*
+	access layer解析指令集
+*/
+//input:alarm is upper transport access ptr
+ali_mesh_access_layer_resolve_message:
+	fetch 1,mem_ccm_data_len
+	store 1,mem_mesh_receive_model_message_payload_len
+	copy alarm,contr
+	call memcpy24
+	call logging_tx_info_receive_access_message
+	fetch 2,mem_mesh_cb_receive_access_message
+	branch callback_func
+
+ali_mesh_access_layer_check_access_message_opcode:
+	fetch 1,mem_mesh_receive_model_message_payload_opcode
+	beq MESH_MESSAGE_OPCODE_CONFIG_APPKEY_ADD,ali_mesh_access_layer_message_opcode_config_AppKey_Add
+	beq MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER,ali_mesh_access_layer_config_or_health_message_opcode
+	beq MESH_MODULE_MESSAGE_OPCODE_HEADER,ali_mesh_model_layer_check_model_message_opcode
+	beq VENDOR_MESSAGE_ATTR_SET,ali_mesh_ali_vendor_message_attribute_set
+	beq VENDOR_MESSAGE_ATTR_GET,ali_mesh_ali_vendor_message_opcode_attr_get
+	beq VENDOR_MESSAGE_ATTR_CONFIRMATION,ali_mesh_ali_vendor_message_opcode_attr_confrimation
+	rtn
+
+
+/*
+	接收到config AppKey Add指令
+*/
+ali_mesh_access_layer_message_opcode_config_AppKey_Add:
+	arg mem_mesh_receive_application_key,contr
+	arg mem_mesh_application_key,contw
+	call memcpy16
+	jam PAIRED_STATUS,mem_mesh_provisioned_flag
+	call ali_mesh_encrypt_base_function_k3
+	call ali_mesh_encrypt_base_function_k4
+	call ali_mesh_access_layer_finish_pairing_init_subscription_list
+	call ali_mesh_accesss_layer_check_message_type
+	call ali_mesh_access_layer_send_config_AppKey_status
+	jam PAIRED_STATUS,mem_mesh_provisioned_flag
+	fetch 2,mem_mesh_cb_receive_config_appkey_add
+	branch callback_func
+
+ali_mesh_accesss_layer_check_message_type:
+	fetch 1,mem_mesh_network_packet_type
+	jam RECEIVED_CONFIG_APPKEY_ADD,mem_mesh_provisioned_flag		//中间状态 APP配网时，需要回复数量多
+	rtneq MESH_MESSAGE_APP
+	jam PAIRED_STATUS,mem_mesh_provisioned_flag					//tmall配网不需要重传多次
+	rtn
+
+ali_mesh_access_layer_send_config_AppKey_status:
+	setarg MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MESSAGE_OPCODE_CONFIG_CONFIG_MODEL_PUBLICATION_SET
+	istore 1,contw
+	setarg STATUS_CODE_SUCCESS
+	istore 1,contw
+	fetch 3,mem_mesh_NETKeyindex_and_APPKeyindex
+	istore 3,contw
+	jam 6,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+ali_mesh_access_layer_finish_pairing_init_subscription_list:
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_SUBSCRIPTION
+	call mesh_get_element_info_config
+ali_mesh_access_layer_finish_pairing_init_subscription_list_loop:
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,regc
+	setarg -1
+	istore SUBSCRIPTION_MAX_COUNT,regc
+	istore SUBSCRIPTION_MAX_COUNT,contw
+	ifetch 2,rega		//read group address
+	istore 2,regc
+	copy regb,pdata
+	iadd rega,rega
+	loop ali_mesh_access_layer_finish_pairing_init_subscription_list_loop
+	fetch 2,mem_mesh_cb_subscriptuion_list_changed
+	branch callback_func
+
+
+/*
+	generic onoff status
+*/
+ali_mesh_access_layer_send_generic_onoff_status:
+	setarg MESH_MODULE_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_STATUS_NO_HEAD
+	istore 1,contw
+	fetch 1,mem_mesh_generic_onoff_set_payload_OnOff
+	istore 1,contw
+	jam 3,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+/*
+	light lightness status
+*/
+ali_mesh_access_layer_send_light_lightness_status:
+	setarg MESH_MODULE_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_STATUS_NO_HEAD
+	istore 1,contw
+	fetch 2,mem_mesh_light_lightness_set_payload_lightness
+	istore 2,contw
+	jam 4,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+ali_mesh_access_layer_send_light_ctl_stauts:
+	setarg MESH_MODULE_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_STATUS_NO_HEAD
+	istore 1,contw
+	fetch 4,mem_mesh_CTL_Lightness
+	istore 4,contw
+	jam 6,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+
+ali_mesh_access_layer_send_scene_status:
+	setarg MESH_MODULE_MESSAGE_OPCODE_SCENE_STATUS
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_SUCCESS
+	istore 1,contw
+	fetch 2,mem_mesh_scene_recall_payload_scene_number
+	istore 2,contw
+	jam 4,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+
+logging_tx_info_receive_access_message:
+	fetchr loopcnt,1,mem_ccm_data_len
+	copy alarm,rega
+	arg MESH_ACCESS_RECEIVE_MESSAGE,regb
+	branch logging_tx_info
+
Index: program/mesh_protocol_stack/mesh_ali_vendor_message.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_ali_vendor_message.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_ali_vendor_message.prog	(working copy)
@@ -0,0 +1,504 @@
+
+/*
+	mesh协议中ali vendor message resolve
+	主要是阿里自定义attribute set 指令设置
+*/
+
+
+/*
+	主要是阿里定时设置模块指令解析
+	其他非标的指令设置
+*/
+ali_mesh_ali_vendor_message_attribute_set:
+	call ali_mesh_ali_vendor_message_attrbute_check_company_id_and_tid
+	nrtn user
+	fetch 2,mem_mesh_vendor_message_attr_type
+	arg VENDOR_MESSAGE_ATTR_TYPE_TIME,temp
+	isub temp,null	//设置设备的时间
+	branch ali_mesh_ali_vendor_message_opcode_timer_set_curr_time,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_TIMING,temp
+	isub temp,null
+	branch ali_mesh_ali_vendor_message_opcode_timer_set_timing,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_CYCLE_TIMING, temp
+	isub temp, null
+	branch ali_mesh_ali_vendor_message_opcode_timer_set_timing_cyclically, zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_DELETE_TIMING,temp
+	isub temp,null
+	branch ali_mesh_ali_vendor_message_opcode_timer_delete_timing,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_MAIN_LIGHT,temp
+	isub temp,null	//主灯控制
+	branch ali_mesh_ali_vendor_message_attribute_set_main_light,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_BACKGROUND_LIGHT,temp
+	isub temp,null	//背光灯控制
+	branch ali_mesh_ali_vendor_message_attribute_set_background_light,zero
+	arg VENDOR_MESSAGE_ATTR_TYPE_COLOR,temp
+	isub temp,null	//颜色控制
+	branch ali_mesh_ali_vendor_message_attribute_set_color,zero
+	fetch 2,mem_mesh_cb_recv_vendor
+	branch callback_func
+
+ali_mesh_ali_vendor_message_opcode_attr_get:
+ali_mesh_ali_vendor_message_opcode_attr_confrimation:
+	rtn
+
+ali_mesh_ali_vendor_message_attrbute_check_company_id_and_tid:
+	call disable_user
+	fetch 2,mem_mesh_vendor_message_cid
+	arg VENDOR_MESSAGE_OPCODE_COMPANY_ID,temp
+	isub temp,null
+	nrtn zero
+	fetcht 1,mem_mesh_vendor_mesh_receive_tid
+	fetch 1,mem_mesh_vendor_message_tid
+	isub temp,null
+	rtn zero
+	store 1,mem_mesh_vendor_mesh_receive_tid
+	branch enable_user
+
+ali_mesh_ali_vendor_message_attribute_set_main_light:
+	call ali_mesh_ali_vendor_message_ack_attr_status_uint8
+	fetch 2,mem_mesh_cb_main_light_onoff_set
+	branch callback_func
+
+
+ali_mesh_ali_vendor_message_attribute_set_background_light:
+	call ali_mesh_ali_vendor_message_ack_attr_status_uint8
+	fetch 2,mem_mesh_cb_background_onoff_set
+	branch callback_func
+
+ali_mesh_ali_vendor_message_attribute_set_color:
+	call ali_mesh_ali_vendor_message_ack_attr_status_uint48
+	fetch 2,mem_mesh_cb_color_set
+	branch callback_func
+
+
+/*
+	阿里定时模块代码
+*/
+ali_mesh_ali_vendor_message_opcode_timer_set_curr_time:
+	call ali_mesh_ali_vendor_message_ack_attr_status_uint32
+
+	fetch 4,mem_mesh_vendor_message_current_time
+	store 4,mem_mesh_vendor_timer_current_time
+	branch ali_mesh_time_init_system_time
+
+
+ali_mesh_ali_vendor_message_opcode_timer_set_timing:
+	call ali_mesh_ali_vendor_message_ack_attr_status_uint64
+	call ali_mesh_ali_vendor_message_calc_timing_address
+	rtn blank
+	fetch 1,mem_mesh_vendor_timer_timing_index
+	call ali_mesh_vendor_timer_buffer_offset_cal
+	fetcht 8,mem_mesh_vendor_timer_timing_index
+	istoret 8,contw
+ali_mesh_ali_vendor_message_cb_timing_changed:
+	fetch 2,mem_mesh_cb_vendor_timing_changed
+	branch callback_func
+
+ali_mesh_ali_vendor_message_opcode_timer_set_timing_cyclically:
+	call ali_mesh_ali_vendor_message_ack_attr_status_uint56
+	call ali_mesh_ali_vendor_message_calc_timing_address
+	rtn blank
+	jam TIMER_CYCLICAL_FALG,mem_mesh_vendor_timer_timing_cyclic_flag
+	fetch 1,mem_mesh_vendor_timer_timing_index_cyclic
+	call ali_mesh_vendor_timer_buffer_offset_cal
+	fetch 8,mem_mesh_vendor_timer_timing_index_cyclic    //取8个Bytes，包括标识周期定时的flag
+	istore 8,contw
+	branch ali_mesh_ali_vendor_message_cb_timing_changed
+
+
+ali_mesh_ali_vendor_message_opcode_timer_delete_timing:
+	call ali_mesh_ali_vendor_message_opcode_timer_delete_timing_ack
+	call ali_mesh_ali_vendor_message_calc_timing_address
+	rtn blank
+	fetch 1,mem_mesh_vendor_timer_timing_index
+	rtn blank
+	call ali_mesh_vendor_timer_buffer_offset_cal
+	arg 0, temp
+	istoret 1, contw
+	fetch 1,mem_mesh_receive_model_message_payload_len
+	sub pdata,8,null
+	call ali_mesh_ali_vendor_message_opcode_timer_delete_timing_delete_second,zero
+	branch ali_mesh_ali_vendor_message_cb_timing_changed
+
+ali_mesh_ali_vendor_message_opcode_timer_delete_timing_delete_second:
+	call ali_mesh_ali_vendor_message_calc_timing_address
+	fetch 1,mem_mesh_vendor_timer_timing_index1
+	call ali_mesh_vendor_timer_buffer_offset_cal
+	arg 0, temp
+	istoret 1, contw
+	rtn
+
+
+ali_mesh_ali_vendor_message_opcode_timer_delete_timing_ack:
+	fetch 1,mem_mesh_receive_model_message_payload_len
+	beq 7,ali_mesh_ali_vendor_message_ack_attr_status_uint8
+	branch ali_mesh_ali_vendor_message_ack_attr_status_uint16
+
+ali_mesh_vendor_timer_buffer_offset_cal:
+	pincrease -1
+	lshift3 pdata,pdata
+	iadd contw,contw
+	rtn
+
+
+ali_mesh_ali_vendor_message_calc_timing_address:
+	call mesh_get_element_info_config
+	add rega,ELEMENT_DEVICE_VENDOR_TIME_PTR,rega
+	fetch 1,mem_mesh_receive_element_number
+	imul32 regb,pdata
+	iadd rega,rega
+	ifetch 2,rega
+	copy pdata,contw
+	rtn
+
+
+
+/*
+	阿里mesh自定义status,被动回复SET或者GET状态
+*/
+
+ali_mesh_ali_vendor_message_status_add_head:
+	setarg VENDOR_MESSAGE_ATTR_STATUS
+	store 1,mem_mesh_access_layer_payload
+	setarg VENDOR_MESSAGE_OPCODE_COMPANY_ID
+	istore 2,contw
+	fetch 1,mem_mesh_vendor_mesh_receive_tid
+	istore 1,contw
+	istoret 2,contw
+	rtn
+
+
+/*
+	阿里mesh自定义indication，主动上报状态给天猫精灵
+	DST:0x00f0
+*/
+//开关上电
+ali_mesh_ali_vendor_message_opcode_device_power_on:
+	arg 0,queue
+	arg VENDOR_MESSAGE_EVENT_DEVICE_POWER_ON,temp
+	arg VENDOR_ATTR_TYPE_EVENT_TRIGGER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint8
+
+
+//上报开关状态
+//input:temp is generic onoff status
+//0 GENERIC_ONOFF_CMD_OFF
+//1 GENERIC_ONOFF_CMD_ON
+//input:queue is element number
+//e.g 灯queue0
+//风扇灯中灯0，风扇1
+//风扇:0
+ali_mesh_ali_vendor_message_opcode_generic_OnOff:
+	arg VENDOR_ATTR_GENERIC_ONOFF_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint8
+
+//上报模式给天猫精灵
+//input: temp is scene server mode
+ali_mesh_ali_vendor_message_opcode_scene_server_first_element:
+	arg 0,queue
+//上报模式给天猫精灵
+//input: temp is scene server mode
+//queue is element_number
+ali_mesh_ali_vendor_message_opcode_scene_server:
+	arg VENDOR_ATTR_SCENE_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint16
+
+
+ali_mesh_ali_vendor_message_opcode_main_light_OnOff_first_element:
+	arg 0,queue
+//上报主灯开关状态
+//input:temp is generic onoff status
+//0 GENERIC_ONOFF_CMD_OFF
+//1 GENERIC_ONOFF_CMD_ON
+//input:queue is element number
+ali_mesh_ali_vendor_message_opcode_main_light_OnOff:
+	arg VENDOR_ATTR_MAIN_LIGHT_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint8
+
+ali_mesh_ali_vendor_message_opcode_background_light_OnOff_first_element:
+	arg 0,queue
+//上报背光灯开关状态
+//input:temp is generic onoff status
+//0 GENERIC_ONOFF_CMD_OFF
+//1 GENERIC_ONOFF_CMD_ON
+//input:queue is element number
+ali_mesh_ali_vendor_message_opcode_background_light_OnOff:
+	arg VENDOR_ATTR_BACKGROUND_LIGHT_ONOFF_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint8
+
+ali_mesh_ali_vendor_message_opcode_brightness_first_element:
+	arg 0,queue
+//上报灯的亮度
+//input:temp is bright ness 0-100
+ali_mesh_ali_vendor_message_opcode_brightness:
+	call ali_mesh_model_layer_message_calc_actual_lightness
+	arg VENDOR_ATTR_LIGHTNESS_LEVEL_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint16
+
+ali_mesh_ali_vendor_message_opcode_color_temperature_first_element:
+	arg 0,queue
+//上报灯的亮度
+//input:temp is bright ness 0-100
+ali_mesh_ali_vendor_message_opcode_color_temperature:
+	call ali_mesh_model_layer_message_calc_actual_temperature
+	arg VENDOR_ATTR_COLOR_TEMPERATURE_SERVER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint16
+
+
+//input:temp is timing index number
+ali_mesh_ali_vendor_message_opcode_timing_finish:
+	lshift temp,temp
+	or temp,VENDOR_MESSAGE_EVENT_FINISH_TIMING,temp
+	arg VENDOR_ATTR_TYPE_EVENT_TRIGGER,rega
+	branch ali_mesh_ali_vendor_message_opcode_para_uint16
+
+
+ali_mesh_ali_vendor_message_indication_info_add_head_event_trigger:
+	call ali_mesh_ali_vendor_message_indication_info_add_head
+	setarg VENDOR_ATTR_TYPE_EVENT_TRIGGER
+	istore 2,contw
+	rtn
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint64:
+	arg 8,loopcnt
+	branch ali_mesh_ali_vendor_message_ack_attr_status
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint56:
+	arg 8,loopcnt
+	branch ali_mesh_ali_vendor_message_ack_attr_status
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint48:
+	arg 6,loopcnt
+	branch ali_mesh_ali_vendor_message_ack_attr_status
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint32:
+	arg 4,loopcnt
+	branch ali_mesh_ali_vendor_message_ack_attr_status
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint16:
+	arg 2,loopcnt
+	branch ali_mesh_ali_vendor_message_ack_attr_status
+
+ali_mesh_ali_vendor_message_ack_attr_status_uint8:
+	arg 1,loopcnt
+	branch ali_mesh_ali_vendor_message_ack_attr_status
+
+//input:loopcnt is attr length
+ali_mesh_ali_vendor_message_ack_attr_status:
+	add loopcnt,6,pdata
+	store 1,mem_mesh_access_layer_payload_len
+	call ali_mesh_ali_vendor_message_status_add_head
+	arg mem_mesh_vendor_attr_parameter,contr
+	call memcpy
+	branch ali_mesh_upper_transport_layer_send_access_message
+	
+
+
+//input:queue is element number
+//rega is vendor model attr
+//temp is vendor model attr parameter 
+ali_mesh_ali_vendor_message_opcode_para_uint8:
+	call ali_mesh_ali_vendor_message_indication_info_add_head
+	istorer rega,2,contw
+	istoret 1,contw
+	jam 7,mem_mesh_access_layer_payload_len
+	branch ali_mesh_ali_vendor_message_send_message
+
+
+//input:queue is element number
+//rega is vendor model attr
+//temp is vendor model attr parameter 
+ali_mesh_ali_vendor_message_opcode_para_uint16:
+	call ali_mesh_ali_vendor_message_indication_info_add_head
+	istorer rega,2,contw
+	istoret 2,contw
+	jam 8,mem_mesh_access_layer_payload_len
+	branch ali_mesh_ali_vendor_message_send_message
+
+
+//input:queue is element number
+ali_mesh_ali_vendor_message_send_message:
+	call ali_mesh_more_element_calc_queue_address
+	branch ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer
+
+
+ali_mesh_ali_vendor_message_indication_info_add_head:
+	fetch 1,mem_mesh_transport_AID
+	store 1,mem_mesh_message_Transport_Head
+	setarg VENDOR_MESSAGE_TMALL_DST
+	store 2,mem_mesh_send_message_DST
+	fetch 1,mem_mesh_vendor_mesh_send_tid
+	pincrease 1
+	store 1,mem_mesh_vendor_mesh_send_tid
+	beq VENDOR_MESSAGE_SEND_TID_MAX,ali_mesh_ali_vendor_message_indication_info_reset_tid
+	setarg VENDOR_MESSAGE_ATTR_INDICATION
+	store 1,mem_mesh_access_layer_payload
+	setarg VENDOR_MESSAGE_OPCODE_COMPANY_ID
+	istore 2,contw
+	fetch 1,mem_mesh_vendor_mesh_send_tid
+	istore 1,contw
+	rtn
+
+ali_mesh_ali_vendor_message_indication_info_reset_tid:
+	jam VENDOR_MESSAGE_SEND_TID_MIN,mem_mesh_vendor_mesh_send_tid
+	rtn
+
+/*
+	阿里定时函数
+*/
+ali_mesh_time_function:
+	copy clkn_bt,temp
+	fetch 4,mem_system_time
+	isub temp,null
+	call ali_mesh_timer_timeout,positive
+	call ali_mesh_clkn_bt_add_1s
+	isub temp,null	
+	rtn positive
+	call ali_mesh_time_init_system_time_without_clk
+	fetch 4,mem_mesh_vendor_timer_current_time
+	pincrease 1
+	store 4,mem_mesh_vendor_timer_current_time
+	branch ali_mesh_ali_vendor_check_time
+
+
+ali_mesh_time_init_system_time:
+	copy clkn_bt,pdata
+ali_mesh_time_init_system_time_without_clk:
+	store 4,mem_system_time
+	fetch 1,mem_system_time+3
+	and_into 0x0f,pdata
+	store 1,mem_system_time+3
+	rtn
+
+ali_mesh_timer_timeout:
+	rtn zero
+	copy pdata,regb
+	setarg 0x100000
+	lshift8 pdata,pdata
+	iadd temp,temp
+	copy regb,pdata
+	rtn
+
+ali_mesh_clkn_bt_add_1s:
+	arg 20,loopcnt
+ali_mesh_time_loop:	
+	pincrease 160
+	loop ali_mesh_time_loop	
+	rtn
+
+ali_mesh_ali_vendor_check_time:
+	call mesh_get_element_info_config
+	add rega,ELEMENT_DEVICE_VENDOR_TIME_PTR,rega
+	jam 0,mem_mesh_receive_element_number
+
+ali_mesh_ali_vendor_check_time_loop:
+	call ali_mesh_more_element_push_stack
+	ifetch 2,rega
+	branch ali_mesh_ali_vendor_check_time_next_element,blank
+	copy pdata,alarm
+	call ali_mesh_ali_vendor_check_time_one_element
+ali_mesh_ali_vendor_check_time_next_element:
+	call ali_mesh_more_element_pop_stack
+	fetch 1,mem_mesh_receive_element_number
+	pincrease 1
+	store 1,mem_mesh_receive_element_number
+	fetcht 1,mem_mesh_element_number
+	isub temp,pdata
+	rtn zero	//check all
+	copy regb,pdata
+	iadd rega,rega
+	branch ali_mesh_ali_vendor_check_time_loop
+
+ali_mesh_ali_vendor_check_time_one_element:
+	arg 40,loopcnt
+//timer loop:input loopcnt timer count
+//alarm timer address
+//mem_mesh_receive_element_number:element number
+ali_mesh_ali_vendor_check_time_one_element_loop:
+	copy loopcnt,pdata
+	store 1,mem_mesh_loopcnt_tmep
+	ifetch 1,alarm
+	ncall ali_mesh_ali_vendor_had_timing,blank 
+	increase 8,alarm
+	fetch 1,mem_mesh_loopcnt_tmep
+	copy pdata,loopcnt
+	loop ali_mesh_ali_vendor_check_time_one_element_loop
+	rtn
+
+ali_mesh_ali_vendor_had_timing:
+	ifetcht 8, alarm
+	storet 8, mem_mesh_vendor_timer_timing_index_cyclic    //作为每次检测的临时存储
+	fetch 1,mem_mesh_vendor_timer_timing_attr_para
+	beq TIMER_CYCLICAL_FALG, ali_mesh_ali_vendor_had_timing_cyclically
+	fetcht 4,mem_mesh_vendor_timer_current_time
+	fetch 4, mem_mesh_vendor_timer_timing_time
+	isub temp,null
+	fetch 1, mem_mesh_vendor_timer_timing_attr_para
+	branch ali_mesh_ali_vendor_time_timeout,zero
+	rtn
+
+ali_mesh_ali_vendor_time_timeout:
+	store 1,mem_mesh_generic_onoff_set_payload_OnOff
+	
+	fetch 2,mem_mesh_cb_generic_onoff_set
+	call callback_func
+
+	copy alarm,pdata
+	store 2,mem_mesh_alarm_temp
+
+	fetchr queue,1,mem_mesh_receive_element_number
+	ifetcht 1,alarm
+	call ali_mesh_ali_vendor_message_opcode_timing_finish
+
+	fetcht 1,mem_mesh_generic_onoff_set_payload_OnOff
+	fetchr queue,1,mem_mesh_receive_element_number
+	call ali_mesh_ali_vendor_message_opcode_generic_OnOff
+
+	fetch 2,mem_mesh_alarm_temp
+	copy pdata,alarm
+	setarg 0
+	istore 1,alarm
+	branch ali_mesh_ali_vendor_message_cb_timing_changed
+
+
+ali_mesh_ali_vendor_had_timing_cyclically:
+	fetch 4, mem_mesh_vendor_timer_current_time
+	arg SECONDS_OF_MIN, temp
+	idiv temp
+	call wait_div_end
+	remainder pdata
+	nrtn blank
+
+	fetch 4, mem_mesh_vendor_timer_current_time
+	arg SECONDS_OF_FOUR_DAYS, temp
+	isub temp, pdata      //格林威治时间1970年01月01日为周四,  这里减去四天，为了与周一对齐
+
+	arg SECONDS_OF_WEEK, temp
+	idiv temp
+	call wait_div_end
+	remainder pdata     //pdata:本周走过的秒数
+	arg SECONDS_OF_DAY, temp
+	idiv temp
+	call wait_div_end
+	remainder rega     //rega:当天走过的秒数
+	quotient queue    //queue:当前是周几；0:周一；1:周二；... ...6:周日
+	
+	setarg 0    //clear pdata
+	qset1 pdata
+	fetcht 1, mem_mesh_vendor_timer_timing_weekdays_cyclic
+	iand temp, pdata
+	rtn blank
+	deposit rega
+	arg SECONDS_OF_MIN, temp
+	idiv temp
+	call wait_div_end
+	quotient temp
+	setarg EIGHT_HOURS_TIME_ZONE_OFFSET
+	iadd temp, temp
+	fetch 2, mem_mesh_vendor_timer_timing_time_cyclic
+	isub temp, null
+	nrtn zero
+	fetch 1, mem_mesh_vendor_timer_timing_attr_para_cyclic
+	branch ali_mesh_ali_vendor_time_timeout
+
+
Index: program/mesh_protocol_stack/mesh_bearer_layer.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_bearer_layer.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_bearer_layer.prog	(working copy)
@@ -0,0 +1,109 @@
+
+/*
+	mesh协议中bearer layer
+	主要是负责mesh中实际发送数据包内容
+*/
+
+ali_mesh_bearer_layer_send_packet_by_network_layer:
+	bpatchx patch3d_5,mem_patch3d
+	jam ADV_PAIRING_MESH_MESSAGE_DURATION,mem_mesh_queue_ele_duration
+	fetch 1,mem_mesh_gatt_package_send_msg_id
+	store 1,mem_mesh_queue_ele_gatt_msg_id
+
+	fetch 1,mem_mesh_lower_transport_layer_payload_len
+	pincrease 11
+	add pdata,-2,loopcnt
+	//长度+11的原因
+	//uint8_t AD length
+	//uint8_t AD type:GAP_ADTYPE_MESH_MESSAGE
+	//uint8_t IVI & NID
+	//uint8_t CTL & TTL
+	//uint24_t SEQ
+	//uint16_t SRC
+	//uint16_t DST
+	store 1,mem_mesh_queue_ele_len
+	pincrease -1
+	//-1的原因
+	//uint8_t AD length
+	istore 1,contw
+	setarg GAP_ADTYPE_MESH_MESSAGE
+	istore 1,contw
+	arg mem_mesh_send_upper_layer_IVI_and_NID,contr
+	call memcpy_fast
+	fetch 2,mem_ui_state_map
+	isolate1 UI_STATE_BLE_CONNECTED,pdata
+	call ali_mesh_send_ble_data,true
+	fetchr rega,2,mem_mesh_rega_temp
+	call ali_mesh_advertising_bearer_layer_init_queue_param
+	branch queue_push
+
+ali_mesh_advertising_bearer_layer_init_queue_param:
+	add rega,ELEMENT_DEVICE_QUEUE_BUFFER_PTR,contr
+	ifetch 2,contr
+	store 2,mem_queue_ptr
+	arg mem_mesh_queue_ele_temp,rega
+	rtn
+
+ali_mesh_advertising_bearer_layer_load_packet_from_advertising_queue:
+	arg ali_mesh_advertising_bearer_layer_load_packet_from_advertising_queue_deal,regc
+	branch ali_mesh_check_all_element_info
+
+ali_mesh_advertising_bearer_layer_load_packet_from_advertising_queue_deal:
+	add rega,ELEMENT_DEVICE_UPPER_ADV_FLAG,contr
+	ifetch 1,contr
+	rtnne PACKET_IN_BEARER
+	setarg PACKET_IN_ADVERTING
+	add rega,ELEMENT_DEVICE_UPPER_ADV_FLAG,contw
+	istore 1,contw
+	branch ali_mesh_control_ble_advertising_on_advertising
+
+
+/*
+	app 回复的发包拆包逻辑
+*/
+ali_mesh_advertising_bearer_layer_send_packet_by_app_bearer:
+	call ali_mesh_advertising_bearer_layer_generate_header
+	add temp,13,pdata
+	store 1,mem_mesh_adv_data_len
+	call ali_mesh_advertising_add_adtype_flags
+	add temp,9,pdata
+	istore 1,contw
+	setarg GAP_ADTYPE_MANUFACTURER_SPECIFIC
+	istore 1,contw
+	fetch 8,mem_mesh_receive_service_uuid_ios_data_company_id
+	istore 8,contw
+	copy rega,contr
+	copy temp,loopcnt
+	call memcpy
+	branch mesh_le_send_adv
+
+ali_mesh_advertising_bearer_layer_generate_header:
+	setarg COMPANY_ID_ALIBABA_AND_VID_GATT
+	store 3,mem_mesh_receive_service_uuid_ios_data_company_id
+	setarg PROVISIONING_SEND_IOS_DATA
+	store 1,mem_mesh_receive_service_uuid_ios_data_provisioning_type
+	fetch 1,mem_k2_NID
+	store 1,mem_mesh_receive_service_uuid_ios_data_NID
+	fetch 1,mem_mesh_queue_ele_gatt_msg_id
+	store 1,mem_mesh_receive_service_uuid_ios_data_msg_id
+	
+	fetch 1,mem_mesh_queue_ele_duration
+	isolate1 BIT_OF_APP_PACKAGE_NUM,pdata
+	call ali_mesh_advertising_bearer_layer_send_packet_by_app_bearer_calc_param
+	store 1,mem_mesh_receive_service_uuid_ios_data_package_num
+	storet 1,mem_mesh_receive_service_uuid_ios_data_length
+	rtn
+
+
+ali_mesh_advertising_bearer_layer_send_packet_by_app_bearer_calc_param:
+	arg mem_mesh_queue_ele_payload+2,rega
+	arg MAX_APP_MSSAGE_PAYLOAD_LENGTH,temp
+	setarg 0x21		//
+	nrtn true
+	arg mem_mesh_queue_ele_payload+20,rega		//MAX_APP_MSSAGE_PAYLOAD_LENGTH+2
+	fetcht 1,mem_mesh_queue_ele_len
+	increase -18,temp		//MAX_APP_MSSAGE_PAYLOAD_LENGTH
+	setarg 0x22
+	rtn
+
+
Index: program/mesh_protocol_stack/mesh_ble_core_advertising.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_ble_core_advertising.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_ble_core_advertising.prog	(working copy)
@@ -0,0 +1,155 @@
+
+
+
+//0x01 GAP_ADTYPE_FLAGS
+//input:no default write mem_mesh_adv_data
+ali_mesh_advertising_add_adtype_flags:
+	arg mem_mesh_adv_data,contw
+	setarg 0x02
+	istore 1,contw
+	setarg GAP_ADTYPE_FLAGS
+	istore 1,contw
+	setarg 0x02
+	istore 1,contw
+	rtn
+
+//0x01 GAP_ADTYPE_FLAGS
+//input:no default write mem_mesh_adv_data
+ali_mesh_advertising_add_adtype_16bit_complete:
+	arg MESH_PROVISIONING_UUID,temp
+	setarg 0x03
+	istore 1,contw
+	setarg GAP_ADTYPE_16BIT_COMPLETE
+	istore 1,contw
+	istoret 2,contw
+	rtn
+
+/*
+	mesh 硬件接收scan 扫描包
+*/
+mesh_receive_advertising:
+	branch mesh_le_scan_adv
+
+mesh_le_scan_adv:
+	call le_enable
+	call le_init_adv
+	call mesh_le_wait_adv
+	nrtn match
+	fetch 1,mem_le_adv_rcv
+	pincrease 1
+	store 1,mem_le_adv_rcv
+	fetch 2,mem_mesh_cb_receive_advertising
+	call callback_func
+	branch le_disable
+
+mesh_le_wait_adv:
+	fetch 2,mem_mesh_scan_selete_next_ch
+	branch callback_func
+
+mesh_le_wait_adv_cb:
+	call mesh_le_calc_next_scan_channel
+	branch le_receive_adv
+
+mesh_le_calc_next_scan_channel:
+	fetch 1,mem_mesh_adv_scan_channel
+	pincrease 1
+	store 1,mem_mesh_adv_scan_channel
+	store 1,mem_le_ch_mapped
+	rtnne 40
+	jam 37,mem_mesh_adv_scan_channel
+	jam 37,mem_le_ch_mapped
+	rtn
+
+
+/*
+	mesh 解析标准广播数据
+	只分析ADV_IND/ADV_NONCONN_IND两种广播包
+*/
+mesh_check_ble_rx_packet:
+	fetch 1,mem_le_rxbuf
+	and pdata,0x0f,pdata
+	beq ADV_IND,ali_mesh_match_advertising_packet
+	beq ADV_NONCONN_IND,ali_mesh_match_advertising_packet
+	rtn
+
+ali_mesh_match_advertising_packet:
+	ifetcht 1,contr	//length
+	sub temp,ADV_PACKET_MIN_LENGTH,null
+	rtn positive	//过滤短包，包长度太短导致解析错误
+	sub temp,ADV_PACKET_MAX_LENGTH,null
+	nrtn positive	//过滤长包，包长度太长导致内存覆盖
+	add temp,-6,rega	//rega:减去address length
+	add contr,6,regb	//regb:指针偏移到regb
+
+ali_mesh_find_adv_ind_packet:
+	ifetcht 1,regb //length
+	sub temp,AD_TYPE_MIN_LENGTH,null
+	rtn positive	//过滤短包，包长度太短导致解析错误
+	sub temp,AD_TYPE_MAX_LENGTH,null
+	nrtn positive	//过滤长包，包长度太长导致内存覆盖
+	copy temp,pdata
+	rtn blank
+	bpatchx patch3d_6,mem_patch3d
+	ifetch 1,contr
+	beq GAP_ADTYPE_MANUFACTURER_SPECIFIC,ali_mesh_receive_adtype_manufacturer_specific
+	beq GAP_ADTYPE_MESH_MESSAGE,ali_mesh_receive_adtype_mesh_message
+	beq GAP_ADTYPE_128BIT_COMPLETE,ali_mesh_receive_adtype_128bit_uuid_complete
+//按照广播格式查询所有扫描到的广播数据
+	add temp,1,pdata
+	isub rega,null
+	rtn positive
+	iadd regb,regb
+	sub temp,-1,pdata
+	iadd rega,rega
+	copy rega,pdata
+	rtn blank
+	branch ali_mesh_find_adv_ind_packet
+
+
+mesh_le_send_adv:
+	fetch 1,mem_le_adv_transmit
+	pincrease 1
+	store 1,mem_le_adv_transmit
+	bpatchx patch3d_7,mem_patch3d
+	call le_enable
+	arg 39,loopcnt
+	arg mem_le_txheader,contr
+	arg mem_le_txheader_mesh_temp,contw
+	call memcpy_fast
+	jam 37,mem_le_ch_mapped
+	arg 1800,stop_watch
+	disable match
+
+mesh_le_send_adv_loop:
+	call le_init_adv
+	call mesh_le_send_adv_nonconn_ind
+	random pdata 
+	arg 0x1ff,temp
+	iand temp,pdata
+	add pdata,100,pdata
+	call delay
+	fetch 1,mem_le_ch_mapped
+	pincrease 1
+	store 1,mem_le_ch_mapped
+	bne 40,mesh_le_send_adv_loop
+	
+	arg 39,loopcnt
+	arg mem_le_txheader,contw
+	arg mem_le_txheader_mesh_temp,contr
+	call memcpy_fast
+	branch le_disable
+
+mesh_le_send_adv_nonconn_ind:
+	arg ADV_NONCONN_IND,temp
+	storet 1,mem_le_txheader
+	fetcht 1,mem_mesh_adv_data_len
+	add temp,6,pdata
+	store 1,mem_le_txlen
+	fetch 6,mem_le_lap
+	store 6,mem_le_txpayload
+	copy temp,loopcnt
+	arg mem_mesh_adv_data,contr
+	call memcpy_fast
+	branch le_transmit_norx
+
+
Index: program/mesh_protocol_stack/mesh_chip_peripherals.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_chip_peripherals.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_chip_peripherals.prog	(working copy)
@@ -0,0 +1,260 @@
+
+//input:mem_mesh_mic_cache_ptr is cache buffer ptr
+//data ptr is store mem_ccm_data_ptr
+//data length is store mem_ccm_data_len
+//cache space size is TRANSPORT_MIC_CACHE_SPACE_SIZE
+//cache space num is TRANSPORT_MIC_CACHE_SPACE_NUM
+//output:user is enable ,mean new packet
+ali_mesh_base_adt_cache:
+	bpatchx patch3e_0,mem_patch3e
+	fetcht 2,mem_ccm_data_ptr
+	fetch 1,mem_ccm_data_len
+	copy temp,contr
+	arg mem_k4_SALT,rega
+	arg mem_k4_T,alarm
+	call ali_mesh_encrypt_base_function_AES_CMAC
+	call disable_user
+	copy regc,pdata
+	iadd alarm,contr
+	fetcht 4,mem_k4_T
+	fetch 2,mem_mesh_mic_cache_ptr
+	copy pdata,rega
+//	arg mem_mesh_access_message_mic_cache,rega
+	arg TRANSPORT_MIC_CACHE_SPACE_NUM,loopcnt
+ali_mesh_base_adt_cache_loop:
+	ifetch 4,rega
+	branch ali_mesh_base_adt_cache_empty_space,blank
+	isub temp,null
+	rtn zero
+	increase TRANSPORT_MIC_CACHE_SPACE_SIZE,rega
+	loop ali_mesh_base_adt_cache_loop
+	fetch 2,mem_mesh_mic_cache_ptr
+	copy pdata,contw
+	add pdata,TRANSPORT_MIC_CACHE_SPACE_SIZE,contr
+//	arg mem_mesh_access_message_mic_cache,contw
+//	arg mem_mesh_access_message_mic_cache+TRANSPORT_MIC_CACHE_SPACE_SIZE,contr
+	arg TRANSPORT_MIC_CACHE_TOTAL_SIZE,loopcnt
+	call memcpy_fast
+	istoret 4,contw
+	branch enable_user
+ali_mesh_base_adt_cache_empty_space:
+	istoret 4,rega
+	branch enable_user
+
+/*
+	iic 读写eeprom接口
+	三元组、network key、aapplication key、device key、reset count
+	SEQ
+*/
+ali_mesh_chip_peripherals_load_data_from_eep:
+	call ali_mesh_chip_peripherals_load_three_tuple_from_eep
+	call ali_mesh_chip_peripherals_load_network_key_from_eep
+	call ali_mesh_chip_peripherals_load_application_key_from_eep
+	call ali_mesh_chip_peripherals_load_device_key_from_eep
+	call ali_mesh_chip_peripherals_load_reset_count_from_eep
+	call ali_mesh_chip_peripherals_load_seq_from_eep
+	branch ali_mesh_chip_peripherals_load_subscription_from_eep
+
+ali_mesh_chip_peripherals_load_three_tuple_from_eep:
+	arg MESH_EEP_THREE_TUPLE_LENGTH,temp
+	arg mem_mesh_three_tuple_ProductID,rega
+	arg MESH_EEP_THREE_TUPLE_OFFSET,regb
+	branch iicd_read_eep_data
+
+ali_mesh_chip_peripherals_load_network_key_from_eep:
+	arg MESH_EEP_NETWORK_KEY_LENGTH,temp
+	arg mem_mesh_Network_Key,rega
+	arg MESH_EEP_NETWORK_KEY_OFFSET,regb
+	call iicd_read_eep_data
+	fetch 1,mem_mesh_last_IV_Index_byte
+	store 1,mem_mesh_IV_Index+3
+	rtn
+
+ali_mesh_chip_peripherals_load_application_key_from_eep:
+	arg MESH_EEP_APPLICATION_KEY_LENGTH,temp
+	arg mem_mesh_application_key,rega
+	arg MESH_EEP_APPLICATION_KEY_OFFSET,regb
+	branch iicd_read_eep_data
+
+ali_mesh_chip_peripherals_load_device_key_from_eep:
+	arg MESH_EEP_DEVICE_KEY_LENGTH,temp
+	arg mem_mesh_Device_Key,rega
+	arg MESH_EEP_DEVICE_KEY_OFFSET,regb
+	branch iicd_read_eep_data
+
+ali_mesh_chip_peripherals_load_reset_count_from_eep:
+	rtn
+
+ali_mesh_chip_peripherals_load_seq_from_eep:
+	arg MESH_EEP_SEQ_LENGTH,temp
+	arg mem_mesh_send_message_SEQ,rega
+	arg MESH_EEP_SEQ_OFFSET,regb
+	branch iicd_read_eep_data
+
+ali_mesh_chip_peripherals_load_subscription_from_eep:
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_SUBSCRIPTION
+	arg MESH_EEP_SUBSCRIPTION_TOTAL_LENGTH,temp
+	arg mem_mesh_subscription_eep_temp,rega
+	arg MESH_EEP_SUBSCRIPTION_OFFSET,regb
+	call iicd_read_eep_data
+	call mesh_get_element_info_config
+	arg mem_mesh_subscription_eep_temp,contr
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,rega
+ali_mesh_chip_peripherals_load_subscription_from_eep_loop:
+	copy rega,contw
+	call memcpy16
+	copy regb,pdata
+	iadd rega,rega
+	loop ali_mesh_chip_peripherals_load_subscription_from_eep_loop
+	rtn
+
+mesh_receive_config_appkey_add_cb:
+	call ali_mesh_chip_peripherals_save_network_key_from_eep
+	call ali_mesh_chip_peripherals_save_application_key_from_eep
+	branch ali_mesh_chip_peripherals_save_device_key_from_eep
+
+ali_mesh_chip_peripherals_save_network_key_from_eep:
+	arg MESH_EEP_NETWORK_KEY_LENGTH,temp
+	arg mem_mesh_Network_Key,rega
+	arg MESH_EEP_NETWORK_KEY_OFFSET,regb
+	branch iicd_write_protect_eep_data
+
+ali_mesh_chip_peripherals_save_application_key_from_eep:
+	arg MESH_EEP_APPLICATION_KEY_LENGTH,temp
+	arg mem_mesh_application_key,rega
+	arg MESH_EEP_APPLICATION_KEY_OFFSET,regb
+	branch iicd_write_protect_eep_data
+
+ali_mesh_chip_peripherals_save_device_key_from_eep:
+	arg MESH_EEP_DEVICE_KEY_LENGTH,temp
+	arg mem_mesh_Device_Key,rega
+	arg MESH_EEP_DEVICE_KEY_OFFSET,regb
+	branch iicd_write_protect_eep_data
+
+mesh_store_new_seq_data:
+ali_mesh_chip_peripherals_save_seq_from_eep:
+	arg MESH_EEP_SEQ_LENGTH,temp
+	arg mem_mesh_send_message_SEQ,rega
+	arg MESH_EEP_SEQ_OFFSET,regb
+	branch iicd_write_protect_eep_data
+
+mesh_store_new_subscriptuion_list_data:
+	call ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep
+	arg MESH_EEP_SUBSCRIPTION_TOTAL_LENGTH,temp
+	arg mem_mesh_subscription_eep_temp,rega
+	arg MESH_EEP_SUBSCRIPTION_OFFSET,regb
+	branch iicd_write_protect_eep_data
+
+ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep:
+	call mesh_get_element_info_config
+	arg mem_mesh_subscription_eep_temp,contw
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,rega
+ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep_loop:
+	copy rega,contr
+	call memcpy16
+	copy regb,pdata
+	iadd rega,rega
+	loop ali_mesh_chip_peripherals_save_subscriptuion_list_from_eep_loop
+	rtn
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_debug:
+	arg LOGGING_DEBUG,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_info:
+	arg LOGGING_INFO,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_warning:
+	arg LOGGING_WARNING,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_error:
+	arg LOGGING_ERROR,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+logging_tx_critical:
+	arg LOGGING_CRITICAL,temp
+	branch logging_tx_common
+
+
+//input:rega is tx data ptr
+//loopcnt is tx data length
+//regb is logging type
+//temp is logging level
+logging_tx_common:
+	bpatchx patch3e_1,mem_patch3e
+	call push_stack
+	fetch 1,mem_mesh_core_feature
+	bbit1 MESH_FEATURE_DISABLE_LOG,pop_stack
+	call uartb_prepare_tx_register_push
+	setarg LUA_LOG_PACKET_HEADER
+	istore 1,contwu
+	setarg LUA_LOG_PAKCET_TYPE
+	istore 1,contwu
+	add loopcnt,4,pdata
+	istore 1,contwu
+	istorer temp,2,contwu
+	istorer regb,2,contwu
+	copy rega,contr
+	call uart_copy_tx_bytes_fast
+	setarg LUA_LOG_PACKET_TRAIL
+	istore 1,contwu
+	call uartb_send_register_pop
+	branch pop_stack
+
+/*
+	function name:uart init by mem
+	input:
+		mem_module_uart_rx_buffer、mem_module_uart_rx_buffer_end
+		mem_module_uart_tx_buffer、mem_module_uart_tx_buffer_end
+		mem_module_uarta_baud_rate
+		bit0 of mem_module_flag
+*/
+mesh_uart_init:
+	fetch 1,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_LOG
+	jam gpcfg_uartb_txd,core_gpio_conf+11
+	jam gpcfg_uartb_rxd|gpcfg_pullup,core_gpio_conf+12
+	call mesh_uart_init_buffer
+	arg 921600,temp
+	call uartb_calc_baud_rate_config
+	call uart_clock_select_main_freq_crystal
+	arg FUN_UART_CONTROL_ENABLE|FUN_UART_CONTROL_SETTING_RATE_BAUD,temp
+	storet 1,core_uartb_ctrl
+	rtn
+
+mesh_uart_init_buffer:
+	setarg mem_mesh_uart_log_rx_buff
+	store 2,mem_pdatatemp
+	setarg mem_mesh_uart_log_rx_buff_end
+	istore 2,contw
+	setarg mem_mesh_uart_log_tx_buff
+	istore 2,contw
+	setarg mem_mesh_uart_log_tx_buff_end
+	istore 2,contw
+	fetch 8,mem_pdatatemp
+	branch uartb_init_dma_mem
+
+
+
Index: program/mesh_protocol_stack/mesh_control_ble_advertising.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_control_ble_advertising.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_control_ble_advertising.prog	(working copy)
@@ -0,0 +1,240 @@
+
+//
+//mesh控制ble advertising广播逻辑的主流程
+ali_mesh_control_ble_adv_process:
+	call ali_mesh_control_ble_adv_tmall_packet
+	branch ali_mesh_control_ble_adv_app_packet
+
+//mesh 控制ble advertising 广播timer流程
+ali_mesh_control_ble_adv_timer_process:
+	call ali_mesh_advertising_unprovisioned_timer_interval_timer
+	branch ali_mesh_advertising_unprovisioned_timer
+
+//mesh打开ble advertising
+ali_mesh_control_ble_advertising_on_advertising:
+	jam DEVICE_BEACON_ON,mem_mesh_advertising_unprovisioned_device_beacon_switch
+	rtn
+
+//mesh关闭ble advertising
+ali_mesh_control_ble_advertising_off_advertising:
+	jam DEVICE_BEACON_OFF,mem_mesh_advertising_unprovisioned_device_beacon_switch
+	rtn
+
+
+//下面为static function
+
+/*
+	mesh app控制包回复
+*/
+ali_mesh_control_ble_adv_app_packet:
+	arg ali_mesh_control_ble_adv_app_packet_paired,regb
+	arg MESH_ADV_APP_MESSAGE_INTERVAL,rega
+	arg mesh_ble_adv_app,queue
+	branch ali_mesh_chip_timer_check_with_random_timer
+
+ali_mesh_control_ble_adv_app_packet_paired:
+	fetch 1,mem_mesh_provisioned_flag
+	rtnne PAIRED_STATUS					//非配网状态，不需要发送
+	arg ali_mesh_control_ble_adv_app_packet_paired_deal,regc
+	branch ali_mesh_check_all_element_info
+
+
+/*
+	mesh控制发送unprovisioned device beacon advertising
+	配网阶段包已经配网后tmall回复包
+*/
+ali_mesh_control_ble_adv_tmall_packet:
+	arg ali_mesh_control_ble_adv_tmall_packet_send_package,regb
+	arg MESH_ADV_TMALL_MESSAGE_INTERVAL,rega
+	arg mesh_ble_adv_tmall,queue
+	branch ali_mesh_chip_timer_check_with_random_timer
+
+//app 回复包的格式
+ali_mesh_control_ble_adv_app_packet_paired_deal:
+	add rega,ELEMENT_DEVICE_TRAN_PACKAGE_TYPE,contr
+	ifetch 1,contr
+	rtnbit0 BIT_UPPER_TRAN_APP_MESSAGE
+	call ali_mesh_advertising_bearer_layer_init_queue_param
+	call queue_get_new_ele
+	nrtn user
+	fetch 1,mem_mesh_queue_ele_len
+	pincrease -2	//uint8_t AD length & uint8_t AD type:GAP_ADTYPE_MESH_MESSAGE
+	store 1,mem_mesh_queue_ele_len	
+	//不会小于一包数据
+	fetch 1,mem_mesh_queue_ele_duration
+	//生命周期不减少
+	setflip BIT_OF_APP_PACKAGE_NUM,pdata
+	istore 1,regb
+	branch ali_mesh_advertising_bearer_layer_send_packet_by_app_bearer
+
+
+//控制不同状态发包情况
+ali_mesh_control_ble_adv_tmall_packet_send_package:
+	fetch 1,mem_mesh_provisioned_flag
+	beq PAIRED_STATUS,ali_mesh_control_ble_advertising_send_paired_packet
+	beq PAIRING_STATUS,ali_mesh_control_ble_advertising_send_pairing_packet
+	branch ali_mesh_control_ble_advertising_send_device_beacon_packet
+
+
+ali_mesh_control_ble_advertising_send_paired_packet:
+	arg ali_mesh_control_ble_advertising_send_paired_packet_deal,regc
+	branch ali_mesh_check_all_element_info
+
+ali_mesh_control_ble_advertising_send_paired_packet_deal:
+	call ali_mesh_advertising_bearer_layer_init_queue_param
+	call queue_get_new_ele
+	nrtn user
+	fetch 1,mem_mesh_queue_ele_duration
+	pincrease -1
+	istore 1,regb
+	bbit1 BIT_OF_ADV_IN_OFF,ali_mesh_control_ble_advertising_send_paired_packet_adv_in_off
+	and pdata,0x3f,pdata	//不判断最高位
+	call ali_mesh_control_ble_advertising_send_paired_packet_end_duration,blank	//周期到丢弃
+	fetchr rega,2,mem_mesh_rega_temp
+	add rega,ELEMENT_DEVICE_TRAN_PACKAGE_TYPE,contr
+	ifetch 1,contr
+	bbit1 BIT_UUPER_TRAN_PROXY_MESSAGE,ali_mesh_control_ble_advertising_send_paired_packet_end_duration_proxy
+	rtnbit0 BIT_UPPER_TRAN_TMALL_MESSAGE
+	arg mem_mesh_adv_data_len,contw
+	arg mem_mesh_queue_ele_len,contr
+	call memcpy32
+	branch mesh_le_send_adv
+
+ali_mesh_control_ble_advertising_send_paired_packet_end_duration_proxy:
+	arg mem_mesh_queue_ele_duration,rega
+	call queue_pop
+	call queue_empty
+	nrtn blank
+	fetchr rega,2,mem_mesh_rega_temp
+	add rega,ELEMENT_DEVICE_UPPER_ADV_FLAG,contw
+	setarg NULL_PACKET_ADVERTISING
+	istore 1,contw
+	branch ali_mesh_control_ble_advertising_off_advertising
+
+
+ali_mesh_control_ble_advertising_send_paired_packet_adv_in_off:
+	and pdata,0x3f,pdata	//不判断最高位
+	nrtn blank
+	fetchr rega,2,mem_mesh_rega_temp
+	add rega,ELEMENT_DEVICE_UPPER_ADV_FLAG,contw
+	setarg NULL_PACKET_ADVERTISING
+	istore 1,contw
+	branch queue_init
+	
+
+ali_mesh_control_ble_advertising_send_paired_packet_end_duration:
+	arg mem_mesh_queue_ele_duration,rega
+	call queue_pop
+	call queue_empty
+	nrtn blank
+	//传入不广播数据
+	jam ADV_PAIRING_MESH_MESSAGE_INTERVAL,mem_mesh_queue_ele_duration
+	branch queue_push
+
+
+ali_mesh_control_ble_advertising_send_device_beacon_packet:
+	call ali_mesh_config_device_uuid_by_three_tuple
+	call ali_mesh_send_Unprovisioned_Beacons_tmall
+	call ali_mesh_advertising_send_Unprovisioned_Beacons_Gatt
+	call ali_mesh_control_ble_advertising_device_beacon_check_duration
+	nrtn zero			//in advertising beacon duration
+	fetch 1,mem_mesh_provisioned_flag
+	beq SILENCE_BEACON_STATUS,ali_mesh_end_advertising_silence_device_beacon_packet
+	beq UNPROVISIONED_BEACON_STATUS,ali_mesh_end_advertising_unprovisioned_device_beacon_packet
+	rtn
+
+//广播一次生存周期减1
+//output:zero is end of duration
+ali_mesh_control_ble_advertising_device_beacon_check_duration:
+	fetch 1,mem_mesh_advertising_unprovisioned_device_beacon_duration
+	add pdata,-1,pdata
+	store 1,mem_mesh_advertising_unprovisioned_device_beacon_duration
+	rtn
+
+//静默广播生存周期完成关闭广播
+ali_mesh_end_advertising_silence_device_beacon_packet:
+	jam ADV_SILENCE_DEVICE_BEACON_INTERVAL,mem_mesh_advertising_unprovisioned_device_beacon_interval
+	branch ali_mesh_control_ble_advertising_off_advertising
+	
+//未配网广播生存周期完成关闭广播
+ali_mesh_end_advertising_unprovisioned_device_beacon_packet:
+	jam ADV_UNPROVISIONED_DEVICE_BEACON_DURATION,mem_mesh_advertising_unprovisioned_device_beacon_interval
+	branch ali_mesh_control_ble_advertising_off_advertising
+
+
+ali_mesh_control_ble_advertising_send_pairing_packet:
+	call ali_mesh_advertising_timer
+	branch mesh_le_send_adv
+
+
+/*
+	注册定时器功能
+*/
+ali_mesh_chip_timer_check_with_random_timer:
+	random pdata
+	and pdata,0x07,pdata
+	iadd rega,rega
+//input:queue is timer id
+//rega is timer count
+//regb is cb ptr
+ali_mesh_chip_timer_check:
+	fetch 1,mem_mesh_advertising_unprovisioned_device_beacon_switch
+	rtnne DEVICE_BEACON_ON
+	call timer_check
+	nrtn blank
+	copy rega,pdata
+	call timer_init
+	copy regb,pdata
+	branch callback_func
+
+
+//静默广播定时器10min后进入静默广播状态
+ali_mesh_advertising_unprovisioned_timer:
+	arg mem_mesh_advertising_unprovisioned_device_beacon_timer,regc
+	arg ali_mesh_advertising_unprovisioned_timeout, regb
+	branch timer_single_step_2B
+
+//定时器超时如果当前处于未配网广播状态，进入静默广播
+ali_mesh_advertising_unprovisioned_timeout:
+	fetch 1,mem_mesh_provisioned_flag
+	rtnne UNPROVISIONED_BEACON_STATUS
+	fetch 1,mem_mesh_UUID_FeatureFlag
+	set1 BIT_SILENCE_ADV_FLAG,pdata
+	store 1,mem_mesh_UUID_FeatureFlag
+	jam SILENCE_BEACON_STATUS,mem_mesh_provisioned_flag
+	branch ali_mesh_send_silence_device_beacon_init_advertising
+
+
+//控制广播发送间隙的timer
+//不同状态广播间隔不一样
+ali_mesh_advertising_unprovisioned_timer_interval_timer:
+	arg mem_mesh_advertising_unprovisioned_device_beacon_interval,regc
+	arg ali_mesh_advertising_unprovisioned_timer_interval_timeout,regb
+	branch timer_single_step
+
+//控制广播发送超时
+//处于未配网广播或者静默广播状态，进入下一次广播
+//处于配网状态，清除配网状态
+ali_mesh_advertising_unprovisioned_timer_interval_timeout:
+	fetch 1,mem_mesh_provisioned_flag
+	beq SILENCE_BEACON_STATUS,ali_mesh_send_silence_device_beacon_init_advertising
+	beq UNPROVISIONED_BEACON_STATUS,ali_mesh_send_unprovisioned_device_beacon_init_advertising
+//	beq PAIRED_STATUS,ali_mesh_send_paired_packet_init_advertising
+	rtn
+
+//ali_mesh_send_paired_packet_init_advertising:
+//	jam NULL_PACKET_ADVERTISING,mem_mesh_upper_tran_layer_packet_advertising
+//	rtn
+
+//进入下一次未配网广播广播周期
+ali_mesh_send_unprovisioned_device_beacon_init_advertising:
+	jam ADV_UNPROVISIONED_DEVICE_BEACON_DURATION,mem_mesh_advertising_unprovisioned_device_beacon_duration
+	branch ali_mesh_control_ble_advertising_on_advertising
+
+//进入下一次静默广播广播周期
+ali_mesh_send_silence_device_beacon_init_advertising:
+	jam ADV_SILENCE_DEVICE_BEACON_DURATION,mem_mesh_advertising_unprovisioned_device_beacon_duration
+	branch ali_mesh_control_ble_advertising_on_advertising
+
+
+
Index: program/mesh_protocol_stack/mesh_encrypt_function.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_encrypt_function.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_encrypt_function.prog	(working copy)
@@ -0,0 +1,626 @@
+/*
+	mesh加密算法层，包含配网阶段的算法和配网后的算法
+*/
+
+
+/*
+	provision random输入，计算出provision confirmation等参数
+*/
+
+ali_mesh_encrypt_calc_random_data:
+	call ali_mesh_encrypt_calc_random_data_calc_ConfirmationKey
+	call ali_mesh_encrypt_calc_random_data_calc_AuthValueProv
+	call ali_mesh_encrypt_calc_random_data_calc_AuthValueDevice
+	call ali_mesh_encrypt_calc_random_data_calc_ConfirmationCloud
+	call ali_mesh_encrypt_calc_random_data_calc_ConfirmationDevice
+	branch ali_mesh_encrypt_calc_random_data_calc_DeviceKey
+
+//calc confirmation key
+//ConfirmationKey=SHA256(Random A||RandomB||"ConfirmationKey")[0:15]
+ali_mesh_encrypt_calc_random_data_calc_ConfirmationKey:
+	call ali_mesh_encrypt_load_randomAB_to_sha256
+	arg mem_mesh_sha256_ConfirmationKey_ascii,contr
+	arg 0xf,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii
+	call ali_mesh_encrypt_base_function_sha256_calc
+	arg memresult,contr
+	arg mem_mesh_Confirmationkey,contw
+	branch memcpy16
+
+
+//calc Auth value prov
+//AuthValueProv = SHA256(PID,MAC,Secret,random B||random A)[0:15]
+ali_mesh_encrypt_calc_random_data_calc_AuthValueProv:
+	call ali_mesh_encrypt_load_three_tuple_to_sha256
+ifdef V1_2
+	call ali_mesh_encrypt_load_randomBA_to_sha256
+endif
+	call ali_mesh_encrypt_base_function_sha256_calc
+	arg memresult,contr
+	arg mem_mesh_AuthValueProv,contw
+	branch memcpy16
+
+//calc Auth Value Device
+//AuthValueDevice= SHA256(PID,MAC,Secret,random B||random A)[0:15]
+ali_mesh_encrypt_calc_random_data_calc_AuthValueDevice:
+	call ali_mesh_encrypt_load_three_tuple_to_sha256
+ifdef V1_2
+	call ali_mesh_encrypt_load_randomAB_to_sha256
+endif
+	call ali_mesh_encrypt_base_function_sha256_calc
+	arg memresult,contr
+	arg mem_mesh_AuthValueDevice,contw
+	branch memcpy16
+
+// calc Confirmation Cloud
+//Confirmation Cloud=AES-CMAC(Random B || Random A || AuthValueProv)
+//k=ConfirmationKey
+ali_mesh_encrypt_calc_random_data_calc_ConfirmationCloud:
+	fetch 8,mem_mesh_provisioning_random_A
+	store 8,mem_mesh_ConfirmationCloud_RandomA
+	fetch 8,mem_mesh_provisioning_random_B
+	store 8,mem_mesh_ConfirmationCloud_RandomB
+	
+	arg mem_mesh_calc_ConfirmationCloud_data,contr
+	arg mem_mesh_Confirmationkey,rega
+	arg mem_mesh_ConfirmationCloud,alarm
+	branch ali_mesh_encrypt_base_function_AES_CMAC_32Byte
+
+
+// calc confirmation Device
+//Confirmation Device=AES-CMAC(Random A || Random B || AuthValueDevice)
+//k=ConfirmationKey
+ali_mesh_encrypt_calc_random_data_calc_ConfirmationDevice:
+	arg mem_mesh_calc_ConfirmationDevice_data,contr
+	arg mem_mesh_Confirmationkey,rega
+	arg mem_mesh_ConfirmationDevice,alarm
+	branch ali_mesh_encrypt_base_function_AES_CMAC_32Byte
+
+
+//calc Device Key
+//DeviceKey = SHA256(ConfirmationCloud||"DeviceKey")[0:15]
+ali_mesh_encrypt_calc_random_data_calc_DeviceKey:
+	arg mem_mesh_ConfirmationCloud,contr
+	arg 0x10,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii
+	arg mem_mesh_sha256_DeviceKey_ascii,contr
+	arg 9,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii
+	call ali_mesh_encrypt_base_function_sha256_calc
+	arg memresult,contr
+	arg mem_mesh_Device_Key,contw
+	branch memcpy16
+
+
+ali_mesh_encrypt_load_randomBA_to_sha256:
+	call ali_mesh_encrypt_load_randomB_to_sha256
+ali_mesh_encrypt_load_randomA_to_sha256:
+	arg mem_mesh_provisioning_random_A,contr
+	branch ali_mesh_encrypt_base_function_sha256_load_data_64bit
+
+ali_mesh_encrypt_load_randomAB_to_sha256:
+	call ali_mesh_encrypt_load_randomA_to_sha256
+ali_mesh_encrypt_load_randomB_to_sha256:
+	arg mem_mesh_provisioning_random_B,contr
+	branch ali_mesh_encrypt_base_function_sha256_load_data_64bit
+
+
+ali_mesh_encrypt_load_three_tuple_to_sha256:
+	arg mem_mesh_three_tuple_ProductID,contr
+	arg 4,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma
+	arg mem_mesh_three_tuple_MAC,contr
+	arg 6,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma
+	arg mem_mesh_three_tuple_secret,contr
+	arg 0x10,loopcnt
+ifdef V1_2
+	branch ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma
+else
+	branch ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii
+endif
+
+
+//calc provisioning data
+//Encrupted provisioning data = prov_data XOR SessionKey
+ali_mesh_encrypt_calc_provisioning_data:
+	call ali_mesh_encrypt_calc_provisioning_data_calc_SessionKey
+//	branch ali_mesh_encrypt_calc_provisioning_data_xor_prov_data
+ali_mesh_encrypt_calc_provisioning_data_xor_prov_data:
+	arg mem_mesh_Encrypt_Provisioning_Data,rega
+	arg memresult,regb
+	arg 0xb,loopcnt
+ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop:
+	ifetch 2,rega
+	ifetcht 2,regb
+	ixor temp,pdata
+	istore 2,rega
+	increase 2,rega
+	increase 2,regb
+	loop ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop
+	rtn
+
+
+//calc SessionKey
+//SessionKey = SHA256(ConfirmationCloud||"SessionKey")[0:15]
+//output:sessionKey in memresult
+ali_mesh_encrypt_calc_provisioning_data_calc_SessionKey:
+	arg mem_mesh_ConfirmationCloud,contr
+	arg 0x10,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii
+	arg mem_mesh_sha256_SessionKey_ascii,contr
+	arg 0xa,loopcnt
+	call ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii
+	branch ali_mesh_encrypt_base_function_sha256_calc
+
+
+
+ali_mesh_encrypt_calc_network_key_by_k2:
+	arg mem_mesh_Network_Key,contr
+	arg mem_k2_N,contw
+	call memcpy16
+
+/************k2 function*************/
+//input:mem_k2_N N data
+ali_mesh_encrypt_base_function_k2:
+/*******************generate T*************************/
+	arg mem_k2_N,contr
+	arg mem_k2_SALT,rega
+	arg mem_k2_T,alarm
+	call ali_mesh_encrypt_base_function_AES_CMAC_16Byte
+/*******************generate T1************************/
+	arg mem_k2_T1,alarm
+	arg 0x01,regb
+	setarg 0
+	call ali_mesh_encrypt_base_function_k2_AES_CMAC_T
+	fetch 1,mem_k2_T1+15
+	and pdata,0x7f,pdata
+	store 1,mem_k2_NID
+/*******************generate T2************************/
+	arg mem_k2_T2,alarm
+	arg 0x02,regb
+	setarg 0x10
+	arg mem_k2_T1,rega
+	call ali_mesh_encrypt_base_function_k2_AES_CMAC_T
+/*******************generate T3************************/
+	arg mem_k2_T3,alarm
+	arg 0x03,regb
+	setarg 0x10
+	arg mem_k2_T2,rega
+	branch ali_mesh_encrypt_base_function_k2_AES_CMAC_T
+
+ali_mesh_encrypt_base_function_k4:
+/*******************generate T*************************/
+	arg mem_mesh_application_key,contr
+	arg mem_k4_SALT,rega
+	arg mem_k4_T,alarm
+	call ali_mesh_encrypt_base_function_AES_CMAC_16Byte
+	arg mem_k4_id6_01,contr
+	arg mem_k4_T,rega
+	arg mem_k4_k4N,alarm
+	setarg 4
+	call ali_mesh_encrypt_base_function_AES_CMAC
+	fetch 1,mem_k4_k4N+15
+	and pdata,0x3f,pdata
+	set1 TRANSPORT_HEAD_BIT_AKF,pdata
+	store 1,mem_mesh_transport_AID
+	rtn
+
+ali_mesh_encrypt_base_function_k3:
+/*******************generate T*************************/
+	arg mem_mesh_Network_Key,contr
+	arg mem_k3_SALT,rega
+	arg mem_k3_T,alarm
+	call ali_mesh_encrypt_base_function_AES_CMAC_16Byte
+	arg mem_k3_id64_01,contr
+	arg mem_k3_T,rega
+	arg mem_k3_k4N,alarm
+	setarg 5
+	call ali_mesh_encrypt_base_function_AES_CMAC
+
+	call ali_mesh_proxy_init_adv
+	
+	fetch 2,mem_ui_state_map
+	rtnbit1 UI_STATE_BLE_CONNECTED
+	jam 1,mem_le_adv_enable
+	rtn
+
+
+//********* network PDU header obfuscation *********//
+ali_mesh_encrypt_obfuscation_deceypt_send_message:
+	arg mem_mesh_send_upper_layer_CTL_and_TTL,rega
+	fetch 7,mem_mesh_send_upper_layer_DST	
+	branch ali_mesh_encrypt_obfuscation_deceypt
+ali_mesh_encrypt_obfuscation_deceypt_recevie_message:
+	arg mem_mesh_message_TTL,rega
+	fetch 7,mem_mesh_message_DST
+ali_mesh_encrypt_obfuscation_deceypt:
+	store 7,mem_mesh_Privacy_Plaintext_Privacy_Random
+	setarg 0
+	store 5,mem_mesh_Privacy_Plaintext_Zero_String
+	call ali_mesh_encrypt_generate_PECB
+	fetch 6,mem_mesh_PECB
+	ifetcht 6,rega
+	ixor temp,pdata
+	istore 6,rega
+	rtn
+
+ali_mesh_encrypt_generate_PECB:
+ali_mesh_encrypt_generate_privacy_random:
+	fetch 4,mem_mesh_IV_Index
+	store 4,mem_mesh_Privacy_Plaintext_IV_Index
+// generate PECB with AES-128/ function e
+ali_mesh_encrypt_base_function_generate_PECB:
+	arg mem_k2_PrivacyKey,contr
+	call load_key
+	arg mem_mesh_Privacy_Plaintext,contr
+	call load_data128
+	call do_aes_ocb
+	arg mem_mesh_PECB,contw
+	branch store_aes_result
+
+
+/************sha256 function*************/
+//input  : (big endian)
+// data addr : contr
+// point : call clear_sha256_chunk
+ali_mesh_encrypt_base_function_sha256_load_data_64bit:
+	arg 8,loopcnt
+//input  : (big endian)
+// data addr : contr
+// data len : loopcnt
+// point : call clear_sha256_chunk
+ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii:
+	call ali_mesh_encrypt_base_function_sha256_check_first_load_data
+	call ali_mesh_encrypt_base_function_hex2ascii
+	branch ali_mesh_encrypt_base_function_sha256_store_dataptr
+ali_mesh_encrypt_base_function_sha256_load_data_without_hex2ascii:
+	call ali_mesh_encrypt_base_function_sha256_check_first_load_data
+	call memcpy
+	branch ali_mesh_encrypt_base_function_sha256_store_dataptr
+ali_mesh_encrypt_base_function_sha256_load_data_with_hex2ascii_add_comma:
+	call ali_mesh_encrypt_base_function_sha256_check_first_load_data
+	call ali_mesh_encrypt_base_function_hex2ascii
+	setarg COMMA
+	istore 1,contw
+ali_mesh_encrypt_base_function_sha256_store_dataptr:
+	copy contw,pdata
+	store 2,mem_mesh_sha256_data_end_addr
+	rtn
+ali_mesh_encrypt_base_function_sha256_check_first_load_data:
+	copy contr,temp
+	copy loopcnt,rega
+	fetch 2,mem_mesh_sha256_data_end_addr
+	copy pdata,contw
+	fetch 1,mem_mesh_sha256_load_first_data_flag
+	call ali_mesh_encrypt_base_function_sha256_first_load_data,blank
+	copy temp,contr
+	copy rega,loopcnt
+	rtn
+ali_mesh_encrypt_base_function_sha256_first_load_data:
+	jam 1,mem_mesh_sha256_load_first_data_flag
+	call ali_mesh_encrypt_base_function_sha256_clear_data_chunk				//初始化sha256
+	arg mem_mesh_sha256_chunk_start,contw
+	rtn
+
+ali_mesh_encrypt_base_function_sha256_clear_data_chunk:
+	arg 0x20,loopcnt
+	arg mem_mesh_sha256_chunk_start,contw
+	branch memset0
+
+ // output :
+ // sha256 result : memresult(big endian)
+ali_mesh_encrypt_base_function_sha256_calc:
+ 	call ali_mesh_encrypt_base_function_sha256_load_data_end
+ 	arg MESH_ENCRYPT_SHA256_FUNCTION_INPUT,regb
+	arg mem_mesh_sha256_chunk_start,rega
+	fetchr loopcnt,8,mem_mesh_sha256_data_len_byte
+	call logging_tx_debug
+	call ali_mesh_encrypt_base_function_sha256_input_data_init_inverse
+
+	setarg mem_mesh_sha256_chunk_start
+	store 2,mem_mesh_sha256_chunk_ptr
+	call sha_init
+ali_mesh_encrypt_base_function_sha256_calc_loop:
+	fetch 2,mem_mesh_sha256_chunk_ptr
+	copy pdata,contr
+	arg memdat,contw
+	call memcpy64
+	call sha
+	fetch 2,mem_mesh_sha256_chunk_ptr
+	pincrease 64
+	store 2,mem_mesh_sha256_chunk_ptr
+	fetch 1,mem_mesh_sha256_chunk_count
+	pincrease -1
+	store 1,mem_mesh_sha256_chunk_count
+	nbranch ali_mesh_encrypt_base_function_sha256_calc_loop,blank
+	call sha_result
+	arg memresult,rega
+	arg 0x20,loopcnt
+	call inverse_data
+ 	arg MESH_ENCRYPT_SHA256_FUNCTION_RESULT,regb
+	arg memresult,rega
+	arg 0x20,loopcnt
+	branch logging_tx_debug
+
+
+ali_mesh_encrypt_base_function_sha256_load_data_end:
+	jam 0,mem_mesh_sha256_load_first_data_flag
+	fetch 2,mem_mesh_sha256_data_end_addr
+	copy pdata,contw
+	arg 0x80,temp	//第一个bit补1，后面补0
+	istoret 1,contw
+	arg mem_mesh_sha256_chunk_start,temp
+	isub temp,pdata
+	store 8,mem_mesh_sha256_data_len_byte
+	//计算bit数
+	lshift3 pdata,temp
+	storet 8,mem_mesh_sha256_data_len_bit
+	rshift4 pdata,regc
+	rshift2 regc,regc
+	and pdata,0x3f,pdata
+	sub pdata,55,null
+//55-(len mod 63)<0,内存填充448以后的，需要填充到第二块
+	ncall ali_mesh_encrypt_base_function_sha256_add_chunk,positive
+	add regc,1,pdata
+	store 1,mem_mesh_sha256_chunk_count
+	mul32 pdata,64,rega		//计算块的数量地址
+	lshift4 pdata,regc			//计算4byte包的数量
+	increase -1,regc			//最好一个包长度不交换
+	setarg mem_mesh_sha256_chunk_start + DECREASED_FOUR
+	iadd rega,rega
+	fetch 4,mem_mesh_sha256_data_len_bit
+	istore 4,rega
+	rtn
+
+
+//增加块数量
+ali_mesh_encrypt_base_function_sha256_add_chunk:
+	increase 1,regc
+	rtn
+	
+ali_mesh_encrypt_base_function_sha256_input_data_init_inverse:
+	arg mem_mesh_sha256_chunk_start,rega
+
+//每4个字节，需要高低位交换一下
+//input :
+// data addr : rega
+ali_mesh_encrypt_base_function_sha256_data_inverse_4Byte:
+	arg 4,loopcnt
+	call inverse_data
+	increase 2,rega	//下一块
+	add regc,-1,regc
+	nbranch ali_mesh_encrypt_base_function_sha256_data_inverse_4Byte,zero
+	rtn
+
+
+// input : 
+// data ptr : contr
+// data save ptr : contw 
+// data len : loopcnt
+ali_mesh_encrypt_base_function_hex2ascii:
+	ifetch 1,contr
+	rshift4 pdata,temp
+	call ali_mesh_encrypt_base_function_dialog2uchar
+	istoret 1,contw
+	and pdata,0x0f,temp
+	call ali_mesh_encrypt_base_function_dialog2uchar
+	istoret 1,contw
+	loop ali_mesh_encrypt_base_function_hex2ascii
+	rtn
+ali_mesh_encrypt_base_function_dialog2uchar:
+	sub temp,9,null
+	branch ali_mesh_encrypt_base_function_dialog2uchar_num,positive
+	add temp,87,temp
+	rtn
+ali_mesh_encrypt_base_function_dialog2uchar_num:	
+	add temp,48,temp
+	rtn
+
+
+ali_mesh_encrypt_base_function_AES_CMAC_32Byte:
+	setarg 0x20 
+	branch ali_mesh_encrypt_base_function_AES_CMAC
+
+ali_mesh_encrypt_base_function_AES_CMAC_16Byte:
+	setarg 0x10
+	branch ali_mesh_encrypt_base_function_AES_CMAC
+
+
+//pdata:data length
+//regb:last data
+ali_mesh_encrypt_base_function_k2_AES_CMAC_T:
+	fetcht 1,mem_k2_P_len
+	increase 1,temp
+	iadd temp,temp
+	storet 1,mem_AES_CMAC_data_length
+	copy rega,contr
+	copy pdata,loopcnt
+	call memcpy_fast
+	fetcht 1,mem_k2_P_len
+	copy temp,loopcnt
+	call memcpy
+	copy regb,pdata
+	istore 1,contw
+	arg mem_k2_T,rega
+	branch ali_mesh_encrypt_base_function_AES_CMAC + 3
+
+
+//input:
+//pdata:data length
+//contr:data prt
+//rega:key ptr
+//output:
+//alarm:output prt
+ali_mesh_encrypt_base_function_AES_CMAC:
+	store 1,mem_AES_CMAC_data_length
+	copy pdata,loopcnt
+	call memcpy_fast
+	copy rega,contr
+	arg mem_AES_CMAC_k,contw
+	call memcpy16
+ 	arg MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_M,regb
+	arg memdat,rega
+	fetchr loopcnt,1,mem_AES_CMAC_data_length
+	call logging_tx_debug
+ 	arg MESH_ENCRYPT_AES_CMAC_FUNCTION_INPUT_K,regb
+	arg mem_AES_CMAC_k,rega
+	arg 16,loopcnt
+	call logging_tx_debug
+	call function_AES_CMAC
+	copy alarm,contw
+	call store_aes_result
+ 	arg MESH_ENCRYPT_AES_CMAC_FUNCTION_RESULT,regb
+	copy alarm,rega
+	arg 16,loopcnt
+	branch logging_tx_debug
+
+
+//////**AES-CCM**////////
+ali_B0_block_generate:
+ 	fetcht 1,mem_ccm_type
+ 	branch  ali_block_generate
+ali_A_block_generate:
+	force 0x01,temp
+ali_block_generate:
+	force regidx_data,regext_index
+	fetch 2,mem_nonce_ptr
+	copy pdata,contr
+	ifetch 3,contr
+	lshift8 pdata,pdata
+	ior temp, regext
+	increase 1,regext_index
+	ifetch 4,contr
+	copy pdata,regext
+	increase 1,regext_index
+	ifetch 4,contr
+	copy pdata,regext
+	increase 1,regext_index
+	byteswap rega,regext
+	lshift16 regext,regext
+	ifetch 2,contr
+	ior regext,regext
+	rtn
+ali_generate_mic:
+	fetch 1,mem_ccm_data_len
+	copy pdata,rega
+	call ali_B0_block_generate
+	call do_aes_ocb
+	force regidx_result,regext_index
+	deposit regext
+	copy rega,loopcnt
+	fetcht 2,mem_ccm_data_ptr
+	copy temp,contr
+	call padding_data
+	branch generate_mic_loop
+/*
+function name:ali_CCM_encrypt
+input:pdata is the encrypt data length
+temp is encrypt data ptr
+*/
+ali_CCM_encrypt_64Bit:
+	jam MIC_SIZE_64BIT,mem_ccm_type
+	branch ali_CCM_encrypt_function
+ali_CCM_encrypt:
+	jam MIC_SIZE_32BIT,mem_ccm_type
+	branch ali_CCM_encrypt_function
+ali_CCM_encrypt_function:
+	store 1,mem_ccm_data_len
+	storet 2,mem_ccm_data_ptr
+	bpatchx patch3e_2,mem_patch3e
+	call ali_generate_mic
+	force regidx_xor,regext_index
+	iforce regext
+	force regidx_result+1,regext_index
+	copy regext,pdata
+	force regidx_xor+1,regext_index
+	iforce regext
+	force 0,rega
+	copy temp,regc
+	call ali_A_block_generate
+	call do_aes_ctr
+	call ali_fetcht_ccm_mic
+	storet 8,mem_ccm_mic
+	fetch 1,mem_ccm_data_len
+	copy pdata,regb
+	call ali_aes_crypt_data
+	fetcht 1,mem_ccm_data_len
+	fetch 2,mem_ccm_data_ptr
+	iadd temp,rega
+	fetcht 8,mem_ccm_mic
+	istoret 4,rega
+	fetch 1,mem_ccm_type
+	sub pdata,MIC_SIZE_32BIT,pdata
+	rtn blank
+	istoret 8,rega
+	rtn
+/*
+function name:ali_CCM_decrypt_function
+input:pdata is the encrypt data length
+temp is encrypt data ptr
+*/
+ali_CCM_decrypt_64Bit:
+	jam MIC_SIZE_64BIT,mem_ccm_type
+	branch ali_CCM_decrypt_function
+ali_CCM_decrypt:
+	jam MIC_SIZE_32BIT,mem_ccm_type
+	branch ali_CCM_decrypt_function
+ali_CCM_decrypt_function:
+	store 1,mem_ccm_data_len
+	storet 2,mem_ccm_data_ptr
+	copy temp,regc
+	copy pdata,regb
+	iadd regc,contr
+	bpatchx patch3e_3,mem_patch3e
+	ifetch 8,contr
+	force regidx_xor,regext_index
+	iforce regext
+	force regidx_xor+1,regext_index
+	rshift32 pdata,pdata
+	iforce regext
+	force 0,rega
+	call ali_A_block_generate
+	call do_aes_ctr
+	call ali_fetcht_ccm_mic
+	storet 8,mem_ccm_mic
+	call ali_aes_crypt_data
+	call ali_generate_mic
+	call ali_fetcht_ccm_mic
+	fetch 1,mem_ccm_type
+	beq MIC_SIZE_64BIT,ali_CCM_decrypt_function_check_mic64
+	storet 4,mem_ccm_mic+4
+	fetch 4,mem_ccm_mic
+	fetcht 4,mem_ccm_mic+4
+	isub temp,pdata
+	rtn
+
+ali_CCM_decrypt_function_check_mic64:
+	fetch 8,mem_ccm_mic
+	isub temp,pdata
+	rtn
+
+ali_fetcht_ccm_mic:
+	force regidx_result,regext_index
+	deposit regext
+	force regidx_result+1,regext_index
+	copy regext,temp
+	lshift16 temp,temp
+	lshift16 temp,temp
+	ior temp,temp
+   	rtn
+ali_aes_crypt_data: 
+	increase 1,rega
+	call ali_A_block_generate
+	copy regc,contr
+	call aes_load_xor
+	call do_aes_ctr
+	call store_enc_data
+	increase 16,regc
+	increase -16,regb
+	branch ali_aes_crypt_data,positive
+	rtn
+//////**AES-CCM**////////
+
+
+
+
Index: program/mesh_protocol_stack/mesh_fast_pairing.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_fast_pairing.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_fast_pairing.prog	(working copy)
@@ -0,0 +1,530 @@
+
+
+/*
+	阿里极速配网协议配网阶段包的解析与组包
+*/
+
+
+/*
+	function name mesh_send_Unprovisioned_Beacons
+	input:three tuple data 
+	mem_mesh_three_tuple_ProductID
+	mem_mesh_three_tuple_MAC
+	mem_mesh_three_tuple_secret
+*/
+mesh_send_Unprovisioned_Beacons:
+	jam UNPROVISIONED_BEACON_STATUS,mem_mesh_provisioned_flag
+	jam 0x00,mem_mesh_Provisioning_State_Flag
+	jam 1,mem_mesh_advertising_unprovisioned_device_beacon_switch
+	setarg ADV_UNPROVISIONED_DEVICE_BEACON_TIMEOUT
+	store 2, mem_mesh_advertising_unprovisioned_device_beacon_timer
+	rtn
+
+//初始化UUID 三元组参数和feature Flag
+ali_mesh_config_device_uuid_by_three_tuple:
+	setarg COMPANY_IDENTIFIERS_ALIBABA
+	store 2,mem_mesh_Device_UUID
+	fetch 1,mem_mesh_Device_PID
+	istore 1,contw
+	fetch 4,mem_mesh_three_tuple_ProductID
+	call inverse_data_4Byte
+	istore 4,contw
+	fetch 6,mem_le_lap
+	istore 6,contw
+	fetch 3,mem_mesh_UUID_FeatureFlag
+	istore 3,contw
+	rtn
+
+ali_mesh_send_Unprovisioned_Beacons_tmall:
+	call ali_mesh_init_adv_data_tmall_Unprovisioned_beacons_package
+	branch mesh_le_send_adv
+
+ali_mesh_init_adv_data_tmall_Unprovisioned_beacons_package:
+//mem Beacon Tmall Length
+	jam 0x15,mem_mesh_adv_data_len
+	setarg 0x14
+	store 1,mem_mesh_adv_data
+	setarg GAP_ADTYPE_MESH_BEACON
+	istore 1,contw
+	setarg UNPROVISIONED_DEVICE_BEACON
+	istore 1,contw
+ali_mesh_advertising_send_Unprovisioned_Beacons_store_device_uuid:
+	arg mem_mesh_Device_UUID,contr
+	call memcpy16
+	fetch 2,mem_mesh_OOB_information
+	istore 2,contw
+	rtn
+
+
+ali_mesh_advertising_send_Unprovisioned_Beacons_Gatt:
+	fetch 1,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_APP_PAIRING
+	call ali_mesh_init_adv_data_gatt_Unprovisioned_beacons_package
+	branch mesh_le_send_adv
+
+ali_mesh_init_adv_data_gatt_Unprovisioned_beacons_package:
+	jam 0x1d,mem_mesh_adv_data_len
+	call ali_mesh_advertising_add_adtype_flags
+	call ali_mesh_advertising_add_adtype_16bit_complete
+	call ali_mesh_advertising_add_adtype_service_data
+	branch ali_mesh_advertising_send_Unprovisioned_Beacons_store_device_uuid
+
+//input:temp is uuid MESH_PROVISIONING_UUID
+ali_mesh_advertising_add_adtype_service_data:
+	setarg 0x15
+	istore 1,contw
+	setarg GAP_ADTYPE_SERVICE_DATA
+	istore 1,contw
+	istoret 2,contw
+	rtn
+
+/*
+
+input:
+	temp is len
+	contr is read ptr
+*/
+
+ali_mesh_receive_adtype_manufacturer_specific:
+	add temp,-1,loopcnt
+	call ali_mesh_receive_provisioning_package_check_header
+	nrtn user
+	ifetch 1,contr	//provisioning type
+	beq PROVISIONING_RANDOM,ali_mesh_advertising_receive_Privisioning_Random
+	beq PROVISIONING_DATA,ali_mesh_advertising_receive_Privisioning_Data
+	beq PROVISIONING_IOS_DATA,ali_mesh_advertising_receive_Privisioning_ios_Data
+	rtn
+
+
+//receive provisioning random
+ali_mesh_advertising_receive_Privisioning_Random:
+	call ali_mesh_advertising_receive_Privisioning_Random_check_states
+	nrtn user
+ali_mesh_advertising_calc_encrypt_random_data:
+	call ali_mesh_encrypt_calc_random_data
+//	call mesh_reset_adv_timer
+	call ali_mesh_advertising_send_Provisioning_Confirmation
+	branch loggint_tx_info_send_confirmation_packet
+//send provisioning confirmation
+ali_mesh_advertising_send_Provisioning_Confirmation:
+	arg PROVISIONING_PACKET_CONFIRMATION_MAC+PROVISIONING_PACKET_CONFIRMATION_DEVICE,temp
+	call ali_mesh_advertising_send_packet_common
+	setarg PROVISIONING_CONFIRMATION
+	istore 1,contw
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	istore 2,contw
+	arg mem_mesh_ConfirmationDevice,contr
+	branch memcpy16
+
+//output:disable user mean is cannot true package
+ali_mesh_advertising_receive_Privisioning_Random_check_states:
+	call disable_user
+	ifetcht 2,contr
+	arg mem_mesh_provisioning_random_A,contw
+	call memcpy16
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	isub temp,null
+	nrtn zero									//MAC地址不对
+
+	//ios APP 配网会先发送config
+//	fetch 1,mem_mesh_provisioned_flag
+//	rtnne UNPROVISIONED_BEACON_STATUS	//不处于静默广播状态
+		
+	fetch 1,mem_mesh_Provisioning_State_Flag
+	rtnbit1 RECEIVE_PROVISIONING_RANDOM
+	set1 RECEIVE_PROVISIONING_RANDOM,pdata			// FLAG bit1:Provisioning Confirmation
+	store 1,mem_mesh_Provisioning_State_Flag
+
+	jam PAIRING_STATUS,mem_mesh_provisioned_flag		//
+
+	call loggint_tx_info_receive_random_packet
+	branch enable_user
+
+//receive provisioning data
+ali_mesh_advertising_receive_Privisioning_Data:
+	copy contr,rega
+	fetch 1,mem_mesh_provisioned_flag
+	rtneq PAIRED_STATUS	//不处于已配网状态
+	fetch 1,mem_mesh_Provisioning_State_Flag
+	rtnbit0 RECEIVE_PROVISIONING_RANDOM
+	rtnbit1 RECEIVE_PROVISIONING_DATA
+	copy rega,contr
+	arg 0x16,loopcnt
+	arg mem_mesh_Encrypt_Provisioning_Data,contw
+	call memcpy
+	//没有收到random，重复收到data
+	call ali_mesh_encrypt_calc_provisioning_data
+	
+	fetcht 2,mem_mesh_provisioning_data_Mac_addr
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	isub temp,null
+	nrtn zero
+ali_mesh_resolve_Privisioning_Data_package:
+	call loggint_tx_info_receive_data_packet
+	fetch 1,mem_mesh_Provisioning_State_Flag
+	set1 RECEIVE_PROVISIONING_DATA,pdata
+	store 1,mem_mesh_Provisioning_State_Flag
+
+	call ali_mesh_encrypt_calc_network_key_by_k2
+
+	fetch 1,mem_mesh_last_IV_Index_byte
+	store 1,mem_mesh_IV_Index+3
+	call ali_mesh_advertising_send_Provisioning_Complete
+	branch loggint_tx_info_send_complete_packet
+
+
+//send provisioning complete
+ali_mesh_advertising_send_Provisioning_Complete:
+	arg PROVISIONING_PACKET_COMPLETE_MAC,temp
+	call ali_mesh_advertising_send_packet_common
+	setarg PROVISIONING_COMPLETE
+	istore 1, contw
+	fetch 6,mem_mesh_three_tuple_MAC
+	istore 6,contw
+	rtn
+
+ali_mesh_advertising_receive_Privisioning_ios_Data:
+	arg MAX_LENGTH_PRIVISIONING_CONTROL_MSG_ANDROID,regb
+	branch ali_mesh_resolve_app_control_msg_package
+
+//tmall send provisioning packet head
+//input:temp is data lenth,不包括type字节
+ali_mesh_advertising_send_packet_common:
+	bpatchx patch3e_4,mem_patch3e
+	call ali_mesh_advertising_reset_adv_timer
+	setarg 0x8fff		//about 11s
+	store 2,mem_mesh_send_packet_timeout
+	call ali_mesh_control_ble_advertising_on_advertising
+	add temp,PROVISIONING_PACKET_LENGTH_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE+PROVISIONING_PACKET_LENGTH_FLAGS,pdata
+	store 1,mem_mesh_adv_data_len
+	call ali_mesh_advertising_add_adtype_flags
+	add temp,PROVISIONING_PACKET_AD_TYPE_COMPANY_ID_VID_PROVISIONING_TYPE,pdata
+	istore 1,contw
+	setarg GAP_ADTYPE_MANUFACTURER_SPECIFIC
+	istore 1,contw
+	setarg COMPANY_IDENTIFIERS_ALIBABA
+	byteswap pdata,pdata
+	istore 2,contw
+	fetch 1,mem_mesh_receive_VID
+	istore 1,contw
+	rtn
+
+
+//压力测试时，成功率比较高的时间
+//mesh广播超时11s左右，一个包最多发送11s
+ali_mesh_advertising_timer:
+//未配网设备，不开启定时器
+	fetch 4,mem_mesh_adv_last_time
+	nbranch ali_mesh_advertising_check_adv_timer,blank
+	branch ali_mesh_advertising_reset_adv_timer
+
+/*
+	if(newTime - lastTime)>8fff(about 11s)
+		stop adv
+*/
+ali_mesh_advertising_check_adv_timer:
+	deposit clkn_bt
+	fetcht 4,mem_mesh_adv_last_time
+	isub temp,temp
+	fetch 2,mem_mesh_send_packet_timeout
+	isub temp,null
+	rtn positive
+ali_mesh_advertising_adv_timer_timeout:
+	call ali_mesh_control_ble_advertising_off_advertising
+	fetch 2,mem_mesh_cb_pairing_fail
+	branch callback_func
+ali_mesh_advertising_reset_adv_timer:
+	deposit  clkn_bt
+	store 4,mem_mesh_adv_last_time
+	rtn
+
+
+logging_tx_debug_receive_provisioning_packet:
+	add contr,-3,rega
+	arg MESH_RECEIVE_PROVISIONING_PACKET,regb
+	branch logging_tx_debug
+
+loggint_tx_info_receive_random_packet:
+	arg 1,loopcnt
+	arg MESH_RECEIVE_PROVISIONING_RANDOM_PACKET,regb
+	arg mem_mesh_Provisioning_State_Flag,rega
+	branch logging_tx_info
+
+loggint_tx_info_send_confirmation_packet:
+	fetchr loopcnt,1,mem_mesh_adv_data_len
+	arg MESH_SEND_PROVISIONING_CONFIRMATION_PACKET,regb
+	arg mem_mesh_adv_data,rega
+	branch logging_tx_info
+
+loggint_tx_info_receive_data_packet:
+	arg 1,loopcnt
+	arg MESH_RECEIVE_PROVISIONING_DATA_PACKET,regb
+	arg mem_mesh_Provisioning_State_Flag,rega
+	branch logging_tx_info
+
+
+loggint_tx_info_send_complete_packet:
+	fetchr loopcnt,1,mem_mesh_adv_data_len
+	arg MESH_SEND_PROVISIONING_COMPLETE_PACKET,regb
+	arg mem_mesh_adv_data,rega
+	branch logging_tx_info
+
+
+
+ali_mesh_receive_adtype_128bit_uuid_complete:
+	call ali_mesh_receive_adtype_128bit_uuid_complete_store_uuid
+	nrtn user		//check compand ID & VID
+	fetch 1,mem_mesh_receive_service_uuid_ios_data_provisioning_type
+	beq PROVISIONING_IOS_DATA,ali_mesh_ios_gatt_packet_parse_provisioning_app_control
+ali_mesh_ios_gatt_packet_pairing_type:
+	fetch 1,mem_mesh_provisioned_flag
+	rtneq PAIRED_STATUS		//pairing status
+	rtneq SILENCE_BEACON_STATUS	//silence beacon status
+	fetch 2,mem_mesh_receive_service_uuid_mac
+	fetcht 2,mem_mesh_three_tuple_MAC+4
+	isub temp,null
+	nrtn zero						//check Mac legel
+	arg mem_mesh_receive_service_uuid_msg_id,rega
+	arg MAX_LENGTH_PRIVISIONING_PAIRING_MSG_IOS,regb
+	call ali_mesh_app_control_package_check_integrity
+	rtn user
+	bpatchx patch3e_5,mem_patch3e
+	fetch 1,mem_mesh_receive_service_uuid_provisioning_type
+	beq PROVISIONING_RANDOM,ali_mesh_ios_gatt_packet_parse_provisioning_random
+	beq PROVISIONING_DATA,ali_mesh_ios_gatt_packet_parse_provisioning_data
+	beq PROVISIONING_CONFIG,ali_mesh_ios_gatt_packet_parse_provisioning_config
+	rtn
+
+
+ali_mesh_ios_gatt_packet_parse_provisioning_random:
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	store 2,mem_mesh_gatt_package_receive_MAC
+	arg mem_mesh_gatt_package_receive_MAC,contr
+	branch ali_mesh_advertising_receive_Privisioning_Random
+
+
+ali_mesh_ios_gatt_packet_parse_provisioning_data:
+//后期看能不能复用优化代码
+	fetch 1,mem_mesh_provisioned_flag
+	rtneq PAIRED_STATUS	//不处于已配网状态	
+	fetch 1,mem_mesh_Provisioning_State_Flag
+	rtnbit0 RECEIVE_PROVISIONING_RANDOM
+	rtnbit1 RECEIVE_PROVISIONING_DATA
+	arg mem_mesh_gatt_package_receive_msg_payload,contr
+	arg 0x14,loopcnt
+	arg mem_mesh_KeyFresh_and_Update_flag,contw
+	call memcpy
+	call ali_mesh_encrypt_calc_provisioning_data_calc_SessionKey
+	arg mem_mesh_KeyFresh_and_Update_flag,rega
+	arg memresult,regb
+	arg 0x0a,loopcnt
+	call ali_mesh_encrypt_calc_provisioning_data_xor_prov_data_loop
+	branch ali_mesh_resolve_Privisioning_Data_package
+
+
+ali_mesh_ios_gatt_packet_parse_provisioning_config:
+	fetch 1,mem_mesh_provisioned_flag
+	rtnne UNPROVISIONED_BEACON_STATUS
+	jam PAIRING_STATUS,mem_mesh_provisioned_flag
+
+ali_mesh_ios_gatt_packet_send_provisioning_config_ack:
+	arg PROVISIONING_CONFIG_ACK_MAC+PROVISIONING_CONFIG_ACK_FIELD,temp
+	call ali_mesh_advertising_send_packet_common
+	setarg PROVISIONING_CONFIG_ACK
+	istore 1,contw
+	fetch 2,mem_mesh_three_tuple_MAC+4
+	istore 2,contw
+	setarg PROVISIONING_CONFIG_ACK_NOTE
+	istore 1,contw
+	rtn
+
+ali_mesh_ios_gatt_packet_parse_provisioning_app_control:
+//	fetch 1,mem_mesh_provisioned_flag
+//	rtnne PAIRED_STATUS		//not pairing status
+	arg mem_mesh_receive_service_uuid_ios_data_NID,contr
+	arg MAX_LENGTH_PRIVISIONING_CONTROL_MSG_IOS,regb
+ali_mesh_resolve_app_control_msg_package:
+	bpatchx patch3e_6,mem_patch3e
+	ifetch 1,contr
+	copy contr,rega
+	fetcht 1,mem_k2_NID
+	isub temp,null
+	nrtn zero
+	call ali_mesh_advertising_reset_adv_timer				//接收到正确的APP包，reset timer
+	call ali_mesh_app_control_package_check_integrity
+	rtn user
+	jam MESH_MESSAGE_APP,mem_mesh_network_packet_type
+	fetcht 1,mem_mesh_gatt_package_receive_msg_total_length
+	increase 1,temp
+	arg mem_mesh_gatt_package_receive_msg_payload,contr
+	branch ali_mesh_network_layer_recevice_network_pdu
+
+
+ali_mesh_receive_adtype_128bit_uuid_complete_store_uuid:
+	arg mem_mesh_receive_service_uuid_company_id,contw
+	call memcpy16
+	arg mem_mesh_receive_service_uuid_company_id,rega
+	arg 16,loopcnt
+	call inverse_data
+	arg 16,loopcnt
+	arg mem_mesh_receive_service_uuid_company_id,contr
+	branch ali_mesh_receive_provisioning_package_check_header
+
+ali_mesh_receive_provisioning_package_check_header:
+	call disable_user
+	ifetcht 2,contr
+	setarg COMPANY_IDENTIFIERS_ALIBABA
+	byteswap pdata,pdata
+	isub temp,null
+	nrtn zero	//判断company id和VID是否正确
+	ifetch 1,contr
+	store 1,mem_mesh_receive_VID
+	call enable_user
+	branch logging_tx_debug_receive_provisioning_packet
+
+
+/*
+input:
+	regb max payload data size
+	rega is packet ptr
+output:
+	enable user is mean old packet
+	mem_mesh_fast_gatt_ios_msg_payload is output payload ptr
+*/
+ali_mesh_app_control_package_check_integrity:
+	bpatchx patch3e_7,mem_patch3e
+	call ali_mesh_app_control_package_check_MsgId_legal
+	branch ali_mesh_app_control_package_check_rev_complete
+
+
+ali_mesh_app_control_package_check_rev_complete:
+	add rega,GATT_PACKAGE_PACKAGE_NUM,contr
+	ifetcht 1,contr
+	rshift4 temp,pdata
+	beq 1,ali_mesh_gatt_package_check_integrity_unsegment
+ali_mesh_gatt_package_check_integrity_segment:
+	sub pdata,MAX_GATT_PACKAGE_NUM,null
+	nbranch enable_user,positive	//分段过多,包接收错误，不解析
+	copy pdata,loopcnt
+	call ali_mesh_gatt_package_check_integrity_segment_expect_package_num
+	and temp,0x0f,queue
+	isub queue,null		//是否为最后一包
+	call ali_mesh_gatt_package_check_integrity_segment_calc_total_length,zero
+	increase -1,queue
+	fetch 1,mem_mesh_gatt_package_receive_msg_num
+	qisolate1 pdata
+	branch enable_user,true		//小包重传
+	qset1 pdata
+	store 1,mem_mesh_gatt_package_receive_msg_num
+	add rega,GATT_PACKAGE_LENGTH,contr
+	ifetch 1,contr
+	copy pdata,loopcnt
+	copy regb,pdata
+	imul32 queue,pdata
+	arg mem_mesh_gatt_package_receive_msg_payload,contw
+	iadd contw,contw
+	call memcpy_fast
+	fetch 1,mem_mesh_gatt_package_receive_msg_num
+	isub regc,null
+	ncall enable_user,zero
+	nbranch ali_mesh_gatt_package_store_receive_msg_buffer,zero		//没有接收完整
+ali_mesh_gatt_package_check_integrity_segment_complete:
+	call ali_mesh_gatt_package_clear_receive_msg_buffer				//complete packet 
+	branch disable_user
+
+//计算包长度regb*(总包数-1)+最后一包长度
+ali_mesh_gatt_package_check_integrity_segment_calc_total_length:
+	pincrease -1
+	imul32 regb,pdata
+	add rega,GATT_PACKAGE_LENGTH,contr
+	ifetcht 1,contr
+	iadd temp,pdata
+	store 1,mem_mesh_gatt_package_receive_msg_total_length
+	rtn
+
+ali_mesh_gatt_package_check_integrity_segment_expect_package_num:
+	arg 0,regc
+ali_mesh_gatt_package_check_integrity_segment_expect_package_num_loop:
+	add loopcnt,-1,queue
+	qset1 regc
+	loop ali_mesh_gatt_package_check_integrity_segment_expect_package_num_loop
+	rtn
+
+
+ali_mesh_gatt_package_store_receive_msg_buffer:
+	fetch 2,mem_mesh_gatt_package_receive_msg_buffer_ptr
+	copy pdata,contw
+	arg mem_mesh_gatt_package_receive_msg_buffer_temp,contr
+	arg 33,loopcnt
+	branch memcpy_fast
+
+//单包不保存，每次上报接收到数据
+ali_mesh_gatt_package_check_integrity_unsegment:
+	ifetch 1,contr
+	copy pdata,loopcnt
+	store 1,mem_mesh_gatt_package_receive_msg_total_length
+	arg mem_mesh_gatt_package_receive_msg_payload,contw
+	call memcpy
+	branch disable_user
+
+
+//检测MSG ID是否合法
+ali_mesh_app_control_package_check_MsgId_legal:
+	jam GATT_RECEIVE_TIMEOUT,mem_mesh_gatt_receive_msg_timer
+	call ali_mesh_gatt_package_get_MsgId
+	//检查第一块buffer的id
+	fetcht 2,mem_mesh_gatt_packet_receive_msg_buffer1
+	isub temp,null
+	//与接收到的id相等
+	branch ali_mesh_gatt_package_load_receive_msg_buffer1,zero
+	sub temp,0,null
+	//id=0 意味为空
+	branch ali_mesh_gatt_package_load_receive_msg_buffer1,zero
+	//检查第二块buffer的id
+	fetcht 2,mem_mesh_gatt_packet_receive_msg_buffer2
+	isub temp,null
+	//与接收到的id相等
+	branch ali_mesh_gatt_package_load_receive_msg_buffer2,zero
+	sub temp,0,null
+	//id=0 意味为空
+	branch ali_mesh_gatt_package_load_receive_msg_buffer2,zero
+	//last package not receive complete, new package receive ,discard last package
+	call ali_mesh_gatt_package_clear_receive_msg_buffer
+	call ali_mesh_gatt_package_get_MsgId
+	branch ali_mesh_gatt_package_load_receive_msg_buffer1
+
+//if MsgId=0,set MsgId=0x100
+ali_mesh_gatt_package_get_MsgId:
+	ifetch 1,rega
+	rtn blank
+	set1 8,pdata
+	rtn
+
+ali_mesh_gatt_package_load_receive_msg_buffer1:
+	store 2,mem_mesh_gatt_packet_receive_msg_buffer1
+	setarg mem_mesh_gatt_packet_receive_msg_buffer1
+	branch ali_mesh_gatt_package_load_receive_msg_buffer
+ali_mesh_gatt_package_load_receive_msg_buffer2:
+	store 2,mem_mesh_gatt_packet_receive_msg_buffer2
+	setarg mem_mesh_gatt_packet_receive_msg_buffer2
+	branch ali_mesh_gatt_package_load_receive_msg_buffer
+ali_mesh_gatt_package_load_receive_msg_buffer:
+	store 2,mem_mesh_gatt_package_receive_msg_buffer_ptr
+	copy pdata,contr
+	arg mem_mesh_gatt_package_receive_msg_buffer_temp,contw
+	arg GATT_RECEIVE_MSG_BUFFER_SIZE,loopcnt
+	branch memcpy_fast
+
+
+ali_mesh_gatt_package_receive_timer:
+	arg mem_mesh_gatt_receive_msg_timer,regc
+	arg ali_mesh_gatt_package_clear_receive_msg_buffer, regb
+	branch timer_single_step
+
+ali_mesh_gatt_package_clear_receive_msg_buffer:
+	arg mem_mesh_gatt_packet_receive_msg_buffer1,contw
+	arg GATT_RECEIVE_MSG_BUFFER_SIZE+GATT_RECEIVE_MSG_BUFFER_SIZE,loopcnt
+	branch clear_mem
+
+
+
Index: program/mesh_protocol_stack/mesh_health_message.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_health_message.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_health_message.prog	(working copy)
@@ -0,0 +1,118 @@
+
+/*
+	mesh里面configuration和health指令的解析
+*/
+
+ali_mesh_access_layer_config_or_health_message_opcode:
+	fetch 1,mem_mesh_configuration_health_message_opcode
+	beq MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_NO_HEAD,ali_mesh_access_layer_config_or_health_message_opcode_node_reset
+	beq MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_ADD_NO_HEAD,ali_mesh_message_config_modle_subscription_add
+	beq MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_DELETE_NO_HEAD,ali_mesh_message_config_modle_subscription_delete
+	rtn
+
+
+ali_mesh_access_layer_config_or_health_message_opcode_node_reset:
+	call ali_mesh_access_layer_send_config_node_reset_status
+	fetch 2,mem_mesh_cb_receive_node_reset
+	branch callback_func
+ali_mesh_access_layer_send_config_node_reset_status:
+	setarg MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MESSAGE_OPCODE_CONFIG_NODE_RESET_STATUS_NO_HEAD
+	istore 1,contw
+	jam 2,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message
+
+
+ali_mesh_message_config_modle_subscription_add:
+	call ali_mesh_message_config_modle_subscription_status
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_SUBSCRIPTION
+	call ali_mesh_message_config_modle_subscription_check_element
+	call ali_mesh_message_config_modle_subscription_add_value_address
+	fetch 2,mem_mesh_cb_subscriptuion_list_changed
+	branch callback_func
+
+	
+ali_mesh_message_config_modle_subscription_delete:
+	call ali_mesh_message_config_modle_subscription_status
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_SUBSCRIPTION
+	call ali_mesh_message_config_modle_subscription_check_element
+	fetcht 2,mem_mesh_subscription_value_address
+	rshift8 temp,pdata
+	rshift4 pdata,pdata
+	beq 0x0c,ali_mesh_message_config_modle_subscription_delete_group_addr
+	call ali_mesh_message_config_modle_subscription_check_value_address
+	nrtn user
+	setarg 0
+	istore 2,rega
+	fetch 2,mem_mesh_cb_subscriptuion_list_changed
+	branch callback_func
+
+ali_mesh_message_config_modle_subscription_delete_group_addr:
+	setarg -1
+	istore SUBSCRIPTION_MAX_COUNT,rega
+	istore SUBSCRIPTION_MAX_COUNT,contw
+	fetch 2,mem_mesh_cb_subscriptuion_list_changed
+	branch callback_func
+
+ali_mesh_message_config_modle_subscription_check_value_address:
+	arg SUBSCRIPTION_MAX_COUNT,loopcnt
+ali_mesh_message_config_modle_subscription_check_value_address_loop:
+	ifetch 2,rega
+	arg 0xffff,regb
+	isub regb,null
+	branch enable_user,zero
+	isub temp,null
+	branch enable_user,zero
+ali_mesh_message_config_modle_subscription_check_value_address_loop_empty:
+	increase 2,rega
+	loop ali_mesh_message_config_modle_subscription_check_value_address_loop
+	call disable_user
+	rtn
+
+
+ali_mesh_message_config_modle_subscription_status:
+	setarg MESH_CONFIGURATION_AND_HEALTH_MESSAGE_OPCODE_HEADER
+	store 1,mem_mesh_access_layer_payload
+	setarg MESH_MESSAGE_OPCODE_CONFIG_MODEL_SUBSCRIPTION_STATUS_NO_HEAD
+	istore 1,contw
+	setarg MESH_SUCCESS
+	istore 1,contw
+	fetch 6,mem_mesh_subscription_element_address
+	istore 6,contw
+	jam 9,mem_mesh_access_layer_payload_len
+	branch ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer
+
+ali_mesh_message_config_modle_subscription_check_element:
+	call mesh_get_element_info_config
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,rega
+	fetch 2,mem_mesh_subscription_element_address
+	fetcht 2,mem_mesh_Unicast_Address
+	byteswap temp,temp
+	isub temp,pdata
+	imul32 regb,pdata
+	iadd rega,rega
+	rtn
+
+ali_mesh_message_config_modle_subscription_add_value_address:
+	fetcht 2,mem_mesh_subscription_value_address
+	arg SUBSCRIPTION_MAX_COUNT,loopcnt
+ali_mesh_message_config_modle_subscription_add_value_address_loop:
+	ifetch 2,rega
+	branch ali_mesh_message_config_modle_subscription_add_value_address_in,blank
+	arg 0xffff,regb
+	isub regb,null
+	branch ali_mesh_message_config_modle_subscription_add_value_address_in,zero
+	increase 2,rega
+	loop ali_mesh_message_config_modle_subscription_add_value_address_loop
+	rtn
+
+ali_mesh_message_config_modle_subscription_add_value_address_in:
+	byteswap temp,temp	//地址高低位交换后存入eeprom
+	istoret 2,rega
+	rtn
+
+
+
Index: program/mesh_protocol_stack/mesh_init_function.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_init_function.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_init_function.prog	(working copy)
@@ -0,0 +1,108 @@
+
+/*
+	mesh init 函数操作
+*/
+ali_mesh_init:
+	call init_memp
+
+	setarg mesh_check_ble_rx_packet
+	store 2,mem_mesh_cb_receive_advertising
+
+	setarg mesh_idle_process
+	store 2,mem_cb_idle_process
+
+	setarg ali_mesh_network_layer_relay_access_message
+	store 2,mem_mesh_cb_network_relay
+
+	setarg mesh_receive_config_appkey_add_cb
+	store 2,mem_mesh_cb_receive_config_appkey_add
+
+	setarg mesh_store_new_subscriptuion_list_data
+	store 2,mem_mesh_cb_subscriptuion_list_changed
+
+	setarg mesh_store_new_seq_data
+	store 2,mem_mesh_cb_seq_changed
+
+	setarg mesh_cb_event_timer
+	store 2,mem_cb_event_timer
+
+	setarg ali_mesh_access_layer_check_access_message_opcode
+	store 2,mem_mesh_cb_receive_access_message
+
+	setarg mesh_le_wait_adv_cb
+	store 2,mem_mesh_scan_selete_next_ch
+
+	setarg mesh_le_receive_data
+	store 2,mem_cb_att_write
+
+	setarg ali_mesh_proxy_process_bb_event
+	store 2,mem_cb_bb_event_process
+
+	jam 36,mem_mesh_adv_scan_channel
+	call ali_mesh_ali_vendor_message_indication_info_reset_tid
+
+	bpatchx patch3f_0,mem_patch3f
+	call mesh_uart_init
+	call mesh_iic_init
+	arg mem_mesh_Network_Key,rega
+	arg MESH_CODE_INIT,regb
+	arg 1,loopcnt
+	call logging_tx_info
+
+	call ali_mesh_chip_peripherals_load_data_from_eep
+	call mesh_inverse_three_tuple_MAC
+	fetch 1,mem_mesh_Network_Key
+	beq 0xff,mesh_send_Unprovisioned_Beacons
+
+	call ali_mesh_encrypt_base_function_k3
+	call ali_mesh_encrypt_base_function_k4
+	call ali_mesh_encrypt_calc_network_key_by_k2
+	branch ali_mesh_ali_vendor_message_opcode_device_power_on
+
+
+mesh_inverse_three_tuple_MAC:
+	fetch 6,mem_mesh_three_tuple_MAC
+	call inverse_data_6Byte
+	store 6,mem_le_lap
+	rtn
+
+mesh_get_element_info_config:
+	fetchr loopcnt,1,mem_mesh_element_number
+	fetchr rega,2,mem_mesh_element_device_ptr
+	fetchr regb,2,mem_mesh_element_device_length
+	rtn
+
+
+mesh_idle_process:
+	call ali_mesh_time_function
+	call ali_mesh_control_ble_adv_process
+	call ali_mesh_upper_transport_layer_control_packet
+	call ali_mesh_advertising_bearer_layer_load_packet_from_advertising_queue
+	branch mesh_receive_advertising
+
+
+mesh_cb_event_timer:
+	call ali_mesh_control_ble_adv_timer_process
+	branch ali_mesh_gatt_package_receive_timer
+
+
+ali_mesh_check_all_element_info:
+	call mesh_get_element_info_config
+ali_mesh_check_all_element_info_loop:
+	call ali_mesh_more_element_push_stack
+	copy regc,pdata
+	call callback_func
+	call ali_mesh_more_element_pop_stack
+	copy regb,pdata
+	iadd rega,rega
+	loop ali_mesh_check_all_element_info_loop
+	rtn
+
+
+mesh_iic_init:
+//	jam 0,0x8081
+	jam gpcfg_output_high,core_gpio_conf+2
+	jam gpcfg_iic_scl|gpcfg_pullup,core_gpio_conf+1
+	jam gpcfg_iic_sda|gpcfg_pullup,core_gpio_conf+0
+	branch clear_eeprom_size_2k
+
Index: program/mesh_protocol_stack/mesh_lower_transport_layer.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_lower_transport_layer.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_lower_transport_layer.prog	(working copy)
@@ -0,0 +1,150 @@
+/*
+	mesh中接收到lower transport包判断
+	是Unsegmented包，直接上传到upper transport layer
+	是Segmented包，重组后上传到upper transport layer
+*/
+
+ali_mesh_lower_transport_layer_receive_lower_transport_PDU:
+	bpatchx patch3f_1,mem_patch3f
+	fetch 1,mem_mesh_message_Transport_Head
+	bbit1 TRANSPORT_HEAD_BIT_SEG,ali_mesh_lower_transport_layer_receive_lower_transport_PDU_segmented_message
+	jam 0,mem_mesh_ASZMIC
+	branch ali_mesh_upper_transport_layer_receive_unsegmented_access_message
+
+//segmented message reassembly
+ali_mesh_lower_transport_layer_receive_lower_transport_PDU_segmented_message:
+	call ali_mesh_lower_transport_layer_receive_SegAccMess_resolve_SZMIC_SeqZero_SegON
+	rtn user
+	call ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockAck
+	rtn user
+	call ali_mesh_lower_transport_layer_receive_segmented_access_message_store_segment
+	branch ali_mesh_lower_transport_layer_receive_segmented_access_message_decrypt_segment
+
+//提取SZMIC/SeqZero/SegO/SegN
+//分别存储到SZMIC、SegO、SegN、SeqZero
+ali_mesh_lower_transport_layer_receive_SegAccMess_resolve_SZMIC_SeqZero_SegON:
+	call disable_user
+	arg 3,loopcnt
+	arg mem_mesh_message_segment_access_SZMIC_SeqZero_SegO_SegN,rega
+	call inverse_data
+	fetchr rega, 3,mem_mesh_message_segment_access_SZMIC_SeqZero_SegO_SegN
+	and rega,0x1f,temp
+	storet 1,mem_mesh_segmented_access_message_SegN
+	fetch 1, mem_mesh_segmented_access_message_SegN_upper_limit
+	isub temp, null
+	nbranch enable_user, positive
+	
+	rshift4 rega,pdata
+	rshift pdata,pdata
+	and pdata,0x1f,temp
+	storet 1,mem_mesh_segmented_access_message_SegO
+	rshift4 pdata,pdata
+	rshift pdata,pdata
+	arg 0x1fff,rega
+	iand rega,temp
+	copy pdata,regb
+	fetch 2,mem_mesh_segmented_access_message_SeqZero
+	isub temp,null
+	ncall ali_mesh_lower_transport_layer_receive_segmented_access_message_recover_SeqZero,zero
+	storet 2,mem_mesh_segmented_access_message_SeqZero
+	rshift8 regb,pdata
+	rshift4 pdata,pdata
+	rshift pdata,pdata
+	store 1,mem_mesh_segmented_access_message_SZMIC
+	store 1,mem_mesh_ASZMIC
+	rtn
+
+ali_mesh_lower_transport_layer_receive_segmented_access_message_recover_SeqZero:
+	setarg 0
+	store 4,mem_mesh_segmented_access_message_BlockAck
+	jam 0,mem_mesh_segmented_access_message_current_length
+	rtn
+
+
+//检查blockAck标志,返回值mem_mesh_segmented_access_message_receive_finish
+//1表示收到成功
+ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockAck:
+	call disable_user
+	fetch 1,mem_mesh_segmented_access_message_SegO
+	copy pdata,queue
+	fetch 4,mem_mesh_segmented_access_message_BlockAck
+	qisolate1 pdata
+	branch enable_user,true
+	qset1 pdata
+	store 4,mem_mesh_segmented_access_message_BlockAck
+	fetcht 1,mem_mesh_segmented_access_message_SegN
+	add temp,1,loopcnt
+ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockAck_loop:
+	add loopcnt,-1,queue
+	qisolate1 pdata
+	nrtn true
+	loop ali_mesh_lower_transport_layer_receive_segmented_access_message_check_blockAck_loop
+	jam 1,mem_mesh_segmented_access_message_receive_finish
+	rtn
+
+
+//存储segment m内容，放到mem_mesh_segmented_access_message_SegO
+ali_mesh_lower_transport_layer_receive_segmented_access_message_store_segment:
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	pincrease -6	//DST(2) Head(1) SZMIC_SeqZero_SegO_SegN(3)
+	copy pdata,loopcnt 
+	fetcht 1,mem_mesh_segmented_access_message_current_length
+	iadd temp,temp
+	storet 1,mem_mesh_segmented_access_message_current_length
+	fetch 2, mem_mesh_segmented_access_message_Segment_ptr
+	iforce contw
+	fetch 1,mem_mesh_segmented_access_message_SegO
+	mul32 pdata,12,pdata
+	iadd contw,contw
+	arg mem_mesh_message_Transport_segmented_access_messagePDU_Segment,contr
+	branch memcpy
+
+//判断是否收完包，收完包，clear中间标志
+ali_mesh_lower_transport_layer_receive_segmented_access_message_decrypt_segment:
+	fetch 1,mem_mesh_segmented_access_message_receive_finish
+	rtneq 0
+	setarg 0
+	store 5,mem_mesh_segmented_access_message_BlockAck
+	fetcht 2,mem_mesh_message_SEQ+1
+	byteswap temp,temp
+	setarg 0xe000
+	iand temp,temp
+	fetch 2,mem_mesh_segmented_access_message_SeqZero
+	ior temp,pdata
+	byteswap pdata,pdata
+	store 2,mem_mesh_message_SEQ+1	//计算Application Nonce需要使用到初始的SEQ
+	branch ali_mesh_upper_transport_layer_receive_segmented_access_message
+
+
+/*
+	mesh中发送lower transport layer判断
+	是Unsegmented message，直接下发到network transport layer
+//	是Segmented message，拆分后上传到network transport layer
+*/
+//Unsegmented access message写入SEG、AKF、AID
+ali_mesh_lower_transport_layer_send_unsegmented_access_message:
+	fetch 1,mem_mesh_upper_transport_layer_payload_len
+	add pdata,1,temp
+	copy pdata,loopcnt
+	storet 1,mem_mesh_lower_transport_layer_payload_len
+	fetch 1,mem_mesh_message_Transport_Head
+	set0 TRANSPORT_HEAD_BIT_SEG,pdata
+	store 1,mem_mesh_unsegmented_access_lower_transport_layer_head
+	arg mem_mesh_access_layer_payload,contr
+	call memcpy_fast
+	branch ali_mesh_network_layer_send_access_message
+
+//segmented access message写入SEG、AKF、AID
+//input:rega is current segment payload length
+//contr is current segment payload ptr
+ali_mesh_lower_transport_layer_send_segmented_access_message:
+	add rega,4,temp
+	copy rega,loopcnt
+	storet 1,mem_mesh_lower_transport_layer_payload_len
+	arg mem_mesh_segmented_access_lower_transport_layer_parameters,contw
+	call memcpy_fast
+	fetch 1,mem_mesh_message_Transport_Head
+	set1 TRANSPORT_HEAD_BIT_SEG,pdata
+	store 1,mem_mesh_segmented_access_lower_transport_layer_head
+	branch ali_mesh_network_layer_send_access_message
+
Index: program/mesh_protocol_stack/mesh_model_layer.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_model_layer.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_model_layer.prog	(working copy)
@@ -0,0 +1,136 @@
+
+
+/*
+	mesh model层指令解析总函数
+*/
+
+ali_mesh_model_layer_check_model_message_opcode:
+	fetch 1,mem_mesh_module_message_opcode
+ali_mesh_model_layer_check_generic_OnOff_message_opcde:
+	beq MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_GET_NO_HEAD,ali_mesh_model_layer_message_opcode_generic_onoff_get
+	beq MESH_MODULE_MESSAGE_OPCODE_GENERIC_ONOFF_SET_NO_HEAD,ali_mesh_model_layer_message_opcde_generic_onoff_set
+	beq MESH_MODULE_MESSAGE_OPCODE_SCENE_RECALL_NO_HEAD,ali_mesh_model_layer_message_opcde_scene_recall
+	beq MESH_MODULE_MESSAGE_OPCODE_LIGHT_LIGHTNESS_SET_NO_HEAD,ali_mesh_model_layer_message_opcde_light_lightness_set
+	beq MESH_MODULE_MESSAGE_OPCODE_LIGHT_CTL_SET_NO_HEAD,ali_mesh_model_layer_message_opcde_light_ctl_set
+	rtn
+
+
+ali_mesh_model_layer_message_opcode_generic_onoff_get:
+	arg ali_mesh_model_layer_message_opcode_generic_onoff_get_cb,regc
+	branch ali_mesh_more_element_check_element_address
+ali_mesh_model_layer_message_opcode_generic_onoff_get_cb:
+	//input queue is element number
+	//output pdata is element generic OnOff status
+	fetch 2,mem_mesh_cb_generic_onoff_get
+	call callback_func
+	store 1,mem_mesh_generic_onoff_set_payload_OnOff
+	branch ali_mesh_access_layer_send_generic_onoff_status
+
+
+ali_mesh_model_layer_message_opcde_generic_onoff_set:
+	arg ali_mesh_model_layer_message_opcde_generic_onoff_set_cb,regc
+	branch ali_mesh_more_element_check_element_address
+ali_mesh_model_layer_message_opcde_generic_onoff_set_cb:
+	call ali_mesh_access_layer_send_generic_onoff_status
+	fetch 2,mem_mesh_cb_generic_onoff_set
+	branch callback_func
+
+
+//模式设置
+ali_mesh_model_layer_message_opcde_scene_recall:
+	call ali_mesh_access_layer_send_scene_status
+	fetch 2,mem_mesh_cb_scene_recall
+	branch callback_func
+
+
+ali_mesh_model_layer_message_opcde_light_lightness_set:
+	fetch 2,mem_mesh_light_lightness_set_payload_lightness
+	call ali_mesh_model_layer_message_calc_lightness
+	store 1,mem_mesh_light_lightness_calc_lightness
+	call ali_mesh_access_layer_send_light_lightness_status
+	fetch 2,mem_mesh_cb_light_lightness_set
+	branch callback_func
+
+
+ali_mesh_model_layer_message_opcde_light_ctl_set:
+	fetch 2,mem_mesh_last_CTL_Temperature
+	fetcht 2,mem_mesh_CTL_Temperature
+	isub temp,null
+	rtn zero
+
+	fetch 2,mem_mesh_CTL_Temperature
+	call ali_mesh_model_layer_message_calc_temperature
+	store 1,mem_mesh_CTL_calc_temperature
+
+	fetch 2,mem_mesh_CTL_Temperature
+	store 2,mem_mesh_last_CTL_Temperature
+	fetch 2,mem_mesh_cb_light_lightness_get
+	call callback_func
+	storet 2,mem_mesh_CTL_Lightness
+	call ali_mesh_access_layer_send_light_ctl_stauts
+	fetch 2,mem_mesh_cb_light_ctl_set
+	branch callback_func
+
+
+//input: pdata is lightness set by ali
+//output: pdata is lightness 0-100
+ali_mesh_model_layer_message_calc_lightness:
+	rtn blank
+	mul32 pdata,ALI_MESH_LIGHTNESS_LEVEL,pdata
+	arg ALI_MESH_LIGHTNESS_MAX,temp
+	idiv temp
+	call wait_div_end
+	remainder temp
+	rshift8 temp,temp
+	quotient pdata
+	sub temp,0xff,null
+	nrtn zero
+	pincrease 1
+	rtn
+
+
+//input: temp is lightness 0-100
+//output: temp is lightness set by ali
+ali_mesh_model_layer_message_calc_actual_lightness:
+	arg ALI_MESH_LIGHTNESS_MAX,pdata
+	imul32 temp,pdata
+	div pdata,ALI_MESH_LIGHTNESS_LEVEL
+	call wait_div_end
+	quotient temp
+	rtn
+
+//input: pdata is temperature set by ali
+//output: pdata is temperature 0-100
+ali_mesh_model_layer_message_calc_temperature:
+	arg ALI_MESH_TEMPERATURE_MIN,temp
+	isub temp,rega
+	call ali_mesh_model_layer_message_calc_temperature_k
+	copy rega,pdata
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	rtn
+
+
+//input: temp is temperature 0-100
+//output: temp is temperature set by ali
+ali_mesh_model_layer_message_calc_actual_temperature:
+	copy temp,rega
+	call ali_mesh_model_layer_message_calc_temperature_k
+	copy rega,pdata
+	imul32 temp,pdata
+	arg ALI_MESH_TEMPERATURE_MIN,temp
+	iadd temp,temp
+	rtn
+
+ali_mesh_model_layer_message_calc_temperature_k:
+	setarg ALI_MESH_TEMPERATURE_MAX
+	arg ALI_MESH_TEMPERATURE_MIN,temp
+	isub temp,pdata
+	div pdata,ALI_MESH_TEMPERATURE_LEVEL
+	call wait_div_end
+	quotient temp
+	rtn
+
+
+
Index: program/mesh_protocol_stack/mesh_more_element_check.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_more_element_check.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_more_element_check.prog	(working copy)
@@ -0,0 +1,138 @@
+
+/*
+	多元素设置，检查是否发送给子元素的信息
+	输入:
+		temp is 包的DST地址
+*/
+ali_mesh_more_element_check_unicast_address:
+	arg 0,queue
+	fetchr loopcnt,1,mem_mesh_element_number
+	call disable_user
+	fetch 2,mem_mesh_Unicast_Address
+ali_mesh_more_element_check_unicast_address_loop:
+	isub temp,null
+	branch ali_mesh_more_element_found_unicast_address_element,zero
+	byteswap pdata,pdata
+	pincrease 1
+	byteswap pdata,pdata
+	increase 1,queue
+	loop ali_mesh_more_element_check_unicast_address_loop
+	rtn
+
+ali_mesh_more_element_found_unicast_address_element:
+	jam 0,mem_mesh_receive_group_address
+	storer queue,1,mem_mesh_receive_element_number
+	call ali_mesh_more_element_calc_queue_address
+	branch enable_user
+
+
+/*
+	多元素设置，检查是否发送给子元素组播的信息
+	输入:
+		temp is 包的DST地址
+*/
+ali_mesh_more_element_check_group_address:
+	arg 0,queue
+	arg 0,regc
+	call mesh_get_element_info_config
+	call disable_user
+ali_mesh_more_element_check_group_address_loop:
+	fetch 2,mem_mesh_core_feature
+	bbit0 MESH_FEATURE_DISABLE_SUBSCRIPTION,ali_mesh_more_element_check_subscription_address
+	ifetch 2,rega
+	isub temp,null
+	call ali_mesh_more_element_found_group_address_element,zero
+ali_mesh_more_element_check_address_common:
+	copy regb,pdata
+	iadd rega,rega
+	increase 1,queue
+	loop ali_mesh_more_element_check_group_address_loop
+	copy regc,pdata
+	rtn blank
+	store 1,mem_mesh_receive_group_address
+	branch enable_user
+
+ali_mesh_more_element_found_group_address_element:
+	qset1 regc
+	rtn
+
+ali_mesh_more_element_check_subscription_address:
+	add rega,ELEMENT_DEVICE_SUBSCRIPTION_LABEL,contr
+	arg SUBSCRIPTION_MAX_COUNT,alarm
+ali_mesh_more_element_check_subscription_address_loop:
+	ifetch 2,contr
+	isub temp,null
+	branch ali_mesh_more_element_found_subscription_address_element,zero
+	increase -1,alarm
+	branch ali_mesh_more_element_check_address_common,zero
+	branch ali_mesh_more_element_check_subscription_address_loop
+
+ali_mesh_more_element_found_subscription_address_element:
+	call ali_mesh_more_element_found_group_address_element
+	branch ali_mesh_more_element_check_address_common
+
+/*
+	多元素设置，检查哪些元素需要执行的操作
+	输入:
+		regc:对应的回调
+*/
+ali_mesh_more_element_check_element_address:
+	arg 0,queue
+	fetch 1,mem_mesh_receive_group_address
+	branch ali_mesh_more_element_check_element_address_no_group_address,blank
+	copy pdata,regb
+	fetchr loopcnt,1,mem_mesh_element_number
+ali_mesh_more_element_check_element_address_loop:
+	storer queue,1,mem_mesh_receive_element_number
+
+	qisolate1 regb
+	call ali_mesh_more_element_check_element_address_no_group_address,true
+	fetchr queue,1,mem_mesh_receive_element_number
+	increase 1,queue
+	loop ali_mesh_more_element_check_element_address_loop
+	rtn
+
+ali_mesh_more_element_check_element_address_no_group_address:
+	call ali_mesh_more_element_push_stack
+	call ali_mesh_more_element_calc_queue_address
+	copy regc,pdata
+	call callback_func
+	branch ali_mesh_more_element_pop_stack
+
+ali_mesh_more_element_push_stack:
+	storer loopcnt,2,mem_mesh_loopcnt_tmep
+	storer rega,2,mem_mesh_rega_temp
+	storer regb,2,mem_mesh_regb_temp
+	storer regc,2,mem_mesh_regc_temp
+	rtn
+
+ali_mesh_more_element_pop_stack:
+	fetchr loopcnt,2,mem_mesh_loopcnt_tmep
+	fetchr rega,2,mem_mesh_rega_temp
+	fetchr regb,2,mem_mesh_regb_temp
+	fetchr regc,2,mem_mesh_regc_temp
+	rtn
+
+
+/*
+	多元素设置，计算队列的指令长度
+	输入:
+		queue当前数据编号
+*/
+ali_mesh_more_element_calc_queue_address:
+	bpatchx patch3f_2,mem_patch3f
+	fetch 2,mem_mesh_Unicast_Address
+	byteswap pdata,pdata
+	iadd queue,pdata
+	byteswap pdata,pdata
+	store 2,mem_mesh_send_message_SRC
+	call mesh_get_element_info_config
+	copy queue,pdata
+	imul32 regb,pdata
+	iadd rega,rega
+	add rega,ELEMENT_DEVICE_UPPER_QUEUE_PTR,contr
+	ifetch 2,contr
+	store,2,mem_queue_ptr
+	rtn
+
+
Index: program/mesh_protocol_stack/mesh_network_layer.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_network_layer.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_network_layer.prog	(working copy)
@@ -0,0 +1,294 @@
+
+/*
+	mesh协议中network layer
+	主要是负责mesh中Network PDU内容合法性和解密
+*/
+
+ali_mesh_receive_adtype_mesh_message:
+	jam MESH_MESSAGE_TMALL,mem_mesh_network_packet_type
+
+/*
+	mesh中接收到network包处理函数
+*/
+//contr is read ptr
+//input:temp is len
+ali_mesh_network_layer_recevice_network_pdu:
+	sub temp,MESH_NETWORK_PACKET_MIN_LENGTH,null
+	rtn positive	//过滤短包，包长度太短导致解析错误
+	sub temp,MESH_NETWORK_PACKET_MAX_LENGTH,null
+	nrtn positive	//过滤长包，包长度太长导致内存覆盖
+	bpatchx patch3f_3,mem_patch3f
+	call ali_mesh_network_store_in_mem
+ali_mesh_network_layer_recevice_network_pdu_check_NID:
+	call ali_mesh_network_layer_check_NID_IVI
+	nrtn user
+ali_mesh_network_layer_recevice_network_pdu_deceypt_obfuscation:
+	call ali_mesh_encrypt_obfuscation_deceypt_recevie_message
+	//fetch 1,mem_mesh_message_TTL
+	//rtnbit1 BIT_CTL
+//	fetch 1,mem_mesh_message_TTL
+//	nrtn blank
+ali_mesh_network_layer_recevice_network_pdu_decrypt_NetMIC32:
+	call ali_mesh_network_load_network_nonce_and_EncryptionKey
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	arg mem_mesh_message_DST,temp
+	call ali_CCM_decrypt
+	nrtn zero	//NetMIC error
+
+
+ali_mesh_network_layer_recevice_network_pdu_check_DST:
+	bpatchx patch3f_4,mem_patch3f
+	fetcht 2,mem_mesh_message_DST
+	call ali_mesh_more_element_check_unicast_address	//检查所有子元素的单播地址
+	branch ali_mesh_network_layer_recevice_network_pdu_check_SRC_and_SEQ,user
+	arg 29,loopcnt
+	arg mem_mesh_message_NID_temp,contw
+	arg mem_mesh_message_NID,contr
+	call memcpy
+	call ali_mesh_network_layer_recevice_network_pdu_check_DST_group_address
+	arg 29,loopcnt
+	arg mem_mesh_message_NID_temp,contr
+	arg mem_mesh_message_NID,contw
+	call memcpy
+	fetch 2,mem_mesh_cb_network_relay
+	branch callback_func
+
+ali_mesh_network_layer_recevice_network_pdu_check_DST_group_address:
+	call ali_mesh_more_element_check_group_address	//检查所有子元素的组播地址
+	branch ali_mesh_network_layer_recevice_network_pdu_check_SRC_and_SEQ,user
+	jam 0xff,mem_mesh_receive_group_address
+	setarg GROUP_ADDRESS_0XCFFF_little_endian
+	isub temp,null	//DST==0xCFFF Tmall规定的灯model的组播地址2
+	branch ali_mesh_network_layer_recevice_network_pdu_check_SRC_and_SEQ,zero
+	setarg GROUP_ADDRESS_0XFFFF_little_endian
+	isub temp,null	//DST==0xCFFF Tmall规定的82 01指令的组播地址，在线检测
+	branch ali_mesh_network_layer_recevice_network_pdu_check_SRC_and_SEQ,zero
+	rtn
+
+
+ali_mesh_network_layer_check_NID_IVI:
+	call disable_user
+	fetcht 1,mem_mesh_message_NID
+	rshift4 temp,pdata
+	rshift3 pdata,pdata
+	fetchr rega,1,mem_mesh_IV_Index+3
+	and rega,0x01,rega
+	isub rega,null
+	nrtn zero
+	and temp,0x7f,temp
+	fetch 1,mem_k2_NID
+	isub temp,null
+	nrtn zero	//判断NID是否相等;相等说明是同一个网络的包
+	branch enable_user
+
+//检查SRC和SEQ存储cache，是否有当前SRC设备信息
+ali_mesh_network_layer_recevice_network_pdu_check_SRC_and_SEQ:
+	arg mem_mesh_TMALL_cache_start,rega
+	arg CACHE_SPACE_NUM,loopcnt
+ali_mesh_network_layer_raverse_SRC_SEQ_cache:
+	fetcht 2,mem_mesh_message_SRC
+	ifetch 2,rega
+//cache存在空的空间,将SRC、SEQ存储到这个空间
+	branch ali_mesh_network_layer_find_empty_space,blank
+	
+	isub temp,null
+//cache已经存有该SRC的信息，导出SEQ信息
+	branch ali_mesh_network_layer_find_SRC_space,zero
+	increase CACHE_SPACE_SIZE,rega
+	loop ali_mesh_network_layer_raverse_SRC_SEQ_cache
+	arg mem_mesh_TMALL_cache_start,rega
+
+ali_mesh_network_layer_find_empty_space:
+	istoret 2,rega
+ali_mesh_network_layer_find_SRC_space:
+	storet 2,mem_mesh_send_message_DST
+	//接收时的SRC是发送时候的DST
+	add rega,2,regc
+	ifetch 3,regc
+	store 3,mem_mesh_last_message_SEQ
+	branch ali_mesh_network_layer_recevice_network_pdu_check_SEQ_legal
+
+
+//检查SEQ的合法性，过滤重复包
+ali_mesh_network_layer_recevice_network_pdu_check_SEQ_legal:
+//check SEQ
+	call ali_mesh_inverse_SEQ
+	//高低位交换
+	fetch 3,mem_mesh_last_message_SEQ
+	fetcht 3,mem_mesh_message_SEQ
+	isub temp,null
+	rtn positive	//lastMessageSEQ-currMessageSEQ>=0,返回
+	istoret 3,regc	
+	call ali_mesh_inverse_SEQ	//application nonce和Device nonce都需要用到SEQ
+	call logging_tx_debug_network_receive_packet
+	branch ali_mesh_lower_transport_layer_receive_lower_transport_PDU
+
+ali_mesh_inverse_SEQ:
+	arg mem_mesh_message_SEQ,rega
+	arg 3,loopcnt
+	branch inverse_data
+
+
+
+ali_mesh_network_load_network_nonce_and_EncryptionKey:
+	call ali_mesh_network_layer_load_network_nonce
+ali_mesh_upper_transport_layer_load_EncryptionKey:
+	arg mem_k2_EncryptionKey,contr
+	branch load_key
+ali_mesh_network_layer_load_network_nonce:
+	arg mem_mesh_Network_Nonce,contw
+	setarg NETWORK_NONCE
+	istore 1,contw
+	fetch 6,mem_mesh_message_TTL
+	istore 8,contw
+	branch mesh_generate_nonce
+
+
+ali_mesh_network_store_in_mem:
+	add temp,-12,pdata
+	//长度-12的原因
+	//uint8_t AD type:GAP_ADTYPE_MESH_MESSAGE
+	//uint8_t IVI & NID
+	//uint8_t CTL & TTL
+	//uint24_t SEQ
+	//uint16_t SRC
+	//uint32_t MIC
+	//AD_len减去上面内容，是实际DST & Transport PDU的长度
+	//问题:没有考虑MIC长度是64bit 的情况，目前不支持，后期支持需要修改
+	store 1,mem_mesh_message_Transport_NetMIC_length
+	arg 29,loopcnt
+	arg mem_mesh_message_NID,contw
+	call clear_mem
+	add temp,-1,loopcnt
+	arg mem_mesh_message_NID,contw
+	branch memcpy_fast
+	//统一copy到mem_mesh_message_NID
+
+ali_mesh_network_layer_relay_access_message:
+	call ali_mesh_network_layer_check_relay_states
+	nrtn user
+	call ali_mesh_network_layer_encrypt_relay_package
+	jam ADV_RELAY_MESH_MESSAGE_DURATION,mem_mesh_queue_ele_duration
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	add pdata,13,temp
+	storet 1,mem_mesh_queue_ele_len
+	increase -1,temp
+	istoret 1,contw
+	setarg GAP_ADTYPE_MESH_MESSAGE
+	istore 1,contw
+	add temp,-1,loopcnt
+	fetch 7,mem_mesh_message_NID
+	arg mem_mesh_message_NID,contr
+	call memcpy
+	fetch 2,mem_ui_state_map
+	isolate1 UI_STATE_BLE_CONNECTED,pdata
+	call ali_mesh_send_ble_data_relay_package,true
+	arg mem_mesh_queue_ele_temp,rega
+	branch queue_push
+
+ali_mesh_send_ble_data_relay_package:
+	fetch 1,mem_mesh_network_packet_type
+	rtneq MESH_MESSAGE_PROXY
+	branch ali_mesh_send_ble_data
+
+//output:enable user is mean can relay packet
+ali_mesh_network_layer_check_relay_states:
+	call disable_user
+	fetch 1,mem_mesh_network_packet_type
+	rtneq MESH_MESSAGE_APP	//不relay APP的控制包
+	fetch 2,mem_mesh_core_feature
+	rtnbit1 MESH_FEATURE_DISABLE_RELAY
+	fetch 1,mem_mesh_provisioned_flag
+	rtnne PAIRED_STATUS	//无配网状态，不relay 接收到random就能解析数据
+	fetcht 2,mem_mesh_message_SRC
+	call ali_mesh_more_element_check_unicast_address
+	nrtn user					//不relay 元素的包的数据包
+	call ali_mesh_network_layer_check_network_mic_cache
+	nrtn user
+	call ali_mesh_network_layer_logging_tx_relay_info
+	fetch 1,mem_mesh_message_TTL
+	rtn blank
+	pincrease -1
+	rtn blank
+	store 1,mem_mesh_message_TTL
+	setarg mem_mesh_network_relay_queue
+	store 2,mem_queue_ptr
+	branch enable_user
+
+ali_mesh_network_layer_encrypt_relay_package:
+ 	call ali_mesh_network_load_network_nonce_and_EncryptionKey
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	arg mem_mesh_message_DST,temp
+	call ali_CCM_encrypt
+	branch ali_mesh_encrypt_obfuscation_deceypt_recevie_message
+
+
+//user is enable ,mean new packet
+ali_mesh_network_layer_check_network_mic_cache:
+	setarg mem_mesh_transport_message_mic_cache
+	store 2,mem_mesh_mic_cache_ptr
+	branch ali_mesh_base_adt_cache
+
+
+ali_mesh_network_layer_logging_tx_relay_info:
+	arg 2,loopcnt
+	arg mem_mesh_message_DST,rega
+	arg MESH_NETWORK_RELAY_PACKET,regb
+	call logging_tx_info
+	fetchr loopcnt,1,mem_ccm_data_len
+	fetchr rega,2,mem_ccm_data_ptr
+	arg MESH_NETWORK_RELAY_PACKET,regb
+	branch logging_tx_debug
+
+
+/*
+	mesh中发送到network layer处理函数
+	不区分Unsegmented access message和Segmented access message
+	统一处理函数接口
+*/
+
+ali_mesh_network_layer_send_access_message:
+	bpatchx patch3f_5,mem_patch3f
+	call ali_mesh_network_layer_send_access_message_encrypt_NetMIC
+	call ali_mesh_network_layer_send_access_message_encrypt_obfuscation
+	branch ali_mesh_bearer_layer_send_packet_by_network_layer
+
+
+//DST在接收包时，已经写入mem_mesh_unsegmented_lower_transport_layer_DST
+//计算Netwrork MIC的值
+ali_mesh_network_layer_send_access_message_encrypt_NetMIC:
+	fetch 1,mem_mesh_lower_transport_layer_payload_len
+	add pdata,2,rega	//DST size
+	pincrease 4
+	store 1,mem_mesh_lower_transport_layer_payload_len
+	arg mem_mesh_send_upper_layer_DST,temp
+	branch ali_mesh_network_layer_encrypt_by_network_nonce
+
+//********* generate network nonce *********//
+//input:temp is encrypt ptr
+//rega is encrypt length
+ali_mesh_network_layer_encrypt_by_network_nonce:
+	call ali_mesh_network_load_network_nonce_and_EncryptionKey
+	copy rega,pdata
+	branch ali_CCM_encrypt
+
+
+ali_mesh_network_layer_send_access_message_encrypt_obfuscation:
+	branch ali_mesh_encrypt_obfuscation_deceypt_send_message
+
+
+
+mesh_generate_nonce:
+	fetch 4,mem_mesh_IV_Index
+	istore 4,contw
+	add contw,-13,pdata
+	store 2,mem_nonce_ptr
+	rtn
+
+logging_tx_debug_network_receive_packet:
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	add pdata,11,loopcnt
+	arg mem_mesh_message_NID,rega
+	arg MESH_NETWORK_RECEIVE_PACKET,regb
+	branch logging_tx_debug
+
Index: program/mesh_protocol_stack/mesh_proxy_layer.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_proxy_layer.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_proxy_layer.prog	(working copy)
@@ -0,0 +1,81 @@
+
+
+/*
+	阿里 mesh proxy 层控制
+*/
+ali_mesh_proxy_init_adv:
+	jam 0x14,mem_le_adv_data_len
+	setarg 0x02
+	store 1,mem_le_adv_data
+	setarg GAP_ADTYPE_FLAGS
+	istore 1,contw
+	setarg 0x06
+	istore 1,contw
+	setarg 0x03
+	istore 1,contw
+	setarg GAP_ADTYPE_16BIT_COMPLETE
+	istore 1,contw
+	setarg MESH_PROXY_SERVICE
+	istore 2,contw
+	setarg 0x0c
+	istore 1,contw
+	setarg GAP_ADTYPE_SERVICE_DATA
+	istore 1,contw
+	setarg MESH_PROXY_SERVICE
+	istore 2,contw
+	setarg MESH_PROXY_SERVICE_DATA_ID_TYPE_NETWORK_ID
+	istore 1,contw
+	fetch 8,mem_mesh_network_id
+	istore 8,contw
+	rtn
+
+//rega is le rx data address
+//regb is le rx data length
+//mem_le_att_handle is write handle
+mesh_le_receive_data:
+/*	call uartb_prepare_tx
+	setarg 0x5555
+	istore 2,contwu
+	fetch 2,mem_le_att_handle
+	istore 2,contwu
+	copy regb,pdata
+	istore 2,contwu
+	copy rega,contr
+	copy regb,loopcnt
+	call uart_copy_tx_bytes
+	call uartb_send
+*/
+	fetch 2,mem_le_att_handle
+	beq MESH_PROXY_DATA_IN_HANDLE,ali_mesh_receive_ble_data_proxy_data_in
+	rtn
+
+ali_mesh_receive_ble_data_proxy_data_in:
+	copy regb,temp
+	ifetch 1,rega
+	beq MESH_PROXY_MESSAGE_TYPE_NETWORK_PDU,ali_mesh_network_layer_recevice_network_pdu_proxy_control
+	rtn
+
+ali_mesh_network_layer_recevice_network_pdu_proxy_control:
+	jam MESH_MESSAGE_PROXY,mem_mesh_network_packet_type_temp
+	branch ali_mesh_network_layer_recevice_network_pdu
+
+
+ali_mesh_proxy_process_bb_event:
+	copy regc,pdata
+	beq BT_EVT_LE_DISCONNECTED,app_ble_start_adv
+	rtn
+
+
+ali_mesh_send_ble_data:
+	call le_fifo_check_nearly_full
+	nrtn blank
+	fetch 1,mem_mesh_queue_ele_len
+	add pdata,-1,rega
+	arg MESH_PROXY_DATA_OUT_HANDLE,temp
+	call le_att_malloc_tx_notify
+	setarg MESH_PROXY_MESSAGE_TYPE_NETWORK_PDU
+	istore 1,contw
+	arg mem_mesh_queue_ele_payload+2,contr
+	branch memcpy32
+
+
Index: program/mesh_protocol_stack/mesh_upper_transport_layer.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_upper_transport_layer.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/mesh_protocol_stack/mesh_upper_transport_layer.prog	(working copy)
@@ -0,0 +1,456 @@
+
+/*
+	mesh协议中upper transport layer
+	主要是负责mesh中upper transport layer数据的解密
+	Unsegmented access message和segmented access message
+	Control message
+*/
+
+/*
+	mesh中接收到unsegmented按照AKF标志，使用application nonce或者device nonce解密Unsegmented access message
+*/
+
+ali_mesh_upper_transport_layer_receive_unsegmented_access_message:
+	bbit0 TRANSPORT_HEAD_BIT_AKF,ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_device_key
+//application key和application nonce解密Unsegmented access message
+ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_application_key:
+	call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key
+	branch ali_mesh_upper_transport_layer_decrypt_unsegmented_message
+//device key和device nonce解密Unsegmented access message
+ali_mesh_uuper_transport_layer_decrypt_unsegment_access_by_device_key:
+	call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key
+	branch ali_mesh_upper_transport_layer_decrypt_unsegmented_message
+
+
+ali_mesh_upper_transport_layer_decrypt_unsegmented_message:
+	fetch 1,mem_mesh_message_Transport_NetMIC_length
+	pincrease -7	
+	//DST 16bit
+	//Head8bit (SEG 1bit /AKF 1bit/AID 6bit)
+	//Transport MIC 32bit
+	arg mem_mesh_message_Transport_unsegmented_access_messagePDU,alarm
+	call disable_user
+	branch ali_mesh_upper_transport_layer_decrypt_message
+
+
+/*
+	mesh中接收到segmented按照AKF标志，使用application nonce或者device nonce解密segmented access message
+*/
+ali_mesh_upper_transport_layer_receive_segmented_access_message:
+	fetch 1,mem_mesh_message_Transport_Head
+	bbit0 TRANSPORT_HEAD_BIT_AKF,ali_mesh_uuper_transport_layer_decrypt_segment_access_by_device_key
+ali_mesh_uuper_transport_layer_decrypt_segment_access_by_application_key:
+	call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key
+	branch ali_mesh_upper_transport_layer_decrypt_segmented_message
+ali_mesh_uuper_transport_layer_decrypt_segment_access_by_device_key:
+	call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key
+	branch ali_mesh_upper_transport_layer_decrypt_segmented_message
+
+
+ali_mesh_upper_transport_layer_decrypt_segmented_message:
+	fetch 1,mem_mesh_ASZMIC
+	ncall enable_user,blank
+	call disable_user,blank
+	fetch 1,mem_mesh_segmented_access_message_current_length
+	pincrease -4	//Transport MIC
+	jam 0,mem_mesh_segmented_access_message_current_length
+	arg mem_mesh_segmented_access_message_Segment,alarm
+
+//input:alarm:decrypt message ptr
+//pdata:decrypt message length
+ali_mesh_upper_transport_layer_decrypt_message:
+	copy alarm,temp
+	call ali_mesh_upper_transport_layer_decrypt_message_decrypt_transMIC
+	nrtn zero
+	arg 1,loopcnt
+	arg mem_ccm_data_len,rega
+	arg MESH_UPPER_RECEIVE_PACKET,regb
+	call logging_tx_info
+	call ali_mesh_upper_transport_layer_check_transport_mic_cache
+	nrtn user
+	fetch 2,mem_ccm_data_ptr
+	copy pdata,alarm
+	branch ali_mesh_access_layer_resolve_message
+
+ali_mesh_upper_transport_layer_decrypt_message_decrypt_transMIC:
+	nbranch ali_CCM_decrypt,user
+	pincrease -4
+	branch ali_CCM_decrypt_64Bit
+
+//user is enable ,mean new packet
+ali_mesh_upper_transport_layer_check_transport_mic_cache:
+	setarg mem_mesh_access_message_mic_cache
+	store 2,mem_mesh_mic_cache_ptr
+	branch ali_mesh_base_adt_cache
+
+
+//********* generate application nonce *********//
+ali_mesh_upper_transport_layer_load_application_nonce_and_application_key:
+	call ali_mesh_upper_transport_layer_load_application_nonce
+ali_mesh_upper_transport_layer_load_application_key:
+	arg mem_mesh_application_key,contr
+	branch load_key
+ali_mesh_upper_transport_layer_load_application_nonce:
+	arg mem_mesh_Application_Nonce,contw
+	setarg APPLICATION_NONCE
+	istore 1,contw
+	fetch 1,mem_mesh_ASZMIC
+	arg 0,temp
+	nsetflag blank,7,temp
+	istoret 1,contw
+	fetch 7,mem_mesh_message_SEQ
+	istore 7,contw
+	branch mesh_generate_nonce
+
+
+//********* generate device nonce *********//
+ali_mesh_upper_transport_layer_load_device_nonce_and_device_key:
+	call ali_mesh_upper_transport_layer_load_device_nonce
+ali_mesh_upper_transport_layer_load_device_key:
+	arg mem_mesh_Device_Key,contr
+	branch load_key
+ali_mesh_upper_transport_layer_load_device_nonce:
+	arg mem_mesh_Device_Nonce,contw
+	setarg DEVICE_NONCE
+	branch ali_mesh_upper_transport_layer_load_application_nonce + 2
+
+
+/*
+	mesh中upper transport layer，发送access layer传入的access  PDU
+*/
+// write data to // mem_mesh_access_layer_payload //
+// write data len to //mem_mesh_access_layer_payload_len //
+//upper层发送access mess，主要是计算transport MIC
+ali_mesh_upper_transport_layer_send_access_message:
+ali_mesh_upper_transport_layer_send_access_message_without_cleat_tx_buffer:
+	bpatchx patch3f_6,mem_patch3f
+	call ali_mesh_upper_transport_layer_clear_tx_buffer
+	call ali_mesh_loggint_tx_info_upper_send_packet
+	call ali_mesh_upper_transport_layer_send_access_message_add_NID_SRC_TTL_SEQ_DST
+
+	//queue control
+	call ali_mesh_upper_transport_layer_store_packet_header
+	rtn user
+	call ali_mesh_upper_transport_layer_store_unsegment_msg_original_access_pdu
+
+	arg mem_mesh_upper_tran_layer_queue_temp,rega
+	branch queue_push
+
+
+//output:user is enable mean send Attr Indication packet,but no in paired status
+ali_mesh_upper_transport_layer_store_packet_header:
+	call disable_user
+	arg UPPER_RETRY_COUNT_STATUS,temp
+	fetch 1,mem_mesh_provisioned_flag
+	iadd temp,temp		//APP 配网包，增加重传次数保证成功率
+	fetch 1,mem_mesh_network_packet_type
+	sub pdata,MESH_MESSAGE_PROXY,null
+	setflag zero,BIT_UPPER_FLAG_PROXY_CONTROL,temp
+	fetch 1,mem_mesh_network_packet_type
+	sub pdata,MESH_MESSAGE_APP,null
+	setflag zero,BIT_UPPER_FLAG_APP_CONTROL,temp
+	storet 1,mem_mesh_upper_tran_layer_temp_packet_flag
+	fetch 9,mem_mesh_send_upper_layer_IVI_and_NID
+	store 9,mem_mesh_upper_tran_layer_temp_packet_header_IVI_NID
+	fetch 1,mem_mesh_access_layer_payload_vendor_command
+	rtnne VENDOR_MESSAGE_ATTR_INDICATION
+	fetch 1,mem_mesh_provisioned_flag
+	bne PAIRED_STATUS,enable_user
+	fetch 1,mem_mesh_access_layer_payload_vendor_tid
+	store 1,mem_mesh_upper_tran_layer_temp_packet_TID
+	fetch 1,mem_mesh_upper_tran_layer_temp_packet_flag
+	pincrease UPPER_RETRY_COUNT_INDICATION
+	set1 BIT_UPPER_FLAG_VENDOR_INDICATION,pdata
+	store 1,mem_mesh_upper_tran_layer_temp_packet_flag
+	rtn
+
+
+ali_mesh_upper_transport_layer_store_unsegment_msg_original_access_pdu:
+	fetch 1,mem_mesh_access_layer_payload_len
+	copy pdata,loopcnt
+	store 1,mem_mesh_upper_tran_layer_temp_packet_length
+	fetch 1,mem_mesh_message_Transport_Head
+	store 1,mem_mesh_upper_tran_layer_temp_pakcet_AKF_AID
+	arg mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu,contw
+	arg mem_mesh_access_layer_payload,contr
+	branch memcpy
+
+
+/*
+	mesh中upper transport layer，控制包的发送和重传等
+*/
+ali_mesh_upper_transport_layer_control_packet:
+	arg ali_mesh_upper_transport_layer_control_packet_deal,regc
+	branch ali_mesh_check_all_element_info
+
+
+ali_mesh_upper_transport_layer_control_packet_deal:
+	add rega,ELEMENT_DEVICE_UPPER_ADV_FLAG,contr
+	ifetch 1,contr
+	nrtn blank
+	ifetch 2,contr
+	store 2,mem_queue_ptr
+	arg mem_mesh_upper_tran_layer_queue_temp,rega
+	call queue_get_new_ele
+	nrtn user													//查看发送队列有无数据
+	fetchr rega,2,mem_mesh_rega_temp
+
+	fetcht 1,mem_mesh_upper_tran_layer_temp_packet_flag
+	and temp,DATA_UPPER_FLAG_MAX_RETRY_COUNT,pdata
+	branch ali_mesh_upper_transport_layer_queue_pop,blank		//重传超时丢弃该包
+	add rega,ELEMENT_DEVICE_UPPER_ADV_FLAG,contw
+	setarg PACKET_IN_BEARER
+	istore 1,contw		//状态未丢弃
+
+	call ali_mesh_upper_transport_layer_control_packet_load_header	//加载packet header，message header
+
+	fetcht 1,mem_mesh_upper_tran_layer_temp_packet_flag
+	call ali_mesh_upper_transport_layer_control_packet_load_app_control	//APP控制还是tmall控制
+	add rega,ELEMENT_DEVICE_TRAN_PACKAGE_TID,contw
+	istore 1,contw
+
+	add rega,ELEMENT_DEVICE_TRAN_PACKAGE_TYPE,contr
+	ifetch 1,contr
+	isolate1 BIT_UPPER_FLAG_PROXY_CONTROL,temp
+	setflag true,BIT_UUPER_TRAN_PROXY_MESSAGE,pdata
+	add rega,ELEMENT_DEVICE_TRAN_PACKAGE_TYPE,contw
+	istore 1,contw
+
+	set1 BIT_UPPER_FLAG_RETRANSMIT,temp						//重传标志
+
+	increase -1,temp		//重传次数-1
+	istoret 1,regb			//存入队列位置
+	
+	fetcht 1,mem_mesh_upper_tran_layer_temp_packet_flag
+	isolate1 BIT_UPPER_FLAG_RETRANSMIT,temp
+	nbranch ali_mesh_upper_transport_layer_control_packet_encrypt_access,true
+	fetcht 1,mem_mesh_upper_tran_layer_temp_packet_length
+	storet 1,mem_mesh_upper_transport_layer_payload_len
+	copy temp,loopcnt
+	arg mem_mesh_access_layer_payload,contw
+	arg mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu,contr
+	call memcpy
+	sub temp,UNSEGMENTED_ACCESS_MESSAGE_MAX_UPPER_TRANSPORT_ACCESS_PDU_LEN,null
+	nbranch ali_mesh_upper_transport_layer_control_packet_segment_msg,positive
+ali_mesh_upper_transport_layer_control_packet_unsegment_msg:
+	branch ali_mesh_lower_transport_layer_send_unsegmented_access_message
+
+
+ali_mesh_upper_transport_layer_control_packet_segment_msg:
+	fetch 4,mem_mesh_upper_tran_layer_temp_segmented_pakcet_SeqZero
+	store 4,mem_mesh_segmented_lower_transport_layer_SegZero
+	branch ali_mesh_upper_transport_layer_split_segmented_msg_to_lower_tran_layer
+
+
+ali_mesh_upper_transport_layer_control_packet_load_header:
+	fetch 1,mem_mesh_upper_tran_layer_temp_pakcet_AKF_AID
+	store 1,mem_mesh_message_Transport_Head
+
+	fetch 9,mem_mesh_upper_tran_layer_temp_packet_header_IVI_NID
+	store 9,mem_mesh_send_upper_layer_IVI_and_NID
+	store 9,mem_mesh_message_NID
+	rtn
+
+
+ali_mesh_upper_transport_layer_control_packet_load_app_control:
+	setarg UPPER_TRAN_TMALL_AND_APP
+	call ali_mesh_store_tran_package_type
+	fetch 1,mem_mesh_upper_tran_layer_temp_packet_TID
+	isolate1 BIT_UPPER_FLAG_VENDOR_INDICATION,temp
+	rtn true		//indication packet send app & tmall
+	setarg UPPER_TRAN_TMALL_MESSAGE
+	call ali_mesh_store_tran_package_type
+	setarg 0
+	isolate1 BIT_UPPER_FLAG_APP_CONTROL,temp
+	nrtn true
+	setarg UPPER_TRAN_APP_MESSAGE
+	call ali_mesh_store_tran_package_type
+	branch enable_blank
+
+ali_mesh_store_tran_package_type:
+	add rega,ELEMENT_DEVICE_TRAN_PACKAGE_TYPE,contw
+	istore 1,contw
+	rtn
+
+
+ali_mesh_upper_transport_layer_queue_pop:
+	setarg 0
+	add rega,ELEMENT_DEVICE_TRAN_PACKAGE_TID,contw
+	istore 1,contw
+	arg mem_mesh_upper_tran_layer_queue_temp,rega
+	branch queue_pop
+
+ali_mesh_upper_transport_layer_control_packet_encrypt_access:
+	call ali_mesh_upper_transport_layer_send_access_message_calc_SEQ
+	call ali_mesh_upper_transport_layer_send_access_message_add_SEQ
+	fetch 9,mem_mesh_send_upper_layer_IVI_and_NID
+	store 9,mem_mesh_upper_tran_layer_temp_packet_header_IVI_NID
+	call ali_mesh_upper_transport_layer_control_packet_encrypt_access_load_payload
+	setarg 0
+	store 1,mem_mesh_ASZMIC
+	call ali_mesh_upper_transport_layer_calc_transport_mic
+
+	fetcht 1,mem_mesh_upper_transport_layer_payload_len
+	storet 1,mem_mesh_upper_tran_layer_temp_packet_length
+	copy temp,loopcnt
+	arg mem_mesh_access_layer_payload,contr
+	arg mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu,contw
+	call memcpy
+	
+	sub temp,UNSEGMENTED_ACCESS_MESSAGE_MAX_UPPER_TRANSPORT_ACCESS_PDU_LEN,null
+	nbranch ali_mesh_upper_transport_layer_control_packet_encrypt_access_segment_msg,positive
+ali_mesh_upper_transport_layer_control_packet_encrypt_access_unsegment_msg:
+//upper层发送unsegmented access mess，主要是计算transport MIC
+	arg mem_mesh_upper_tran_layer_temp_packet_transmit_delay,rega
+	call queue_store_new_ele
+	branch ali_mesh_lower_transport_layer_send_unsegmented_access_message
+
+ali_mesh_upper_transport_layer_control_packet_encrypt_access_segment_msg:
+	call ali_mesh_upper_transport_layer_send_segmented_access_message_get_SeqZero_SegON
+	fetch 4,mem_mesh_segmented_lower_transport_layer_SegZero
+	store 4,mem_mesh_upper_tran_layer_temp_segmented_pakcet_SeqZero
+	arg mem_mesh_upper_tran_layer_temp_packet_transmit_delay,rega
+	call queue_store_new_ele
+	branch ali_mesh_upper_transport_layer_split_segmented_msg_to_lower_tran_layer
+
+ali_mesh_upper_transport_layer_control_packet_encrypt_access_load_payload:
+	fetch 1,mem_mesh_upper_tran_layer_temp_packet_length
+	copy pdata,loopcnt
+	store 1,mem_mesh_access_layer_payload_len
+	fetch 1,mem_mesh_upper_tran_layer_temp_pakcet_AKF_AID
+	store 1,mem_mesh_message_Transport_Head
+	arg mem_mesh_upper_tran_layer_temp_pakcet_upper_tran_access_pdu,contr
+	arg mem_mesh_access_layer_payload,contw
+	branch memcpy
+
+ali_mesh_upper_transport_layer_split_segmented_msg_to_lower_tran_layer:
+	call ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header
+	setarg mem_mesh_access_payload
+	store 2,mem_mesh_upper_transport_layer_payload_ptr
+ali_mesh_upper_transport_layer_send_segmented_access_message_loop:
+	call ali_mesh_upper_transport_layer_control_packet_load_header
+	call ali_mesh_upper_transport_layer_send_access_message_calc_SEQ
+	call ali_mesh_upper_transport_layer_send_access_message_add_SEQ
+
+	fetcht 1,mem_mesh_access_layer_payload_len
+	setarg SEGMENTED_ACCESS_MESSAGE_UNINT_PDU_LEN
+	call not_greater_than
+	copy pdata,rega
+	copy temp,pdata
+	isub rega,pdata
+	store 1,mem_mesh_access_layer_payload_len
+	fetch 2,mem_mesh_upper_transport_layer_payload_ptr
+	copy pdata,contr
+	iadd rega,temp
+	storet 2,mem_mesh_upper_transport_layer_payload_ptr
+	call ali_mesh_lower_transport_layer_send_segmented_access_message
+	fetch 1,mem_mesh_access_layer_payload_len
+	rtn blank
+	fetch 1,mem_mesh_segmented_lower_transport_layer_SegO
+	pincrease 1
+	store 1,mem_mesh_segmented_lower_transport_layer_SegO
+	call ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header
+	branch ali_mesh_upper_transport_layer_send_segmented_access_message_loop
+
+
+
+//upper层计算transport mic值
+ali_mesh_upper_transport_layer_calc_transport_mic:
+	fetch 1,mem_mesh_message_Transport_Head
+	bbit0 TRANSPORT_HEAD_BIT_AKF,ali_mesh_upper_transport_layer_calc_transport_mic_by_DeviceKey
+ali_mesh_upper_transport_layer_calc_transport_mic_by_AppKey:
+	call ali_mesh_upper_transport_layer_load_application_nonce_and_application_key
+	branch ali_mesh_upper_transport_layer_calc_transport_mic_encrypt_AESCCM
+ali_mesh_upper_transport_layer_calc_transport_mic_by_DeviceKey:
+	call ali_mesh_upper_transport_layer_load_device_nonce_and_device_key
+ali_mesh_upper_transport_layer_calc_transport_mic_encrypt_AESCCM:
+	fetch 1,mem_mesh_access_layer_payload_len
+	add pdata,4,temp
+	storet 1,mem_mesh_upper_transport_layer_payload_len
+	arg mem_mesh_access_layer_payload,temp
+	branch ali_CCM_encrypt
+
+
+
+//累加SEQ的值
+ali_mesh_upper_transport_layer_send_access_message_calc_SEQ:
+	fetch 3,mem_mesh_send_message_SEQ
+	pincrease 1
+	store 3,mem_mesh_send_message_SEQ
+	fetch 1,mem_mesh_gatt_package_send_msg_id
+	pincrease 1
+	store 1,mem_mesh_gatt_package_send_msg_id
+	fetch 2,mem_mesh_cb_seq_changed
+	branch callback_func
+
+
+//存NID,TTL,SEQ,SRC,其中SEQ需要高低位交换
+ali_mesh_upper_transport_layer_send_access_message_add_NID_SRC_TTL_SEQ_DST:
+	fetch 1,mem_mesh_IV_Index+3
+	lshift4 pdata,pdata
+	lshift3 pdata,pdata
+	fetcht 1,mem_k2_NID
+	ior temp,pdata
+	store 1,mem_mesh_send_upper_layer_IVI_and_NID
+	fetch 1,mem_mesh_send_message_TTL
+	store 1,mem_mesh_send_upper_layer_CTL_and_TTL
+	fetch 2,mem_mesh_send_message_SRC
+	store 2,mem_mesh_send_upper_layer_SRC
+	fetch 2,mem_mesh_send_message_DST
+	store 2,mem_mesh_send_upper_layer_DST
+
+ali_mesh_upper_transport_layer_send_access_message_add_SEQ:
+	fetch 3,mem_mesh_send_message_SEQ
+	store 3,mem_mesh_send_upper_layer_SEQ
+	arg mem_mesh_send_upper_layer_SEQ,rega
+	arg 3,loopcnt
+	call inverse_data
+	fetch 8,mem_mesh_send_upper_layer_CTL_and_TTL
+	store 8,mem_mesh_message_TTL
+	rtn
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_get_SeqZero_SegON:
+	fetch 1,mem_mesh_upper_transport_layer_payload_len
+	div pdata,SEGMENTED_ACCESS_MESSAGE_UNINT_PDU_LEN
+	call wait_div_end
+	quotient temp
+	remainder pdata
+	call ali_mesh_upper_transport_layer_send_segmented_access_message_sub_SegN_one,blank
+	storet 1,mem_mesh_segmented_lower_transport_layer_SegN
+	jam 0,mem_mesh_segmented_lower_transport_layer_SegO
+	fetch 3,mem_mesh_send_message_SEQ
+	arg 0x1fff,temp
+	iand temp,pdata
+	store 2,mem_mesh_segmented_lower_transport_layer_SegZero
+	rtn
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_calc_header:
+	fetch 2,mem_mesh_segmented_lower_transport_layer_SegZero
+	lshift4 pdata,pdata
+	lshift pdata,pdata
+	fetcht 1,mem_mesh_segmented_lower_transport_layer_SegO
+	ior temp,pdata
+	lshift4 pdata,pdata
+	lshift pdata,pdata
+	fetcht 1,mem_mesh_segmented_lower_transport_layer_SegN
+	ior temp,pdata
+	store 3,mem_mesh_segmented_access_lower_transport_layer_SZMIC_SeqZero_SegO_SegN
+	arg 3,loopcnt
+	arg mem_mesh_segmented_access_lower_transport_layer_SZMIC_SeqZero_SegO_SegN,rega
+	branch inverse_data
+
+
+ali_mesh_upper_transport_layer_send_segmented_access_message_sub_SegN_one:
+	increase -1,temp
+	rtn
+
+ali_mesh_upper_transport_layer_clear_tx_buffer:
+	rtn
+
+
+ali_mesh_loggint_tx_info_upper_send_packet:
+	arg mem_mesh_access_layer_payload,rega
+	fetchr loopcnt,1,mem_mesh_access_layer_payload_len
+	arg MESH_UPPER_SEND_PACKET,regb
+	branch logging_tx_info
+
Index: program/patch.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/patch.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/patch.prog	(working copy)
@@ -0,0 +1,3018 @@
+define G24
+// define BT30
+//define BLE
+//define debug_eeprom
+
+	bbit1 8,pf_patch_ext
+	beq patch00_0,p_soft_reset
+	beq patch00_3,p_main_loop
+	beq patch10_2,p_shutdown_radio
+ifdef G24		
+	beq patch11_2,p_txon
+endif	
+	beq patch11_3,p_initialize_radio_cont
+	beq patch13_7,p_init_param
+	beq patch14_4,p_lpm_dispatch
+	beq patch15_5,p_app_init
+ifdef BT30
+	beq patch15_6,p_app_process_bb_event
+endif
+	beq patch18_2,p_keyboard_start_work
+ifndef G24
+endif
+	beq patch18_5,mouse_app_enter_hibernate+3
+	beq patch18_6,p_mouse_before_hibernate
+	beq patch18_7,p_mouse_setgpio_hibernate
+	beq patch19_0,p_mouse_lpm_before_common
+	beq patch19_4,p_keyboard_motion
+	beq patch19_7,p_mouse_check_key_gpio
+	beq patch1a_1,p_mouse_init_sunt
+	beq patch1a_2,p_mouse_sensor_poweron
+ifndef G24	
+	beq patch1a_3,mouse_app_enter_hibernate+3
+endif	
+	beq patch1a_4,p_mouse_priority_bb_event
+	beq patch1a_7,p_mouse_bb_event_timer
+ifndef G24
+	beq patch1b_0,p_mouse_start_discovery
+	beq patch1b_1,p_mouse_stop_discovery
+	beq patch1b_2,p_mouse_store_remote_bdaddr
+endif
+	beq  patch1b_3,p_mouse_store_device_info
+	beq patch1b_4,p_mouse_idle
+ifdef BT30	
+	beq patch06_3,p_send_eir
+
+	beq patch1c_6,p_hid_rx_process
+	beq patch1e_0,p_l2cap_proc_signal_connect_req
+//	beq patch1e_7,p_l2cap_proc_signal_disconnect_req
+endif	
+	branch loop
+
+pf_patch_ext:
+	rtneq patch3f_7
+ifdef BT30
+	beq patch20_1,p_ml2cap_proc_signal_disconn_rsp	
+	beq patch23_0,p_send_lmp
+	beq patch29_3,p_process_upper_sm_reconn
+	beq patch29_7,p_upper_sm_send_ss_spp	
+	beq patch2b_3,p_sdp_process
+
+endif
+	beq patch30_2,p_ui_timer_check
+ifdef BLE
+	beq patch33_4,p_le_slave_match
+	beq patch33_6,p_le_slave_unsync
+	beq patch37_3,p_le_parse_l2cap	
+endif	
+ifdef G24	
+	beq patch3b_7,p_g24_pair_dispatch
+	beq patch3c_0,p_g24_pair_sm_common
+	beq patch3d_0,p_g24_reconn_dispatch
+	beq patch3d_1,p_g24_transmit_no_interrupt
+	beq patch3d_2,p_g24_transmit_hop_process
+	beq patch3d_3,p_g24_lpm_wait
+	beq patch3d_4,p_power_ctrl_start
+endif	
+	branch loop
+
+p_soft_reset:
+	call mouse_wakeup_from_power_check
+	nbranch soft_reset+1,user
+	fetch 1,mem_power_on_flag
+	branch soft_reset+1,blank
+	fetch 1,mem_config_select_device_button_gpio
+	beq UI_BUTTON_GPIO_DISABLE,soft_reset+1	
+	copy pdata,queue
+	fetch 4,mem_saved_gpio_in
+	qisolate0 pdata					// bt button gpio num
+	call p_keyboard_pb_set,true
+	branch soft_reset+1
+
+p_send_eir:
+	fetch 1,mem_state_map
+	set0 smap_edr,pdata
+	set0 smap_encryption,pdata
+	store 1,mem_state_map
+	branch send_eir+1
+
+p_txon:
+	fetch 1,mem_tx_power
+	beq TX_POWER_F20DB,p_set_tx_power_f20db
+	beq TX_POWER_F25DB,p_set_tx_power_f25db
+	branch txon_next+2
+
+p_set_tx_power_f20db:
+	jam 0x10,core_tx_pwr_ctrl0
+	jam 0x00,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+
+p_set_tx_power_f25db:
+	jam 0xb0,core_tx_pwr_ctrl0
+	jam 0x00,core_tx_pwr_ctrl1
+	branch set_rf_ldo_cfg89
+	
+p_initialize_radio_cont:
+	jam 0x03,core_rx_lna_cfg3
+	jam 0x00,core_syn_loopdiv_dsm_cfg
+	branch initialize_radio_cont+1
+		
+p_shutdown_radio:
+//	call rf_debug_shutdown_radio_line	//L-H-L
+	force 0x08,radio_ctrl
+	force 0,radio_ctrl
+	disable is_rx
+	disable is_tx
+	pulse packet_end
+	jam 0x5,modem_en
+	nop 2
+	jam 0x0,modem_en
+	call set_sync_on
+	jam 0,core_syn_en
+	jam 0x80,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set0 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0,core_rf_ldo_en1
+	branch gain_control
+
+
+p_init_param:
+	jam 0,mem_lmo_tid2			// classic can't reconnect
+	branch init_param_next+1
+
+p_lpm_dispatch:
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	rtn blank
+	fetch 1,mem_keyboard_fn_flag
+	nrtn blank
+	fetch 1,mem_keyboard_control_key_flag
+	nrtn blank
+	fetch 1,mem_keyboard_commbination_control_key_delay_release_timer
+	nrtn blank
+	branch lpm_dispatch+4
+	
+p_app_init:
+p_mouse_init:
+	call enable_authrom
+	call p_mouse_setting_config
+	call p_keyboard_gpio_init
+	call p_keyboard_low_vol_mult_set	
+	rtn wake
+	call mouse_cb_fuction
+	branch mouse_init_wireless
+
+p_mouse_setting_config:
+	rtn wake
+	call app_param_init
+ifdef G24	
+	call g24_transmit_init
+	call g24_chmap_param_init
+endif	
+	call mouse_param_init
+	call p_keyboard_param_init
+	fetcht 1,mem_mcu_rstb_gpio
+	call gpio_out_inactive
+	call p_mouse_device_led_off
+ifdef BLE	
+	call le_set_config_fixed_ltk
+	call le_set_justwork
+	call le_set_fixed_ltk
+	call le_set_config_read_authentication
+endif
+ifdef debug_eeprom
+	call iicd_read_init_pin
+endif	
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_OTP,p_keyboard_load_otp_info_check	
+	bbit1 MOUSE_ENABLE_EEPROM,mouse_load_eeprom_info_check
+	bbit1 MOUSE_ENABLE_FLASH,mouse_load_flash_info_check
+	rtn
+	
+
+p_keyboard_param_init:
+	setarg mem_keyboard_ui_uuid_table				//bt sdp start address
+	store 2,mem_ui_uuid_table
+	call p_keyboard_long_prsee_init
+	jam 0,mem_same_keyvalue_timerout_flag	
+	setarg 0x0195		// 0x00c7--1.49V  0x0097--1.10V  0x0088--1.00V  0x007e--0.9V
+	store 2,mem_mouse_vdd_full_vol
+	setarg 0x012c //0x0136		
+	istore 2,contw
+	setarg 0x014b		
+	istore 2,contw
+ifdef BT30
+	setarg 0x2540
+	store 3,mem_class
+endif
+ifdef BLE	
+	arg mem_le_adv_swift_pair,contw
+	arg 20,loopcnt
+	call clear_mem
+
+	fetch 1,mem_le_name_len
+	sub pdata,12,null
+	nbranch p_ble_name_set_no_swift_pair,positive
+	setarg 0x06ff06
+	store 3,mem_le_adv_swift_pair
+	setarg 0x000300
+	istore 3,contw
+	setarg 0x80
+	istore 1,contw
+p_ble_store_le_name:
+	fetch 1,mem_le_name_len
+	increase 1,pdata
+	copy pdata,loopcnt
+	arg mem_le_scan_data,contr			// 7byte + mem_le_scan_data
+	branch memcpy
+	
+p_ble_name_set_no_swift_pair:
+	arg mem_le_adv_swift_pair,contw
+	branch p_ble_store_le_name
+endif
+	rtn
+
+
+p_lpm_otp_option_disable_ice_mode:
+	fetch 1,core_peripheral_lock
+	setarg 0x00
+	store 1,core_lpm_reg+1
+	branch lpm_write2_ctrl_option
+
+
+	
+p_keyboard_gpio_init:
+ifdef BLE
+	call p_le_exchange_hid_map
+endif
+ifdef BT30
+	call p_bt_exchange_hid_map
+endif
+	fetcht 1,mem_whee_a_data_gpio
+	call mouse_gpio_config_input_pu
+
+	fetcht 1,mem_whee_b_data_gpio
+	call mouse_gpio_config_input_pu
+	
+	fetcht 1,mem_config_select_device_button_gpio
+	storet 1,mem_sensor_motion_gpio
+	call mouse_gpio_config_input_pu
+
+/*
+	fetcht 1,mem_keyboard_led_r_gpio
+	call gpio_out_active
+	fetcht 1,mem_keyboard_led_g_gpio
+	call gpio_out_active
+	fetcht 1,mem_keyboard_led_b_gpio
+	call gpio_out_active
+*/
+	// call p_lpm_otp_option_disable_ice_mode
+
+
+	//row init
+	setarg mem_key_row_gpio
+	store 2,mem_kb_row_ptr
+	//col init
+	setarg mem_key_col_gpio
+	store 2,mem_kb_col_ptr
+	//portA and B init
+	setarg mem_key_excol_gpio
+	store 2,mem_kb_excol_ptr
+p_keyboard_keyscan_gpio_init:
+	fetch 2,mem_kb_row_ptr
+	copy pdata,regb
+	arg 8,loopcnt
+p_keyboard_key_row_init:
+	ifetcht 1,regb
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	ncall mouse_gpio_config_input_pu,zero
+	increase 1,regb
+	loop p_keyboard_key_row_init
+
+	fetch 2,mem_kb_col_ptr
+	copy pdata,regb
+	arg 20,loopcnt
+p_keyboard_key_cow_init:
+	ifetcht 1,regb
+	isolate1 7,temp						// exmcu gpio
+	ncall gpio_set_high_impedance,true
+	increase 1,regb
+	loop p_keyboard_key_cow_init
+	branch mouse_gpio_pu_idle
+
+p_keyboard_low_vol_mult_set:
+ifdef G24
+	setarg 0x5d4800
+	store 4,mem_24g_long_sleep_set1
+endif
+ifdef BLE
+	jam 0x0c,mem_lpm_mult_init
+endif
+ifdef BT30
+	jam 0x3a,mem_lpm_mult_init
+endif	
+	fetch 1,mem_adc_power_flag
+	rtnbit0 0
+ifdef G24	
+	call mouse_24g_long_sleep_set
+else	
+	jam 0x10,mem_lpm_mult_init
+	fetch 1,mem_mouse_current_mult_timer
+	branch mouse_current_mult_reinit,blank
+endif	
+	rtn
+
+p_main_loop:
+	call p_keyboard_keyscan
+	call p_keyboard_key_process
+	call p_keyboard_special_key_check
+	branch main_loop+1
+
+
+//stb low--stb high = 10us; wait exmcu wakeup/reset = 301.9us; exmcu keyscan = 250.1us;mcu keyscan = 131.7us;value copy = 78.3us
+// keyboard keyscan = 772us
+p_keyboard_keyscan:
+	call p_keyboard_keyscan_gpio_init
+	call p_keyboard_stb_state_low							// exmcu wake up
+	setarg 0
+	store 2,mem_keyscan_exmcu_wait_wake_count
+	arg mem_keyscan_value_current,contr
+	arg mem_keyscan_value_check,contw
+	arg 20,loopcnt
+	call memcpy
+	setarg mem_keyscan_value_current
+	store 2,mem_keyscan_value_ptr
+	setarg mem_keyscan_exmcu_value
+	store 2,mem_keyscan_exmcu_value_ptr
+	call p_keyboard_stb_state_high
+	call p_keyboard_clk_state_high
+	call p_keyboard_clk_input
+p_keyboard_keyscan_exmcu_start_check:
+	fetch 2,mem_keyscan_exmcu_wait_wake_count
+	increase 1,pdata
+	store 2,mem_keyscan_exmcu_wait_wake_count
+	bbit1 9,p_keyboard_keyscan_reset_exmcu 				// 953us reset exmcu
+	fetcht 1,mem_mcu_clk_gpio							// waiting for exmcu wake done
+	call gpio_get_bit
+	nbranch p_keyboard_keyscan_exmcu_start_check,true
+	call p_keyboard_keyscan_get_exmcu_value
+	call p_keyboard_keyscan_get_mcu_value
+	call p_keyboard_stb_state_high							// exmcu sleep
+p_keyboard_keyscan_copy_value:
+	fetch 2,mem_kb_excol_ptr
+	copy pdata,regb
+	jam 0,mem_keyscan_col_loop_count
+p_keyboard_compare_col_excol_gpio_loop:		// loop 11 times
+	ifetcht 1,regb
+	fetch 2,mem_kb_col_ptr
+	copy pdata,rega
+	copy rega,regc
+	arg 20,loopcnt
+p_keyboard_compare_col_gpio_loop:
+	ifetch 1,rega
+	isub temp,null
+	branch p_keyboard_copy_value_exmcu_to_mcu,zero
+	increase 1,rega
+	loop p_keyboard_compare_col_gpio_loop
+p_keyboard_compare_col_excol_gpio_loop_next:	
+	increase 1,regb
+	fetch 1,mem_keyscan_col_loop_count
+	increase 1,pdata
+	store 1,mem_keyscan_col_loop_count
+	sub pdata,10,null
+	branch p_keyboard_compare_col_excol_gpio_loop,positive
+	rtn
+
+p_keyboard_copy_value_exmcu_to_mcu:
+	fetch 2,mem_keyscan_value_ptr
+	copy pdata,contw
+	copy rega,pdata	
+	isub regc,pdata 
+	iadd contw,contw							// offset = rega-regc
+	fetch 2,mem_keyscan_exmcu_value_ptr
+	copy pdata,regc
+	fetch 1,mem_keyscan_col_loop_count
+	iadd regc,regc	
+	ifetch 1, regc								// offset = mem_keyscan_col_loop_count
+	istore 1,contw
+	branch p_keyboard_compare_col_excol_gpio_loop_next
+
+
+p_keyboard_keyscan_get_exmcu_value:	//	8*11 times
+	nop 20
+	jam 0,mem_keyscan_exmcu_reset_count
+//	call p_keyboard_clk_state_high
+	call p_keyboard_stb_state_low
+	jam 0,mem_keyscan_col_loop_count
+p_keyboard_keyscan_exmcu_start_loop:	// clk:0 1 0 1 0 1 0 1 0 1 0
+	call p_keyboard_clk_state_low
+	call p_keyboard_keyscan_exmcu_get_col_value
+	call p_keyboard_clk_state_high
+	call p_keyboard_keyscan_exmcu_get_col_value
+	sub pdata,9,null
+	branch p_keyboard_keyscan_exmcu_start_loop,positive
+	call p_keyboard_clk_state_low
+	call p_keyboard_keyscan_exmcu_get_col_value
+	branch p_keyboard_clk_input
+
+p_keyboard_keyscan_exmcu_get_col_value:
+	jam 0,mem_keyscan_value_temp
+	nop 150
+	call p_keyboard_keyscan_get_col_value
+	fetch 2,mem_keyscan_exmcu_value_ptr
+p_keyboard_keyscan_value_store:
+	copy  pdata,contw
+	fetch 1,mem_keyscan_col_loop_count
+	iadd contw,contw
+	fetch 1,mem_keyscan_value_temp
+	istore 1,contw
+	fetch 1,mem_keyscan_col_loop_count
+	increase 1,pdata
+	store 1,mem_keyscan_col_loop_count
+	rtn
+
+p_keyboard_keyscan_get_mcu_value: 		// 8*20 = 130us
+	fetch 2,mem_kb_col_ptr
+	copy pdata,regb
+	jam 0,mem_keyscan_col_loop_count
+p_keyboard_keyscan_mcu_start:		// loop 20 times
+	jam 0,mem_keyscan_value_temp
+	ifetcht 1,regb
+	isolate1 7,temp								// exmcu gpio
+	branch p_keyboard_keyscan_mcu_start_loop,true
+	call gpio_out_active
+	call p_keyboard_keyscan_get_col_value
+	ifetcht 1,regb
+	call gpio_out_inactive
+	ifetcht 1,regb
+	call gpio_set_high_impedance
+p_keyboard_keyscan_mcu_start_loop:
+	increase 1,regb
+	fetch 2,mem_keyscan_value_ptr
+	call p_keyboard_keyscan_value_store
+	sub pdata,19,null
+	branch p_keyboard_keyscan_mcu_start,positive
+	rtn
+
+p_keyboard_keyscan_get_col_value:
+	fetch 2,mem_kb_row_ptr
+	copy pdata,regc
+	arg 8,loopcnt
+p_keyboard_keyscan_get_col_value_loop:		// loop 8 times
+	ifetcht 1,regc
+	call gpio_get_bit
+	fetch 1,mem_keyscan_value_temp
+	rshift pdata,pdata
+	setflag true,7,pdata
+	store 1,mem_keyscan_value_temp
+p_keyboard_keyscan_get_col_value_loop_next:	
+	increase 1,regc
+	loop p_keyboard_keyscan_get_col_value_loop
+	rtn
+
+p_keyboard_keyscan_reset_exmcu:
+	fetcht 1,mem_mcu_rstb_gpio
+	call gpio_out_active
+	nop 20
+	fetcht 1,mem_mcu_rstb_gpio
+	call gpio_out_inactive
+	nop 6000						// waiting for exmcu reset done 502us > 301.9us
+	fetch 1,mem_keyscan_exmcu_reset_count
+	increase 1,pdata
+	store 1,mem_keyscan_exmcu_reset_count
+	bbit1 6,soft_reset_chip
+	branch p_keyboard_keyscan
+
+
+p_keyboard_clk_state_high:
+	fetcht 1,mem_mcu_clk_gpio
+	branch gpio_out_inactive
+
+p_keyboard_clk_state_low:
+	fetcht 1,mem_mcu_clk_gpio
+	branch gpio_out_active
+
+p_keyboard_clk_input:
+	fetcht 1,mem_mcu_clk_gpio
+	branch gpio_config_input
+	
+p_keyboard_stb_state_high:
+	fetcht 1,mem_mcu_stb_gpio
+	branch gpio_out_inactive
+
+p_keyboard_stb_state_low:
+	fetcht 1,mem_mcu_stb_gpio
+	branch gpio_out_active
+
+
+// same key press check	
+p_keyboard_press_change_or_no_key:
+	jam 0,mem_same_keyvalue_timerout_flag
+	fetch 2,mem_same_keyvalue_timer_init
+	store 2,mem_same_keyvalue_timer
+	rtn
+
+p_keyboard_key_process:
+	// key deshake
+	arg mem_keyscan_value_current,rega
+	arg mem_keyscan_value_check,regb
+	arg 20,loopcnt
+	call string_compare
+	nbranch p_keyboard_press_change_or_no_key,zero	
+	call p_keyboard_keyscan_value_current_zero_check
+	call p_keyboard_press_change_or_no_key,blank
+
+	call p_keyboard_ghost_key_check
+	fetch 1,mem_mouse_ghost_flag
+	nrtn blank
+	fetch 1,mem_keyboard_commbination_key_step
+	rtneq CAMMBINATION_KEY_PRESS
+	rtneq CAMMBINATION_KEY_HOLD
+	rtneq CAMMBINATION_KEY_WAIT_RELEASE
+
+	// keyvalue get from map,and in or out process
+	jam 0,mem_keyscan_col_loop_count
+	arg mem_keyscan_value_current,rega
+	arg mem_keyscan_value_old,regb
+p_keyboard_keyvalue_process:		// loop 20 times
+	ifetcht 1,rega
+	ifetch 1,regb
+	ixor  temp,pdata
+	branch p_keyboard_keyvalue_process_loop,blank
+	store 1,mem_keyscan_value_temp
+	storet 1,mem_keyboard_press_flag_temp
+	istoret 1,regb
+	jam 1,mem_keyboard_data_change_flag
+	jam 0,mem_keyboard_keyvalue_bit_loop_count
+p_keyboard_keyvalue_change:			// loop 8 times
+	fetch 1,mem_keyscan_value_temp
+	bbit0 0,p_keyboard_keyvalue_change_loop
+	fetch 1,mem_keyscan_col_loop_count
+	mul32 pdata,8,pdata
+	fetcht 1,mem_keyboard_keyvalue_bit_loop_count
+	iadd temp,pdata									// map offset
+	arg mem_keyboard_keyvalue_map,contr
+	iadd contr,contr
+	ifetch 1,contr
+	store 1,mem_keyboard_keyvalue_temp				// keyvalue
+	call p_keyboard_keyvalue_fn_replace
+	call p_keyboard_keyvalue_commbination_replace
+	call p_keyboard_keyvalue_in_out
+p_keyboard_keyvalue_change_loop:
+	fetch 1,mem_keyscan_value_temp
+	rshift pdata,pdata
+	store 1,mem_keyscan_value_temp
+	fetch 1,mem_keyboard_press_flag_temp
+	rshift pdata,pdata
+	store 1,mem_keyboard_press_flag_temp
+	fetch 1,mem_keyboard_keyvalue_bit_loop_count
+	increase 1,pdata
+	store 1,mem_keyboard_keyvalue_bit_loop_count
+	sub pdata,7,null
+	branch p_keyboard_keyvalue_change,positive
+p_keyboard_keyvalue_process_loop:
+	increase 1,rega
+	increase 1,regb	
+	fetch 1,mem_keyscan_col_loop_count
+	increase 1,pdata
+	store 1,mem_keyscan_col_loop_count
+	sub pdata,19,null
+	branch p_keyboard_keyvalue_process,positive
+	rtn
+
+p_keyboard_keyscan_value_current_zero_check:
+	fetch 8,mem_keyscan_value_current
+	nrtn blank
+	fetch 8,mem_keyscan_value_current+8
+	nrtn blank
+	fetch 4,mem_keyscan_value_current+16
+	nrtn blank
+	fetch 1,mem_keyboard_commbination_control_key_delay_release_timer
+	nrtn blank
+	fetch 1,mem_keyboard_commbination_key_step
+	rtneq CAMMBINATION_KEY_NULL
+	jam CAMMBINATION_KEY_FREE,mem_keyboard_commbination_key_step
+	rtn
+
+
+//**input:mem_keyscan_value_current   **output:mem_mouse_ghost_flag   	mem_keyboard_all_press_key_count
+p_keyboard_ghost_key_check:	// (col[i] press >= 2) && (row[j] press >=2) && (c[i]_r[j] press) 
+	jam 0,mem_mouse_ghost_flag
+	jam 0,mem_keyboard_all_press_key_count
+	arg mem_keyscan_value_current,rega
+	arg 20,loopcnt
+p_keyboard_ghost_key_check_loop:
+	jam 0,mem_keyboard_current_col_press_key_count
+	ifetch 1,rega
+	branch p_keyboard_ghost_key_check_next_loop,blank
+p_keyboard_current_col_press_key_count_check:	
+	fetcht 1,mem_keyboard_current_col_press_key_count
+	increase 1,temp
+	storet 1,mem_keyboard_current_col_press_key_count
+	copy pdata,temp
+	increase -1,pdata
+	iand temp,pdata									// pdata &= pdata -1;  check pdata bit1 count
+	nbranch p_keyboard_current_col_press_key_count_check,zero
+	fetch 1,mem_keyboard_current_col_press_key_count
+	fetcht 1,mem_keyboard_all_press_key_count
+	iadd temp,temp
+	storet 1,mem_keyboard_all_press_key_count
+	sub pdata,1,null
+	branch p_keyboard_ghost_key_check_next_loop,positive
+	sub temp,2,null
+	branch p_keyboard_ghost_key_check_next_loop,positive
+	jam 0,mem_keyscan_col_loop_count					// col[i] press key count >= 2
+	jam 0,mem_keyboard_same_row_press_key_count
+	ifetcht 1,rega
+	arg mem_keyscan_value_current,regb
+p_keyboard_same_row_key_check:
+	fetch 1,mem_keyscan_col_loop_count
+	increase 1,pdata
+	store 1,mem_keyscan_col_loop_count
+	sub pdata,19,null
+	nbranch p_keyboard_ghost_key_check_next_loop,positive		// end col[i] row[0~7] check
+	ifetch 1,regb
+	iand temp,null												// col[i] & col[0~19]
+	branch p_keyboard_same_row_key_check_loop,zero
+	fetch 1,mem_keyboard_same_row_press_key_count		
+	increase 1,pdata
+	store 1,mem_keyboard_same_row_press_key_count
+	sub pdata,1,null
+	branch p_keyboard_same_row_key_check_loop,positive
+	jam 1,mem_mouse_ghost_flag
+	rtn	
+	
+p_keyboard_ghost_key_check_next_loop:
+	increase 1,rega
+	loop p_keyboard_ghost_key_check_loop
+	rtn
+
+p_keyboard_same_row_key_check_loop:
+	increase 1,regb
+	branch p_keyboard_same_row_key_check
+	
+
+
+p_keyboard_keyvalue_fn_replace:
+	fetch 1,mem_keyboard_press_flag_temp
+	ncall p_keyboard_commbination_delay_release_clear,blank
+	fetch 1,mem_keyboard_fn_flag
+	ncall p_keyboard_keyvalue_fn_replace_press,blank
+	fetch 1,mem_keyboard_fn_first
+	fetcht 1,mem_keyboard_fn_flag
+	ixor temp,pdata
+	// rtn zero
+	branch p_keygoard_delete,zero
+	fetch 1,mem_keyboard_keyvalue_temp
+	beq HID_KEY_ESC,p_keyboard_keyvalue_fn_esc
+	// beq HID_KEY_DELETE,p_keyboard_keyvalue_fn_delete
+	sub pdata,HID_KEY_F12,null
+	nrtn positive
+	arg HID_KEY_F1,temp	
+	isub temp,pdata
+	nrtn positive			
+	arg mem_keyboard_fn_f1,contr		//  HID_KEY_F1 <= keyvalue <= HID_KEY_F12
+	iadd contr,contr
+	ifetch 1,contr
+	branch p_keyboard_keyvalue_store_temp
+
+p_keygoard_delete:
+	fetch 1,mem_keyboard_keyvalue_temp
+	beq HID_KEY_DELETE,p_keyboard_keyvalue_fn_delete
+	rtn
+
+p_keyboard_keyvalue_fn_replace_press:
+	fetch 1,mem_keyboard_keyvalue_temp
+	beq HID_KEY_UP_ARROW,p_keyboard_keyvalue_fn_up_arrow
+	beq HID_KEY_DOWN_ARROW,p_keyboard_keyvalue_fn_down_arrow
+	beq HID_KEY_LEFT_ARROW,p_keyboard_keyvalue_fn_left_arrow
+	beq HID_KEY_RIGHT_ARROW,p_keyboard_keyvalue_fn_right_arrow
+	beq HID_KEY_LEFT_CTRL,p_keyboard_keyvalue_fn_left_ctrl
+	beq HID_KEY_SPACE,p_keyboard_keyvalue_fn_space
+	beq HID_KEY_S,p_keyboard_keyvalue_os_andriod
+	beq HID_KEY_D,p_keyboard_keyvalue_os_windows
+	beq HID_KEY_A,p_keyboard_keyvalue_os_ios
+	rtn
+
+p_keyboard_keyvalue_fn_esc:
+	fetch 1,mem_keyboard_fn_esc
+	branch p_keyboard_keyvalue_store_temp
+	
+p_keyboard_keyvalue_fn_delete:
+	fetch 1,mem_keyboard_fn_del
+	branch p_keyboard_keyvalue_store_temp
+
+p_keyboard_keyvalue_fn_up_arrow:
+	fetch 1,mem_keyboard_fn_arrow_enable_flag
+	rtn blank
+	setarg HID_KEY_PAGE_UP
+	branch p_keyboard_keyvalue_store_temp
+	
+p_keyboard_keyvalue_fn_down_arrow:
+	fetch 1,mem_keyboard_fn_arrow_enable_flag
+	rtn blank
+	setarg HID_KEY_PAGE_DOWN
+	branch p_keyboard_keyvalue_store_temp
+
+p_keyboard_keyvalue_fn_left_arrow:
+	fetch 1,mem_keyboard_fn_arrow_enable_flag
+	rtn blank
+	setarg HID_KEY_HOME
+	branch p_keyboard_keyvalue_store_temp
+
+p_keyboard_keyvalue_fn_right_arrow:
+	fetch 1,mem_keyboard_fn_arrow_enable_flag
+	rtn blank
+	setarg HID_KEY_END
+	branch p_keyboard_keyvalue_store_temp
+
+p_keyboard_keyvalue_fn_left_ctrl:
+	fetch 1,mem_keyboard_fn_left_ctrl_enable_flag
+	rtn blank
+	fetch 1,mem_kb_computer_system
+	beq SYSTEM_OS_WINDOWS,p_keyboard_keyvalue_windows_osk
+	setarg HID_KEY_OS_SOFT_KB
+	branch p_keyboard_keyvalue_store_temp
+p_keyboard_keyvalue_windows_osk:	
+	setarg HID_KEY_OSK
+	branch p_keyboard_keyvalue_store_temp
+
+p_keyboard_keyvalue_fn_space:
+	fetch 1,mem_keyboard_fn_space_enable_flag
+	rtn blank
+	setarg HID_KEY_LANGUAGE
+p_keyboard_keyvalue_store_temp:
+	store 1,mem_keyboard_keyvalue_temp
+	rtn
+	
+p_keyboard_keyvalue_os_andriod:
+	fetch 1,mem_keyboard_fn_system_switch_enable_flag
+	rtn blank
+	jam SYSTEM_OS_ANDRIOD,mem_kb_computer_system
+p_keyboard_keyvalue_clear_temp:
+	jam 6,mem_keyboard_mode_led_on_timer
+	setarg 0
+	branch p_keyboard_keyvalue_store_temp
+
+p_keyboard_keyvalue_os_windows:
+	fetch 1,mem_keyboard_fn_system_switch_enable_flag
+	rtn blank
+	jam SYSTEM_OS_WINDOWS,mem_kb_computer_system
+	branch p_keyboard_keyvalue_clear_temp
+
+p_keyboard_keyvalue_os_ios:
+	fetch 1,mem_keyboard_fn_system_switch_enable_flag
+	rtn blank
+	jam SYSTEM_OS_IOS,mem_kb_computer_system
+	branch p_keyboard_keyvalue_clear_temp
+	
+
+p_keyboard_keyvalue_commbination_replace:
+	fetch 1,mem_keyboard_keyvalue_temp
+	beq HID_KEY_PRINT_SCREEN,p_keyboard_commination_screen_shot_replace
+	beq HID_KEY_PAGE_UP,p_keyboard_commination_pageup_replace
+	beq HID_KEY_PAGE_DOWN,p_keyboard_commination_pagedown_replace
+	beq HID_KEY_HOME,p_keyboard_commination_home_replace
+	beq HID_KEY_END,p_keyboard_commination_end_replace
+	beq HID_KEY_SELECT_ALL,p_keyboard_commination_select_all
+	beq HID_KEY_COPY,p_keyboard_commbination_copy
+	beq HID_KEY_PASTE,p_keyboard_commbination_paste
+	beq HID_KEY_CUT,p_keyboard_commbination_cut
+	beq HID_KEY_ALL_OS_LOCK,p_keyboard_commination_os_lock
+	beq HID_KEY_OSK,p_keyboard_commbination_osk
+	beq HID_KEY_SEARCH,p_keyboard_commbination_search
+	beq HID_KEY_LANGUAGE,p_keyboard_commbination_language
+	beq HID_KEY_APP_TILING,p_keyboard_commbination_app_tiling
+	beq HID_KEY_AC_HOME,p_keyboard_commination_desktop
+	rtn
+
+p_keyboard_commbination_delay_release_set:
+	fetch 1,mem_keyboard_press_flag_temp
+	rtnbit0 0
+	jam 10,mem_keyboard_commbination_control_key_delay_release_timer
+	rtn
+
+p_keyboard_commbination_delay_release_clear:
+	jam 0,mem_keyboard_commbination_control_key_delay_release_timer
+	rtn
+
+p_keyboard_commination_screen_shot_replace:
+	fetch 1,mem_kb_computer_system
+	rtneq SYSTEM_OS_WINDOWS
+	rtneq SYSTEM_OS_ANDRIOD
+	jam LEFT_SHIFT_GUI,mem_keyboard_commbination_control_key_value
+	jam HID_KEY_3,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_keypress
+
+p_keyboard_commination_pageup_replace:
+	jam HID_KEY_UP_ARROW,mem_keyboard_commbination_standard_key_value
+p_keyboard_commination_ios_mac_command_commiation:	
+	fetch 1,mem_kb_computer_system
+	rtneq SYSTEM_OS_WINDOWS
+	rtneq SYSTEM_OS_ANDRIOD
+	jam LEFT_GUI,mem_keyboard_commbination_control_key_value
+	branch p_keyboard_commbination_keypress
+
+p_keyboard_commination_pagedown_replace:
+	jam HID_KEY_DOWN_ARROW,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commination_ios_mac_command_commiation	
+
+p_keyboard_commination_home_replace:
+	jam HID_KEY_LEFT_ARROW,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commination_ios_mac_command_commiation
+
+p_keyboard_commination_end_replace:
+	jam HID_KEY_RIGHT_ARROW,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commination_ios_mac_command_commiation
+
+p_keyboard_commination_select_all:
+	jam HID_KEY_A,mem_keyboard_commbination_standard_key_value
+p_keyboard_commbination_text_edit:
+	jam LEFT_CONTROL,mem_keyboard_commbination_control_key_value
+	fetch 1,mem_kb_computer_system
+	beq SYSTEM_OS_WINDOWS,p_keyboard_commbination_keypress
+	beq SYSTEM_OS_ANDRIOD,p_keyboard_commbination_keypress
+	jam LEFT_GUI,mem_keyboard_commbination_control_key_value
+	branch p_keyboard_commbination_keypress
+
+p_keyboard_commbination_copy:
+	jam HID_KEY_C,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_text_edit
+
+p_keyboard_commbination_paste:
+	jam HID_KEY_V,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_text_edit
+
+p_keyboard_commbination_cut:	
+	jam HID_KEY_X,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_text_edit
+
+p_keyboard_commination_os_lock:
+	fetch 1,mem_kb_computer_system
+	beq SYSTEM_OS_WINDOWS,p_keyboard_commination_windows_lock
+	beq SYSTEM_OS_MAC,p_keyboard_commination_mac_lock
+	setarg HID_KEY_IOS_ANDROID_OS_LOCK
+	branch p_keyboard_keyvalue_store_temp
+p_keyboard_commination_windows_lock:	
+	jam LEFT_GUI,mem_keyboard_commbination_control_key_value
+	jam HID_KEY_L,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_keypress
+p_keyboard_commination_mac_lock:
+	jam LEFT_GUI_CONTROL,mem_keyboard_commbination_control_key_value
+	jam HID_KEY_Q,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_keypress
+	
+p_keyboard_commbination_osk:
+	fetch 1,mem_kb_computer_system
+	beq SYSTEM_OS_WINDOWS,p_keyboard_commbination_windows_osk
+	setarg HID_KEY_OS_SOFT_KB
+	branch p_keyboard_keyvalue_store_temp
+p_keyboard_commbination_windows_osk:	
+	jam LEFT_GUI_CONTROL,mem_keyboard_commbination_control_key_value
+	jam HID_KEY_O,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_keypress
+
+p_keyboard_commbination_search:
+	fetch 1,mem_kb_computer_system
+	beq SYSTEM_OS_MAC,p_keyboard_commbination_mac_search
+	setarg HID_KEY_AC_SEARCH
+	branch p_keyboard_keyvalue_store_temp
+p_keyboard_commbination_mac_search:	
+	jam LEFT_GUI,mem_keyboard_commbination_control_key_value
+	jam HID_KEY_SPACE,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_keypress	
+
+	
+p_keyboard_commbination_language:
+	fetch 1,mem_kb_computer_system
+	beq SYSTEM_OS_WINDOWS,p_keyboard_commbination_language_windows
+	beq SYSTEM_OS_ANDRIOD,p_keyboard_commbination_language_andriod
+	jam LEFT_CONTROL,mem_keyboard_commbination_control_key_value
+p_keyboard_commbination_language_next:
+	jam HID_KEY_SPACE,mem_keyboard_commbination_standard_key_value
+	call p_keyboard_commbination_delay_release_set	
+	branch p_keyboard_commbination_keypress
+p_keyboard_commbination_language_windows:
+	jam LEFT_GUI,mem_keyboard_commbination_control_key_value
+	branch p_keyboard_commbination_language_next
+p_keyboard_commbination_language_andriod:
+	jam LEFT_SHIFT,mem_keyboard_commbination_control_key_value
+	branch p_keyboard_commbination_language_next
+
+p_keyboard_commbination_app_tiling:
+	fetch 1,mem_kb_computer_system
+	beq SYSTEM_OS_WINDOWS,p_keyboard_commbination_app_tiling_windows_android
+	beq SYSTEM_OS_ANDRIOD,p_keyboard_commbination_app_tiling_windows_android
+	jam LEFT_CONTROL,mem_keyboard_commbination_control_key_value
+	jam HID_KEY_UP_ARROW,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_keypress	
+p_keyboard_commbination_app_tiling_windows_android:
+	jam LEFT_GUI,mem_keyboard_commbination_control_key_value
+	jam HID_KEY_TAB,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_keypress	
+
+p_keyboard_commination_desktop:
+	fetch 1,mem_kb_computer_system
+	rtnne SYSTEM_OS_WINDOWS
+	jam LEFT_GUI,mem_keyboard_commbination_control_key_value
+	jam HID_KEY_D,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_keypress	
+
+p_keyboard_commbination_keypress:
+	jam 0,mem_keyboard_keyvalue_temp
+	fetch 1,mem_keyboard_press_flag_temp
+	bbit0 0,p_keyboard_commbination_key_wait_release_set
+	fetch 1,mem_keyboard_commbination_key_step
+	beq CAMMBINATION_KEY_COMPLETE,p_keyboard_commbination_key_hold_set
+p_keyboard_commbination_key_press_set:	
+	jam CAMMBINATION_KEY_PRESS,mem_keyboard_commbination_key_step
+	rtn
+
+p_keyboard_commbination_key_wait_release_set:
+	jam CAMMBINATION_KEY_WAIT_RELEASE,mem_keyboard_commbination_key_step
+	rtn
+
+p_keyboard_commbination_key_null_set:
+	jam CAMMBINATION_KEY_NULL,mem_keyboard_commbination_key_step
+	rtn
+
+//**input:   pdata:control key vaule       temp:standard key value
+p_keyboard_commbination_key_value_store:
+	store 1,mem_keyboard_tx_data+1
+	storet 1,mem_keyboard_tx_data+3
+	call enable_user
+	jam HID_REPORTID_KEY_STANDARD,mem_keyboard_tx_data
+	branch p_keyboard_motion_data_check_next	
+	
+p_keyboard_commbination_key_press_process:
+	fetch 1,mem_keyboard_commbination_control_key_value
+	arg 0,temp
+	call p_keyboard_commbination_key_value_store
+p_keyboard_commbination_key_hold_set:
+	jam CAMMBINATION_KEY_HOLD,mem_keyboard_commbination_key_step
+	rtn
+
+p_keyboard_commbination_key_hold_process:
+	jam CAMMBINATION_KEY_COMPLETE,mem_keyboard_commbination_key_step
+	fetch 1,mem_keyboard_commbination_control_key_value
+	fetcht 1,mem_keyboard_commbination_standard_key_value
+	branch p_keyboard_commbination_key_value_store
+	
+p_keyboard_commbination_key_wait_release_process:
+	jam HID_REPORTID_KEY_STANDARD,mem_keyboard_tx_data
+	fetch 1,mem_keyboard_commbination_control_key_value
+	arg 0,temp
+	call p_keyboard_commbination_key_value_store
+	fetch 1,mem_keyboard_commbination_control_key_delay_release_timer
+	branch p_keyboard_commbination_key_null_set,blank
+p_keyboard_commbination_key_release_set:	
+	jam CAMMBINATION_KEY_RELEASE,mem_keyboard_commbination_key_step
+	rtn
+
+p_keyboard_commbination_key_release_process:
+	branch p_keyboard_commbination_key_value_store+2
+
+p_keyboard_commbination_key_null_process:
+	jam CAMMBINATION_KEY_FREE,mem_keyboard_commbination_key_step
+	arg 0,pdata
+	arg 0,temp
+	branch p_keyboard_commbination_key_value_store	
+
+
+
+p_keyboard_keyvalue_in_out:
+	fetch 1,mem_keyboard_keyvalue_temp
+	arg HID_KEY_LEFT_CTRL,temp
+	isub temp,null
+	nbranch p_keyboard_keyvalue_standard,positive		// value < 0xe0
+	sub pdata,HID_KEY_RIGHT_GUI,null
+	nbranch p_keyboard_keyvalue_consumer,positive		// value  > 0xe7
+	and_into 0x07,pdata
+	copy pdata,queue
+	fetch 1,mem_keyboard_press_flag_temp
+	bbit1 0,p_keyboard_keyvalue_control_key_in
+p_keyboard_keyvalue_control_key_out:
+	fetch 1,mem_keyboard_keyvalue_buffer
+	qset0 pdata
+	store 1,mem_keyboard_keyvalue_buffer
+	rtn
+p_keyboard_keyvalue_control_key_in:
+	fetch 1,mem_keyboard_keyvalue_buffer
+	qset1 pdata
+	store 1,mem_keyboard_keyvalue_buffer
+	rtn
+
+p_keyboard_keyvalue_standard:
+	jam 0,mem_keyboard_keyvalue_buffer+8
+	fetch 1,mem_keyboard_press_flag_temp
+	bbit1 0,p_keyboard_keyvalue_standard_in
+p_keyboard_keyvalue_standard_out:	
+	fetcht 1,mem_keyboard_keyvalue_temp
+	arg 6,loopcnt
+	arg mem_keyboard_keyvalue_buffer+2,contr
+p_keyboard_keyvalue_standard_out_loop:
+	ifetch 1,contr
+	isub temp,null
+	nbranch p_keyboard_keyvalue_standard_out_next,zero
+	ifetch 1,contr
+	increase -2,contr
+	istore 1,contr
+	rtn blank
+	increase 1,contr
+	istoret 1,contr
+p_keyboard_keyvalue_standard_out_next:	
+	loop p_keyboard_keyvalue_standard_out_loop
+	rtn
+	
+p_keyboard_keyvalue_standard_in:
+	fetcht 1,mem_keyboard_keyvalue_temp
+	arg 6,loopcnt
+	arg mem_keyboard_keyvalue_buffer+2,contr
+p_keyboard_keyvalue_standard_in_loop:
+	ifetch 1,contr
+	branch p_keyboard_keyvalue_standard_in_data,blank
+	isub temp,null
+	rtn zero
+	loop p_keyboard_keyvalue_standard_in_loop
+	rtn
+p_keyboard_keyvalue_standard_in_data:
+	increase -1,contr
+	istoret 1,contr
+	rtn
+
+p_keyboard_keyvalue_consumer:
+	jam KEYBOARD_CONSUMER_KEY_PRESS,mem_keyboard_consumer_key_status
+	fetch 1,mem_keyboard_press_flag_temp
+	isolate0 0,pdata
+	call p_keyboard_consumer_key_release,true
+	branch p_keyboard_keyvalue_standard
+	
+p_keyboard_consumer_key_release:
+	jam KEYBOARD_CONSUMER_KEY_RELEASE,mem_keyboard_consumer_key_status
+	rtn
+
+// check Fn,pairing button,control key
+p_keyboard_special_key_check:
+	call p_keyboard_pairing_button_check
+	jam 0,mem_keyboard_fn_flag
+	jam 0,mem_keyboard_control_key_flag
+	jam 0,mem_keyboard_bt_button_flag
+	jam 0,mem_keyboard_commbination_long_press_flag
+	fetch 1,mem_keyboard_keyvalue_buffer
+	ncall p_keyborad_control_key_set,blank
+	arg mem_keyboard_keyvalue_buffer+2,contr
+	arg 6,loopcnt
+p_keyboard_special_key_check_loop:
+	ifetch 1,contr
+	sub pdata,HID_KEY_FN,null
+	call p_keyboard_fn_set,zero
+	sub pdata,HID_KEY_PB,null
+	call p_keyboard_pb_set,zero
+	loop p_keyboard_special_key_check_loop
+ifndef G24
+	call p_keyboard_commbination_fast_conn_bt_check
+endif	
+	fetch 1,mem_keyboard_pairing_type
+	branch p_keyboard_enable_bt_button_pairing,blank
+ifdef G24	
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,p_keyboard_commbination_pairing_24g_check
+else	
+	fetch 2,mem_keyboard_keyvalue_buffer+2
+	fetcht 2,mem_keyboard_commbination_key_bt
+	isub temp,null
+	branch p_mouse_long_button_bt_discovery,zero
+	byteswap temp,temp
+	isub temp,null
+	branch p_mouse_long_button_bt_discovery,zero
+endif
+	rtn
+
+p_keyboard_pairing_button_check:
+	fetch 1,mem_keyboard_pairing_type
+	nrtn blank
+	fetcht 1,mem_config_select_device_button_gpio
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	call gpio_get_bit
+	nbranch p_keyboard_pairing_button_release,true
+	arg 8,loopcnt
+	arg mem_keyboard_keyvalue_buffer,contw
+	call clear_mem
+	jam HID_KEY_PB,mem_keyboard_keyvalue_buffer+2
+	rtn
+
+p_keyboard_pairing_button_release:
+	fetch 1,mem_keyboard_keyvalue_buffer+2
+	rtnne HID_KEY_PB
+	jam HID_KEY_NULL,mem_keyboard_keyvalue_buffer+2
+	rtn	
+
+p_keyboard_enable_bt_button_pairing:
+	fetch 1,mem_keyboard_bt_button_flag
+	rtn blank
+ifdef G24		
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,p_mouse_24g_start_pair_mode
+else	
+p_mouse_long_button_bt_discovery:
+	call p_keyboard_pairing_check_otp_offset
+	jam 0,mem_keyboard_data_change_flag
+	branch mouse_long_button_bt_discovery
+endif
+	rtn
+	
+ifdef G24	
+p_keyboard_commbination_pairing_24g_check:
+	fetch 2,mem_keyboard_keyvalue_buffer+2
+	fetcht 2,mem_keyboard_commbination_key_24g
+	isub temp,null
+	branch p_mouse_24g_commbination_long_press_juge,zero
+	byteswap temp,temp
+	isub temp,null
+	nrtn zero
+	
+p_mouse_24g_commbination_long_press_juge:
+	jam 1,mem_keyboard_commbination_long_press_flag
+	rtn
+	
+p_mouse_24g_start_pair_pb_button_flag_set:
+	jam 0,mem_keyboard_commbination_long_press_flag
+	call p_keyboard_pb_set
+p_mouse_24g_start_pair_mode:
+	jam 0,mem_24g_repeat_send_flag
+	call p_keyboard_pairing_check_otp_offset		
+	jam 0,mem_keyboard_data_change_flag
+	fetch 2,mem_24g_pair_timeout
+	nrtn blank
+	setarg 0
+	store 2,mem_mouse_no_data_timer
+	call p_keyboard_capslock_led_off
+	call p_keyboard_numberlock_led_off
+	branch mouse_24g_start_pair_mode
+endif
+
+p_keyborad_control_key_set:
+	jam 1,mem_keyboard_control_key_flag
+	rtn
+
+p_keyboard_fn_set:
+	jam 1,mem_keyboard_fn_flag
+	rtn
+
+p_keyboard_pb_set:
+	jam 1,mem_keyboard_bt_button_flag
+	rtn
+
+
+p_keyboard_pairing_check_otp_offset:
+	fetch 2,mem_otp_read_retention_offset
+	arg 0x528,temp   //24*55
+	isub temp,null
+	nrtn positive
+	branch assert
+//  otp process	
+p_keyboard_load_otp_info_check:
+	fetch 1,mem_device_flag
+ifdef G24	
+	beq MODE_24G_DEVICE,p_keyboard_load_otp_device_info_g24_init
+endif
+ifdef BT30
+	beq MODE_BT_DEVICE1,p_keyboard_load_otp_device_info_bt_init
+endif
+ifdef BLE
+	beq MODE_BT_DEVICE1,p_keyboard_load_otp_device_info_ble_init
+endif
+	rtn	
+ifdef G24	
+p_keyboard_load_otp_device_info_g24_init:
+	arg 80,regd
+	setarg 0x400
+	idiv regd
+	call wait_div_end
+	quotient pdata
+	store 2,mem_pdatatemp
+	arg 0x1fcc,pdata
+	arg 4,temp
+	arg 4,rege
+	branch p_keyboard_load_otp_device_info
+endif
+ifdef BT30
+p_keyboard_load_otp_device_info_bt_init:
+	arg 480,regd
+	setarg 0x400
+	idiv regd
+	call wait_div_end
+	quotient pdata
+	store 2,mem_pdatatemp
+	arg 0x1fb8,pdata
+	arg 24,temp		
+	arg 24,rege
+	branch p_keyboard_load_otp_device_info
+endif	
+ifdef BLE
+p_keyboard_load_otp_device_info_ble_init:
+	arg 280,regd
+	setarg 0x400
+	idiv regd
+	call wait_div_end
+	quotient pdata
+	store 2,mem_pdatatemp
+	arg 0x1fc2,pdata
+	arg 14,temp		
+	arg 14,rege
+	branch p_keyboard_load_otp_device_info
+endif
+p_keyboard_load_otp_device_info:
+	storet 1,mem_temp
+	arg mem_otp_read_retention_memory,rega
+	arg 0,regc
+p_keyboard_load_otp_info_check_page_loop:
+	copy pdata,regb
+	fetcht 1,mem_temp
+	call otpd_read_data
+	fetch 8,mem_otp_read_retention_memory
+	fetcht 8,mem_otp_read_retention_memory+8
+	ior temp,pdata
+	fetcht 8,mem_otp_read_retention_memory+16
+	ior temp,pdata	
+	branch p_keyboard_load_otp_info_check_first_time,blank
+	increase 1,regc
+	fetch 2,mem_pdatatemp
+	isub regc,null
+	nbranch p_keyboard_load_otp_info_check_overwise,positive
+	copy regb,pdata
+	isub regd,pdata
+	branch p_keyboard_load_otp_info_check_page_loop
+p_keyboard_load_otp_info_check_first_time:
+	
+	sub regc,0,null
+	branch p_keyboard_load_otp_info_check_first_time_process,zero
+p_keyboard_load_otp_info_check_first_time_loop_init:
+	copy regb,pdata
+	iadd regd,pdata
+p_keyboard_load_otp_info_check_first_time_loop:	
+	isub rege,pdata
+	copy pdata,regb
+	fetcht 1,mem_temp
+	call otpd_read_data
+	fetch 8,mem_otp_read_retention_memory
+	fetcht 8,mem_otp_read_retention_memory+8
+	ior temp,pdata
+	fetcht 8,mem_otp_read_retention_memory+16
+	ior temp,pdata	
+	branch p_keyboard_load_otp_info_check_offset_process,blank
+	copy regb,pdata
+	branch p_keyboard_load_otp_info_check_first_time_loop
+p_keyboard_load_otp_info_check_first_time_process:
+	storer rege,1,mem_otp_read_retention_offset
+	rtn
+p_keyboard_load_otp_info_check_offset_process:
+	setarg 0x1fd0
+	isub regb,pdata
+	store 2,mem_otp_read_retention_offset		//store the next field offset ,convenient for next storage
+	copy regb,pdata
+	iadd rege,pdata
+	fetcht 1,mem_temp
+	arg mem_otp_read_retention_memory,rega
+	call otpd_read_data
+	fetch 1,mem_device_flag
+ifdef G24	
+	beq MODE_24G_DEVICE,p_keyboard_load_otp_info_check_offset_process_g24
+endif
+ifdef BT30
+	beq MODE_BT_DEVICE1,p_keyboard_load_otp_info_check_offset_process_bt
+endif
+ifdef BLE
+	beq MODE_BT_DEVICE1,p_keyboard_load_otp_info_check_offset_process_ble
+endif
+	rtn
+ifdef G24	
+p_keyboard_load_otp_info_check_offset_process_g24:	
+	fetch 6,mem_otp_read_retention_memory
+	store 4,mem_mouse_24g_addr
+	branch mouse_load_device_info+1
+endif
+ifdef BT30
+p_keyboard_load_otp_info_check_offset_process_bt:	
+	fetch 1,mem_otp_read_retention_memory
+	sub pdata,SYSTEM_OS_MAC,null
+	ncall set_pdata_0,positive
+	store 1,mem_kb_computer_system
+	fetch 1,mem_otp_read_retention_memory+1
+	store 1,mem_device1_type	
+	arg mem_otp_read_retention_memory+2,contr
+	arg mem_device1_link_key,contw
+	call memcpy16
+	fetch 6,mem_otp_read_retention_memory+18
+	store 6,mem_device1_addr
+	branch mouse_select_reconn_device	
+endif	
+ifdef BLE
+p_keyboard_load_otp_info_check_offset_process_ble:
+	fetch 1,mem_otp_read_retention_memory
+	sub pdata,SYSTEM_OS_MAC,null
+	ncall set_pdata_0,positive
+	store 1,mem_kb_computer_system
+	fetch 1,mem_otp_read_retention_memory+1
+	store 1,mem_device1_type
+	fetch 6,mem_otp_read_retention_memory+2
+	store 6,mem_device1_addr
+	fetch 6,mem_otp_read_retention_memory+8
+	store 6,mem_device1_locall_addr
+	branch mouse_select_reconn_device
+endif
+
+p_keyboard_load_otp_info_check_overwise:
+	
+	branch assert
+
+	
+p_mouse_store_device_info:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit1 MOUSE_ENABLE_OTP,p_keyboard_store_otp_device_info
+	branch mouse_store_device_info+2
+	
+p_keyboard_store_otp_device_info:
+	fetch 1,mem_device_flag
+ifdef G24	
+	beq MODE_24G_DEVICE,p_keyboard_store_otp_device_info_g24
+endif
+ifdef BT30
+	beq MODE_BT_DEVICE1,p_keyboard_store_otp_device_info_bt
+endif
+ifdef BLE
+	beq MODE_BT_DEVICE1,p_keyboard_store_otp_device_info_ble
+endif
+	rtn
+ifdef G24	
+p_keyboard_store_otp_device_info_g24:
+	fetcht 2,mem_otp_read_retention_offset
+	setarg 0x1fd0
+	isub temp,temp
+	arg mem_mouse_24g_addr,rega
+	arg 4,loopcnt
+	call otp_write   /* temp = otp address, rega pointers data, loopcnt is count */
+	fetcht 2,mem_otp_read_retention_offset
+	increase 4,temp
+	storet 2,mem_otp_read_retention_offset
+	rtn
+endif
+ifdef BT30
+p_keyboard_store_otp_device_info_bt:
+	fetcht 2,mem_otp_read_retention_offset
+	setarg 0x1fd0
+	isub temp,regb
+	
+	add regb,1,temp
+	arg mem_device1_type,rega
+	arg 1,loopcnt
+	call otp_write   /* temp = otp address, rega pointers data, loopcnt is count */	
+	
+	add regb,2,temp
+	arg mem_device1_link_key,rega
+	arg 16,loopcnt
+	call otp_write   /* temp = otp address, rega pointers data, loopcnt is count */
+	
+	add regb,18,temp	
+	arg mem_device1_addr,rega
+	arg 6,loopcnt
+	branch otp_write   /* temp = otp address, rega pointers data, loopcnt is count */		
+endif
+ifdef BLE
+p_keyboard_store_otp_device_info_ble:
+	fetcht 2,mem_otp_read_retention_offset
+	setarg 0x1fd0
+	isub temp,regb
+	
+	add regb,1,temp
+	arg mem_device1_type,rega
+	arg 1,loopcnt
+	call otp_write   /* temp = otp address, rega pointers data, loopcnt is count */	
+
+	add regb,2,temp	
+	arg mem_device1_addr,rega
+	arg 6,loopcnt
+	call otp_write   /* temp = otp address, rega pointers data, loopcnt is count */
+
+	add regb,8,temp	
+	arg mem_device1_locall_addr,rega
+	arg 6,loopcnt
+	branch otp_write   /* temp = otp address, rega pointers data, loopcnt is count */	
+endif	
+
+p_keyboard_start_work:
+	call p_mouse_device_poweron_timer
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_ADC,p_keyboard_start_work_next
+	call enable_adc
+	call vdd_calculate_by_mode
+	fetcht 2,mem_1v_adc_io_data
+	fetch 2,mem_adc_current_value
+	div pdata,2
+	call get_div_result
+	isub temp,null
+	branch p_keyboard_start_work+1,positive
+	call mouse_adc_read_start
+	fetch 1,mem_adc_power_flag
+	bbit1 1,mouse_power_down
+p_keyboard_start_work_next:
+	fetch 1,mem_keyboard_pairing_type
+	call p_keyboard_enable_bt_button_pairing,blank
+	fetch 1,mem_keyboard_bt_button_flag
+	nrtn blank
+ifdef G24	
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_24g_reconn_general_dongle
+else	
+	call mouse_bluetooth_fast_conn_disable
+	fetch 6,mem_device1_addr	
+	branch p_mouse_buletooth_fast_conn_init ,blank
+	branch mouse_start_reconnect_device
+
+p_mouse_buletooth_fast_conn_init:
+	jam 0xff,mem_mouse_bluetooth_fast_conn_flag
+	jam TX_POWER_0DB,mem_tx_power
+	fetch 1,mem_mouse_bluetooth_type
+	bbit1 MODE_4_MOUSE,mouse_ble_fast_conn_init
+p_mouse_bt_fast_conn_init:	
+	jam 0x33,mem_xrecord_mode
+	fetch 8,mem_mouse_factory_addr
+	store 6,mem_hci_plap
+	store 8,mem_link_key
+	store 8,mem_link_key+8
+	call check_link_key_load
+	branch mouse_start_reconnect
+	
+endif	
+
+p_mouse_before_hibernate:
+	jam 0xff,mem_sensor_motion_gpio
+	branch mouse_before_hibernate+1
+
+p_mouse_setgpio_hibernate:
+	call clear_wake
+	call p_mouse_device_led_off
+	call mouse_setgpio_hibernate+3
+p_keyboard_adc_gpio_set_before_hibernate:	
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_ADC
+	fetch 1,mem_adc_config_flag_init
+	rtnne ADC_CONFIG_GPIO
+	fetch 1,mem_adc_channel_gpio	
+	arg gpcfg_no_ie,temp
+ 	branch gpio_config_function_int
+
+
+p_mouse_lpm_before_common:
+	call clear_wake
+	call mouse_wheel_check
+	fetcht 1,mem_whee_a_data_gpio
+	call gpio_set_wake_by_current_state
+	fetcht 1,mem_whee_b_data_gpio
+	call gpio_set_wake_by_current_state
+
+	fetcht 1,mem_config_select_device_button_gpio
+	call gpio_set_wake
+
+	fetch 2,mem_kb_col_ptr
+	copy pdata,regb
+	arg 20,loopcnt
+p_keyboard_key_col_wake_init:
+	ifetcht 1,regb
+	isolate1 7,temp				// exmcu gpio
+	ncall gpio_out_active,true
+	increase 1,regb
+	loop p_keyboard_key_col_wake_init
+
+	fetch 2,mem_kb_row_ptr
+	copy pdata,regb
+	arg 8,loopcnt
+p_keyboard_key_row_wake_init:
+	ifetcht 1,regb
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	ncall gpio_set_wake_by_current_state,zero
+	increase 1,regb
+	loop p_keyboard_key_row_wake_init
+	rtn
+
+
+
+ifdef G24
+p_g24_pair_dispatch:
+	jam DEFAULT_24G_DEVICE,mem_24g_reconn_type
+	fetch 1,mem_24g_pair_sm
+	bne STATE_24G_PAIRING_2,p_g24_pair_dispatch_next
+	jam 0,mem_24g_pair_time_out
+	fetch 2,mem_24g_pair_count
+	increase 1,pdata
+	store 2,mem_24g_pair_count
+	fetch 1,mem_24g_pair_count
+	beq 0,g24_pair_dispatch+1
+	rtn
+
+p_g24_pair_dispatch_next:
+	fetch 1,mem_24g_pair_time_out
+	increase 1,pdata
+	store 1,mem_24g_pair_time_out
+	beq 0xff,g24_pair_sm_reinit
+	branch g24_pair_dispatch+1
+
+p_g24_pair_sm_common:
+	fetch 1,mem_24g_pair_sm
+	rtneq STATE_24G_PAIRING_SUCCESS
+	beq STATE_24G_PAIRING_2,p_g24_pair_sm_2_waiting_ack
+	branch g24_pair_sm_common+14
+	
+p_g24_pair_sm_2_waiting_ack:
+	fetch 1,mem_24g_pair_switch
+	branch g24_pair_sm_2_waiting_ack_skip,blank
+	fetch 4,mem_24g_rxpayload+2
+	rtn blank
+	store 4,mem_24g_receiver_addr
+	branch g24_pair_sm_2_waiting_ack_skip
+
+p_g24_reconn_dispatch:
+	fetch 2,mem_24g_reconn_count
+	and_into 0xe0,pdata
+	branch p_g24_reconn_dispatch_next,blank		// each 0x100 times,reconnect 16 times
+	fetch 2,mem_24g_reconn_count
+	increase 1,pdata
+	store 2,mem_24g_reconn_count
+	rtn
+p_g24_reconn_dispatch_next:
+	call g24_reconn_data_prep
+	call g24_transmit_receive_ack
+	nbranch g24_reconn_device_fail,sync
+	nbranch g24_reconn_device_fail,user3
+	call p_g24_ackpayload_parse
+	branch g24_reconn_receiver_succ
+
+
+p_g24_ackpayload_parse:
+	call g24_ackpayload_parse
+	fetch 1,mem_24g_rxbuf+1
+	compare 0x08,pdata,0xf8
+	nrtn true
+	fetch 1,mem_24g_rxbuf+2
+	beq 0xff,p_mouse_24g_hibernate_set
+	store 1,mem_keyboard_led_status
+	rtn
+
+p_g24_transmit_no_interrupt:
+	call g24_txdata_prep
+	nbranch p_g24_nodata_transmit,user
+p_g24_transmit_start:
+	call p_g24_transmit_process
+	call power_ctrl_start
+	branch g24_transmit_start_next
+
+p_g24_nodata_transmit:
+	fetch 8,mem_keyscan_value_current
+	nbranch g24_transmit_start_next,blank
+	fetch 8,mem_keyscan_value_current+8
+	nbranch g24_transmit_start_next,blank	
+	fetch 4,mem_keyscan_value_current+16
+	nbranch g24_transmit_start_next,blank	
+	fetch 1,mem_24g_transmit_by_interrupt
+	rtneq G24_TX_TIMER_INT_ENABLE
+	call g24_search_receiver
+p_g24_long_sleep:
+	call g24_lpm_wait
+	nrtn user
+	fetch 1,mem_sensor_shutdown_flag
+	ncall mouse_setgpio_hibernate,blank
+	fetch 4,mem_24g_enter_hibernate
+	branch g24_long_seep2
+
+p_g24_transmit_process:
+	jam 0,mem_24g_retry
+p_g24_transmit_loop:
+	fetchr timeup,2,mem_param_rx_setup
+	until clkn_rt,meet
+	call g24_transmit_receive_ack
+	fetch 1,mem_24g_no_ack	//tx noack
+	beq no_ack_24g,g24_transmit_no_ack
+	nbranch p_g24_retransmit,sync
+	nbranch p_g24_retransmit,user3
+	call p_g24_ackpayload_parse
+	jam 0,mem_sensor_shutdown_flag
+	branch g24_transmit_no_ack
+	
+
+p_g24_retransmit:
+	fetch 1,mem_24g_abort_pac
+	nrtn blank
+	fetch 2,mem_24g_txfail_cnt
+	increase 1,pdata
+	store 2,mem_24g_txfail_cnt	
+	fetch 1,mem_24g_txfail_cnt
+	beq 0xff,g24_tx_attempt_fail
+	isolate1 6,pdata
+	call p_keyboard_pair_key_check,true
+	call g24_transmit_hop_process
+	branch p_g24_transmit_loop
+
+p_keyboard_pair_key_check:
+	call p_keyboard_keyscan
+	fetch 1,mem_keyscan_value_current+1
+	sub pdata,0x09,null					// esc :0x08    Q:0x01
+	branch mouse_soft_reset,zero
+	rtn
+
+p_g24_transmit_hop_process:
+	fetch 1,mem_24g_retry
+	increase 1,pdata
+	store 1,mem_24g_retry
+	and_into 0x03,pdata
+	branch p_g24_tx_fast_hop,blank		//each 4 times change channel
+	rtn
+
+p_g24_tx_fast_hop:
+	fetch 4,mem_24g_addr
+	fetcht 4,mem_24g_fast_conn_addr
+	isub temp,null
+	branch g24_ch,zero
+	branch g24_tx_fast_hop
+	/*
+	fetch 1,mem_24g_retry
+	sub pdata,30,null
+	branch g24_tx_fast_hop,positive
+	arg 25,loopcnt
+	call delay_ms_wait
+	branch g24_hop_ch_disable
+	*/
+
+p_g24_lpm_wait:
+	enable user
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch disable_user,blank
+	fetch 1,mem_keyboard_fn_flag
+	nbranch disable_user,blank
+	fetch 1,mem_keyboard_control_key_flag
+	nbranch disable_user,blank
+	fetch 1,mem_keyboard_commbination_control_key_delay_release_timer
+	nbranch disable_user,blank
+	fetch 1,mem_24g_transmit_by_interrupt
+	beq G24_TX_TIMER_INT_ENABLE,disable_user
+	branch g24_lpm_wait+5
+	
+p_power_ctrl_start:
+	fetch 4,mem_24g_addr
+	fetcht 4,mem_24g_fast_conn_addr
+	isub temp,null
+	nbranch power_ctrl_start+1,zero
+	jam TX_POWER_F25DB,mem_tx_power
+	rtn
+endif
+
+p_mouse_check_key_gpio:
+	setarg 0
+p_mouse_init_sunt:
+p_mouse_sensor_poweron:
+	rtn
+p_mouse_idle:
+	call mouse_low_voltage_led_no_enter_lpm
+	call ui_check_paring_button
+	branch mouse_wheel_check
+
+
+p_ui_timer_check:		// 100ms timer will return 4 or 5 times when power on
+	fetch 1,mem_power_on_flag
+	ncall ui_timer_init,blank
+	jam 0,mem_power_on_flag
+	branch ui_timer_check+1	
+ifdef BT30
+p_app_process_bb_event:
+	arg mem_ipc_fifo_bt2c51,rega
+	call fifo_out
+	rtn blank
+	//reaching here mains c51 cannot get bb event.
+	copy pdata,regc
+	call p_app_event_normal_process
+	branch app_process_bb_event_priority
+p_app_event_normal_process:
+	beq BT_EVT_ML2CAP_CONN_REFUSED,p_app_event_ml2cap_conn_refused	
+	branch app_event_normal_process
+p_app_event_ml2cap_conn_refused:
+	jam 0x00,mem_kb_computer_system
+	rtn
+endif	
+	
+p_mouse_priority_bb_event:
+	copy regc,pdata	
+ifdef BLE
+	beq BT_EVT_LE_START_ENC,p_mouse_le_ll_start_encryt
+	beq BT_EVT_LE_PARSE_CONN_PARAM_ACCEPTED,p_mouse_le_parse_conn_param_accepted
+	beq BT_EVT_LE_PARSE_CONN_PAPA_UPDATE_RSP,p_mouse_le_conn_param_update_rsp_recieved
+	beq BT_EVT_LE_DISCONNECTED,p_mouse_le_bb_disconnected
+endif	
+ifdef BT30
+	beq BT_EVT_BB_CONNECTED,p_mouse_bb_event_connected
+	beq BT_EVT_HID_HANDSHAKE,p_mouse_bt_hid_handshake
+endif	
+ifdef G24	
+	beq BT_EVT_24G_PAIRING_COMPLETE,p_mouse_24g_pairing_complete
+	beq BT_EVT_24G_ATTEMPT_SUCCESS,p_mouse_24g_attempt_success
+	beq BT_EVT_24G_ATTEMPT_FAIL,p_mouse_24g_attempt_fail
+
+endif	
+	branch mouse_priority_bb_event+2
+
+ifdef BT30
+p_mouse_bb_event_connected:
+	call mouse_no_data_timer_init
+	branch mouse_bb_event_connected
+
+p_mouse_bt_hid_handshake:
+	jam APP_HANDSHAKE_DONE,mem_app_handshake_flag
+	call app_lpm_mult_enable
+	branch mouse_bt_hid_handshake+3
+endif	
+
+ifdef BLE
+p_mouse_le_bb_disconnected:
+	setarg 0
+	store 2,mem_le_battery_level_updata_timer
+	store 1,mem_mouse_le_send_conn_param_update
+	store 1,mem_mouse_le_send_conn_param_update_timer
+	store 1,mem_mouse_le_bb_connected_flag	
+	branch mouse_le_bb_disconnected+7
+
+p_mouse_le_ll_start_encryt:
+	fetch 1,mem_mouse_le_reconnect_flag
+	beq 1,p_mouse_le_ll_reconn_start_encryt
+	jam 20,mem_le_start_encrypt_timer
+	jam 5,mem_le_start_auto_reco_timer
+	branch mouse_le_ll_enable_start_enc_flag
+p_mouse_le_ll_reconn_start_encryt:
+	call mouse_updata_le_param
+	jam 5,mem_le_start_encrypt_timer
+	branch mouse_le_ll_enable_start_enc_flag
+
+p_mouse_le_parse_conn_param_accepted:
+	fetch 1,mem_le_new_conninterval
+	sub pdata,LE_INTERVAL_15MS,null
+	nbranch mouse_le_conn_param_lpm_disable,positive
+	fetch 1,mem_le_new_connslavelatency
+	fetcht 1,mem_lpm_mult_init
+	isub temp,null
+	branch mouse_le_lpm_mult_reinit,positive
+	fetch 1,mem_le_new_connslavelatency
+	store 1,mem_lpm_mult
+	branch mouse_le_conn_param_lpm_enable
+
+p_mouse_le_conn_param_update_rsp_recieved:
+	fetch 1,mem_mouse_le_send_conn_param_update
+	nrtn blank
+	jam 1,mem_mouse_le_send_conn_param_update
+	jam 30,mem_mouse_le_send_conn_param_update_timer
+	rtn	
+endif
+
+ifdef G24
+p_mouse_24g_pairing_complete:
+	call p_keyboard_get_24g_led_enable
+	call mouse_no_data_timer_init
+	branch mouse_24g_pairing_complete
+
+p_mouse_24g_attempt_success:
+	call p_keyboard_get_24g_led_enable
+	fetch 4,mem_24g_addr
+	store 4,mem_24g_receiver_addr
+	store 4,mem_mouse_24g_addr		// if need store 24g address to eeprom/flash,need get mem_24g_addr
+	call g24_ch_syncword_crc8_init
+	call mouse_device_poweron_timer_init
+	call mouse_no_data_timer_init
+	branch mouse_24g_attempt_success
+
+p_keyboard_24g_get_led:
+	jam DEVICE_DATA_TPYE_STANDARD_KEYBOARD,mem_keyboard_data_send_flag
+	call p_clear_key_data
+	jam 0x03,mem_customer_key_press+2
+	rtn
+
+p_keyboard_24g_led_get_status_check:
+	arg 6,loopcnt
+	arg mem_keyboard_tx_data+3,contr
+p_keyboard_24g_led_data_check:
+	ifetch 1,contr
+	beq HID_KEY_NUM_LOCK,p_keyboard_get_24g_led_enable
+	beq HID_KEY_CAPS_LOCK,p_keyboard_get_24g_led_enable
+	beq HID_KEY_SCROLL_LOCK,p_keyboard_get_24g_led_enable
+	loop p_keyboard_24g_led_data_check
+	rtn
+
+p_keyboard_get_24g_led_enable:
+	jam 0x03,mem_keyboard_led_status_get
+	jam 1,mem_keyboard_data_change_flag
+	rtn
+
+p_keyboard_set_repeat_send_flag:
+	jam 1,mem_24g_repeat_send_flag
+	rtn
+
+
+p_mouse_24g_attempt_fail:
+	fetch 1,mem_24g_attempt_fail_flag
+	nbranch p_mouse_24g_hibernate_set,blank
+	fetch 1,mem_24g_reconn_type
+	beq FAST_CONN_AND_3_0_ADDR,p_mouse_24g_fast_conn_attempt_fail
+	beq RECEIVER_AND_3_0_ADDR,mouse_24g_attempt_fail_enter_hibernate
+	branch mouse_24g_attempt_fail+3
+
+p_mouse_24g_fast_conn_attempt_fail:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag 
+	bbit1 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING,mouse_24g_start_auto_pair
+	bbit1 MOUSE_ENABLE_AUTO_24G_PARING,mouse_24g_start_auto_pair
+	bbit0 MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED,mouse_24g_reconn_dongle_start
+	fetch 4,mem_mouse_24g_addr		// auto pair first time
+	branch p_mouse_24g_start_pair_mode,blank
+	branch mouse_24g_reconn_dongle_start
+
+p_mouse_24g_hibernate_set:
+	jam 0,mem_24g_attempt_fail_flag
+	call g24_transmit_next_packet
+	setarg -1
+	store 8,mem_24g_enter_hibernate
+	setarg 0
+	store 7,mem_mouse_key
+	jam 1,mem_sensor_shutdown_flag
+	branch p_g24_long_sleep
+endif
+p_keyboard_low_voltage_param_set:
+	fetch 1,mem_mouse_adc_last_low_voltage_flag
+	branch p_keyboard_low_voltage_param_set_33V,blank
+	jam 0x4d,mem_mouse_vdd_low_vol
+	rtn
+p_keyboard_low_voltage_param_set_33V:
+	jam 0x4b,mem_mouse_vdd_low_vol
+	rtn	
+p_mouse_bb_event_timer:
+	call mouse_adc_read
+	call p_keyboard_low_voltage_param_set
+	call mouse_low_voltage_led_timer
+ifdef G24
+	call g24_pair_timeout_timer
+	call g24_reconn_timeout_timer
+	call mouse_24g_long_sleep_param_update_timer
+	call p_keyboard_24g_repeat_send_data
+	call p_keyboard_24g_led_status_get_timer
+endif	
+	//led
+	call p_mouse_device_poweron_timer
+	call p_keyboard_mode_led_timer
+	call mouse_check_discovery_timeout_timer
+ifndef G24	
+	call p_keyboard_commbination_key_process
+endif	
+ifdef BLE
+	call p_mouse_check_direct_timeout_timer
+	call mouse_le_enable_att_list_timer
+	call p_mouse_le_battery_updata_timer
+	call mouse_le_send_smp_security_request_timer
+	call p_mouse_le_send_conn_param_update_timer	
+	call p_keyboard_le_auto_recognize_timer
+endif	
+ifdef BT30
+	call p_mouse_check_hid_handshake_timer
+	call mouse_bt_check_sniff_req_timeout_timer
+	call mouse_check_reconnect_delay_long_sleep		//delete 3.0,reconnect fail
+endif	
+	call mouse_current_mult_update_timer
+	call mouse_wheel_trigger_timer
+	call mouse_store_information_delay_timer
+	call p_keyboard_capslock_led_on_timer
+	call p_keyboard_long_press_timer
+	call p_keyboard_commbination_delay_release_timer
+	call p_mouse_commbination_long_press_timer
+ifdef G24
+	branch p_mouse_check_no_data_timeout_timer
+else
+	branch mouse_check_no_data_timeout_timer
+endif
+
+p_mouse_commbination_long_press_timer:
+	fetch 1,mem_keyboard_commbination_long_press_flag
+	branch p_keyboard_long_prsee_init,blank
+	fetch 1,mem_keyboard_commbination_long_press_timer
+	increase -1,pdata
+	branch p_mouse_24g_start_pair_pb_button_flag_set,blank	
+	store 1,mem_keyboard_commbination_long_press_timer
+	rtn
+
+p_keyboard_long_prsee_init:
+	fetch 1,mem_keyboard_commbination_long_press_timer_init
+	store 1,mem_keyboard_commbination_long_press_timer
+	rtn
+ifndef G24
+p_keyboard_commbination_key_process:
+	fetch 1,mem_commbination_key_statue
+	rtnne COMMBINATION_KEY_STATE_DOWN	
+	arg mem_combination_ui_button_count,regc
+	arg p_mouse_buletooth_fast_conn_init,regb
+	branch timer_single_step
+
+p_keyboard_commbination_fast_conn_bt_check:
+	fetch 2,mem_keyboard_keyvalue_buffer+2
+	fetcht 2,mem_keyboard_commbination_fast_conn_bt
+	isub temp,null
+	branch p_mouse_commbination_key_down,zero
+	byteswap temp,temp
+	isub temp,null
+	branch p_mouse_commbination_key_down,zero
+	branch mouse_commbination_key_up
+
+p_mouse_commbination_key_down:
+	fetch 1,mem_commbination_key_statue
+	rtneq COMMBINATION_KEY_STATE_DOWN
+	jam COMMBINATION_KEY_STATE_DOWN,mem_commbination_key_statue
+	rtn
+endif
+
+ifdef BLE
+p_keyboard_le_auto_recognize_timer:
+	arg mem_le_start_auto_reco_timer,regc
+	arg p_le_send_att_find_by_type_value_request_ancs,regb
+	branch timer_single_step
+
+p_mouse_check_direct_timeout_timer:	
+	arg mem_mouse_direct_timer,regc
+	arg mouse_check_direct_timeout,regb
+	call timer_single_step
+	branch mouse_check_direct_timeout_timer+3
+
+p_mouse_le_battery_updata_timer:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit1 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
+	branch mouse_le_battery_updata_timer
+
+p_mouse_le_send_conn_param_update_timer:
+	arg mem_mouse_le_send_conn_param_update_timer,regc
+	arg mouse_updata_le_param,regb
+	branch timer_single_step
+endif
+ifdef BT30
+p_mouse_check_hid_handshake_timer:
+	arg mem_hid_handshake_timer_count,regc
+	arg p_mouse_bt_hid_handshake,regb
+	branch timer_single_step
+endif
+ifdef G24
+p_keyboard_24g_repeat_send_data:
+	fetch 1,mem_24g_repeat_send_flag
+	rtn blank
+	jam 0,mem_24g_repeat_send_flag
+	fetch 1,mem_24g_conn_sm
+	nrtn blank	
+	jam 1,mem_keyboard_data_change_flag
+	call g24_txdata_prep
+	branch p_g24_transmit_process
+
+p_keyboard_24g_led_status_get_timer:
+	arg mem_keyboard_led_status_get_timer,regc
+	arg p_keyboard_24g_led_status_clear,regb
+	branch timer_single_step
+
+p_keyboard_24g_led_status_clear:
+	jam 0,mem_keyboard_led_status_get
+	rtn
+endif
+
+p_mouse_device_poweron_timer:
+	fetch 1,mem_adc_power_flag
+	rtnbit1 1
+ifdef G24
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,mouse_device_poweron_timer
+else
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_ENABLE_POWER_ON_LED
+	fetch 1,mem_mouse_device_poweron_timer_count
+	rtn blank
+	increase -1,pdata
+	store 1,mem_mouse_device_poweron_timer_count
+	branch p_keyboard_power_led_off,blank
+p_keyboard_power_led_on:
+	fetcht 1,mem_keyboard_power_led_gpio
+	branch mouse_led_on
+endif
+
+p_keyboard_mode_led_timer:
+	fetch 2,mem_mouse_no_data_timer
+	rtn blank
+	fetch 1,mem_keyboard_mode_led_on_timer
+	rtn blank
+	increase -1,pdata
+	store 1,mem_keyboard_mode_led_on_timer
+	bbit1 0,mouse_device_led_on
+	branch mouse_device_led_off
+
+
+p_mouse_device_led_off:
+	call mouse_device_led_off
+	call p_keyboard_capslock_led_off
+	call p_keyboard_numberlock_led_off
+p_keyboard_power_led_off:
+	fetcht 1,mem_keyboard_power_led_gpio
+	branch mouse_led_off
+
+
+p_keyboard_capslock_led_on_timer:
+	fetch 1,mem_keyboard_caps_led_gpio
+	rtneq GPIO_DISABLE
+	fetch 1,mem_mouse_device_poweron_timer_count
+	nrtn blank
+	fetch 2,mem_mouse_no_data_timer
+	rtn blank
+	fetch 2,mem_mouse_no_data_timeout
+	fetcht 2,mem_mouse_no_data_timer
+	isub temp,temp
+	fetch 2,mem_keyboard_caps_led_on_timer
+	isub temp,pdata
+	branch p_keyboard_num_cap_led_on,positive
+	call p_keyboard_numberlock_led_off
+p_keyboard_capslock_led_off:
+	fetcht 1,mem_keyboard_caps_led_gpio
+	branch gpio_out_inactive
+p_keyboard_numberlock_led_off:
+	fetcht 1,mem_keyboard_num_led_gpio
+	branch gpio_out_inactive
+p_keyboard_num_cap_led_on:
+	call p_keyboard_numberlock_led_check_on
+p_keyboard_capslock_led_check_on:
+	fetch 1,mem_keyboard_led_status	
+	bbit0 KB_PC_KEYSEL_CAPSLOCK,p_keyboard_capslock_led_off
+	fetcht 1,mem_keyboard_caps_led_gpio
+	branch gpio_out_active
+p_keyboard_numberlock_led_check_on:
+	fetch 1,mem_keyboard_led_status
+	bbit0 KB_PC_KEYSEL_NUMLOCK,p_keyboard_numberlock_led_off
+	jam 0xff,mem_mouse_struct_led_gpio
+	fetcht 1,mem_keyboard_num_led_gpio
+	branch gpio_out_active
+
+p_keyboard_long_press_timer:
+	arg mem_same_keyvalue_timer,regc
+	arg p_keyboard_long_press_timerout,regb
+	branch timer_single_step_2B
+
+p_keyboard_long_press_timerout:
+	jam 1,mem_same_keyvalue_timerout_flag	
+	branch app_enter_hibernate
+
+p_keyboard_commbination_delay_release_timer:	
+	arg mem_keyboard_commbination_control_key_delay_release_timer,regc
+	arg p_keyboard_commbination_key_null_set,regb
+	branch timer_single_step
+
+ifdef G24
+p_mouse_check_no_data_timeout_timer:
+	arg mem_mouse_no_data_timer,regc
+	arg p_mouse_check_no_data_timeout,regb
+	branch timer_single_step_2B
+
+p_mouse_check_no_data_timeout:
+	fetch 1,mem_device_flag
+	beq MODE_24G_DEVICE,p_mouse_24g_hibernate_set
+	branch mouse_disconnect
+endif	
+
+ifndef G24
+p_mouse_cancel_reconnect:
+	call app_clear_reconnect_flag
+	branch mouse_cancel_reconnect
+
+p_mouse_start_discovery:
+	fetch 2,mem_ui_state_map
+	isolate1 UI_STATE_BLE_ADV,pdata
+	call mouse_stop_le_adv,true		//reconnect adv
+	fetch 2,mem_ui_state_map
+	isolate1 UI_STATE_BT_RECONNECT,pdata
+	call p_mouse_cancel_reconnect,true
+	setarg 0
+	store 2,mem_le_battery_level_updata_timer
+	call p_keyboard_capslock_led_off
+	call p_keyboard_numberlock_led_off
+	jam 0xff,mem_kb_computer_system
+	branch mouse_start_discovery+1
+
+p_mouse_stop_discovery:
+	setarg 0
+	store 2,mem_mouse_discovery_timer
+	branch mouse_stop_discovery+1
+
+p_mouse_store_remote_bdaddr:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	rtnbit0 MOUSE_STORE_EEPROM_FLAG
+	branch mouse_store_remote_bdaddr+4
+	
+endif
+/////////////////////////////////////////////////////////////////////////////////////////////////
+
+
+
+/////////////////////////////////////////////////////////////////////////////////////////////////
+p_keyboard_motion:
+	disable user
+	jam 0,mem_customer_key
+	jam 0,mem_customer_data_trigger
+	jam 0,mem_customer_data_trigger_last
+	fetch 1,mem_keyboard_commbination_key_step
+	beq CAMMBINATION_KEY_PRESS,p_keyboard_commbination_key_press_process
+	beq CAMMBINATION_KEY_HOLD,p_keyboard_commbination_key_hold_process
+	beq CAMMBINATION_KEY_COMPLETE,p_keyboard_commbination_key_hold_process
+	beq CAMMBINATION_KEY_WAIT_RELEASE,p_keyboard_commbination_key_wait_release_process
+	beq CAMMBINATION_KEY_NULL,p_keyboard_commbination_key_null_process
+	fetch 1,mem_keyboard_data_change_flag
+	branch p_keyboard_no_key_press,blank
+	increase -1,pdata
+	store 1,mem_keyboard_data_change_flag
+	call p_keyboard_current_mult_update
+	jam 10,mem_keyboard_led_status_get_timer
+	call mouse_no_data_timer_init
+	fetch 1,mem_keyboard_commbination_key_step
+	beq CAMMBINATION_KEY_RELEASE,p_keyboard_commbination_key_release_process
+	arg mem_keyboard_tx_data,contw
+	arg 10,loopcnt
+	call clear_mem
+	call p_keyboard_motion_data_check
+	jam 0,mem_keyboard_data_send_flag
+	rtn
+
+p_keyboard_no_key_press:
+ifdef G24
+	fetch 1,mem_keyboard_led_status_get
+	rtn blank
+	fetch 1,mem_24g_repeat_send_flag
+	nrtn blank
+	fetcht 1,mem_keyboard_led_status_get_timer_last
+	fetch 1,mem_keyboard_led_status_get_timer
+	isub temp,null
+	store 1,mem_keyboard_led_status_get_timer_last
+	rtn zero
+	arg mem_keyboard_tx_data,contw
+	arg 10,loopcnt
+	call clear_mem
+	call enable_user
+	branch p_keyboard_motion_data_check_next	
+else
+	rtn
+endif
+
+p_keyboard_current_mult_update:
+	jam 3,mem_lpm_mult
+	jam 10,mem_mouse_current_mult_timer
+	rtn
+
+p_keyboard_motion_data_check:
+	fetch 1,mem_keyboard_consumer_key_status
+	beq KEYBOARD_CONSUMER_KEY_RELEASE,p_keyboard_value_consumer_release
+	arg mem_keyboard_keyvalue_buffer+2,contr
+	arg 6,loopcnt
+p_keyboard_value_tpye_check:
+	ifetch 1,contr
+	sub pdata,HID_KEY_RIGHT_GUI,null
+	nbranch p_keyboard_value_tpye_consumer_set,positive
+p_keyboard_value_tpye_check_loop:	
+	loop p_keyboard_value_tpye_check
+
+	fetch 1,mem_keyboard_all_press_key_count
+	call p_keyboard_value_release_all_key,blank
+	jam HID_REPORTID_KEY_STANDARD,mem_keyboard_tx_data
+	fetch 1,mem_keyboard_keyvalue_buffer+2
+	sub pdata,HID_KEY_FN,null
+	branch p_keyboard_tx_data_skip_fn,zero
+	arg mem_keyboard_keyvalue_buffer,contr
+	arg mem_keyboard_tx_data+1,contw
+	arg 8,loopcnt
+p_keyboard_tx_data_store:
+	ifetch 1,contr
+	beq HID_KEY_FN,p_keyboard_tx_data_clear_fn
+p_keyboard_tx_data_store_loop:
+	istore 1,contw
+	loop p_keyboard_tx_data_store
+
+p_keyboard_motion_data_check_next:
+	call p_keyboard_device_data_tpye_check
+
+	fetch 1,mem_keyboard_data_send_flag
+	beq DEVICE_DATA_TPYE_MOUSE,enable_user
+	beq DEVICE_DATA_TPYE_STANDARD_KEYBOARD,p_device_send_keyboard_data
+	beq DEVICE_DATA_TPYE_NONSTARNDARD_KEYBOARD,p_device_send_keyboard_data
+	beq DEVICE_DATA_TPYE_CONSUMER,p_device_send_keyboard_data
+	beq DEVICE_DATA_TPYE_SYSTEM_CONCTOL,p_device_send_keyboard_data
+p_device_send_keyboard_data:
+	call mouse_customerkey_press
+	branch enable_user
+
+p_keyboard_value_release_all_key:
+	arg mem_keyboard_keyvalue_buffer,contw
+	arg 9,loopcnt
+	branch clear_mem
+
+
+p_keyboard_tx_data_skip_fn:
+	fetch 2,mem_keyboard_keyvalue_buffer
+	store 2,mem_keyboard_tx_data+1
+	fetch 6,mem_keyboard_keyvalue_buffer+3
+	store 6,mem_keyboard_tx_data+3
+	branch p_keyboard_motion_data_check_next
+
+p_keyboard_tx_data_clear_fn:
+	setarg 0
+	branch p_keyboard_tx_data_store_loop
+
+
+p_keyboard_value_tpye_consumer_set:
+	jam HID_REPORTID_CONSUMER_KEY,mem_keyboard_tx_data
+	fetcht 1,mem_keyboard_all_press_key_count
+	sub temp,HID_KEY_NULL,null
+	branch p_keyboard_value_consumer_all_key_release,zero
+	beq 	HID_KEY_MULTIKEY_MEDIA,p_keyboard_value_media
+	beq 	HID_KEY_MULTIKEY_PALY,p_keyboard_value_play
+	beq 	HID_KEY_MULTIKEY_STOP,p_keyboard_value_stop
+	beq 	HID_KEY_MULTIKEY_PRE_TRACK,p_keyboard_value_pre_track
+	beq 	HID_KEY_MULTIKEY_NEXT_TRACK,p_keyboard_value_next_track
+	beq 	HID_KEY_MULTIKEY_VOL_DOWN,p_keyboard_value_vol_down
+	beq 	HID_KEY_MULTIKEY_VOL_UP,p_keyboard_value_vol_up
+	beq 	HID_KEY_MULTIKEY_MUTE,p_keyboard_value_mute
+	beq 	HID_KEY_MY_COMPUTER,p_keyboard_value_my_computer
+	beq 	HID_KEY_MAIL,p_keyboard_value_mail
+	beq 	HID_KEY_CALCULATOR,p_keyboard_value_calculator
+	beq 	HID_KEY_LIGHT_DOWN,p_keyboard_value_light_down
+	beq 	HID_KEY_LIGHT_UP,p_keyboard_value_light_up
+	beq 	HID_KEY_AC_FAVORITES,p_keyboard_value_ac_favorites
+	beq 	HID_KEY_AC_FORWARD,p_keyboard_value_ac_forward
+	beq 	HID_KEY_AC_BACK,p_keyboard_value_ac_back
+	beq 	HID_KEY_AC_STOP,p_keyboard_value_ac_stop
+	beq 	HID_KEY_AC_REFRESH,p_keyboard_value_ac_refresh
+	beq 	HID_KEY_AC_SEARCH,p_keyboard_value_ac_search
+	beq 	HID_KEY_AC_HOME,p_keyboard_value_ac_home
+	beq 	HID_KEY_IOS_ANDROID_OS_LOCK,p_keyboard_value_os_lock
+	beq 	HID_KEY_OS_SOFT_KB,p_keyboard_value_os_soft_kb
+	beq 	HID_KEY_SYSTEM_SLEEP,p_keyboard_value_system_sleep
+	branch p_keyboard_motion_data_check_next
+
+p_keyboard_value_media:
+	setarg 0x0183
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_play:
+	setarg 0x00cd
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_stop:
+	setarg 0x00b7
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_pre_track:
+	setarg 0x00b6
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_next_track:
+	setarg 0x00b5
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next	
+p_keyboard_value_vol_down:
+	setarg 0x00ea
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_vol_up:
+	setarg 0x00e9
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_mute:
+	setarg 0x00e2
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_my_computer:
+	setarg 0x0194
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_mail:
+	setarg 0x018a
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_calculator:
+	setarg 0x0192
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next	
+p_keyboard_value_light_down:
+	setarg 0x0070
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_light_up:
+	setarg 0x006f
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_ac_favorites:
+	setarg 0x022a
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_ac_forward:
+	setarg 0x0225
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_ac_back:
+	setarg 0x0224
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_ac_stop:
+	setarg 0x0226
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_ac_refresh:
+	setarg 0x0227
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_ac_search:
+	setarg 0x0221
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next	
+p_keyboard_value_ac_home:
+	fetch 1,mem_kb_computer_system
+	rtneq SYSTEM_OS_WINDOWS //windows绯荤粺璺冲嚭锛屽湪缁勫悎閿腑鍙戦佷竴閿闈
+	setarg 0x0223
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_os_lock:
+	setarg 0x0030
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_os_soft_kb:
+	fetch 1,mem_kb_computer_system
+	beq SYSTEM_OS_ANDRIOD,p_keyboard_value_os_soft_kb_andriod
+	setarg 0x01ae
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_os_soft_kb_andriod:
+	setarg 0x0307
+	store 2,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next
+	
+p_keyboard_value_consumer_all_key_release:
+p_keyboard_value_consumer_release:
+	jam 2,mem_keyboard_data_change_flag
+	fetch 1,mem_keyboard_all_press_key_count
+	call p_keyboard_value_release_all_key,blank
+	jam KEYBOARD_CONSUMER_KEY_STANDBY,mem_keyboard_consumer_key_status
+	setarg 0x03
+	store 3,mem_keyboard_tx_data
+	branch p_keyboard_motion_data_check_next
+p_keyboard_value_system_sleep:
+	jam HID_REPORTID_SYSTEM_CTRL,mem_keyboard_tx_data
+	setarg 0x02
+	store 1,mem_keyboard_tx_data+1
+	branch p_keyboard_motion_data_check_next		
+
+p_keyboard_device_data_tpye_check:
+ifdef G24	
+	fetch 1,mem_device_flag
+	bne MODE_24G_DEVICE,p_keyboard_device_data_tpye_check_next
+	jam 0,mem_24g_repeat_send_flag
+	fetch 2,mem_keyboard_tx_data
+	ncall p_keyboard_set_repeat_send_flag,blank
+	fetch 6,mem_keyboard_tx_data+3
+	ncall p_keyboard_set_repeat_send_flag,blank
+endif	
+p_keyboard_device_data_tpye_check_next:
+	fetch 1,mem_keyboard_tx_data
+	beq HID_REPORTID_KEY_STANDARD,p_standard_keyboard_data_send
+	beq HID_REPORTID_MOUSE,p_mouse_data_send
+	beq HID_REPORTID_CONSUMER_KEY,p_consumer_data_send
+	beq HID_REPORTID_SYSTEM_CTRL,p_system_control_data_send
+	rtn
+
+
+
+
+p_mouse_data_send:
+	jam DEVICE_DATA_TPYE_MOUSE,mem_keyboard_data_send_flag
+	arg mem_keyboard_tx_data,contr
+	arg mem_mouse_key,contw
+	arg 7,loopcnt
+	branch memcpy
+	
+p_standard_keyboard_data_send:
+	jam DEVICE_DATA_TPYE_STANDARD_KEYBOARD,mem_keyboard_data_send_flag
+	call p_clear_key_data
+ifdef G24		
+	call p_keyboard_24g_led_get_status_check
+	fetch 1,mem_keyboard_led_status_get
+	store 1,mem_keyboard_tx_data+2
+endif	
+	arg mem_keyboard_tx_data,contr
+	arg mem_customer_key_press,contw
+	arg 9,loopcnt
+	branch memcpy
+
+p_consumer_data_send:
+	jam DEVICE_DATA_TPYE_CONSUMER,mem_keyboard_data_send_flag
+	call p_clear_key_data
+	setarg 0x03
+	call mouse_customer_media_key_set
+	arg mem_keyboard_tx_data+1,contr
+	arg mem_customer_key_press+1,contw
+	arg 2,loopcnt
+	branch memcpy
+
+p_system_control_data_send:
+	jam DEVICE_DATA_TPYE_SYSTEM_CONCTOL,mem_keyboard_data_send_flag
+	call p_clear_key_data
+	setarg 0x02
+	store 8,mem_customer_key_press
+	store 8,mem_customer_key_release
+	fetch 1,mem_keyboard_tx_data+1
+	store 1,mem_customer_key_press+1
+	rtn
+
+
+p_clear_key_data:
+	arg 18,loopcnt
+	arg mem_customer_key_press,contw
+	branch clear_mem
+
+
+
+
+
+ifdef BT30
+//////////////////////////////////////////////////////////////AUTO  RECONGIZE COMPUTER SYSTEM//////////////////////////////////////////////////////////////////////////////////////////
+p_sdp_process:
+	copy contr,temp
+	arg 4,loopcnt
+	arg mem_sdp_handle_list,contw
+	call memset0
+	copy temp,contr 
+	deposit regb						/* PDUID  */
+	beq SDP_SEARCHATTRIB_RES,p_sdp_process_ssa_res
+	branch sdp_process+19
+
+p_sdp_process_ssa_res:
+	ifetcht 2,contr
+	byteswap temp,temp
+	copy temp,regb
+	increase -4,regb
+	increase 4,contr
+	arg 0x102,regc
+	
+	call p_sdp_process_pnp_vid_loop	
+	fetch 1,mem_kb_computer_system
+	rtnne 0xff
+	jam SYSTEM_OS_WINDOWS,mem_kb_computer_system
+	rtn
+p_sdp_process_pnp_vid_loop:
+	copy regb,pdata
+	branch sdp_invalid_request_syntax,blank
+	ifetch 1,contr
+	beq SDP_ATTRIBUTE_ID,p_ssa_req_one_id
+	beq SDP_ATTRIBUTE_RANGE, p_ssa_req_one_range
+	beq SDP_ATTRIBUTE_INTENGER,p_ssa_req_one_intenger
+	branch sdp_process_pnp_vid_class_id
+p_ssa_req_one_id:
+	ifetch 2,contr
+	isub regc,null
+	branch p_ssa_req_one_id_vid_process,zero
+	
+p_ssa_req_check_next_id:	
+	increase -3,regb
+	nbranch p_sdp_process_pnp_vid_loop,zero //another attribute 
+	rtn
+p_ssa_req_one_id_vid_process:
+	increase 1,contr
+	ifetch 2,contr
+	arg PNP_MICROSOFT,regc
+	isub regc,null
+	branch p_ssa_req_one_id_vid_process_win,zero
+	arg PNP_MAC,regc
+	isub regc,null
+	branch p_ssa_req_one_id_vid_process_mac,zero
+	arg PNP_IOS,regc
+	isub regc,null
+	branch p_ssa_req_one_id_vid_process_ios,zero
+p_ssa_req_one_id_vid_process_adriod:
+	jam SYSTEM_OS_ANDRIOD,mem_kb_computer_system
+	branch p_kb_otp_store_computer_system_bt
+p_ssa_req_one_id_vid_process_ios:
+	jam SYSTEM_OS_IOS,mem_kb_computer_system
+	branch p_kb_otp_store_computer_system_bt
+p_ssa_req_one_id_vid_process_mac:
+	jam SYSTEM_OS_MAC,mem_kb_computer_system
+	branch p_kb_otp_store_computer_system_bt	
+p_ssa_req_one_id_vid_process_win:
+	jam SYSTEM_OS_WINDOWS,mem_kb_computer_system
+p_kb_otp_store_computer_system_bt:
+	fetcht 2,mem_otp_read_retention_offset
+	setarg 0x1fd0
+	isub temp,regb
+	arg mem_kb_computer_system,rega
+	copy regb,temp
+	arg 1,loopcnt
+	call otp_write   /* temp = otp address, rega pointers data, loopcnt is count */	
+	fetcht 2,mem_otp_read_retention_offset
+	increase 24,temp
+	storet 2,mem_otp_read_retention_offset
+	rtn
+
+
+
+p_ssa_req_one_range:
+	increase 4,contr
+	increase -5,regb
+	branch p_sdp_process_pnp_vid_loop
+
+p_ssa_req_one_intenger:
+	increase 1,contr
+	increase -2,regb
+	branch p_sdp_process_pnp_vid_loop
+	
+sdp_process_pnp_vid_class_id:
+	ifetch 1,contr
+	iadd contr,contr
+	copy pdata,temp
+	copy regb,pdata
+	isub temp,regb
+	branch p_sdp_process_pnp_vid_loop
+
+
+
+p_bt_exchange_hid_map:
+	
+	arg MOUSE_BT_SDP_ADDR,contr
+	arg mem_keyboard_ui_uuid_table,contw
+	arg 196,loopcnt
+	call memcpy	
+	arg 0x9573,contr
+	arg mem_keyboard_ui_uuid_table+196,contw
+	arg 66,loopcnt
+	call memcpy
+	arg 0x95b5,contr
+	arg mem_keyboard_ui_uuid_table+262,contw
+	arg 54,loopcnt
+	call memcpy	
+	arg 0x95eb,contr
+	arg mem_keyboard_ui_uuid_table+316,contw
+	arg 169,loopcnt
+	call memcpy
+
+	jam 0x6a,mem_keyboard_ui_uuid_table+15		// totel length
+	jam 0x78,mem_keyboard_ui_uuid_table+195
+	jam 0x7c,mem_keyboard_ui_uuid_table+191
+	jam 0x7e,mem_keyboard_ui_uuid_table+189
+	
+	fetch 1,mem_keyboard_change_vid_pid_flag
+	rtn blank
+	fetch 2,mem_keyboard_vid
+	byteswap pdata,pdata
+	store 2,mem_keyboard_ui_uuid_table+459
+
+	fetch 2,mem_keyboard_pid
+	byteswap pdata,pdata
+	store 2,mem_keyboard_ui_uuid_table+465
+	rtn
+
+	
+p_ml2cap_proc_signal_disconn_rsp:
+	setarg L2CAP_SDP_channel
+	isub temp,null
+	branch p_ml2cap_proc_signal_disconnect_rsp_sdp,zero
+	branch ml2cap_proc_signal_disconn_rsp+13
+p_ml2cap_proc_signal_disconnect_rsp_sdp:
+	jam 0,mem_sdp_remote_cid
+	jam 0,mem_sdp_state
+	jam 0,memui_reconnect_mode
+	jam 0x01,mem_ui_profile_supported
+	branch mdisdone	
+
+p_process_upper_sm_reconn:
+	fetch 1,mem_upper_sm_reconn
+	rtn blank
+	beq UPPERSM_RECONN_SS_SPP_WAIT,p_process_upper_sm_reconn_ss_spp_wait	
+	beq UPPERSM_RECONN_SDP_DISCONN_WAIT,p_process_upper_sm_reconn_sdp_disconn_wait
+	branch process_upper_sm_reconn+3
+p_process_upper_sm_reconn_ss_spp_wait:
+	fetch 1,mem_kb_computer_system
+	rtneq 0xff
+	jam UPPERSM_RECONN_SDP_DISCONN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn		
+p_process_upper_sm_reconn_sdp_disconn_wait:
+	branch process_upper_sm_reconn_termination	
+
+	
+//p_l2cap_proc_signal_disconnect_req:
+//	setarg L2CAP_SDP_channel
+//	isub temp,null
+//	branch p_l2cap_proc_signal_disconnect_req_sdp,zero
+//	branch l2cap_proc_signal_disconnect_req+16
+
+
+//p_l2cap_proc_signal_disconnect_req_sdp:
+//	call l2cap_proc_signal_disconnect_req_sdp
+//	fetch 1,memui_reconnect_mode
+//	nrtn blank
+//	fetch 1,mem_kb_computer_system
+//	rtnne 0xff
+//	jam 0x40,mem_ui_profile_supported
+//	jam CONN_SM_DONE,mem_conn_sm
+//	jam RECONNECT_HF,memui_reconnect_mode
+//	jam 0xFF,mem_kb_computer_system
+//	rtn
+p_l2cap_proc_signal_connect_req:
+	copy temp,pdata
+	beq PSM_HID_interrupt,p_l2cap_proc_signal_connect_req_hid_int
+	branch l2cap_proc_signal_connect_req+12	
+p_l2cap_proc_signal_connect_req_hid_int:
+	call l2cap_proc_signal_connect_req_hid_int
+	fetch 1,memui_reconnect_mode
+	nrtn blank
+	fetch 1,mem_kb_computer_system
+	rtnne 0xff
+	jam 0x40,mem_ui_profile_supported
+	jam CONN_SM_DONE,mem_conn_sm
+	jam RECONNECT_HF,memui_reconnect_mode
+//	jam 0xFF,mem_kb_computer_system
+	rtn	
+// send sdp ssa req for pnp service 
+p_upper_sm_send_ss_spp:
+	call l2cap_malloc_sdp_channel
+	call sdp_send_pnp_request
+	branch MSDP_send_req_done	
+sdp_send_pnp_request:
+	call l2cap_get_sdp_tx_payload
+	copy pdata,contw
+	setarg 6//Search Attr Req
+	istore 1,contw
+	setarg 0x300					
+	istore 2,contw
+	setarg 0x0f00 //length15
+	istore 2,contw
+	setarg 0x190335
+	istore 3,contw
+	setarg 0x0012
+	istore 2,contw
+	setarg 0xf803 //max return len
+	istore 2,contw
+	setarg 0x0535
+	istore 2,contw
+	setarg 0x0a
+	istore 1,contw
+	setarg 0x0000
+	istore 2,contw	
+	setarg 0x00ffff
+	istore 3,contw
+	jam 0x14,mem_sdp_tx_pkt_length
+	rtn	
+	
+/**************************************************************************************/
+p_send_lmp:
+	disable user
+	call lmo_fifo_process
+	fetch 1,mem_lmp_to_send
+	rtn blank
+/* lmp message to be processed. this will either be because host??? */
+/* wants to send a lmp message or because one resulted from the LMP */
+/* processing section */
+/********* outgoing lmp lookup table *************/
+	bbit1 7,send_lmp_escape
+p_send_lmp0:
+	beq LMP_DETACH,p_send_lmp_detach
+	branch send_lmp0
+
+p_send_lmp_detach:
+	call send_lmp_detach
+	jam 120,mem_conn_timer
+	rtn
+
+/****** bt3.0  get keyboard led ******/
+p_hid_rx_process:
+	fetch 2,mem_l2cap_payload_ptr
+	copy pdata,contr
+	ifetch 1,contr
+	store 1,mem_l2cap_rcv_hidtype
+	and pdata,0x0f,temp
+	rshift4 pdata,pdata //hidtype
+	beq hid_type_set_idle,p_hid_rx_process_handshake
+	beq hid_type_data,p_hid_rx_process_data
+	beq HID_TYPE_SET_REPORT,p_hid_rx_process_set_report
+	branch hid_rx_process+7
+
+p_hid_rx_process_handshake:
+	arg 1,rega//payload length
+	call hid_malloc_tx_buff
+	fetch 2,mem_hid_ctrl_remote_cid
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	jam 1,mem_ui_data_txbuff_length
+	fetch 1,mem_hid_control_state
+	set1 l2cap_channel_hid_handshake_done,pdata
+	store 1,mem_hid_control_state
+	jam BT_EVT_HID_HANDSHAKE,mem_fifo_temp
+	branch ui_ipc_send_event
+
+p_hid_rx_process_set_report:
+	call p_hid_rx_process_data
+	branch hid_rx_process_set_report+1
+
+p_hid_rx_process_data:
+	ifetch 1,contr
+	beq HID_REPORT_ID_KB,p_hid_rx_process_data_hid_kb
+	rtn
+
+
+
+
+
+endif
+ifndef G24
+p_hid_rx_process_data_hid_kb:
+	ifetch 1,contr
+	store 1,mem_keyboard_led_status
+	rtn
+endif
+
+ifdef BLE
+p_le_slave_match:
+	fetch 1,mem_le_md_count
+	pincrease 1
+	store 1,mem_le_md_count
+	beq LE_MD_MAX_COUNT,le_slave_cont
+	call le_acknowledge
+	call le_prepare_tx
+	fetch 1,mem_le_tx_phy
+	call le_enable_phy_by_pdata
+	call le_transmit
+	branch le_slave_match+10
+	
+p_le_slave_unsync:
+	call end_of_packet
+	call le_lpm_set_mult
+	branch calc_clke_offset
+
+
+p_le_parse_l2cap:
+	ifetch 2,contr
+	beq LE_L2CAP_CID_ATT,p_le_parse_att
+	branch le_parse_l2cap+10
+		
+p_le_parse_att:
+	ifetch 3,contr
+	store 3,mem_le_att_opcode
+	beq ATTOP_READ_REQUEST,p_le_parse_att_read_request
+	beq ATTOP_WRITE_REQUEST,p_le_parse_att_write_request
+	beq ATTOP_WRITE_COMMAND,p_le_parse_att_write_command
+	beq ATTOP_READ_BLOB_REQUEST,p_le_parse_att_read_blob_request
+// ANCS differ mac from window
+	beq ATTOP_READ_RESPONSE,p_le_parse_att_manu_resp
+	beq ATTOP_READ_BY_TYPE_RESPONSE,p_le_send_att_read_by_type_rsp_mac	
+	beq ATTOP_FIND_BY_TYPE_VALUE_RESPONSE,p_le_parse_att_find_by_type_value_rsp	
+	beq ATTOP_ERROR_RESPONSE,p_le_send_att_find_by_type_value_request_mac
+	branch le_parse_att+2
+
+// first time read ancs service differ ios from other
+p_le_send_att_find_by_type_value_request_ancs:
+	jam 1,mem_le_connect_ios_mac_flag
+	arg 23,rega
+	arg LE_L2CAP_CID_ATT,regb
+	call le_fifo_malloc_tx_l2cap
+	setarg ATTOP_FIND_BY_TYPE_VALUE_REQUEST
+	istore 1,contw
+	setarg 0x0001		//start handle
+	istore 2,contw
+	setarg 0xffff		//end handle
+	istore 2,contw
+	setarg 0x2800		//uuid type
+	istore 2,contw
+	arg mem_le_search_service_uuid,contr
+	branch memcpy16
+
+p_le_parse_att_find_by_type_value_rsp:
+	fetch 1,mem_le_connect_ios_mac_flag
+	beq 2,p_le_parse_att_find_by_type_value_rsp_mac
+p_le_parse_att_find_ios_report:	
+	jam SYSTEM_OS_IOS,mem_kb_computer_system
+	branch p_kb_otp_store_computer_system_ble
+p_le_parse_att_not_find_mac_report:	
+	fetch 1,mem_le_conn_peer_addr_type
+	store 1,mem_kb_computer_system
+	branch p_kb_otp_store_computer_system_ble
+p_le_parse_att_find_mac_report:	
+	jam SYSTEM_OS_MAC,mem_kb_computer_system
+p_kb_otp_store_computer_system_ble:
+	fetcht 2,mem_otp_read_retention_offset
+	setarg 0x1fd0
+	isub temp,regb
+	arg mem_kb_computer_system,rega
+	copy regb,temp
+	arg 1,loopcnt
+	call otp_write   /* temp = otp address, rega pointers data, loopcnt is count */	
+	fetcht 2,mem_otp_read_retention_offset
+	increase 14,temp
+	storet 2,mem_otp_read_retention_offset
+	rtn
+
+
+	
+// second time read device info service differ phone from other	
+p_le_send_att_find_by_type_value_request_mac:
+	fetch 1,mem_le_connect_ios_mac_flag
+	beq 2,p_le_parse_att_not_find_mac_report
+	jam 2,mem_le_connect_ios_mac_flag
+	arg 9,rega
+	arg LE_L2CAP_CID_ATT,regb
+	call le_fifo_malloc_tx_l2cap
+	setarg ATTOP_FIND_BY_TYPE_VALUE_REQUEST
+	istore 1,contw
+	setarg 0x0001		//start handle
+	istore 2,contw
+	setarg 0xffff		//end handle
+	istore 2,contw
+	setarg 0x2800		//uuid type
+	istore 2,contw
+	arg 2,loopcnt
+	arg mem_le_search_mac_uuid,contr
+	branch memcpy
+//third time read handle for manufactory name 
+p_le_parse_att_find_by_type_value_rsp_mac:
+	arg 7,rega
+	arg LE_L2CAP_CID_ATT,regb
+	call le_fifo_malloc_tx_l2cap
+	setarg ATTOP_READ_BY_TYPE_REQUEST
+	istore 1,contw
+	fetcht 2,mem_le_payload_ptr
+	increase 5,temp
+	ifetch 4,temp
+	istore 4,contw
+	setarg 0x2803
+	istore 2,contw
+	rtn	
+//fourth time whether read manufactory name isn't in device info service	
+p_le_send_att_read_by_type_rsp_mac:
+	fetch 2,mem_le_l2cap_size
+	increase -2,pdata
+	div pdata,7
+	call wait_div_end
+	quotient loopcnt
+	fetch 2,mem_le_payload_ptr
+	add pdata,6,contr
+	branch p_le_check_att_read_type_manu_loop
+
+p_le_check_att_read_type_manu_loop:
+	increase 3,contr
+	ifetch 2,contr
+	copy pdata,regc
+	ifetch 2,contr
+	arg 0x2a29,temp
+	isub temp,null
+	branch p_le_send_att_read_by_type_rsp_manufactory,zero
+	loop p_le_check_att_read_type_manu_loop
+	branch p_le_parse_att_not_find_mac_report
+p_le_send_att_read_by_type_rsp_manufactory:
+	arg 3,rega
+	arg LE_L2CAP_CID_ATT,regb
+	call le_fifo_malloc_tx_l2cap
+	setarg ATTOP_READ_REQUEST
+	istore 1,contw
+	copy regc,pdata
+	istore 2,contw
+	rtn	
+//fifth time 	read manufactory name make sure is Apple Inc
+p_le_parse_att_manu_resp:
+	fetch 2,mem_le_l2cap_size
+	arg 9,loopcnt
+	fetch 2,mem_le_payload_ptr
+	add pdata,5,rega	
+	arg mem_le_search_mac_manu_name,regb
+	call string_compare 
+	branch p_le_parse_att_find_mac_report,zero
+	branch  p_le_parse_att_not_find_mac_report
+	
+
+
+p_le_parse_att_read_blob_request:
+	ifetch 2,contr
+	store 2,mem_le_att_offset
+	arg 20,rega
+	call le_fifo_malloc_tx_l2cap_gatt
+	setarg ATTOP_READ_BLOB_RESPONSE
+	istore 1,contw
+	fetch 2,mem_le_att_offset
+	iforce rega
+	fetcht 2,mem_le_att_handle
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch le_send_att_read_blob_response+7,zero
+	fetch 2,mem_keyboard_le_map_len
+	branch p_le_parse_att_read_blob_request2
+
+p_le_parse_att_read_blob_request2:
+	arg mem_keyboard_le_hid_map,contr
+	isub rega,loopcnt
+	nbranch le_send_att_error_response_notfound,positive
+	sub loopcnt,22,null
+	branch le_send_att_read_blob_response_less,positive
+	force 22,loopcnt
+	branch le_send_att_read_blob_response_less
+
+
+p_le_parse_att_read_request:
+	fetcht 2,mem_le_att_handle
+	fetch 1,mem_le_configuration
+	bbit1 BIT_BLE_READ_AUTH,p_le_send_att_read_response_check_auth
+//input:temp is handle
+p_le_send_att_read_response:
+	fetch MOUSE_FLAG_LEN,mem_mouse_flag
+	bbit0 MOUSE_ENABLE_ADC,p_le_send_att_read_response+3
+	bbit0 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL,p_le_send_att_read_response_next
+	fetch 2,mem_le_att_handle
+	beq 0x30,le_send_att_error_response_notfound
+p_le_send_att_read_response_next:	
+	fetch 2,mem_le_att_handle
+	beq 0x05,p_le_send_att_appearance
+	beq 0x10,p_le_send_att_pnp_id
+p_le_send_att_read_response_next_1:
+	fetcht 2,mem_le_att_handle
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch le_send_att_read_response,zero
+	arg mem_keyboard_le_hid_map,contr
+	force 22,pdata
+	branch le_send_att_read_response_less
+
+
+p_le_send_att_appearance:
+	arg mem_keybord_appearance,contr
+	force 2,pdata
+	branch le_send_att_read_response_less
+
+p_le_send_att_pnp_id:
+	fetch 1,mem_keyboard_change_vid_pid_flag
+	branch p_le_send_att_read_response_next_1,blank
+	arg mem_keyboard_change_vid_pid_flag+1,contr
+	force 7,pdata
+	branch le_send_att_read_response_less
+
+p_le_send_att_read_response_check_auth:
+	fetch 2,mem_le_pairing_handle
+	isub temp,null
+	nbranch p_le_send_att_read_response,zero
+	call le_check_encrypt_state
+	nbranch p_le_send_att_read_response_next,user
+	branch le_send_att_read_response_error_insufficient_auth
+
+
+p_le_parse_att_write_request:		// mac os 10.9.5 reconnect can't move
+	copy contr,rega
+	fetch 2,mem_le_l2cap_size
+	add pdata,-3,regb
+	call le_writeatt_cb
+	call p_le_parse_att_write_command+1		//MAC  CAPS
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	beq 0xff,le_send_att_write_response_check_auth
+	fetch 1,mem_mouse_le_reconnect_flag
+	branch le_send_att_write_response_check_auth,blank
+	fetch 1,mem_le_connect_status_flag
+	bbit1 LL_START_ENC_FLAG,le_send_att_write_response_check_auth
+	setarg 0x001a		
+	fetcht 2,mem_le_att_handle
+	isub temp,null
+	nbranch le_send_att_write_response_check_auth,zero
+	jam ATT_ERR_INSUFFICIENT_AUTHENTICATION,mem_le_err_code
+	branch le_send_att_error_response
+
+p_le_parse_att_write_command:
+	call le_parse_att_write_command
+	fetch 1,mem_mouse_bluetooth_fast_conn_flag
+	bne 0xff,p_le_handle_num
+	fetch 2,mem_le_att_handle
+	beq 0x21,p_handle_num
+	rtn
+p_le_handle_num:	
+	fetch 2,mem_le_att_handle
+	beq 0x25,p_handle_num
+	rtn
+
+p_le_exchange_hid_map:
+	arg 0x988c,contr	//mouse map ->key map
+	arg mem_keyboard_le_hid_map+66,contw
+	arg 69,loopcnt
+	call memcpy
+	arg 0x98d1,contr	//key map->mouse map 
+	arg mem_keyboard_le_hid_map,contw
+	arg 66,loopcnt
+	call memcpy
+	arg 0x9913,contr
+	arg mem_keyboard_le_hid_map +135,contw
+//	arg 79,loopcnt
+	arg 54,loopcnt
+	branch memcpy
+
+p_handle_num:
+	arg mem_le_rxbuf+9,contr 
+	branch p_hid_rx_process_data_hid_kb	
+endif	
+
+
Index: program/peripherals.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/peripherals.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/peripherals.prog	(working copy)
@@ -0,0 +1,3266 @@
+
+/* ===================== two wire SPI gpio ======================= */
+
+//pdata:gpio number
+twspi_reset:
+	bpatchx patch23_6,mem_patch23
+	and_into 0xff,pdata
+	sub pdata,19,null
+	nbranch twspi_reset_ext,positive
+	arg core_gpio_conf,contw
+twspi_reset_next:
+	iadd contw,contw
+	copy contw,rega
+	arg gpcfg_output_low,temp
+	istoret 1,contw
+	call twspi_disable
+	nop 30
+	copy rega,contw
+	arg gpcfg_output_high,temp
+	istoret 1,contw
+	branch twspi_enable
+twspi_reset_ext:
+	arg core_gpio_conf1,contw
+	increase -20,pdata
+	branch twspi_reset_next
+
+
+
+twspi_disable:
+	fetch 1,core_aes_en
+	and_into 0xfb,pdata
+	store 1,core_aes_en
+	rtn
+
+twspi_enable:
+	fetch 1,core_aes_en
+	or_into 0x04,pdata
+	store 1,core_aes_en
+	rtn
+
+twspi_write:
+	branch spid_write_reg
+
+twspi_read:
+	branch spid_read_reg
+
+ifdef SPI2
+twspi2_reset:
+	and_into 0xff,pdata
+	sub pdata,19,null
+	nbranch twspi2_reset_ext,positive
+	arg core_gpio_conf,contw
+twspi2_reset_next:
+	iadd contw,contw
+	copy contw,rega
+	arg gpcfg_output_low,temp
+	istoret 1,contw
+	call twspi2_disable
+	nop 30
+	copy rega,contw
+	arg gpcfg_output_high,temp
+	istoret 1,contw
+	branch twspi2_enable
+twspi2_reset_ext:
+	arg core_gpio_conf1,contw
+	increase -20,pdata
+	branch twspi2_reset_next
+
+twspi2_disable:
+	fetch 1,core_aes_en
+	and_into 0xf7,pdata
+	store 1,core_aes_en
+	rtn
+
+twspi2_enable:
+	fetch 1,core_aes_en
+	or_into 0x08,pdata
+	store 1,core_aes_en
+	rtn
+
+twspi2_write:
+	branch spid2_write_reg
+
+twspi2_read:
+	branch spid2_read_reg
+endif
+/* ===================== code loading ======================= */
+aes_disable:
+	fetch 1,core_aes_en
+	and_into 0xfd,pdata   	// disable aes
+	store 1,core_aes_en
+	rtn
+
+read_function_aes:
+	nbranch read_function,user
+	fetch 1,core_aes_en
+	or_into 0x2,pdata   	// enable aes 
+	store 1,core_aes_en
+read_function:
+	copy temp,null
+	branch read_fuction_zero,zero
+	copy regc,pc
+read_fuction_zero:
+	isolate0 0,null
+	branch set_ucode_status
+	
+/* return temp = block length */
+get_block_header:
+	force 4,temp
+get_block_header0:
+	arg mem_ucode_buf,rega
+	call aes_disable	// disable aes for header
+	call read_function
+	arg 0x55aa,rega
+	fetch 2,mem_ucode_buf
+	ifetcht 2,contr
+	isub rega,null
+	rtn
+
+
+read_first_block:
+	arg 2,temp
+	arg mem_ucode_ptr,rega
+	call read_function
+	fetch 2,mem_ucode_ptr
+	store 2,mem_addr_mi
+	call get_iv,user
+	rtn
+	
+get_iv:
+	arg 16,temp
+	arg mem_ucode_keybuf,rega
+	call aes_disable	// disable aes for iv
+	call read_function
+set_iv:
+	arg mem_ucode_keybuf,contr
+	arg 16,loopcnt
+	call aes_load_data
+	call aes_init
+	call aes_clear_data
+	branch do_aes_cbc					/* generate first IV */
+
+load_storage:
+	setarg 0
+	store 2,mem_queue	//data checksum
+	disable match
+	call get_block_header
+	nrtn zero
+	jam 0x80, core_ucode_ctrl
+	jam 0,core_ucode_hi
+	jam 0,core_ucode_low
+	arg core_ucode_data,rega
+	call read_function_aes
+	jam 0x0, core_ucode_ctrl
+load_storage_loop:
+	arg 6,temp
+	call get_block_header0
+	nbranch load_data_checksum_compare,zero
+	ifetch 2,contr
+	iforce rega
+	call read_function
+	call load_data_checksum_calc
+	branch load_storage_loop
+
+load_data_checksum:
+	arg 0xaa55,rega
+	fetch 2,mem_ucode_buf
+	isub rega,null
+	nrtn zero
+	arg 0x55aa,rega
+	fetch 2,mem_ucode_len
+	isub rega,null
+	nrtn zero
+	fetch 2,mem_sched_addr
+	store 2,mem_rega	//data crc
+	rtn
+
+
+load_data_checksum_calc:
+	fetch 2,mem_queue
+	arg 6,loopcnt
+	arg mem_ucode_buf,contr
+	call cal_sum
+	fetchr loopcnt,2,mem_ucode_len
+	copy rega,contr
+	call cal_sum
+	store 2,mem_queue
+	rtn
+
+load_data_checksum_compare:
+	call load_data_checksum
+	branch load_storage_loop,zero
+	fetch 2,mem_rega	//receive crc
+	fetcht 2,mem_queue	//calc crc
+	isub temp,null
+	nrtn zero
+	enable match
+	rtn
+
+
+	/* only load memory data from eeprom */
+reload_eeprom:
+	call clean_mem
+	setarg 0x1000
+	store 2,mem_addr_mi
+	arg iicd_read_eep,regc
+	arg 2,loopcnt
+reload_eeprom_loop:
+	call get_block_header
+	nrtn zero
+	fetch 2,mem_addr_mi
+	byteswap pdata,pdata
+	iadd temp,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+	loop reload_eeprom_loop
+	branch load_storage_loop
+
+
+loadcode:
+	call clean_mem
+	jam 0x25,core_clkoff			// disable debug uart
+	disable user
+
+	setarg OTP_OFFSET_APP_VDD_SEL
+	arg mem_tmp_buffer+OTP_LOADCODE_OFFSET_APP_VDD_SEL,rega
+	arg 4,temp
+	call otpd_read_data
+	call app_read_efuse_app_vsel
+	fetch 1,mem_tmp_buffer+OTP_LOADCODE_OFFSET_DEVICE_LOCK
+	branch loadcode_read_ucode,blank
+	rshift4 pdata,temp
+	and pdata,0x0f,pdata
+	ixor temp,pdata
+	bne 0x0f, loadcode_error
+	call app_lpm_peripheral_lock_check
+
+loadcode_read_ucode:
+	setarg OTP_OFFSET_UCODE_FLAG
+	arg mem_tmp_buffer+OTP_LOADCODE_OFFSET_UCODE_FLAG,rega
+	arg 2,temp
+	call otpd_read_data
+	fetch 2,mem_tmp_buffer+OTP_LOADCODE_OFFSET_UCODE_FLAG
+	bbit0 UCODE_FLAG_ENC,loadcode_otp
+	jam 0x25,core_clkoff			// disable debug uart
+	setarg OTP_OFFSET_UCODE_KEY
+	arg mem_ucode_keybuf,rega
+	arg 16,temp
+	call otpd_read_data
+	jam lock_otp,core_misc_ctrl	// disable further read/write of key
+	set1 mark_otp_encrypt,mark
+	arg mem_ucode_keybuf,contr
+	call load_key
+	enable user					// set user for aes
+loadcode_otp:
+	jam 0,mem_loadcode_times
+loadcode_otp_loop:
+	call loadcode_timeout
+	nbranch loadcode_error,positive
+	fetch 2,mem_tmp_buffer+OTP_LOADCODE_OFFSET_UCODE_FLAG
+	byteswap pdata,pdata
+	arg 0xfff,temp
+	iand temp,pdata
+	lshift pdata,pdata		//otp offset shoudle be even
+	branch loadcode_iic,zero
+	call otp_set_addr
+	arg otpd_read_code,regc
+	call get_iv,user
+	call load_storage
+	nbranch loadcode_otp_loop,match
+	fetch 1,mem_ucode_status
+	bbit0 0,loadcode_otp_loop			// crc error, try again
+	call run_otp_code
+
+loadcode_iic:
+	call otp_pwr_off
+	jam 0,mem_loadcode_times
+loadcode_iic_loop:
+	fetch 1,mem_tmp_buffer+OTP_OFFSET_UCODE_FLAG
+	bbit1 UCODE_FLAG_SKIP_EEP,loadcode_spi
+	call loadcode_timeout
+	nbranch loadcode_iic_eeprom_2k,positive
+	call iicd_load_gpio_init
+	call clear_eeprom_size_2k
+	call loadcode_iic_by_eeprom
+	nbranch loadcode_iic_loop,match
+	fetch 1,mem_ucode_status
+	bbit0 0,loadcode_iic_loop			// crc error, try again
+	branch loadcode_hci
+
+run_otp_code:
+	setarg 0x1ff
+	arg 0,pc
+	rtn
+
+loadcode_iic_eeprom_2k:
+	jam 0,mem_loadcode_times
+loadcode_iic_eeprom_2k_loop:
+	fetch 1,mem_tmp_buffer+OTP_OFFSET_UCODE_FLAG
+	bbit1 UCODE_FLAG_SKIP_EEP,loadcode_spi
+	call loadcode_timeout
+	nbranch loadcode_spi,positive
+	call iicd_load_gpio_init
+	call set_eeprom_size_2k
+	call loadcode_iic_by_eeprom
+	nbranch loadcode_iic_eeprom_2k_loop,match
+	fetch 1,mem_ucode_status
+	bbit0 0,loadcode_iic_eeprom_2k_loop			// crc error, try again
+	branch loadcode_hci
+
+iicd_load_gpio_init:
+	fetch 1,mem_eeprom_sda_gpio
+	fetcht 1,mem_eeprom_scl_gpio
+	isub temp,null
+	nbranch iicd_read_init_pin,zero
+iicd_load_default_gpio:
+	jam 2,mem_eeprom_wp_gpio
+	jam 1,mem_eeprom_scl_gpio
+	jam 0,mem_eeprom_sda_gpio
+	branch iicd_read_init_pin
+	
+loadcode_spi:
+	jam 0,mem_loadcode_times
+loadcode_spi_loop:
+	fetch 1,mem_tmp_buffer+OTP_OFFSET_UCODE_FLAG
+	bbit1 UCODE_FLAG_SKIP_FLASH,loadcode_hci
+	call loadcode_timeout
+	nbranch loadcode_hci,positive
+	call spid_init_flash
+	nop 200						// some flash will fail if no delay here
+	call spid_flash_release_form_powerdown
+	nop 100
+	arg spid_load_flash,regc
+	call read_first_block
+	call load_storage
+	nbranch loadcode_spi_loop,match
+	fetch 1,mem_ucode_status
+	bbit0 0,loadcode_spi_loop			// crc error, try again
+
+loadcode_hci:
+	fetch 1,mem_tmp_buffer+OTP_OFFSET_UCODE_FLAG
+	bbit0 UCODE_FLAG_HCI,clear_key_buf
+	call clear_key_buf
+	branch hci_init
+	
+clear_key_buf:
+	setarg 0
+	store 8,mem_ucode_keybuf
+	istore 8,contw
+	force regidx_key,regext_index
+	call aes_clear
+	jam 0x21,core_clkoff		// enable debug uart
+	rtn
+
+
+//output: positive
+//1:continue load
+//0:load timeout
+loadcode_timeout:
+	call loadcode_error_delay
+	fetch 1,mem_loadcode_times
+	increase 1,pdata
+	sub pdata,3,null
+	store 1,mem_loadcode_times	
+	rtn
+
+loadcode_error_delay:
+	fetch 1,mem_loadcode_times
+	rtn blank
+	fetch 1,mem_tmp_buffer+OTP_LOADCODE_OFFSET_LOADCODE_DELAY
+	rtn blank
+	branch delay_50ms
+
+
+loadcode_iic_by_eeprom:
+	setarg 0x0
+	store 2,mem_addr_mi
+	arg iicd_read_eep,regc
+	call iic_init_600khz
+	call read_first_block
+	branch load_storage
+
+
+loadcode_check_times:
+	fetch 1,mem_loadcode_times
+	increase 1,pdata
+	sub pdata,3,null
+	nbranch loadcode_error,positive
+	store 1,mem_loadcode_times
+	rtn
+
+loadcode_error:
+	call clear_key_buf
+	branch app_lpm_mpu_lock_br_ble
+
+
+/* true flag is set into status */
+set_ucode_status:
+	fetch 1,mem_ucode_status
+	lshift pdata,pdata
+	setflag true,0,pdata
+	isolate0 15,rega
+	rtn true
+	store 1,mem_ucode_status
+	rtn
+
+	/* queue is bit position of hw done status */
+decrypt_code:
+	fetch 1,core_aes_en
+	rtnbit0 1
+	branch decrypt_code_skip	/* skip to key generation at first for speed */
+decrypt_code_loop:
+	fetch 1,core_dma_status
+	qisolate1 pdata
+	rtn true
+decrypt_code_skip:
+	fetch 1,core_misc_status
+	bbit0 1,decrypt_code_loop
+	call do_aes_cbc
+	branch decrypt_code_loop
+
+	/* loopcnt is ucode instruction count, pdata is buffer ptr */
+//save_ucode:
+//	copy loopcnt,temp
+//	storet 2,mem_patch_len
+//	jam 0x80, core_ucode_ctrl
+//	jam 0,core_ucode_hi
+//	jam 0,core_ucode_low
+//	store 2,mem_patch_ptr
+//	iforce contw
+//	lshift2 loopcnt,loopcnt
+//save_ucode_loop:
+//	fetch 1,core_ucode_data
+//	istore 1,contw
+//	loop save_ucode_loop
+//	jam 0x0, core_ucode_ctrl
+//	rtn
+
+
+load_ucode:
+	fetch 2,mem_patch_ptr
+	rtn blank
+	jam 0x80, core_ucode_ctrl
+	jam 0,core_ucode_hi
+	jam 0,core_ucode_low
+	fetcht 2,mem_patch_len
+	lshift2 temp,loopcnt
+	iforce contr
+load_ucode_loop:
+	ifetch 1,contr
+	store 1,core_ucode_data
+	loop load_ucode_loop
+	jam 0x0, core_ucode_ctrl
+	rtn
+
+
+/* ===================== LOCK ======================= */
+
+//0x04: 3V3; 0x3A: 5V
+app_read_efuse_app_vsel:
+	fetch 1,mem_tmp_buffer+OTP_LOADCODE_OFFSET_APP_VDD_SEL
+	nbranch app_set_app_vsel,blank
+	setarg 0x04	//3V3
+app_set_app_vsel:
+	store 1,mem_lpm_ctrl3_app_vsel
+	branch lpm_write_sel_vdd
+
+app_lpm_peripheral_lock_check:
+	fetch 1,mem_tmp_buffer+OTP_LOADCODE_OFFSET_DEVICE_LOCK
+	and pdata,0x0f,pdata	
+	beq dvc_op_module,app_lpm_peripheral_lock_module
+	beq dvc_op_hci,app_lpm_peripheral_lock_hci
+	beq dvc_op_dongle,app_lpm_peripheral_lock_dongle
+ifdef COMPLIE_TEST_CODE
+	beq dvc_op_test,app_lpm_peripheral_lock_test
+endif	
+	beq dvc_op_mouse,app_lpm_peripheral_lock_mouse
+	beq dvc_op_shutter,app_lpm_peripheral_lock_shutter
+	beq dvc_op_ali_mesh,app_lpm_peripheral_lock_mesh
+	beq dvc_op_hci_boot,app_lpm_peripheral_lock_hciboot
+	beq dvc_op_remote_car,app_lpm_peripheral_lock_remote_car
+	beq dvc_op_car,app_lpm_peripheral_lock_car
+	beq dvc_op_antilost,app_lpm_peripheral_lock_antilost
+	rtn
+	
+app_lpm_peripheral_lock_module:
+app_lpm_peripheral_lock_hci:
+app_lpm_peripheral_lock_hciboot:
+	call app_lpm_mpu_lock_mesh
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_dongle:
+	arg module_init,pdata //module
+	arg ui_soft_switch_power_off,temp  //shutter
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+
+ifdef COMPLIE_TEST_CODE
+app_lpm_peripheral_lock_test:
+	branch lpm_write_lock
+endif
+
+app_lpm_peripheral_lock_mouse:
+	arg antilost_init,pdata //antilost
+	arg module_set_state,temp  //module
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_shutter:
+	arg antilost_init,pdata  //antilost
+	arg remote_car_moto_data_enable_user,temp //car remote
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_mesh:
+	call app_lpm_mpu_lock_app
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_remote_car:
+	arg antilost_init,pdata  //antilost
+	arg mouse_low_voltage_led_no_enter_lpm_blink,temp //mouse
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+
+app_lpm_peripheral_lock_car:
+	arg dongle_init,pdata  //dongle
+	arg ui_soft_switch_power_off,temp //shutter
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+	
+app_lpm_peripheral_lock_antilost:
+	arg car_init,pdata  //dongle
+	arg ui_soft_switch_power_off,temp //shutter
+	call app_mpu_s0_lock
+	branch lpm_write_lock
+
+app_lpm_mpu_lock_mesh:	
+	arg ali_mesh_access_layer_resolve_message,pdata
+	arg ali_mesh_upper_transport_layer_clear_tx_buffer,temp
+	branch app_mpu_s0_lock
+
+app_lpm_mpu_lock_module:
+	arg module_init,pdata
+	arg module_set_state,temp
+app_mpu_s0_lock:
+	lshift16 temp,temp
+	ior temp,pdata
+	store 4,core_lpm_reg
+	branch lpm_write2_mpu_s0
+	
+app_lpm_mpu_lock_app:	
+	arg antilost_init,pdata  //antilost
+	arg ui_soft_switch_power_off,temp //shutter
+	branch app_mpu_s0_lock
+
+app_lpm_mpu_lock_br:	
+	arg parse_lmp,pdata
+	arg remote_auth,temp
+	branch app_mpu_s1_lock
+
+app_lpm_mpu_lock_ble:	
+	arg le_parse_att,pdata
+	arg le_send_ll_one_lenth,temp
+app_mpu_s1_lock:
+	lshift16 temp,temp
+	ior temp,pdata
+	store 4,core_lpm_reg
+	branch lpm_write2_mpu_s1
+	
+app_lpm_mpu_lock_24g:	
+	arg g24_prep,pdata
+	arg power_ctrl_pac_succ_cnt_reinit,temp
+	branch app_mpu_s1_lock
+	
+app_lpm_mpu_lock_br_ble:
+	call app_lpm_mpu_lock_br
+	arg le_parse_att,pdata
+	arg le_send_ll_one_lenth,temp
+	branch app_mpu_s0_lock
+
+app_lpm_mpu_mode_lock:
+	fetch 1,mem_tmp_buffer+OTP_LOADCODE_OFFSET_PERIPHERALS_LOCK
+	and pdata,0xc0,pdata
+	beq 0xc0,app_lpm_mpu_lock_br_ble
+	bbit1 OTP_LE_LOCK_BIT,app_lpm_mpu_lock_ble
+	bbit1 OTP_BR_LOCK_BIT,app_lpm_mpu_lock_br
+	rtn
+
+
+lpm_write_lock:
+	call app_lpm_mpu_mode_lock
+	fetch 1,mem_tmp_buffer+OTP_LOADCODE_OFFSET_PERIPHERALS_LOCK
+	and pdata,0x1f,rega
+	fetch 1,mem_tmp_buffer+OTP_LOADCODE_OFFSET_UCODE_FLAG
+	and pdata,0x0f,pdata
+	fetcht 1,mem_tmp_buffer+OTP_LOADCODE_OFFSET_DEVICE_LOCK
+	and temp,0x0f,temp
+	lshift4 temp,temp
+	ior temp,pdata
+	lshift8 rega,rega
+	ior rega,pdata
+	set1 lpmreg_rom_lock_bit,pdata
+	set1 lpmreg_ice_mode_bit,pdata
+	store 4,core_lpm_reg
+	call lpm_write2_ctrl_option
+	jam 8,core_encrypt
+	rtn
+
+lpm_write2_ctrl_option:
+	setarg lpmreg2_sel_option
+lpm_write2:
+	until null,lpo_edge
+	store 1,core_lpm_wr2
+	until null,lpo_edge
+	until null,lpo_edge
+	rtn
+
+
+
+lpm_write2_mpu_s0:
+	setarg lpmreg2_sel_mpu_s0
+	branch lpm_write2
+
+lpm_write2_mpu_s1:
+	setarg lpmreg2_sel_mpu_s1
+	branch lpm_write2
+
+
+
+/* ===================== SPI dma ======================= */
+
+spid_init:
+	bpatchx patch23_7,mem_patch23
+spid_init_common:
+	fetch 1,mem_spi_init_clk
+	store 1,core_spid_ctrl	// A7530 should at least 34, or write fail
+	fetch 1,mem_spi_init_delay_time
+	store 1,core_spid_delay	// 4us delay
+	setarg mem_spid_tbuf
+	store 2,core_spid_txaddr
+	setarg mem_spid_rbuf
+	store 2,core_spid_rxaddr
+	branch twspi_disable
+	
+
+
+/* pdata 6:0 is reg address, 15:8 is data to write */
+spid_write_reg:
+	set1 7,pdata
+	store 2,mem_spid_tbuf
+	bpatchx patch24_0,mem_patch24
+	jam 2,core_spid_txlen
+	jam 0,core_spid_rxlen
+	jam spid_start,core_misc_ctrl
+	branch wait_spid_done
+
+/* pdata 6:0 is reg address, temp is bytes to read */
+spid_read_reg:
+	force 1,temp
+spid_read_regs:	
+	store 1,mem_spid_tbuf
+	bpatchx patch24_1,mem_patch24
+	jam 1,core_spid_txlen
+	storet 2,core_spid_rxlen
+	jam spid_start,core_misc_ctrl
+	call wait_spid_done
+	fetch 1,mem_spid_rbuf
+	rtn
+
+
+wait_spid_done:
+	fetch 2,mem_afh_error_total
+	increase 1,pdata
+	store 2,mem_afh_error_total
+	fetch 1,core_dma_status
+	bbit0 spid_done,wait_spid_done
+	rtn
+
+	
+
+
+
+
+/**
+ ******************************************************************************
+ ** \brief  write flash
+ **
+ ** \param [in]  rega: 2byte write ptr    
+ **			pdata:3byte flash address  
+ ** 			temp:2byte write data length
+ **
+ ** \retval user  0: flash buys 1:write flash setting complate
+ **
+ ******************************************************************************/
+
+flash_write:
+	disable user
+	copy pdata,regb
+	fetch 1,mem_spi_write_flash_sm
+	rtnne FLASH_SM_NO_BUYS
+	enable user
+	copy regb,pdata
+	branch spid_flash_write_start
+
+
+flash_write_spi_sm_timer:
+	fetch 1,mem_spi_write_flash_sm 	
+	beq FLASH_SM_START,spid_flash_write_start
+	beq FLASH_SM_ERASE_SECTOR,spid_flash_erase_sector
+	beq FLASH_SM_WAIT_ERASE_SECTOR,spid_flash_wait_erase_sector
+	beq FLASH_SM_WRITE_DATA,spid_flash_write_data
+	beq FLASH_SM_WAIT_WRITE_DATA,spid_flash_wait_write_data
+	rtn
+
+spid_flash_write_start:
+	store 3,mem_spi_write_addr
+	copy rega,pdata
+	store 2,mem_spi_write_ptr
+	storet 2,mem_spi_write_len
+	jam FLASH_SM_ERASE_SECTOR,mem_spi_write_flash_sm
+	branch spid_init_flash
+spid_flash_erase_sector:
+	call spid_init_flash
+	jam FLASH_SM_WAIT_ERASE_SECTOR,mem_spi_write_flash_sm
+	call spid_unlock_flash
+	arg mem_spid_tbuf,rega
+	jam 4,core_spid_txlen
+	fetch 3,mem_spi_write_addr
+	arg FLASH_COMMAND_SECTOR_ERASE,temp
+	branch spid_write_flash_common
+	
+spid_flash_wait_erase_sector:
+	call spid_init_flash
+	call wait_spid_flash_done
+	jam FLASH_SM_WRITE_DATA,mem_spi_write_flash_sm
+	rtn
+
+
+spid_flash_write_data:
+	call spid_init_flash
+	jam FLASH_SM_WAIT_WRITE_DATA,mem_spi_write_flash_sm
+	call spid_unlock_flash
+	call spid_flash_data_preserve
+	call spid_write_flash
+	branch spid_flash_data_recover
+spid_flash_wait_write_data:
+	call spid_init_flash
+	call spid_unlock_flash
+	setarg FLASH_READ_SATUS
+	call spid_read_reg
+	rtnbit1 FLASH_STATUS_WIP
+	jam FLASH_SM_NO_BUYS,mem_spi_write_flash_sm
+	fetch 2,mem_cb_spi_flash_write_complate
+	branch callback_func
+spid_flash_data_recover:
+	fetch 4,mem_temp
+	fetcht 2,mem_spi_write_ptr
+spid_flash_data_recover_comm:
+	increase -4,temp
+	istore 4,temp
+	rtn
+spid_flash_data_preserve:
+	fetcht 2,mem_spi_write_ptr
+	copy temp,rega
+	increase -4,temp
+	ifetch 4,temp
+	store 4,mem_temp
+	fetcht 2,mem_spi_write_len
+	fetch 3,mem_spi_write_addr
+	rtn
+
+spid_init_flash:
+	call spi_gpio_init
+	call twspi_disable
+	setarg 0
+	store 4,mem_spid_tbuf
+	rtn
+
+spid_unlock_flash:
+	jam FLASH_COMMAND_WRITE_ENABLE,mem_spid_tbuf
+spid_sendcmd_common:	
+	setarg 0
+	store 2,core_spid_rxlen
+	setarg 1
+	store 2,core_spid_txlen
+	setarg mem_spid_tbuf
+	store 2,core_spid_txaddr
+	jam spid_start,core_misc_ctrl
+	branch wait_spid_done
+	
+spid_flash_release_form_powerdown:
+	jam FLASH_COMMAND_RELEASE_FROM_POWERDOWN,mem_spid_tbuf
+	branch spid_sendcmd_common
+	
+spid_flash_powerdown:
+	jam FLASH_COMMAND_POWERDOWN,mem_spid_tbuf
+	branch spid_sendcmd_common
+	
+/* pdata is flash address, rega pointers to txdata(4 ahead bytes should be left), temp is length */
+spid_write_flash:
+	increase 4,temp
+	storet 2,core_spid_txlen
+	arg FLASH_COMMAND_WRITE_DATA,temp
+	increase -4,rega
+
+spid_write_flash_common:
+	istoret 1,rega
+	rshift16 pdata,temp
+	istoret 1,contw
+	rshift8 pdata,temp
+	istoret 1,contw
+	istore 1,contw
+	deposit rega
+	store 2,core_spid_txaddr
+	setarg 0
+	store 2,core_spid_rxlen
+	jam spid_start,core_misc_ctrl
+	call wait_spid_done
+	branch wait_spid_flash_done
+
+
+/* temp is length, rega pointers to buf   */
+spid_read_flash:
+	storet 2,core_spid_rxlen
+	rshift16 pdata,temp
+	storet 1,mem_addr_hi
+	rshift8 pdata,temp
+	storet 1,mem_addr_mi
+	store 1,mem_addr_lo
+	setarg 4
+	store 2,core_spid_txlen
+	jam FLASH_COMMAND_READ_DATA,mem_spid_tbuf
+	setarg mem_spid_tbuf
+	store 2,core_spid_txaddr
+	deposit rega
+	store 2,core_spid_rxaddr
+	fetch 1,core_spid_ctrl
+	isolate0 15,rega
+	setflag true,6,pdata
+	store 1,core_spid_ctrl
+	jam spid_start,core_misc_ctrl
+spid_read_flash_wait:
+	fetch 1,core_dma_status
+	bbit1 7,spid_read_flash_wait			// waiting for spid write
+	arg spid_done,queue
+	branch wait_spid_done
+
+wait_spid_flash_done:
+	setarg 2000
+	call sleep
+	call spid_unlock_flash
+	setarg mem_spid_rbuf
+	store 2,core_spid_rxaddr
+	setarg FLASH_READ_SATUS
+	call spid_read_reg
+	bbit1 FLASH_STATUS_WIP,wait_spid_flash_done
+	rtn
+
+
+/* temp is length, rega pointers to buf  */
+spid_load_flash:
+	storet 2,core_spid_rxlen
+	setarg 4
+	store 2,core_spid_txlen
+	jam 3,mem_spid_tbuf
+	setarg mem_spid_tbuf
+	store 2,core_spid_txaddr
+	deposit rega
+	store 2,core_spid_rxaddr
+	fetch 1,core_spid_ctrl
+	isolate0 15,rega
+	setflag true,6,pdata
+	store 1,core_spid_ctrl
+	jam spid_start,core_misc_ctrl
+spi_load_flash_wait:
+	fetch 1,core_dma_status
+	bbit1 7,spi_load_flash_wait			// waiting for spid write
+	arg spid_done,queue
+	call decrypt_code
+	call wait_spid_done
+	isolate1 spid_crcok,pdata
+	call set_ucode_status
+	fetch 1,mem_addr_hi
+	lshift16 pdata,regb
+	fetch 1,mem_addr_mi
+	lshift8 pdata,pdata
+	ior regb,regb
+	fetch 1,mem_addr_lo
+	ior regb,pdata
+	iadd temp,pdata
+	store 1,mem_addr_lo
+	rshift8 pdata,pdata
+	store 1,mem_addr_mi
+	rshift8 pdata,pdata
+	store 1,mem_addr_hi
+	rtn
+	
+spi_gpio_init:
+	fetch 1,mem_spi_cs_gpio
+	fetcht 1,mem_spi_so_gpio
+	isub temp,null
+	nbranch spi_pin_set,zero
+	call spi_gpio_default_init
+	
+spi_pin_set:
+	fetch 1,mem_spi_cs_gpio
+	arg gpcfg_spid_ncs,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi_sclk_gpio
+	arg gpcfg_spid_sck,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi_si_gpio
+	arg gpcfg_spid_mosi,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi_so_gpio
+	arg gpcfg_spid_miso,temp
+	branch gpio_config_function_int
+
+spi_gpio_default_init:
+	jam 15,mem_spi_cs_gpio
+	jam 16,mem_spi_si_gpio
+	jam 18,mem_spi_so_gpio
+	jam 20,mem_spi_sclk_gpio
+	jam 17,mem_spi_wp_gpio
+	jam 21,mem_spi_hold_gpio
+	rtn
+
+
+/* ===================== SPI2 dma ======================= */
+ifdef SPI2
+spid2_init:
+
+spid2_init_common:
+	fetch 1,mem_spi_init_clk
+	store 1,core_spid2_ctrl	// A7530 should at least 34, or write fail
+	fetch 1,mem_spi_init_delay_time
+	store 1,core_spid2_delay	// 4us delay
+	setarg mem_spid2_tbuf
+	store 2,core_spid2_txaddr
+	setarg mem_spid2_rbuf
+	store 2,core_spid2_rxaddr
+	branch twspi2_disable
+	
+/* pdata 6:0 is reg address, 15:8 is data to write */
+spid2_write_reg:
+	set1 7,pdata
+	store 2,mem_spid2_tbuf
+	jam 2,core_spid2_txlen
+	jam 0,core_spid2_rxlen
+	jam spid2_start,core_misc_ctrl
+	branch wait_spid2_done
+	
+/* pdata 6:0 is reg address, temp is bytes to read */
+spid2_read_reg:
+	force 1,temp
+spid2_read_regs:
+	store 1,mem_spid2_tbuf
+	jam 1,core_spid2_txlen
+	storet 2,core_spid2_rxlen
+	jam spid2_start,core_misc_ctrl
+	call wait_spid2_done
+	fetch 1,mem_spid2_rbuf
+	rtn
+	
+wait_spid2_done:
+	fetch 2,mem_afh_error_total
+	increase 1,pdata
+	store 2,mem_afh_error_total
+	fetch 1,core_perf_status
+	bbit0 spid_done,wait_spid2_done
+	rtn
+	
+spid2_init_flash:
+	call spi2_gpio_init
+	setarg 0
+	store 4,mem_spid2_tbuf
+	rtn
+	
+spid2_unlock_flash:
+	setarg 0
+	store 2,core_spid2_rxlen
+	setarg 1
+	store 2,core_spid2_txlen
+	setarg mem_spid2_tbuf
+	store 2,core_spid2_txaddr
+	jam FLASH_COMMAND_WRITE_ENABLE,mem_spid2_tbuf
+	jam spid2_start,core_misc_ctrl
+	branch wait_spid2_done
+	
+flash_write_spi2_sm_timer:
+	fetch 1,mem_spi2_write_flash_sm 	
+	beq FLASH_SM_START,spid2_flash_write_start
+	beq FLASH_SM_ERASE_SECTOR,spid2_flash_erase_sector
+	beq FLASH_SM_WAIT_ERASE_SECTOR,spid2_flash_wait_erase_sector
+	beq FLASH_SM_WRITE_DATA,spid2_flash_write_data
+	beq FLASH_SM_WAIT_WRITE_DATA,spid2_flash_wait_write_data
+	rtn
+	
+spid2_flash_write_start:
+	store 3,mem_spi2_write_addr
+	copy rega,pdata
+	store 2,mem_spi2_write_ptr
+	storet 2,mem_spi2_write_len
+	jam FLASH_SM_ERASE_SECTOR,mem_spi2_write_flash_sm
+	branch spid2_init_flash
+	
+spid2_flash_erase_sector:
+	call spid2_init_flash
+	jam FLASH_SM_WAIT_ERASE_SECTOR,mem_spi2_write_flash_sm
+	call spid2_unlock_flash
+	arg mem_spid2_tbuf,rega
+	jam 4,core_spid2_txlen
+	fetch 3,mem_spi2_write_addr
+	arg FLASH_COMMAND_SECTOR_ERASE,temp
+	branch spid2_write_flash_common
+	
+spid2_flash_wait_erase_sector:
+	call spid2_init_flash
+	call wait_spid2_flash_done
+	jam FLASH_SM_WRITE_DATA,mem_spi2_write_flash_sm
+	rtn
+	
+spid2_flash_write_data:
+	call spid2_init_flash
+	jam FLASH_SM_WAIT_WRITE_DATA,mem_spi2_write_flash_sm
+	call spid2_unlock_flash
+	call spid2_flash_data_preserve
+	call spid2_write_flash
+	branch spid2_flash_data_recover
+	
+spid2_flash_wait_write_data:
+	call spid2_init_flash
+	call spid2_unlock_flash
+	setarg FLASH_READ_SATUS
+	call spid2_read_reg
+	rtnbit1 FLASH_STATUS_WIP
+	jam FLASH_SM_NO_BUYS,mem_spi2_write_flash_sm
+	fetch 2,mem_cb_spi2_flash_write_complate
+	branch callback_func
+	
+spid2_flash_data_recover:
+	fetch 4,mem_temp
+	fetcht 2,mem_spi2_write_ptr
+	branch spid_flash_data_recover_comm
+	
+spid2_flash_data_preserve:
+	fetcht 2,mem_spi2_write_ptr
+	copy temp,rega
+	increase -4,temp
+	ifetch 4,temp
+	store 4,mem_temp
+	fetcht 2,mem_spi2_write_len
+	fetch 3,mem_spi2_write_addr
+	rtn
+	
+spid2_write_flash:
+	increase 4,temp
+	storet 2,core_spid2_txlen
+	arg FLASH_COMMAND_WRITE_DATA,temp
+	increase -4,rega
+spid2_write_flash_common:
+	istoret 1,rega
+	rshift16 pdata,temp
+	istoret 1,contw
+	rshift8 pdata,temp
+	istoret 1,contw
+	istore 1,contw
+	deposit rega
+	store 2,core_spid2_txaddr
+	setarg 0
+	store 2,core_spid2_rxlen
+	jam spid2_start,core_misc_ctrl
+	call wait_spid2_done
+	branch wait_spid2_flash_done
+	
+spid2_read_flash:
+	storet 2,core_spid2_rxlen
+	rshift16 pdata,temp
+	storet 1,mem_addr_hi2
+	rshift8 pdata,temp
+	storet 1,mem_addr_mi2
+	store 1,mem_addr_lo2
+	setarg 4
+	store 2,core_spid2_txlen
+	jam FLASH_COMMAND_READ_DATA,mem_spid2_tbuf
+	setarg mem_spid2_tbuf
+	store 2,core_spid2_txaddr
+	deposit rega
+	store 2,core_spid2_rxaddr
+	fetch 1,core_spid2_ctrl
+	isolate0 15,rega
+	setflag true,6,pdata
+	store 1,core_spid2_ctrl
+	jam spid2_start,core_misc_ctrl
+spid2_read_flash_wait:
+	fetch 1,core_perf_status
+	bbit1 7,spid2_read_flash_wait			// waiting for spid write
+	arg spid_done,queue
+	branch wait_spid2_done
+	
+wait_spid2_flash_done:
+	setarg 2000
+	call sleep
+	call spid2_unlock_flash
+	setarg mem_spid2_rbuf
+	store 2,core_spid2_rxaddr
+	setarg FLASH_READ_SATUS
+	call spid2_read_reg
+	bbit1 FLASH_STATUS_WIP,wait_spid2_flash_done
+	rtn
+	
+spi2_gpio_init:
+	fetch 1,mem_spi2_cs_gpio
+	arg gpcfg_spid2_ncs,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi2_sclk_gpio
+	arg gpcfg_spid2_sck,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi2_si_gpio
+	arg gpcfg_spid2_mosi,temp
+	call gpio_config_function_int
+	fetch 1,mem_spi2_so_gpio
+	arg gpcfg_spid2_miso,temp
+	branch gpio_config_function_int
+	
+endif
+
+/*****************************************************************************
+*soft reset chip
+*****************************************************************************/
+soft_reset_chip:
+	jam 1,core_reset
+	rtn
+
+
+
+/* ===================== I2C dma ======================= */
+
+/* scl high time: scl_high + 2 clks, scl low time:scl_low + 6 clks
+data setup time: data_setup + 2 clks, data hold time: scl_low-setup-hold+4 clks */
+iic_init_600khz:
+	jam 5,core_iicd_scl_low
+ 	jam 7,core_iicd_scl_high
+	jam 7,core_iicd_start_setup
+	jam 7,core_iicd_start_hold
+	jam 7,core_iicd_stop_setup
+	jam 5,core_iicd_data_setup
+	jam 0,core_iicd_data_hold
+	rtn
+	
+iic_init_360khz:	//360khz
+	jam 12,core_iicd_scl_low
+	jam 13,core_iicd_scl_high
+	jam 13,core_iicd_start_setup
+	jam 13,core_iicd_start_hold
+	jam 13,core_iicd_stop_setup
+	jam 12,core_iicd_data_setup
+	jam 0,core_iicd_data_hold	
+  	rtn
+
+iicd_init_pin:
+	call iicd_eeprom_write_enable
+iicd_init_pin_scl_sda:
+	fetch 1,mem_eeprom_scl_gpio
+	arg gpcfg_iic_scl|gpcfg_pullup,temp
+	call gpio_config_function_int
+	fetch 1,mem_eeprom_sda_gpio
+	arg gpcfg_iic_sda|gpcfg_pullup,temp
+	branch gpio_config_function_int
+
+iicd_read_init_pin:
+	call iicd_eeprom_write_disable
+	branch iicd_init_pin_scl_sda
+
+wait_iicd_done:
+	fetch 1,core_dma_status
+	bbit0 iicd_done,wait_iicd_done
+	rtn
+
+	/* pdata is iic addr, rega points to buf, temp is length */
+iicd_read_data:
+	store 1,mem_iicd_addr
+	setarg mem_iicd_addr
+	store 2,core_iicd_txaddr
+	setarg 1
+	store 2,core_iicd_txlen
+	storet 2,core_iicd_rxlen
+	storer rega,2,core_iicd_rxaddr
+	jam 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	branch wait_iicd_done
+
+	/* rega points to buf, temp is length */
+iic_write_data:
+	setarg 0
+	store 2,core_iicd_rxlen
+	store 2,core_iicd_rxaddr
+	storet 2,core_iicd_txlen
+	storer rega,2,core_iicd_txaddr
+	jam 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	branch wait_iicd_done
+
+set_eeprom_size_2k:
+	set1 mark_eeprom_size,mark
+	jam 0x08,mem_eeprom_block_size
+	rtn
+
+clear_eeprom_size_2k:
+	set0 mark_eeprom_size,mark
+	jam 0x20,mem_eeprom_block_size
+	rtn
+
+
+iicd_read_eep_data_size_2k:
+ 	fetch 1,mem_eeprom_base
+	iadd regb,pdata
+	store 1,mem_addr_mi
+	branch iicd_read_eep_size_2k
+
+iicd_read_eep_size_2k_lcadcode:
+	fetch 2,mem_addr_mi
+	byteswap pdata,pdata
+	store 1,mem_addr_mi
+	
+//length:temp 
+//mem ptr:rega
+//eeprom addr:pdata
+iicd_read_eep_size_2k:
+ 	setarg 3
+	store 2,core_iicd_txlen
+	jam 0xa0,mem_iicd_tbuf
+	jam 0xa1,mem_iicd_tbuf+2
+	branch iicd_read_eep_common
+
+
+//length:temp 
+//mem ptr:rega
+//eeprom addr:regb
+iicd_write_protect_eep_data:
+	storet 2,mem_temp
+	call iicd_eeprom_write_enable
+	fetcht 2,mem_temp
+	call iicd_write_eep_data
+	branch iicd_eeprom_write_disable
+	
+iicd_eeprom_write_enable:
+	fetch 1,mem_eeprom_wp_gpio
+	rtneq GPIO_DISABLE
+	bbit0 6,iicd_wp_gpio_output_low
+	setarg 150000
+	call sleep
+iicd_wp_gpio_output_low:
+	fetcht 1,mem_eeprom_wp_gpio
+	branch gpio_out_active
+	
+iicd_eeprom_write_disable:
+	fetcht 1,mem_eeprom_wp_gpio
+	branch gpio_out_inactive
+	
+//length:temp 
+//mem ptr:rega
+//eeprom addr offset:regb
+iicd_read_eep_data:
+	bpatchx patch24_2,mem_patch24
+	bmark1 mark_eeprom_size,iicd_read_eep_data_size_2k
+	fetch 2,mem_eeprom_base
+	iadd regb,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+
+/* rega pointers to buf, temp is length  */
+iicd_read_eep:
+	bpatchx patch24_3,mem_patch24
+	bmark1 mark_eeprom_size,iicd_read_eep_size_2k_lcadcode
+	setarg 4
+	store 2,core_iicd_txlen
+	jam 0xa0,mem_iicd_tbuf
+	jam 0xa1,mem_iicd_tbuf+3
+iicd_read_eep_common:	
+	setarg mem_iicd_tbuf
+	store 2,core_iicd_txaddr
+	storet 2,core_iicd_rxlen
+	storer rega,2,core_iicd_rxaddr
+	setarg 2
+	isolate0 15,rega
+	setflag true,0,pdata
+	store 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	arg iicd_done,queue
+	call decrypt_code
+	call wait_iicd_done
+	isolate1 iicd_crcok,pdata
+	call set_ucode_status
+	bmark1 mark_eeprom_size,iicd_read_eep_load_code_size_2k
+	fetch 2,mem_addr_mi
+	byteswap pdata,pdata
+	iadd temp,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+	rtn
+
+iicd_read_eep_load_code_size_2k:
+	fetch 1,mem_addr_mi
+	iadd temp,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+	rtn
+	
+
+//length:temp 
+//mem ptr:rega
+//eeprom addr offset:regb
+iicd_write_eep_data:
+	fetch 2,mem_eeprom_base
+	iadd regb,pdata
+
+//cuur ptr:pdata length:temp buf:rega
+iicd_write_ota_data:
+	store 2,mem_pdatatemp //curr ptr
+	bpatchx patch24_4,mem_patch24
+	storet 2,mem_temp	//len
+	storer rega,2,mem_contr
+iicd_write_eep_loop:
+	call iicd_eep_transparency
+
+	fetcht 2,mem_regb
+	fetchr rega,2,mem_contr
+	fetch 2,mem_pdatatemp
+	
+	call iicd_write_eep
+	
+	fetch 2,mem_regb
+	fetcht 2,mem_contr
+	iadd temp,temp
+	storet 2,mem_contr
+	fetcht 2,mem_pdatatemp
+	iadd temp,temp
+	storet 2,mem_pdatatemp
+	fetch 2,mem_temp
+	nbranch iicd_write_eep_loop,blank
+	rtn
+	
+//in:
+//1.size 2.len 3.src 4.des
+//mem_regc page's area
+//mem_pdatatemp curr ptr
+//mem_temp all len      
+//mem_regb curr len
+iicd_eep_transparency:
+	bpatchx patch24_5,mem_patch24
+	fetch 1,mem_eeprom_block_size
+	increase -1,pdata
+	fetcht 2,mem_pdatatemp
+	ior temp,pdata
+	increase 1,pdata
+	store 3,mem_regc
+
+	fetch 2,mem_temp
+	iadd temp,pdata
+
+	fetcht 3,mem_regc
+	isub temp,pdata
+	nbranch iicd_eep_deal_short_packet,positive
+	store 2,mem_temp
+	fetch 3,mem_regc
+	fetcht 2,mem_pdatatemp
+	isub temp,pdata
+	store 2,mem_regb
+	rtn
+iicd_eep_deal_short_packet:
+	fetch 2,mem_temp
+	store 2,mem_regb
+	setarg 0
+	store 2,mem_temp
+	rtn
+
+iicd_write_eep_size_2k:
+	copy regb,pdata
+	increase 2,temp
+	storet 2,core_iicd_txlen
+	increase -2,rega
+	ifetcht 3,rega
+	copy temp,regb
+	arg 0xa0,temp
+	istoret 1,rega
+	istore 1,contw
+	branch iicd_write_eep_common
+
+	/* pdata is eeprom address, rega pointers to txdata(3 ahead bytes should be left), temp is length */
+iicd_write_eep:
+	copy pdata,regb
+	bpatchx patch24_6,mem_patch24
+	bmark1 mark_eeprom_size,iicd_write_eep_size_2k
+	copy regb,pdata
+	increase 3,temp
+	storet 2,core_iicd_txlen
+	increase -3,rega
+	ifetcht 3,rega
+	copy temp,regb
+	arg 0xa0,temp
+	istoret 1,rega
+	byteswap pdata,pdata
+	istore 2,contw
+iicd_write_eep_common:	
+	storer rega,2,core_iicd_txaddr
+	setarg 0
+	store 2,core_iicd_rxlen
+	jam 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	istorer regb,3,rega
+iic_check_eeprom_standby:
+	bpatchx patch24_7,mem_patch24
+	jam 0,mem_iicd_tbuf+3
+iic_check_eeprom_standby_wait:
+	setarg 1
+	store 2,core_iicd_txlen
+	jam 0xa0,mem_iicd_tbuf
+	setarg mem_iicd_tbuf
+	store 2,core_iicd_txaddr
+	setarg 0
+	store 2,core_iicd_rxlen
+	store 2,core_iicd_rxaddr
+	setarg 3
+	store 1,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	fetch 1,core_dma_status
+	rtnbit0 iicd_ack
+	nop 1500
+	fetch 1,mem_iicd_tbuf+3
+	increase 1,pdata
+	store 1,mem_iicd_tbuf+3
+	sub pdata,40,null
+	nrtn positive//polling timeout 6ms
+	branch iic_check_eeprom_standby_wait
+
+/* ===================== OTP ======================= */
+
+otp_prog_pwr_on:
+	jam 0x4,0x8aa0
+	jam 0x33,0x8aa1
+	jam 0x1,0x8aa2
+	branch otp_pwr_on
+
+otp_read_pwr_on:
+	jam 0xc,0x8aa0
+	jam 0xfb,0x8aa1
+	jam 0x3,0x8aa2
+
+otp_pwr_on:
+	store 2,mem_timeup
+	jam 0xff,core_clkpll_ctrl1
+
+	fetch 1,core_rf_ldo_en1
+	store 1,mem_timeup+2
+	or_into 0x4,pdata
+	store 1,core_rf_ldo_en1
+
+	fetch 1,core_rf_ldo_cfg7
+	store 1,mem_timeup+3
+	
+	jam 0x11,core_rf_ldo_cfg7
+	
+	nop 1000
+	fetch 1,core_clkpll_ctrl2
+	or_into 0x1,pdata
+	store 1,core_clkpll_ctrl2
+	jam 0x03,core_clkpll_ctrl0
+
+	fetch 1,0x8aa0
+	or_into 0xd0,pdata
+	store 1,0x8aa0
+	nop 1000
+	fetch 1,0x8aa0
+	or_into 0x20,pdata
+	store 1,0x8aa0
+	nop 1000
+	fetch 2,mem_timeup
+	rtn
+	
+otp_pwr_off:
+	jam 0x83,core_otp_ctrl	/* release ceb */
+	jam 0x4,0x8aa0
+	jam 0x43,0x8aa1
+	jam 0x1,0x8aa2
+	fetch 1,core_clkpll_ctrl2
+	and_into 0xfe,pdata
+	store 1,core_clkpll_ctrl2
+	fetch 1,mem_timeup+2
+	store 1,core_rf_ldo_en1
+	fetch 1,mem_timeup+3
+	store 1,core_rf_ldo_cfg7
+	rtn
+	
+otp_set_addr:
+	lshift3 pdata,pdata
+	store 2,core_otp_addr
+	jam 0,core_otpd_ctrl
+	jam 0,core_otp_din
+	rtn	
+
+/* temp = otp address, rega pointers data, loopcnt is count */
+otp_write:
+	call otp_prog_pwr_on
+	copy temp,pdata
+	call otp_set_addr
+	call otp_ce
+otp_program:
+	ifetcht 1,rega
+	increase 1,rega
+	force 0,queue
+otp_program_bit:
+	qisolate0 temp
+	branch otp_skip_0,true
+	fetch 1,core_otp_din
+	set1 6,pdata				/* din */
+	set1 7,pdata				/* dle */
+	store 1,core_otp_din
+	jam 0x02,core_otp_ctrl	/* web */
+	jam 0x82,core_otp_ctrl
+	set0 7,pdata				/* dle */
+	store 1,core_otp_din
+	jam 0x8a,core_otp_ctrl	/* pgmen */
+	nop 11
+	jam 0xca,core_otp_ctrl	/* vppen */
+	nop 33
+	jam 0x4a,core_otp_ctrl	/* web 2nd */
+	nop 44
+	jam 0xca,core_otp_ctrl	/* release web */
+	nop 22
+	jam 0x8a,core_otp_ctrl	/* release vppen */
+	nop 33
+	jam 0x82,core_otp_ctrl	/* release pgmen */
+	nop 1
+	jam 0x92,core_otp_ctrl	/* pgmvfy */
+	nop 10
+	jam 0xb2,core_otp_ctrl	/* readen */
+	fetch 1,core_otp_rdata
+	jam 0x92,core_otp_ctrl	/* release readen */
+	nop 1
+	jam 0x82,core_otp_ctrl	/* release pgmvfy */
+	qisolate0 pdata
+	branch otp_program_bit,true	/* program error */
+otp_skip_0:
+	fetch 2,core_otp_addr
+	increase 1,pdata
+	store 2,core_otp_addr
+	increase 1,queue
+	compare 8,queue,0xf
+	nbranch otp_program_bit,true
+	loop otp_program
+	jam 0x83,core_otp_ctrl
+	branch otp_pwr_off
+
+otp_ce:
+	jam 0x83,core_otp_ctrl	/* ceb */
+	jam 0x82,core_otp_ctrl	/* ceb */
+	nop 12
+	jam 0x80,core_otp_ctrl	/* rstn */
+	jam 0x82,core_otp_ctrl	/* release rstn */
+	nop 150					/* waiting for vdd25 stable */
+	rtn
+
+	/* rega points to data, temp is count */
+otpd_read_init:
+	call otp_ce
+	jam 0xa2,core_otp_ctrl	/* readen */
+	deposit rega
+	store 2,core_otpd_addr
+	storet 2,core_otpd_len
+	fetcht 1,core_otp_din
+	isolate0 15,pdata
+	setflag true,5,temp
+	set1 4,temp
+	storet 1,core_otp_din
+	jam 1,core_otp_rdata //otp dma start
+	rtn
+
+otpd_wait_end:
+	fetch 1,core_dma_status
+	bbit0 otpd_done,otpd_wait_end
+	rtn
+	
+	/* pdata=otp address, rega points to data, temp is count */
+otpd_read_data:
+	call otp_read_pwr_on
+	call otp_set_addr
+	call otpd_read_init
+	call otpd_wait_end
+	branch otp_pwr_off
+
+    /* rega pointers to buf, temp is length */
+otpd_read_code:	
+	call otp_read_pwr_on
+	fetch 2,core_current_otp_addr
+	store 2,core_otp_addr
+	call otpd_read_init
+	arg otpd_done,queue
+	call decrypt_code
+	call otpd_wait_end
+	isolate1 otpd_crcok,pdata
+	call set_ucode_status
+	branch otp_pwr_off
+
+/* ===================== uart dma ======================= */
+uarta_init_dma_mem:
+	call enable_user
+	branch uart_init_dma_mem
+uartb_init_dma_mem:
+	call disable_user
+	branch uart_init_dma_mem
+/*
+function name:uart_init_dma_mem
+input:
+	pdata is dma memory config
+	bit[0-15]:rx start memory address
+	bit[16-31]:rx ending memory address
+	bit[32-47]:tx start memory address
+	bit[48-63]:tx ending memory address
+	user is choice uart road
+	enable is mean check uart A
+	disable user is mean check uart B
+*/
+uart_init_dma_mem:
+	rshift16 pdata,temp
+	call uarta_init_rx,user
+	ncall uartb_init_rx,user
+	rshift32 pdata,pdata
+	rshift16 pdata,temp
+	call uarta_init_tx,user
+	ncall uartb_init_tx,user
+	nbranch uartb_init_dma_turn_on_clk,user
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_UART,pdata
+	store 2,core_clkoff
+	rtn
+uartb_init_dma_turn_on_clk:
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_UARTB,pdata
+	store 2,core_clkoff
+	rtn
+
+
+/*
+function name:uarta_init_baud_rate
+input:
+	pdata is uart A baud rate
+*/
+uarta_init_baud_rate:
+	store uart_baud_len,core_uart_baud
+	rtn
+
+
+/*
+function name:uartb_init_baud_rate
+input:
+	uartb_init_baud_rate is uart B baud rate
+*/
+uartb_init_baud_rate:
+	store uart_baud_len,core_uartb_baud
+	rtn
+
+/*
+function name:uarta_calc_baud_rate_config
+input:
+	temp is uart A baud rate,Decimal data
+	E.g:115200 input arg 115200,temp
+*/
+uarta_calc_baud_rate_config:
+	call uart_calc_baud_rate_config
+	branch uarta_init_baud_rate
+
+/*
+function name:uartb_calc_baud_rate_config
+input:
+	temp is uart B baud rate,Decimal data
+	E.g:115200 input arg 115200,temp
+*/
+uartb_calc_baud_rate_config:
+	call uart_calc_baud_rate_config
+	branch uartb_init_baud_rate
+
+/*
+function name:uart_calc_baud_rate_config
+input:
+	temp is uart baud rate,Decimal data
+	E.g:115200 input arg 115200,temp
+output:
+	pdata is CPU config uart baud rate
+*/
+uart_calc_baud_rate_config:
+	call uart_calc_baud_rate_config_choice_uart_clock
+	idiv temp
+	call wait_div_end
+	quotient pdata
+	rtn
+
+uart_calc_baud_rate_config_choice_uart_clock:
+	fetch 1,core_uart_clksel
+	bbit0 UART_CLOCK_SELECT_BIT,uart_calc_baud_rate_config_choice_uart_clock_crystal
+	setarg uart_clock_freq_48M
+	rtn
+uart_calc_baud_rate_config_choice_uart_clock_crystal:
+	setarg uart_clock_freq_24M
+	rtn
+
+uart_clock_select_main_freq_crystal:
+	fetch 1,core_uart_clksel
+	and pdata,UART_CLOCK_SELECT_CRYSTAL,pdata
+	store 1,core_uart_clksel
+	rtn
+
+uart_clock_select_main_freq_dpll:
+	fetch 1,core_uart_clksel
+	or pdata,UART_CLOCK_SELECT_DPLL,pdata
+	store 1,core_uart_clksel
+	rtn
+
+
+	// pdata: tx buffer start, temp: tx buffer end
+uarta_init_tx:
+	store 2,core_uart_tsaddr
+	store 2,core_uart_twptr
+	storet 2,core_uart_teaddr
+	rtn
+
+	// pdata: tx buffer start, temp: tx buffer end
+uartb_init_tx:
+	store 2,core_uartb_tsaddr
+	store 2,core_uartb_twptr
+	storet 2,core_uartb_teaddr
+	rtn
+
+	// pdata: rx buffer start, temp: rx buffer end
+uarta_init_rx:
+	store 2,core_uart_rsaddr
+	store 2,core_uart_rrptr
+	storet 2,core_uart_readdr
+	rtn
+
+	// pdata: rx buffer start, temp: rx buffer end
+uartb_init_rx:
+	store 2,core_uartb_rsaddr
+	store 2,core_uartb_rrptr
+	storet 2,core_uartb_readdr
+	rtn
+
+
+uarta_prepare_tx:
+	fetchr contus,2,core_uart_tsaddr
+	fetchr contue,2,core_uart_teaddr
+	fetchr contu,2,core_uart_twptr
+	rtn
+
+uartb_prepare_tx:
+	fetchr contus,2,core_uartb_tsaddr
+	fetchr contue,2,core_uartb_teaddr
+	fetchr contu,2,core_uartb_twptr
+	rtn
+
+uarta_prepare_rx:
+	fetchr contus,2,core_uart_rsaddr
+	fetchr contue,2,core_uart_readdr
+	fetchr contu,2,core_uart_rrptr
+	rtn
+
+uartb_prepare_rx:
+	fetchr contus,2,core_uartb_rsaddr
+	fetchr contue,2,core_uartb_readdr
+	fetchr contu,2,core_uartb_rrptr
+	rtn
+
+uarta_send:
+	storer contu,2,core_uart_twptr
+	rtn
+
+uartb_send:
+	storer contu,2,core_uartb_twptr
+	rtn
+
+uarta_rxdone:
+	storer contu,2,core_uart_rrptr
+	rtn
+
+uartb_rxdone:
+	storer contu,2,core_uartb_rrptr
+	rtn
+
+uarta_clear_current_rx:
+	call uarta_prepare_rx
+	fetch 2,core_uart_rxitems
+	iadd contu,contu
+	branch uarta_rxdone
+
+uartb_clear_current_rx:
+	call uartb_prepare_rx
+	fetch 2,core_uartb_rxitems
+	iadd contu,contu
+	branch uartb_rxdone
+
+uarta_prepare_tx_register_push:
+	call uart_register_push
+	branch uarta_prepare_tx
+
+uartb_prepare_tx_register_push:
+	call uart_register_push
+	branch uartb_prepare_tx
+
+uarta_send_register_pop:
+	call uarta_send
+	branch uart_register_pop
+
+uartb_send_register_pop:
+	call uartb_send
+	branch uart_register_pop
+
+
+uart_register_push:
+	storer contu,2,mem_contu
+	storer contus,2,mem_contue
+	storer contue,2,mem_contus
+	rtn
+
+uart_register_pop:
+	fetchr contu,2,mem_contu
+	fetchr contus,2,mem_contue
+	fetchr contue,2,mem_contus
+	rtn
+
+
+uart_copy_tx_bytes_fast:
+	deposit loopcnt
+	rtn blank
+uart_copy_tx_bytes_fast_loop:
+	increase -8,loopcnt
+	call uart_tx_8_bytes,positive
+	rtn zero
+	branch uart_copy_tx_bytes_fast_loop,positive
+	increase 8,loopcnt
+uart_copy_tx_bytes_fast_loop_four:
+	increase -4,loopcnt
+	call uart_tx_4_bytes,positive
+	rtn zero
+	branch uart_copy_tx_bytes_fast_loop_four,positive
+	increase 4,loopcnt
+	branch uart_copy_tx_bytes
+
+uart_tx_16_bytes:
+	call uart_tx_8_bytes
+uart_tx_8_bytes:
+	ifetch 8,contr
+	istore 8,contu
+	rtn
+
+uart_tx_4_bytes:
+	ifetch 4,contr
+	istore 4,contu
+	rtn
+
+uart_copy_tx_bytes:
+	deposit loopcnt
+	rtn blank
+uart_copy_tx_bytes_loop:
+	ifetch 1,contr
+	istore 1,contu
+	loop uart_copy_tx_bytes_loop
+	rtn
+
+uart_copy_rx_bytes_fast:
+	deposit loopcnt
+	rtn blank
+uart_copy_rx_bytes_fast_loop:
+	increase -8,loopcnt
+	call uart_rx_8_bytes,positive
+	rtn zero
+	branch uart_copy_rx_bytes_fast_loop,positive
+	increase 8,loopcnt
+uart_copy_rx_bytes_fast_loop_four:
+	increase -4,loopcnt
+	call uart_rx_4_bytes,positive
+	rtn zero
+	branch uart_copy_rx_bytes_fast_loop_four,positive
+	increase 4,loopcnt
+	branch uart_copy_rx_bytes
+
+uart_rx_16_bytes:
+	call uart_rx_8_bytes
+uart_rx_8_bytes:
+	ifetch 8,contu
+	istore 8,contw
+	rtn
+
+uart_rx_4_bytes:
+	ifetch 4,contu
+	istore 4,contw
+	rtn
+
+
+uart_copy_rx_bytes:
+	deposit loopcnt
+	rtn blank
+uart_copy_rx_bytes_loop:
+	ifetch 1,contu
+	istore 1,contw
+	loop uart_copy_rx_bytes_loop
+	rtn
+
+
+/* ===================== eeprom data ======================= */
+
+app_store_nvram_event:
+	jam BT_EVT_STORE_NVRAM,mem_fifo_temp
+	branch ui_ipc_send_event
+
+check_51cmd_store_reconn_info:
+check_51cmd_update_device_record:
+	bpatchx patch25_0,mem_patch25
+	fetch 1,mem_nv_data_number
+	rtn blank		// not nv data
+	call check_nvram
+	call init_device_list,zero
+	call disable_user2
+	call nvram_find_addr_from_bd_list
+write_device_record:
+	fetch 1,mem_nv_data_number
+	icopy regc
+	fetcht 2,mem_nv_data_ptr
+	storet 2,mem_list_item_ptr
+write_device_loop_find:
+	copy regc,pdata
+	branch app_store_nvram_event,blank  //EEPROM
+	increase -1,regc
+	copy temp,rega
+	ifetch 1,rega
+	fetcht 1,mem_select_list_item
+	isub temp,null
+	call set_index_finded_device,zero
+	branch write_device_loop_find0,positive
+	ifetch 1,rega
+	increase 1,pdata
+	istore 1,rega
+write_device_loop_find0:
+	fetcht 2,mem_list_item_ptr
+	increase NV_DATA_LEN,temp
+	storet 2,mem_list_item_ptr
+	branch write_device_loop_find
+
+set_index_finded_device:
+	setarg 0
+	istore 1,rega
+	fetch 1,mem_temp_reconn_record
+	istore 1,contw	
+	bne REC_3_MODE,set_index_finded_device_ble_mode
+	arg mem_link_key,regb
+set_index_find_device_MASTER_ADDR:
+	ifetch 6,contr
+	istore 8,contw
+	setarg 0
+	istore 8,contw
+	copy regb,contr
+store_rec_data_common:
+	call memcpy16
+	force 1,null
+	rtn
+
+set_index_finded_device_ble_mode:
+	beq REC_4_MODE_RANDOM_RESOLVABLE_PRIVATE_ADDRESS,set_index_finded_device_IRK
+	beq REC_4_MODE_RANDOM_NON_RESOLVABLE_PRIVATE_ADDRESS,set_index_finded_device_EDIV
+	arg mem_le_ltk,regb
+	branch set_index_find_device_MASTER_ADDR
+
+set_index_finded_device_IRK:
+	arg mem_le_irk,contr
+	call memcpy16
+store_ble_rec_data_common:
+	arg mem_le_ltk,contr
+	branch store_rec_data_common
+
+set_index_finded_device_EDIV:
+	arg mem_le_rand,contr
+	call memcpy16
+	branch store_ble_rec_data_common
+
+
+//enable user2 reconnect
+//disable user2 pairing
+nvram_find_addr_from_bd_list:
+	call disable_user
+	fetch 1,mem_nv_data_number
+	rtn blank		// not nv data
+	bpatchx patch25_1,mem_patch25
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,find_addr_from_bd_list_SPP_mode
+	rtnbit0 UI_STATE_BLE_CONNECTED
+find_addr_from_bd_list_ble_mode:
+	fetch 1,mem_le_conn_peer_addr_type
+	beq MASTER_PUBLIC_ADDR,find_addr_from_bd_list_public_device_addr
+	fetch 1,mem_le_plap+5
+	compare 0xc0,pdata,0xc0
+	branch find_addr_from_bd_list_static_addr,true
+	compare 0x40,pdata,0xc0
+	branch find_addr_from_bd_list_random_addr,true
+	branch find_addr_from_bd_list_random_non_resolvable_private_address_sc_or_legacy
+
+find_addr_from_bd_list_static_addr:
+	branch find_addr_from_bd_list_static_addr_reconnect,user2
+	fetch 1,mem_le_preq_init_key_distribution
+	bbit0 LE_INITATOR_IRK_BIT,find_addr_from_bd_list_public_device_addr
+	branch find_addr_from_bd_list_static_addr_sc_or_legacy
+
+find_addr_from_bd_list_static_addr_reconnect:
+	call find_addr_from_bd_list_public_device_addr
+	rtn user
+	branch find_addr_from_bd_list_static_addr_sc_or_legacy
+
+
+find_addr_from_bd_list_static_addr_sc_or_legacy:
+find_addr_from_bd_list_random_non_resolvable_private_address_sc_or_legacy:
+	fetch 1,mem_le_pairing_mode
+	bbit1 LE_PAIRING_MODE_SECURE_CONNECT_BIT,find_addr_from_bd_list_random_non_resolvable_private_address_sc
+	branch find_addr_from_bd_list_random_non_resolvable_private_address
+
+find_addr_from_bd_list_static_addr_sc:
+find_addr_from_bd_list_random_non_resolvable_private_address_sc:
+	fetch 6,mem_le_plap
+	store 8,mem_le_rand
+	branch find_addr_from_bd_list_random_non_resolvable_private_address
+
+
+find_addr_from_bd_list_public_device_addr:
+	jam REC_4_MODE_STATIC_ADDRESS,mem_temp_reconn_record
+	fetch 6,mem_le_plap
+	branch find_addr_from_bd_list_common
+	
+find_addr_from_bd_list_random_non_resolvable_private_address:	
+	jam REC_4_MODE_RANDOM_NON_RESOLVABLE_PRIVATE_ADDRESS,mem_temp_reconn_record
+	branch find_addr_from_bd_list_common
+
+//input :pdata EDIV and rands
+find_addr_from_bd_list_random_addr:
+	jam REC_4_MODE_RANDOM_RESOLVABLE_PRIVATE_ADDRESS,mem_temp_reconn_record
+	branch find_addr_from_bd_list_common
+	
+//input :pdata EDIV and rands
+find_addr_from_bd_list_SPP_mode:
+	jam REC_3_MODE,mem_temp_reconn_record
+	fetch 6,mem_plap
+find_addr_from_bd_list_common:
+	store 6,mem_temp_lap
+	fetch 2,mem_nv_data_ptr
+	ifetcht 1,pdata
+	pincrease 1
+	store 2,mem_list_item_ptr
+	storet 1,mem_select_list_item
+	fetch 1,mem_nv_data_number
+	icopy regc
+nvram_find_addr_from_list:
+	fetch 2,mem_list_item_ptr
+	copy pdata,rega
+	call nvram_find_addr_from_list_compare
+	rtn user
+	fetcht 2,mem_list_item_ptr
+	increase NV_DATA_LEN,temp
+	storet 2,mem_list_item_ptr
+	increase -1,temp
+	ifetch 1,temp
+	store 1,mem_select_list_item
+	increase -1,regc
+	nbranch nvram_find_addr_from_list,zero
+	fetch 1,mem_nv_data_number
+	pincrease DECREASED_ONE
+	store 1,mem_select_list_item
+	rtn
+nvram_find_addr_from_list_compare:
+	fetch 1,mem_temp_reconn_record
+	bne REC_3_MODE,find_addr_from_list_compare_ble_mode
+find_master_addr_from_list_compare:
+	arg mem_temp_reconn_record,regb
+	arg 7,loopcnt
+	call string_compare
+	branch enable_user,zero
+	rtn
+
+find_addr_from_list_compare_ble_mode:
+	beq REC_4_MODE_RANDOM_RESOLVABLE_PRIVATE_ADDRESS,find_irk_form_list_compare
+	beq REC_4_MODE_RANDOM_NON_RESOLVABLE_PRIVATE_ADDRESS,find_ediv_form_list_compare
+	branch find_master_addr_from_list_compare
+
+find_irk_form_list_compare:
+	ifetcht 1,rega
+	isub temp,null
+	nrtn zero
+	arg mem_le_prand,contw
+	arg 16,loopcnt
+	call clear_mem
+	fetch 3,mem_le_plap+3
+	store 3,mem_le_prand
+	call genernate_master_MacAddress
+	fetch 2,mem_le_aes_128+13
+	byteswap pdata,pdata
+	lshift8 pdata,temp
+	ifetch 1,contr
+	iadd temp,pdata
+	fetcht 3,mem_le_plap
+	isub temp,null
+	branch enable_user,zero
+	rtn
+
+
+genernate_master_MacAddress:
+	arg mem_le_prand ,contr
+	call load_data128
+//	arg mem_le_irk,contr
+	ifetch 1,rega
+	call load_regext
+	force 0x38,aes_ctrl
+	force 0x0,aes_ctrl
+	call wait_aes
+	arg mem_le_aes_128,contw
+	branch store_aes_result
+
+find_ediv_form_list_compare:
+	ifetcht 1,rega
+	isub temp,null
+	nrtn zero
+	copy contr,rega
+	add contr,8,regc
+	arg mem_le_rand,regb
+	arg 8,loopcnt
+	call string_compare
+	branch enable_user,zero
+	copy regc,rega
+	arg mem_le_irk,regb
+	arg 8,loopcnt
+	call string_compare
+	branch enable_user,zero
+	rtn
+
+check_nvram:
+	fetch 2,mem_nv_data_ptr
+	ifetcht 1,pdata
+	pincrease NV_DATA_LEN
+	ifetch 1,pdata
+	isub temp,null
+	rtn
+
+init_device_list:
+	fetch 1,mem_nv_data_number
+	icopy loopcnt
+	fetcht 2,mem_nv_data_ptr
+	setarg 0
+init_device_list_loop:
+	istore 1,temp
+	increase NV_DATA_LEN,temp
+	pincrease 1
+	loop init_device_list_loop
+	rtn
+
+load_device_list:
+	bpatchx patch25_2,mem_patch25
+	call enable_user2
+	call nvram_find_addr_from_bd_list
+	fetch 1,mem_state
+	setflag user,state_combkey,pdata	/* we have link key */
+	store 1,mem_state
+	nbranch clear_key_exists,user
+	add rega,10,contr
+	arg mem_link_key,contw
+	call  memcpy16
+	branch check_link_key_load
+clear_key_exists:
+	jam 0,mem_link_key_exists
+	rtn
+
+load_device_list_mode_4:
+//	fetch 9,mem_le_ediv
+//	branch clear_ltk_exists,blank
+	call enable_user2
+	call nvram_find_addr_from_bd_list
+	nbranch clear_ltk_exists,user
+	fetch 2,mem_list_item_ptr
+	add pdata,1,contr
+	arg mem_le_irk,contw
+	call  memcpy16
+	arg mem_le_ltk,contw
+	call  memcpy16
+	jam 1,mem_ltk_exists
+	rtn
+
+clear_ltk_exists:
+	jam 0,mem_ltk_exists
+	rtn
+
+
+eeprom_store_le_reconn_info:
+	jam REC_4_MODE,mem_record_bt_mode
+	branch eeprom_store_reconn_info
+eeprom_store_bd_reconn_info:
+	jam REC_3_MODE,mem_record_bt_mode
+eeprom_store_reconn_info:
+	fetch 1,mem_device_option
+	beq dvc_op_module,check_51cmd_update_device_record
+	beq dvc_op_mouse,mouse_store_remote_bdaddr
+	rtn
+	
+
+check_link_key_load:
+	fetch 8,mem_link_key
+	fetcht 8,mem_link_key+8
+	ior temp,pdata
+	rtn blank
+	jam 1,mem_link_key_exists
+	rtn
+	
+
+/* =============== GPIO CONTROL ================= */
+
+
+//temp [4:0]=GPIO number, 0-31, 
+gpio_set_wake_by_current_state:
+	bpatchx patch25_3,mem_patch25
+	set1 gpio_active_bit,temp
+	call gpio_get_bit
+	nsetflag true,gpio_active_bit,temp
+
+//temp [4:0]=GPIO number, 0-31, [7]=0, low active
+gpio_set_wake:
+	bpatchx patch25_4,mem_patch25
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	isolate0 gpio_active_bit,temp
+	and temp,0x1f,queue
+	fetch 4,mem_gpio_wakeup_low
+	qsetflag true,pdata
+	store 4,mem_gpio_wakeup_low
+	fetch 4,mem_gpio_wakeup_high
+	nqsetflag true,pdata
+	store 4,mem_gpio_wakeup_high
+	rtn
+	
+//temp [4:0]=GPIO number, 0-31, [7]=0, low active
+gpio_clr_wake:
+	bpatchx patch25_5,mem_patch25
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	isolate0 gpio_active_bit,temp
+	and temp,0x1f,queue
+	fetch 4,mem_gpio_wakeup_low
+	qset0 pdata
+	store 4,mem_gpio_wakeup_low
+	fetch 4,mem_gpio_wakeup_high
+	qset0 pdata
+	store 4,mem_gpio_wakeup_high
+	rtn
+
+gpio_config_input_nowake:
+	call gpio_clr_wake
+	branch gpio_config_input_without_wake
+
+//temp [4:0]=GPIO number, 0-31, [7]=0, low active
+gpio_config_input:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	ncall gpio_set_wake,wake
+gpio_config_input_without_wake:
+	call gpio_addr
+	setarg 0
+	isolate1 gpio_active_bit,temp
+	nsetflag true,6,pdata
+	setflag true,7,pdata
+	branch gpio_write
+
+//temp is gpio number, return true if gpio active
+gpio_get_bit:
+	arg core_gpio_in,contw
+	and temp,0x07,queue
+	rshift3 temp,pdata
+	and_into 3,pdata
+	iadd contw,contw
+	ifetch 1,contw
+	isolate1 gpio_active_bit,temp
+	branch gpio_get_bit_reverse,true
+	qisolate0 pdata
+	rtn
+gpio_get_bit_reverse:
+	qisolate1 pdata
+	rtn
+
+//temp [5:0]=GPIO number, 0-39, [7]=0, low active. set gpio to inactive state
+gpio_out_inactive:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	isolate1 gpio_active_bit,null
+	branch gpio_out_flag
+
+gpio_config_output:
+gpio_out_active:
+	sub temp,UI_BUTTON_GPIO_DISABLE,null
+	rtn zero
+	isolate0 gpio_active_bit,null
+
+//temp is gpio number,  [7]=1,set out equa true flag if gpio active
+gpio_out_flag:
+	setarg 0
+	nsetflag true,gpio_active_bit,pdata
+	ixor temp,temp
+
+//temp is gpio number,0-31, [7]=out bit value
+gpio_out:
+	call gpio_addr
+	setarg gpcfg_output_high
+	isolate1 gpio_active_bit,temp
+	setflag true,0,pdata
+	branch gpio_write
+
+//check output status
+gpio_check_active:
+	call gpio_addr
+	ifetch 1,contw
+	bbit1 0,gpio_check_active_high
+	isolate0 gpio_active_bit,temp
+	rtn
+gpio_check_active_high:
+	isolate1 gpio_active_bit,temp
+	rtn
+
+gpio_set_analog:
+	call gpio_addr
+	setarg gpcfg_no_ie
+gpio_write:
+	istore 1,contw
+	rtn
+
+gpio_set_high_impedance:
+	call gpio_addr
+	setarg gpcfg_high_impedance
+	branch gpio_write
+
+gpio_addr:
+	and temp,0x3f,pdata
+	sub pdata,19,null
+	nbranch gpio_addr_ext,positive
+	arg core_gpio_conf,contw
+gpio_addr_next:
+	iadd contw,contw
+	rtn
+gpio_addr_ext:
+	arg core_gpio_conf1,contw
+	increase -20,pdata
+	branch gpio_addr_next
+
+
+
+gpio_config_param:
+	and pdata,0xff,temp
+	rshift8 pdata,pdata
+	branch gpio_config_function_int
+
+//pdata: gpio number bit7=1, temp: function type
+gpio_config_function:
+	rtnbit0 gpio_active_bit
+gpio_config_function_int:
+	and_into 0x3f,pdata
+	sub pdata,19,null
+	nbranch gpio_config_function_int_ext,positive
+	arg core_gpio_conf,contw
+gpio_config_function_int_next:
+	iadd contw,contw
+	istoret 1,contw
+	rtn
+gpio_config_function_int_ext:
+	arg core_gpio_conf1,contw
+	increase -20,pdata
+	branch gpio_config_function_int_next
+
+
+
+//temp:gpio num
+gpio_get_config:
+	and_into 0x3f,temp
+	setarg core_gpio_conf
+	iadd temp,contr
+	ifetch 1,contr
+	rtn
+
+
+//The default as shutter and remote
+gpio_set_before_lpm:
+	arg 20,loopcnt
+	arg core_gpio_conf,contr
+setgpio_loop:
+	copy contr,contw
+	ifetch 1,contr
+	beq gpcfg_qspi_ncs,setgpio_pullup
+	beq gpcfg_qspi_sck,setgpio_pullup
+	beq gpcfg_qspi_io0,setgpio_pullup
+	beq gpcfg_qspi_io1,setgpio_pullup
+	beq gpcfg_qspi_io2,setgpio_pullup
+	beq gpcfg_qspi_io3,setgpio_pullup
+	beq gpcfg_spid_miso,setgpio_pullup
+	beq gpcfg_spid_ncs,setgpio_pullup
+	beq gpcfg_spid_sck,setgpio_pullup
+	beq gpcfg_spid_mosi,setgpio_pullup
+	beq gpcfg_spid_sdio,setgpio_pullup
+	beq gpcfg_iic_scl,setgpio_pullup
+	beq gpcfg_iic_sda,setgpio_pullup
+	beq gpcfg_input,setgpio_pullup
+setgpio_loop_end:
+	loop setgpio_loop
+	arg core_gpio_conf1+3,pdata
+	isub contr,null
+	rtn zero
+gpio_set_before_lpm_ext:
+	arg 3,loopcnt
+	arg core_gpio_conf1,contr
+	branch setgpio_loop
+	
+setgpio_pullup:
+	setarg gpcfg_pullup
+	istore 1,contw
+	branch setgpio_loop_end
+setgpio_pulldown:
+	setarg gpcfg_pulldown
+	istore 1,contw	
+	branch setgpio_loop_end
+
+/*************************************ADC*************************************/
+
+
+//mem_adc_config_flag 0:vinlpm 1:Hvin 2: GPIO
+adc_init_data:
+	bpatchx patch25_6,mem_patch25
+	setarg OTP_OFFSET_ADC_PARAM
+	arg mem_3v_adc_io_data,rega
+	arg 12,temp
+	call otpd_read_data
+	fetch 8,mem_3v_adc_io_data
+	nrtn blank
+adc_init_cal_data_default:
+	setarg 0x469a
+	store 2,mem_3v_adc_io_data
+	setarg 0xab77
+	store 2,mem_1v_adc_io_data
+	setarg 0x73d0
+	store 2,mem_3v_adc_vinlpm_data
+	setarg 0x9658
+	store 2,mem_2v_adc_vinlpm_data
+	rtn	
+
+	
+enable_adc:
+	bpatchx patch25_7,mem_patch25
+	fetchr regb,1,core_rf_ldo_cfg6
+	jam 0x3d,core_rf_ldo_cfg6
+	jam 0xaa,core_rf_ldo_cfg5
+	jam 0x0c,core_rf_ldo_en0
+	fetch 1,core_clkpll_cfg6
+	set1 7,pdata
+	store 1,core_clkpll_cfg6
+	jam 0x04,core_rf_ldo_en1
+	nop 60
+	jam 0,core_syn_en
+	jam 6,core_rx_en0
+	call read_adc_mode
+	store 1,core_gpadc_ctrl
+	jam 0x03,core_sum_ctrl
+	nop 60
+	fetch 1,core_sum_en
+	set1 7,pdata
+	store 1,core_sum_en
+	nop 1000  // 1/24ms
+	fetch 2,core_adc_sum
+	store 2,mem_adc_current_value
+	fetch 1,core_sum_en
+	set0 7,pdata
+	store 1,core_sum_en
+	jam 0,core_gpadc_ctrl
+	storer regb,1,core_rf_ldo_cfg6
+	rtn
+
+	
+read_adc_mode:	
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_VINLPM,adc_mode_vdcdc
+	beq ADC_CONFIG_HVIN,adc_adc_mode_vbat
+//	beq ADC_CONFIG_GPIO,adc_check_gpio
+adc_check_gpio:
+	fetch 1,mem_adc_channel
+	lshift3 pdata,pdata
+	or pdata,7,pdata
+	rtn
+
+adc_mode_vdcdc:
+	setarg 0x57
+	rtn
+	
+adc_adc_mode_vbat:
+	setarg 0x4f
+	rtn
+
+vdd_calculate_by_mode:
+	bpatchx patch26_0,mem_patch26
+	fetch 1,mem_adc_config_flag
+	beq ADC_CONFIG_VINLPM,vdd_calculate_vinlpm
+	beq ADC_CONFIG_HVIN,vdd_calculate_hvin
+	beq ADC_CONFIG_GPIO,vdd_calculate_io
+	rtn
+
+vdd_calculate_vinlpm:
+	setarg 100
+	store 2,mem_reference_voltage //diff
+	fetcht 2,mem_3v_adc_vinlpm_data
+	fetch 2,mem_2v_adc_vinlpm_data
+	arg 300,regc
+	branch vdd_calculate
+
+vdd_calculate_hvin:
+	setarg 100
+	store 2,mem_reference_voltage //diff
+	fetcht 2,mem_3v_adc_hvin_data
+	fetch 2,mem_2v_adc_hvin_data
+	arg 300,regc
+	branch vdd_calculate
+
+vdd_calculate_io:
+	setarg 200
+	store 2,mem_reference_voltage //diff
+	fetcht 2,mem_3v_adc_io_data
+	fetch 2,mem_1v_adc_io_data
+	arg 300,regc //max vol
+	
+vdd_calculate:
+	isub temp,rega
+	fetch 2,mem_adc_current_value
+	isub temp,pdata
+	nbranch vdd_calculate1,positive
+	fetcht 2,mem_reference_voltage
+	imul32 temp,regb
+	copy regc,pdata
+	imul32 rega,pdata
+	isub regb,pdata
+vdd_calculate2:
+	idiv rega
+	call wait_div_end
+	quotient pdata	
+	rtn
+
+vdd_calculate1:
+	copy temp,pdata
+	fetcht 2,mem_adc_current_value
+	isub temp,pdata
+	fetcht 2,mem_reference_voltage
+	imul32 temp,regb
+	copy regc,pdata
+	imul32 rega,pdata
+	iadd regb,pdata
+	branch vdd_calculate2
+
+
+/*	typedef struct
+*	{
+*		uint16 full_vol
+*		uint16 empty_vol
+*		uint16 low_vol
+*		uint16 now_vol
+*	}bat_calculate;
+*/
+//out:	pdata->bat percent
+adc_bat_percent_lowpower_out:
+	ifetch 8,rega
+	store 8,mem_pdatatemp
+	fetch 2,mem_pdatatemp
+	fetcht 2,mem_pdatatemp+2
+	isub temp,rega
+	fetch 2,mem_pdatatemp+6
+	isub temp,regb
+	fetcht 2,mem_pdatatemp+4
+	isub temp,null
+	ncall adc_set_low_power_flag,positive
+	mul32 regb,100,pdata
+	idiv rega
+	call wait_div_end
+	quotient pdata
+	call adc_set_no_power_flag,blank
+	rtn
+adc_set_low_power_flag:
+	fetch 1,mem_adc_power_flag
+	set1 0,pdata
+	store 1,mem_adc_power_flag
+	rtn
+
+adc_clear_low_power_flag:
+	fetch 1,mem_adc_power_flag
+	set0 0,pdata
+	store 1,mem_adc_power_flag
+	rtn	
+	
+adc_set_no_power_flag:
+	fetcht 1,mem_adc_power_flag
+	set1 1,temp
+	storet 1,mem_adc_power_flag
+	rtn
+
+adc_clear_no_power_flag:
+	fetcht 1,mem_adc_power_flag
+	set0 1,temp
+	storet 1,mem_adc_power_flag
+	rtn	
+
+
+
+/****************************************key scan***************************************/
+keyscan_key_init:
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_key_init_next:
+	rtn blank
+	copy pdata,loopcnt
+//	copy contr,rega
+	fetch 2,mem_keyscan_ptr
+	increase 3,pdata	//mem_key_conf0_pin
+	copy pdata,rega
+keyscan_key_init_lp1:
+	ifetcht 1, rega
+	call gpio_config_input
+	increase KEY_CONF_STRUCT_LEN,rega
+	loop keyscan_key_init_lp1
+keyscan_key_init_end:
+	rtn
+	
+keyscan_scan_key:
+	fetch 2,mem_keyscan_ptr
+	increase 3,pdata	//mem_key_conf0_pin
+	copy pdata,rega
+//	arg mem_key_conf0_pin,rega
+	force 0,regb
+	setarg 0
+	store 2,mem_key_value_temp
+keyscan_scan_key_lp1:
+	ifetcht 1, rega
+	call gpio_get_bit
+	bpatchx patch26_1,mem_patch26
+	fetch 2,mem_key_value_temp
+	copy regb,queue
+	qsetflag true,pdata
+	store 2, mem_key_value_temp
+	increase KEY_CONF_STRUCT_LEN,rega
+	increase 1,regb
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_scan_key_lp1_next:
+	ixor regb,null
+	nbranch keyscan_scan_key_lp1,zero
+	fetch 2,mem_key_value_temp
+	fetcht 2,mem_key_value_retention
+	ixor temp,null
+	rtn zero
+	enable user
+	rtn
+
+keyscan_process_lpm_before:
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_process_lpm_before_next:
+	rtn blank
+	copy pdata,loopcnt
+	fetch 2,mem_keyscan_ptr 
+	increase 3,pdata	//mem_key_conf0_pin
+	copy pdata,rega
+keyscan_process_lpm_before_lp1:
+	ifetcht 1, rega
+	call gpio_set_wake_by_current_state
+	increase KEY_CONF_STRUCT_LEN,rega
+	loop keyscan_process_lpm_before_lp1
+keyscan_process_lpm_before_end:
+	rtn
+
+keyscan_key_process:
+	arg key_scan_timer,queue
+	call timer_check
+	nrtn blank
+	setarg 0x20
+	arg key_scan_timer,queue
+	call timer_init
+	disable user
+	call keyscan_process_lpm_before
+	bpatchx patch26_2,mem_patch26
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_key_process_next:
+	rtn blank
+	call keyscan_scan_key
+	nbranch lpm_button_clean_wake_lock,user
+	call lpm_button_get_wake_lock
+	disable user
+	fetch 2,mem_key_value_temp
+	store 2,mem_key_value_temp4
+	jam 0,mem_key_value_temp6
+	force 0,queue
+keyscan_key_lp1:
+	fetch 2, mem_key_value_retention
+	rshift pdata,temp
+	storet 2,mem_key_value_retention
+	and pdata,0x01,pdata
+	fetcht 2, mem_key_value_temp4
+	and temp,0x01,rega
+	rshift temp,temp
+	storet 2,mem_key_value_temp4
+	ixor rega,null
+	ncall keyscan_send_key_data,zero
+	fetch 2,mem_key_num_ptr
+	ifetch 1,pdata
+keyscan_key_lp1_next:
+	fetcht 1, mem_key_value_temp6
+	increase 1,temp
+	storet 1, mem_key_value_temp6
+	copy temp,queue
+	ixor queue,null
+	nbranch keyscan_key_lp1,zero
+	fetch 2,mem_key_value_temp
+	store 2,mem_key_value_retention
+	rtn
+keyscan_send_key_data:
+	bpatchx patch26_3,mem_patch26
+	fetch 2,mem_keyscan_ptr
+	increase 1,pdata
+	ifetch 2,pdata
+	branch callback_func
+
+
+/*************************************pwm*************************************/
+
+//rega:clk select(0:system clk; 1:system clk undivied; 2:lpo)
+/*rega:clk select
+			0x00:select system clock 12M;
+			0x40:select undivied system clock 24M/48M;
+			0x80:select lpo clock:33K
+*/
+pwm_init:
+	fetch 1,core_clksel
+	ior rega,pdata
+	store 1,core_clksel
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_PWM,pdata
+	store 2,core_clkoff
+delay_nop100:
+	nop 100
+	rtn
+
+/*	typedef struct
+*	{
+*		uint8 gpio_num
+*		uint8 pwm_channel
+*		uint24 frequency
+*		uint8 duty_cycle   //0-100
+*	}PWM_Style;
+	addr: mem_pdatatemp
+*/
+pwm_clk_set:
+	fetch 1,core_clksel
+	bbit1 6,pwm_24m_clk_set
+	bbit1 7,pwm_33k_clk_set
+pwm_12m_clk_set:
+	setarg PWM_12MHZ
+	rtn
+pwm_24m_clk_set:
+	setarg PWM_24MHZ
+	rtn
+pwm_33k_clk_set:
+	setarg PWM_33KHZ
+	rtn
+
+
+/*
+input:
+mem_pdatatemp:
+byte[0]: pwm gpio selected
+byte[1]: pwm channel selected
+byte[2-4]: pwm frequency, little-endian
+byte[5]: duty cycle, percentage
+*/
+pwm_out_set:
+	fetcht 3,mem_pdatatemp+2
+	call pwm_clk_set
+	idiv temp
+	call wait_div_end
+	quotient temp
+	fetch 1,mem_pdatatemp+5
+	imul32 temp,pdata
+	div pdata,100
+	call wait_div_end
+	quotient rega
+	copy temp,pdata
+	isub rega,regb
+
+	fetch 1,mem_pdatatemp+1
+	call pwm_duty_cycle_set
+	fetch 1,mem_pdatatemp
+	fetcht 1,mem_pdatatemp+1
+	and_into 0x0f,temp
+	lshift8 temp,temp
+	ior temp,pdata
+	branch pwm_enable
+
+/*
+input:
+rega:pcnt ;
+regb:ncnt;
+pdata:pwm channel select.
+*/
+pwm_duty_cycle_set:
+	iforce queue
+	call pwm_duty_cycle_set_without_autoload
+	branch pwm_autoload_set
+
+/*
+input:
+queue: pwm channel
+*/
+pwm_autoload_set:	
+	fetch 1, core_pwm_autoload
+	qset1 pdata
+	store 1, core_pwm_autoload
+	fetcht 1, core_clksel
+	isolate1 7, temp
+	call delay_1clk_of_33k, true
+	qset0 pdata
+	store 1, core_pwm_autoload
+	rtn	
+
+
+delay_1clk_of_33k:
+	nop 480
+	rtn
+
+/*
+input:
+rega:pcnt ;
+regb:ncnt;
+pdata:pwm channel select.
+*/	
+pwm_duty_cycle_set_without_autoload:
+	and_into 0x0f,pdata
+	arg core_pwm_pcnt0,contw
+	mul32 pdata,4,pdata
+	iadd contw,contw
+	copy rega,pdata
+	istore 2,contw
+	copy regb,pdata
+	istore 2,contw
+	rtn
+
+
+
+
+/*
+rega: even pwm channel select & gpio select 
+regb: odd pwm channel select & gpio select 
+
+note:
+byte of even pwm channel:
+bit[7]: force to set even sync bit to 1;
+bit[6]: for even bit, reserved
+
+byte of odd pwm channel:
+bit[7]: 1: set odd sync bit to 1; 0: set odd sync bit to 0; 
+bit[6]: 1: set odd pwm init to 1; 0: set odd pwm init to 0;
+
+setarg 0x0008, rega
+0x00:pwm0 selected
+0x08:gpio select
+
+arg 0x4109, regb
+0x41:pwm1 selected and set pwm1 init bit to 1
+0x09:gpio select
+*/
+pwm_enable_in_syncmode:
+	rshift8 regb, queue
+	call pwm_init_bit_set
+	rshift8 regb, queue
+	call pwm_syncmode_set
+	rshift8 rega, queue
+	enable true
+	call pwm_syncmode_set_process
+
+	deposit rega
+	call pwm_gpio_select
+	deposit regb
+	branch pwm_enable
+
+pwm_disable_in_syncmode:
+	deposit rega
+	call pwm_disable
+	deposit regb
+	call pwm_disable
+
+	rshift8 rega, queue
+	disable true
+	call pwm_syncmode_set_process
+	rshift8 regb, queue
+	disable true
+	call pwm_init_bit_set_process
+	rshift8 regb, queue
+	disable true
+	branch pwm_syncmode_set_process
+	
+
+/*
+input:
+queue: pwm channel
+
+note:
+for even bit, 
+0: PWM0/1 work independent
+1: PWM0 output is synchronized to PWM1
+for odd bit,
+Only used when pwm0_syn_to_pwm1 =1, PWM0/1 out inverse
+*/
+pwm_syncmode_set:
+	isolate1 7, queue
+pwm_syncmode_set_process:	
+	and queue, 0x0f,queue
+	fetch 1,core_pwm_sync
+   	qsetflag true,pdata
+   	store 1,core_pwm_sync
+   	rtn
+
+/*
+input:
+queue: pwm channel
+
+note:
+for even bit, reserved
+for odd bit,only used when pwm0_syn_to_pwm1 =1, 
+0: PWM0 out high first
+1: PWM1 out high first
+*/
+pwm_init_bit_set:
+	isolate1 6, queue
+pwm_init_bit_set_process:	
+	and queue, 0x0f,queue
+	fetch 1, core_pwm_init
+	qsetflag true, pdata
+	store 1, core_pwm_init
+	rtn
+/*
+input:
+pdata: pwm channel select & gpio select 
+
+note:
+setarg 0x0108
+0x01:pwm channel select
+0x08:gpio select
+*/
+pwm_gpio_select:
+	call pwm_select_channel
+pwm_gpio_select_process:
+	lshift8 pdata,pdata
+	add queue,gpcfg_pwm_out0,temp
+	ior temp,pdata
+	branch gpio_config_param 
+
+/*
+input:
+pdata: pwm channel select & gpio select 
+
+note:
+setarg 0x0108
+0x01:pwm channel select
+0x08:gpio select
+*/
+pwm_enable:
+	enable user
+	call pwm_gpio_select
+	branch pwm_set_select
+	
+pwm_disable:
+	disable user
+	call pwm_select_channel
+	branch pwm_set_select
+
+pwm_set_select:
+	and queue, 0x0f,queue
+	fetch 1,core_pwm_en
+   	qsetflag user,pdata
+   	store 1,core_pwm_en
+	rtn
+pwm_select_channel:
+	rshift8 pdata,queue
+	and queue, 0x0f,queue
+	rtn
+
+
+/*************WATCH DOG API*************************/
+/*
+	function name:wdt_init_config 
+	input:kick dog time (pdata)
+*/
+wdt_init_config:
+	arg 0x2710,temp
+	imul32 temp,pdata
+	arg 0x1312d,temp
+	idiv temp
+	call wait_div_end
+	quotient temp
+	setarg 2048
+	isub temp,pdata
+	copy pdata,temp
+	and_into 0x0f,temp
+	storet 1,core_write_wdt2
+	copy pdata,temp
+	rshift4 temp,temp
+	storet 1,core_write_wdt
+	rtn
+
+wdt_set_enable:
+	enable user2
+	branch wdt_init_set
+wdt_set_disable:
+	disable user2
+wdt_init_set:
+	fetch 1,core_config
+   	setflag user2,3,pdata
+	store 1,core_config
+	rtn
+
+/*************NEC API*************************/
+/*
+	function name:nec_init_config 
+	input:
+		pdata is nec buffer address
+		bit[0-15]:rx start memory address
+		bit[16-31]:rx ending memory address
+		temp is nec control config
+		E.M 0x31 is 12M system clock is 2us temp
+*/
+nec61212_init:
+	arg FUN_NEC_ENABLE|FUN_NEC_CLK_DIVIDE_24,temp
+	
+
+nec_init_config:
+	store 4,core_nec_start_addr
+	store 2,core_nec_rptr
+	storet 1,core_nec_control
+	rtn
+
+//return:pdata is buffer size
+nec_check_rxbuff_size:
+	fetch 2,core_nec_rxitem
+	rtn
+/*	fetcht 2,core_nec_rptr
+	fetch 2,core_nec_wptr
+	isub temp,pdata
+	rtn positive
+	sub pdata,0,rega
+	fetcht 2,core_nec_start_addr
+	fetch 2,core_nec_end_addr
+	pincrease 1
+	isub temp,pdata
+	isub rega,pdata
+	rtn
+*/
+
+nec_prepare_read:
+	fetchr contu,2,core_nec_rptr
+	fetchr contus,2,core_nec_start_addr
+	fetchr contue,2,core_nec_end_addr
+	rtn
+
+nec_read_done:
+	storer contu,2,core_nec_rptr
+	rtn
+
+//regc is callback function
+//output
+//user is disable mean data stop
+//rege is 0 mean repeat
+//rege is no zero mean data
+nec_parse_nec61212:
+	call enable_user
+	arg 0,rege
+	call nec_check_rxbuff_size
+	beq 2,nec_parse_nec61212_check_timeout
+	sub pdata,4,null
+	rtn positive
+	call nec_prepare_read
+	ifetcht 2,contu
+	setarg NEC61212_DATA2REPEAT_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	nbranch nec_parse_nec61212_check_repeat_data,positive
+	copy regd,temp
+	setarg NEC61212_REPEAT2REPEAT_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	nbranch nec_parse_nec61212_check_repeat_data,positive
+	
+	copy regd,temp
+	setarg NEC61212_BOOT_CODE_START_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	ifetcht 2,contu
+	setarg NEC61212_BOOT_CODE_END_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	call nec_check_rxbuff_size
+	sub pdata,133,null
+	rtn positive
+	arg 32,loopcnt
+nec_parse_nec61212_data:
+	ifetcht 2,contu
+	setarg NEC61212_DATA_BIT_1_START_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	ifetcht 2,contu
+	setarg NEC61212_DATA_BIT_1_END_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	nbranch nec_parse_nec61212_add_bit1,positive
+	copy regd,temp
+	setarg NEC61212_DATA_BIT_0_END_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	nbranch nec_parse_nec61212_add_bit0,positive
+
+
+nec_parse_nec61212_error_data:
+	copy regd,temp
+	setarg NEC61212_TIMEOUT_TIME
+	isub temp,null
+	branch nec_parse_nec61212_check_timeout_cb,zero
+	branch nec_read_done
+
+nec_parse_nec61212_add_bit1:
+	set1 32,rege
+nec_parse_nec61212_add_bit0:
+	rshift rege,rege
+	loop nec_parse_nec61212_data
+	branch nec_parse_nec61212_check_stop_bit
+
+nec_parse_nec61212_check_repeat_data:
+	call nec_check_rxbuff_size
+	sub pdata,7,null
+	rtn positive
+	ifetcht 2,contu
+	setarg NEC61212_REPEAT_START_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	ifetcht 2,contu
+	setarg NEC61212_REPEAT_END_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+nec_parse_nec61212_check_stop_bit:
+	ifetcht 2,contu
+	setarg NEC61212_STOP_TIME
+	call nec_check_pulse_range_legal_default_deviation
+	branch nec_parse_nec61212_error_data,positive
+	call nec_read_done
+	copy regc,pdata
+	branch callback_func
+
+nec_parse_nec61212_check_timeout:
+	call nec_prepare_read
+	ifetcht 2,contu
+	setarg NEC61212_TIMEOUT_TIME
+	isub temp,null
+	nrtn zero
+nec_parse_nec61212_check_timeout_cb:
+	call nec_read_done
+	call disable_user
+	copy regc,pdata
+	branch callback_func
+
+
+
+//检查数据是否合法，宽度范围
+//输入:temp 当前实际检查到的时间 2us为单位
+//pdata 理论时间，us为单位
+nec_check_pulse_range_legal_default_deviation:
+	fetchr regb,1,mem_nec_decode_error_value
+
+//检查数据是否合法，宽度范围
+//输入:temp 当前实际检查到的时间 2us为单位
+//pdata 理论时间，us为单位
+//regb允许偏差值，百分比
+// |temp-pdata| / pdata < regb
+//输出:positive is 1 mean error
+//0 mean true
+nec_check_pulse_range_legal:
+	copy temp,regd
+	imul32 regb,regb		//换算成实际偏差
+	lshift temp,temp		//时间单位换算成us
+	isub temp,rega
+	ncall nec_check_pulse_range_legal_data_negative,positive
+	mul32 rega,100,pdata
+	isub regb,null
+	rtn
+
+nec_check_pulse_range_legal_data_negative:
+	sub rega,0,rega
+	rtn
+
+
+
+select_system_clk_24M:
+	jam SYSTEM_CLK_24M,mem_system_clk
+	jam clksel_dpll_24M,core_clksel
+	setarg 7499
+	store 2,core_halfslot
+calc_new_param:
+	arg 11,loopcnt
+	arg mem_param_tx_setup,rega
+calc_new_param_loop:
+	ifetch 2,rega
+	lshift pdata,pdata
+	istore 2,rega
+	increase 2,rega
+	loop calc_new_param_loop
+	rtn
+
+calc_new_le_time:
+	lshift stop_watch,stop_watch
+	rtn
+
+select_system_clk_12M_xtal:
+	jam clksel_xtal,core_clksel
+select_system_clk_12M_common:
+	jam SYSTEM_CLK_12M,mem_system_clk
+	setarg 3749
+	store 2,core_halfslot
+	rtn
+
+select_system_clk_12M_dpll:
+	jam clksel_dpll,core_clksel
+	branch select_system_clk_12M_common
+	
+
+/*****************************50HZ*****************************/
+/*
+(input):
+pdata:ac data buf start address
+temp:ac data buf length
+mem_ac_detect_gpio:choice gpio[0-19]
+mem_ac_detect_control:[7:2]ac detect clk divide number,[15:8]ac detect window (ms)
+
+(output):
+true=1,  50hz single disappear true=0,50hz detected
+
+*/
+ifdef AC_50HZ
+ac_50hz_check:
+	store 2,core_ac_saddr
+	storet 1,core_ac_buf_len
+	fetch 1,mem_ac_detect_gpio
+	arg gpcfg_ac_input,temp
+	call gpio_config_function_int
+	fetch 2,mem_ac_detect_control  
+	set1 0,pdata                 //ac detect enable[0]
+	store 2,core_ac_ctrl
+ac_50hz_check_wait:		
+	fetch 1,core_perf_status
+	isolate1 6,pdata
+	rtn 
+endif
+	
+
+
+
Index: program/rfcomm.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/rfcomm.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/rfcomm.prog	(working copy)
@@ -0,0 +1,873 @@
+
+ifdef COMPILE_RFCOMM
+rfcomm_init:
+	rtn wake
+	jam 0,mem_rfcomm_send_more_pkt
+	jam BITS9600,memRemoteRPNBitRate        
+	jam DATABITS8,memRemotePRNDataBits      
+	jam 0x11,memRemotePRNXon
+	jam 0x13,memRemotePRNXoff
+	setarg 0
+	store 3,memRemotePRNStopBit
+	store 1,mem_spp_state                  
+	jam 0,memui_reconnect_mode
+	//branch rfcomm_init_spp
+rfcomm_init_spp:
+	setarg 0
+	store 1,mem_spp_state
+	store 1,mem_remote_spp_channel
+	store 1,mem_pn_dlci
+	fetch 1,mem_rfcomm_credit_flag
+	beq CREDIT_ENABLE,rfcomm_init_spp_with_credit
+	jam 0x50,mem_credit_given
+	rtn
+
+rfcomm_init_spp_with_credit:
+	jam 0x00,mem_credit_given
+	rtn
+
+set_CR_bit:
+	or_into 0x02,temp
+	rtn
+
+
+/*below added by koufan*/
+
+/*rfcomm_send */
+
+
+
+	/*rfcomm_calculate_FCS_sabm*/
+	/*input: address in temp*/
+	/*output: FCS in pdata  */
+rfcomm_calculate_FCS_sabm:
+	copy temp,pdata
+	reverse pdata,pdata //address
+	store 1,memFCStemp3
+	force INI_TX_SABM,pdata
+	reverse pdata,pdata
+	store 1,memFCStemp2
+	force 0x01,pdata                        
+	reverse pdata,pdata
+	store 1,memFCStemp1
+	call caculate_fcs
+	copy temp,pdata                        
+	rtn
+rfcomm_calculate_FCS_ua:
+	reverse pdata,pdata //address
+	store 1,memFCStemp3
+	force   RSP_TX_UA, pdata
+	reverse pdata, pdata
+	store   1, memFCStemp2
+	force   0x01, pdata
+	reverse pdata, pdata
+	store   1, memFCStemp1
+	branch caculate_fcs
+	/* FCS return from temp                */
+rfcomm_calculate_FCS_dlci0:
+	fetch 1,mem_rfcomm_initiator
+	branch rfcomm_calculate_FCS_dlci0_res,blank
+	setarg 0x70 //FCS of initiator
+	rtn
+rfcomm_calculate_FCS_dlci0_res:
+	setarg 0xaa//FCS of responder
+	rtn
+	
+rfcomm_save_FCS_uih:
+	reverse pdata, pdata //address 
+	store 1,memFCStemp3                     /* contw distroided                    */
+	force RSP_RX_UIH,pdata 
+	call caculate_UIHdata_fcs
+	fetcht 2,mem_contw_temp
+	copy temp,contw
+	istore 1,contw                      /* save FCS for later use              */
+	copy contw,temp
+	storet 2,mem_contw_temp
+	force RSP_RX_UIH_WDATA,pdata             /* P/F =1 + RSP_RX_UIH                 */
+	call caculate_UIHdata_fcs
+	fetcht 2,mem_contw_temp
+	copy temp,contw
+	istore 1,contw             /* save FCS for later use              */
+	rtn	
+/**********************************************************************/
+/* This subroutine caculates the FCS for UIH data                     */
+/* Input:                                                             */
+/*        the address byte at memFCStemp3(bit reversed), control byte */
+/*        at pdata (not bit reversed)                                 */
+/* Output:                                                            */
+/*        pdata: the FCS                                              */
+/**********************************************************************/  
+caculate_UIHdata_fcs:
+	reverse pdata,pdata
+	store   1,memFCStemp2
+	fetch   2, memFCStemp2                     
+	lshift8 pdata,pdata
+	store 3,mem_mod2div_temp
+	arg     0x107,rega
+	arg 0xf,regb
+	call mod2div
+	xor_into     0xd7, pdata
+	invert  pdata,pdata
+	reverse pdata,pdata
+	rtn
+	
+/**********************************************************************/
+/* This subroutine caculates the FCS                                  */
+/* Input:                                                             */
+/*        the address byte at memFCStemp3, control byte at memFCStemp2*/  
+/*        lenght at memFCStemp1 (all above data are bit reversed)     */
+/* Output:                                                            */
+/*        temp: the FCS                                               */
+/**********************************************************************/     
+caculate_fcs:
+	fetch 3, memFCStemp1                    /* load 3 bytes start at memFCStemp1   */
+	store 3,mem_mod2div_temp
+	arg 0x107,rega
+	arg 0xf,regb  //24bit(memFCStemp1+..+memFCStemp3) - 9bit(rega) = 15bit
+	call mod2div
+	lshift8 pdata,pdata 
+	arg 0x7, regb  //16bit(lshift8 pdata,pdata ) - 9bit(rega) = 7bit
+	call mod2div
+	xor_into     0x2b, pdata		//0x3d
+	invert  pdata, pdata                        
+	reverse pdata, pdata                      /* FCS at pdata                        */
+	copy    pdata, temp
+	rtn
+
+mod2div:
+	arg 0,regc
+	copy regb,loopcnt
+	call right_shift_n // right shift pdata (regB)bit
+	icopy temp
+mod2div_loop:
+	//jam 1,0x1fff
+//mod2div_loop1:
+	//fetch 1,0x1fff
+	//nbranch mod2div_loop1,blank
+	copy temp,pdata
+	lshift regc,regc//quotient
+	bbit0 8, mod2div_not_enough_reduction//the high bit of 0x107
+	ixor rega,temp// temp----remainer
+	increase 1,regc// quotient
+mod2div_not_enough_reduction: //Minuend smaller than Subtrahend
+	lshift temp,temp
+	fetch 3,mem_mod2div_temp
+	increase -1,regb
+	compare 0xff,regb,0xff
+	branch mod2div_end,true
+	copy regb,loopcnt
+	call right_shift_n // right shift pdata (regb)bit
+	isolate1 0,pdata
+	setflag true,0,temp //move a new bit from Dividend(queue) into Minuend(pdata)
+	branch mod2div_loop
+mod2div_end:
+	//output:remainer in pdata
+	rshift  temp,pdata
+	rtn
+
+get_rfcomm_snd_adss:
+	fetcht 1,mem_pn_dlci
+dlci_to_address_cmd:
+	//input DLCI from temp
+	lshift2 temp,temp
+	set1 RFCOMM_ADDRESS_EXT_LEN,temp
+	fetch 1,mem_rfcomm_initiator
+	ncall set_CR_bit,blank
+	storet 1,mem_rfcomm_send_adss
+	rtn
+
+channel_to_dlci:
+	//input channel from temp
+	lshift temp,temp
+	fetch 1,mem_rfcomm_initiator
+	setflag blank,0,temp //direction in dlci
+	//output dlci to temp
+	rtn
+rfcomm_rx_process_DLCI0_sabm:
+	fetcht 1,mem_current_channel //address
+	jam 0xd7,mem_current_fcs //FCS
+	call rfcomm_send_ua
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_RFCOMM_ONLY_SABM,pdata
+	set1 L2CAP_CHANNEL_RFCOMM_ONLY_UA,pdata
+	store 1,mem_rfcomm_state
+	jam 0,mem_rfcomm_initiator
+	branch rfcomm_rx_process_end
+rfcomm_rx_process_DLCI0_ua:
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_RFCOMM_ONLY_UA,pdata
+	store 1,mem_rfcomm_state
+	branch rfcomm_rx_process_end
+
+	
+rfcomm_rx_process:
+	bpatchx patch26_4,mem_patch26
+	fetch 1,memui_reconnect_mode
+	beq NO_RECONNECTION,rfcomm_rx_process_remote_page
+	branch rfcomm_rx_process_reconn
+
+rfcomm_rx_process_remote_page:
+	fetch 2,mem_l2cap_payload_ptr
+	copy pdata,contr
+	call get_rfcomm_head_struct
+	fetch 1,mem_current_channel
+	beq 0,parse_dlci0_rp
+	branch parse_uih_rp
+parse_dlci0_rp:
+	bpatchx patch26_5,mem_patch26
+	fetch 1,mem_current_frame_type
+	beq RFCOMM_FRAME_TYPE_SABM,rfcomm_rx_process_DLCI0_sabm
+	beq RFCOMM_FRAME_TYPE_UA,rfcomm_rx_process_DLCI0_ua
+	beq RFCOMM_FRAME_TYPE_UIH,parse_DLCI0_rp_uih
+	beq RFCOMM_FRAME_TYPE_DISCONN,parse_uih_rp_spp_disconn_send_event
+	rtn
+
+
+parse_DLCI0_rp_uih:
+	fetch 2,mem_rfcomm_uih_payload_ptr
+	copy pdata,contr
+	call get_rfcomm_uih_head_struct
+	fetch 1,mem_uih_cmd_type
+	beq UIH_PARAM_NEG_CMD,parse_DLCI0_rp_uih_pn_cmd
+	beq UIH_PARAM_NEG_RES,parse_DLCI0_rp_uih_pn_res
+	beq UIH_MODEM_STATUS_CMD,parse_DLCI0_rp_uih_ms_cmd
+	beq UIH_MODEM_STATUS_RES,parse_DLCI0_rp_uih_ms_res
+	beq UIH_PARAM_CMD_REMOVE_PORT,parse_DLCI0_rp_uih_cmd_port	
+	branch rfcomm_rx_process_end
+	
+parse_DLCI0_rp_uih_pn_cmd:
+	call parse_DLCI0_rp_uih_pn_res_common
+
+	branch parse_DLCI0_rp_uih_pn_cmd_spp
+
+parse_DLCI0_rp_uih_pn_cmd_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_PN_CMD,pdata
+	set1 RFCOMM_CHANNEL_STATE_PN_RES,pdata
+	store 1,mem_spp_state
+	call rfcomm_send_param_neg_res
+	branch rfcomm_rx_process_end
+	
+parse_DLCI0_rp_uih_pn_res:
+	call parse_DLCI0_rp_uih_pn_res_common
+	branch rfcomm_rx_process_end
+
+parse_DLCI0_rp_uih_pn_res_common:
+	call get_param_payload_ptr
+	branch  get_rfcomm_prarmer_negotiation
+
+get_rfcomm_param_modem_status:
+	call get_param_payload_ptr
+	ifetch 1,contr
+	rshift3 pdata,pdata
+	store 1,mem_ms_channel
+	ifetch 1,contr
+	store 1,mem_ms_param
+	rtn
+
+
+get_rfcomm_head_struct:
+	ifetch 1,contr
+	store 1,mem_current_adss
+	rshift3 pdata,pdata
+	store 1,mem_current_channel
+	ifetch 1,contr
+	store 1,mem_current_frame_type
+get_rfcomm_current_length:
+	call get_rfcomm_length_common
+	storet 2,mem_current_length
+	copy contr,pdata
+	store 2,mem_rfcomm_uih_payload_ptr
+	rtn
+
+get_rfcomm_uih_head_struct:
+	ifetch 1,contr
+	rshift pdata,pdata
+	store 1,mem_uih_cmd_type
+	call get_rfcomm_length_common
+	storet 2,mem_uih_length
+	copy contr,pdata
+	store 2,mem_param_payload_ptr
+	rtn
+
+
+get_param_payload_ptr:
+	fetch 2,mem_param_payload_ptr
+	copy pdata,contr
+	rtn
+
+get_rfcomm_length_common:
+	ifetch 1,contr
+	copy pdata,temp
+	rshift temp,temp
+	rtnbit1 0
+	ifetch 1,contr
+	lshift3 pdata,pdata
+	lshift4 pdata,pdata
+	iadd temp,temp
+	rtn
+
+get_rfcomm_prarmer_negotiation:
+	ifetch 1,contr
+	store 1,mem_pn_dlci
+	ifetch 1,contr
+	store 1,mem_pn_credit_flow_type_info
+	ifetch 1,contr
+	store 1,mem_pn_priority
+	ifetch 1,contr
+	store 1,mem_pn_acknowledg_timer
+	ifetch 2,contr
+	store 2,mem_pn_max_frame_size
+	ifetch 1,contr
+	store 1,mem_pn_max_retrans
+	ifetch 1,contr
+	store 1,mem_remote_credits
+	rtn
+
+
+parse_DLCI0_rp_uih_ms_cmd:
+	call get_rfcomm_param_modem_status
+
+	branch parse_DLCI0_rp_uih_ms_cmd_spp
+
+parse_DLCI0_rp_uih_ms_cmd_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_RCV_MS_CMD,pdata
+	set1 RFCOMM_CHANNEL_STATE_SND_MS_RES,pdata
+	store 1,mem_spp_state
+	fetcht 1,mem_pn_dlci
+	lshift2 temp,temp
+	or_into 3,temp
+	call rfcomm_send_modem_status_res
+	jam MORE_PKT_MSC_CMD_SPP,mem_rfcomm_send_more_pkt
+	branch rfcomm_rx_process_end
+	
+parse_DLCI0_rp_uih_ms_res:
+	jam BT_EVT_SPP_CONNECTED,mem_fifo_temp
+	call ui_ipc_send_event
+	call get_rfcomm_param_modem_status
+	fetch 1,mem_ms_channel
+	sub pdata,1,null
+	branch parse_DLCI0_rp_uih_MS_RES_spp,zero
+	branch assert
+parse_DLCI0_rp_uih_ms_res_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_RCV_MS_RES,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+
+parse_DLCI0_rp_uih_cmd_port:
+	call get_param_payload_ptr
+	ifetch 1,contr
+	store 1,mem_rpn_dlci
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x000e
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_rfcomm_initiator
+	//setarg 5
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch26_6,mem_patch26
+	setarg 0x15ef
+	istore 2,contw
+	setarg 0x1191
+	istore 2,contw
+	//fetch 1,mem_pn_dlci
+	//setarg 0x0b
+	fetch 1,mem_rpn_dlci
+	istore 1,contw //DLCI
+	setarg 0x000007
+	istore 5,contw
+//	setarg 0 //max frame size
+//	istore 2,contw 
+	setarg 0x01 //max retrans
+	istore 2,contw
+//	setarg 0x00
+//	istore 1,contw // init credits
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	rtn
+
+
+
+parse_uih_rp:
+	branch parse_uih_rp_spp
+
+parse_uih_rp_spp:
+	bpatchx patch26_7,mem_patch26
+	fetch 1,mem_current_frame_type
+	beq RFCOMM_FRAME_TYPE_UA,parse_uih_rp_spp_ua
+	beq RFCOMM_FRAME_TYPE_SABM,parse_uih_rp_spp_sabm
+	beq RFCOMM_FRAME_TYPE_UIH,parse_uih_spp_uih
+	beq RFCOMM_FRAME_TYPE_UIH_CREDITS,parse_uih_spp_uih_credits
+	beq RFCOMM_FRAME_TYPE_DISCONN,parse_uih_rp_spp_disconn
+	rtn
+parse_uih_rp_spp_ua:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_UA,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+parse_uih_rp_spp_sabm:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_UA,pdata
+	set1 RFCOMM_CHANNEL_STATE_SABM,pdata
+	store 1,mem_spp_state
+	fetch 1,mem_current_adss
+	call rfcomm_calculate_FCS_ua
+	store 1,mem_current_fcs
+	call rfcomm_send_ua
+	fetch 1,mem_current_adss
+	rshift2 pdata,pdata
+	store 1,mem_pn_dlci
+	lshift2 pdata,pdata
+	set0 RFCOMM_ADDRESS_CR,pdata
+	set1 RFCOMM_ADDRESS_EXT_LEN,pdata 
+	arg mem_HIUfcs_spp,temp // mem_HIUfcs_HF_WCredits in regb++
+	storet 2,mem_contw_temp
+	call rfcomm_save_FCS_uih
+	branch rfcomm_rx_process_end
+	
+parse_uih_spp_uih_credits:
+	fetch 2,mem_rfcomm_uih_payload_ptr
+	copy pdata,contr
+	increase 1,pdata
+	store 2,mem_rfcomm_uih_payload_ptr
+	ifetch 1,contr //remote credits
+	fetcht 1,mem_remote_credits
+	iadd temp,pdata
+	store 1,mem_remote_credits
+parse_uih_spp_uih:
+	call rfcomm_increase_credit_given
+parse_uih_spp_uih_cont:
+	call get_rfcomm_snd_adss
+	call rfcomm_send_uih_without_payload
+	call spp_process_rx_data
+	branch rfcomm_rx_process_end
+
+parse_uih_rp_spp_disconn_send_event:
+	jam BT_EVT_SPP_DISCONNECTED,mem_fifo_temp
+	call ui_ipc_send_event	
+parse_uih_rp_spp_disconn:
+	call rfcomm_init_spp
+	fetch 1,mem_current_adss
+	call rfcomm_calculate_FCS_ua
+	store 1,mem_current_fcs
+	call rfcomm_send_ua
+	branch rfcomm_rx_process_end
+	
+///////////////////////////////////////////
+///////////////////////////////////////////
+///////////////////////////////////////////
+rfcomm_rx_process_reconn:
+	fetch 2,mem_l2cap_payload_ptr
+	copy pdata,contr
+	call get_rfcomm_head_struct
+	fetch 1,mem_current_channel
+	beq 0,parse_DLCI0_reconn
+	branch parse_uih_reconn
+		
+parse_DLCI0_reconn:
+	bpatchx patch27_0,mem_patch27
+	fetch 1,mem_current_frame_type
+	beq RFCOMM_FRAME_TYPE_SABM,rfcomm_rx_process_DLCI0_sabm
+	beq RFCOMM_FRAME_TYPE_UA,rfcomm_rx_process_DLCI0_ua
+	beq RFCOMM_FRAME_TYPE_UIH,parse_DLCI0_reconn_uih
+	branch rfcomm_rx_process_end
+parse_DLCI0_reconn_uih:
+	fetch 2,mem_rfcomm_uih_payload_ptr
+	copy pdata,contr
+	call get_rfcomm_uih_head_struct
+	fetch 1,mem_uih_cmd_type
+	beq UIH_PARAM_NEG_CMD,parse_DLCI0_reconn_uih_pn_cmd
+	beq UIH_PARAM_NEG_RES,parse_DLCI0_reconn_uih_pn_cmd
+	beq UIH_MODEM_STATUS_CMD,parse_DLCI0_reconn_uih_ms_cmd
+	beq UIH_MODEM_STATUS_RES,parse_DLCI0_reconn_uih_ms_res
+	branch rfcomm_rx_process_end
+
+parse_DLCI0_reconn_uih_pn_cmd:
+	call parse_DLCI0_rp_uih_pn_res_common
+	fetch 1,mem_pn_dlci
+	rshift pdata,pdata
+	fetcht 1,mem_remote_spp_channel
+	isub temp,null
+	branch parse_DLCI0_reconn_uih_pn_cmd_spp,zero
+	branch assert
+parse_DLCI0_reconn_uih_pn_cmd_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_PN_RES,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+
+parse_DLCI0_reconn_uih_ms_cmd:
+	call get_rfcomm_param_modem_status
+	fetch 1,mem_ms_channel
+	fetcht 1,mem_remote_spp_channel
+	isub temp,null
+	branch parse_DLCI0_reconn_uih_ms_cmd_spp,zero
+	branch assert
+	branch rfcomm_rx_process_end
+parse_DLCI0_reconn_uih_ms_cmd_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_RCV_MS_CMD,pdata
+	set1 RFCOMM_CHANNEL_STATE_SND_MS_RES,pdata
+	store 1,mem_spp_state
+	fetcht 1,mem_pn_dlci
+	lshift2 temp,temp
+	or_into 3,temp
+	call rfcomm_send_modem_status_res
+	branch rfcomm_rx_process_end
+	
+parse_DLCI0_reconn_uih_ms_res:
+	call get_rfcomm_param_modem_status
+	fetch 1,mem_ms_channel
+	fetcht 1,mem_remote_spp_channel
+	isub temp,null
+	branch parse_DLCI0_reconn_uih_ms_res_spp,zero
+	branch assert
+parse_DLCI0_reconn_uih_ms_res_spp:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_RCV_MS_RES,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+
+parse_uih_reconn:
+	fetch 1,mem_current_channel
+	fetcht 1,mem_remote_spp_channel
+	isub temp,null
+	branch parse_uih_reconn_spp,zero
+	branch assert
+	branch rfcomm_rx_process_end
+
+parse_uih_reconn_spp:
+	fetch 1,mem_current_frame_type
+	beq RFCOMM_FRAME_TYPE_UA,parse_uih_reconn_spp_ua
+	beq RFCOMM_FRAME_TYPE_UIH,parse_uih_spp_uih
+	beq RFCOMM_FRAME_TYPE_UIH_CREDITS,parse_uih_spp_uih_credits
+	beq RFCOMM_FRAME_TYPE_DISCONN,parse_uih_reconn_spp_disconn
+parse_uih_reconn_spp_ua:
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_UA,pdata
+	store 1,mem_spp_state
+	branch rfcomm_rx_process_end
+parse_uih_reconn_spp_sabm:
+	branch parse_uih_reconn_spp_sabm//loop
+parse_uih_reconn_spp_disconn:
+	branch parse_uih_rp_spp_disconn
+rfcomm_rx_process_end:
+	rtn
+	
+rfcomm_send_more_pkt:
+	fetch 1,mem_rfcomm_send_more_pkt
+	rtn blank
+	beq MORE_PKT_MSC_CMD_SPP,rfcomm_send_more_pkt_msc_cmd_spp
+	branch assert
+	
+rfcomm_send_more_pkt_msc_cmd_spp:
+	jam 0,mem_rfcomm_send_more_pkt
+	call l2cap_malloc_rfcomm_channel
+	arg SPP_SLAVE_CHANNEL,temp
+	fetcht 1,mem_pn_dlci
+	lshift2 temp,temp
+rfcomm_send_more_pkt_msc_cmd_spp0:
+	or_into 0x03,temp
+	arg 0xaa,rega
+	call rfcomm_send_modem_status_cmd
+	call l2cap_get_rfcomm_tx_buff
+	copy contw,contr
+	ifetch 2, contr
+	branch assert,blank
+	rtn
+
+rfcomm_send_sabm:
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x0004
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_current_adss
+	istore 1,contw //address
+	bpatchx patch27_1,mem_patch27
+	setarg 0x013f
+	istore 2,contw
+	fetch 1,mem_current_fcs
+	istore 1,contw
+	rtn
+rfcomm_send_ua:
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x0004
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_current_adss
+	istore 1,contw //address
+	bpatchx patch27_2,mem_patch27
+	setarg 0x0173
+	istore 2,contw
+	fetch 1,mem_current_fcs
+	istore 1,contw
+	rtn
+rfcomm_send_param_neg_cmd:
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x000e
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_rfcomm_initiator
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch27_3,mem_patch27
+	setarg 0x15ef
+	istore 2,contw
+	setarg 0x1183
+	istore 2,contw
+	copy temp,pdata //DLCI in temp
+	istore 1,contw
+	setarg 0x0000f0
+	istore 3,contw
+	setarg RFCOMM_MAX_FRAME_SIZE
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	setarg 0x01		//change here later
+	istore 1,contw
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	jam 0x10,mem_credit_given
+	rtn
+rfcomm_send_param_neg_res:
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x000e
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_rfcomm_initiator
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch27_4,mem_patch27
+	setarg 0x15ef
+	istore 2,contw
+	setarg 0x1181
+	istore 2,contw
+	fetch 1,mem_pn_dlci
+	istore 1,contw //DLCI
+	setarg 0x0000e0
+	istore 3,contw
+	fetch 2,mem_rfcomm_max_frame_size
+	istore 2,contw 
+	setarg 0x00 //max retrans
+	istore 1,contw
+	fetch 1,mem_rfcomm_credit_init_data
+	istore 1,contw // init credits
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	rtn
+rfcomm_send_modem_status_cmd:
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x0008
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	fetch 1,mem_rfcomm_initiator
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch27_5,mem_patch27
+	setarg 0x09ef
+	istore 2,contw
+	setarg 0x05e3
+	istore 2,contw
+	copy temp,pdata //DLCI adress
+	istore 1,contw
+	setarg 0x8d
+	istore 1,contw
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	rtn
+
+rfcomm_send_modem_status_res:
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x0008
+	istore 2,contw //l2cap len
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw//cid
+	copy temp,timeup
+	fetch 1,mem_rfcomm_initiator
+	lshift pdata,pdata
+	set1 0,pdata //ext len
+	istore 1,contw //DLCI0 address
+	bpatchx patch27_6,mem_patch27
+	setarg 0x09ef
+	istore 2,contw
+	setarg 0x05e1
+	istore 2,contw
+	copy timeup,pdata //DLCI address in temp
+	istore 1,contw
+	setarg 0x8d
+	istore 1,contw
+	call rfcomm_calculate_FCS_dlci0
+	istore 1,contw
+	rtn
+
+rfcomm_send_uih_without_payload:
+	bpatchx patch27_7,mem_patch27
+	fetch 1,mem_credit_given
+	rtn blank
+	fetch 2,core_uart_rxitems
+	nrtn blank
+	copy rega,pdata
+	store 1,mem_pdatatemp+1
+	storet 1,mem_pdatatemp
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	call l2cap_malloc_rfcomm_channel
+	call l2cap_get_rfcomm_tx_buff
+	setarg 0x05
+	istore 2,contw
+	fetch 2,mem_RFCOMM_remote_CID
+	istore 2,contw
+	fetch 1,mem_rfcomm_send_adss
+	istore 1,contw
+	setarg 0x01ff
+	istore 2,contw
+	fetch 1,mem_credit_given
+	istore 1,contw
+	fetch 1,mem_HIUfcs_SPP_WCredits
+	istore 1,contw
+	jam 0,mem_credit_given
+	rtn
+	
+rfcomm_increase_credit_given:
+	bpatchx patch28_0,mem_patch28
+	fetch 1,mem_rfcomm_credit_flag
+	rtneq CREDIT_ENABLE
+	fetch 2,mem_current_length
+	rtn blank
+	fetch 1,mem_credit_given
+	increase 1,pdata
+	store 1,mem_credit_given
+	rtn
+
+spp_process_rx_data:
+	fetch 2,mem_cb_receive_spp_data
+	branch callback_func
+
+spp_tx_rfcomm_packet:
+	bpatchx patch28_1,mem_patch28
+	//credit
+	fetch 1,mem_remote_credits
+	rtn blank
+	increase -1,pdata
+	store 1,mem_remote_credits
+	fetch 2,mem_pn_max_frame_size
+	fetcht 2,mem_current_packet_length
+	isub temp,null
+	branch ssp_tx_rfcomm_from_uart,positive
+	store 2,mem_current_packet_length
+ssp_tx_rfcomm_from_uart:
+	fetch 1,mem_credit_given
+	branch ssp_tx_rfcomm_from_uart_without_credit,blank
+	jam 1,mem_rfcomm_send_offset
+	fetch 1,mem_HIUfcs_SPP_WCredits
+	store 1,mem_rfcomm_send_fcs
+	setarg RSP_RX_UIH_WDATA
+	store 1,mem_rfcomm_send_frame_type
+	branch ssp_tx_rfcomm_from_uart_common
+ssp_tx_rfcomm_from_uart_without_credit:
+	jam 0,mem_rfcomm_send_offset
+	fetch 1,mem_HIUfcs_SPP
+	store 1,mem_rfcomm_send_fcs
+	setarg RSP_TX_UIH
+	store 1,mem_rfcomm_send_frame_type
+ssp_tx_rfcomm_from_uart_common:
+	bpatchx patch28_2,mem_patch28
+	fetch 2,mem_current_packet_length
+	sub pdata,127,null
+	branch ssp_tx_rfcomm_from_uart_common0,positive
+	fetch 1,mem_rfcomm_send_offset
+	increase 1,pdata
+	store 1,mem_rfcomm_send_offset
+ssp_tx_rfcomm_from_uart_common0:
+	call get_rfcomm_snd_adss
+	fetch 2,mem_current_packet_length
+	increase 8,pdata	//fcs + rfcommhead + l2caphead == 8
+	fetcht 1,mem_rfcomm_send_offset
+	iadd temp,rega
+	//rfcomm payload
+	call l2cap_malloc
+	store 2,mem_rfcomm_tx_buff_ptr
+	increase 4,pdata
+	store 2,mem_rfcomm_tx_payload_ptr
+	copy pdata,contw
+	fetch 1,mem_rfcomm_send_adss
+	istore 1,contw
+	fetch 1,mem_rfcomm_send_frame_type
+	istore 1,contw
+	call ssp_tx_write_length
+	call ssp_tx_write_given_credit
+	bpatchx patch28_3,mem_patch28
+	fetch 2,mem_nl_rx_data_src		//src
+	copy pdata,contu
+	fetch 2,mem_current_packet_length
+	copy pdata,loopcnt
+	call uart_copy_rx_bytes_fast
+	copy contw,temp
+	copy contu,pdata
+	store 2,mem_nl_rx_data_src
+	copy temp,contw	
+	fetch 1,mem_rfcomm_send_fcs
+	istore 1,contw
+	fetch 2,mem_rfcomm_tx_buff_ptr
+	copy pdata,contw
+	fetch 2,mem_current_packet_length
+	fetcht 1,mem_rfcomm_send_offset
+	iadd temp,pdata
+	increase 4,pdata
+	istore 2,contw
+	fetch 2,mem_rfcomm_remote_cid
+	istore 2,contw
+	jam 0,mem_credit_given	//whatever mem_credit_given is set to 0
+	fetch 2,mem_nl_rx_len_all
+	beq 0,module_hci_command_tx_spp_tx_complete
+	jam HCI_NOT_DISCARD_PACKET,mem_module_temp_nl_discard_packet
+	rtn
+
+ssp_tx_write_length:
+	bpatchx patch28_4,mem_patch28
+	fetch 2,mem_current_packet_length
+	sub pdata,0x7f,null
+	nbranch ssp_tx_write_long_packet,positive
+	lshift pdata,pdata
+	set1 0,pdata
+	istore 1,contw
+	rtn
+ssp_tx_write_long_packet:
+	fetch 2,mem_current_packet_length
+	rshift3 pdata,pdata
+	rshift4 pdata,temp
+	and_into 0x7f,pdata
+	lshift pdata,pdata
+	set0 0,pdata
+	istore 1,contw
+	istoret 1,contw
+	rtn
+ssp_tx_write_given_credit:
+	fetch 1,mem_credit_given
+	rtn blank
+	istore 1,contw
+	rtn
+
+	
+
+
+else
+
+endif
Index: program/scheduler.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/scheduler.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/scheduler.prog	(working copy)
@@ -0,0 +1,460 @@
+scheduler_process:
+	bpatchx patch28_5,mem_patch28
+	call check_51cmd
+	call app_process_bb_event
+	call process_conn_sm
+/* check the connection state sequence byte */
+	bpatchx patch28_6,mem_patch28
+ifdef SIMPLE_PAIRING
+	call sp_calc_sequence
+	call simple_pairing_sequence
+	call master_simple_paring_sequence
+endif
+//return if it is hci mode. 'cause the following is host part.
+//notify BB to tx a l2cap packet
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	//for conn to MTK 
+	call l2cap_call_proc_sigal_pending
+	call l2cap_malloc_is_fifo_full
+	nrtn blank
+	bpatchx patch28_7,mem_patch28
+//to generat a new l2cap packet
+	call process_upper_sm
+	call l2cap_send_config_req
+ifdef COMPILE_RFCOMM
+	call rfcomm_send_more_pkt//use this function to send msc_cmd after msc_rep sent
+endif
+scheduler_process0:
+	call scheduler_tx_disconnect_hid //may not used
+	bpatchx patch29_0,mem_patch29
+//	call l2cap_malloc_is_fifo_full
+//	nrtn blank
+	branch app_process_bt
+	
+scheduler_tx_disconnect_hid:
+	fetch 1,mem_CONTROL_tasks		
+	bbit1 L2CAP_DISCONNECT_INTERRUPT,L2CAP_disconnect_interrupt_req
+	bbit1 L2CAP_DISCONNECT_CONTROL,L2CAP_disconnect_control_req
+	rtn
+	
+scheduler_tx_l2cap_pkt:
+	bpatchx patch29_1,mem_patch29
+	call l2cap_malloc_is_fifo_empty
+	rtn blank //empty
+	fetch 1,mem_op
+	rtnbit1 op_txl2cap
+	call l2cap_malloc_fifo_out
+	store 2,mem_txptr
+	copy pdata,contr
+	ifetch 2,contr
+	increase 4,pdata
+	store 2,mem_tx_len
+	jam 6,mem_tx_lch//start pkt
+	bpatchx patch29_2,mem_patch29
+	fetch 2,mem_l2cap_tx_multi_offset
+	branch scheduler_tx_l2cap_start_pkt,blank
+	fetch 1,mem_op
+	rtnbit0 op_pkt_comp
+	set0 op_pkt_comp,pdata
+	store 1,mem_op
+	jam 5,mem_tx_lch//continue pkt
+	fetcht 2,mem_l2cap_tx_multi_offset
+	fetch 2,mem_txptr
+	iadd temp,pdata
+	store 2,mem_txptr
+	fetch 2,mem_tx_len
+	isub temp,pdata
+	store 2,mem_tx_len
+scheduler_tx_l2cap_start_pkt:
+	fetch 2,mem_tx_len
+	branch assert,blank
+	arg l2cap_max_pkt_len,temp //max len of dh3 pkt
+	isub temp,pdata
+	branch scheduler_Tx_l2cap_last_pkt,zero
+	nbranch scheduler_Tx_l2cap_last_pkt,positive
+	storet 2,mem_tx_len //l2cap_max_pkt_len
+	fetch 2,mem_l2cap_tx_multi_offset
+	iadd temp,pdata
+	store 2,mem_l2cap_tx_multi_offset
+	branch scheduler_Tx_l2cap_pkt_end
+scheduler_Tx_l2cap_last_pkt:
+	setarg 0
+	store 2,mem_l2cap_tx_multi_offset
+scheduler_Tx_l2cap_pkt_end:
+	fetch 1,mem_op
+	set1 op_txl2cap,pdata
+	store 1,mem_op
+	rtn
+
+scheduler_start_upper_sm:
+	fetch 1,mem_UI_profile_supported
+	bbit1 support_HID,scheduler_start_upper_sm_hid
+	jam UPPERSM_RECONN_SDP_CONN,mem_upper_sm_reconn
+	rtn
+scheduler_start_upper_sm_hid:
+	jam UPPERSM_RECONN_HID_CTRL_CONN,mem_upper_sm_reconn
+	rtn
+	
+process_upper_sm:
+	fetch 1,memui_reconnect_mode
+	nbranch process_upper_sm_reconn,blank
+process_upper_sm_remote_page:
+	fetch 1,mem_upper_sm_remote_page
+	//beq UPPERSM_RP_IDLE,process_upper_sm_rp_idle
+	rtn blank
+	//nothing to do when remote page to create a connection.
+	jam 0,mem_upper_sm_remote_page
+process_upper_sm_rp_wait:
+	rtn
+
+
+process_upper_sm_reconn:
+	bpatchx patch29_3,mem_patch29
+	fetch 1,mem_upper_sm_reconn
+	rtn blank
+	beq UPPERSM_RECONN_SDP_CONN,process_upper_sm_reconn_sdp_conn
+	beq UPPERSM_RECONN_SDP_CONN_WAIT,process_upper_sm_reconn_sdp_conn_wait
+	beq UPPERSM_RECONN_SDP_CFG,process_upper_sm_reconn_sdp_cfg
+	beq UPPERSM_RECONN_SDP_CFG_WAIT,process_upper_sm_reconn_sdp_cfg_wait
+	beq UPPERSM_RECONN_SS_SPP,process_upper_sm_reconn_ss_spp
+	beq UPPERSM_RECONN_SS_SPP_WAIT,process_upper_sm_reconn_ss_spp_wait
+	beq UPPERSM_RECONN_SDP_DISCONN,process_upper_sm_reconn_sdp_disconn
+	beq UPPERSM_RECONN_SDP_DISCONN_WAIT,process_upper_sm_reconn_sdp_disconn_wait
+	beq UPPERSM_RECONN_HID_CTRL_CONN,process_upper_sm_reconn_hid_ctrl_conn
+	beq UPPERSM_RECONN_HID_CTRL_CONN_WAIT,process_upper_sm_reconn_hid_ctrl_conn_wait
+	beq UPPERSM_RECONN_HID_CTRL_CFG,process_upper_sm_reconn_hid_ctrl_cfg
+	beq UPPERSM_RECONN_HID_CTRL_CFG_WAIT,process_upper_sm_reconn_hid_ctrl_cfg_wait
+	beq UPPERSM_RECONN_HID_INT_CONN,process_upper_sm_reconn_hid_int_conn
+	beq UPPERSM_RECONN_HID_INT_CONN_WAIT,process_upper_sm_reconn_hid_int_conn_wait
+	beq UPPERSM_RECONN_HID_INT_CFG,process_upper_sm_reconn_hid_int_cfg
+	beq UPPERSM_RECONN_HID_INT_CFG_WAIT,process_upper_sm_reconn_hid_int_cfg_wait
+	beq UPPERSM_RECONN_RFCOMM_CONN,process_upper_sm_reconn_rfcomm_conn
+	beq UPPERSM_RECONN_RFCOMM_CONN_WAIT,process_upper_sm_reconn_rfcomm_conn_wait
+	beq UPPERSM_RECONN_RFCOMM_CFG,process_upper_sm_reconn_rfcomm_cfg
+	beq UPPERSM_RECONN_RFCOMM_CFG_WAIT,process_upper_sm_reconn_rfcomm_cfg_wait
+	beq UPPERSM_RECONN_RFCOMM_SABM,process_upper_sm_reconn_rfcomm_sabm
+	beq UPPERSM_RECONN_RFCOMM_SABM_WAIT,process_upper_sm_reconn_rfcomm_sabm_wait
+	beq UPPERSM_RECONN_SPP_CMD_PN,process_upper_sm_reconn_spp_cmd_pn
+	beq UPPERSM_RECONN_SPP_CMD_PN_WAIT,process_upper_sm_reconn_spp_cmd_pn_wait
+	beq UPPERSM_RECONN_SPP_SABM,process_upper_sm_reconn_spp_sabm
+	beq UPPERSM_RECONN_SPP_SABM_WAIT,process_upper_sm_reconn_spp_sabm_wait
+	beq UPPERSM_RECONN_SPP_CMD_MS,process_upper_sm_reconn_spp_cmd_ms
+	beq UPPERSM_RECONN_SPP_CMD_MS_WAIT,process_upper_sm_reconn_spp_cmd_ms_wait
+process_upper_sm_reconn_wait:
+	rtn
+process_upper_sm_reconn_sdp_conn:
+	call upper_sm_send_sdp_conn //return n-user if sending failed
+	jam UPPERSM_RECONN_SDP_CONN_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	store 1,mem_sdp_state
+	rtn
+process_upper_sm_reconn_sdp_cfg:
+	jam UPPERSM_RECONN_SDP_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_sdp_state
+	rtnbit1 L2CAP_CHANNEL_STATE_SND_CFG_REQ
+	jam UPPERSM_RECONN_SDP_CFG,mem_upper_sm_reconn
+	call upper_sm_send_sdp_cfg //return n-user if sending failed
+	jam UPPERSM_RECONN_SDP_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_sdp_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_sdp_state
+	rtn
+process_upper_sm_reconn_ss_spp:
+	call l2cap_malloc_is_fifo_empty
+	nrtn blank
+	call upper_sm_send_ss_spp
+	jam UPPERSM_RECONN_SS_SPP_WAIT,mem_upper_sm_reconn
+	rtn
+process_upper_sm_reconn_sdp_disconn:
+	call upper_sm_send_sdp_disconn
+	jam UPPERSM_RECONN_SDP_DISCONN_WAIT,mem_upper_sm_reconn
+	rtn
+process_upper_sm_reconn_hid_ctrl_conn:
+	call upper_sm_send_hid_ctrl_conn
+	jam UPPERSM_RECONN_HID_CTRL_CONN_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	store 1,mem_hid_control_state
+	rtn
+process_upper_sm_reconn_hid_ctrl_cfg:    
+	call upper_sm_send_hid_ctrl_cfg
+	jam UPPERSM_RECONN_HID_CTRL_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_hid_control_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_hid_control_state
+	rtn
+process_upper_sm_reconn_hid_int_conn:
+	call upper_sm_send_hid_int_conn
+	jam UPPERSM_RECONN_HID_INT_CONN_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	store 1,mem_hid_interrupt_state
+	rtn
+process_upper_sm_reconn_hid_int_cfg:    
+	call upper_sm_send_hid_int_cfg
+	jam UPPERSM_RECONN_HID_INT_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_hid_interrupt_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_hid_interrupt_state
+	rtn
+process_upper_sm_reconn_rfcomm_conn:
+	call upper_sm_send_rfcomm_conn
+	jam UPPERSM_RECONN_RFCOMM_CONN_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_CONN_REQ,pdata
+	store 1,mem_rfcomm_state
+	rtn
+process_upper_sm_reconn_rfcomm_cfg: 
+	call upper_sm_send_rfcomm_cfg
+	jam UPPERSM_RECONN_RFCOMM_CFG_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_STATE_SND_CFG_REQ,pdata
+	store 1,mem_rfcomm_state
+	rtn
+process_upper_sm_reconn_rfcomm_sabm:
+	call upper_sm_send_rfcomm_sabm
+	jam UPPERSM_RECONN_RFCOMM_SABM_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_rfcomm_state
+	set1 L2CAP_CHANNEL_RFCOMM_ONLY_SABM,pdata
+	store 1,mem_rfcomm_state
+	rtn
+process_upper_sm_reconn_spp_cmd_pn: 
+	call upper_sm_send_spp_cmd_pn
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_PN_CMD,pdata
+	store 1,mem_spp_state
+	jam UPPERSM_RECONN_SPP_CMD_PN_WAIT,mem_upper_sm_reconn
+	rtn
+process_upper_sm_reconn_spp_sabm:   
+	call upper_sm_send_spp_sabm
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_SABM,pdata
+	store 1,mem_spp_state
+	jam UPPERSM_RECONN_SPP_SABM_WAIT,mem_upper_sm_reconn
+	fetch 1,mem_remote_spp_channel //address in pdata
+	lshift3 pdata,pdata
+	or_into 3,pdata
+	arg mem_HIUfcs_SPP,temp // mem_HIUfcs_spp_WCredits in regb++
+	storet 2,mem_contw_temp
+	branch rfcomm_save_FCS_uih
+process_upper_sm_reconn_spp_cmd_ms: 
+	call upper_sm_send_spp_cmd_ms
+	fetch 1,mem_spp_state
+	set1 RFCOMM_CHANNEL_STATE_SND_MS_CMD,pdata
+	store 1,mem_spp_state
+	jam UPPERSM_RECONN_SPP_CMD_MS_WAIT,mem_upper_sm_reconn
+	rtn
+
+process_upper_sm_reconn_sdp_conn_wait:
+	fetch 1,mem_sdp_state
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES
+	jam UPPERSM_RECONN_SDP_CFG,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_sdp_cfg_wait:
+	fetch 1,mem_sdp_state
+	rtnne L2CAP_CHANNEL_SETUP_COMPLETE
+	jam UPPERSM_RECONN_SS_SPP ,mem_upper_sm_reconn
+process_upper_sm_reconn_ss_spp_wait:
+	fetch 1,mem_message_to_uppersm
+	rtnne RECIEVE_SS_REASULT_HF
+	jam 0,mem_message_to_uppersm
+	jam UPPERSM_RECONN_SDP_DISCONN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_sdp_disconn_wait:
+	fetch 1,mem_sdp_state
+	nrtn blank
+	fetch 1,mem_UI_profile_supported
+	bbit1 support_HID,process_upper_sm_reconn_setup_hid
+	bbit1 support_SPP,process_upper_sm_reconn_setup_rfcomm
+	branch process_upper_sm_reconn_termination
+process_upper_sm_reconn_hid_ctrl_conn_wait:
+	fetch 1,mem_hid_control_state
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES
+	jam UPPERSM_RECONN_HID_CTRL_CFG,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_hid_ctrl_cfg_wait:
+	fetch 1,mem_hid_control_state
+	rtnne L2CAP_CHANNEL_SETUP_COMPLETE
+	jam UPPERSM_RECONN_HID_INT_CONN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_hid_int_conn_wait:  
+	fetch 1,mem_hid_interrupt_state
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES
+	jam UPPERSM_RECONN_HID_INT_CFG,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_hid_int_cfg_wait:  
+	fetch 1,mem_hid_interrupt_state
+	rtnne L2CAP_CHANNEL_SETUP_COMPLETE
+	fetch 1,mem_UI_profile_supported
+	bbit1 support_SPP,process_upper_sm_reconn_setup_rfcomm
+	branch process_upper_sm_reconn_termination
+process_upper_sm_reconn_rfcomm_conn_wait: 
+	fetch 1,mem_rfcomm_state
+	rtnbit0 L2CAP_CHANNEL_STATE_CONN_RES
+	jam UPPERSM_RECONN_RFCOMM_CFG,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_rfcomm_cfg_wait:
+	fetch 1,mem_rfcomm_state
+	rtnne L2CAP_CHANNEL_SETUP_COMPLETE
+	jam UPPERSM_RECONN_RFCOMM_SABM,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_rfcomm_sabm_wait:  
+	fetch 1,mem_rfcomm_state
+	rtnne L2CAP_CHANNEL_RFCOMM_DLCI0_OPENED
+	fetch 1,mem_UI_profile_supported
+	bbit1 support_SPP,process_upper_sm_reconn_setup_spp
+	branch process_upper_sm_reconn_termination
+process_upper_sm_reconn_spp_cmd_pn_wait:
+	fetch 1,mem_spp_state
+	rtnbit0 RFCOMM_CHANNEL_STATE_PN_RES
+	jam UPPERSM_RECONN_SPP_SABM,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_spp_sabm_wait:
+	fetch 1,mem_spp_state
+	rtnbit0 RFCOMM_CHANNEL_STATE_UA
+	jam UPPERSM_RECONN_SPP_CMD_MS ,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_spp_cmd_ms_wait: 
+	fetch 1,mem_spp_state
+	rtnne RFCOMM_CHANNEL_SETUP_COMPLETE
+	branch process_upper_sm_reconn_termination
+
+process_upper_sm_reconn_setup_hid:
+	jam UPPERSM_RECONN_HID_CTRL_CONN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+
+process_upper_sm_reconn_setup_rfcomm:
+	jam UPPERSM_RECONN_RFCOMM_CONN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+process_upper_sm_reconn_setup_spp:
+	jam UPPERSM_RECONN_SPP_CMD_PN,mem_upper_sm_reconn
+	branch process_upper_sm_reconn
+
+
+
+process_upper_sm_reconn_termination:
+	jam 0,mem_upper_sm_reconn
+	rtn
+upper_sm_send_sdp_conn:
+	bpatchx patch29_4,mem_patch29
+	call l2cap_malloc_signal_channel
+	setarg PSM_SDP
+	copy pdata,temp
+	setarg L2CAP_SDP_channel
+	copy pdata,timeup
+	branch ML2CAP_send_signal_connect_req
+	
+upper_sm_send_sdp_cfg:
+	bpatchx patch29_5,mem_patch29
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_SDP_remote_CID
+	copy pdata,temp
+	branch ML2CAP_send_signal_config_req
+	
+upper_sm_send_sdp_disconn:
+	bpatchx patch29_6,mem_patch29
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_SDP_remote_CID
+	copy pdata,temp
+	arg L2CAP_SDP_channel,timeup
+	call ML2CAP_send_signal_disconn_req
+	fetch 1,mem_sdp_state
+	set0 L2CAP_CHANNEL_STATE_RCV_CFG_RES ,pdata
+	store 1,mem_sdp_state
+	rtn
+//service search
+upper_sm_send_ss_spp:
+	bpatchx patch29_7,mem_patch29
+	call l2cap_malloc_sdp_channel
+	call sdp_send_spp_request
+	branch MSDP_send_req_done
+
+upper_sm_send_rfcomm_conn:
+	bpatchx patch2a_0,mem_patch2a
+	call l2cap_malloc_signal_channel
+	setarg PSM_RFCOMM
+	copy pdata,temp
+	setarg L2CAP_RFCOMM_channel
+	copy pdata,timeup
+	branch ML2CAP_send_signal_connect_req
+
+upper_sm_send_rfcomm_cfg:
+	bpatchx patch2a_1,mem_patch2a
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_rfcomm_remote_cid
+	copy pdata,temp
+	branch ML2CAP_send_signal_config_req
+
+upper_sm_send_hid_ctrl_conn:
+	bpatchx patch2a_2,mem_patch2a
+	call l2cap_malloc_signal_channel
+	setarg PSM_HID_control
+	copy pdata,temp
+	setarg L2CAP_HID_Control_channel
+	copy pdata,timeup
+	branch ML2CAP_send_signal_connect_req
+
+upper_sm_send_hid_ctrl_cfg:
+	bpatchx patch2a_3,mem_patch2a
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_hid_ctrl_remote_cid
+	copy pdata,temp
+	branch ML2CAP_send_signal_config_req
+
+upper_sm_send_hid_int_conn:
+	bpatchx patch2a_4,mem_patch2a
+	call l2cap_malloc_signal_channel
+	setarg PSM_HID_interrupt
+	copy pdata,temp
+	setarg L2CAP_HID_interrupt_channel
+	copy pdata,timeup
+	branch ML2CAP_send_signal_connect_req
+	
+upper_sm_send_hid_int_cfg:
+	bpatchx patch2a_5,mem_patch2a
+	call l2cap_malloc_signal_channel
+	fetch 2,mem_hid_int_remote_cid
+	copy pdata,temp
+	branch ML2CAP_send_signal_config_req
+
+upper_sm_send_rfcomm_sabm:
+	bpatchx patch2a_6,mem_patch2a
+	call l2cap_malloc_rfcomm_channel
+	//force 3,temp //address
+	jam 3,mem_current_adss
+	jam 0x1c,mem_current_fcs
+	call rfcomm_send_sabm
+	jam 1,mem_rfcomm_initiator
+	rtn
+
+upper_sm_send_spp_cmd_pn:
+	bpatchx patch2a_7,mem_patch2a
+	call l2cap_malloc_rfcomm_channel
+	fetcht 1,mem_remote_spp_channel
+	call channel_to_dlci
+	storet 1,mem_pn_dlci
+	branch rfcomm_send_param_neg_cmd
+
+upper_sm_send_spp_sabm:
+	bpatchx patch2b_0,mem_patch2b
+	call l2cap_malloc_rfcomm_channel
+	fetcht 1,mem_pn_dlci
+	call dlci_to_address_cmd
+	call rfcomm_calculate_FCS_sabm //sabm fcs use once only,not need to save
+	store 1,mem_current_fcs
+	fetcht 1,mem_pn_dlci
+	call dlci_to_address_cmd
+	storet 1,mem_current_adss
+	branch rfcomm_send_sabm
+
+upper_sm_send_spp_cmd_ms:
+	bpatchx patch2b_1,mem_patch2b
+	call l2cap_malloc_rfcomm_channel
+	fetcht 1,mem_pn_dlci
+	call dlci_to_address_cmd //address in temp
+	branch rfcomm_send_modem_status_cmd
+
+
+
Index: program/sdp.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/sdp.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/sdp.prog	(working copy)
@@ -0,0 +1,1206 @@
+/**********************************************************************/
+/* Subroutine: sdp_process                                         */
+/* Process Service Discovery Request                                  */
+/* Called from L2CAP, check PDUID, branch to different req processings*/
+/*                                                                    */  
+/* Input:       mem_L2CAP_Rx_payload                                  */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length	      */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process:
+	bpatchx patch2b_2,mem_patch2b
+	fetch 2,mem_l2cap_payload_ptr
+	iforce contr
+//	ifetchr regb,1,contr				/* PDUID */
+//	storer regb,1,mem_sdp_pduid
+	ifetch 1,contr
+	copy pdata,regb
+	store 1,mem_sdp_pduid
+	ifetch 2,contr
+	store 2,mem_sdp_transactionid			/* save transaction id */
+	ifetch 1,contr				/* higher byte of parameter length */
+	lshift8 pdata,timeup				
+	ifetch 1,contr				/* lower byte of parameter length */
+	iadd timeup,timeup				/* parameter length stored in "timeup" */
+	bpatchx patch2b_3,mem_patch2b
+	copy contr,temp
+	arg 4,loopcnt
+	arg mem_sdp_handle_list,contw
+	call memset0
+	copy temp,contr 
+	deposit regb						/* PDUID  */
+	beq SDP_ERROR_RES,sdp_process_error_res
+	beq SDP_SEARCH_REQ,sdp_process_ss_req
+	beq SDP_SEARCH_RES,sdp_process_ss_res
+	beq SDP_ATTRIBUTE_REQ,sdp_process_sa_req
+	beq SDP_ATTRIBUTE_RES,sdp_process_sa_res
+	beq SDP_SEARCHATTRIB_REQ,sdp_process_ssa_req
+	beq SDP_SEARCHATTRIB_RES,sdp_process_ssa_res
+	branch sdp_insufficient_resource
+
+/**********************************************************************/
+/* ss_req			                              */
+/* Processing Service Search Request                                  */
+/* Call: ask_serviceclassid, empty_response                     */
+/*                                                                    */  
+/* Input:       mem_L2CAP_Rx_payload pointer in contr                 */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length	      */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process_ss_req:
+	bpatchx patch2b_4,mem_patch2b
+	call ask_serviceclassid
+	compare 1,temp,0xff
+	branch ss_empty_rsp,true
+	compare 0xff,temp,0xff
+	branch sdp_invalid_request_syntax,true
+
+	ifetch 2,contr				/* max aservice record count */
+	store 2,mem_sdp_record_maxcnt
+	increase -2,timeup
+
+	increase -1,timeup				/* continuation state 1 byte (0) */
+	nbranch sdp_invalid_pdu_size,zero		/* invalid pdu size */
+	arg mem_sdp_uuid_search_ptr,timeup
+	ifetch 2,timeup
+	rtn blank
+	call search_all_uuid
+	call l2cap_get_sdp_tx_payload			/* put the pointer to Tx buffer  */
+	force 3,pdata						/* PDUID 3, Service Search Response */
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid			/* write transaction id */
+	istore 2,contw
+	lshift2 queue,pdata
+	add pdata,5,pdata
+	add pdata,5,regc
+	byteswap pdata,pdata
+	istore 2,contw							/* write parLength */
+	deposit queue
+	byteswap pdata,pdata
+	istore 2,contw							/* write TotSrvRecCount */
+	istore 2,contw							/* write CurSrvRecCount */
+	arg mem_sdp_handle_list,contr
+	copy queue,loopcnt
+	branch ss_req_blank,zero
+ss_req_loop:	
+	ifetch 4,contr
+	istore 4,contw
+	loop ss_req_loop
+ss_req_blank:	
+	force 0,pdata
+	istore 1,contw							/* continuation state */
+	deposit regc
+	store 2,mem_sdp_tx_pkt_length
+//	branch assert,blank
+	rtn
+
+/**********************************************************************/
+/* sa_req			                              */
+/* Processing Service Attribute Request                               */
+/* Call: ask_attributeid, empty_response (if 3 stored attr.     */
+/* not asked) or answer_attributelist                              */  
+/* Input:       mem_L2CAP_Rx_payload pointer in contr                 */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length	      */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process_sa_req:
+	bpatchx patch2b_5,mem_patch2b
+	ifetch 4,contr				/* service record handle */
+	store 4,mem_sdp_record_handle	 
+	increase -4,timeup
+	call sdp_store_maxbyte
+	store 2,mem_sdp_attribute_maxbyte
+	increase -2,timeup
+	call dataelementtype6		/* result: data size stored in rega */
+	branch sdp_invalid_request_syntax,zero
+	compare 5,rega,0xff  // length
+	//branch sa_req_all,true
+	branch sa_judge_wholerange,true
+sa_isnot_wholerange:
+	arg mem_sdp_attrib_list,contw
+	force 0,queue
+	branch sa_req_loop
+sa_judge_wholerange:
+	ifetch 1,contr
+	bne SDP_ATTRIBUTE_RANGE,sdp_invalid_request_syntax
+	ifetch 2,contr
+	nbranch sa_judge_wholerange_false1,blank
+	ifetch 1,contr
+	bne 0xff,sa_judge_wholerange_false2
+	ifetch 1,contr
+	bne 0xff,sa_judge_wholerange_false3		//also exist potential bug because mem_sdp_attrib_list length is only 7f
+	branch sa_req_all
+sa_judge_wholerange_false3:
+	increase -5,contr
+	branch sa_isnot_wholerange
+sa_judge_wholerange_false2:
+	increase -4,contr
+	branch sa_isnot_wholerange
+sa_judge_wholerange_false1:
+	increase -3,contr
+	branch sa_isnot_wholerange
+sa_req_loop:	
+	ifetch 1,contr
+	beq SDP_ATTRIBUTE_ID, sa_req_one_id
+	beq SDP_ATTRIBUTE_RANGE, sa_req_range
+sa_req_range:
+	ifetch 2, contr
+	istore 2, contw
+	increase 1,queue
+	byteswap pdata,regb
+	ifetch 2, contr
+	byteswap pdata,pdata
+sa_req_range_id_increase:	
+	increase 1, regb
+	isub regb, null
+	nbranch sa_req_range_id_finish,positive
+	copy pdata, regc
+	byteswap regb,pdata
+	istore 2, contw
+	increase 1,queue
+	copy regc, pdata
+	branch sa_req_range_id_increase
+sa_req_range_id_finish:
+	increase -5,timeup
+	increase -5,rega
+	branch sa_req_check_next_id
+sa_req_one_id:
+	ifetch 2,contr
+	istore 2,contw //save the attribute id in mem_sdp_attrib_list
+	increase 1,queue
+	increase -3,timeup
+	increase -3,rega
+sa_req_check_next_id:	
+	nbranch sdp_invalid_request_syntax,positive
+	nbranch sa_req_loop,zero //another attribute 
+	increase -1,timeup
+	nbranch sdp_invalid_request_syntax,zero
+	
+	call l2cap_get_sdp_tx_payload
+	increase 10,contw
+	arg mem_sdp_attrib_list,rega
+sa_req_handle_attributelist_next:
+	copy queue,pdata
+	branch sa_req_handle_attributelist_end,blank
+	ifetch 2,rega
+	branch sa_req_handle_attributelist_end,blank
+	iforce regb /* regb is the attribute ID */
+	fetch 4,mem_sdp_record_handle	
+	iforce temp
+	call search_handle_attrib
+	copy contr,pdata
+	branch sa_req_handle_attributelist_notfound,blank
+	increase -3,contr
+	ifetch 3,contr
+	istore 3,contw
+	call sdp_data_len
+	iforce loopcnt	
+	call memcpy
+sa_req_handle_attributelist_notfound:
+	increase 2,rega
+	increase -1, queue
+	branch sa_req_handle_attributelist_next
+
+sa_req_handle_attributelist_end:	
+	arg SDP_ATTRIBUTE_RES,rega
+	call ssa_req_range_lastfreg_common
+	fetch 2,mem_sdp_tx_pkt_length	
+	beq 11,sa_empty_rsp
+	branch  ssa_req_range_attrbutes_length_no_continue
+
+
+sdp_store_continue_common:
+	ifetch 1, contr
+	beq 0, sdp_store_continue_0byte
+	beq 1,sdp_store_continue_1byte
+	beq 2, sdp_store_continue_2byte
+sdp_store_continue_0byte:	
+	increase -1,timeup				/* continuation state byte (0) */
+	branch sdp_store_continue_end
+sdp_store_continue_1byte:
+	ifetch 1, contr
+	increase -2,timeup				/* continuation state byte (1) */
+	branch sdp_store_continue_end
+sdp_store_continue_2byte:
+	ifetch 2, contr
+	byteswap pdata,pdata
+	increase -3,timeup				/* continuation state byte (2) */
+sdp_store_continue_end:
+	store 2, mem_sdp_continue_byte	
+	rtn
+	
+sa_req_all:	
+	increase -5,timeup
+	call sdp_store_continue_common
+	nbranch sdp_invalid_pdu_size,zero
+	fetcht 4,mem_sdp_record_handle		
+	call search_handle
+	nbranch sdp_invalid_service_record_handle,zero
+	copy contr,rega
+	call l2cap_get_sdp_tx_payload
+	copy rega,contr
+	increase 3,contw//arg mem_SDP_Tx_payload+3,contw
+	copy contr,timeup //sdp start pointer
+	call sdp_get_data
+	copy pdata, rega //sdp total length
+//	fetchr regb,2,mem_sdp_continue_byte
+	fetch 2,mem_sdp_continue_byte
+	copy pdata,regb
+	copy rega,pdata
+	isub regb,regb //total_length - continue_byte in regb
+	fetch 2, mem_sdp_attribute_maxbyte
+	isub regb, null
+	nbranch sa_req_all_fragment_sdp, positive
+	// the last fragment
+	disable user
+	fetch 2, mem_sdp_continue_byte
+	branch sa_req_all_fisrt_fragment,blank
+	iadd timeup, contr //set the read pointer
+	increase 3,regb //include the total length field, 3 bytes
+	copy regb, loopcnt
+	copy loopcnt, pdata
+	increase 3, pdata
+	byteswap pdata,pdata
+	istore 2, contw
+	copy loopcnt, pdata
+	byteswap pdata,pdata
+	istore 2, contw
+	branch sa_req_all_answer_attributelist_full_loop
+sa_req_all_fisrt_fragment:
+	add rega,6,loopcnt
+	branch sa_req_all_parlength_continue_byte, user
+	byteswap loopcnt,pdata
+	branch sa_req_all_parlength_continue_byte_end
+sa_req_all_parlength_continue_byte:
+	copy loopcnt, pdata
+	increase 2, pdata
+	byteswap pdata,pdata
+sa_req_all_parlength_continue_byte_end:
+	istore 2,contw				/* ParLength */
+	increase -3,loopcnt
+	byteswap loopcnt,pdata			
+	istore 2,contw				/* AttrListByteCount */
+	copy timeup,contr
+	branch sa_req_all_answer_attributelist_full_loop
+sa_req_all_fragment_sdp:
+	enable user
+//	fetchr rega,2,mem_sdp_attribute_maxbyte
+	fetch 2,mem_sdp_attribute_maxbyte
+	copy pdata,rega
+	copy rega,loopcnt
+	fetch 2, mem_sdp_continue_byte
+	branch sa_req_all_fisrt_fragment,blank
+	iadd timeup, contr
+	copy rega,pdata
+	increase 5,pdata
+	byteswap pdata,pdata	
+	istore 2, contw
+	copy rega,pdata
+	byteswap pdata,pdata
+	istore 2, contw
+sa_req_all_answer_attributelist_full_loop:
+	call memcpy
+	nbranch sa_req_all_last_frag_continue, user
+	force 2,pdata
+	istore 1,contw
+	copy contr, pdata
+	isub timeup, pdata
+	byteswap pdata,pdata
+	istore 2, contw   // continuation length
+	branch sa_req_all_frag_end
+sa_req_all_last_frag_continue:
+	force 0,pdata
+	istore 1,contw
+sa_req_all_frag_end:	
+	arg SDP_ATTRIBUTE_RES,rega
+	branch ssa_req_range_common	
+	
+/**********************************************************************/
+/* ssa_req                          		      */
+/* Processing Service Search Attribute Request                        */
+/* Call: ask_serviceclassid, ask_attributeid, empty_response */
+/*       or answer_attributelist                                   */  
+/* Input:       contr                                                 */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length             */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process_ssa_req:
+	bpatchx patch2b_6,mem_patch2b
+	call ask_serviceclassid
+	compare 0xff,temp,0xff
+	branch sdp_invalid_request_syntax,true
+	call sdp_store_maxbyte
+	store 2,mem_sdp_attribute_maxbyte
+	increase -2,timeup
+	call dataelementtype6
+	arg mem_sdp_attrib_list,contw
+	force 0,queue
+ssa_req_loop:	
+	ifetch 1,contr 
+	beq SDP_ATTRIBUTE_RANGE,ssa_req_range
+	ifetch 2,contr 
+	istore 2,contw //save the attribute id in mem_sdp_attrib_list
+	increase 1,queue
+	increase -3,timeup
+	increase -3,rega
+	nbranch sdp_invalid_request_syntax,positive
+	nbranch ssa_req_loop,zero
+	increase -1,timeup
+	nbranch sdp_invalid_request_syntax,zero
+	call l2cap_get_sdp_tx_payload
+	increase 13,contw//arg mem_SDP_Tx_payload+13,contw
+	fetch 2,mem_sdp_uuid_search_ptr
+	iforce regc
+	arg mem_sdp_attrib_list,rega
+ssa_req_attributelist_next:	
+	ifetch 2,rega
+	branch ssa_req_attributelist_end,blank
+	iforce regb						/* regb is the attribute ID */
+	call search_attrib
+	branch ssa_req_attributelist_notfound,blank
+	increase -3,contr
+	ifetch 3,contr
+	istore 3,contw
+	call sdp_data_len
+	iforce loopcnt	
+  	call memcpy
+ssa_req_attributelist_notfound:
+	increase 2,rega
+	branch ssa_req_attributelist_next
+
+ssa_req_attributelist_end:
+	call ssa_req_range_lastfreg
+	fetch 2,mem_sdp_tx_pkt_length	
+	beq 14,ssa_empty_rsp
+	call ssa_req_range_attrbutes_length_no_continue
+	branch ssa_req_range_attrbutes_length_no_continue
+
+
+sdp_store_maxbyte:	
+	ifetch 2,contr				 
+	byteswap pdata,pdata
+	increase -3,pdata	
+	arg 200,temp
+	isub temp,null
+	nrtn positive
+	setarg 200
+	rtn
+	
+
+ssa_req_range:
+	increase 4,contr
+	increase -5,timeup
+	increase -5,rega
+	nbranch sdp_invalid_request_syntax,zero
+	call 	sdp_store_continue_common
+	nbranch sdp_invalid_pdu_size,zero
+	arg mem_sdp_uuid_search_ptr,timeup
+	call search_all_uuid  
+	deposit queue
+	branch ssa_empty_rsp,blank
+	store 1,mem_handle_humber
+//	storer regb,2,mem_sdp_all_length
+	copy regb,pdata
+	store 2,mem_sdp_all_length
+	arg 0,queue
+	arg 0,rega
+	call l2cap_get_sdp_tx_payload
+	increase 10,contw 
+ssa_req_range_find_handle:
+	call ssa_req_range_get_length	
+	nbranch assert,user
+	copy contr,timeup
+	copy pdata,regc
+	iadd rega,rega
+//	copy pdata,rega 
+//	fetch 2,mem_sdp_all_length
+	fetch 2,mem_sdp_continue_byte
+	copy pdata,regb
+	branch ssa_req_range_first_freg,blank
+ssa_req_range_later_freg_with_continue:
+	copy rega,pdata
+	isub regb,regb //total_length - continue_byte in rega
+	branch ssa_req_range_next_handle,zero
+	nbranch ssa_req_range_next_handle,positive
+	fetch 2, mem_sdp_attribute_maxbyte
+	isub regb, null
+	branch ssa_req_range_maxbyte_with_continue,zero
+	nbranch ssa_req_range_maxbyte_with_continue, positive  
+	
+ // data length < =maxbyte 
+ssa_req_range_send_not_maxbyte:
+ 	copy regb,loopcnt
+	call ssa_req_range_maxbyte_with_continue_cpy
+ 	fetch 1,mem_handle_humber
+	increase 1,queue
+	isub queue,null
+	branch ssa_req_range_lastfreg,zero
+	branch ssa_req_range_freg_with_continue
+	
+ssa_req_range_maxbyte_with_continue:
+ 	copy pdata,loopcnt
+ 	call ssa_req_range_maxbyte_with_continue_cpy
+ 	branch ssa_req_range_freg_with_continue
+ 	
+ssa_req_range_maxbyte_with_continue_cpy:
+	increase -3,contw   
+	copy loopcnt,temp
+ 	copy regc,pdata
+	isub regb,pdata
+	iadd timeup,contr
+ 	branch memcpy
+
+ssa_req_range_next_handle:
+	fetch 1,mem_handle_humber
+	increase 1,queue
+	isub queue,null
+	rtn zero //
+	branch ssa_req_range_find_handle
+
+ssa_req_range_get_length:	
+	call disable_user
+	arg mem_sdp_handle_list,contr
+	lshift2 queue,pdata
+	iadd contr,contr
+	ifetcht 4, contr
+	call search_handle
+	nrtn zero
+	call sdp_data_len
+	branch enable_user
+
+ssa_req_range_first_freg:
+	fetch 2, mem_sdp_attribute_maxbyte
+	isub rega, null
+	nbranch ssa_req_range_firstfreg_maxbyte_with_continue,positive
+	copy rega,loopcnt
+	copy loopcnt,temp
+	copy timeup,contr
+	call memcpy
+	fetch 2,mem_sdp_all_length
+	isub rega,null
+	branch ssa_req_range_freg_no_continue,zero
+ssa_req_range_firstfreg_not_maxbyte_with_continue:
+	call ssa_req_range_freg_with_continue
+	branch ssa_req_range_attrbutes_length
+	
+ssa_req_range_freg_no_continue:
+	call ssa_req_range_lastfreg
+	branch ssa_req_range_attrbutes_length
+	
+ssa_req_range_lastfreg:
+	arg SDP_SEARCHATTRIB_RES,rega  //PUD ID
+ssa_req_range_lastfreg_common:
+	force 0,pdata
+	istore 1,contw
+	call ssa_req_range_common
+	fetcht 2,mem_sdp_tx_pkt_length
+	increase -5,temp
+	byteswap temp,pdata
+	istore 2, contw
+	increase -3,temp
+	byteswap temp,pdata
+	istore 2, contw  //attribute length
+	rtn
+
+ssa_req_range_firstfreg_maxbyte_with_continue:
+	copy pdata,loopcnt
+	copy loopcnt,temp
+	copy timeup,contr
+	call memcpy
+	call ssa_req_range_freg_with_continue
+ssa_req_range_attrbutes_length:	
+	setarg 0x36
+	istore 1,contw
+	fetch 2,mem_sdp_all_length
+	byteswap pdata,pdata
+	istore 2, contw 
+	rtn	
+
+ssa_req_range_attrbutes_length_no_continue:	
+	setarg 0x36
+	istore 1,contw
+	increase -3,temp
+	byteswap temp,pdata
+	istore 2, contw 
+	rtn	
+
+ssa_req_range_freg_with_continue:
+	arg SDP_SEARCHATTRIB_RES,rega  //PUD ID
+	setarg 2
+	istore 1,contw	
+	fetch 2,mem_sdp_continue_byte
+	iadd temp,temp
+	byteswap temp,pdata
+	istore 2,contw
+	call ssa_req_range_common
+	fetcht 2,mem_sdp_tx_pkt_length
+	increase -5,temp
+	byteswap temp,pdata
+	istore 2, contw
+	increase -5,temp
+	byteswap temp,pdata
+	istore 2, contw 
+	rtn	
+
+ssa_req_range_common:
+	fetch 2,mem_sdp_tx_payload_ptr
+	isub contw,pdata
+	sub pdata,0,pdata
+	store 2,mem_sdp_tx_pkt_length
+	call l2cap_get_sdp_tx_payload 
+	copy rega,pdata  //PUD ID
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid
+	istore 2,contw
+	rtn
+
+
+
+
+/**********************************************************************/
+/* ssa_res			                      */
+/* Processing Service Search Attribute Response                       */
+/* Call: dataelementtype6, attribute_reading                    */
+/* Input:       contr                                                 */
+/* Output:      mem_sdp_record_handle,mem_sdp_search_failed           */
+/*                                                                    */
+/**********************************************************************/     
+sdp_process_ssa_res:
+sdp_process_ss_res:
+sdp_process_sa_res:
+sdp_process_error_res:
+	rtn
+/*
+sdp_process_ss_res:
+	bpatchx patch2b_7,mem_patch2b
+	ifetch 2,contr
+	ifetch 2,contr
+	byteswap pdata,pdata
+	bne 1,assert
+	ifetch 4,contr
+	store 4,mem_sdp_record_handle
+	fetchr regc,2,mem_sdp_l2capch_ptr
+	add regc,offset_lc_state,regc
+	ifetch 1,regc
+	set1 L2CAP_CHANNEL_STATE_RECV_SEARCH_RES,pdata
+	istore 1,regc
+	rtn
+	
+sdp_process_sa_res:
+	bpatchx patch2c_0,mem_patch2c
+	fetchr regc,2,mem_sdp_l2capch_ptr
+	add regc,offset_lc_state,regc
+	ifetch 1,regc
+	set1 L2CAP_CHANNEL_STATE_RECV_ATTRIB_RES,pdata
+	istore 1,regc
+	copy temp,contr
+	ifetch 2,contr
+	call search_rfcomm_cn
+	store 1,mem_profile_channel	
+	rtn
+*/
+
+				    
+
+sdp_invalid_service_record_handle:		
+	setarg 0x0200
+	store 2,mem_sdp_error_code
+	branch sdp_error_response
+sdp_invalid_pdu_size:				
+	setarg 0x0400
+	store 2,mem_sdp_error_code
+	branch sdp_error_response
+sdp_insufficient_resource:			
+	setarg 0x0600
+	store 2,mem_sdp_error_code
+	branch sdp_error_response
+sdp_invalid_request_syntax:			
+	setarg 0x0300
+	store 2,mem_sdp_error_code
+sdp_error_response:	
+	call l2cap_get_sdp_tx_payload
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid			
+	istore 2,contw
+	setarg 0x0200					
+	istore 2,contw
+	fetch 2,mem_sdp_error_code			
+	istore 2,contw
+	jam  7,mem_sdp_tx_pkt_length
+	rtn
+
+
+//store uuid in mem_sdp_uuid_search_ptr,
+//return temp 0xff if wrong 
+ask_serviceclassid:  
+	arg 0,regb
+	force 0,temp					/* use "temp" to mark syntax error or to mark 128 bit uuid */
+	arg mem_sdp_uuid_search_ptr,contw
+	call dataelementtype6
+	branch asksrv_error,zero
+classidloop:
+	increase 1,regb
+	ifetch 1,contr
+	increase -1,rega
+	increase -1,timeup
+	compare 0x18,pdata,0xf8			/* 5 MSB: b00011: uuid */
+	nbranch asksrv_error,true
+	compare 0x04,pdata,0x07			/* 3 LSB: b100 128 bits uuid */
+	nbranch cmp032,true
+	force 1,temp					/* mark it as 128 bit uuid */
+skip2bytes:
+	ifetch 1,contr
+	increase -1,rega	
+	increase -1,timeup
+	bne 0x00, frstbwrong
+	ifetch 1,contr
+	increase -1,rega	
+	increase -1,timeup
+	beq 0x00, cmpuuid
+	branch scndbwrong
+frstbwrong:  
+	increase 1,contr
+	increase -1,rega	
+	increase -1,timeup
+scndbwrong:  
+	increase 2,contr				/* skip 2 bytes, first 2 bytes already wrong */
+	increase -2,rega	
+	increase -2,timeup
+	compare 0x00,temp,0xff                        /* 128 bits or 32 bits ? */
+	branch loopornot,true
+	increase 12,contr				/* skip 12 bytes, first 2 bytes already wrong */
+	increase -12,rega	
+	increase -12,timeup
+	branch loopornot
+cmp032:
+	compare 0x02,pdata,0x07			/* 3 LSB: b010 32 bits uuid */
+	nbranch cmp016,true
+	branch skip2bytes			
+cmp016:
+	compare 0x01,pdata,0x07			/* 3 LSB: b001 16 bit uuid */
+	nbranch asksrv_error,true
+cmpuuid:
+	increase -2,rega
+	increase -2,timeup
+	ifetch 2,contr				/* higher order byte */
+	sub regb,4,null
+	branch uuidsize,zero //max store uuids =3 
+	istore 2,contw
+uuidsize:
+	compare 0x00,temp,0xff			/* is this 128 bits uuid */
+	branch loopornot,true
+	copy contr,temp
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x10, wrong12b
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x80, wrong12b
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x00, wrong12b
+	ifetch 1,contr
+	bne 0x80, wrong12b
+	ifetch 1,contr
+	bne 0x5f, wrong12b
+	ifetch 1,contr
+	bne 0x9b, wrong12b
+	ifetch 1,contr
+	bne 0x34, wrong12b
+	ifetch 1,contr
+	beq 0xfb, chck12dn
+wrong12b:
+	copy temp,contr  
+wrong12b1:
+	increase 12,contr				/* skip 12 bytes */
+	force 0x00,queue
+	force 0x00,temp
+	branch chck12dn
+
+chck12dn:
+	increase -12,timeup
+	increase -12,rega
+loopornot:
+	force 0x00,temp
+	compare 0x00,rega,0xff
+	nbranch classidloop,true
+	force 0,pdata
+	istore 2,contw			/* end list with null */
+	rtn
+asksrv_error:
+	arg 0xff,temp
+	rtn
+
+/**********************************************************************/
+/* Subroutine: dataelementtype6                                    */
+/* Parse Data Element Sequence, obtain the data size                  */
+/* Input:  SDP Rx Buf Pointer in contr, parameter count in timeup     */
+/* Output: data length in rega, data pointer in contr             */
+/*         and  parameter count in timeup, return with zero flag set: */
+/*         syntax error                                               */
+/**********************************************************************/     
+dataelementtype6:
+	bpatchx patch2c_1,mem_patch2c
+	ifetch 1,contr
+	increase -1,timeup
+	compare 0x30,pdata,0xf8			/* 5 MSB: b00110: type 6 */
+	nbranch dsize_error,true
+	compare 0x07,pdata,0x07			/* 3 LSB: b111: 32 bits */
+	branch dsize32,true
+	compare 0x06,pdata,0x07			/* 3 LSB: b110: 16 bits */
+	branch dsize16,true
+	compare 0x05,pdata,0x07			/* 3 LSB: b101: 8 bits */
+	nbranch dsize_error,true
+//	ifetchr rega,1,contr				/* data length in reg A */
+	ifetch 1,contr
+	copy pdata,rega
+	increase -1,timeup
+	branch dsize
+dsize32:
+	increase 2,contr				 
+	increase -2,timeup
+dsize16:
+	ifetch 2,contr
+	byteswap pdata,rega
+	increase -2,timeup
+dsize:
+	force 0x01,pdata
+	rtn
+dsize_error:
+	force 0x00,pdata
+	rtn
+
+/**********************************************************************/
+/* Subroutine: sa_empty_rsp                                      */
+/* Send empty response                                                */
+/*                                                                    */
+/* Input:       mem_sdp_pduid, mem_sdp_transactionid                  */
+/* Output:      mem_SDP_Tx_payload, mem_SDP_Tx_pkt_length             */
+/*                                                                    */
+/**********************************************************************/     
+ss_empty_rsp:
+	setarg SDP_SEARCH_RES
+	store 1, mem_sdp_pduid
+	branch empty_response
+sa_empty_rsp:
+	setarg SDP_ATTRIBUTE_RES
+	store 1, mem_sdp_pduid
+	branch empty_response
+ssa_empty_rsp:
+	setarg SDP_SEARCHATTRIB_RES
+	store 1, mem_sdp_pduid
+empty_response:
+	call l2cap_get_sdp_tx_payload			/* empty attribute list */
+//	fetchr regb,1,mem_sdp_pduid				/* PDUID */
+//	istorer regb,1,contw
+	fetch 1,mem_sdp_pduid
+	copy pdata,regb
+	istore 1,contw 
+	fetch 2,mem_sdp_transactionid			/* copy back transaction id */
+	istore 2,contw
+	setarg 0x0500
+	istore 2, contw
+	compare SDP_ATTRIBUTE_RES,regb,0xff			 
+	branch fullsearch,true
+	compare SDP_SEARCHATTRIB_RES,regb,0xff			 
+	branch fullsearch,true
+	setarg 0x000000
+	istore 5,contw
+	branch outempty
+
+fullsearch:					/* pduid must be 5 or 7 */
+	setarg 0x350200
+	istore 5,contw
+outempty:
+	jam 10,mem_sdp_tx_pkt_length
+	rtn
+
+//return length in pdata(whole element ,include header and data ), contr not change
+sdp_data_len:
+	call store_contw
+	call store_contr
+	call sdp_get_data
+	call get_contw
+	call get_contr
+	copy temp,pdata
+	rtn
+
+//return data length in pdata, contr is data pionter,return length in temp(whole element ,include header and data )
+sdp_get_data:
+	ifetch 1,contr
+	and pdata,0x7,loopcnt
+	rshift3 pdata,pdata
+	bne 0,sdp_get_data_type_not0
+sdp_get_data_type0:	
+	force 1,pdata
+	force 1,temp
+	rtn
+	
+sdp_get_data_type_not0_sizeindex01234:
+	call left_shift_n
+	add pdata,1,temp  //add header length
+	rtn
+sdp_get_data_type_not0:
+	deposit loopcnt
+	sub pdata,4,null
+	branch sdp_get_data_type_not0_sizeindex01234,positive
+	beq 5,sdp_get_data_type_not0_sizeindex5
+	beq 6,sdp_get_data_type_not0_sizeindex6
+	beq 7,sdp_get_data_type_not0_sizeindex7
+	rtn
+	
+sdp_get_data_type_not0_sizeindex5:
+	ifetch 1,contr
+	add pdata,2,temp  //add header length
+	rtn
+sdp_get_data_type_not0_sizeindex6:
+	ifetch 2,contr
+	byteswap pdata,pdata
+	add pdata,3,temp  //add header length
+	rtn
+sdp_get_data_type_not0_sizeindex7:
+	ifetch 2,contr	
+	byteswap pdata,pdata
+	ifetcht 2,contr	
+	byteswap temp,temp
+	lshift16 temp,temp
+	iadd temp,pdata
+	add pdata,5,temp  //add header length
+	rtn
+
+/* find with uuids
+input uuids pionter in timeup
+return handles in mem_sdp_handle_list; handles number in queue if found 
+return regb all length*/
+search_all_uuid:
+	bpatchx patch2c_2,mem_patch2c
+	force 0,queue
+	arg 0,regb
+	arg mem_sdp_handle_list,contw
+search_all_uuid_llop:
+	ifetch 2,timeup
+ 	rtn blank
+	call search_uuid
+	copy queue,pdata
+	rtneq SDP_MAX_HANDLE_NUMBER 
+	increase 2,timeup
+ 	branch search_all_uuid_llop
+	
+search_uuid:
+//	arg 0,regb
+	iforce regc
+//	force 0,queue
+	fetch 2, mem_ui_uuid_table
+	iforce contr
+search_uuid_next:
+	copy queue,pdata
+	rtneq SDP_MAX_HANDLE_NUMBER   
+	disable user
+	ifetch 1,contr
+	rtn blank
+	iforce loopcnt
+search_uuid_loop:	
+	ifetch 2,contr
+	isub regc,null
+	nbranch search_uuid_not_found,zero
+	enable user					// uuid match
+search_uuid_not_found:
+	loop search_uuid_loop
+	ifetcht 4,contr					// get handle 
+	copy contr,rega
+	nbranch search_uuid_nomatch,user
+	arg mem_sdp_handle_list,contr
+	arg SDP_MAX_HANDLE_NUMBER,loopcnt 
+search_uuid_check_same_handle:
+	ifetch 4,contr
+	branch search_uuid_store_handle,blank
+	isub temp,null
+	branch search_uuid_nomatch,zero
+	loop search_uuid_check_same_handle
+	rtn 
+search_uuid_store_handle:
+	istoret 4,contw
+	increase 1,queue
+	copy rega,contr
+	call sdp_data_len
+	iadd regb,regb
+	iadd contr,contr		 
+	branch search_uuid_next
+search_uuid_nomatch:	
+	copy rega,contr
+	call sdp_get_data
+	iadd contr,contr			// next paragraph 
+	branch search_uuid_next
+
+/* temp is handle,
+return zero  if found
+return data pointer in contr 
+*/
+search_handle:
+	bpatchx patch2c_3,mem_patch2c
+	fetch 2,mem_ui_uuid_table
+	iforce contr
+search_handle_loop:	
+	ifetch 1,contr
+	branch disable_zero,blank
+	lshift pdata,pdata
+	iadd contr,contr
+	ifetch 4,contr
+	isub temp,null
+	rtn zero
+	deposit contw
+	store 2,mem_contw
+	storet 8,mem_temp
+	call sdp_get_data
+	iadd contr,contr
+	copy contr,pdata
+	fetcht 2,mem_contw
+	copy temp,contw
+	fetcht 8,mem_temp
+	copy pdata,contr
+	branch search_handle_loop
+
+/**
+* input regb and regc.regb is the attribute ID and regc is UUID.
+* set contr if find attribute or 0 if not
+*/
+search_attrib:
+	bpatchx patch2c_4,mem_patch2c
+	fetch 2,mem_ui_uuid_table
+	iforce contr
+search_attrib_next:
+	ifetch 1,contr
+	branch search_attrib_end, blank
+	iforce loopcnt
+search_attrib_loop:	
+	ifetch 2,contr
+	isub regc,null						/* regc is UUID, compare it */
+	branch search_attrib_found_uuid,zero
+	loop search_attrib_loop
+	increase 4,contr
+	call sdp_get_data
+	iadd contr,contr			/* next paragraph */
+	branch search_attrib_next	
+search_attrib_found_uuid:
+	increase -1,loopcnt
+	lshift loopcnt,pdata
+	iadd contr,contr
+	increase 4,contr
+	call sdp_get_data
+	iadd contr,timeup					/* attribute list end */
+search_attrib_loop_attribs:	
+	increase 1,contr
+	ifetch 2,contr
+	isub regb,null
+	//force 0x1,pdata,zero
+//	setflag zero, 0,pdata
+//	copy timeup, timeup
+	branch disable_blank,zero			/* attribute found */
+	call sdp_data_len
+	iadd contr,contr
+	deposit timeup
+	isub contr,null
+	branch search_attrib_end, zero /*attribute end, not found the attribute, return contr = 0*/
+	branch search_attrib_loop_attribs	
+search_attrib_end:
+	force 0,contr
+	force 0,pdata
+	rtn
+	
+
+//search the attribute according the record handle
+//record handle in temp, attribute in regb
+//set the contr to zero if not found
+search_handle_attrib:	
+	bpatchx patch2c_5,mem_patch2c
+	fetch 2,mem_ui_uuid_table
+	iforce contr
+search_handle_attrib_next:
+	ifetch 1,contr
+	branch search_handle_attrib_end, blank
+	lshift pdata,pdata
+	iadd contr, contr
+	ifetch 4,contr
+	isub temp,null						/* regc is UUID, compare it */
+	branch search_handl_attrib_found_handle,zero
+	call sdp_get_data
+	iadd contr,contr			/* next paragraph */
+	branch search_handle_attrib_next	
+search_handl_attrib_found_handle:
+	call sdp_get_data
+	iadd contr,timeup					/* attribute list end */
+search_handle_attrib_loop_attribs:	
+	increase 1,contr
+	ifetch 2,contr
+	isub regb,null
+	rtn zero							/* attribute found */
+	call sdp_data_len
+	iadd contr,contr
+	deposit timeup
+	isub contr,null
+	branch search_handle_attrib_end, zero /*attribute end, not found the attribute, return contr = 0*/
+	branch search_handle_attrib_loop_attribs
+search_handle_attrib_end:
+	force 0,contr
+	rtn	
+
+
+//enable user if find rfcomm channel number, pdata is channel number
+search_rfcomm_cn:
+	arg 0x0400,regb  // attribute protocol edscriptor list
+	call search_handl_attrib_found_handle
+	arg 0x0300,regb  // uuid rfcomm
+	call search_uuid_in_data
+	nrtn user
+	sub rega,3,null
+	branch disable_user,positive
+	ifetch 1,contr
+	bne 0x08,disable_user
+	ifetch 1,contr
+	rtn
+	
+ //input timeup is lenth
+ //input contr is data ptr
+ //return contr is end of uuid; enable user if found uuid
+search_uuid_in_data:
+	bpatchx patch2c_6,mem_patch2c
+	call sdp_get_data
+	copy pdata,rega
+search_uuid_in_data_loop:	
+	ifetch 1,contr
+	and pdata,0x7,loopcnt
+	rshift3 pdata,pdata
+	sub pdata,3,null
+	branch search_uuid_in_data_found_uuid,zero
+	copy loopcnt,pdata
+	beq 5,search_uuid_in_data_found_element_index5
+	beq 6,search_uuid_in_data_found_element_index6
+	beq 7,search_uuid_in_data_found_element_index7
+	increase -1,contr
+	call sdp_get_data
+	iadd contr,contr
+	copy rega,pdata
+	isub temp,rega
+	branch disable_user,zero
+	branch search_uuid_in_data_loop
+	
+search_uuid_in_data_found_element_index5:
+	increase -2,rega
+	increase 1,contr
+	branch search_uuid_in_data_loop
+search_uuid_in_data_found_element_index6:
+	increase -3,rega
+	increase 2,contr
+	branch search_uuid_in_data_loop
+search_uuid_in_data_found_element_index7:
+	increase -5,rega
+	increase 4,contr
+	branch search_uuid_in_data_loop		
+	
+search_uuid_in_data_found_uuid:
+	increase -1,rega
+	copy loopcnt,pdata
+	beq 1,search_uuid_in_data_type_uuid_16
+	beq 2,search_uuid_in_data_type_uuid_32
+	beq 4,search_uuid_in_data_type_uuid_128
+	branch disable_user 
+search_uuid_in_data_type_uuid_128:
+	increase -12,rega
+search_uuid_in_data_type_uuid_32:
+	ifetch 2,contr
+	increase -2,rega
+search_uuid_in_data_type_uuid_16:
+	ifetch 2,contr
+	isub regb,null
+	branch enable_user,zero
+	increase -2,rega
+	branch disable_user,zero
+	branch search_uuid_in_data_loop
+
+/*
+//rega:l2cap len ,mem_search_uuid:uuid to search
+sdp_send_search_req:
+	call l2cap_malloc_sdp_req
+	setarg SDP_SEARCH_REQ
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid_local
+	byteswap pdata,pdata
+	istore 2,contw
+	increase -5,rega
+	byteswap rega,rega
+	//istorer rega,2,contw
+	copy rega,pdata
+	istore 2,contw
+	setarg 0x0335
+	istore 2,contw
+	setarg 0x19
+	istore 1,contw
+	fetch 2,mem_search_uuid
+	istore 2,contw
+	setarg 0x0008
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	rtn
+
+//rega:l2cap len
+sdp_send_attribute_req:
+	call l2cap_malloc_sdp_req
+	setarg SDP_ATTRIBUTE_REQ
+	istore 1,contw
+	fetch 2,mem_sdp_transactionid_local
+	byteswap pdata,pdata
+	istore 2,contw
+	increase -5,rega
+	byteswap rega,rega
+//	istorer rega,2,contw
+	copy rega,pdata
+	istore 2,contw
+	fetch 4,mem_sdp_record_handle
+	istore 4,contw
+	setarg 0x2c01
+	istore 2,contw
+	setarg 0x0535
+	istore 2,contw
+	setarg 0x0a
+	istore 1,contw
+	setarg 0
+	istore 2,contw
+	setarg -1
+	istore 2,contw
+	setarg 0
+	istore 1,contw
+	rtn
+*/	
+	
+
+sdp_send_spp_request:
+	call l2cap_get_sdp_tx_payload
+	copy pdata,contw
+	setarg 6//Search Attr Req
+	istore 1,contw
+	setarg sdp_tid_spp					
+	istore 2,contw
+	setarg 0x0f00 //length15
+	istore 2,contw
+	setarg 0x1a0535
+	istore 3,contw
+	setarg 0x0111
+	lshift16 pdata,pdata //UUID
+	istore 4,contw
+	setarg 0x2600 //max return len
+	istore 2,contw
+	setarg 0x0335
+	istore 2,contw
+	setarg 0x0009
+	istore 2,contw
+	setarg 0x0004
+	istore 2,contw
+	jam 0x14,mem_sdp_tx_pkt_length
+	rtn
+
Index: program/security.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/security.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/security.prog	(working copy)
@@ -0,0 +1,2139 @@
+
+ifdef SECURE_CONNECTION
+	
+function_g2:
+	bpatchx patch2c_7,mem_patch2c
+	jam 80,mem_AES_CMAC_data_length
+	arg memdat,contw
+	arg mem_le_srand,contr
+	call memcpy16
+	arg mem_sc_pubkey_local_x_256,contr
+	call memcpy32
+	arg mem_le_pubkey_remote_x_256,contr
+	call memcpy32
+	call inverse_memdat	
+	arg mem_le_mrand,contr
+	call store_inverse_k	
+	call function_AES_CMAC	
+
+	arg mem_AES_CMAC_temp,contw
+	call load_inverse_result
+	setarg 1000000
+	copy pdata,rega
+	fetch 4,mem_AES_CMAC_temp
+	idiv rega
+	call wait_div_end
+	remainder pdata
+	store 4,mem_gkey
+//call ice_break
+	rtn
+
+function_f6_eb:
+	jam 65,mem_AES_CMAC_data_length
+	arg memdat,contw
+	call store_addr_common_a
+	call store_addr_common_b
+	fetch 3,mem_le_pres+1
+	istore 3,contw
+//	arg mem_le_r,contr
+//	call memcpy16	
+	call get_r
+	
+	arg mem_le_mrand,contr
+	call memcpy16
+	arg mem_le_srand,contr
+	call memcpy16
+	call inverse_memdat
+	arg mem_le_mackey ,contr
+	arg mem_AES_CMAC_k,contw
+	call memcpy16
+//	call p_store_inverse_k	
+	branch function_AES_CMAC
+//	arg mem_AES_CMAC_temp,contw
+//	branch p_load_inverse_result
+
+get_r:
+	fetch 4,mem_le_tk
+	istore 4,contw
+	call memset0_4
+	branch memset0_8
+
+function_f6_ea:
+	bpatchx patch2d_0,mem_patch2d
+	jam 65,mem_AES_CMAC_data_length
+	arg memdat,contw
+	call store_addr_common_b
+	call store_addr_common_a
+	fetch 3,mem_le_preq+1
+	istore 3,contw
+//	arg mem_le_r,contr
+//	call memcpy16	
+	call get_r
+	arg mem_le_srand,contr
+	call memcpy16
+	arg mem_le_mrand,contr
+	call memcpy16
+	call inverse_memdat
+	arg mem_le_mackey ,contr
+	arg mem_AES_CMAC_k,contw
+	call memcpy16
+//	call p_store_inverse_k	
+	call function_AES_CMAC
+	arg mem_AES_CMAC_temp,contw
+	branch load_inverse_result
+
+function_f5:
+	jam 32,mem_AES_CMAC_data_length
+	arg mem_le_dhkey_256 ,contr
+	arg memdat,contw
+	call memcpy32
+	call inverse_memdat
+	arg mem_le_slat,contr
+	call store_inverse_k	
+	call function_AES_CMAC
+	arg mem_AES_CMAC_k,contw
+	call store_aes_result
+	arg 1,temp
+	call function_f5_common
+	arg mem_le_ltk,contw
+	call load_inverse_result
+	arg 0,temp
+	call function_f5_common
+	arg mem_le_mackey,contw
+//	branch p_load_inverse_result
+	branch store_aes_result
+
+
+function_f5_common:
+	bpatchx patch2d_1,mem_patch2d
+	jam 53,mem_AES_CMAC_data_length
+	setarg 0x100
+	store 2,memdat
+	call store_addr_common_b
+	call store_addr_common_a
+	arg mem_le_srand,contr
+	call memcpy16
+	arg mem_le_mrand,contr
+	call memcpy16
+//	fetch 4,mem_le_keyid 0x62746c65
+	setarg 0x6c65
+	istore 2,contw
+	setarg 0x6274
+	istore 2,contw
+	istoret 1,contw   //counter
+	call inverse_memdat	
+	branch function_AES_CMAC
+
+store_addr_common_b:
+	fetch 6,mem_le_lap
+	istore 6,contw
+	fetch 1,mem_le_conn_own_addr_type
+	istore 1,contw
+	rtn
+
+store_addr_common_a:
+	fetch 6,mem_le_plap
+	istore 6,contw
+//	setarg 0x2dcfc1
+//	istore 3,contw
+//	setarg 0xa71370
+//	istore 3,contw
+	fetch 1,mem_le_conn_peer_addr_type
+	istore 1,contw
+	rtn
+
+function_f4_ca:
+	jam 65,mem_AES_CMAC_data_length
+	fetch 1,mem_passkey_1bit
+	store 1,memdat
+	arg mem_sc_pubkey_local_x_256,contr
+	call memcpy32
+	arg mem_le_pubkey_remote_x_256,contr
+	call memcpy32
+	call inverse_memdat
+	arg mem_le_mrand,contr
+	call store_inverse_k	
+	branch function_AES_CMAC
+	
+
+function_f4_cb:
+	jam 65,mem_AES_CMAC_data_length
+	fetch 1,mem_passkey_1bit
+	store 1,memdat
+	arg mem_le_pubkey_remote_x_256,contr
+	call memcpy32
+	arg mem_sc_pubkey_local_x_256,contr
+	call memcpy32
+	call inverse_memdat
+	arg mem_le_srand,contr
+	call store_inverse_k	
+	branch function_AES_CMAC
+
+function_AES_CMAC:
+	bpatchx patch2d_2,mem_patch2d
+	call function_AES_CMAC_Generate_Subkey
+//call ice_break
+//	jam 65,mem_AES_CMAC_data_length
+//call ice_break
+	fetch 1,mem_AES_CMAC_data_length
+	copy pdata,temp
+function_ceil16:
+	increase 15,pdata
+	rshift4 pdata,pdata
+	copy pdata,regb
+	branch function_AES_CMAC_set_flag_0_balnk,blank
+	and temp,0x0f,pdata
+	nbranch function_AES_CMAC_set_flag_0,blank
+//	flag =1;
+	arg mem_AES_CMAC_k1,regc
+	arg memdat,pdata
+	increase -16,pdata
+//	iadd temp,pdata
+//	isub rega,rega
+	iadd temp,rega	
+	arg mem_AES_CMAC_M_last,contw
+	arg 4,loopcnt	
+	call xor_loop
+//call ice_break
+//	arg mem_f4_k1,contr
+//	call load_key
+	branch function_AES_CMAC_aes
+
+function_AES_CMAC_set_flag_0_balnk:
+	arg 1,regb
+	arg 0,rega
+//	arg mem_f4_test_data,pdata
+	branch function_AES_CMAC_set_flag_0_common
+//call ice_break
+
+function_AES_CMAC_set_flag_0:
+//	flag = 0;
+	and temp,0x0f,rega
+function_AES_CMAC_set_flag_0_common:
+	arg memdat,pdata
+	iadd temp,pdata
+	isub rega,contr
+//call ice_break
+	arg mem_AES_CMAC_temp,contw
+	call function_AES_CMAC_padding
+//call ice_break
+	arg mem_AES_CMAC_k2,regc
+	arg mem_AES_CMAC_temp,rega
+	arg mem_AES_CMAC_M_last,contw
+	arg 4,loopcnt	
+	call xor_loop	
+//call ice_break
+
+//	arg mem_f4_k2,contr
+//	call load_key
+
+//	branch p_function_f4_aes
+function_AES_CMAC_aes:
+//	arg mem_f4_k,contr
+//	call load_key
+//	arg mem_AES_CMAC_xor,contr
+//	call load_data128
+	call aes_clear_data
+	call aes_init	
+//	arg mem_f4_k,contr
+//	call load_key
+	arg memdat,contr
+function_AES_CMAC_aes_loop:
+//generate_mic_loop:
+	increase -1,regb
+	deposit regb
+	branch function_AES_CMAC_aes_loop_end,blank
+	call load_data128
+	call do_aes_cbc
+	branch function_AES_CMAC_aes_loop
+//generate_mic_end:
+function_AES_CMAC_aes_loop_end:	
+	arg mem_AES_CMAC_temp,contw
+	call store_aes_result
+	arg mem_AES_CMAC_M_last,contr
+	call load_data128
+	call aes_init	
+	arg mem_AES_CMAC_temp,contr
+	call load_data128	
+	branch do_aes_cbc
+
+
+
+load_inverse_result:
+//	arg mem_AES_CMAC_temp,contw
+	copy contw,rega
+	call store_aes_result
+//	arg mem_AES_CMAC_temp,rega
+	arg 16,loopcnt
+	branch inverse_data
+	
+store_inverse_k:
+	arg mem_AES_CMAC_k,contw
+	call memcpy16
+inverse_k:	
+	arg 16,loopcnt
+	arg mem_AES_CMAC_k,rega	
+	branch inverse_data
+	
+inverse_memdat:
+	fetch 1,mem_AES_CMAC_data_length
+	copy pdata,loopcnt
+	arg memdat,rega
+	branch inverse_data
+
+bn_lshift_0_inverse:
+	ifetch 1,rega
+	lshift pdata,pdata
+	isolate1 0,regc
+	setflag true,0,pdata	
+	isolate1 8,pdata
+	setflag true,0,regc	
+	istore 1,rega
+         increase -1,rega
+	loop bn_lshift_0_inverse
+	rtn	
+
+function_AES_CMAC_k1_inverse:
+	arg mem_AES_CMAC_k1,rega
+function_AES_CMAC_inverse_common:
+	increase 15,rega
+	force 16,loopcnt
+	force 0,regc
+	branch  bn_lshift_0_inverse	
+
+function_AES_CMAC_k2_inverse:
+	arg mem_AES_CMAC_k2,rega
+	branch function_AES_CMAC_inverse_common
+	
+
+function_AES_CMAC_Generate_Subkey:
+	arg mem_AES_CMAC_k,contr
+	call load_key
+//	arg mem_AES_CMAC_xor,contr
+//	call aes_load_xor
+	force regidx_xor,regext_index
+	call aes_clear
+	call aes_clear_data
+	call do_aes_ocb
+	
+//	force 0x38,aes_ctrl
+//	force 0x0,aes_ctrl
+//	call wait_aes
+	arg mem_AES_CMAC_k1,contw
+	call store_aes_result
+function_AES_CMAC_k1:
+	bpatchx patch2d_3,mem_patch2d
+	fetch 1,mem_AES_CMAC_k1
+	isolate1 7,pdata
+	nbranch function_AES_CMAC_k1_0,true	
+	call function_AES_CMAC_k1_inverse
+	
+//p_function_f4_k1_xor:
+	arg mem_AES_CMAC_k1,regc
+//	arg mem_AES_CMAC_rb,rega
+	arg mem_AES_CMAC_k1,contw
+//	arg 3,loopcnt
+//	call xor_loop
+	call function_AES_CMAC_xor_rb
+	branch function_AES_CMAC_k2
+function_AES_CMAC_k1_0:	
+	call function_AES_CMAC_k1_inverse
+function_AES_CMAC_k2:
+//call ice_break
+	arg mem_AES_CMAC_k1,contr
+	arg mem_AES_CMAC_k2,contw
+	call memcpy16
+	fetch 1,mem_AES_CMAC_k2
+	isolate1 7,pdata
+	nbranch function_AES_CMAC_k2_inverse,true		
+	call function_AES_CMAC_k2_inverse
+//p_function_f4_k2_xor:
+	arg mem_AES_CMAC_k2,regc
+//	arg mem_AES_CMAC_rb,rega
+	arg mem_AES_CMAC_k2,contw
+//	arg 3,loopcnt
+//	branch xor_loop	
+
+
+//rb:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 87 
+function_AES_CMAC_xor_rb:
+	arg 3,loopcnt
+function_AES_CMAC_xor_rb_loop:	
+	arg 0,temp
+	call function_AES_CMAC_xor_loop_common	
+	increase 4,regc
+	loop  function_AES_CMAC_xor_rb_loop
+	arg 0x8700,temp
+	lshift16 temp,temp
+function_AES_CMAC_xor_loop_common:	
+	ifetch   4,regc
+	ixor  temp,pdata
+	istore   4,contw	
+	rtn
+		
+
+
+
+//input rega :length <16	contr,contw
+function_AES_CMAC_padding:
+	bpatchx patch2d_4,mem_patch2d
+	arg 16,loopcnt
+	arg 0,pdata
+function_AES_CMAC_padding_loop:
+	isub rega,null
+	branch function_AES_CMAC_padding_beq_length,zero
+	branch function_AES_CMAC_padding_big_length,positive
+	ifetcht 1,contr
+	istoret 1,contw
+function_AES_CMAC_padding_loop2:	
+	increase 1,pdata
+	loop function_AES_CMAC_padding_loop
+	rtn
+function_AES_CMAC_padding_beq_length:	
+	arg 0x80,temp
+function_AES_CMAC_padding_common:
+	istoret 1,contw
+	branch  function_AES_CMAC_padding_loop2
+
+function_AES_CMAC_padding_big_length:
+	arg 0,temp
+	branch function_AES_CMAC_padding_common
+
+endif
+	
+generate_kinit:
+	call function_e22
+	arg mem_input_store,contr
+	arg mem_kinit,contw		/* Kinit is ready */
+	branch memcpy16
+
+
+function_e21:	/* rega pointers to bdaddr */
+	disable user
+	call function_expand
+	arg mem_random_number,contr
+	arg mem_x,contw
+	force 15,loopcnt
+	call memcpy			
+	ifetch 1,contr
+	xor_into 6,pdata
+	istore 1,contw
+	setarg mem_y
+	store 2,memp_ar_input
+	setarg mem_x
+	store 2,memp_ar_key
+	set1 mark_ar2,mark
+	branch function_ar
+
+
+	
+function_e22:		/* rega pointers to bdaddr */
+	fetcht 1,mem_pin_length
+	force 16,regb			/* total 16 bytes */
+	add temp,6,regc		/* regc is l' */
+	sub regc,16,null		
+	branch function_e22_pin_init,positive 
+	force 16,regc
+function_e22_pin_init:			/* generate x from pin and bdaddr */
+	arg mem_x,contw
+function_e22_genx_pin:
+	arg mem_pin,contr
+	copy temp,loopcnt
+	disable user
+function_e22_genx_loop:
+	ifetch 1,contr
+	istore 1,contw
+	increase -1,regb
+	branch function_e22_genx_end,zero
+	loop function_e22_genx_loop
+	branch function_e22_genx_pin,user
+	enable user
+	force 6,loopcnt
+	copy rega,contr
+	branch function_e22_genx_loop
+function_e22_genx_end:
+	arg mem_random_number,contr
+	arg mem_y,contw
+	call memcpy16
+	fetch 1,mem_y15
+	ixor regc,pdata
+	store 1,mem_y15	/* inpy[15] = rand_num[15]^l'; */
+	setarg mem_y
+	store 2,memp_ar_input
+	setarg mem_x
+	store 2,memp_ar_key
+	set1 mark_ar2,mark
+	branch function_ar
+
+
+
+
+function_e1:	/* rega pointers to bdaddr */
+	disable user
+	call function_expand
+	branch function_hash
+
+function_e3:
+	arg mem_aco,rega
+	enable user
+	call function_expand
+	call function_hash
+	arg mem_input_store,contr
+	arg mem_kc,contw
+	branch memcpy16
+
+	/* costs 41769 clocks */
+function_hash:
+	setarg mem_random_number
+	store 2,memp_ar_input
+	setarg mem_link_key
+	store 2,memp_ar_key
+	set0 mark_ar2,mark
+	call function_ar
+	arg mem_input_store,rega
+	arg mem_random_number,regb
+	arg mem_x,contw
+	call xor16
+	arg mem_x,rega
+	arg mem_y,regb
+	copy regb,contw
+	enable user
+	call add16
+	call key_offset
+	setarg mem_y
+	store 2,memp_ar_input
+	setarg mem_x
+	store 2,memp_ar_key
+	set1 mark_ar2,mark
+	branch function_ar
+	
+
+	/* totally costs 20700 clocks */
+function_ar:
+	jam 0,mem_ar_hround
+	fetch 2,memp_ar_key
+	iforce contr
+	arg mem_key_store,contw
+	call memcpy16
+	fetch 2,memp_ar_input
+	iforce contr
+	arg mem_input_store,contw
+	call memcpy16
+	
+function_ar_loop:
+	call key_scheduling
+	disable user
+	bmark0 mark_ar2,function_ar_original
+	fetch 1,mem_ar_hround
+	bne 4,function_ar_original
+	fetch 2,memp_ar_input
+	iforce regb
+	call xor_mod32_ar2
+function_ar_original:
+	call xor_mod32
+	call el_boxes
+	fetch 1,mem_ar_hround
+	increase 1,pdata
+	store 1,mem_ar_hround
+
+	call key_scheduling
+	enable user
+	call xor_mod32
+	call pht
+	call permute
+	call pht
+	call permute
+	call pht
+	call permute
+	call pht
+	fetch 1,mem_ar_hround
+	increase 1,pdata
+	store 1,mem_ar_hround
+	bne 16,function_ar_loop
+	call key_scheduling
+	disable user
+	branch xor_mod32
+	
+/* input round number and temp key in mem_key_store, and output the next temp key in mem_key_store */
+/* round key is generated and store in mem_round_key */
+key_scheduling:
+	fetch 1,mem_ar_hround
+	arg mem_key_store,contr
+	branch key_sched_zero,blank
+	iforce regb      			/* regb is half round */
+	force 17,loopcnt
+	copy contr,contw
+key_rotateloop:
+	ifetch 1,contr
+	lshift3 pdata,temp
+	rshift2 pdata,pdata
+	rshift3 pdata,pdata
+	ior temp,pdata
+	istore 1,contw
+	loop key_rotateloop
+	setarg mem_key_store
+	iadd regb,contr
+	force 16,loopcnt    
+	arg mem_round_key,contw
+key_select_octet_loop:
+	ifetch 1,contr
+	istore 1,contw
+	compare mem_key_store_end,contr,0xff
+	nbranch key_select_octet_nwrap,true
+	increase -17,contr
+key_select_octet_nwrap:
+	loop key_select_octet_loop
+	force 0,rega         /* rega is index of octet within row */
+	add regb,-1,regc    /* this is the row index, half_round#1 is 0 */
+	lshift2 regc,regc
+	lshift2 regc,regc
+	call enable_authrom
+	setarg mem_b_box
+	iadd regc,regc       /* regc hold the starting address of the row */
+	arg mem_round_key,contw
+	force 16,loopcnt
+bias_round_key_loop:
+	ifetcht 1,regc
+	ifetch 1,contw
+	iadd temp,pdata
+	istore 1,contw
+	increase 1,regc
+	loop bias_round_key_loop
+	branch disable_authrom
+
+key_sched_zero:    /* round 0, key1 */
+	force 16,loopcnt
+	force 0,temp
+create_byte_16_loop:
+	ifetch 1,contr
+	ixor temp,temp
+	loop create_byte_16_loop
+	deposit temp
+	istore 1,contr    	/* store the byte #16 */
+	arg mem_key_store,contr
+	arg mem_round_key,contw
+	branch memcpy16
+
+xor_mod32:     /* xor on 0,3, add on 1,2. if user is set, invert. x in rega and y in regb, out in contw */
+	arg mem_round_key,regb
+xor_mod32_ar2:
+	force 16,loopcnt
+	arg mem_input_store,rega
+	copy rega,contw
+xor_mod32_loop:	
+	ifetcht 1,rega
+	ifetch 1,regb
+	ixor temp,alarm
+	and loopcnt,3,regc
+	nbranch xor_mod32_invert,user
+	xor_into 3,regc
+xor_mod32_invert:
+	sub regc,1,regc
+	branch xor_even,positive
+	iadd temp,alarm
+xor_even:
+	deposit alarm
+	istore 1,contw
+	increase 1,rega
+	increase 1,regb
+	loop xor_mod32_loop
+	rtn
+
+el_boxes:
+	call enable_authrom
+	force 16,loopcnt
+	arg mem_input_store,rega
+el_box_loop:	
+	ifetch 1,rega
+	arg mem_e_box,contr
+	and loopcnt,3,regc
+	sub regc,1,null
+	branch e_boxes,positive
+	arg mem_l_box,contr
+e_boxes:
+	iadd contr,contr
+	ifetch 1,contr
+	istore 1,rega
+	increase 1,rega
+	loop el_box_loop
+	branch disable_authrom
+
+pht:				
+	force 8,loopcnt
+	arg mem_input_store,contr
+	copy contr,contw
+pht_loop:
+	ifetch 1,contr
+	iforce rega
+	ifetch 1,contr
+	iforce regb
+	lshift rega,pdata
+	iadd regb,pdata
+	istore 1,contw
+	deposit rega
+	iadd regb,pdata
+	istore 1,contw
+	loop pht_loop
+	rtn
+
+/* 8 11 12 15 2 1 6 5 10 9 14 13 0 7 4 3 */
+permute:			
+	setarg 0x8ae42c
+	iforce temp
+	force 7,loopcnt
+	call permute_exchange
+	setarg 0xd751b
+	iforce temp
+	force 5,loopcnt
+	call permute_exchange
+	fetch 1,mem_input_store+15
+	iforce rega
+	fetch 1,mem_input_store+3
+	store 1,mem_input_store+15
+	deposit rega
+	store 1,mem_input_store+3
+	rtn
+
+permute_exchange:
+	and temp,0xf,regb
+permute_loop:
+	and temp,0xf,pdata
+	arg mem_input_store,contw
+	iadd contw,contw
+	ifetch 1,contw
+	iforce regc
+	deposit rega
+	istore 1,contw
+	copy regc,rega
+	rshift4 temp,temp
+	loop permute_loop	
+	setarg mem_input_store
+	iadd regb,contw
+	deposit rega
+	istore 1,contw
+	rtn
+
+add16:
+	enable user
+	branch xor_add16
+
+xor16:
+	disable user
+xor_add16:	/* if user is set, do add, else do xor */
+	force 16,loopcnt	/* rega and regb pointers to src, contw is result */
+xoradd_loop:
+	ifetcht 1,rega
+	ifetch 1,regb
+	branch xoradd_add,user
+	ixor temp,pdata
+	branch xoradd_store
+xoradd_add:	
+	iadd temp,pdata
+xoradd_store:	
+	istore 1,contw
+	increase 1,rega
+	increase 1,regb
+	loop xoradd_loop
+	rtn
+
+	
+function_expand:		/* rega pointers to bdaddr, or aco and user is set */
+	arg mem_y,contw
+	ifetch 6,rega
+	istore 6,contw
+	branch expand_12,user
+	ifetch 6,rega
+	branch expand_cont
+expand_12:
+	ifetch 6,contr
+expand_cont:
+	istore 6,contw
+	ifetch 4,rega
+	istore 4,contw
+	rtn
+
+key_offset:
+	arg mem_link_key,contr
+	arg mem_x,contw
+	arg 0,temp
+	setarg 0x8395a7
+	call concatenate_temp24
+	setarg 0xb3c1df
+	call concatenate_temp24
+	setarg 0xe5e9
+	call concatenate_temp16
+	copy temp,regab
+	disable user
+	call key_addxor
+	copy regab,temp
+	enable user
+	branch key_addxor
+
+key_addxor:
+	force 8,loopcnt
+key_addxor_loop:	
+	ifetch 1,contr
+	compare 1,loopcnt,1
+	branch key_high,user
+	branch key_xor,true
+key_add:	
+	iadd temp,pdata
+	branch key_store
+key_high:
+	branch key_add,true
+key_xor:
+	ixor temp,pdata
+key_store:
+	istore 1,contw
+	rshift8 temp,temp
+	loop key_addxor_loop
+	rtn
+
+copy_aco:
+	fetch 6,mem_input_store+4
+	store 6,mem_aco
+	ifetch 6,contr
+	istore 6,contw
+	rtn
+	
+concatenate_temp24:
+	lshift8 temp,temp
+concatenate_temp16:
+	lshift16 temp,temp
+	ior temp,temp
+	rtn
+
+ifdef TESTING
+test_security:
+	fetch 1,0xff
+	branch test_security,blank
+
+	/* inrand */
+	setarg 0x1BC683
+	store 3,0x0
+	setarg 0x122980
+	istore 3,contw
+	setarg 0xD0DB17
+	istore 3,contw
+	setarg 0x2B1D78
+	istore 3,contw
+	setarg 0x2743A6
+	istore 3,contw
+	setarg 0xD8
+	istore 1,contw
+
+	/* comb A */
+	setarg 0xA6D0C9
+	store 3,0x10
+	setarg 0xA9E86C
+	istore 3,contw
+	setarg 0x9E89D5
+	istore 3,contw
+	setarg 0xC61838
+	istore 3,contw
+	setarg 0x6F0318
+	istore 3,contw
+	setarg 0x9F
+	istore 1,contw
+
+	/* comb B */
+	setarg 0x7F6833
+	store 3,0x20
+	setarg 0xE62E1B
+	istore 3,contw
+	setarg 0x9F67FC
+	istore 3,contw
+	setarg 0x8D3712
+	istore 3,contw
+	setarg 0x0B846C
+	istore 3,contw
+	setarg 0x4A
+	istore 1,contw
+
+	/* auth rand A */
+	setarg 0xFBB686
+	store 3,0x30
+	setarg 0x19FE7F
+	istore 3,contw
+	setarg 0x16A439
+	istore 3,contw
+	setarg 0xF4F6A4
+	istore 3,contw
+	setarg 0x10D61D
+	istore 3,contw
+	setarg 0xDE
+	istore 1,contw
+
+	/* auth rand B */
+	setarg 0x735B0C
+	store 3,0x40
+	setarg 0xA7F06B
+	istore 3,contw
+	setarg 0x04625E
+	istore 3,contw
+	setarg 0x3463B0
+	istore 3,contw
+	setarg 0xB8F17A
+	istore 3,contw
+	setarg 0x7C
+	istore 1,contw
+
+	/* address A */
+	setarg 0xf91330
+	store 3,0xb0
+	setarg 0x664c7d
+	istore 3,contw
+
+	/* address B */
+	setarg 0xdc7100
+	store 3,0xb8
+	setarg 0x2ea003
+	istore 3,contw
+
+	/* sres A */
+	setarg 0x2EEE19
+	store 3,0x50
+	setarg 0x7E
+	istore 1,contw
+
+	/* sres B */
+	setarg 0x4231A4
+	store 3,0x58
+	setarg 0xD1
+	istore 1,contw
+
+	/* linkA */
+	setarg 0xa6a026
+	store 3,0x60
+	setarg 0x2569d2
+	istore 3,contw
+	setarg 0xab4a9d
+	istore 3,contw
+	setarg 0x5e87c0
+	istore 3,contw
+	setarg 0x792aa9
+	istore 3,contw
+	setarg 0x4b
+	istore 1,contw
+
+	/* linkB */
+	setarg 0xa1f07d
+	store 3,0x70
+	setarg 0xec97a6
+	istore 3,contw
+	setarg 0xae31eb
+	istore 3,contw
+	setarg 0x6fe3c4
+	istore 3,contw
+	setarg 0xa1ae1a
+	istore 3,contw
+	setarg 0x3a
+	istore 1,contw
+
+	/* linkkey */
+	setarg 0x07505b
+	store 3,0x80
+	setarg 0xc9fe74
+	istore 3,contw
+	setarg 0x057b76
+	istore 3,contw
+	setarg 0x316404
+	istore 3,contw
+	setarg 0xd884b3
+	istore 3,contw
+	setarg 0x71
+	istore 1,contw
+
+	/* K */
+	setarg 0x0c333f
+	store 3,0x90
+	setarg 0x41de70
+	istore 3,contw
+	setarg 0x9b05a2
+	istore 3,contw
+	setarg 0xb954a2
+	istore 3,contw
+	setarg 0xb37516
+	istore 3,contw
+	setarg 0x36
+	istore 1,contw
+
+	/* kinit */
+	setarg 0x5ff91a
+	store 3,0xa0
+	setarg 0x39b5a4
+	istore 3,contw
+	setarg 0x258f2d
+	istore 3,contw
+	setarg 0x5d4a85
+	istore 3,contw
+	setarg 0x656ad3
+	istore 3,contw
+	setarg 0xab
+	istore 1,contw
+
+	arg 0,contr
+	arg mem_random_number,contw
+	call memcpy16
+	setarg 0x3131
+	store 2,mem_pin
+	istore 2,contw
+	jam 4,mem_pin_length
+	arg 0xb8,rega
+	call function_e22
+	arg mem_input_store,contr
+	arg mem_kinit,contw
+	call memcpy16
+	arg 0x10,rega
+	arg mem_kinit,regb
+	arg mem_random_number,contw
+	call xor16
+	arg 0xb0,rega
+	call function_e21
+	arg 0x60,regb
+	call compare16
+error_lka:
+	nbranch error_lka,zero
+	arg mem_input_store,contr
+	arg mem_link_key,contw	
+	call memcpy16
+	arg 0x20,rega
+	arg mem_kinit,regb
+	arg mem_random_number,contw
+	call xor16
+	arg 0xb8,rega
+	call function_e21
+	arg 0x70,regb
+	call compare16
+error_lkb:
+	nbranch error_lkb,zero
+	arg mem_input_store,rega
+	arg mem_link_key,regb
+	arg mem_link_key,contw
+	call xor16
+	arg 0x30,contr
+	arg mem_random_number,contw
+	call memcpy16
+	arg 0xb8,rega
+	call function_e1
+	arg 0x50,regb
+	force 4,loopcnt
+	call compare_key
+error_sresa:
+	nbranch error_sresa,zero
+	arg 0x40,contr
+	arg mem_random_number,contw
+	call memcpy16
+	arg 0xb0,rega
+	call function_e1
+	arg 0x58,regb
+	force 4,loopcnt
+	call compare_key
+error_sresb:
+	nbranch error_sresb,zero
+	branch loop1
+	
+	arg 0,contr
+	arg mem_random_number,contw
+	call memcpy16
+	force 12,loopcnt
+	call memcpy
+	arg 0x1c,contr
+	arg mem_link_key,contw
+	call memcpy16
+	arg 0x10,rega
+	call function_e3
+	branch loop1
+
+compare16:
+	force 16,loopcnt
+compare_key:
+	arg mem_input_store,rega
+	branch compare_loop
+
+compare_loop:
+	ifetch 1,rega
+	ifetcht 1,regb
+	isub temp,null
+	nrtn zero
+	increase 1,rega
+	increase 1,regb
+	loop compare_loop
+	force 0,pdata
+	rtn
+
+endif
+
+
+loop1:	
+	branch loop1
+
+/* ==================== LE security ================= */
+
+generate_stk:
+	bpatchx patch2d_5,mem_patch2d
+	call function_s1
+	arg mem_le_ltk,contw
+	branch store_aes_result
+
+	/* contr = rand pointer */
+authenticate_rconfirm:
+	arg mem_le_srand,contw
+	branch authenticate_mconfirm,master
+	arg mem_le_mrand,contw
+authenticate_mconfirm:
+	copy contr,rega
+	call memcpy16
+	call function_c1
+	arg mem_le_rconfirm,contr
+	branch compare_res
+
+generate_confirm:
+	arg mem_le_mrand,rega
+	branch generate_mrand,master
+	arg mem_le_srand,rega
+generate_mrand:
+	copy rega,contw
+	call generate_random
+	branch function_c1
+
+generate_sk:
+	arg mem_le_skdm,contr
+	call load_data128
+	arg mem_le_ltk,contr
+	call load_regext
+	force 0x38,aes_ctrl
+	force 0x0,aes_ctrl
+	call wait_aes
+	arg mem_le_sk,contw
+	branch store_aes_result
+
+
+//input temp:counter; rega:len	
+ccm_b0:
+	force regidx_xor,regext_index				
+	force 0x49,pdata
+	branch iv_common
+	
+	/* temp=packet counter, rega = length or block counter*/
+first_block_counter:
+	force 0x49,pdata
+	branch first_block
+first_block_data:
+	force 1,pdata
+first_block:
+	force regidx_data,regext_index			
+iv_common:
+	lshift8 temp,regext
+	ior regext,regext
+	increase 1,regext_index
+	rshift8 temp,regext
+	rshift16 regext,regext
+	fetch 2,mem_ccm_iv
+	lshift16 pdata,pdata
+	ior regext,regext				/* octet3&octet4 of counter and low 16 bit of IV */
+	increase 1,regext_index
+	ifetchr regext, 4,contr					/* IV2-IV5 */
+	increase 1,regext_index
+	ifetch 2,contr					/* IV6-IV7 */
+	byteswap rega,regext
+	lshift16 regext,regext
+	ior regext,regext
+	increase 1,regext_index
+	rtn
+
+
+	/* temp=packet counter, regc pointers to data */	
+generate_mic:
+	add regc,1,contr
+	ifetch 1,contr
+	iforce rega
+	call first_block_counter		//B0
+	call do_aes_ocb
+
+	force regidx_data,regext_index			/* B1 */
+	ifetch 1,regc
+	and_into 0x3,pdata
+	lshift16 pdata,regext
+	set1 8,regext
+	call clear_hidata	//B1
+	call do_aes_cbc
+
+	copy rega,loopcnt
+	add regc,2,contr
+	call padding_data	//数据填充
+generate_mic_loop:
+	call aes_load_data
+	call do_aes_cbc
+	deposit loopcnt
+	branch generate_mic_end,blank
+	branch generate_mic_loop
+generate_mic_end:
+	force regidx_result,regext_index
+	deposit regext
+	store 4,mem_le_mic
+	rtn
+
+aes_crypt_data:
+	increase 1,rega
+	call first_block_data
+	copy regc,contr
+	call aes_load_xor
+	call do_aes_ctr
+	call store_enc_data
+	increase 16,regc
+	increase -16,regb
+	branch aes_crypt_data,positive
+	rtn
+
+/*
+ccm_br_enc:
+	arg mem_kc,contr  //mem_kc  key 
+	call load_key
+	
+	fetcht 5,mem_ccm_pcnt_tx
+	call generate_mic_br
+	force regidx_xor,regext_index
+	iforce regext
+	force 0,rega					
+	call first_block_data_br
+	call do_aes_ctr
+
+	fetch 2,mem_ccm_len
+ 	add pdata,-1,regb
+	iadd regc,contw
+	force regidx_result,regext_index
+	deposit regext
+	istore 4,contw	
+	store 4,mem_le_mic
+
+	call aes_crypt_data_br
+//	fetch 2,mem_ccm_len
+//	increase 4,pdata
+//	store 2,mem_ccm_len
+	fetcht 5,mem_ccm_pcnt_tx
+	increase 1,temp
+	storet 5,mem_ccm_pcnt_tx
+	rtn
+
+
+ccm_br_decrypt:
+	call disable_user2
+	copy contw,pdata
+	fetcht 2,mem_len
+	increase 4,temp
+	isub temp,pdata
+	store 2,mem_ccm_rx_ptr
+	
+	arg mem_kc,contr  //mem_kc  key // iv
+	call load_key
+	fetch 2,mem_ccm_rx_ptr
+	copy pdata,regc
+	fetch 2,mem_len
+	iadd regc,contr
+	add pdata,-1,regb	
+	ifetch 4,contr   //mic
+	force regidx_xor,regext_index
+	iforce regext
+	force 0,rega					
+	fetcht 5,mem_ccm_pcnt_rx
+	call first_block_data_br
+	call do_aes_ctr
+	force regidx_result,regext_index
+	deposit regext
+	store 4,mem_le_peer_mic
+	call aes_crypt_data_br
+
+	fetch 1,mem_lch_code
+	and pdata,0x3,pdata
+	store 1,mem_llid
+	fetch 1,mem_rx_type
+	copy pdata,type
+	fetch 2,mem_len
+	copy pdata,rega
+	fetch 2,mem_ccm_rx_ptr
+	copy pdata,regc
+	fetcht 5,mem_ccm_pcnt_rx	
+	call generate_mic_br
+	fetcht 4,mem_le_peer_mic
+	isub temp,pdata				
+	nrtn blank
+	fetch 4,mem_ccm_last_mic			
+	isub temp,pdata
+	rtn blank
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	store 5,mem_ccm_pcnt_rx
+	branch enable_user2
+
+	//temp=packet counter, regc pointers to data, rega len	
+generate_mic_br:
+
+	call first_block_counter_br
+	call do_aes_ocb
+
+	force regidx_data,regext_index			
+	and type,0x0f,pdata
+	lshift3 pdata,pdata
+	ior am_addr,pdata  //lt_addr
+	lshift8 pdata,regext
+	fetch 1,mem_llid
+	lshift16 pdata,pdata
+	ior regext,regext
+	call clear_hidata
+	call do_aes_cbc
+
+	copy rega,loopcnt  //data length
+//	add regc,2,contr    // data ptr
+	copy regc,contr
+	call padding_data
+generate_mic_br_loop:
+	call aes_load_data
+	call do_aes_cbc
+	deposit loopcnt
+	branch generate_mic_br_end,blank
+	branch generate_mic_br_loop
+generate_mic_br_end:
+	force regidx_result,regext_index
+	deposit regext
+	store 4,mem_le_mic  //T
+	rtn	
+	
+aes_crypt_data_br:
+	increase 1,rega
+	call first_block_data_br
+	copy regc,contr
+	call aes_load_xor
+	call do_aes_ctr
+	call store_enc_data
+	increase 16,regc
+	increase -16,regb
+	branch aes_crypt_data_br,positive
+	rtn
+	
+	// temp=packet counter, rega = length or block counter
+first_block_counter_br:
+	force 0x49,pdata
+	branch first_block_br
+	
+first_block_data_br:
+	force 1,pdata
+first_block_br:
+	force regidx_data,regext_index			 
+	lshift8 temp,regext
+	ior regext,regext
+	increase 1,regext_index
+	rshift8 temp,regext
+	rshift16 regext,regext
+	fetch 2,mem_ccm_iv  //iv
+	lshift16,pdata,pdata
+	ior regext,regext				
+	increase 1,regext_index
+	ifetch 4,contr					
+	iforce regext
+	increase 1,regext_index
+	ifetch 2,contr					
+	byteswap rega,regext  
+	lshift16 regext,regext
+	ior regext,regext
+	increase 1,regext_index
+	rtn
+*/
+
+/*
+le_encrypt:
+	arg mem_le_txheader,regc
+	fetcht 5,mem_ccm_pcnt_tx
+	call generate_mic
+	force regidx_xor,regext_index
+	iforce regext
+	force 0,rega					 
+	call first_block_data
+	call do_aes_ctr
+	arg mem_le_txpayload,regc
+	fetch 1,mem_le_txlen
+	add pdata,-1,regb
+	iadd regc,contw
+	force regidx_result,regext_index
+	deposit regext
+	istore 4,contw	
+	call aes_crypt_data
+	fetch 1,mem_le_txlen
+	increase 4,pdata
+	store 1,mem_le_txlen
+	fetcht 5,mem_ccm_pcnt_tx
+	increase 1,temp
+	set0 LE_CCM_DIRECTIONBIT,temp
+	storet 5,mem_ccm_pcnt_tx
+	rtn
+
+le_decrypt:
+	fetch 1,mem_le_rxbuf+1
+	arg mem_le_rxbuf+2,regc
+	add pdata,-1,regb
+	increase -4,pdata				
+	store 1,mem_le_rxbuf+1
+	iadd regc,contr
+	ifetch 4,contr
+	force regidx_xor,regext_index
+	iforce regext
+	force 0,rega					
+	fetcht 5,mem_ccm_pcnt_rx
+	call first_block_data	//generate nonce
+	call do_aes_ctr
+	force regidx_result,regext_index
+	deposit regext
+	store 4,mem_le_peer_mic
+	call aes_crypt_data
+	arg mem_le_rxbuf,regc
+	call generate_mic
+	fetcht 4,mem_le_peer_mic
+	isub temp,pdata				
+	nrtn blank
+	fetch 4,mem_ccm_last_mic			
+	isub temp,pdata
+	rtn blank
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_rx
+	force 0,pdata
+	rtn
+*/
+
+
+//input regc input playload addr; 
+ccm_br_enc_new:
+	call ccm_init_common
+	bpatchx patch2d_6,mem_patch2d
+	arg mem_kc,contr   
+	call load_key
+	
+	jam 0,core_ccm_aad0 
+	and type,0x0f,pdata
+	lshift3 pdata,pdata
+	ior am_addr,pdata  
+	store 1,core_ccm_aad1
+	fetch 1,mem_llid
+	store 1,core_ccm_aad2
+
+	storer regc,2,core_ccm_input_playload_addr
+	storer regc,2,core_ccm_output_playload_addr
+	
+	fetchr rega,2,mem_ccm_len
+	fetcht 5,mem_ccm_pcnt_tx			
+	call ccm_br_check_0_length_continuation
+	call ccm_b0
+	jam 2,core_ccm_ctrl
+	jam 3,core_ccm_ctrl
+
+	fetch 2,mem_ccm_len
+	store 2,core_ccm_inptr
+	increase 4,pdata
+	store 2,mem_ccm_len
+	copy regc,pdata
+	iadd rega,rega
+	call wait_ccm_done
+	arg regidx_result,regext_index
+	istorer regext, 4 ,rega
+	storer regext, 4,mem_le_mic
+	rtn
+
+ccm_br_pcnt_tx_add:
+	fetch 5,mem_ccm_pcnt_tx
+	increase 1,pdata
+	store 5,mem_ccm_pcnt_tx
+	branch ccm_br_pcnt_tx_set
+
+
+ccm_br_check_0_length_continuation:
+	fetch 1,mem_llid
+	rtnne LLID_L2CAP_CONT
+	fetch 2,mem_ccm_len
+	nrtn blank
+	set1 BR_CCM_0_LENGTH_CONTINUATION,temp
+	rtn
+
+
+ccm_br_pcnt_tx_set:
+	fetch 1,mem_ccm_pcnt_tx+4
+ 	and pdata,0x0f,pdata
+ 	or pdata,0x20,pdata
+ 	store 1,mem_ccm_pcnt_tx+4
+ 	rtn
+ 	
+ccm_br_pcnt_rx_set:
+	fetch 1,mem_ccm_pcnt_rx+4
+ 	and pdata,0x0f,pdata
+ 	store 1,mem_ccm_pcnt_rx+4
+ 	rtn
+ 	
+ccm_br_decrypt_new:
+	copy contw,pdata
+	fetcht 2,mem_len
+	increase 4,temp
+	isub temp,pdata
+	store 2,mem_ccm_rx_ptr
+	store 2,core_ccm_input_playload_addr
+	store 2,core_ccm_output_playload_addr
+
+	call disable_user2
+	call ccm_init_common
+	arg mem_kc,contr 
+	call load_key
+	
+	jam 0,core_ccm_aad0 
+	fetch 1,mem_rx_type
+	and pdata,0x0f,pdata
+	lshift3 pdata,pdata
+	ior am_addr,pdata  
+	store 1,core_ccm_aad1
+	fetch 1,mem_lch_code
+	and pdata,0x3,pdata
+	store 1,mem_llid
+	store 1,core_ccm_aad2
+	
+	fetchr rega, 2,mem_len
+	storer rega,2,mem_ccm_len
+	fetch 2,mem_ccm_rx_ptr
+	iadd rega,contr
+	force regidx_data,regext_index
+	ifetchr regext, 4,contr
+	storer  regext,4,mem_le_peer_mic
+	fetcht 5,mem_ccm_pcnt_rx		
+	call ccm_br_check_0_length_continuation
+	call ccm_b0
+	jam 6,core_ccm_ctrl
+	jam 7,core_ccm_ctrl
+
+	fetch 2,mem_len
+	store 2,core_ccm_inptr
+	call wait_ccm_done
+	fetch 1,core_misc_status
+	rtnbit0 7
+	branch enable_user2
+
+
+ccm_br_pcnt_rx_add:	
+	rtnmark1 mark_old_packet
+	fetcht 4,mem_le_peer_mic
+//	fetch 4,mem_ccm_last_mic			
+//	isub temp,pdata
+///	rtn blank
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	store 5,mem_ccm_pcnt_rx
+	branch ccm_br_pcnt_rx_set
+
+
+ 	
+le_decrypt_new:
+ 	call ccm_init_common
+	jam 0,core_ccm_aad0 
+	jam 1,core_ccm_aad1
+	fetch 1,mem_le_rxbuf_data_header
+	and_into 0x3,pdata
+	store 1,core_ccm_aad2
+	
+	setarg mem_le_rxbuf_data_payload
+	store 2,core_ccm_input_playload_addr
+	store 2,core_ccm_output_playload_addr
+
+	fetchr rega, 1,mem_le_rxbuf_data_length
+	increase -4,rega
+	nbranch disable_blank,positive
+	storer rega, 1,mem_le_rxbuf_data_length
+	setarg mem_le_rxbuf_data_payload
+	iadd rega,contr
+	force regidx_data,regext_index
+	ifetchr regext, 4,contr
+	storer  regext,4,mem_le_peer_mic
+	fetcht 5,mem_ccm_pcnt_rx				
+	call ccm_b0
+	jam 6,core_ccm_ctrl
+	jam 7,core_ccm_ctrl
+	fetch 1,mem_le_rxbuf_data_length
+	store 2,core_ccm_inptr
+	call wait_ccm_done
+	fetch 1,core_misc_status
+	bbit0 7, disable_blank
+	fetcht 4,mem_le_peer_mic
+	fetch 4,mem_ccm_last_mic			/* reduntdant packet? */
+	isub temp,pdata
+	rtn blank
+	storet 4,mem_ccm_last_mic
+	fetch 5,mem_ccm_pcnt_rx
+	increase 1,pdata
+	set1 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_rx
+	force 0,pdata
+	rtn
+
+
+le_encrypt_new:
+	call le_encrypt_new_start
+	setarg mem_le_txpayload
+	iadd rega,rega
+	call wait_ccm_done
+	arg regidx_result,regext_index
+	istorer regext, 4 ,rega
+	rtn
+
+
+le_encrypt_new_start:
+	call ccm_init_common
+	bpatchx patch2d_7,mem_patch2d
+	jam 0,core_ccm_aad0 
+	jam 1,core_ccm_aad1
+	fetch 1,mem_le_txheader
+	and_into 0x3,pdata
+	store 1,core_ccm_aad2
+	fetch 2,mem_contr
+	store 2,core_ccm_input_playload_addr
+	setarg mem_le_txpayload
+	store 2,core_ccm_output_playload_addr
+	
+	fetchr rega,1,mem_le_txlen
+	fetcht 5,mem_ccm_pcnt_tx				
+	call ccm_b0
+	jam 2,core_ccm_ctrl
+	jam 3,core_ccm_ctrl
+	
+	fetch 1,mem_le_txlen
+	store 2,core_ccm_inptr
+	increase 4,pdata
+	store 1,mem_le_txlen
+	fetch 5,mem_ccm_pcnt_tx
+	increase 1,pdata
+ 	set0 LE_CCM_DIRECTIONBIT,pdata
+	store 5,mem_ccm_pcnt_tx
+	rtn
+
+
+ccm_wait_enc:
+	fetch 2,core_ccm_outptr
+	isub temp,null
+	rtn zero 
+	nrtn blank
+//	call assert
+	branch ccm_wait_enc
+
+ccm_check_enc_done:
+	fetch 1,core_misc_status
+	bbit0 6,assert
+ccm_enc_done:
+	setarg mem_le_txpayload
+	iadd temp,contw	
+	arg regidx_result,regext_index
+	istorer regext, 4 ,contw	
+	branch ccm_ctrl_clr
+	
+ccm_init_common:
+	bpatchx patch2e_0,mem_patch2e
+	force regidx_result,regext_index
+	call aes_clear
+	call aes_clear_data
+ 	setarg 0
+	store 2,core_ccm_inptr
+	rtn
+	
+wait_ccm_done:
+	fetch 1,core_misc_status
+	bbit0 6,wait_ccm_done
+ccm_ctrl_clr:
+	jam 0,core_ccm_ctrl
+	rtn
+
+
+wait_aes:
+	nbranch wait_aes,aes_ready
+	rtn
+
+do_aes_ocb:
+	force 0x30,aes_ctrl
+	force 0x0,aes_ctrl
+	branch wait_aes
+
+do_aes_cbc:
+	force 0x32,aes_ctrl
+	force 0x2,aes_ctrl
+	branch wait_aes
+
+do_aes_ctr:
+	force 0x34,aes_ctrl
+	force 0x4,aes_ctrl
+	branch wait_aes
+
+	
+aes_init:
+	force 1,aes_ctrl
+	force 0,aes_ctrl
+	rtn
+
+
+wait_keyinit_done:
+	fetch 1,core_aes_decode_key_init
+	bbit0 5,wait_keyinit_done
+	rtn
+
+
+/*
+input:pdata,dec key buffer addr
+output:initial dec key
+瀵嗛挜涓嶆敼锛屽彧鍋氫竴娆
+*/
+dec_key_initial:
+	store 2,core_keybuf_saddr
+	force 0xc0,aes_ctrl
+	force 0x80,aes_ctrl	//dec key initial
+	branch wait_keyinit_done
+
+/*
+input:regb,user enc payload buffer ptr
+	regc,user dec payload buffer ptr
+output:user dec payload buffer ptr
+*/
+do_aes_ecb_dec:
+	force regidx_data,regext_index
+	copy regb,contr
+   	force 4,loopcnt
+	call aes_ecb_dec_loop
+
+	force 0x180,aes_ctrl	//dec load data
+	force 0x80,aes_ctrl
+	call wait_aes
+ecb_dec_generate: 
+	force regidx_result,regext_index
+	copy regc,contw
+   	force 4,loopcnt
+ecb_dec_generate_loop:
+    copy regext,pdata
+	istore 4,contw
+	increase 1,regext_index
+	loop ecb_dec_generate_loop
+	rtn
+
+aes_ecb_dec_loop:
+	ifetch 2,contr
+	ifetcht 2,contr
+	lshift16 temp,temp
+	ior temp,regext
+	increase 1,regext_index
+	loop aes_ecb_dec_loop
+	rtn
+
+
+/*
+input:rega,xor data buffer ptr
+	regb,user enc payload buffer ptr	
+	regc,user dec payload buffer ptr
+output:user dec payload buffer ptr
+*/
+do_aes_cbc_dec:
+	force regidx_xor,regext_index
+	copy rega,contr
+	force 4,loopcnt
+	call aes_ecb_dec_loop
+
+	force regidx_data,regext_index
+	copy regb,contr
+	force 4,loopcnt
+	call aes_ecb_dec_loop
+	force 0x182,aes_ctrl
+	force 0x82,aes_ctrl
+	call wait_aes
+	branch ecb_dec_generate
+
+	
+function_s1:
+	force regidx_data,regext_index
+	fetch 4,mem_le_mrand
+	iforce regext
+	increase 1,regext_index
+	ifetch 4,contr
+	iforce regext
+	increase 1,regext_index
+	fetch 4,mem_le_srand
+	iforce regext
+	increase 1,regext_index
+	ifetch 4,contr
+	iforce regext
+	increase 1,regext_index
+	call aes_clear
+	increase -4,regext_index
+	fetch 4,mem_le_tk
+	copy pdata,regext
+	increase 4,regext_index
+	force 0x38,aes_ctrl
+	force 0x8,aes_ctrl
+	branch wait_aes
+
+	/* rega pointers to random number */
+function_c1:
+	bpatchx patch2e_1,mem_patch2e
+	fetch 6,mem_le_lap
+	fetcht 6,mem_le_plap
+	branch function_c1_master,master
+	fetch 6,mem_le_plap
+	fetcht 6,mem_le_lap
+function_c1_master:
+	force regidx_xor,regext_index
+	copy temp,regext
+	increase 1,regext_index
+	rshift32 temp,regext
+	lshift16 pdata,pdata
+	ior regext,regext
+	increase 1,regext_index
+	rshift32 pdata,regext
+	increase 1,regext_index
+	force 0,regext					/* p2 = ia || ra */
+	force 0,pdata
+	fetch 1,mem_le_conn_peer_addr_type
+	fetcht 1,mem_le_adv_own_addr_type
+	nbranch function_c1_irat,master
+	//conn as master
+	fetch 1,mem_le_conn_own_addr_type
+	fetcht 1,mem_le_conn_peer_addr_type
+function_c1_irat:
+	store 1,mem_le_iat
+	storet 1,mem_le_rat
+	force regidx_data,regext_index
+	arg mem_le_iat,regb
+	force 4,loopcnt
+function_c1_loop1:
+	ifetch 4,rega		
+	ifetcht 4,regb
+	ixor temp,regext
+	increase 1,regext_index
+	increase 4,rega
+	increase 4,regb
+	loop function_c1_loop1		/* p1 ^ r */
+	call aes_clear				/* k = 0 */
+	increase -4,regext_index
+	fetch 4,mem_le_tk
+	copy pdata,regext
+	increase 4,regext_index
+	force 0x38,aes_ctrl
+	force 0xc,aes_ctrl
+	call wait_aes
+
+	call aes_clear_data
+	force 0x3a,aes_ctrl
+	force 0x8,aes_ctrl
+	branch wait_aes
+
+padding_data:
+	compare 0,loopcnt,3
+	rtn true
+	deposit contr
+	iadd loopcnt,contw
+	force 0,pdata
+padding_loop:
+	istore 1,contw
+	increase 1,loopcnt
+	compare 0,loopcnt,3
+	rtn true
+	branch padding_loop
+
+aes_load_data:
+	force regidx_data,regext_index
+load_data_loop:
+	deposit loopcnt
+	branch load_data_padding,blank
+	ifetch 4,contr
+	increase -4,loopcnt
+load_data_padding:
+	iforce regext
+	increase 1,regext_index
+	compare regidx_key,regext_index,0xf
+	rtn true
+	branch load_data_loop
+
+aes_load_xor:
+	force regidx_xor,regext_index
+	branch load_regext
+load_key:
+	force regidx_key,regext_index
+	branch load_regext
+load_data128:
+	force regidx_data,regext_index
+load_regext:
+	force 4,loopcnt
+load_regext_loop:
+	ifetch 4,contr
+	iforce regext
+	increase 1,regext_index
+	loop load_regext_loop
+	rtn
+
+load_sk:
+	arg mem_le_sk,contr
+	branch load_key
+
+clear_hidata:
+	force 4,loopcnt
+	branch clear_data_rest
+
+regext_clear:
+	force 0,regext_index
+	force 16,loopcnt
+	branch clear_loop
+
+aes_clear_data:
+	force regidx_data,regext_index
+aes_clear:
+	force 4,loopcnt
+clear_loop:
+	force 0,regext
+clear_data_rest:
+	increase 1,regext_index
+	loop clear_loop
+	rtn
+
+store_aes_result:
+	force regidx_result,regext_index
+	force 4,loopcnt
+send_aes_result_loop:
+	deposit regext
+	istore 4,contw
+	increase 1,regext_index
+	loop send_aes_result_loop
+	rtn
+
+store_enc_data:
+	force regidx_result,regext_index
+	copy regc,contw
+	add regb,1,loopcnt
+	sub loopcnt,15,null
+	branch store_enc_loop,positive
+	force 16,loopcnt
+store_enc_loop:
+	deposit regext
+	sub loopcnt,3,null
+	branch store_enc_byte,positive
+	istore 4,contw
+	increase -4,loopcnt
+	rtn zero
+	increase 1,regext_index
+	branch store_enc_loop
+store_enc_byte:
+	istore 1,contw
+	rshift8 pdata,pdata
+	loop store_enc_byte
+	rtn
+	
+	/* contr pointers to value to be compared */
+compare_res:
+	force regidx_result,regext_index
+	force 4,loopcnt
+compare_res_loop:
+	ifetch 4,contr
+	isub regext,null
+	nrtn zero
+	increase 1,regext_index
+	loop compare_res_loop
+	force 0,null
+	rtn
+
+enable_authrom:
+	fetch 1,core_clkoff
+	set0 CLOCK_OFF_AUTH_ROM,pdata
+	store 1,core_clkoff
+	rtn
+
+disable_authrom:
+	fetch 1,core_clkoff
+	set1 CLOCK_OFF_AUTH_ROM,pdata
+	store 1,core_clkoff
+	rtn
+
+//24 mem_p :ff ff ff ff ff ff ff ff fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
+//24 mem_a: fc ff ff ff ff ff ff ff fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
+//24 mem_b: b1 b9 46 c1 ec de b8 fe 49 30 24 72 ab e9 a7 0f e7 80 9c e5 19 05 21 64
+//24 mem_gx :12 10 ff 82 fd 0a ff f4 00 88 a1 43 eb 20 bf 7c f6 90 30 b0 0e a8 8d 18
+//24 mem_gy :11 48 79 1e a1 77 f9 73 d5 cd 24 6b ed 11 10 63 78 da c8 ff 95 2b 19 07
+//32 memh0   :19 cd e0 5b ab d9 83 1f 8c 68 05 9b 7f 52 0e 51 3a f5 4f a5 72 f3 6e 3c 85 ae 67 bb 67 e6 09 6a //use for sha
+init_memp:
+	arg mem_p,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3ffff
+	setsect 3,0x3fbff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3ffff
+	setsect 3,0x3ffff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3cfff
+	setsect 3,0x3ffff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3ffef
+	setsect 3,0x3ffff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x3ffff
+	setsect 2,0x3ffff
+	setsect 3,0x3ffff
+	istore 9,contw
+	setsect 0,0x3ffff
+	setsect 1,0x26c7f
+	setsect 2,0x146b
+	setsect 3,0x37bb3
+	istore 9,contw
+	setsect 0,0x1feb8
+	setsect 1,0x10c12
+	setsect 2,0x2b722
+	setsect 3,0x29fa6
+	istore 9,contw
+	setsect 0,0xe70f
+	setsect 1,0x16720
+	setsect 2,0x519e
+	setsect 3,0x19084
+	istore 9,contw
+	setsect 0,0x31012
+	setsect 1,0x360bf
+	setsect 2,0x3f0af
+	setsect 3,0x3d3
+	istore 9,contw
+	setsect 0,0x3a188
+	setsect 1,0x3ad0
+	setsect 2,0x3cbf2
+	setsect 3,0x243d9
+	istore 9,contw
+	setsect 0,0x2b030
+	setsect 1,0x36a03
+	setsect 2,0x11188
+	setsect 3,0x1e520
+	istore 9,contw
+	setsect 0,0x3a11e
+	setsect 1,0xfe5d
+	setsect 2,0xdd57
+	setsect 3,0x1ac93
+	istore 9,contw
+	setsect 0,0x11ed
+	setsect 1,0x218c4
+	setsect 2,0x8da7
+	setsect 3,0x257ff
+	istore 9,contw
+	setsect 0,0x3192b
+	setsect 1,0x34641
+	setsect 2,0x1be0c
+	setsect 3,0x366ad
+	istore 9,contw
+	setsect 0,0x1f83
+	setsect 1,0x15a23
+	setsect 2,0x3f9b0
+	setsect 3,0x3949
+	istore 9,contw
+	setsect 0,0x13a51
+	setsect 1,0x153fd
+	setsect 2,0x3372a
+	setsect 3,0xf1bb
+	istore 9,contw
+	setsect 0,0x3ae85
+	setsect 1,0x1eed9
+	setsect 2,0x9e66
+	setsect 3,0x1a8
+	istore 8,contw
+	rtn
+	
+ifdef SECURE_CONNECTION
+
+// mem_p_256:ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 ff ff ff ff
+// mem_a_256: fc ff ff ff ff ff ff ff fe ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff b1 b9 46 c1 ec de b8 fe
+// mem_gx_256: 96 c2 98 d8 45 39 a1 f4 a0 33 eb 2d 81 7d 03 77 f2 40 a4 63 e5 e6 bc f8 47 42 2c e1 f2 d1 17 6b
+// mem_gy_256: f5 51 bf 37 68 40 b6 cb ce 5e 31 6b 57 33 ce 2b 16 9e 0f 7c 4a eb e7 8e 9b 7f 1a fe e2 42 e3 4f
+// mem_le_slat :be 83 60 5a db 0b 37 60 38 a5 f5 aa 91 83 88 6c
+init_memp_256:
+ 	arg mem_p_256,contw
+        setsect 0,0x3ffff
+        setsect 1,0x3ffff
+        setsect 2,0x3ffff
+        setsect 3,0x3ffff
+        istore 9,contw
+        setsect 0,0x3ffff
+        setsect 1,0x3f
+        setsect 2,0x0
+        setsect 3,0x0
+        istore 9,contw
+        setsect 0,0x0
+        setsect 1,0x0
+        setsect 2,0x1000
+        setsect 3,0x0
+        istore 9,contw
+        setsect 0,0x3ff00
+        setsect 1,0x3ffff
+        setsect 2,0x3ffcf
+        setsect 3,0x3ffff
+        istore 9,contw
+        setsect 0,0x3ffff
+        setsect 1,0x3ffff
+        setsect 2,0x3ffff
+        setsect 3,0x3ff
+        istore 9,contw
+        setsect 0,0x0
+        setsect 1,0x0
+        setsect 2,0x0
+        setsect 3,0x0
+        istore 9,contw
+        setsect 0,0x10000
+        setsect 1,0x0
+        setsect 2,0x3f000
+        setsect 3,0x3ffff
+        istore 9,contw
+        setsect 0,0x296ff
+        setsect 1,0x22630
+        setsect 2,0x3945d
+        setsect 3,0x3d284
+        istore 9,contw
+        setsect 0,0x333a0
+        setsect 1,0x4b7a
+        setsect 2,0x37d8
+        setsect 3,0x3c9dc
+        istore 9,contw
+        setsect 0,0x3a440
+        setsect 1,0x1b958
+        setsect 2,0x38bce
+        setsect 3,0x1091f
+        istore 9,contw
+        setsect 0,0x2e12c
+        setsect 1,0x1f47c
+        setsect 2,0x356b1
+        setsect 3,0x2fd47
+        istore 9,contw
+        setsect 0,0x6837
+        setsect 1,0x2ed90
+        setsect 2,0x1ecec
+        setsect 3,0x1acc5
+        istore 9,contw
+        setsect 0,0x23357
+        setsect 1,0x18af3
+        setsect 2,0xf9e1
+        setsect 3,0x129f0
+        istore 9,contw
+        setsect 0,0x2e7eb
+        setsect 1,0x3e6e3
+        setsect 2,0x3e1a7
+        setsect 3,0x10b8b
+        istore 9,contw
+        setsect 0,0x24fe3
+        setsect 1,0x20ef
+        setsect 2,0x1b5a6
+        setsect 3,0xdc2f
+        istore 9,contw
+        setsect 0,0x13860
+        setsect 1,0x2bd69
+        setsect 2,0x391a
+        setsect 3,0x1b222
+        istore 9,contw
+        rtn
+endif
+
Index: program/sim.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/sim.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/sim.prog	(working copy)
@@ -0,0 +1,822 @@
+simstart:
+	force 8,radio_ctrl
+	force 0,radio_ctrl
+	jam 0xff,rfen_ck
+	jam 5,core_clksel
+	jam 0,core_clkoff
+	jam 0,core_clkoff+1
+//	call sim_gpio
+//	jam 0xa0,0x90a
+//	jam 0x8f,0x90d
+//	branch sim_usb
+//	branch sim_iic
+//	branch sim_clk
+//	call sim_cal
+//	call sim_uart
+//	branch sim_c1
+//	branch loop
+//	call sim_spi
+//	call sim_eep
+//	branch test_tx
+	branch sim_le
+//	branch sim_250k
+	branch sim_main
+sim_lpm:
+	fetch 1,0x9ffd
+	beq 1,sim_assert
+	setarg 0
+	store 8,mem_gpio_wakeup_low
+	arg 30,temp
+	branch lpm_sleep
+sim_lpm_sleep:
+	jam 1,mem_context
+	branch sim_lpm_wait,wake
+	jam 0x70,core_bist_ctrl
+	jam ccnt_start,core_misc_ctrl
+sim_lpm_wait:
+	call lpo_calibration
+	fetch 3,mem_clks_per_lpo
+	branch sim_lpm_wait,blank
+	call lpm_recover_clk,wake
+	jam 0x1b,mem_lpm_ldocnt
+	arg sim_assert,loopcnt
+	fetch 1,core_gpio_wakeup_low+2
+	bbit0 2,sim_lpm_loop
+	until null,lpo_edge
+	jam 0x20,core_misc_ctrl
+	until null,lpo_edge
+sim_lpm_loop:
+	fetch 1,core_misc_status
+	bbit1 6,sim_lpm_loop
+	fetch 1,core_gpio_in+3
+	compare 0x20,pdata,0x20
+	setarg 0
+	setflag true,29,pdata
+	setflag true,30,pdata
+	store 4,mem_gpio_wakeup_low
+	setarg 0
+	nsetflag true,29,pdata
+	nsetflag true,30,pdata
+	store 4,mem_gpio_wakeup_high
+	arg 300,temp
+	branch lpm_sleep
+
+sim_assert:
+	branch sim_assert
+
+
+sim_main:
+	call init_param
+	setarg 0
+	store 2,core_clkoff
+	setarg 0xff00
+	store 2,core_lpm_reg+2
+	jam lpmreg_sel_ctrl2,core_lpm_wr
+	fetch 1,mem_sim_slave
+	beq 1,sim_slave
+	jam dvc_op_hci,mem_device_option
+	fetch 6,mem_lap
+	store 6,mem_hci_plap
+	setarg 0xbdbdbd
+	store 3,mem_lap
+	istore 3,contw
+	jam hci_cmd_create_conn,mem_hci_cmd
+	force 0x10,pdata
+	add pdata,-2,clkn_bt
+	store 4,mem_page_clk
+	rshift clkn_bt,pdata
+	store 4,mem_last_clkn
+	jam 0,mem_scan_mode
+sim_loop:
+	call idle_dispatch
+	fetch 1,mem_context
+	bbit0 state_inconn,sim_skip
+	set1 mark_tx_l2cap,mark
+	fetch 1,mem_context + coffset_op		
+	set1 op_txl2cap,pdata
+	store 1,mem_context + coffset_op
+	jam 0,mem_context + coffset_lmp_to_send
+	jam 0,mem_lmo_opcode2
+	setarg 300
+	store 2,mem_tx_len
+	setarg mem_tmp_buffer
+	store 2,mem_txptr
+	jam 6,mem_tx_lch
+	jam 1,mem_hci_conn_handle
+sim_skip:
+	call connection_dispatch
+	branch sim_loop		
+
+sim_slave:
+	jam 2,mem_scan_mode
+	call page_scan_dispatch
+	branch sim_skip
+
+sim_le:
+//	jam lemode_2m,mem_le_mode
+//  jam lemode_lr_s2,mem_le_mode
+//  jam lemode_lr_s8,mem_le_mode
+	fetch 1,mem_sim_slave
+	beq 1,sim_le_slave
+	jam 1,mem_le_scan_enable
+sim_le_loop:
+	call le_advertising_dispatch
+	branch sim_le_loop
+
+sim_le_slave:
+	jam 1,mem_le_adv_enable
+	nop 1000
+	branch sim_le_loop
+
+sim_usb:
+	call usb_init
+sim_usb_loop:
+	call usb_isr
+	branch sim_usb_loop
+
+sim_uart:
+	jam 0x67,mem_h5tx_buf
+	setarg mem_h5tx_buf
+	add pdata,0x80,temp
+	call uarta_init_tx
+	increase 0x80,pdata
+	increase 0x80,temp
+	call uartb_init_rx
+	jam gpcfg_uart_txd,core_gpio_conf
+	jam gpcfg_uartb_rxd | gpcfg_pullup,core_gpio_conf + 1
+	jam 0x81,core_uart_ctrl
+	jam 0x81,core_uartb_ctrl
+	setarg 0x30
+	store 2,core_uart_baud
+	store 2,core_uartb_baud
+	fetch 1,mem_sim_slave
+	beq 1,sim_uart_slave
+	call uarta_prepare_tx
+	call sim_uart_wait+3
+	setarg 0x1357d9a
+	istore 4,contu
+	arg 0xaa69,rega
+	istorer rega,2,contu
+	setarg 0xfedcb3
+	istore 3,contu
+	storer contu,2,core_uart_twptr
+sim_uart_wait:
+	fetch 1,core_uart_status
+	bbit1 uart_status_tx_busy,sim_uart_wait
+	nop 200
+	rtn
+
+sim_uart_slave:
+	fetch 1,core_uartb_status
+	bbit1 uart_status_rx_fifo_empty,sim_uart_slave
+	fetch 1,core_uartb_rxitems
+	bne 9,sim_uart_slave
+	fetcht 8,mem_h5tx_buf
+	call uartb_prepare_rx
+	ifetch 8,contu
+	isub temp,null
+	nbranch assert,zero
+	rtn
+
+
+
+sim_cal:
+
+	call tx_iq_precomp
+	fetchr regf,2,mem_omega
+	ifetchr regf,2,contr
+	ifetchr regf,2,contr
+	fetchr regf,2,mem_b1
+	ifetchr regf,2,contr
+	fetchr regf,2,mem_b2
+	ifetchr regf,2,contr
+	arg 0x1000,timeup
+	call tx_iq_cal
+	jam 1,core_ice_ctrl
+
+	arg 0x1000,timeup
+	call rx_iq_comp
+	jam 1,core_ice_ctrl
+	
+
+ifdef NULL
+
+sim_iic:
+	call iicd_init_12m
+	setarg 3
+	store 2,core_iicd_txlen
+	setarg 0x1f051e
+	store 3,mem_iicd_addr
+	setarg mem_iicd_addr
+	store 2,core_iicd_txaddr
+	setarg 1
+	store 2,core_iicd_rxlen
+	jam 3,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	nop 300
+	setarg 0xd321d2
+	store 3,mem_iicd_addr
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+s_loop:
+	branch s_loop
+
+sim_gpio:
+	jam 0xc0,core_gpio_pu3
+	call lpm_disable_exen_output
+	fetch 4,core_gpio_in
+	bbit0 4,sim_gpio + 2
+	nop 3
+	fetch 4,core_gpio_in
+	nop 3
+	fetch 4,core_gpio_in
+	rtn
+
+
+	
+sim_250k:
+	call init_250k
+	fetch 1,0x8001
+	bbit1 7,sim_250k_rx
+	call tx_radio_freq
+	call start_transmitter	/* get ready for that id packet */
+	nop 600
+	enable encode_fec0
+	set1 TXGFSK,radio_ctrl
+	force 0,pdata
+	inject mod,9
+	setarg 0xaa
+	inject mod,8
+	preload access
+	inject mod,32
+	setarg 0x1da861
+	inject mod,24
+	setarg 0x94445b
+	inject mod,24
+	setarg 0x1275f
+	inject mod,24
+	branch loop
+sim_250k_rx:
+	call rx_radio_freq
+	call start_receiver	/* wait for that id packet from master */
+	enable decode_fec0
+	correlate null,never
+	parse demod,bucket,72
+	branch loop
+
+	
+
+
+
+
+sim_spi:
+	call spid_init_flash
+	call spid_unlock_flash
+	call spid_init
+	setarg 0x35
+	call spid_read_reg
+	nop 200
+	force 4,temp
+	setarg 0x42
+	branch spid_read_regs
+
+sim_eep:
+	call iicd_init_12m
+	setarg 3
+	store 2,core_iicd_txlen
+	setarg 0x1f051e
+	store 3,mem_iicd_addr
+	setarg mem_iicd_addr
+	store 2,core_iicd_txaddr
+	setarg 1
+	store 2,core_iicd_rxlen
+	jam 3,core_iicd_ctrl
+	jam iicd_start,core_misc_ctrl
+	call wait_iicd_done
+	nop 200
+	setarg 0x18f7a3b
+	store 4,mem_iicd_addr
+	arg mem_iicd_addr,rega
+	arg 4,temp
+	setarg 0x1235
+	call iicd_write_eep
+	nop 300
+	arg mem_ucode_keybuf,rega
+	arg 1,temp
+	setarg 0x3512
+	store 2,mem_addr_mi
+	call iicd_read_eep
+	arg 1,temp
+	setarg 0x3512
+	store 2,mem_addr_mi
+	call iicd_read_eep
+	nop 200
+	setarg 0xa1
+	arg 3,temp
+	arg mem_ucode_keybuf,rega
+	branch iicd_read_data
+
+sim_otp:
+	setarg 0x123456
+	store 3,0x800
+	arg 0x10,temp
+	arg 0x800,rega
+	arg 0x10,loopcnt
+	branch otp_write
+
+sim_clk:
+	add lpo_time,12,alarm
+	snooze
+clock_loop:
+	nop 100
+	jam 1,core_config
+	setflag user,0,pdata
+	random pdata
+	and_into 0x1f,pdata
+	store 1,core_clksel
+	nop 70
+	jam 2,core_kick
+	nop 200
+	branch clock_loop
+	jam 2,core_clksel
+	setarg 1500
+	call sleep
+	jam 0x42,core_clksel
+	add lpo_time,200,alarm
+	snooze
+	branch 0x4000
+
+sim_c1:
+	setarg 0xb4b5b6
+	store 3,mem_le_lap
+	setarg 0xb1b2b3
+	istore 3,contw
+	setarg 0xa4a5a6
+	store 3,mem_le_plap
+	setarg 0xa1a2a3
+	istore 3,contw
+	setarg 0x101
+	store 4,mem_le_preq
+	setarg 0x70710
+	istore 3,contw
+	setarg 0x302
+	store 4,mem_le_pres
+	setarg 0x50008
+	istore 3,contw
+
+	arg regidx_key,regext_index
+	arg 4,loopcnt
+sim_clear_key_loop:
+	arg 0,regext
+	increase 1,regext_index
+	loop sim_clear_key_loop
+
+	setarg 0x702EE0
+	store 3,mem_le_rconfirm
+	setarg 0x274EC6
+	istore 3,contw
+	setarg 0x0E6388
+	istore 3,contw
+	setarg 0x56AD6F
+	istore 3,contw
+	setarg 0x83D521
+	istore 3,contw
+	setarg 0x57	
+	istore 1,contw
+	arg mem_le_rconfirm,rega
+	call aes_init
+	call function_c1
+	branch loop
+endif
+
+
+
+
+
+//iic read function
+//function name:sim_iic_read_eep_data
+//input:
+//temp:the length that simulation iic want to read eeprom data
+//rega:the memmory point that simulation iic read data store
+//regb:the eeprom address offset
+//mark_eeprom_size:select 02 or other
+//output:nc
+sim_iic_read_eep_data:
+	fetch 2,mem_eeprom_base
+	iadd regb,pdata
+	byteswap pdata,pdata
+	store 2,mem_addr_mi
+	copy temp,regb
+	
+	call sim_iic_start
+	setarg 0xa0
+	call sim_iic_send_byte
+	fetch 1,mem_addr_mi
+	call sim_iic_send_byte
+	bmark1 mark_eeprom_size,sim_iic_read_eep_data_2k
+	fetch 1,mem_addr_mi + 1
+	call sim_iic_send_byte
+sim_iic_read_eep_data_2k:
+	call sim_iic_stop
+
+	call sim_iic_start
+	setarg 0xa1
+	call sim_iic_send_byte
+
+sim_iic_read_eep_data_loop:
+	call sim_iic_read_byte
+	istore 1,rega
+	increase 1,rega
+	increase -1,regb
+	nbranch sim_iic_read_eep_data_loop,zero
+	branch sim_iic_stop
+
+
+//iic write data function
+//function name:sim_iic_write_eep_data
+//input:
+//temp:the length that simulation iic want to write eeprom data
+//rega:the memmory point that simulation iic write data read
+//regb:the eeprom address
+//mark_eeprom_size:select 02 or other
+//output:nc
+sim_iic_write_eep_data:
+	byteswap regb,pdata
+	store 2,mem_addr_mi
+	copy temp,regb
+
+	call sim_iic_start
+	setarg 0xa0
+	call sim_iic_send_byte
+
+	fetch 1,mem_addr_mi
+	call sim_iic_send_byte
+	bmark1 mark_eeprom_size,sim_iic_write_eep_data_loop
+	fetch 1,mem_addr_mi + 1
+	call sim_iic_send_byte
+sim_iic_write_eep_data_loop:
+	ifetch 1,rega
+	call sim_iic_send_byte
+	increase 1,rega
+	increase -1,regb
+	nbranch sim_iic_write_eep_data_loop,zero
+	branch sim_iic_stop
+//	bmark1 mark_eeprom_size
+
+//use reg:pdata,contr,contw,loopcnt
+sim_iic_wait_ack:
+	arg 10,loopcnt
+	call sim_iic_release_sda
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+sim_iic_wait_ack_loop:
+	call sim_iic_read_sda_level
+	branch sim_iic_scl_output_low,blank	//scl = 0
+	loop sim_iic_wait_ack_loop
+	branch sim_iic_scl_output_low		//scl = 0	
+
+
+//use reg:pdata,contr,contw,rega,queue
+sim_iic_ack_slave:
+	call sim_iic_scl_output_low		//scl = 0	
+	call sim_iic_sda_output_low		//sda = 0
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	branch sim_iic_scl_output_low	//scl = 0	
+
+
+//output:pdata receive byte data
+//use reg:pdata,contr,contw,loopcnt,regc,rega
+sim_iic_read_byte:
+	arg 8,loopcnt
+	arg 0,regc
+	call sim_iic_release_sda
+sim_iic_read_byte_loop:
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	lshift regc,regc	
+	call sim_iic_read_sda_level
+	iadd regc,regc
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_scl_output_low		//scl = 0	
+	loop sim_iic_read_byte_loop
+	call sim_iic_ack_slave
+	copy regc,pdata
+	rtn
+
+//input:pdata send byte data
+//use reg:pdata,contr,contw,loopcnt,regc,rega
+sim_iic_send_byte:
+	arg 8,loopcnt
+	copy pdata,regc
+	call sim_iic_scl_output_low		//scl = 0	
+sim_iic_send_byte_loop:
+	isolate1 7,regc
+	call sim_iic_sda_output_high,true	//sda = 1
+	ncall sim_iic_sda_output_low,true	//sda = 0
+	lshift regc,regc
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_scl_output_low		//scl = 0	
+	call sim_iic_delay				//delay 2.5us
+	loop sim_iic_send_byte_loop
+	branch sim_iic_wait_ack
+
+
+//use reg:pdata,contr,contw,rega
+sim_iic_start:
+	call sim_iic_sda_output_high	//sda = 1
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_sda_output_low		//sda = 0
+	call sim_iic_delay				//delay 2.5us
+	branch sim_iic_scl_output_low		//scl = 0
+
+
+//use reg:pdata,contr,contw,rega
+sim_iic_stop:
+	call sim_iic_sda_output_low		//sda = 0
+	call sim_iic_scl_output_high	//scl = 1
+	call sim_iic_delay				//delay 2.5us
+	call sim_iic_sda_output_high	//sda = 1
+	branch sim_iic_delay				//delay 2.5us
+
+
+//scl = 1
+sim_iic_scl_output_high:
+	enable user
+	fetch 1,SIM_IIC_SCL_GPIO_NUM
+	branch sim_iic_config_gpio
+
+//scl = 0
+sim_iic_scl_output_low:
+	disable user
+	fetch 1,SIM_IIC_SCL_GPIO_NUM
+	branch sim_iic_config_gpio
+
+//sda = 1
+sim_iic_sda_output_high:
+	enable user
+	fetch 1,SIM_IIC_SDA_GPIO_NUM
+	branch sim_iic_config_gpio
+
+//sda = 0
+sim_iic_sda_output_low:
+	disable user
+	fetch 1,SIM_IIC_SDA_GPIO_NUM
+	branch sim_iic_config_gpio
+
+//input:pdata the gpio number
+//input:user flag, if enable user,config gpio output high level; if disable user, config gpio output low level
+//use reg:pdata,contr,contw,queue,rega
+sim_iic_config_gpio:
+	and pdata,0x07,queue
+	rshift3 pdata,pdata
+	arg core_gpio_conf,temp
+	iadd temp,temp
+	ifetch 1,temp
+	qset1 pdata
+	istore 1,temp
+	increase 4,temp
+	ifetch 1,temp
+	qsetflag user,pdata
+	istore 1,temp
+	rtn
+
+
+sim_iic_release_sda:
+	fetch 1,SIM_IIC_SDA_GPIO_NUM
+	and pdata,0x07,queue
+	rshift3 pdata,pdata
+	arg core_gpio_conf,temp
+	iadd temp,temp
+	ifetch 1,temp
+	qset0 pdata
+	istore 1,temp
+	rtn	
+
+//get sda level
+//output:if sda high level ,pdata is 1;if sda low level ,pdata is 0
+//use reg:pdata,contr,contw,queue,rega,temp
+sim_iic_read_sda_level:
+	nop 4
+	fetch 1,SIM_IIC_SDA_GPIO_NUM
+	and pdata,0x07,queue
+	rshift3 pdata,pdata
+	arg core_gpio_in,temp
+	iadd temp,temp
+	setarg 0
+	ifetcht 1,temp
+	qisolate1 temp
+	setflag true,0,pdata
+	rtn	
+
+//delay 2.5us
+sim_iic_delay:
+//	nop 1
+	rtn
+
+/**********************************/
+
+
+sim_aes_ecb:
+	call sim_aes_key_config
+	call sim_aes_enc_case0
+	call sim_aes_dec_case0
+	branch loop
+
+sim_aes_key_config:
+	//key
+	force 4,regext_index
+	arg 0x0302,pdata
+	lshift16 pdata,pdata
+	arg 0x0100,temp
+	ior temp,regext
+	force 5,regext_index
+	arg 0x0706,pdata
+	lshift16 pdata,pdata
+	arg 0x0504,temp
+	ior temp,regext
+	force 6,regext_index
+	arg 0x0b0a,pdata
+	lshift16 pdata,pdata
+	arg 0x0908,temp
+	ior temp,regext
+	force 7,regext_index
+	arg 0x0f0e,pdata
+	lshift16 pdata,pdata
+	arg 0x0d0c,temp
+	ior temp,regext
+	rtn
+
+sim_aes_enc_case0:
+	//payload
+	force 0,regext_index
+	arg 0x0302,pdata
+	lshift16 pdata,pdata
+	arg 0x0100,temp
+	ior temp,regext
+	force 1,regext_index
+	arg 0x0706,pdata
+	lshift16 pdata,pdata
+	arg 0x0504,temp
+	ior temp,regext
+	force 2,regext_index
+	arg 0x0b0a,pdata
+	lshift16 pdata,pdata
+	arg 0x0908,temp
+	ior temp,regext
+	force 3,regext_index
+	arg 0x0f0e,pdata
+	lshift16 pdata,pdata
+	arg 0x0d0c,temp
+	ior temp,regext
+	branch do_aes_ocb
+
+
+//input:enc user payload; 0x5aea 53c6 5894 c3f1 45f0 6e41 b50b 940a
+//output:dec user payload
+sim_aes_dec_case0:
+	setarg 0x5000
+	call dec_key_initial
+
+	arg 0x4f00,regb
+	arg 0x4f20,regc
+	call do_aes_ecb_dec
+
+	//缁撴灉姣斿
+	fetch 4,0x4f20
+	bne 0x03020100,p_assert
+	ifetch 4,contr
+	bne 0x07060504,p_assert
+	ifetch 4,contr
+	bne 0x0b0a0908,p_assert
+	ifetch 4,contr
+	bne 0x0f0e0d0c,p_assert
+	rtn
+
+
+sim_aes_cbc:
+	call sim_aes_key_config
+	call sim_aescbc_enc_case0
+	call sim_aescbc_dec_case0
+	branch loop
+
+sim_aescbc_enc_case0:
+	//iv
+	force 0,regext_index
+	arg 0x5a5a,pdata
+	lshift16 pdata,pdata
+	arg 0x5a5a,temp
+	ior temp,regext
+	force 1,regext_index
+	arg 0x5a5a,pdata
+	lshift16 pdata,pdata
+	arg 0x5a5a,temp
+	ior temp,regext
+	force 2,regext_index
+	arg 0x6363,pdata
+	lshift16 pdata,pdata
+	arg 0x6363,temp
+	ior temp,regext
+	force 3,regext_index
+	arg 0x6363,pdata
+	lshift16 pdata,pdata
+	arg 0x6363,temp
+	ior temp,regext
+	call aes_init
+	//payload
+	force 0,regext_index
+	arg 0x0302,pdata
+	lshift16 pdata,pdata
+	arg 0x0100,temp
+	ior temp,regext
+	force 1,regext_index
+	arg 0x0706,pdata
+	lshift16 pdata,pdata
+	arg 0x0504,temp
+	ior temp,regext
+	force 2,regext_index
+	arg 0x0b0a,pdata
+	lshift16 pdata,pdata
+	arg 0x0908,temp
+	ior temp,regext
+	force 3,regext_index
+	arg 0x0f0e,pdata
+	lshift16 pdata,pdata
+	arg 0x0d0c,temp
+	ior temp,regext
+	force 0x32,aes_ctrl
+	force 0x2,aes_ctrl
+	call wait_aes
+	force 0,aes_ctrl
+
+	//payload
+	force 0,regext_index
+	arg 0x0302,pdata
+	lshift16 pdata,pdata
+	arg 0x0100,temp
+	ior temp,regext
+	force 1,regext_index
+	arg 0x0706,pdata
+	lshift16 pdata,pdata
+	arg 0x0504,temp
+	ior temp,regext
+	force 2,regext_index
+	arg 0x0b0a,pdata
+	lshift16 pdata,pdata
+	arg 0x0908,temp
+	ior temp,regext
+	force 3,regext_index
+	arg 0x0f0e,pdata
+	lshift16 pdata,pdata
+	arg 0x0d0c,temp
+	ior temp,regext
+	force 0x32,aes_ctrl
+	force 0x2,aes_ctrl
+	call wait_aes
+	force 0,aes_ctrl
+	rtn
+
+
+
+
+sim_aescbc_dec_case0:
+	setarg 0x5000
+	call dec_key_initial
+
+	arg 0x4e00,rega	//xor data
+	arg 0x4e20,regb	//enc data
+	arg 0x4e40,regc	//dec data
+	call do_aes_cbc_dec
+
+	//缁撴灉姣斿
+	fetch 4,0x4e40
+	bne 0x03020100,p_assert
+	ifetch 4,contr
+	bne 0x07060504,p_assert
+	ifetch 4,contr
+	bne 0x0b0a0908,p_assert
+	ifetch 4,contr
+	bne 0x0f0e0d0c,p_assert
+
+	arg 0x4e20,rega	//xor data
+	arg 0x4e30,regb	//enc data
+	arg 0x4e50,regc	//dec data
+	call do_aes_cbc_dec
+
+	//缁撴灉姣斿
+	fetch 4,0x4e50
+	bne 0x03020100,p_assert
+	ifetch 4,contr
+	bne 0x07060504,p_assert
+	ifetch 4,contr
+	bne 0x0b0a0908,p_assert
+	ifetch 4,contr
+	bne 0x0f0e0d0c,p_assert
+	rtn
+
+
Index: program/simple_pairing.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/simple_pairing.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/simple_pairing.prog	(working copy)
@@ -0,0 +1,2919 @@
+
+publickey_init:
+	fetch 1,mem_ssp_enable
+	nbranch sp_initialize,blank
+	branch sp_initialize_256
+
+sp_calc_sequence_256_check:
+	bpatchx patch2e_2,mem_patch2e
+	fetch 1,mem_ssp_enable
+	rtn blank
+	fetch 1,mem_sp_local_key_invalid
+	rtnne SP_KEY_VALID
+	fetch 1,mem_secure_connections_enable
+	rtn blank
+	fetch 1,mem_sc_local_key_invalid
+	rtneq SP_KEY_VALID_256
+	fetch 2,mem_ui_state_map
+	bbit1 UI_STATE_BT_CONNECTED,stop_publickey_calc_256
+	fetch 1,mem_sc_calc
+	beq SP_CALC_STANDBY,sp_initialize_256
+	rtn
+stop_publickey_calc_256:
+	jam SP_CALC_STANDBY,mem_sc_calc	
+	rtn
+
+
+sp_br_secure_connection_enable:
+	fetch 1,mem_secure_connections_enable
+	set1 SECURE_CONNECTIONS_BR_BIT,pdata
+	store 1,mem_secure_connections_enable
+	rtn
+	
+sp_br_secure_connection_disable:
+	fetch 1,mem_secure_connections_enable
+	set0 SECURE_CONNECTIONS_BR_BIT,pdata
+	store 1,mem_secure_connections_enable
+	rtn
+	
+ifdef SIMPLE_PAIRING
+
+sp_initialize:
+	bpatchx patch2e_3,mem_patch2e
+	fetch 1,mem_ssp_enable 
+	nbranch sp_pubkey_calc, blank
+sp_reset:
+	call sp_clear_flags
+	jam SP_KEY_INVALID,mem_sp_local_key_invalid
+	jam SP_CALC_STANDBY,mem_sp_calc
+	rtn
+	
+sp_wait_pubkey_calc_done:
+	fetch 1,mem_ssp_enable
+	rtn blank
+	fetch 1,mem_sp_local_key_invalid
+	rtneq SP_KEY_VALID
+	call sp_calc_sequence
+	branch sp_wait_pubkey_calc_done
+	
+sp_clear_flags:
+	bpatchx patch2e_4,mem_patch2e
+	setarg mem_sp_state_end
+	arg mem_sp_state_start,contw
+	isub contw,loopcnt
+	call clear_mem
+	setarg mem_sp_state_xmem_end
+	arg mem_sp_state_xmem,contw
+	isub contw,loopcnt
+	branch clear_mem
+
+sp_generate_local_key:
+	jam SP_FLAG_COMMIT,mem_sp_flag  
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,sp_generate_local_key0_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,sp_generate_local_key0_192
+	rtn	
+	
+sp_generate_local_key0_256:
+	fetch 1,mem_sc_local_key_invalid
+	beq SP_KEY_VALID_256,sp_start_send_pubkey_256
+	branch sp_pubkey_calc_256
+sp_start_send_pubkey_256:
+	call sp_dhkey_calc_256
+	fetch 1,mem_master_sp_state
+	nrtn blank
+	jam SP_STAT_KEY_SEND,mem_sp_state
+	rtn
+	
+sp_master_generate_local_key:
+	fetch 1,mem_sp_local_key_invalid
+	beq SP_KEY_VALID,sp_dhkey_calc
+	branch assert
+	
+sp_generate_local_key0_192:
+	fetch 1,mem_sp_local_key_invalid
+	beq SP_KEY_VALID,sp_start_send_pubkey
+	branch sp_pubkey_calc
+    
+sp_start_send_pubkey:
+	call sp_dhkey_calc
+	fetch 1,mem_master_sp_state
+	nrtn blank
+	jam SP_STAT_KEY_SEND,mem_sp_state
+	rtn
+
+
+sp_calc_check_publickey_256:
+	call sp_calc_b256
+	arg mem_le_pubkey_remote_y_256,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod_256   
+	arg mem_le_pubkey_remote_x_256,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod_256   
+  	arg mem_t2_256,rega
+	arg mem_le_pubkey_remote_x_256,regb
+	arg mem_t2_256,contw
+	call bn_mulmod_256	
+  	arg mem_a_256,rega
+	arg mem_le_pubkey_remote_x_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256	
+  	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod_256	 
+  	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	call bn_addmod_256	 
+	arg 32,loopcnt
+  	arg mem_t7_256,rega
+	arg mem_t0_256,regb
+	branch  string_compare
+	
+sp_calc_b256:
+	arg mem_gy_256,rega
+	arg mem_t0_256,contw
+	call bn_sqrmod_256   
+	arg mem_gx_256,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod_256    
+  	arg mem_t2_256,rega
+	arg mem_gx_256,regb
+	arg mem_t2_256,contw
+	call bn_mulmod_256	
+  	arg mem_a_256,rega
+	arg mem_gx_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256	 
+  	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod_256	 
+  	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	branch  bn_submod_256	
+	
+sp_calc_check_publickey:
+	call sp_calc_b
+	arg mem_sp_pubkey_remote_y,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod 
+	arg mem_sp_pubkey_remote_x,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod
+  	arg mem_t2_256,rega
+	arg mem_sp_pubkey_remote_x,regb
+	arg mem_t2_256,contw
+	call bn_mulmod	
+  	arg mem_a,rega
+	arg mem_sp_pubkey_remote_x,regb
+	arg mem_t3_256,contw
+	call bn_mulmod	
+  	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod	 
+  	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	call bn_addmod	 
+ 	arg 24,loopcnt
+ 	arg mem_t7_256,rega
+	arg mem_t0_256,regb
+	branch  string_compare
+	
+sp_calc_b:
+	arg mem_gy,rega
+	arg mem_t0_256,contw
+	call bn_sqrmod   
+	arg mem_gx,rega
+	arg mem_t2_256,contw
+  	call bn_sqrmod
+  	arg mem_t2_256,rega
+	arg mem_gx,regb
+	arg mem_t2_256,contw
+	call bn_mulmod	
+	arg mem_a,rega
+	arg mem_gx,regb
+	arg mem_t3_256,contw
+	call bn_mulmod	 
+  	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod	 
+  	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	branch  bn_submod	
+
+   
+sp_calculate_commitment:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,sp_calculate_commitment_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,sp_calculate_commitment_192
+	rtn
+
+sp_calculate_commitment_256:
+	fetch 1,mem_sc_calc
+	bne SP_CALC_STANDBY,sp_calculate_commitment_wait_dhkey_calc
+	call sp_local_random_key_generator
+	arg mem_sp_prarm_stack,contw
+	setarg mem_sp_random_local_end
+	istore 2,contw
+	setarg mem_sc_pubkey_local_x_256+32
+	istore 2,contw
+	setarg mem_le_pubkey_remote_x_256+32
+	istore 2,contw
+//	branch sp_calculate_commitment0
+sp_calculate_commitment0_256:
+	call function_f1_256
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_COMMIT_CALC,master_sp_calculate_commitment0
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	jam SP_STAT_COMMIT_SEND,mem_sp_state
+	rtn
+	
+sp_calculate_commitment_192:	
+	fetch 1,mem_sp_calc
+	bne SP_CALC_STANDBY,sp_calculate_commitment_wait_dhkey_calc
+	call sp_local_random_key_generator
+	arg mem_sp_prarm_stack,contw
+	setarg mem_sp_random_local_end
+	istore 2,contw
+	setarg mem_sp_pubkey_local_x_end
+	istore 2,contw
+	setarg mem_sp_pubkey_remote_x_end
+	istore 2,contw
+	branch sp_calculate_commitment0
+master_sp_calculate_commitment:
+	arg mem_sp_prarm_stack,contw
+	setarg mem_sp_random_remote_end
+	istore 2,contw
+	setarg mem_sp_pubkey_remote_x_end
+	istore 2,contw
+	setarg mem_sp_pubkey_local_x_end
+	istore 2,contw
+sp_calculate_commitment0:
+	call function_f1_192
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_COMMIT_CALC,master_sp_calculate_commitment0
+	jam SP_FLAG_COMMIT,mem_sp_flag
+	jam SP_STAT_COMMIT_SEND,mem_sp_state
+	rtn
+master_sp_calculate_commitment0:
+	jam SP_STAT_COMMITMENT_COMPARE,mem_master_sp_state
+	call sp_master_generate_local_key
+	branch master_set_mem_master_sp_flag 
+
+sp_local_random_key_generator:
+	arg mem_sp_random_local,contw
+	force 8,queue
+	branch random_generator
+  
+sp_calculate_commitment_wait_dhkey_calc:
+	jam      SP_FLAG_COMMIT,mem_sp_flag
+	rtn
+    
+sp_confirm_check:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,sp_confirm_check_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,sp_confirm_check_192
+sp_confirm_check_wait:
+	jam SP_STAT_CONFIRM_CHECK,mem_sp_state
+	jam SP_FLAG_COMMIT,mem_sp_flag  
+	rtn
+
+sp_confirm_check_256:	
+	fetch 1,mem_sp_dhkey_invalid
+	bne SP_KEY_VALID_256,sp_confirm_check_wait
+	branch sp_confirm_check_common
+	
+sp_confirm_check_192:	
+	fetch 1,mem_sp_dhkey_invalid
+	bne SP_KEY_VALID,sp_confirm_check_wait
+sp_confirm_check_common:	
+	arg      mem_addr_value,contw
+	fetch    6,mem_lap
+	istore   6,contw
+	fetch    6,mem_plap
+	istore   6,contw
+	fetch    3,mem_sp_iocap_remote
+	istore   3,contw 
+
+	call     function_f3a
+
+	arg      mem_sp_calc_result_high,rega
+	arg      mem_sp_check_result,regb    
+	force    4,queue 
+	call     compare4
+	nbranch  sp_confirm_check_failed,true  
+
+	call sp_confirm_check_success
+	jam LMP_DHKey_Check,mem_lmi_opcode2
+	branch tid_set_reply
+    
+sp_confirm_check_success:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_CONFIRM_CHECK,sp_confirm_check_success_master
+	jam SP_STAT_CONFIRM_CALC,mem_sp_state
+	jam SP_FLAG_COMMIT,mem_sp_flag  
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	rtn
+sp_confirm_check_success_master:
+	jam LMP_ACCEPTED,mem_lmo_opcode2
+	jam SP_STATE_END,mem_master_sp_state
+	branch master_set_mem_master_sp_flag
+	//accept opcode?
+	
+sp_confirm_check_failed:
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_CONFIRM_CHECK,sp_confirm_check_failed_master
+	jam SP_STAT_NULL,mem_sp_state
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	//accept opcode?
+	jam      AUTHENTICATION_FAILURE_ERROR,mem_lmo_reason2 
+	rtn
+sp_confirm_check_failed_master:
+	jam LMP_NOT_ACCEPTED,mem_lmo_opcode2
+	jam SP_STAT_NULL,mem_master_sp_state
+	rtn
+    
+sp_confirm_calc:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,sp_confirm_calc_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,sp_confirm_calc_192
+	rtn
+	
+sp_confirm_calc_256:	
+	fetch 1,mem_sp_dhkey_invalid
+	beq SP_KEY_VALID_256,sp_confirm_calc_ready
+	jam 	SP_STAT_CONFIRM_CALC,mem_master_sp_state
+	branch master_set_mem_master_sp_flag
+	
+sp_confirm_calc_192:
+	fetch 1,mem_sp_dh_ready
+	beq SP_FLAG_COMMIT, sp_confirm_calc_ready
+	jam 	SP_STAT_CONFIRM_CALC,mem_master_sp_state
+	branch master_set_mem_master_sp_flag
+	
+sp_confirm_calc_ready:
+	arg      mem_addr_value,contw
+	fetch    6,mem_plap
+	istore   6,contw
+	fetch    6,mem_lap
+	istore   6,contw
+	fetch    3,mem_lmp_io_cap_payload_iocap
+	istore   3,contw 
+
+	call     function_f3b
+	fetch 1,mem_master_sp_state
+	beq SP_STAT_CONFIRM_CALC,sp_confirm_calc_master
+	jam      SP_STAT_CONFIRM_SEND,mem_sp_state
+	jam      SP_FLAG_COMMIT,mem_sp_flag
+	rtn
+sp_confirm_calc_master:
+	jam      SP_STAT_CONFIRM_SEND,mem_master_sp_state
+	jam      SP_FLAG_COMMIT,mem_master_sp_flag
+	rtn   
+
+sp_master_key_prarm_push:
+	arg mem_sp_prarm_stack,contw
+	fetch    6,mem_plap
+	istore   6,contw
+	fetch    6,mem_lap
+	istore   6,contw
+	setarg mem_sp_random_local_end
+	istore 2,contw
+	setarg mem_sp_random_remote_end
+	istore 2,contw
+	branch sp_link_key_calc
+sp_link_key_prarm_push:
+	jam      SP_STAT_DONE,mem_sp_state    
+	arg mem_sp_prarm_stack,contw
+	fetch    6,mem_lap
+	istore   6,contw
+	fetch    6,mem_plap
+	istore   6,contw
+	setarg mem_sp_random_remote_end
+	istore 2,contw
+	setarg mem_sp_random_local_end
+	istore 2,contw
+sp_link_key_calc:
+    /*calculate Link key here */
+	arg      mem_addr_value,contw
+	fetch    6,mem_sp_prarm_stack
+	istore   6,contw
+	fetch    6,mem_sp_prarm_stack+6
+	istore   6,contw
+	
+	call     function_f2    
+
+	/*handle linkkey  */
+	jam 1,mem_link_key_exists
+	arg mem_link_key,contw
+	arg mem_sp_calc_result_high,contr
+	call memcpy16
+	branch  generate_linkkey_continue
+
+//FF18A5F4EFD25E622B140CCFD6F15D0027DC8D91865F9107
+sp_debug_private:
+  	arg mem_sp_private_key,contw
+        setsect 0,0x118ff
+        setsect 1,0x3fd29
+        setsect 2,0x1ed2e
+        setsect 3,0xad89
+        istore 9,contw
+        setsect 0,0x30c14
+        setsect 1,0x75b3
+        setsect 2,0x5df
+        setsect 3,0x3709c
+        istore 9,contw
+        setsect 0,0x2918d
+        setsect 1,0x57e1
+        setsect 2,0x79
+        istore 6,contw
+        rtn
+	
+    
+sp_pubkey_calc:
+	bpatchx patch2e_5,mem_patch2e
+	fetch    1,mem_sp_local_key_invalid
+	rtnne SP_KEY_INVALID
+	fetch    1,mem_sp_calc
+	rtnne  SP_CALC_STANDBY
+//	call init_memp
+	arg      mem_sp_private_key,contw 
+	force    11,queue
+	call     random_generator
+	random   pdata
+	rshift   pdata,pdata
+	istore   2,contw 
+
+	fetch 1,mem_sp_debug_mode
+	ncall sp_debug_private,blank
+	 
+	arg      mem_k,contw
+	arg      mem_sp_private_key,contr	
+	call     memcpy24 //mem_sp_private_key=>mem_k 24BYTES
+
+	arg      mem_ax,contw
+	arg      mem_gx,contr
+	call     memcpy48 //mem_gx=>mem_ax 48bytes
+
+	arg      mem_az,contw
+	call     bn_zero
+	jam      1,mem_az //0=>mem_az 24bytes
+
+	call     eckp_calc_init
+	jam SP_CALC_PUBKEY,mem_sp_calc
+	rtn    
+	
+sp_pubkey_generated:
+	arg      mem_sp_pubkey_local,contw
+	arg      mem_bx,contr
+	call     memcpy48   
+	jam      SP_KEY_VALID,mem_sp_local_key_invalid
+	jam      SP_CALC_STANDBY,mem_sp_calc
+	rtn
+
+sp_dhkey_calc:
+	bpatchx patch2e_6,mem_patch2e
+	fetch    1,mem_sp_dhkey_invalid
+	rtnne  SP_KEY_INVALID
+	fetch    1,mem_sp_calc
+	rtnne  SP_CALC_STANDBY
+
+	arg      mem_k,contw
+	arg      mem_sp_private_key,contr	
+	call     memcpy24
+
+	arg      mem_ax,contw
+	arg      mem_sp_pubkey_remote,contr
+	call     memcpy48
+
+	arg      mem_az,contw
+	call     bn_zero
+	jam      1,mem_az
+
+	call     eckp_calc_init
+	jam      SP_CALC_DHKEY,mem_sp_calc
+	rtn 	
+	
+sp_dhkey_generated:
+	jam SP_FLAG_COMMIT,mem_sp_dh_ready
+	arg mem_sp_dhkey,contw
+	arg mem_bx,contr
+	call memcpy24
+	jam SP_KEY_VALID,mem_sp_dhkey_invalid
+	jam SP_CALC_STANDBY,mem_sp_calc
+	rtn
+
+random_generator:
+	increase -1,queue
+	nrtn     positive
+	random   pdata
+	istore   2,contw  
+	branch   random_generator
+compare4:
+	increase -1,queue
+	nbranch  compare4_success,positive
+	ifetch   4,rega
+	copy     pdata,temp
+	ifetch   4,regb
+	iflip    temp,pdata
+	nbranch  compare4_failed,zero
+	increase 4,rega
+	increase 4,regb
+	branch   compare4
+compare4_failed:
+	disable  true
+	rtn
+compare4_success:
+	enable   true
+	rtn
+
+/*************************************************/
+/** Message state machine routines ***************/
+/*************************************************/
+// simple pairing support 
+
+simple_pairing_sequence:
+	bpatchx patch2e_7,mem_patch2e
+         fetch 1,mem_sp_flag
+         rtn blank
+	call lmo_fifo_check
+	nrtn blank
+	jam      SP_FLAG_STANDBY,mem_sp_flag
+	fetch    1,mem_sp_state
+	beq  SP_STAT_KEY_SEND,sp_send_LMP_ENCAPSULATED_HEADER
+	beq  SP_STAT_COMMIT_SEND,sp_send_LMP_SIMPLE_PAIRING_COMFIRM
+	beq  SP_STAT_RANDOM_SEND,sp_send_LMP_SIMPLE_PAIRING_NUMBER
+	beq  SP_STAT_CONFIRM_SEND,sp_send_LMP_DHKEY_CHECK
+	beq  SP_STAT_KEY_GENERATE,sp_generate_local_key
+	beq  SP_STAT_COMMIT_CALC,sp_calculate_commitment
+	beq  SP_STAT_CONFIRM_CHECK,sp_confirm_check
+	beq  SP_STAT_CONFIRM_CALC,sp_confirm_calc
+	beq  SP_STAT_LINK_KEY_CALC,sp_link_key_prarm_push
+	//beq  SP_STAT_FEATURE_EXT_SEND,send_LMP_FEATURES_REQ_EXT
+	rtn  
+
+master_simple_paring_sequence:
+	bpatchx patch2f_0,mem_patch2f
+	fetch 1,mem_master_sp_flag
+	rtn blank
+	call lmo_fifo_check
+	nrtn blank
+	jam SP_FLAG_STANDBY,mem_master_sp_flag
+	fetch 1,mem_master_sp_state
+	beq SP_MASTER_STAT_START_SKIP,sp_master_send_io_cap_get
+	beq SP_MASTER_STAT_START_DONE,sp_master_send_io_cap_send
+	beq SP_STAT_KEY_SEND,sp_master_send_LMP_ENCAPSULATED_HEADER
+	beq SP_STAT_COMMIT_CALC,master_sp_calculate_commitment
+	beq SP_STAT_COMMITMENT_COMPARE,sp_master_commitment_compare
+	beq SP_STAT_RANDOM_SEND,sp_master_send_LMP_SIMPLE_PAIRING_NUMBER
+	beq SP_STAT_CONFIRM_CALC,sp_confirm_calc
+	beq SP_STAT_CONFIRM_SEND,master_sp_send_lmp_dhkey_check
+	beq SP_STAT_CONFIRM_CHECK,sp_confirm_check
+	beq SP_STATE_END,master_sp_sm_end
+	rtn
+
+master_set_mem_master_sp_flag:
+	jam SP_FLAG_COMMIT,mem_master_sp_flag
+	rtn
+	
+master_clear_mem_master_sp_flag:
+	jam SP_FLAG_STANDBY,mem_master_sp_flag
+	rtn
+sp_calc_sequence:
+	bpatchx patch2f_1,mem_patch2f
+	fetch 1,mem_ssp_enable
+	rtn blank
+	fetch 1,mem_sp_calc
+	rtn blank
+	increase 0x80,pdata
+	store    1,mem_sp_calc
+	rtnbit1 7
+	fetch    1,mem_ec_loopc
+	branch   sp_calc_sequence_done,blank
+	branch   eckp_calc
+
+sp_calc_sequence_done:    
+	call ecunmapz
+	fetch 1,mem_sp_calc
+	beq  SP_CALC_PUBKEY,sp_pubkey_generated
+	beq  SP_CALC_DHKEY,sp_dhkey_generated
+	rtn
+
+
+bn_testbit:
+	and pdata,7,queue
+	rshift3 pdata,pdata
+	iadd contr,contr
+	ifetch 1,contr
+	qisolate0 pdata
+	rtn
+
+
+ec_copy:
+	call memcpy24
+	call memcpy24
+	branch memcpy24
+	
+	
+bn_eq_zero:
+	ifetch 8,contr
+	nrtn blank
+	ifetch 8,contr
+	nrtn blank
+	ifetch 8,contr
+	rtn
+	
+	
+	/* return zero if eq */
+
+bn_eq_0:	
+	ifetch 4,rega
+	iforce temp
+	ifetch 4,regb
+	isub temp,null
+	nrtn zero
+	increase 4,rega
+	increase 4,regb
+	loop bn_eq_0
+	rtn
+
+	/* return positive if A >= B */
+bn_bigeq:
+	force 6,loopcnt
+	increase 20,rega
+	increase 20,regb
+bn_bigeq_0:	
+	ifetch 4,regb
+	iforce temp
+	ifetch 4,rega
+	isub temp,pdata
+	nrtn positive
+	nrtn blank
+	increase -4,rega
+	increase -4,regb
+	loop bn_bigeq_0
+	rtn
+
+bn_add:
+	force 6,loopcnt
+	force 0,regc
+bn_add_0:	
+	ifetch 4,rega
+	iforce temp
+	ifetch 4,regb
+	iadd temp,pdata
+	iadd regc,pdata
+	istore 4,contw
+	isolate1 32,pdata
+	setflag true,0,regc
+	increase 4,rega
+	increase 4,regb
+	loop bn_add_0
+	rtn
+
+bn_sub:
+	force 6,loopcnt
+	force 0,regc
+bn_sub_0:	
+	ifetch 4,regb
+	iforce temp
+	ifetch 4,rega
+	isub temp,pdata
+	isub regc,pdata
+	istore 4,contw
+	isolate1 32,pdata
+	setflag true,0,regc
+	increase 4,rega
+	increase 4,regb
+	loop bn_sub_0
+	rtn
+
+bn_rshift6:
+	force 6,loopcnt
+	increase 20,rega
+bn_rshift:
+	force 0,regc
+bn_rshift_0:	
+	ifetch 4,rega
+	isolate1 0,pdata
+	setflag true,1,regc
+	rshift pdata,pdata
+	isolate1 0,regc
+	setflag true,31,pdata
+	istore 4,rega
+	increase -4,rega
+	rshift regc,regc
+	loop bn_rshift_0
+	rtn
+
+bn_lshift:
+	force 6,loopcnt
+	force 0,regc
+bn_lshift_0:	
+	ifetch 4,rega
+	isolate1 31,pdata
+	setflag true,1,regc
+	lshift pdata,pdata
+	isolate1 0,regc
+	setflag true,0,pdata
+	istore 4,rega
+	increase 4,rega
+	rshift regc,regc
+	loop bn_lshift_0
+	rtn
+	
+bn_lshiftmod:
+	call bn_lshift
+bn_lshiftmod_ismod:	
+	isolate1 0,regc
+	branch bn_lshiftmod_0,true
+	arg mem_p,regb
+	copy rega,regc
+	increase -24,rega
+	call bn_bigeq
+	nrtn positive
+	copy regc,rega
+bn_lshiftmod_0:
+	increase -24,rega
+	arg mem_p,regb
+	copy rega,contw
+	branch bn_sub
+	
+
+bn_addmod:
+	call bn_add
+	copy contw,rega
+	branch bn_lshiftmod_ismod
+	
+bn_submod:
+	call bn_sub
+	isolate0 0,regc
+	rtn true
+	arg mem_p,regb
+	add contw,-24,rega
+	copy rega,contw
+	branch bn_add
+	
+
+bn_p192mod:
+	copy contw,timeup				/* save result ptr */
+	copy rega,alarm				/* temp save rega */
+	arg mem_tmp2,regb
+	copy regb,contw
+	add rega,24,contr
+	ifetch 8,contr
+	istore 8,contw
+	istore 8,contw
+	force 0,pdata
+	istore 8,contw
+	copy timeup,contw
+	call bn_addmod
+	arg mem_tmp2,regb
+	copy regb,contw
+	force 0,pdata
+	istore 8,contw
+	add alarm,32,contr
+	ifetch 8,contr
+	istore 8,contw
+	istore 8,contw
+	copy timeup,rega
+	copy rega,contw
+	call bn_addmod
+	arg mem_tmp2,regb
+	copy regb,contw
+	add alarm,40,contr
+	ifetch 8,contr
+	istore 8,contw
+	istore 8,contw
+	istore 8,contw
+	copy timeup,rega
+	copy rega,contw
+	branch bn_addmod
+		
+
+bn_load:
+	force 6,loopcnt
+bn_load_0:	
+	ifetch 4,contr
+	iforce regext
+	increase 1,regext_index
+	loop bn_load_0
+	rtn
+
+
+	/* cost 1562 clks */	
+bn_mulmod:
+	copy contw,timeup					/* save result ptr */
+	arg mem_tmp1,contw
+	call bn_zero
+	arg mem_tmp1,contw
+	copy rega,contr
+	force 0,regext_index
+	call bn_load
+	copy regb,contr
+	call bn_load
+	force 0,regb
+bn_mulmod_1:	
+	force 0,temp
+	force 6,regc
+bn_mulmod_0:
+	ifetch 4,contw					/* d[i+j] */
+	iforce rega
+	copy regb,regext_index
+	deposit regext
+	copy regc,regext_index
+	imul32 regext,pdata
+	iadd rega,pdata					/* uv = a[i]*b[j] + d[i+j] */
+	iadd temp,pdata					/* uv += u */
+	istore 4,contw					/* ->d[i+j] */
+	rshift32 pdata,temp				/* temp = u = uv >> 32 */
+	increase 1,regc
+	compare 12,regc,0xff
+	nbranch bn_mulmod_0,true
+	deposit temp
+	istore 4,contw					/* d[i + 12] = u */
+	increase -24,contw
+	increase 1,regb
+	compare 6,regb,0xff
+	nbranch bn_mulmod_1,true
+	arg mem_tmp1,rega
+	copy timeup,contw
+	branch bn_p192mod
+
+	
+bn_sqrmod:
+	copy rega,regb
+	branch bn_mulmod
+
+bn_rshifteven:
+	copy rega,alarm
+bn_rshifteven_1:
+	copy alarm,rega
+	ifetch 1,rega
+	isolate1 0,pdata
+	rtn true
+	call bn_rshift6
+	ifetch 1,regb
+	isolate0 0,pdata
+	branch bn_rshifteven_0,true
+	arg mem_p,rega
+	copy regb,contw
+	call bn_add
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb						/* [6] */
+	increase -24,regb
+bn_rshifteven_0:
+	add regb,24,rega
+	force 7,loopcnt
+	call bn_rshift
+	branch bn_rshifteven_1
+
+	/* cost 141910 clks */
+bn_invmod:
+	copy contw,timeup					/* save result ptr */
+	arg mem_tmp0,contw				/* x */
+	call bn_zero
+	force 0,pdata
+	store 4,mem_tmp5
+	store 4,mem_t2
+	jam 1,mem_tmp0
+	arg mem_tmp1,contw				/* y */
+	call bn_zero
+	arg mem_p,contr
+	arg mem_tmp2,contw				/* a */
+	call memcpy24
+	copy rega,contr
+	arg mem_tmp3,contw				/* b */
+	call memcpy24
+bn_invmod_2:	
+	arg mem_tmp3,contr
+	call bn_eq_zero
+	branch bn_invmod_0,blank
+	arg mem_tmp3,rega
+	arg mem_tmp0,regb
+	call bn_rshifteven
+
+	arg mem_tmp2,rega
+	arg mem_tmp1,regb
+	call bn_rshifteven
+	arg mem_tmp3,rega
+	arg mem_tmp2,regb
+	call bn_bigeq
+	branch bn_invmod_1,positive
+	arg mem_tmp2,rega
+	arg mem_tmp3,regb
+	copy rega,contw
+	call bn_sub
+	arg mem_tmp0,rega
+	arg mem_tmp1,regb
+	copy regb,contw
+	call bn_add
+	ifetch 1,rega
+	iadd regc,regc
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb
+	branch bn_invmod_2
+bn_invmod_1:
+	arg mem_tmp3,rega
+	arg mem_tmp2,regb
+	copy rega,contw
+	call bn_sub
+	arg mem_tmp1,rega
+	arg mem_tmp0,regb
+	copy regb,contw
+	call bn_add
+	ifetch 1,rega
+	iadd regc,regc
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb
+	branch bn_invmod_2
+bn_invmod_0:
+	arg mem_tmp0,contw
+	call bn_zero
+	fetch 1,mem_tmp5
+	store 1,mem_tmp0
+	store 1,mem_tmp0a
+	arg mem_tmp0,rega
+	arg mem_tmp1,regb
+	copy regb,contw
+	call bn_addmod
+	arg mem_p,rega
+	arg mem_tmp1,regb
+	copy timeup,contw
+	branch bn_submod
+	
+
+
+	/* cost 64742 clks */
+ecdbl:
+	arg mem_cz,rega
+	arg mem_t2,contw
+	call bn_sqrmod
+	arg mem_t2,rega
+	arg mem_t3,contw
+	call bn_sqrmod
+	arg mem_a,rega
+	arg mem_t3,regb
+	arg mem_t3,contw
+	call bn_mulmod		/* t3=a*z4	*/
+	arg mem_cx,rega
+	arg mem_t2,contw
+	call bn_sqrmod
+	arg mem_t2,contr
+	arg mem_t1,contw
+	call memcpy24
+	arg mem_t1,rega
+	call bn_lshiftmod
+	arg mem_t2,rega
+	arg mem_t1,regb
+	arg mem_t2,contw
+	call bn_addmod
+	arg mem_t2,rega
+	arg mem_t3,regb
+	arg mem_t2,contw
+	call bn_addmod		/* t2=3*x2 + z*z4		D  */
+	arg mem_cx,contr
+	arg mem_t1,contw
+	call memcpy24
+	arg mem_cy,rega
+	arg mem_t3,contw
+	call bn_sqrmod
+	arg mem_t1,rega
+	call bn_lshiftmod
+	arg mem_t1,rega
+	call bn_lshiftmod
+	arg mem_t1,rega		
+	arg mem_t3,regb
+	arg mem_t1,contw
+	call bn_mulmod		/* t1=4x*y2	B	*/
+	arg mem_t3,rega
+	arg mem_t0,contw
+	call bn_sqrmod
+	arg mem_t0,rega
+	call bn_lshiftmod
+	arg mem_t0,rega
+	call bn_lshiftmod		
+	arg mem_t0,rega		
+	call bn_lshiftmod		/* t0=8*y4		C */
+	arg mem_cy,contr
+	arg mem_t3,contw
+	call memcpy24
+	arg mem_t3,rega
+	call bn_lshiftmod
+	arg mem_t3,rega
+	arg mem_cz,regb
+	arg mem_cz,contw
+	call bn_mulmod		
+	arg mem_t2,rega
+	arg mem_t3,contw
+	call bn_sqrmod
+	arg mem_t3,rega
+	arg mem_t1,regb
+	arg mem_t3,contw
+	call bn_submod
+	arg mem_t3,rega
+	arg mem_t1,regb
+	arg mem_cx,contw
+	call bn_submod
+	arg mem_t1,rega
+	arg mem_cx,regb
+	arg mem_t3,contw
+	call bn_submod
+	arg mem_t3,rega
+	arg mem_t2,regb
+	arg mem_t3,contw
+	call bn_mulmod		
+	arg mem_t3,rega
+	arg mem_t0,regb
+	arg mem_cy,contw
+	branch bn_submod
+	
+
+	/* cost 104904	clks */
+ecadd:
+	arg mem_az,rega
+	arg mem_t7,contw
+	call bn_sqrmod
+	arg mem_cx,rega
+	arg mem_t7,regb
+	arg mem_t0,contw
+	call bn_mulmod		/* n1=t0=xa*zb2  */
+	arg mem_az,rega
+	arg mem_t7,regb
+	arg mem_t7,contw
+	call bn_mulmod	
+	arg mem_cy,rega
+	arg mem_t7,regb
+	arg mem_t1,contw
+	call bn_mulmod		/* n2=t1=ya*zb3 */
+	arg mem_cz,rega
+	arg mem_t7,contw
+	call bn_sqrmod
+	arg mem_ax,rega
+	arg mem_t7,regb
+	arg mem_t2,contw
+	call bn_mulmod		/* n3=t2=xb*za2 */
+	arg mem_cz,rega
+	arg mem_t7,regb
+	arg mem_t7,contw
+	call bn_mulmod	
+	arg mem_ay,rega
+	arg mem_t7,regb
+	arg mem_t3,contw
+	call bn_mulmod		/* n4=t3=yb*za3 */
+	arg mem_t0,rega
+	arg mem_t2,regb
+	arg mem_t7,contw
+	call bn_submod		/* n5=t7=n1-n3=t0-t2 */
+	arg mem_t0,rega
+	arg mem_t2,regb
+	arg mem_t0,contw
+	call bn_addmod		/* n7=t0=n1+n3=t0+t2 */
+	arg mem_t1,rega
+	arg mem_t3,regb
+	arg mem_t2,contw
+	call bn_submod		/* n6=t2=n2-n4=t1-t3 */
+	arg mem_t1,rega
+	arg mem_t3,regb
+	arg mem_t1,contw
+	call bn_addmod		/* n8=t1=n2+n4=t1+t3 */
+	arg mem_t1,rega
+	arg mem_t7,regb
+	arg mem_t1,contw
+	call bn_mulmod		/* t1=n8*n5 */
+	arg mem_cz,rega
+	arg mem_az,regb
+	arg mem_t3,contw
+	call bn_mulmod	
+	arg mem_t3,rega
+	arg mem_t7,regb
+	arg mem_cz,contw
+	call bn_mulmod		/* z=za*zb*n5 */
+	arg mem_t7,rega
+	arg mem_t7,contw
+	call bn_sqrmod		/* t7=n5^2 */
+	arg mem_t7,rega
+	arg mem_t0,regb
+	arg mem_t3,contw
+	call bn_mulmod		/* t3=n5^2*n7 */
+	arg mem_t7,rega
+	arg mem_t1,regb
+	arg mem_t1,contw
+	call bn_mulmod		/* t1=n8*n5^3 */
+	arg mem_t2,rega
+	arg mem_cx,contw
+	call bn_sqrmod		
+	arg mem_cx,rega
+	arg mem_t3,regb
+	arg mem_cx,contw
+	call bn_submod		/* x=n6^2-n5^2*n7 */
+	arg mem_cx,contr
+	arg mem_t7,contw
+	call memcpy24
+	arg mem_t7,rega
+	call bn_lshiftmod		/* t7=2*x */
+	arg mem_t3,rega
+	arg mem_t7,regb
+	arg mem_t3,contw
+	call bn_submod		/* t3=n9 */
+	arg mem_t3,rega
+	arg mem_t2,regb
+	arg mem_t2,contw
+	call bn_mulmod		/* t2=n9*n6 */
+	arg mem_t2,rega
+	arg mem_t1,regb
+	arg mem_cy,contw
+	call bn_submod	
+	arg mem_cy,rega
+	arg mem_p,regb
+	arg mem_cy,contw
+	force 0,regc
+	fetch 1,mem_cy
+	isolate1 0,pdata
+	call bn_add,true
+	copy regc,alarm
+	arg mem_cy,rega
+	call bn_rshift6
+	fetch 1,mem_cy5
+	isolate1 0,alarm
+	setflag true,7,pdata
+	store 1,mem_cy5
+	rtn
+
+	/* cost 22276983 clks */
+
+eckp_0:	
+	fetch 1,mem_ec_loopc
+	increase -1,pdata
+	nrtn positive
+	store 1,mem_ec_loopc
+	fetch 1,mem_ec_infinite
+	call ecdbl,blank
+	fetch 1,mem_ec_loopc
+	arg mem_k,contr
+	call bn_testbit
+	branch eckp_0,true
+	fetch 1,mem_ec_infinite
+	nbranch eckp_1,blank
+	call ecadd
+	branch eckp_0
+eckp_1:
+	jam 0,mem_ec_infinite
+	arg mem_ax,contr
+	arg mem_cx,contw
+	call ec_copy
+	branch eckp_0
+
+	/* cost 162522 clks */
+ecunmapz:
+	arg mem_cz,rega
+	arg mem_t3,contw
+	call bn_invmod			/* t3 = 1/z */
+	arg mem_t3,rega
+	arg mem_t1,contw		
+	call bn_sqrmod			/* t1 = 1/z2 */
+	arg mem_cx,rega
+	arg mem_t1,regb
+	arg mem_bx,contw
+	call bn_mulmod
+	arg mem_t3,rega
+	arg mem_t1,regb
+	arg mem_t2,contw			
+	call bn_mulmod			/* t2 = 1/z3 */
+	arg mem_cy,rega
+	arg mem_t2,regb
+	arg mem_by,contw
+	branch bn_mulmod		
+	
+	
+
+sha_endian_swap2:	
+	ifetch 4,contr
+	force 4,rega
+	increase 3,contw
+sha_endian_loop:	
+	istore 1,contw
+	rshift8 pdata,pdata
+	increase -2,contw
+	increase -1,rega
+	nbranch sha_endian_loop,zero
+	increase 5,contw
+	loop sha_endian_swap2
+	rtn	
+
+
+sha_getw:
+	lshift2 queue,pdata
+	iadd timeup,contr
+	ifetch 4,contr
+	rtn
+	
+sha_r:
+	force 16,alarm
+	arg memdat,timeup
+sha_r_loop:	
+	add alarm,-7,queue
+	call sha_getw
+	iforce temp						/* W[t - 7] */
+	add alarm,-16,queue
+	call sha_getw
+	iadd temp,temp					/* W[t-7] + W[t-16] */
+	add alarm,-2,queue
+	call sha_getw
+	shasx pdata,1,pdata
+	iadd temp,temp					/* S1(W[t -  2]) + W[t-7] + W[t-16] */
+	add alarm,-15,queue
+	call sha_getw
+	shasx pdata,0,pdata
+	iadd temp,temp					/* S0(W[t - 15]) + S1(W[t -  2]) + W[t-7] + W[t-16] */
+	lshift2 alarm,pdata
+	iadd timeup,contw
+	istoret 4,contw
+	increase 1,alarm
+	compare 64,alarm,0xff
+	nbranch sha_r_loop,true
+	rtn
+	
+
+sha_init:
+	arg memh0,contr
+	force 7,regext_index
+sha_init_0:	
+	ifetch 4,contr
+	iforce regext
+	increase -1,regext_index
+	branch sha_init_0,positive
+	rtn
+
+sha:
+	bpatchx patch2f_2,mem_patch2f
+	call sha_r		/* preprocessing data into R() */
+	arg memahbak,contw
+	force 0,regext_index
+sha_0:	
+	deposit regext
+	istore 4,contw
+	increase 1,regext_index
+	compare 8,regext_index,0xff
+	nbranch sha_0,true
+	call enable_authrom
+	arg memk,timeup
+	arg memdat,alarm
+	force 64,loopcnt
+sha_loop:	
+	ifetcht 4,alarm
+	ifetch 4,timeup
+	increase 4,timeup
+	increase 4,alarm
+	iadd temp,pdata			/* x+K */
+	force 7,regext_index
+	iadd regext,temp			/* x+K+h */
+	force 4,regext_index
+	shasx regext,3,pdata
+	iadd temp,temp			/* temp = s3(e)+x+K+h */
+	force 5,regext_index
+	deposit regext
+	force 6,regext_index
+	ixor regext,pdata
+	force 4,regext_index
+	iand regext,pdata			/* (e & (f ^ g)) */
+	force 6,regext_index
+	ixor regext,pdata			/* F1(e, f, g) = g ^ (e & (f ^ g)) */
+	iadd temp,temp			/* temp1 = h + S3(e) + F1(e,f,g) + K + x */
+	force 7,regext_index
+	copy temp,regext			/* save to H */
+	force 3,regext_index
+	deposit regext
+	iadd temp,regext			/* save to D */
+	force 0,regext_index
+	deposit regext
+	force 1,regext_index
+	iand regext,temp			/* a & b */
+	ior regext,pdata			/* a | b */			
+	force 2,regext_index
+	iand regext,pdata			/* (c & (a | b)) */
+	ior temp,temp				/* F0:(a & b) | (c & (a | b)) */
+	force 0,regext_index
+	shasx regext,2,pdata
+	iadd temp,pdata			/* temp2 = S2(a) + F0(a,b,c) */
+	force 7,regext_index
+	iadd regext,regext			/* h = temp1 + temp2 */
+	regexrot					/* rotate move h,a-g => a-h */
+	loop sha_loop
+	arg memahbak,contr
+	force 0,regext_index
+sha_1:	
+	ifetch 4,contr
+	iadd regext,regext
+	increase 1,regext_index
+	compare 8,regext_index,0xff
+	nbranch sha_1,true
+	branch disable_authrom
+
+	
+sha_result:
+	arg   memresult,contw
+	force 7,regext_index
+sha_regext_save:
+	deposit regext
+	istore  4,contw 
+	increase -1,regext_index
+	branch   sha_regext_save,positive
+	rtn	
+
+pad_xor:
+//	arg memx_end,contr
+	arg      memdat,contw
+	increase -4,contr
+	sub      loopcnt,16,rega
+pad_xor_0:	    
+	ifetch   4,contr
+	ixor     temp,pdata
+	istore   4,contw	
+	increase -8,contr	
+	loop  pad_xor_0
+	copy     rega,loopcnt
+	deposit  temp
+pad_xor_1:	
+	istore 4,contw
+	loop pad_xor_1
+	rtn
+
+g_noninit_number_confirm:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,g_noninit_number_confirm_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,g_noninit_number_confirm_192
+	rtn
+
+g_noninit_number_confirm_192:	
+	call g_noninit0_192
+	call sha_result
+	branch g_common0
+
+g_noninit_number_confirm_256:	
+	call g_noninit0_256
+	call sha_result
+	branch g_common0
+
+g_noninit_192:
+	call g_noninit0_192
+	branch g_common0
+	
+g_noninit0_192:
+ 	arg      mem_sp_pubkey_remote_x_end,contr
+	arg      memdat,contw
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sp_pubkey_local_x_end,contr
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sp_random_remote_end,contr
+	call     memcpy_dword_swap4
+	call     sha_init
+	call     sha	
+ 	arg      mem_sp_random_local_end,contr
+	arg      memdat,contw
+	branch g_common_192
+	
+g_init_192:
+ 	arg      mem_sp_pubkey_local_x_end,contr
+	arg      memdat,contw
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sp_pubkey_remote_x_end,contr
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sp_random_local_end,contr
+	call     memcpy_dword_swap4
+	call     sha_init
+	call     sha	
+ 	arg      mem_sp_random_remote_end,contr
+	arg      memdat,contw
+	call g_common_192
+	branch g_common0
+	
+g_common_192:	
+	call     memcpy_dword_swap4
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	force    5,loopcnt
+	call memset0
+	setarg 640
+	istore 4,contw
+	branch sha
+g_common0:
+	fetch 4,memresult
+//	store 4,mem_gkey
+	arg 1000,rega
+	idiv rega
+	call wait_div_end
+	remainder pdata
+	store 4,mem_gkey
+	quotient pdata
+	arg 1000,rega
+	idiv rega
+	call wait_div_end
+	remainder pdata
+	arg 1000,rega
+	imul32 rega,pdata
+	fetcht 4,mem_gkey
+	iadd temp,pdata
+	store 4,mem_gkey
+	rtn
+	
+noninit_number_confirm:
+	call g_noninit0_256
+	call sha_result
+	branch g_common0
+
+	
+g_noninit0_256:
+ 	arg      mem_le_pubkey_remote_x_256+32,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	arg      mem_sc_pubkey_local_x_256+32,contr
+	force    8,loopcnt
+	call     memcpy_dword_swap
+//	arg      mem_sp_random_remote_end,contr
+//	call     memcpy_dword_swap4
+	call     sha_init
+	call     sha	
+ 	arg      mem_sp_random_remote_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_local_end,contr
+	branch g_common_256
+	
+g_common_256:	
+	call     memcpy_dword_swap4
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	force    3,loopcnt
+	call memset0
+	setarg 768
+	istore 4,contw
+	branch sha
+
+function_f1_192_no_key:
+	jam 0,mem_passkey_1bit
+	branch function_f1_192_common
+	
+function_f1_192:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f1_192_no_key
+function_f1_192_common:
+	bpatchx patch2f_3,mem_patch2f
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	fetch 2,mem_sp_prarm_stack
+	copy pdata,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	fetch 2,mem_sp_prarm_stack+2
+	copy pdata,contr
+	arg      memdat,contw
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	fetch 2,mem_sp_prarm_stack+4
+	copy pdata,contr
+	force    6,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	istore   3,contw
+	
+	fetch 1,mem_passkey_1bit
+	
+	istore   1,contw
+	force    0,pdata
+	istore   8,contw
+	setarg   0x0388
+	istore   4,contw
+function_f1_common2:	
+	call     sha
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	fetch 2,mem_sp_prarm_stack
+	copy pdata,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      memahsave_end,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	call		bn_zero
+	setarg   0x0300
+	istore   4,contw
+	call     sha
+	branch     sha_result
+	
+	
+function_f2_192:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	fetch 2,mem_sp_prarm_stack+12
+	copy pdata,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	fetch 2,mem_sp_prarm_stack+14
+	copy pdata,contr
+	call     memcpy_dword_swap4
+
+	setarg   0x62746c
+	lshift8  pdata,pdata
+	or_into       0x6b,pdata       
+	istore   4,contw
+	arg      mem_addr_value_end,contr
+	force    3,loopcnt
+	call     memcpy_dword_swap
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	force    0,pdata
+	istore   8,contw
+	setarg   0x0380
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_sp_dhkey_end,contr 
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      memahsave_end,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	call bn_zero
+	setarg   0x0300
+	istore   4,contw
+	call     sha
+	branch     sha_result
+	
+
+function_f3a_192:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f3a_no_pin
+function_f3a_common:
+	bpatchx patch2f_4,mem_patch2f
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      mem_sp_random_remote_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_local_end,contr
+	call     memcpy_dword_swap4
+	branch function_f3_common
+
+function_f3a_no_pin:
+	setarg 0
+	store 4,mem_pin
+	branch function_f3a_common
+
+function_f3b_no_pin:
+	setarg 0
+	store 4,mem_pin
+	branch function_f3b_common
+
+
+function_f3b_192:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f3b_no_pin
+function_f3b_common:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+
+	arg      mem_sp_random_local_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_remote_end,contr
+	call     memcpy_dword_swap4
+function_f3_common:    
+	setarg   0x0    
+	istore   8,contw
+	istore   4,contw
+	fetch 4,mem_pin
+	istore   4,contw
+	
+	copy     contw,temp
+	jam      0x80,mem_addr_padding
+	copy     temp,contw
+	arg      mem_addr_iocap_end,contr
+	call     memcpy_dword_swap4
+
+	call     sha
+    
+	arg      memdat,contw
+	force 7,loopcnt
+	call memset0
+	istore   4,contw
+	setarg   0x03F8
+	istore   4,contw
+	call     sha
+	call     sha_result
+	
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_sp_dhkey_end,contr 
+	force    6,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      memahsave_end,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	call bn_zero
+	setarg   0x0300
+	istore   4,contw
+	call     sha	
+	branch     sha_result
+		
+/*
+eckp:
+	jam 192,mem_ec_loopc
+	jam 1,mem_ec_infinite
+*/
+eckp_calc_init:
+	jam      192,mem_ec_loopc
+eckp_calc_init_1:    
+	fetch    1,mem_ec_loopc
+	rtn      blank
+	increase -1,pdata
+	store    1,mem_ec_loopc 	
+	arg      mem_k,contr
+	call     bn_testbit
+	branch eckp_calc_init_1,true
+	arg      mem_ax,contr
+	arg      mem_cx,contw
+	branch     ec_copy	
+	
+eckp_calc:
+	call     ecdbl  
+	fetch    1,mem_ec_loopc
+	increase -1,pdata
+	store    1,mem_ec_loopc
+	arg      mem_k,contr
+	call     bn_testbit
+	rtn	true
+	branch     ecadd                
+	             
+memcpy_dword_swap4:
+	force 4,loopcnt
+memcpy_dword_swap:
+	increase -4,contr
+memcpy_dword_swap_loop:
+	ifetch   4,contr
+	istore   4,contw
+	increase -8,contr
+	loop   memcpy_dword_swap_loop 
+    	rtn
+
+
+function_f1_no_key_256:
+	jam 0,mem_passkey_1bit
+	branch function_f1_common_256
+
+function_f1_256:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f1_no_key_256
+function_f1_common_256:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	fetch 2,mem_sp_prarm_stack
+	copy pdata,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	fetch 2,mem_sp_prarm_stack+2
+	copy pdata,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	fetch 2,mem_sp_prarm_stack+4
+	copy pdata,contr
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	call     sha
+	arg      memdat,contw	
+	setarg   0x800000
+	istore   3,contw
+	fetch 1,mem_passkey_1bit
+	istore   1,contw
+	arg 7,loopcnt
+	call	memset0
+	
+	setarg   0x0408  //len bit
+	istore   4,contw
+	branch function_f1_common2
+
+function_f3a:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,function_f3a_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,function_f3a_192
+	rtn
+	
+function_f3a_256:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f3a_no_pin_256
+function_f3a_common_256:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    8,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      mem_sp_random_remote_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_local_end,contr
+	call     memcpy_dword_swap4
+//	branch function_f3_common
+function_f3_common_256:    
+	setarg   0x0    
+	istore   8,contw
+	istore   4,contw
+	fetch 4,mem_pin
+	istore   4,contw
+	
+	copy     contw,temp
+	jam      0x80,mem_addr_padding
+	copy     temp,contw
+	arg      mem_addr_iocap_end,contr
+	call     memcpy_dword_swap4
+
+	call     sha
+    
+	arg      memdat,contw
+	force 7,loopcnt
+	call memset0
+	istore   4,contw
+	setarg   0x03F8
+	istore   4,contw
+	call     sha
+	call     sha_result
+	
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_sp_dhkey_end,contr 
+	force    8,loopcnt
+sha_end_common:
+	call     pad_xor
+	call     sha_init
+	call     sha
+	arg      memahsave_end,contr
+	arg      memdat,contw
+	force    8,loopcnt
+	call     memcpy_dword_swap
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	call bn_zero
+	setarg   0x0300
+	istore   4,contw
+	call     sha	
+	branch     sha_result
+	
+
+function_f3a_no_pin_256:
+	setarg 0
+	store 4,mem_pin
+	branch function_f3a_common_256
+
+function_f3b_no_pin_256:
+	setarg 0
+	store 4,mem_pin
+	branch function_f3b_common_256
+
+function_f3b:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,function_f3b_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,function_f3b_192
+	rtn
+
+function_f3b_256:
+	fetch 1,mem_ssp_mode_flag
+	bne  SSP_MODE_PASSKEY_ENTRY_FLAG,function_f3b_no_pin_256
+function_f3b_common_256:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    8,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+
+	arg      mem_sp_random_local_end,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	arg      mem_sp_random_remote_end,contr
+	call     memcpy_dword_swap4
+	branch function_f3_common_256
+
+
+function_f2:
+	fetch 1,mem_encapsulated_minor_type
+	beq ENCAPSULATED_MINOR_TYPE_P256,function_f2_256
+	beq ENCAPSULATED_MINOR_TYPE_P192,function_f2_192
+	rtn
+	
+function_f2_256:
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_sp_dhkey_end,contr
+	force    8,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	fetch 2,mem_sp_prarm_stack+12
+	copy pdata,contr
+	arg      memdat,contw
+	call     memcpy_dword_swap4
+	fetch 2,mem_sp_prarm_stack+14
+	copy pdata,contr
+	call     memcpy_dword_swap4
+
+	setarg   0x62746c
+	lshift8  pdata,pdata
+	or_into       0x6b,pdata       
+	istore   4,contw
+	arg      mem_addr_value_end,contr
+	force    3,loopcnt
+	call     memcpy_dword_swap
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	force    0,pdata
+	istore   8,contw
+	setarg   0x0380
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_sp_dhkey_end,contr 
+	force    8,loopcnt
+	branch sha_end_common
+
+
+function_h3:
+	fetch    6,mem_lap
+	store   6,mem_addr_value
+	fetch    6,mem_plap
+	istore   6,contw
+	
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_link_key+16 ,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	setarg   0x627461
+	lshift8  pdata,pdata
+	or_into       0x6b,pdata       
+	store   4,memdat
+	
+	arg      mem_addr_value+12,contr
+	force    3,loopcnt
+	call     memcpy_dword_swap
+	
+	arg mem_ccm_iv+8,contr
+	arg 2,loopcnt
+	call     memcpy_dword_swap
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	arg 4,loopcnt
+	call memset0
+
+	setarg   704
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_link_key+16,contr 
+	force    4,loopcnt
+	branch sha_end_common
+
+
+function_h4:
+	fetch    6,mem_lap
+	store   6,mem_addr_value
+	fetch    6,mem_plap
+	istore   6,contw
+	
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_link_key+16 ,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+	setarg   0x627464
+	lshift8  pdata,pdata
+	or_into       0x6b,pdata       
+	store   4,memdat
+	
+	arg      mem_addr_value+12,contr
+	force    3,loopcnt
+	call     memcpy_dword_swap
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	arg 5,loopcnt
+	call memset0
+
+	setarg   640
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_link_key+16,contr 
+	force    4,loopcnt
+	branch sha_end_common
+
+
+function_h5:
+	arg mem_sp_calc_result_high,contr
+	arg mem_input_store,contw
+	call memcpy16
+	setarg mem_sp_random_remote+16
+	store 2,mem_sp_prarm_stack
+	setarg mem_random_number+16
+	istore 2,contw
+	
+	setarg   0x363636
+	lshift8  pdata,temp
+	or_into       0x36,temp
+	arg      mem_input_store+16 ,contr
+	force    4,loopcnt
+	call     pad_xor
+	call     sha_init
+	call     sha
+
+	arg memdat,contw
+	fetch 2, mem_sp_prarm_stack
+	copy pdata,contr
+	call     memcpy_dword_swap4
+	fetch 2,     mem_sp_prarm_stack+2
+	copy pdata,contr
+	call     memcpy_dword_swap4
+	
+	setarg   0x800000
+	lshift8  pdata,pdata 
+	istore   4,contw
+	
+	arg 3,loopcnt
+	call memset0
+
+	setarg   768
+	istore   4,contw
+	call     sha
+
+	call     sha_result
+	arg      memresult,contr
+	arg      memahsave,contw 
+	call     memcpy32
+    
+	setarg   0x5c5c5c
+	lshift8  pdata,temp
+	or_into       0x5c,temp
+	arg      mem_input_store+16,contr 
+	force    4,loopcnt
+	branch sha_end_common
+
+
+
+
+else
+sp_initialize:
+	rtn
+
+endif
+	
+
+ifdef SECURE_CONNECTION
+
+sp_initialize_256:	
+	bpatchx patch2f_5,mem_patch2f
+	fetch 1,mem_secure_connections_enable
+	nbranch sp_pubkey_calc_256,blank
+//	call sp_clear_flags
+sc_reset:
+	jam SP_CALC_STANDBY,mem_sc_calc
+	jam SP_KEY_INVALID,mem_sc_local_key_invalid
+	rtn
+	
+	
+    	
+sp_wait_pubkey_calc_256_done:
+	fetch 1,mem_secure_connections_enable
+	rtn blank
+	fetch 1,mem_sc_local_key_invalid
+	rtneq SP_KEY_VALID_256
+	call sp_calc_sequence_256
+	branch sp_wait_pubkey_calc_256_done
+
+
+//BD1A3CCD:A6B89958:99B740EB:7B60FF4A:503F10D2:E3B3C974:385FC5A3:D4F6493F
+sp_debug_private_256:
+	arg mem_sc_private_key_256,contw
+        setsect 0,0x1abd
+        setsect 1,0x1b34f
+        setsect 2,0x19b8a
+        setsect 3,0x26562
+        istore 9,contw
+        setsect 0,0x340b7
+        setsect 1,0x1efa
+        setsect 2,0xaff6
+        setsect 3,0xfd41
+        istore 9,contw
+        setsect 0,0x3d210
+        setsect 1,0x26cf8
+        setsect 2,0x3874c
+        setsect 3,0x3157c
+        istore 9,contw
+        setsect 0,0x2d4a3
+        setsect 1,0x3d27d
+        setsect 2,0x3
+        istore 5,contw
+        rtn
+	
+
+sp_pubkey_calc_256:
+	fetch    1,mem_sc_local_key_invalid
+	rtnne SP_KEY_INVALID
+	fetch    1,mem_sc_calc
+	rtnne  SP_CALC_STANDBY
+	call init_memp_256
+	arg      mem_sc_private_key_256,contw 
+	force    15,queue
+	call     random_generator
+	random   pdata
+	rshift   pdata,pdata
+	istore   2,contw 
+	
+	fetch 1,mem_sp_debug_mode
+	ncall sp_debug_private_256,blank
+	
+	arg      mem_k_256,contw
+	arg      mem_sc_private_key_256,contr	
+	call     memcpy32 //mem_sp_private_key=>mem_k 
+
+	arg      mem_ax_256,contw
+	arg      mem_gx_256,contr
+	call     memcpy64 //mem_gx=>mem_ax 
+	
+	arg      mem_az_256,contw
+	call      clear_mem_256
+	jam      1,mem_az_256 //0=>mem_az 
+
+	call     eckp_calc_init_256
+	jam SP_CALC_PUBKEY_256,mem_sc_calc
+	rtn    
+
+sp_pubkey_generated_256:
+	arg      mem_sc_pubkey_local_x_256,contw
+	arg      mem_bx_256,contr
+	call     memcpy64   
+	jam      SP_KEY_VALID_256,mem_sc_local_key_invalid
+	jam      SP_CALC_STANDBY,mem_sc_calc
+	rtn
+	
+
+
+sp_dhkey_calc_256:
+	fetch    1,mem_sp_dhkey_invalid
+	rtnne  SP_KEY_INVALID
+	fetch    1,mem_sc_calc
+	rtnne  SP_CALC_STANDBY
+
+	arg      mem_k_256,contw
+	arg      mem_sc_private_key_256,contr	
+	call     memcpy32
+
+	arg      mem_ax_256,contw
+	arg      mem_le_pubkey_remote_x_256,contr
+	call     memcpy64
+
+	arg      mem_az_256,contw
+	call     clear_mem_256
+	jam      1,mem_az_256 //0=>mem_az 
+
+	call     eckp_calc_init_256
+	jam     SP_CALC_DHKEY_256,mem_sc_calc
+	rtn 
+
+
+sp_dhkey_generated_256:
+//	jam SP_FLAG_COMMIT,mem_sp_dh_ready
+	arg mem_le_dhkey_256,contw
+	arg mem_bx_256,contr
+	call memcpy32
+	jam SP_KEY_VALID_256,mem_sp_dhkey_invalid
+	jam SP_CALC_STANDBY,mem_sc_calc
+	rtn
+
+
+
+sp_calc_sequence_256:
+	fetch 1,mem_secure_connections_enable
+	rtn blank
+	fetch 1,mem_sc_calc
+	rtn blank
+	increase 0x80,pdata
+	store    1,mem_sc_calc
+	rtnbit1 7
+	fetch    2,mem_ec_loopc
+	branch   sp_calc_sequence_done_256,blank
+	branch   eckp_calc_256
+
+sp_calc_sequence_done_256:    
+	bpatchx patch2f_6,mem_patch2f
+	call ecunmapz_256
+	fetch 1,mem_sc_calc
+	beq  SP_CALC_PUBKEY_256,sp_pubkey_generated_256
+	beq  SP_CALC_DHKEY_256,sp_dhkey_generated_256
+	rtn
+
+
+eckp_calc_256:
+	call     ecdbl_256  
+	fetch    2,mem_ec_loopc
+	increase -1,pdata
+	store    2,mem_ec_loopc
+	arg      mem_k_256,contr
+	call     bn_testbit
+	rtn	true
+	branch     ecadd_256   
+
+eckp_calc_init_256:
+	bpatchx patch2f_7,mem_patch2f
+	setarg 256
+	store 2,mem_ec_loopc
+eckp_calc_init_256_1:    
+	fetch    2,mem_ec_loopc
+	rtn      blank
+	increase -1,pdata
+	store    2,mem_ec_loopc
+	arg      mem_k_256,contr
+	call     bn_testbit
+	branch eckp_calc_init_256_1,true
+	arg      mem_ax_256,contr
+	arg      mem_cx_256,contw
+	branch     memcpy96	
+
+
+ecunmapz_256:
+	arg mem_cz_256,rega
+	arg mem_t3_256,contw
+	call bn_invmod_256			/* t3 = 1/z */
+	arg mem_t3_256,rega
+	arg mem_t1_256,contw		
+	call bn_sqrmod_256			/* t1 = 1/z2 */
+	arg mem_cx_256,rega
+	arg mem_t1_256,regb
+	arg mem_bx_256,contw
+	call bn_mulmod_256
+	arg mem_t3_256,rega
+	arg mem_t1_256,regb
+	arg mem_t2_256,contw			
+	call bn_mulmod_256			/* t2 = 1/z3 */
+	arg mem_cy_256,rega
+	arg mem_t2_256,regb
+	arg mem_by_256,contw
+	branch bn_mulmod_256	
+	
+ecdbl_256:
+	arg mem_cz_256,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod_256
+	arg mem_t2_256,rega
+	arg mem_t3_256,contw
+	call bn_sqrmod_256
+//call ice_break
+	arg mem_a_256,rega
+	arg mem_t3_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256		/* t3=a*z4	*/
+	arg mem_cx_256,rega
+	arg mem_t2_256,contw
+	call bn_sqrmod_256
+//call ice_break
+	arg mem_t2_256,contr
+	arg mem_t1_256,contw
+	call memcpy32
+	arg mem_t1_256,rega
+	call bn_lshiftmod_256
+	arg mem_t2_256,rega
+	arg mem_t1_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod_256
+//call ice_break
+	arg mem_t2_256,rega
+	arg mem_t3_256,regb
+	arg mem_t2_256,contw
+	call bn_addmod_256		/* t2=3*x2 + z*z4		D  */
+//call ice_break
+	arg mem_cx_256,contr
+	arg mem_t1_256,contw
+	call memcpy32
+	arg mem_cy_256,rega
+	arg mem_t3_256,contw
+	call bn_sqrmod_256
+	arg mem_t1_256,rega
+	call bn_lshiftmod_256
+	arg mem_t1_256,rega
+	call bn_lshiftmod_256
+	arg mem_t1_256,rega		
+	arg mem_t3_256,regb
+	arg mem_t1_256,contw
+	call bn_mulmod_256		//S = 4X1Y1^2/* t1=4x*y2	B	*/
+	arg mem_t3_256,rega
+	arg mem_t0_256,contw
+	call bn_sqrmod_256
+	arg mem_t0_256,rega
+	call bn_lshiftmod_256
+	arg mem_t0_256,rega
+	call bn_lshiftmod_256		
+	arg mem_t0_256,rega		
+	call bn_lshiftmod_256	//T = 8Y1^4	/* t0=8*y4		C */
+	arg mem_cy_256,contr
+	arg mem_t3_256,contw
+	call memcpy32
+	arg mem_t3_256,rega
+	call bn_lshiftmod_256
+	arg mem_t3_256,rega
+	arg mem_cz_256,regb
+	arg mem_cz_256,contw
+	call bn_mulmod_256		//z = 2Y1Z1
+
+
+	arg mem_t2_256,rega
+	arg mem_t3_256,contw
+	call bn_sqrmod_256   // M ^2
+//call ice_break
+	arg mem_t3_256,rega
+	arg mem_t1_256,regb
+	arg mem_t3_256,contw
+	call bn_submod_256  // t2^2 - 4*cx *cy^2 
+	arg mem_t3_256,rega
+	arg mem_t1_256,regb
+	arg mem_cx_256,contw
+	call bn_submod_256   //X2
+	arg mem_t1_256,rega
+	arg mem_cx_256,regb
+	arg mem_t3_256,contw
+	call bn_submod_256   //S-X2
+	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256	//M(S-X2)	
+	arg mem_t3_256,rega
+	arg mem_t0_256,regb
+	arg mem_cy_256,contw
+	branch bn_submod_256  //M(S-X2)-T Y2	
+
+ecadd_256:
+
+	arg mem_az_256,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod_256
+	arg mem_cx_256,rega
+	arg mem_t7_256,regb
+	arg mem_t0_256,contw
+	call bn_mulmod_256		/* n1=t0=xa*zb2 U1 = X1Z0^2*/
+
+
+	arg mem_az_256,rega
+	arg mem_t7_256,regb
+	arg mem_t7_256,contw
+	call bn_mulmod_256	
+	arg mem_cy_256,rega
+	arg mem_t7_256,regb
+	arg mem_t1_256,contw
+	call bn_mulmod_256		/* n2=t1=ya*zb3   S1 = Y1Z0^3*/
+
+
+	arg mem_cz_256,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod_256
+	arg mem_ax_256,rega
+	arg mem_t7_256,regb
+	arg mem_t2_256,contw
+	call bn_mulmod_256		/* n3=t2=xb*za2  U0 = X0Z1^2*/
+
+	arg mem_cz_256,rega
+	arg mem_t7_256,regb
+	arg mem_t7_256,contw
+	call bn_mulmod_256	
+	arg mem_ay_256,rega
+	arg mem_t7_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256		/* n4=t3=yb*za3 S0 = Y0Z1^3*/
+
+
+//	arg mem_t0_256,rega
+//	arg mem_t2_256,regb
+	arg mem_t0_256,regb
+	arg mem_t2_256,rega
+	arg mem_t7_256,contw
+	call bn_submod_256		/* n5=t7=n1-n3=t0-t2   W=U1-U0*/
+	arg mem_t0_256,rega
+	arg mem_t2_256,regb
+	arg mem_t0_256,contw
+	call bn_addmod_256		/* n7=t0=n1+n3=t0+t2    T=U1+U0 */
+//	arg mem_t1_256,rega
+//	arg mem_t3_256,regb
+	arg mem_t1_256,regb
+	arg mem_t3_256,rega
+	arg mem_t2_256,contw
+	call bn_submod_256		/* n6=t2=n2-n4=t1-t3  S1-S0 */
+	arg mem_t1_256,rega
+	arg mem_t3_256,regb
+	arg mem_t1_256,contw
+	call bn_addmod_256		/* n8=t1=n2+n4=t1+t3 M=S1+S0*/
+	arg mem_t1_256,rega
+	arg mem_t7_256,regb
+	arg mem_t1_256,contw
+	call bn_mulmod_256		/* t1=n8*n5     MW */
+	arg mem_cz_256,rega
+	arg mem_az_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256	      //Z0Z1
+	arg mem_t3_256,rega
+	arg mem_t7_256,regb
+	arg mem_cz_256,contw
+	call bn_mulmod_256		/* z=za*zb*n5   Z0Z1W */
+
+	arg mem_t7_256,rega
+	arg mem_t7_256,contw
+	call bn_sqrmod_256		/* t7=n5^2 */
+	arg mem_t7_256,rega
+	arg mem_t0_256,regb
+	arg mem_t3_256,contw
+	call bn_mulmod_256		/* t3=n5^2*n7 */
+	arg mem_t7_256,rega
+	arg mem_t1_256,regb
+	arg mem_t1_256,contw
+	call bn_mulmod_256		/* t1=n8*n5^3 */
+	arg mem_t2_256,rega
+	arg mem_cx_256,contw
+	call bn_sqrmod_256		
+	arg mem_cx_256,rega
+	arg mem_t3_256,regb
+	arg mem_cx_256,contw
+	call bn_submod_256		/* x=n6^2-n5^2*n7 */
+	arg mem_cx_256,contr
+	arg mem_t7_256,contw
+	call memcpy32
+	arg mem_t7_256,rega
+	call bn_lshiftmod_256		/* t7=2*x */
+	arg mem_t3_256,rega
+	arg mem_t7_256,regb
+	arg mem_t3_256,contw
+	call bn_submod_256		/* t3=n9 */
+	arg mem_t3_256,rega
+	arg mem_t2_256,regb
+	arg mem_t2_256,contw
+	call bn_mulmod_256		/* t2=n9*n6 */
+	arg mem_t2_256,rega
+	arg mem_t1_256,regb
+	arg mem_cy_256,contw
+	call bn_submod_256	
+	arg mem_cy_256,rega
+	arg mem_p_256,regb
+	arg mem_cy_256,contw
+	force 0,regc
+	fetch 1,mem_cy_256
+	isolate1 0,pdata
+	call bn_add_256,true
+	copy regc,alarm
+	arg mem_cy_256,rega
+	call bn_rshift_256
+	fetch 1,mem_cy5_256
+	isolate1 0,alarm
+	setflag true,7,pdata
+	store 1,mem_cy5_256
+	rtn	
+
+bn_invmod_256:
+	copy contw,timeup					 
+	arg mem_tmp0_256,contw			 
+	call clear_mem_256
+	force 0,pdata
+//	store 4,mem_tmp52
+	store 4,mem_t2_256
+	jam 1,mem_tmp0_256      //y1
+	arg mem_tmp1_256,contw	//y2			 
+	call clear_mem_512      
+	arg mem_p_256,contr
+	arg mem_tmp2_256,contw		//j		 
+	call memcpy32
+	copy rega,contr
+	arg mem_tmp3_256,contw		//i		 
+	call memcpy32
+	
+//	arg mem_tmp22,rega
+//	arg mem_tmp32,regb
+//	call p_bn_bigeq_256
+//	branch assert,positive
+bn_invmod_256_2:	
+	arg mem_tmp3_256,contr
+	call bn_eq_zero_256
+	branch bn_invmod_256_0,blank
+//call ice_break    	
+//fetch 1,0x4ffe
+//increase 1,pdata
+//store 1,0x4ffe
+	arg mem_tmp3_256,rega
+	arg mem_tmp0_256,regb
+	call bn_rshifteven_256
+	arg mem_tmp2_256,rega
+	arg mem_tmp1_256,regb
+	call bn_rshifteven_256
+	
+	arg mem_tmp3_256,rega
+	arg mem_tmp2_256,regb
+	call bn_bigeq_256
+	branch bn_invmod_256_1,positive
+	arg mem_tmp2_256,rega
+	arg mem_tmp3_256,regb
+	copy rega,contw
+	call bn_sub_256
+	arg mem_tmp0_256,rega
+	arg mem_tmp1_256,regb
+	copy regb,contw
+	call bn_add_256
+	ifetch 1,rega
+	iadd regc,regc
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb
+	branch bn_invmod_256_2
+bn_invmod_256_1:
+	arg mem_tmp3_256,rega
+	arg mem_tmp2_256,regb
+	copy rega,contw
+	call bn_sub_256
+	arg mem_tmp1_256,rega
+	arg mem_tmp0_256,regb
+	copy regb,contw
+	call bn_add_256
+	ifetch 1,rega
+	iadd regc,regc
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb
+	branch bn_invmod_256_2
+bn_invmod_256_0:
+//call ice_break
+	arg mem_tmp1_256,rega
+	copy timeup,contw
+	call  bn_p256mod
+//call ice_break
+	arg mem_p_256,rega
+	copy timeup,regb
+	copy timeup,contw
+	branch bn_submod_256
+
+
+bn_mulmod_256:
+	copy contw,timeup					/* save result ptr */
+	
+	force 0,regext_index
+	
+	arg mem_tmp1_256,contw
+	call clear_mem_512
+	arg mem_regext,contw
+	call clear_mem_512
+//	jam 0,mem_regext_index
+
+//	arg mem_tmp12,contw
+	copy rega,contr
+//	force 0,regext_index
+	jam 0,mem_regext
+	setarg 0
+	call bn_load_mem
+	copy regb,contr
+	call bn_load_256
+//	force 0,regb
+//	jam 0,mem_regb
+	force 0,queue
+	arg mem_tmp1_256,contw	
+bn_mulmod_256_1:	
+//	copy regb,pdata
+//	store 1,
+	arg mem_regext,temp
+	copy queue,regb
+	lshift2 regb,pdata
+//	lshift4 pdata,pdata
+	iadd temp,regb	
+	force 0,temp
+	force 0,regc
+bn_mulmod_256_0:
+//	copy contw,pdata
+//	store 2,mem_contw
+//call ice_break
+//	copy pdata,contw
+	ifetch 4,contw					/* d[i+j] */
+	iforce rega
+//	copy regb,regext_index
+//	deposit regext
+	ifetch 4,regb
+	copy regc,regext_index
+	imul32 regext,pdata
+	iadd rega,pdata					/* uv = a[i]*b[j] + d[i+j] */
+	iadd temp,pdata					/* uv += u */
+	istore 4,contw					/* ->d[i+j] */
+	rshift32 pdata,temp				/* temp = u = uv >> 32 */
+	increase 1,regc
+	compare 8,regc,0xff
+	nbranch bn_mulmod_256_0,true
+//call ice_break
+	deposit temp
+	istore 4,contw					/* d[i + 12] = u */
+	increase -32,contw
+//	fetch 1,mem_regb
+//	copy pdata,regb
+	increase 1,queue
+	compare 8,queue,0xff
+	nbranch bn_mulmod_256_1,true
+	arg mem_tmp1_256,rega
+	copy timeup,contw
+	branch bn_p256mod
+
+bn_p256mod:
+	bpatchx patch30_0,mem_patch30
+	copy contw,timeup				/* save result ptr */
+	copy rega,alarm				/* temp save rega */
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	call memset0_4	
+	istore 8,contw
+	add rega,44,contr
+	call memcpy8
+	call memcpy12
+	copy regb,rega
+	call  bn_lshiftmod_256 //2S1
+	arg mem_tmp2_256,regb
+	copy alarm,rega   
+	copy timeup,contw
+	call bn_addmod_256 //T+2S1
+//call ice_break	
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	call memset0_4	
+	istore 8,contw
+	add alarm,48,contr
+	call memcpy16
+	call memset0_4	
+	copy regb,rega
+	call  bn_lshiftmod_256 //2S2
+//call ice_break	
+//	arg 0,regb
+
+	arg mem_tmp2_256,regb
+	copy timeup,rega   
+	copy rega,contw	
+	call bn_addmod_256  //+2S2
+//call ice_break	
+//	arg 0,regb
+		
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,32,contr
+	call memcpy12
+	call memset0_4	
+	istore 8,contw
+	add alarm,56,contr
+	call memcpy8
+	copy timeup,rega
+	copy rega,contw
+	call bn_addmod_256 //+S3
+//call ice_break	
+//	arg 0,regb
+
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,36,contr
+	call memcpy12
+	add alarm,52,contr	
+	call memcpy12
+	add alarm,52,contr
+	call memcpy4
+	add alarm,32,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	call bn_addmod_256 //+S4	
+//call ice_break	
+//	arg 1,regb
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,44,contr
+	call memcpy12
+	call memset0_4	
+	istore 8,contw
+	add alarm,32,contr
+	call memcpy4
+	add alarm,40,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	call bn_submod_256 //-D1	
+//call ice_break	
+//	arg 2,regb
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,48,contr
+	call memcpy8
+	call memcpy8
+	force 0,pdata
+	istore 8,contw
+	add alarm,36,contr
+	call memcpy4
+	add alarm,44,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	call bn_submod_256 //-D2	
+//call ice_break	
+//	arg 3,regb
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,52,contr
+	call memcpy12
+	add alarm,32,contr
+	call memcpy12
+	call memset0_4	
+	add alarm,48,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	call bn_submod_256 //-D3
+//call ice_break	
+//	arg 4,regb
+	arg mem_tmp2_256,regb
+	copy regb,contw
+	add alarm,56,contr
+	call memcpy8
+	call memset0_4	
+	add alarm,36,contr
+	call memcpy12
+	call memset0_4	
+	add alarm,52,contr
+	call memcpy4
+	copy timeup,rega
+	copy rega,contw
+	branch  bn_submod_256 //-D4	
+
+
+bn_load_mem:
+	force 32,loopcnt
+	arg mem_regext,contw
+	iadd contw,contw
+	branch memcpy
+
+bn_load_256:
+	force 8,loopcnt
+	branch bn_load_0
+
+bn_sqrmod_256:
+	copy rega,regb
+	branch bn_mulmod_256
+
+bn_add_256:
+	force 8,loopcnt
+ 	branch bn_add+1
+
+bn_addmod_256:
+	call bn_add_256
+	copy contw,rega
+	branch bn_lshiftmod_ismod_256
+
+bn_lshiftmod_256:
+	call bn_lshift_256
+bn_lshiftmod_ismod_256:	
+	isolate1 0,regc
+	branch bn_lshiftmod_p_256,true
+	arg mem_p_256,regb
+	copy rega,regc
+	increase -32,rega
+	call bn_bigeq_256
+	nrtn positive
+	copy regc,rega
+	branch sub_p2_256
+	
+bn_lshiftmod_p_256:
+	call sub_p2_256
+//	nrtn true
+	copy rega,regc
+	increase -32,rega
+	arg mem_p_256,regb
+	call bn_bigeq_256
+	nrtn positive
+	copy regc,rega
+	branch sub_p2_256
+		
+	
+sub_p2_256:
+	increase -32,rega
+	arg mem_p_256,regb
+	copy rega,contw
+	branch bn_sub_256
+	
+
+
+	
+bn_submod_256:
+	call bn_sub_256
+//	isolate1 0,regc
+	branch  bn_submod_256_np,true
+//	copy rega,regc
+//	increase -32,rega
+	add contw,-32,rega
+	arg mem_p_256,regb
+	call bn_bigeq_256
+	nrtn positive
+	arg mem_p_256,regb
+	add contw,-32,rega
+//	copy regc,rega
+	copy rega,contw
+	branch  bn_sub_256
+bn_submod_256_np:	
+	add contw,-32,rega
+	arg mem_p_256,regb
+	copy rega,contw
+	call bn_add_256
+//	isolate1 0,regc
+	rtn true
+	add contw,-32,rega
+	arg mem_p_256,regb
+	copy rega,contw
+	branch bn_add_256	
+
+
+ 
+bn_sub_256:
+	force 8,loopcnt
+	branch bn_sub+1
+
+bn_rshift_256:
+	force 8,loopcnt
+	increase 28,rega
+	branch bn_rshift
+
+bn_lshift_256:
+	force 8,loopcnt
+	force 0,regc
+	branch bn_lshift_0
+
+bn_bigeq_256:
+	force 8,loopcnt
+	increase 28,rega
+	increase 28,regb
+	branch bn_bigeq_0
+
+
+bn_eq_zero_256:
+	ifetch 8,contr
+	nrtn blank
+	branch bn_eq_zero
+
+
+
+	
+bn_rshifteven_256:
+	copy rega,alarm
+bn_rshifteven_256_1:
+	copy alarm,rega
+	ifetch 1,rega
+	isolate1 0,pdata
+	rtn true
+	call bn_rshift_256
+	ifetch 1,regb
+	isolate0 0,pdata
+	branch bn_rshifteven_256_0,true
+	arg mem_p_256,rega
+	copy regb,contw
+	call bn_add_256
+	ifetch 1,regb
+	iadd regc,pdata
+	istore 1,regb						 
+	increase -32,regb
+bn_rshifteven_256_0:
+	add regb,32,rega
+	force 9,loopcnt
+	call bn_rshift
+	branch bn_rshifteven_256_1		
+
+else
+sp_initialize_256:
+	rtn
+
+endif
+
+
Index: program/ui.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ui.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/ui.prog	(working copy)
@@ -0,0 +1,755 @@
+ui_init:
+	call lpm_disable_exen_output
+	rtn wake
+	call ui_button_init
+	call ui_timer_init
+	branch ui_led_init_global
+
+ui_dispatch:
+	call ui_led_dispatch
+	branch ui_timer_check
+	
+ui_button_init:
+	fetch 1,mem_ui_button_gpio
+	rtneq UI_BUTTON_GPIO_DISABLE
+	iforce temp
+	call gpio_config_output
+	fetcht 1,mem_ui_button_gpio
+	call gpio_out_inactive
+	nop 100
+	fetcht 1,mem_ui_button_gpio
+	call gpio_config_input
+	branch ui_button_polling
+
+
+	
+ui_button_polling:
+	bpatchx patch30_1,mem_patch30
+	fetch 1,mem_ui_button_gpio
+	rtneq UI_BUTTON_GPIO_DISABLE
+	copy pdata,temp
+	call gpio_get_bit
+	nbranch ui_button_up,true
+	//fall through
+ui_button_down:
+	call ui_button_check_long_press
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BTN_DOWN,pdata
+	store 2,mem_ui_state_map
+	fetch 1,mem_ui_button_last_state
+	rtneq UI_BUTTON_STATE_DOWN
+	jam UI_BUTTON_STATE_DOWN,mem_ui_button_last_state
+	//Down Edge
+	fetch 1,mem_ui_button_timeout
+	store 1,mem_ui_button_timer //start long press timer
+	call lpm_button_get_wake_lock
+	jam BT_EVT_BUTTON_DOWN,mem_fifo_temp
+	branch ui_ipc_send_event
+ui_button_up:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BTN_DOWN,pdata
+	store 2,mem_ui_state_map
+	fetch 1,mem_ui_button_last_state
+	rtneq UI_BUTTON_STATE_UP
+	jam UI_BUTTON_STATE_UP,mem_ui_button_last_state
+	//Up Edge
+	jam 0,mem_ui_button_timer//stop long press timer
+	call lpm_button_clean_wake_lock
+	jam BT_EVT_BUTTON_UP,mem_fifo_temp
+	branch ui_ipc_send_event
+
+ui_button_check_long_press:
+	fetch 1,mem_ui_button_timer
+	rtn blank
+	increase -1,pdata
+	store 1,mem_ui_button_timer
+	nrtn blank
+	//Long Press
+	jam BT_EVT_BUTTON_LONG_PRESSED,mem_fifo_temp
+	branch ui_ipc_send_event
+
+lpm_button_get_wake_lock:
+	arg wake_lock_button,queue
+	branch lpm_get_wake_lock
+	
+lpm_button_clean_wake_lock:
+	arg wake_lock_button,queue
+	branch lpm_put_wake_lock
+
+
+
+/***********************ui led function****************************/
+/******************
+led function
+
+ui_led_init_global
+ui_led_on_global
+
+ui_led_off_global
+//input:rega :struct number
+ui_led_blink_start_global
+
+//input:rega :struct number
+//contr: the point that want to set led style address
+ui_led_set_style_global
+
+******************/
+//input:rega :struct number
+//output:regb :current strutct starting pointer
+calc_curr_struct_prt:
+	fetch 2,mem_ui_led_struct_ptr
+	mul32 rega,LED_OFFSET_LENGTH,regb
+	iadd regb,regb
+	rtn
+
+
+ui_led_init_global:
+	fetch 1,mem_ui_led_struct_num
+	rtn blank
+	copy pdata,loopcnt
+	fetch 2,mem_ui_led_struct_ptr
+	copy pdata,regb
+ui_led_init_loop:
+	add regb,LED_OFFSET_LED_GPIO,regc
+	ifetcht 1,regc
+	call gpio_config_output
+	call ui_led_off_static
+	increase LED_OFFSET_LENGTH,regb
+	loop ui_led_init_loop
+	rtn
+
+	
+//input:rega :struct number
+ui_led_on_global:
+	call calc_curr_struct_prt
+	setarg UI_LED_STATE_LIGHTING
+	istore 1,regb
+	call ui_led_stop_timer
+	branch ui_led_on_static
+
+	
+//input:rega :struct number
+ui_led_blink_stop_global:
+ui_led_off_global:
+	call calc_curr_struct_prt
+	setarg UI_LED_STATE_DARKING
+	istore 1,regb
+	call ui_led_stop_timer
+	branch ui_led_off_static
+
+
+//input:rega :struct number
+ui_led_blink_start_global:
+	call calc_curr_struct_prt
+	setarg UI_LED_STATE_BLINK_START
+	istore 1,regb
+	setarg LED_INFINITE_FLASH_NUM
+	istore 1,contw
+	branch ui_led_off_static
+
+
+//input:rega :struct number
+//REGC: the point that want to set led style address
+ui_led_set_style_global:
+	call calc_curr_struct_prt
+	arg LED_OFFSET_LENGTH,loopcnt
+	copy regc,contr
+	copy regb,contw
+	branch memcpy_fast
+
+
+
+ui_led_dispatch:
+	fetch 1,mem_ui_led_struct_num
+	rtn blank
+	arg 0,rega
+ui_led_blink_polling:
+	call ui_led_change_style_by_type
+	increase 1,rega
+	fetch 1,mem_ui_led_struct_num
+	isub rega,null
+	rtn zero
+	branch ui_led_blink_polling
+
+
+ui_led_off_static:
+	add regb,LED_OFFSET_LED_GPIO,regc
+	ifetcht 1,regc
+	fetch 1,mem_device_option
+	beq dvc_op_mouse,mouse_ui_led_off_static
+	branch gpio_out_inactive
+
+
+ui_led_on_static:
+	add regb,LED_OFFSET_LED_GPIO,regc
+	ifetcht 1,regc
+	fetch 1,mem_device_option
+	beq dvc_op_mouse,mouse_ui_led_on_static
+	branch gpio_out_active
+
+
+//input:rega :struct number
+ui_led_change_style_by_type:
+	add rega,ui_led_blink,queue
+	call timer_check
+	nrtn blank			//timer out
+	
+	call calc_curr_struct_prt
+
+	ifetch 1,regb			//led type
+
+	beq UI_LED_STATE_LIGHTING,ui_led_on_static
+	beq UI_LED_STATE_DARKING,ui_led_off_static
+	beq UI_LED_STATE_BLINK_STOP,ui_led_off_static
+	beq UI_LED_STATE_BLINK_DARKING,ui_led_blink_state_darking
+ui_led_blink_state_lighting:
+	call ui_led_on_static
+	add regb,LED_OFFSET_CB_LEDON,regc
+	call push_stack
+	ifetch 2,regc
+	call callback_func
+	call pop_stack
+	setarg UI_LED_STATE_BLINK_DARKING
+	istore 1,regb
+	add regb,LED_OFFSET_ON_TIME,regc
+	ifetch 2,regc
+	branch ui_led_blink_timer_start
+	
+
+ui_led_blink_state_darking:
+	call ui_led_off_static
+	add regb,LED_OFFSET_CB_LEDOFF,regc
+	call push_stack
+	ifetch 2,regc
+	call callback_func
+	call pop_stack
+	
+	add regb,LED_OFFSET_BLINK_COUNT,regc
+	ifetch 1,regc
+	beq LED_INFINITE_FLASH_NUM,ui_led_blink_infinite
+	increase -1,pdata
+	istore 1,regc
+	branch ui_led_blink_stop_global,blank		//End of flicker
+ui_led_blink_infinite:
+	setarg UI_LED_STATE_BLINK_LIGHTING
+	istore 1,regb
+	add regb,LED_OFFSET_OFF_TIME,regc
+	ifetch 2,regc
+ui_led_blink_timer_start:
+	add rega,ui_led_blink,queue
+	branch timer_init
+
+ui_led_stop_timer:
+	setarg 0
+	branch ui_led_blink_timer_start
+
+/***********************ui led function ending****************************/
+
+
+
+ui_timer_timeout:
+	setarg 0x1000
+	lshift16 pdata,pdata
+	iadd regb,regb
+	rtn
+	
+ui_timer_check:
+	bpatchx patch30_2,mem_patch30
+	arg 0,rega
+	fetcht 4,mem_ui_timer_last_btclk
+	copy clkn_bt,regb
+	copy regb,pdata
+	isub temp,null
+	ncall ui_timer_timeout,positive
+ui_timer_check_loop:
+	copy regb,pdata
+	increase 160,temp    //320btclk = 100ms
+	increase 160,temp
+	isub temp,null
+	nbranch ui_timer_check_end,positive
+	increase 1,rega   //increase 1 every 100ms count
+	and rega,0x0f,pdata
+	nbranch ui_timer_check_loop,blank
+	arg 0,rega  //reset timer if it's longer than 1.5s between 2 checks
+	call ui_timer_check_send_evt
+ui_timer_init:
+	copy clkn_bt,pdata
+	store 4,mem_ui_timer_last_btclk
+	rtn
+ui_timer_check_end:
+	copy rega,pdata
+	rtn blank
+	increase -160,temp    //320btclk = 100ms
+	increase -160,temp
+	set0 28,temp
+	storet 4,mem_ui_timer_last_btclk
+ui_timer_check_send_evt:
+	branch app_evt_timer
+
+	
+
+//**********************************************************//
+//************UI Inter-Processor Communication*******//
+//**********************************************************//
+ui_ipc_get_lock:
+	jam 1,mem_ipc_lock_bt
+ui_ipc_get_lock_wait:
+	fetch 1,mem_ipc_lock_c51
+	nbranch ui_ipc_get_lock_wait,blank
+	rtn
+	
+ui_ipc_put_lock:
+	jam 0,mem_ipc_lock_bt
+	rtn
+	
+
+	
+ui_ipc_send_event:
+	bpatchx patch30_3,mem_patch30
+	call ui_ipc_get_lock
+	copy rega,pdata
+	store 4,mem_ipc_rega_temp
+	arg mem_ipc_fifo_bt2c51,rega
+	call fifo_in
+	fetch 4,mem_ipc_rega_temp
+	copy pdata,rega
+	branch ui_ipc_put_lock
+
+ui_ipc_send_cmd:
+	bpatchx patch30_4,mem_patch30
+	call ui_ipc_get_lock
+	copy rega,pdata
+	store 4,mem_ipc_rega_temp	
+	arg mem_ipc_fifo_c512bt,rega
+	call fifo_in
+	fetch 4,mem_ipc_rega_temp
+	copy pdata,rega	
+	branch ui_ipc_put_lock
+
+ui_ipc_clean_all_fifo:
+	setarg 0
+	store UTIL_FIFO_LEN,mem_ipc_fifo_c512bt
+	store UTIL_FIFO_LEN,mem_ipc_fifo_bt2c51
+	rtn
+	
+check_51cmd:
+	bpatchx patch30_5,mem_patch30
+	fetch 1,mem_hci_cmd
+	nrtn blank
+	arg mem_ipc_fifo_c512bt,rega
+	call fifo_is_empty
+	rtn blank
+	jam IPC_CONTINUE_PROCESS,mem_ipc_skip_continue_proc
+	call check_51cmd_once
+	fetch 1,mem_ipc_skip_continue_proc
+	branch check_51cmd,blank
+	rtn
+
+check_51cmd_once:
+	call ui_ipc_get_lock
+	arg mem_ipc_fifo_c512bt,rega
+	call fifo_out
+	copy pdata,temp
+	call ui_ipc_put_lock
+	bpatchx patch30_6,mem_patch30
+	copy temp,pdata
+	rtn blank
+ 	beq BT_CMD_START_DISCOVERY,check_51cmd_start_discovery
+  	beq BT_CMD_STOP_DISCOVERY,check_51cmd_stop_discovery
+  	beq BT_CMD_RECONNECT,check_51cmd_reconnect
+	beq BT_CMD_START_ADV,check_51cmd_adv
+	beq BT_CMD_STOP_ADV,check_51cmd_stop_adv
+	beq BT_CMD_START_DIRECT_ADV,check_51cmd_direct_adv
+	beq BT_CMD_STOP_DIRECT_ADV,check_51cmd_stop_direct_adv
+	beq BT_CMD_LED_OFF,check_51cmd_led_off
+	beq BT_CMD_LED_ON,check_51cmd_led_on
+	beq BT_CMD_LED_BLINK,check_51cmd_led_start_blink
+	beq BT_CMD_LE_START_CONN,check_51cmd_le_start_con
+	beq BT_CMD_LE_START_SCAN,check_51cmd_start_scan
+	beq BT_CMD_LE_STOP_SCAN,check_51cmd_stop_scan
+	beq BT_CMD_ENTER_HIBERNATE,check_51cmd_hibernate
+	beq BT_CMD_BB_RECONN_CANCEL,check_51cmd_bb_reconn_cancel
+	//context related, process in context
+	store 1,mem_fifo_temp
+	call lmo_fifo_check
+	nbranch check_51cmd_restore,blank  //process this cmd next time while lmo fifo is full
+check_51cmd_once_continue:
+	fetch 1,mem_fifo_temp
+	bmark0 mark_context,check_51cmd_check_idle
+	bpatchx patch30_7,mem_patch30
+	fetch 1,mem_fifo_temp
+	beq BT_CMD_DISCONNECT,check_51cmd_disconnect
+  	beq BT_CMD_ENTER_SNIFF,check_51cmd_enter_sniff
+  	beq BT_CMD_EXIT_SNIFF,check_51cmd_exit_sniff
+  	beq BT_CMD_SET_PIN_CODE,check_51cmd_pincode
+	beq BT_CMD_LE_DISCONNECT,check_51cmd_le_disconnect
+	beq BT_CMD_LE_SMP_SECURITY_REQUEST,check_51cmd_le_smp_sec_req
+	beq BT_CMD_LE_UPDATE_CONN,check_51cmd_ble_update_connect_param
+	beq BT_CMD_ROLE_SWITCH,check_51cmd_role_switch
+	beq BT_CMD_STORE_RECONN_INFO_LE,eeprom_store_le_reconn_info
+	beq BT_CMD_STORE_RECONN_INFO_BT,eeprom_store_bd_reconn_info
+	beq BT_CMD_DHKEY_NOT_ACCEPT,check_51cmd_dhkey_not_accept
+	beq BT_CMD_STORE_RECONN_INFO,check_51cmd_store_reconn_info
+	rtn
+
+check_51cmd_check_idle:
+	store 1,mem_fifo_temp
+  	call context_check_idle
+	branch check_51cmd_restore,zero
+	call context_search_plap
+	nrtn zero
+check_51cmd_restore:
+	jam IPC_SKIP_CONTINUE_PROCESS,mem_ipc_skip_continue_proc
+	branch ui_ipc_send_cmd
+
+  
+ /******************** 51COMMAND*********************/
+//command opcode 0x01	
+check_51cmd_start_discovery:
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BT_DISCOVERY,pdata
+	store 2,mem_ui_state_map
+	jam 3,mem_scan_mode
+	rtn
+
+
+//command opcode 0x02	
+check_51cmd_stop_discovery:
+	jam 0,mem_hid_handshake_timer_count
+	jam 0,mem_scan_mode
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BT_DISCOVERY,pdata
+	store 2,mem_ui_state_map
+	rtn	
+
+
+//command opcode 0x03	
+check_51cmd_reconnect:	
+	jam hci_cmd_create_conn,mem_hci_cmd
+	rtn	
+
+
+//command opcode 0x04
+check_51cmd_disconnect:
+	jam LMP_DETACH,mem_lmo_opcode2
+	jam OTHER_END_TERMINATED,mem_disconn_reason_send
+	rtn
+
+
+//command opcode 0x05
+check_51cmd_enter_sniff:
+	jam LMP_SNIFF_REQ,mem_lmo_opcode2
+	arg mem_sniff_payload,contw
+	setarg 0
+	isolate1 27,clke_bt
+	setflag true,1,pdata		/* use init 2 if bit27 of clke is 1 */
+	istore 1,contw	
+	setarg 0	/* dsniff */
+	istore 2,contw
+	fetch 6,mem_sniff_param_interval
+	istore 6,contw
+	rtn	
+
+
+//command opcode 0x06
+check_51cmd_exit_sniff:
+	jam LMP_UNSNIFF_REQ,mem_lmo_opcode2
+	rtn
+
+
+//command opcode 0x10
+check_51cmd_pincode:
+	jam pincode_state_pincode_ready,mem_pincode_state
+//enable ssp master sm
+	fetch 1,mem_op
+	bbit1 op_inrand_req,check_51cmd_pincode_pair_passive
+	call tid_initiate
+	jam LMP_IN_RAND,mem_lmo_opcode2
+	rtn
+check_51cmd_pincode_pair_passive:
+	set0 op_inrand_req,pdata
+	store 1,mem_op
+	call lmp_accept_inrand
+	setarg 0
+	setflag master,smap_lmptid,pdata		
+	store 1,mem_lmo_tid2
+	rtn
+
+
+//command opcode 0x13
+check_51cmd_adv:
+	jam ON,mem_le_adv_enable
+	jam ADV_IND,mem_le_adv_type
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BLE_ADV,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+
+//command opcode 0x14
+check_51cmd_stop_adv:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BLE_ADV,pdata
+	store 2,mem_ui_state_map
+	jam OFF,mem_le_adv_enable
+	rtn
+
+
+//command opcode 0x15
+check_51cmd_direct_adv:
+	jam ON,mem_le_adv_enable
+	jam ADV_DIRECT_IND,mem_le_adv_type
+	fetch 2,mem_ui_state_map
+	set1 UI_STATE_BLE_ADV,pdata
+	store 2,mem_ui_state_map
+	rtn
+
+
+//command opcode 0x16
+check_51cmd_stop_direct_adv:
+	fetch 2,mem_ui_state_map
+	set0 UI_STATE_BLE_ADV,pdata
+	store 2,mem_ui_state_map
+	jam OFF,mem_le_adv_enable
+	rtn
+
+
+//command opcode 0x17
+check_51cmd_le_disconnect:
+	setarg 20 // 100ms
+	store 2,mem_le_superto
+	store 2,mem_le_init_superto
+	branch le_send_terminate_ind_user_terminated
+
+
+//command opcode 0x18
+check_51cmd_ble_update_connect_param:
+	branch le_l2cap_tx_update_req
+
+
+//command opcode 19
+check_51cmd_led_off:
+	arg 0,rega
+	branch ui_led_off_global
+
+
+//command opcode 20
+check_51cmd_led_on:
+	arg 0,rega
+	branch ui_led_on_global
+
+
+//command opcode 21
+check_51cmd_led_start_blink:
+	arg 0,rega
+	call calc_curr_struct_prt
+	ifetch 1,regb
+	beq UI_LED_STATE_BLINK_START,check_51cmd_led_start_blink_in_blink
+	beq UI_LED_STATE_BLINK_LIGHTING,check_51cmd_led_start_blink_in_blink
+	beq UI_LED_STATE_BLINK_DARKING,check_51cmd_led_start_blink_in_blink
+	branch ui_led_blink_start_global
+
+check_51cmd_led_start_blink_in_blink:
+	ifetch 1,contr
+	rtneq LED_INFINITE_FLASH_NUM
+	branch ui_led_blink_start_global
+
+
+//command opcode 0x22
+check_51cmd_le_start_con:
+	jam ON,mem_le_scan_enable
+	jam hci_cmd_le_create_conn,mem_hci_cmd
+//	fetch 6,mem_app_peer_addr
+//	store 6,mem_le_conn_peer_addr
+	rtn
+
+
+//command opcode 0x23
+check_51cmd_start_scan:
+	jam ON,mem_le_scan_enable
+	rtn
+
+
+//command opcode 0x24
+check_51cmd_stop_scan:
+	jam OFF,mem_le_scan_enable
+	jam 0,mem_hci_cmd
+	rtn
+
+
+//command opcode 0x25
+check_51cmd_hibernate:
+	fetch 2,mem_cb_before_hibernate
+	call callback_func
+	fetch 1,mem_ui_button_gpio
+	beq UI_BUTTON_GPIO_DISABLE,check_51cmd_hibernate_btn_disabled
+	copy pdata,temp
+	call gpio_config_input
+check_51cmd_hibernate_btn_disabled:
+	call ui_ipc_clean_all_fifo
+	branch lpm_hibernate	
+
+
+//command opcode 0x27
+check_51cmd_le_smp_sec_req:
+	branch le_send_smp_security_request
+
+
+//command opcode 0x29
+check_51cmd_role_switch:
+  	jam LMP_SLOT_OFFSET,mem_lmo_opcode2
+	set1 mark_switch_initiated,mark
+	nrtn master
+	jam SWITCH_FLAG_INIT,mem_switch_flag
+	jam LMP_SWITCH_REQ ,mem_lmo_opcode2
+	fetch 1,mem_connection_options
+	set0 CONNECTION_SWITCH,pdata
+	store 1,mem_connection_options
+	rtn
+
+
+//command opcode 0x30
+check_51cmd_bb_reconn_cancel:
+	force page_length_timer,queue
+	branch timer_stop
+
+
+//command opcode 0x33
+check_51cmd_dhkey_not_accept:
+	call tid_set_reply
+	jam LMP_DHKey_Check,mem_lmi_opcode2
+	branch lmp_reject_pdu_not_allowed	
+
+
+ui_check_paring_button:
+	fetch 1,mem_ui_state_map
+	rtnbit0 UI_STATE_BTN_DOWN
+	rtnbit0 UI_STATE_BT_RECONNECT
+	branch check_51cmd_bb_reconn_cancel
+
+
+
+///////////queue function////////////
+queue_init:
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_CURR_NUM,contw
+	setarg 0
+	istore 3,contw
+	rtn
+	
+//input:rega:the address of the data to which you want to input queue
+//output:if user is disable,mean queue no have space
+queue_push:
+	call disable_user
+	call queue_full
+	rtn blank
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_CURR_NUM,regb
+	ifetcht 1,regb
+	increase 1,temp
+	istoret 1,regb	//number add 
+	
+	ifetcht 1,pdata	//temp:each length
+	copy temp,loopcnt
+	add pdata,QUEUE_OFFSET_WRITE_PTR,regb
+	ifetch 1,regb
+	imul32 temp,pdata	//offset
+	iadd contr,contw
+	copy rega,contr
+calc_queue_next_ptr:
+	call memcpy
+	call queue_get_size
+	pincrease -1
+	ifetcht 1,regb
+	increase 1,temp
+	iand temp,temp
+	istoret 1,regb
+	branch enable_user
+
+
+//input:rega:the address of the data to which you want to output queue
+//output:if user is disable,mean queue no have data
+queue_pop:
+	call disable_user
+	call queue_empty
+	rtn blank
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_CURR_NUM,regb
+	ifetcht 1,regb
+	increase -1,temp
+	istoret 1,regb
+	ifetcht 1,pdata		//each size
+	copy temp,loopcnt
+	add pdata,QUEUE_OFFSET_READ_PTR,regb
+	ifetch 1,regb
+	imul32 temp,pdata	//offset
+	iadd contr,contr
+	increase 1,contr
+	copy rega,contw
+	branch calc_queue_next_ptr
+
+
+//function:no pop element,only copy element in rega
+//input:rega:the address of the data to which you want to output queue
+//output:if user is disable,mean queue no have data
+//regb is new ptr
+queue_get_new_ele:
+	call disable_user
+	call queue_empty
+	rtn blank
+	fetch 2,mem_queue_ptr
+	ifetcht 1,pdata		//each size
+	copy temp,loopcnt
+	add pdata,QUEUE_OFFSET_READ_PTR,regb
+	ifetch 1,regb
+	imul32 temp,pdata	//offset
+	iadd contr,contr
+	increase 1,contr
+	copy contr,regb
+	copy rega,contw
+	call memcpy
+	branch enable_user
+
+queue_store_new_ele:
+	call disable_user
+	call queue_empty
+	rtn blank
+	fetch 2,mem_queue_ptr
+	ifetcht 1,pdata		//each size
+	copy temp,loopcnt
+	add pdata,QUEUE_OFFSET_READ_PTR,regb
+	ifetch 1,regb
+	imul32 temp,pdata	//offset
+	iadd contr,contr
+	add contr,2,contw
+	copy rega,contr
+	increase -1,loopcnt
+	call memcpy
+	branch enable_user
+
+//output:if blank is 1,mean queue is empty
+queue_empty:
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_CURR_NUM,contr
+	ifetch 1,contr
+	rtn
+
+//output:if blank is 1,mean queue is full
+queue_full:
+	call queue_get_size
+	ifetcht 1,contr
+	isub temp,pdata
+	rtn
+
+//output:pdata is queue size
+queue_get_size:
+	fetch 2,mem_queue_ptr
+	add pdata,QUEUE_OFFSET_LENGTH,contr
+	ifetch 1,contr
+	rtn
+
+///////////queue function end////////////
+
+
+
+
Index: program/usb.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/usb.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/usb.prog	(working copy)
@@ -0,0 +1,1079 @@
+ ifdef COMPILE_USB
+
+usb_isr:
+	bpatchx patch31_0,mem_patch31
+	fetch 1,core_usb_status
+	isolate1 USB_STATUS_RESET,pdata
+	call usb_init,true
+	fetch 1,core_usb_status
+	store 1,core_usb_status
+	store 1,mem_usb_status
+	call usb_nak_state_judge
+	call usb_rx
+	call usb0_tx
+	call usb_tx
+	branch usb_nak_state
+
+usb_init:
+	bpatchx patch31_1,mem_patch31
+	call enable_authrom
+	call usb_init_param
+	jam 0x00,core_usb_config
+ifdef SIM
+	nop 10
+else
+	nop 10000
+endif
+	jam 0xc0,core_usb_trig
+	fetch 2,core_clkoff
+	set0 CLOCK_OFF_USB,pdata
+	store 2,core_clkoff
+	jam 0x0,core_usb_hmode
+	jam 0x3c,core_usb_config
+	setarg mem_usb_rxbuf
+	store 2,core_usb_rx_saddr
+	store 2,core_usb_rxptr
+	setarg mem_usb_rxbuf_end
+	store 2,core_usb_rx_eaddr
+	jam 0x4,core_usb_hmode
+	jam 0,core_usb_addr
+	jam 0xff,core_usb_status
+	setarg mem_usb_clear_mem_end
+	arg mem_usb_clear_mem_start,contw
+	isub contw,loopcnt
+	branch clear_mem
+	
+usb_offline_check_init:
+	fetcht 1,mem_usb_offline_check_gpio
+	branch gpio_config_input
+usb_offline_state:
+	fetch 1,mem_usb_device_enumeration_endflag
+	rtn blank
+	fetcht 1,mem_usb_offline_check_gpio
+	call gpio_get_bit
+	branch usb_init,true
+	rtn
+
+usb_init_param:
+	jam DEV_DEFAULT,mem_usb0_state
+	setarg 0x0
+	store 1,mem_remain
+	store 2,mem_usb_zero_packet
+	pincrease 1
+	store 2,mem_usb_ones_packet
+	pincrease 1
+	store 2,mem_usb_two_packet
+	arg mem_string0,contw
+	setarg 0x030404
+	istore 3,contw
+	setarg 0x0409
+	istore 2,contw
+	arg mem_string1,contw
+	setsect 0,0x15906
+	setsect 1,0x210d2
+	setsect 2,0x10494
+	setsect 3,0x1
+	istore 9,contw
+	arg mem_string2,contw
+	setsect 0,0x1570f
+	setsect 1,0x15c9a
+	setsect 2,0x256c6
+	setsect 3,0x1cdcd
+	istore 9,contw
+	setsect 0,0x14420
+	setsect 1,0x25d99
+	setsect 2,0x25636
+	setsect 3,0x1
+	istore 7,contw
+	arg mem_string3,contw
+	setsect 0,0x1620a
+	setsect 1,0xc8c
+	setsect 2,0x30333
+	setsect 3,0xc0c0
+	istore 9,contw
+	setsect 0,0x3130
+	istore 2,contw
+	setarg USB_KBDATA_VENDOR_DEFINE_ADDR
+	store 2,mem_hidreportdesc_kb
+	setarg USB_MSDATA_ADDR
+	store 2,mem_hidreportdesc_m
+	arg USB_DEVICEDATA_ADDR,contr
+	arg mem_devicedesc,contw
+	arg 19,loopcnt
+	call memcpy	
+	arg USB_CONFDATA_ADDR,contr
+	arg mem_confdesc,contw
+	arg 60,loopcnt
+	call memcpy
+usb_config_cb:
+	fetch 2,mem_cb_usb_config
+	branch callback_func
+
+usb_tx_interval_config:
+	fetch 1,mem_usb_tx_interval
+	rtn blank
+	store 1,mem_confdesc+34
+	store 1,mem_confdesc+59
+	rtn
+
+usb_nak_state:
+	arg TIMER_NAK,queue
+	call timer_check
+	nrtn blank
+	fetch 1 ,mem_usb_wakestate_onetime_flag
+	nrtn blank
+	fetch 1,mem_usb_device_enumeration_endflag
+	ncall usb_mac_wakeup_judge,blank
+	rtn
+
+usb_nak_state_judge:
+	fetch 1,mem_usb_status
+	bbit1 USB_STATUS_NAK,usb_nak_state_timer_init
+	rtn
+	
+usb_nak_state_timer_init:
+	call usb0_attached_state_judge
+	call timer_reinit
+	setarg TIMER_NAK_DELAY
+	arg TIMER_NAK,queue
+	branch timer_init
+	
+usb0_attached_state_judge:
+	fetch 1,mem_usb_state
+	bne USB_CONNECTED,usb_clear_halt_dispose
+	jam 0,mem_usb_wakestate_onetime_flag
+	jam 0,mem_usb_mac_wakeup_trig
+	rtn
+
+usb_clear_halt_dispose:
+	fetch 1,mem_usb_clear_halt
+	rtn blank
+	jam 0,mem_usb_clear_halt
+	jam USB_CONNECTED,mem_usb_state
+	jam 1,mem_usb_device_enumeration_endflag
+	rtn
+
+usb_rx_no_data:
+	fetch 1,mem_usb_status
+	bbit1 USB_STATUS_SETUP,usb_class_type
+	rtn
+
+usb_rx_data:
+	fetch 1,core_usb_txbusy
+	rtnbit1 USB_STATUS_RXEMPTY
+	fetchr contus,2,core_usb_rx_saddr
+	fetchr contue,2,core_usb_rx_eaddr
+	fetchr contu,2,core_usb_rxptr
+	ifetch 2,contu
+	rshift8 pdata,temp
+	rshift4 temp,temp					// temp is endpoint
+	arg 0xfff,contr
+	iand contr,loopcnt
+	copy loopcnt,rega
+usb_rx_read:
+	ifetch 1,contu
+	istore 1,contw
+	loop usb_rx_read
+	storer contu,2,core_usb_rxptr
+	storer rega,2,mem_usb_read_len
+	rtn
+usb_data_rx:
+	rtn 
+
+usb_rx:
+	bpatchx patch31_2,mem_patch31
+	fetch 1,mem_usb_status
+	rtnbit0 USB_STATUS_RXREADY
+	arg mem_usb_setup,contw
+	call usb_rx_data
+	copy temp,pdata
+	beq 0,usb0_rx
+	branch usb_data_rx
+usb0_rx:
+	fetch 1,mem_usb_read_len
+	beq 0x00,usb_rx_no_data
+	beq 0x01,usb_out_one_byte	// HUAWEI pad led status	
+	sub pdata,7,null
+	rtn positive
+usb_class_type:
+	bpatchx patch31_3,mem_patch31
+	set0 mark_isstr,mark
+	fetch 1,mem_usb_setup_bmRequestType
+	and_into 0x80,pdata
+	beq IN_DEVICE,usb_in_device
+	beq OUT_DEVICE,usb_out_device
+	branch assert
+
+usb_out_one_byte:
+	fetch 1,mem_usb_setup
+	rtnbit1 7	// OUT_DEVICE
+	call usb_get_led_status
+	branch usb0_reply_zerolen
+
+
+usb_in_device:
+	fetch 1,mem_usb_setup_bmRequestType
+	rshift4 pdata,pdata
+	rshift pdata,pdata
+	and_into 0x03,pdata
+	beq STANDARD_REQ,usb_in_standard_req
+	beq CLASS_REQ,usb_in_class_req
+	beq MANUFACTURER_REQ,usb_in_manufacturer_req
+	branch assert
+
+usb_out_device:
+	fetch 1,mem_usb_setup_bmRequestType
+	rshift4 pdata,pdata
+	rshift pdata,pdata
+	and_into 0x03,pdata
+	beq STANDARD_REQ,usb_out_standard_req
+	beq CLASS_REQ,usb_out_class_req	
+	beq MANUFACTURER_REQ,usb_out_manufacturer_req
+	branch assert
+
+usb_in_standard_req:
+	fetch 1,mem_usb_setup_bRequest
+	beq GET_CONFIGURATION,usb0_request_get_configuration
+	beq GET_DESCRIPTOR,usb0_request_get_descriptor
+	beq GET_INTERFACE,usb0_request_get_interface
+	beq GET_STATUS,usb0_request_get_status
+	branch usb0_force_stall
+
+usb_in_class_req:
+	fetch 1,mem_usb_setup_bRequest
+	beq GET_IDLE,usb_get_idle
+	beq GET_REPORT,usb_get_report
+	beq GET_PROTOCOL,usb_get_protocol_req
+	branch usb0_force_stall
+
+usb_in_manufacturer_req:
+	branch usb0_force_stall
+
+usb_out_standard_req:
+	fetch 1,mem_usb_setup_bRequest
+	beq CLEAR_FEATURE,usb0_request_clear_feature
+	beq SET_FEATURE,usb0_request_set_feature
+	beq SET_ADDRESS,usb0_request_set_address
+	beq SET_CONFIGURATION,usb0_request_set_configuration
+	beq SET_INTERFACE,usb0_request_set_interface
+	beq SET_DESCRIPTOR,usb0_force_stall
+	branch usb0_force_stall
+
+usb_out_class_req:
+	fetch 1,mem_usb_setup_bRequest
+	beq SET_IDLE,usb_set_idle
+	beq SET_REPORT,usb_set_report
+	beq SET_PROTOCOL,usb_set_protocol_req
+	branch usb0_force_stall
+
+usb_out_manufacturer_req:
+	branch usb0_force_stall
+
+usb0_force_stall:
+	fetch 1,core_usb_stall
+	set1 0,pdata
+	store 1,core_usb_stall
+	branch usb0_reply_zerolen
+	
+usb0_reply_zerolen:
+	jam 0x10,core_usb_trig
+	rtn
+
+usb0_request_get_configuration:
+	fetch 1,mem_usb_setup_bmRequestType
+	bne IN_DEVICE,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 1,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb0_state
+	beq DEV_CONFIGURED,usb0_request_get_cfg_dev_cfg
+	beq DEV_ADDRESS,usb0_request_get_cfg_dev_addr
+	branch usb0_force_stall
+//Return current config : 1
+usb0_request_get_cfg_dev_cfg:
+	arg 1,regb
+	branch usb_send_ones_packet
+//Config do not work, return default config : 0
+usb0_request_get_cfg_dev_addr:
+	arg 1,regb
+	branch usb_send_zero_packet
+
+usb0_request_get_descriptor:
+	bpatchx patch31_4,mem_patch31
+//	set0 mark_isstr,mark
+	fetch 1,mem_usb_setup_bValueH
+	beq DSC_DEVICE,dsc_device_info
+	beq DSC_CONFIG,dsc_config_info	
+	beq DSC_STRING,dsc_string_info
+	beq DSC_HID,dsc_hid_info
+	beq DSC_HID_REPORT,dsc_hid_report_info
+	branch usb0_force_stall
+
+dsc_hid_info:
+	jam 0,mem_usb_get_protocol_flag
+	fetch 1,mem_usb_setup_wIndex
+	beq 0,dsc_hid_info_interface0
+	beq 1,dsc_hid_info_interface1
+	branch usb0_force_stall
+//class_descriptor hid_descriptor--keyboard 
+dsc_hid_info_interface0:
+	fetchr regb,1,mem_confdesc+19
+	arg mem_confdesc+19,rega
+	branch usb0_respond
+//class_descriptor hid_descriptor--mouse 
+dsc_hid_info_interface1:
+	fetchr regb,1,mem_confdesc+44
+	arg mem_confdesc+44,rega
+	branch usb0_respond
+
+dsc_device_info:
+//input : pdata : data poniter 
+//input : temp: data len
+//sets the data pointer and len to correct descriptor
+	fetch 1,mem_usb_set_high_addr_flag
+	ncall usb_set_high_addr,blank
+	setarg mem_devicedesc
+	fetcht 1,mem_devicedesc
+dsc_info_set_data_len:
+	store 2,mem_dsc_info_data_pointer
+	storet 1,mem_dsc_info_len
+	fetch 1,mem_usb_setup_bLength
+	isub temp,null
+	nbranch dsc_info_set_current_data_len,positive
+dsc_info_set_initial_data_len:
+	fetch 1,mem_dsc_info_len
+dsc_info_set_data_size_completed:	
+	iforce regb
+	fetch 2,mem_dsc_info_data_pointer
+	add pdata,1,pdata
+	iforce rega
+	branch usb0_respond
+dsc_info_set_current_data_len:
+	fetch 1,mem_usb_setup_bLength
+	branch dsc_info_set_data_size_completed
+
+usb_set_high_addr:
+	fetch 1,core_usb_addr
+	ncall usb0_set_addr,blank
+	jam 0,mem_usb_set_high_addr_flag
+	rtn
+usb0_set_addr:
+	fetch 1,core_usb_addr
+   	set1 7,pdata
+    	store 1,core_usb_addr
+    	rtn
+
+dsc_config_info:
+	setarg mem_confdesc
+	fetcht 1,mem_confdesc
+	branch dsc_info_set_data_len
+
+dsc_string_info:
+	fetch 1,mem_usb_setup_bValue
+	sub pdata,3,null
+	nbranch usb0_force_stall,positive
+	fetch 1,mem_usb_setup_bValue
+	arg mem_string0,rega
+	beq 0,usb0_respond_length	
+	set1 mark_isstr,mark
+	arg mem_string1,rega
+	beq 1,usb0_respond_length
+	arg mem_string2,rega
+	beq 2,usb0_respond_length
+	arg mem_string3,rega
+	beq 3,usb0_respond_length
+	rtn
+
+dsc_hid_report_info:
+	fetch 2,mem_usb_setup_wIndex
+	beq 1,dsc_hid_report_info0
+	fetchr rega,2,mem_hidreportdesc_kb
+	branch usb0_respond_length
+dsc_hid_report_info0:
+	jam 1,mem_usb_device_enumeration_endflag
+	jam USB_GOT_REPORT_REQ,mem_usb_state
+	fetchr rega,2,mem_hidreportdesc_m
+	branch usb0_respond_length
+
+
+usb0_request_get_interface:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall		
+	fetch 1,mem_usb_setup_bmRequestType
+	bne IN_INTERFACE,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 1,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	arg 1,regb
+	branch usb_send_zero_packet
+
+
+usb0_request_get_status:
+	fetch 1,mem_usb0_state
+	beq DEV_DEFAULT,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 2,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bmRequestType
+	beq IN_DEVICE,usb0_get_status_in_device
+	beq IN_INTERFACE,usb0_get_status_in_interface
+	beq IN_ENDPOINT,usb0_get_status_in_endpoint
+	branch usb0_force_stall
+
+
+Usb0_SDsystem_dispose:
+	jam 1,mem_sdsystem_wakeup_flag
+	branch usb_send_two_packet
+
+usb0_get_status_in_device:
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	arg 2,regb
+	fetch 1,mem_usb_remote_wakeup
+	beq 0x01,Usb0_SDsystem_dispose
+//regb:length
+usb_send_zero_packet:
+	arg mem_usb_zero_packet,rega
+	branch usb0_respond
+usb_send_ones_packet:
+	arg mem_usb_ones_packet,rega
+	branch usb0_respond
+usb_send_two_packet:
+	arg mem_usb_two_packet,rega
+	branch usb0_respond
+
+usb0_get_status_in_interface:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall
+	arg 2,regb
+	branch usb_send_zero_packet
+
+usb0_get_status_in_endpoint:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	beq IN_EP1,usb0_get_status_in_ep_in_ep1
+	beq IN_EP2,usb0_get_status_in_ep_in_ep2
+	beq IN_EP3,usb0_get_status_in_ep_in_ep3
+	and_into 0x7f,pdata
+	beq 0x00,usb0_get_status_in_ep_in_ep0
+	branch usb0_force_stall
+	
+usb0_get_status_in_ep_in_ep0:
+	fetch 1,mem_usb_ep0_stall_status
+usb0_get_status_in_ep_in_ack:
+	arg 2,regb
+	beq 1,usb_send_ones_packet
+	branch usb_send_zero_packet
+usb0_get_status_in_ep_in_ep1:
+	fetch 1,mem_usb_ep1_stall_status
+	branch usb0_get_status_in_ep_in_ack
+usb0_get_status_in_ep_in_ep2:
+	fetch 1,mem_usb_ep2_stall_status
+	branch usb0_get_status_in_ep_in_ack
+usb0_get_status_in_ep_in_ep3:
+	fetch 1,mem_usb_ep3_stall_status
+	branch usb0_get_status_in_ep_in_ack
+
+usb_get_idle:
+	jam 1,mem_usb_idle_flag
+	arg mem_usb_idle_rate,rega
+	arg 1,regb
+	branch usb0_respond
+
+usb_get_report:
+	fetch 2,mem_usb_setup_bValue
+	arg PC_GET_REPORT,temp
+	isub temp,null
+	nbranch usb0_force_stall,zero
+//	set0 mark_isstr,mark
+usb_get_report_dispose:	
+	fetch 1,mem_usb0_data_ready_report
+	nbranch usb_get_report_data_success,blank
+	jam PC_GET_NONDATA,mem_usb0_get_report_data
+usb_get_report_send_data:
+	fetch 1,mem_usb_setup_bLength
+	iforce regb
+	arg mem_usb0_get_report_data,rega
+	call usb0_respond
+usb_get_report_data_release:	
+	arg mem_usb0_get_report_data,contw
+	arg 8,loopcnt
+	branch memset0
+usb_get_report_data_success:
+	jam 0,mem_usb0_data_ready_report
+	jam PC_GET_DATA,mem_usb0_get_report_data
+	branch usb_get_report_send_data
+
+usb_get_protocol_req:
+	fetch 1,mem_usb_setup_bLength
+	bne 1,usb0_force_stall
+	jam 1,mem_usb_get_protocol_flag
+	arg 1,regb //length
+	fetch 1,mem_usb_set_protocol_value
+	beq 0,usb_get_report_protocol
+	beq 1,usb_get_boot_protocol
+	branch usb_send_zero_packet
+usb_get_report_protocol:
+	branch usb_send_ones_packet
+usb_get_boot_protocol:
+	branch usb_send_zero_packet
+
+
+
+//in device
+usb0_request_clear_feature:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bmRequestType
+	beq OUT_DEVICE,usb0_request_clear_feature_out_device
+	beq OUT_INTERFACE,usb0_request_clear_feature_out_interface
+	beq OUT_ENDPOINT,usb0_request_clear_feature_out_endpoint
+	branch usb0_force_stall
+
+usb0_request_clear_feature_out_device:
+	fetch 1,mem_usb_setup_bValue
+	bne DEVICE_REMOTE_WAKEUP,usb0_force_stall
+	fetch 1,core_usb_config
+	set0 7,pdata
+	store 1,core_usb_config
+	jam 0,mem_usb_remote_wakeup
+	jam 1,mem_usb_clear_remote_wakeup
+	fetch 1,mem_sdsystem_wakeup_flag
+	branch usb0_reply_zerolen,blank
+	jam 0,mem_sdsystem_wakeup_flag
+	jam 0,mem_usb_clear_remote_wakeup
+	jam USB_CONNECTED,mem_usb_state
+	branch usb0_reply_zerolen
+
+usb0_request_clear_feature_out_interface:
+	branch usb0_force_stall
+
+usb0_request_clear_feature_out_endpoint:
+	fetch 1,mem_usb_setup_bValue
+	bne ENDPOINT_HALT,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	beq IN_EP1,usb0_force_stall_ep1_in_off
+	beq IN_EP2,usb0_force_stall_ep2_in_off
+	beq IN_EP3,usb0_force_stall_ep3_in_off
+	and_into 0x7f,pdata
+	beq 0x00,usb0_force_stall_ep0_in_off
+	branch usb0_force_stall
+
+usb0_force_stall_ep0_in_off:
+	jam 0,mem_usb_ep0_stall_status
+	branch usb0_reply_zerolen
+usb0_force_stall_ep1_in_off:
+	jam 0,mem_usb_ep1_stall_status
+usb0_force_stall_ep1_in_off_reply:	
+	jam 1,mem_usb_clear_halt
+	branch usb0_reply_zerolen
+usb0_force_stall_ep2_in_off:
+	jam 0,mem_usb_ep2_stall_status
+	branch usb0_force_stall_ep1_in_off_reply
+usb0_force_stall_ep3_in_off:
+	jam 0,mem_usb_ep3_stall_status
+	branch usb0_force_stall_ep1_in_off_reply
+
+
+usb0_request_set_feature:
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bmRequestType
+	beq OUT_DEVICE,usb0_request_set_feature_out_device
+	beq OUT_INTERFACE,usb0_request_set_feature_out_interface
+	beq OUT_ENDPOINT,usb0_request_set_feature_out_endpoint
+	branch usb0_force_stall
+
+usb0_request_set_feature_out_device:
+	fetch 1,mem_usb_setup_bValue
+	bne DEVICE_REMOTE_WAKEUP,usb0_force_stall
+	call dongle_set_pc_sleep_flag
+	fetch 1,core_usb_config
+	set1 7,pdata
+	store 1,core_usb_config
+	jam 1,mem_usb_remote_wakeup
+	jam USB_SLEEP,mem_usb_state
+	jam 0,mem_usb_tx_win_enable
+	call usb0_reply_zerolen
+usb_wakeup_timer_reinit:
+	call timer_reinit
+	setarg TIMER_WAKEUP_DELAY
+	arg TIMER_WAKEUP,queue
+	branch timer_init
+	
+usb0_request_set_feature_out_interface:
+	branch usb0_force_stall
+
+usb0_request_set_feature_out_endpoint:
+	fetch 1,mem_usb_setup_bValue
+	bne ENDPOINT_HALT,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	beq IN_EP1,usb0_force_stall_ep1_in_on
+	beq IN_EP2,usb0_force_stall_ep2_in_on
+	beq IN_EP3,usb0_force_stall_ep3_in_on
+	and_into 0x7f,pdata
+	beq 0x00,usb0_force_stall_ep0_in_on
+	branch usb0_force_stall
+
+usb0_force_stall_ep0_in_on:
+	jam 1,mem_usb_ep0_stall_status
+	branch usb0_reply_zerolen
+usb0_force_stall_ep1_in_on:
+	jam 1,mem_usb_ep1_stall_status
+	branch usb0_reply_zerolen
+usb0_force_stall_ep2_in_on:
+	jam 1,mem_usb_ep2_stall_status
+	branch usb0_reply_zerolen
+usb0_force_stall_ep3_in_on:
+	jam 1,mem_usb_ep3_stall_status
+	branch usb0_reply_zerolen
+
+
+usb0_request_set_address:
+	fetch 1,mem_usb_setup_bmRequestType
+	bne OUT_DEVICE,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	and_into 0x80,pdata
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb_usb0_state_set_dev_addr
+usb_usb0_state_set_dev_default:	
+	jam DEV_DEFAULT,mem_usb0_state
+usb0_request_set_wait_address:
+	fetch 1,mem_usb_setup_bValue
+	store 1,core_usb_addr
+	call usb0_reply_zerolen
+	jam 1,mem_usb_set_high_addr_flag
+	rtn
+usb_usb0_state_set_dev_addr:
+	jam DEV_ADDRESS,mem_usb0_state
+	branch usb0_request_set_wait_address
+
+
+usb0_request_set_configuration:
+	fetch 1,mem_usb0_state
+	beq DEV_DEFAULT,usb0_force_stall
+	fetch 1,mem_usb_setup_bmRequestType
+	bne OUT_DEVICE,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue+1
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	sub pdata,USB_MAX_NUM_CFG,null
+	nbranch usb0_force_stall,positive
+	fetch 1,mem_usb0_state
+	beq DEV_ADDRESS,usb0_request_set_cfg_addr_state
+	beq DEV_CONFIGURED,usb0_request_set_cfg_cfg_state
+	branch usb0_force_stall
+ // This software only supports config = 0,1
+usb0_request_set_cfg_addr_state:
+usb0_request_set_cfg_cfg_state:
+	fetch 1,mem_usb_setup_bValue	//1:Configured state   0:Address state
+	beq 0,usb0_request_set_cfg_stay_addr_state
+	jam DEV_CONFIGURED,mem_usb0_state
+	branch usb0_reply_zerolen
+usb0_request_set_cfg_stay_addr_state:
+	jam DEV_ADDRESS,mem_usb0_state
+	branch usb0_reply_zerolen
+
+
+usb0_request_set_interface:
+	fetch 1,mem_usb0_state
+	bne DEV_CONFIGURED,usb0_force_stall		
+	fetch 1,mem_usb_setup_bmRequestType
+	bne OUT_INTERFACE,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValueH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bLengthH
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_wIndex+1
+	bne 0,usb0_force_stall
+	branch usb0_reply_zerolen
+
+
+usb_set_idle:
+	bpatchx patch31_5,mem_patch31
+	jam 1,mem_usb_idle_flag
+	fetch 1,mem_usb_setup_bValueH
+	store 1,mem_usb_idle_rate
+	fetch 1,mem_usb_setup_wIndex
+	sub pdata,1,null
+	call usb_clear_remote_wakeup_set0,zero
+	fetch 1,mem_usb_state
+	bne USB_RESUME,usb0_reply_zerolen
+	jam USB_CONNECTED,mem_usb_state
+	call usb0_reply_zerolen
+	nop 30000
+	nop 30000
+	rtn
+usb_clear_remote_wakeup_set0:
+	jam 1,mem_usb_device_enumeration_endflag
+	jam 0,mem_usb_clear_remote_wakeup
+	jam USB_RESUME,mem_usb_state
+	rtn
+
+
+usb_set_report:
+	arg mem_usb0_set_report_data,contw
+	call usb_rx_data
+	jam 1,mem_usb0_get_set_report
+	call usb_set_report_resume_judge
+	fetch 2,mem_usb_setup_bValue
+	store 2,mem_usb_setup_bValue_temp
+	call usb0_reply_zerolen
+	fetch 1,mem_device_option
+	rtnne dvc_op_dongle
+	fetch 1,mem_usb_tx_win_enable
+	rtn blank
+	fetch 1,mem_usb0_set_report_data
+usb_get_led_status:	
+	store 1,mem_24g_led_status
+	jam 0,mem_usb_tx_win_enable
+	jam KB_LED_ACKPAYLOAD,mem_24g_ackpayload_enable
+	rtn
+
+	
+usb_set_report_resume_judge:
+	fetch 2,mem_usb_setup_bValue
+	arg PC_SET_REPORT_bValue,temp
+	isub temp,null
+	nrtn zero
+	fetch 2,mem_usb_setup_wIndex
+	arg PC_SET_REPORT_wIndex,temp
+	isub temp,null
+	nrtn zero
+	fetch 2,mem_usb_setup_bLength
+	arg PC_SET_REPORT_bLength,temp
+	isub temp,null
+	nrtn zero
+	jam 1,mem_usb_tx_win_enable
+	rtn
+
+
+usb_set_protocol_req:
+	fetch 1,mem_usb_setup_bLength
+	bne 0,usb0_force_stall
+	fetch 1,mem_usb_setup_bValue
+	beq BOOT_PROTOCOL,usb_set_boot_protocol
+	beq REPORT_PROTOCOL,usb_set_report_protocol
+	branch usb0_force_stall
+usb_set_boot_protocol:
+	jam 0,mem_usb_set_protocol_status
+	jam 1,mem_usb_set_protocol_value
+	branch usb0_reply_zerolen
+usb_set_report_protocol:
+	jam 1,mem_usb_tx_mac_enable
+	jam 1,mem_usb_set_protocol_status
+	jam 0,mem_usb_set_protocol_value
+	branch usb0_reply_zerolen
+
+
+usb0_respond_length:
+	ifetchr regb,1,rega
+	increase 1,rega
+//rega=*buff,regb=size
+usb0_respond:
+	bpatchx patch31_6,mem_patch31
+	set1 mark_usb_first_resp,mark
+	bmark0 mark_isstr,usb0_respond_nostr
+	increase 1,regb
+	lshift regb,regb
+usb0_respond_nostr:
+	storer rega,2,mem_bufptr
+	storer regb,1,mem_remain
+	branch usb0_tx
+
+usb_no_respond_data:
+	arg 0,queue
+	branch usb_trig
+
+
+
+//mem_bufptr=*buff,mem_remain=size,loopcnt=i,rega=len
+usb0_tx:
+	bpatchx patch31_7,mem_patch31
+	fetch 1,core_usb_txbusy
+	rtnbit1 0
+	fetch 1,mem_remain
+	rtn blank
+	copy pdata,loopcnt
+	iforce temp
+	fetch 2,mem_usb_setup_bLength
+	sub pdata,EP0_PACKET_SIZE,null
+	branch usb0_tx_short,positive
+	sub loopcnt,EP0_PACKET_SIZE,null
+	branch usb0_tx_info,positive
+	force EP0_PACKET_SIZE,loopcnt
+	branch usb0_tx_info
+usb0_tx_short:
+	isub loopcnt,null
+	branch usb0_tx_info,positive
+	iforce loopcnt
+	store 1,mem_remain
+usb0_tx_info:
+	fetch 1,mem_remain
+	isub loopcnt,pdata
+	store 1,mem_remain
+	add loopcnt,-1,pdata
+	store 1,mem_usb_txbuf
+	bmark0 mark_isstr,usb0_tx_nostr
+	rshift pdata,pdata
+	add loopcnt,-1,pdata
+	store 1,mem_usb_txbuf
+	bmark0 mark_usb_first_resp,usb0_tx_nostr
+	set0 mark_usb_first_resp,mark
+	istoret 1,contw
+	setarg 3
+	istore 1,contw
+	increase -1,loopcnt
+	copy loopcnt,pdata
+	nbranch usb0_tx_nostr,zero
+	increase 1,loopcnt
+usb0_tx_nostr:
+	fetch 2,mem_bufptr
+	copy pdata,contr
+usb0_tx0:
+	ifetch 1,contr
+	istore 1,contw
+	bmark0 mark_isstr,usb0_tx1
+	setarg 0
+	istore 1,contw
+usb0_tx1:
+	loop usb0_tx0
+	copy contr,pdata
+	store 2,mem_bufptr				//mem_bufptr += len
+	setarg mem_usb_txbuf
+	store 2,core_usb_tx_saddr0
+	arg 0,queue
+	call usb_trig
+	fetch 1,mem_remain
+	nrtn blank
+	fetch 1,mem_usb_state
+	rtnne USB_GOT_REPORT_REQ
+	jam USB_CONNECTED,mem_usb_state
+	rtn
+
+
+
+usb_tx_ep1:
+	arg 1,queue
+	arg mem_usb_txbuf1,rega
+	storer rega,2,core_usb_tx_saddr1
+usb_tx_buf:
+	add loopcnt,-1,pdata
+	istore 1,rega
+usb_tx_loop:
+	ifetch 1,contr
+	istore 1,contw
+	loop usb_tx_loop
+usb_trig:
+	setarg 0
+	qset1 pdata
+	store 1,core_usb_trig
+	rtn
+
+usb_tx_ep2:
+	arg 2,queue
+	arg mem_usb_txbuf2,rega
+	storer rega,2,core_usb_tx_saddr2
+	branch usb_tx_buf
+
+usb_tx:
+	bpatchx patch32_0,mem_patch32
+	fetch 1,mem_usb_tx_enable
+	rtn blank
+	fetch 1,mem_usb_device_enumeration_endflag
+	branch usb_tx_fifo_release,blank
+	fetch 1,mem_usb_state
+	beq USB_SLEEP,usb_windows_wakeup
+	bne USB_CONNECTED,usb_tx_fifo_release
+	fetch 1,mem_usb_clear_remote_wakeup
+	nbranch usb_tx_fifo_release,blank
+	call usb_tx_data_ep1
+	branch usb_tx_data_ep2
+
+usb_tx_data_ep1:
+	fetch 1,core_usb_txbusy
+	rtnbit1 1
+	fetch 1,mem_usb_tx_enable
+	rtnbit0 1
+	fetch 1,mem_usb_tx_enable
+	set0 1,pdata
+	store 1,mem_usb_tx_enable
+	fetch 1,mem_usb_ep1_data
+	rtn blank
+	beq USB_EP1_KB,usb_tx_kb_normal_data
+	branch assert
+
+usb_tx_data_ep2:
+	fetch 1,core_usb_txbusy
+	rtnbit1 2
+	fetch 1,mem_usb_tx_enable
+	rtnbit0 2
+	fetch 1,mem_usb_tx_enable
+	set0 2,pdata
+	store 1,mem_usb_tx_enable
+	fetch 1,mem_usb_ep2_data
+	rtn blank
+	beq USB_EP2_MS,usb_tx_ms_data
+	beq USB_EP2_MULTIKEY,usb_tx_kb_multikey_data
+	beq USB_EP2_SYSTEMKEY,usb_tx_kb_systemkey_data
+	branch assert
+
+usb_tx_fifo_release:
+	//clear mem_usb_mouse_data/mem_usb_kb_data/mem_usb_kb_multikey/mem_usb_kb_system
+	arg mem_usb_mouse_data,contw
+	arg 8,loopcnt
+	branch memset0
+	
+usb_tx_ms_data:
+	fetch 1,mem_usb_idle_flag
+	fetcht 1,mem_usb_get_protocol_flag
+	iand temp,pdata
+	branch usb_tx_ms_data_normal_mode,blank
+	fetcht 1,mem_usb_set_protocol_status
+	iadd temp,pdata
+	beq MAC_BOOT_MODE,usb_tx_ms_data_mac_boot_mode
+	branch usb_tx_ms_data_normal_mode
+
+usb_tx_ms_data_mac_boot_mode:
+	jam 0,mem_usb_ep2_data
+usb_tx_ms_data_mac_boot_regroup:
+	fetch 1,mem_usb_mouse_data+1	//key
+	beq R_KEY,usb_tx_mac_boot_ms_regroup_r_or_lrkey
+	beq LR_KEY,usb_tx_mac_boot_ms_regroup_r_or_lrkey
+	fetch 1,mem_usb_mouse_data+1	//key
+	store 1,mem_usb_mouse_data
+	fetch 1,mem_usb_mouse_data+2	//x low
+	istore 1,contw
+	fetch 1,mem_usb_mouse_data+4	//y low
+	istore 1,contw
+	fetch 1,mem_usb_mouse_data+6	//wheel
+	istore 1,contw
+	arg 4,loopcnt
+	arg mem_usb_mouse_data,contr
+	branch usb_tx_ep2
+	
+usb_tx_ms_data_normal_mode:
+	jam 0,mem_usb_ep2_data
+usb_tx_mac_boot_ms_regroup_r_or_lrkey:	
+	arg 8,loopcnt		
+	arg mem_usb_mouse_data,contr
+	branch usb_tx_ep2
+
+usb_tx_kb_multikey_data:
+	jam 0,mem_usb_ep2_data
+	arg 3,loopcnt
+	arg mem_usb_kb_multikey,contr
+	branch usb_tx_ep2
+
+usb_tx_kb_normal_data:
+	jam 0,mem_usb_ep1_data
+	arg 8,loopcnt
+	arg mem_usb_kb_data,contr
+	branch usb_tx_ep1
+
+usb_tx_kb_systemkey_data:
+	jam 0,mem_usb_ep2_data
+	arg 2,loopcnt
+	arg mem_usb_kb_system,contr
+	branch usb_tx_ep2
+
+usb_inwake_state_tx_dispose:
+	fetch 1,mem_usb_state
+	beq USB_CONNECTED,usb_mac_wakeup_trig
+	rtn
+usb_mac_wakeup_trig:
+	fetch 1,core_usb_config
+	set1 7,pdata
+	store 1,core_usb_config
+	jam 1,mem_usb_mac_wakeup_trig
+	rtn
+
+usb_mac_wakeup_judge:
+	fetch 1,mem_usb_state
+	rtneq USB_SLEEP
+	beq USB_CONNECTED,usb_mac_wakeup
+	rtn
+usb_mac_wakeup:
+	fetch 1,mem_usb_mac_wakeup_trig
+	rtn blank
+	jam 1,mem_usb_wakestate_onetime_flag
+	branch usb_wakeup
+
+usb_windows_wakeup:
+	arg TIMER_WAKEUP,queue
+	call timer_check
+	nrtn blank
+usb_wakeup:
+	fetch 1,core_usb_config
+	rtnbit0 7	//endpoint wakeup enable
+	jam 0xfc,core_usb_config
+	nop 30000
+	jam 0x3c,core_usb_config
+	rtn
+
+
+endif
+
Index: program/utility.prog
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/utility.prog	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/program/utility.prog	(working copy)
@@ -0,0 +1,1186 @@
+
+right_shift_n: //rshiftN pdata,pdata
+	sub loopcnt,0,null
+	rtn zero
+right_shift_n_loop: 
+	rshift pdata,pdata
+	loop right_shift_n_loop
+	rtn
+
+/* lshift. 0:1 byte; 1:2byte; 2:4byte; 3:8byte; 4:16byte*/
+left_shift_n:
+	force 1,pdata
+	sub loopcnt,0,null
+	rtn zero
+left_shift_n_loop:
+	lshift pdata,pdata
+	loop left_shift_n_loop
+	rtn
+push_stack:
+	storer contw,2, mem_contw
+	storet 8,mem_temp
+	storer timeup,4,mem_timeup
+	call push_stack_rega_b_c
+	storer contr,2, mem_contr
+	storer loopcnt,2, mem_loopcnt
+	storer queue,2,mem_queue
+	rtn
+
+push_stack_rega_b_c:
+	storer rega,4, mem_rega
+	storer regb,4, mem_regb
+	storer regc,3, mem_regc
+	rtn
+
+pop_stack:
+	fetch 2, mem_contw
+	iforce contw
+	fetcht 8,mem_temp
+	fetchr timeup,4,mem_timeup
+	call pop_stack_rega_b_c
+	fetchr loopcnt,2,mem_loopcnt
+	fetchr queue,2,mem_queue
+	fetch 2,mem_contr
+	iforce contr
+	rtn
+
+pop_stack_rega_b_c:
+	fetchr rega,4, mem_rega
+	fetchr regb,4, mem_regb
+	fetchr regc,3,mem_regc
+	rtn
+
+get_contw:
+	fetch 2,mem_contw
+	copy pdata,contw
+	rtn
+get_contr:
+	fetch 2,mem_contr
+	copy pdata,contr
+	rtn
+store_contw:
+	copy contw,pdata
+	store 2,mem_contw
+	rtn
+store_contr:
+	copy contr,pdata
+	store 2,mem_contr
+	rtn	
+	
+
+//
+save_cont_pointers:
+	copy contw,pdata
+	store 2,mem_hold_contw
+	copy contr,pdata
+	store 2,mem_hold_contr
+	rtn
+load_cont_pointers:
+	fetch 2,mem_hold_contw
+	copy pdata,contw
+	fetch 2,mem_hold_contr
+	copy pdata,contr
+	rtn
+
+
+//input pdata,temp 1byte
+//output rega:diff
+get_diff:
+	isub temp,rega
+	rtn positive
+	arg 0x100,rega
+	iadd rega,pdata
+	isub temp,rega
+	rtn	
+
+memcpy96:
+	call memcpy32
+memcpy64:
+	call memcpy32
+	branch memcpy32
+	
+
+memcpy20:
+	call memcpy8
+memcpy12:
+	call memcpy8
+memcpy4:
+	ifetch 1,contr
+	istore 1,contw
+memcpy3:
+	ifetch 3,contr
+	istore 3,contw
+	rtn	
+memcpy8:
+	ifetch 8,contr
+	istore 8,contw
+	rtn	
+
+memcpy48:
+	call memcpy16
+memcpy32:
+	call memcpy8
+memcpy24:
+	call memcpy8
+memcpy16:
+	call memcpy8
+	branch memcpy8
+
+delay:
+	increase -1,pdata
+	nop 38
+	nbranch delay,blank
+	rtn
+
+
+delay_10ms:
+	arg 10,loopcnt
+delay_ms_wait:
+	nop 12000
+	loop delay_ms_wait
+	rtn
+
+delay_50ms:
+	arg 50,loopcnt
+	branch delay_ms_wait
+
+bn_zero:
+	force 3,loopcnt
+memset0:
+	force 0,pdata
+memset8:
+	istore 8,contw
+	loop memset8
+	rtn
+
+
+memset0_16:
+	call memset0_8
+memset0_8:
+	force 0,pdata
+	istore 8,contw
+	rtn
+memset0_4:
+	force 0,pdata
+	istore 4,contw
+	rtn	
+	
+clear_mem_256:
+	force 4,loopcnt
+	branch memset0 
+clear_mem_512:
+	force 8,loopcnt
+	branch memset0 
+
+clear_mem:
+	deposit loopcnt
+	rtn blank
+	setarg 0
+clear_mem_loop:
+	istore 1,contw
+	loop clear_mem_loop
+	rtn
+	
+
+clear_temp_block:
+	arg 32,loopcnt
+	arg mem_temp_block0,contw
+	branch clear_mem
+	
+xor_loop:
+	ifetch   4,regc
+	ifetcht 4,rega
+	ixor     temp,pdata
+	istore   4,contw	
+	increase 4,rega
+	increase 4,regc
+	loop  xor_loop
+	rtn
+	
+// 11 22 -> 22 11; 11 22 33 -> 33 22 11 
+// rega:data addr ;loopnct:length
+inverse_data:
+	bpatchx patch32_1,mem_patch32
+	copy loopcnt,pdata
+	sub pdata,1,null
+	rtn positive
+	iadd rega,regb	
+	increase -1,regb
+	rshift loopcnt,loopcnt
+inverse_loop:
+	ifetcht 1,rega
+	ifetch 1,regb
+	istore 1,rega
+	istoret 1,regb
+	increase -1,regb
+	increase 1,rega
+	loop inverse_loop
+	rtn
+
+/*
+	function name:inverse_data_6Byte or le2be_6Byte
+	input: pdata is data that want change
+	output:pdata is Converted data
+	used Resources:temp,contr
+*/
+le2be_6Byte:
+inverse_data_6Byte:
+	rshift32 pdata,temp
+	call inverse_data_4Byte
+	byteswap temp,temp
+	lshift16 pdata,pdata
+	ior temp,pdata
+	rtn
+
+
+/*
+	function name:inverse_data_4Byte or le2be_4Byte
+	input: pdata is data that want change
+	output:pdata is Converted data
+	used Resources:contr
+*/
+le2be_4Byte:
+inverse_data_4Byte:
+	rshift16 pdata,contr
+	byteswap contr,contr
+	byteswap pdata,pdata
+	lshift16 pdata,pdata
+	ior contr,pdata
+	rtn
+
+
+memcpy_fast:
+	deposit loopcnt
+	rtn blank
+memcpy_fast_loop:
+	increase -8,loopcnt
+	call memcpy8,positive
+	rtn zero
+	branch memcpy_fast_loop,positive
+	increase 8,loopcnt
+memcpy_fast_loop_four:
+	increase -4,loopcnt
+	call memcpy4,positive
+	rtn zero
+	branch memcpy_fast_loop_four,positive
+	increase 4,loopcnt
+	branch memcpy
+ 
+memcpy:
+	deposit loopcnt
+	rtn blank
+memcpy_loop:
+	ifetch 1,contr
+	istore 1,contw
+	loop memcpy_loop
+	rtn
+
+timer_stop:
+	setarg 0
+timer_init:
+	rshift clkn_bt,temp
+	storet 4,mem_last_clkn
+	arg mem_timers,contw
+	iforce temp
+	lshift queue,pdata
+	iadd contw,contw
+	istoret 2,contw
+	bpatchx patch32_2,mem_patch32
+	rtn
+
+timer_check_timeout:
+	arg 0x800,timeup
+	lshift16 timeup,timeup
+	iadd timeup,pdata
+	rtn
+
+
+timer_reinit:
+	arg 0,queue
+timer_check:
+	bpatchx patch32_3,mem_patch32
+	fetcht 4,mem_last_clkn
+	rshift clkn_bt,pdata
+	store 4,mem_last_clkn	
+	isub temp,null
+	ncall timer_check_timeout,positive	
+	isub temp,timeup
+	copy timeup,temp
+	arg mem_timers,contr
+	copy contr,contw
+	arg 16,loopcnt
+timer_loop:
+	ifetch 2,contr
+	isub temp,pdata
+	branch timer_counting,positive
+	force 0,pdata
+timer_counting:
+	istore 2,contw
+	loop timer_loop	
+	arg mem_timers,contr
+	lshift queue,pdata
+	iadd contr,contr
+	ifetch 2,contr
+	rtn
+
+
+
+	/* pdata 28+16 bit add temp 26+16 bit, result in temp */
+clk_add:
+	iadd temp,temp
+	copy temp, loopcnt
+	fetch 2,mem_param_rt_rthalfslot
+	isub loopcnt,pdata
+	rtn positive
+	sub pdata,0,pdata
+	rshift16 temp,temp
+	increase 1,temp
+	lshift16 temp,temp
+	ior temp,temp
+	rtn
+
+clk_diff_rt:
+	call clk_diff
+	branch clk2rt
+
+/* pdata -temp -> pdata, all are 28+16 bits, set user if negative */
+clk_diff:
+	disable user
+	isub temp,pdata
+	branch clk_diff_pos,positive
+	enable user
+	sub pdata,0,pdata
+clk_diff_pos:
+	rtnbit0 15
+	copy pdata,regab
+	arg 0x10000,temp
+	fetch 2,mem_param_rt_rthalfslot
+	isub temp,pdata
+	iadd regab,pdata
+	set0 64,pdata
+	rtn
+
+	
+
+clk2rt:
+	fetcht 2,mem_param_rt_rthalfslot
+	iforce contr
+	rshift16 pdata,pdata
+	imul32 temp,pdata
+	iadd contr,pdata
+	rtn
+
+	/* pdata = clks in, temp = lpo out */
+clk2lpo:
+	lshift8 pdata,pdata
+	lshift4 pdata,pdata
+	fetcht 3,mem_clks_per_lpo
+	idiv temp
+	call wait_div_end
+	quotient temp
+	rtn
+
+	/* rt clk -> bt+rt clk */
+clk2bt:
+	fetcht 2,mem_param_rt_rthalfslot
+	idiv temp
+	call get_div_result
+	lshift16 pdata,pdata
+	remainder temp
+	ior temp,temp
+	rtn
+
+
+
+//input:contu 
+//output:temp
+//used register: temp regab
+string2dec_from_uart:
+	arg 0,temp
+string2dec_from_uart_done:
+         copy temp,regab
+	ifetch 1,contu
+	call uchar2dialog	
+	copy regab,temp
+	call swap
+	arg 10,regb
+	imul32 regb,pdata
+	iadd temp,pdata
+	copy pdata,temp
+	loop string2dec_from_uart_done
+	rtn
+	
+
+
+uchar2dialog:
+	arg 0x3a,temp
+	isub temp,null
+	nbranch uchar2dialog_number,positive
+	arg 0x61,temp
+	isub temp,null
+	branch uchar2dialog_a2f,positive
+	arg 0x37,temp
+	isub temp,pdata
+	rtn
+uchar2dialog_number:
+	arg 0x30,temp
+	isub temp,pdata
+	rtn
+uchar2dialog_a2f:
+	arg 0x57,temp
+	isub temp,pdata
+	rtn
+
+pn9:
+	copy temp,alarm
+	setarg 0x1ff
+	force 0,regb
+pn9_loop:	
+	rshift3 pdata,rega
+	rshift rega,rega
+	ixor rega,rega
+	isolate1 0,rega
+	setflag true,9,pdata
+	rshift temp,temp
+	isolate1 0,pdata
+	setflag true,7,temp
+	rshift pdata,pdata
+	increase 1,regb
+	compare 0,regb,0x7
+	nbranch pn9_loop,true
+	istoret 1,contw
+	loop pn9_loop
+	copy alarm,temp
+	rtn
+
+	// contr: rxdata, loopcnt is count. result in quotient
+calc_average:
+	setarg 0
+	copy loopcnt,rega
+calc_average_loop:
+	ifetcht 2,contr
+	iadd temp,pdata
+	loop calc_average_loop
+	idiv rega
+
+get_div_result:
+	call wait_div_end
+	quotient pdata
+	rtn
+
+wait_div_end:	
+	rtn modone
+	branch wait_div_end
+
+
+
+//input:
+//	count:loopcnt str1:rega str2:regb
+//output:
+//	same:set flag zero ,diff not set flag zero
+// using:
+//	reg:temp null flag:zero
+compare_loop:
+string_compare:
+	ifetch 1,rega
+	ifetcht 1,regb
+	isub temp,null
+	nrtn zero
+	increase 1,rega
+	increase 1,regb
+	loop string_compare
+	force 0,null
+	rtn
+
+	/* pdata = temp if pdata > temp */
+ceiling:
+	isub temp,null
+	nrtn positive
+	deposit temp
+	rtn
+	
+swap:
+	iadd temp,pdata
+	isub temp,temp
+	isub temp,pdata
+	rtn
+
+clean_mem:
+	arg 0x400,loopcnt
+	arg 0x4000,contw
+	branch memset0				// clear xram at boot
+
+	//cb function ptr in pdata
+callback_func:
+	rtn blank
+	copy pdata,pc	//rtn through cb functon.
+	//branch assert
+
+wait_uarttx:
+	fetch 2,core_uart_txitems
+	nbranch wait_uarttx,blank
+	rtn
+
+ice_break:
+	jam 0x1,core_ice_ctrl
+	rtn
+
+ice_setbp:
+	store 2,core_ice_break0
+	fetch 1,core_ice_ctrl
+	set1 4,pdata
+	store 1,core_ice_ctrl
+	rtn
+ice_setbp2:
+	store 2,core_ice_break1
+	fetch 1,core_ice_ctrl
+	set1 6,pdata
+	store 1,core_ice_ctrl
+	rtn
+	
+ice_set_write_bp:
+	store 2,core_ice_break0
+	jam 0x30,core_ice_ctrl
+	rtn
+
+ifdef COMPLIE_TEST_CODE
+test_no_white:
+	fetch 1,core_config
+	set1 whiteoff_bit,pdata
+	store 1,core_config			/* whitening off */
+	rtn
+endif
+
+test_enable_white:
+	fetch 1,core_config
+	set0 whiteoff_bit,pdata
+	store 1,core_config			/* whitening on */
+	rtn
+
+check_uart_tx_buff:
+	fetch 2,core_uart_txitems
+	arg UART_AIR_CONTROL_THRESHOLD,temp
+pdata_sub_temp:
+	isub temp,null
+	rtn
+
+	//fuction fifo_in
+	//rega pointer to fifo memory , *(rega+len) is the end of fifo
+	//mem_fifo_temp data into fifo
+	//assert if fifo was full
+fifo_in:
+	bpatchx patch32_4,mem_patch32
+	ifetcht UTIL_FIFO_LEN,rega
+	and temp,0xff,pdata
+	nbranch fifo_in_push,blank
+	rshift8 temp,pdata
+	istore UTIL_FIFO_LEN,rega
+fifo_in_push:
+	increase UTIL_FIFO_LEN+UTIL_FIFO_OFFSET,rega
+	ifetch 1,rega
+	nbranch assert,blank //fifo full
+	fetch 1,mem_fifo_temp
+	istore 1,rega
+	rtn
+	
+	//fuction fifo_out
+	//rega pointer to fifo memory
+	//pdata  data from fifo, blank mains fifo empty
+fifo_out:
+	bpatchx patch32_5,mem_patch32
+	arg UTIL_FIFO_LEN,loopcnt
+	ifetch UTIL_FIFO_LEN,rega
+	rtn blank
+fifo_out_loop:
+	ifetch 1,rega
+	nbranch fifo_out_end,blank
+	increase 1,rega
+	loop fifo_out_loop
+	branch assert
+fifo_out_end:
+	arg 0,temp
+	istoret 1,rega
+	rtn
+
+	//fuction fifo_is_empty
+	//rega pointer to fifo memory
+	//blank--- fifo is empty
+fifo_is_empty:
+	ifetch UTIL_FIFO_LEN,rega
+	rtn
+
+	//fuction fifo_is_full
+	//rega pointer to fifo memory
+	//blank--- fifo is NOT full
+fifo_is_full:
+	ifetch 1,rega
+	rtn
+	//rega pointer to fifo memory
+	//blank--- fifo is NOT near full
+fifo_is_near_full:
+	ifetch 2,rega
+	rtn
+
+	//rega pointer to fifo memory
+	//count output via pdata
+fifo_content_count:
+	arg 0,temp
+fifo_content_count_loop:
+	fetch 1,contr
+	loop fifo_content_count_loop,blank
+	increase 1,temp
+	loop fifo_content_count_loop
+	copy temp,pdata
+	rtn
+
+//input pdata, temp, return small in pdata	
+not_greater_than:
+	isub temp,null
+	nrtn positive
+copy_temp2pdata:
+	copy temp,pdata
+	rtn
+
+
+disable_positive:
+	force -1,null
+	rtn
+enable_positive:
+disable_zero:
+	force 1,null
+	rtn
+enable_zero:
+	force 0,null
+	rtn
+
+enable_user:
+	enable user
+	rtn
+	
+disable_user:
+	disable user
+	rtn
+	
+enable_user2:
+	enable user2
+	rtn
+	
+disable_user2:
+	disable user2
+	rtn
+
+enable_user7:
+	enable user7
+	rtn
+
+disable_blank:
+	setarg 1
+	rtn
+
+enable_blank:
+set_pdata_0:
+	setarg 0
+	rtn
+
+//input pdata :sum
+//output pdata :sum
+cal_sum:
+	sub loopcnt,0,null
+	rtn zero
+cal_sum_loop:
+	ifetcht 1,contr
+	iadd temp,pdata
+	loop cal_sum_loop
+	rtn
+
+	
+reverse_byte:
+	copy loopcnt,pdata
+	rtn blank
+	copy contr,pdata
+	iadd loopcnt,pdata
+	increase -1,pdata
+	copy pdata,contr	
+reverse_loop:
+	ifetch 1,contr
+	increase -2,contr
+	istore 1,contw
+	loop reverse_loop
+	rtn
+
+calc_k12:
+	copy timeup,regb
+
+	// regb:rxdata1, enable user for K1, result stored in contw 8 bytes
+calc_k:
+	arg mem_local_sig,regc
+	force 36,loopcnt
+	force 0,rege
+	force 0,regf
+rxcal_k1_loop:
+	call complex_mult16to8
+	preload rega
+	iadd rege,rege
+	preload temp
+	iadd regf,regf
+	increase 4,regb
+	increase 2,regc
+	loop rxcal_k1_loop
+	preload rege
+	arg 36,temp
+	call signed_div
+	istore 4,contw
+	preload regf
+	call signed_div
+	istore 4,contw
+	rtn
+
+	// regb points to 32bit complex, regc points to 16bit complex, result in rega+temp
+complex_mult16to8:
+	ifetchr nap,2,regb
+	ifetchr fhs_misc,1,regc
+	call signed_ext16by8
+	imults temp,rega
+	ifetchr fhs_misc,1,contr
+	branch complex_not_conj,user
+	sub fhs_misc,0,fhs_misc
+complex_not_conj:
+	add regb,2,contr
+	ifetchr nap,2,contr
+	call signed_ext16by8
+	imults temp,regd
+	preload rega
+	isub regd,rega			// ac-bd
+	ifetchr nap,2,regb
+	preload nap
+	imults temp,regd
+	ifetchr nap,2,contr
+	ifetchr fhs_misc,1,regc
+	call signed_ext16by8
+	imults temp,temp
+	preload regd
+	iadd temp,temp
+	rtn
+
+	// regb points to 64bit complex, regc points to 64bit complex, result in rege+regf
+complex_mult32to32:
+	ifetch 4,regb
+	ifetchr rega,4,regc
+	imults rega,rege			// ac
+	ifetchr rega,4,contr
+	aligned rega,regf			// d
+	add regb,4,contr
+	ifetch 4,contr
+	imults rega,temp			// bd
+	preload rege
+	isub temp,rege			// ac-bd
+	ifetch 4,regb
+	imults regf,regf			// ad
+	ifetch 4,contr
+	ifetchr rega,4,regc
+	imults rega,pdata
+	iadd regf,regf				// ad+bc
+	rtn
+
+
+lshift14:
+	lshift16 pdata,pdata
+rshift2:
+	rshift2 pdata,pdata
+	rtn
+
+lshift6:
+	lshift8 pdata,pdata
+	branch rshift2
+
+calc_vok:
+	imul32 pdata,pdata
+rshift7:
+	rshift4 pdata,pdata
+	rshift3 pdata,pdata
+	rtn		
+
+
+	// nap:16bit signed, fhs_misc:8bit signed, output to pdata/temp
+signed_ext16by8:
+	preload nap
+	aligned fhs_misc,temp
+	rtn	
+
+
+abs32:
+	rtnbit0 31
+	force 0,temp
+	set1 32,temp
+	increase -1,temp
+	ixor temp,pdata
+	pincrease 1
+	rtn	
+
+	// pdata 32bit is input, result in regb
+sqrt:
+	iforce rega
+	arg 0,regd
+	set1 30,regd
+	arg 0,regb
+	arg 16,loopcnt
+sqrt_loop:
+	deposit regd
+	iadd regb,pdata
+	rshift regb,regb
+	isub rega,pdata
+	branch sqrt_less,zero
+	branch sqrt_greater,positive
+sqrt_less:
+	sub pdata,0,rega
+	deposit regd
+	ior regb,regb
+sqrt_greater:
+	rshift2 regd,regd
+	loop sqrt_loop
+	rtn	
+	
+	// pdata:dividend, temp:divisor
+signed_div:
+	set0 mark_temp,mark
+	bbit0 63,signed_div_unsigna
+	set1 mark_temp,mark
+	sub pdata,0,pdata
+signed_div_unsigna:
+	isolate0 63,temp
+	branch signed_div_unsignb,true
+	setflip mark_temp,mark
+	sub temp,0,temp
+signed_div_unsignb:
+	idiv temp
+	call get_div_result
+	rtnmark0 mark_temp
+	sub pdata,0,pdata
+	rtn	
+
+	// timeup: rxdata, result in regc(a) and regf(c22)
+rx_iq_comp:
+	call calc_k1
+	call calc_k2
+	call calc_absk12_sqr
+	call calc_g
+	call calc_a
+	branch calc_c22
+
+calc_k1:
+	enable user
+	arg mem_tmp_buffer,contw
+	branch calc_k12
+
+calc_k2:
+	disable user
+	branch calc_k12
+
+calc_absk12_sqr:
+	fetch 4,mem_tmp_buffer
+	fetcht 4,mem_tmp_buffer+8
+	iadd temp,pdata
+	call abs32
+	iforce temp
+	imul32 temp,rege
+	fetch 4,mem_tmp_buffer+4
+	fetcht 4,mem_tmp_buffer+12
+	isub temp,pdata
+	call abs32
+	iforce temp
+	imul32 temp,pdata
+	iadd rege,pdata
+	store 8,mem_tmp_buffer+16			// abs(K1+K2)^2
+	rtn
+
+
+calc_g:
+	arg mem_tmp_buffer,regb
+	arg mem_tmp_buffer+8,regc
+	call complex_mult32to32
+	preload rege
+	sub pdata,0,pdata
+	lshift16 pdata,pdata
+	lshift2 pdata,pdata
+	fetcht 8,mem_tmp_buffer+16
+	idiv48 temp
+	arg 0x10000,rega
+	call get_div_result
+	iadd rega,pdata
+	call sqrt
+	copy regb,rege						// g
+	rtn
+
+calc_a:
+	rshift32 temp,pdata
+	imul32 regb,rega
+	deposit regb							
+	imul32 temp,temp
+	lshift16 rega,pdata
+	lshift16 pdata,pdata
+	iadd temp,temp
+	preload regf
+	sub pdata,0,pdata
+	lshift16 pdata,pdata
+	lshift pdata,pdata
+	idiv48 temp
+	branch get_div_result					// a
+
+calc_c22:
+	rshift pdata,regc						// c21
+	imul32 pdata,temp
+	setarg 0x10000
+	isub temp,pdata
+	call sqrt
+	deposit regb
+	imul32 rege,temp
+	setarg 0
+	set1 28,pdata
+	idiv48 temp
+	call wait_div_end
+	quotient temp
+	setarg 0x1000
+	isub temp,regf						// c22
+	rtn
+
+tx_iq_precomp:
+	call calc_vok1
+	call calc_sumvok
+	call calc_ad_bc
+	call calc_omega
+	call calc_b1
+	branch calc_b2
+
+calc_vok1:	
+	fetch 1,mem_vdk
+	call calc_vok
+	store 1,mem_vok
+	rtn
+
+calc_sumvok:
+	iforce regc						// Vok(1)
+	imul32 pdata,temp
+	ifetch 1,contr
+	call calc_vok
+	istore 1,contw
+	iadd regc,rega					// sum(Vok)
+	rtn
+
+calc_ad_bc:
+	imul32 pdata,pdata
+	iadd temp,regb					// sum(Vok.^2)
+	deposit rega
+	imul32 rega,temp
+	lshift regb,pdata
+	isub temp,temp					// ad-bc
+	rtn
+
+
+calc_omega:
+	setarg 0x400000
+	idiv temp
+	call get_div_result
+	store 2,mem_omega
+	lshift16 rega,pdata
+	rshift2 pdata,pdata
+	idiv temp
+	call get_div_result
+	istore 2,contw
+	lshift8 regb,pdata
+	rshift pdata,pdata
+	idiv temp
+	call get_div_result
+	istore 2,contw
+	rtn
+	
+	
+calc_b1:
+	lshift16 regc,pdata
+	rshift2 pdata,pdata
+	idiv regb
+	call get_div_result
+	store 2,mem_b1
+	fetch 1,mem_vdk
+	call lshift6
+	idiv rega
+	call get_div_result
+	istore 2,contw
+	rtn
+	
+calc_b2:
+	fetch 1,mem_vok+1
+	call lshift14
+	idiv regb
+	call get_div_result
+	store 2,mem_b2
+	fetch 1,mem_vdk+1
+	call lshift6
+	idiv rega
+	call get_div_result
+	istore 2,contw
+	rtn	
+	
+	
+	// timeup: m_k
+tx_iq_cal:
+	arg mem_q,contw
+	arg 2,loopcnt
+	call memset0
+	arg 4,queue
+tx_iq_cal_loop:
+	call calc_mk1
+	call calc_d
+	call calc_c
+	call calc_est1
+	call calc_est2
+	call calc_u1
+	call calc_u2
+	call calc_qest
+	increase 32,timeup
+	increase -1,queue
+	nbranch tx_iq_cal_loop,zero
+
+calc_tx_c22:
+	fetch 4,mem_q
+	arg 0x100,contr
+	iadd contr,rege
+	fetch 4,mem_q+4
+	imults pdata,temp
+	setarg 0x10000
+	isub temp,pdata
+	call sqrt
+	deposit regb
+	imults rege,temp
+	setarg 0
+	set1 28,pdata
+	call signed_div
+	arg 0x1000,temp
+	isub temp,pdata
+	sub pdata,0,pdata						// c22
+	rtn
+	
+calc_mk1:
+	copy timeup,contr
+	arg 8,loopcnt
+ 	branch calc_average
+
+calc_d:
+ 	iforce regb					// M_k(1)
+	arg 8,loopcnt
+ 	branch calc_average
+
+calc_c:
+ 	iadd regb,regc				// D
+ 	fetcht 1,mem_vok+1
+ 	imul32 temp,temp
+ 	fetch 1,mem_vok
+ 	imul32 regb,pdata
+ 	iadd temp,pdata
+	rshift4 pdata,pdata
+	rshift3 pdata,rega				// C
+	rtn
+
+calc_est1:
+	fetch 2,mem_omega+2
+	imul32 regc,temp
+	fetch 2,mem_omega
+	imul32 rega,pdata
+	isub temp,regb				// est(1)
+	rtn
+
+calc_est2:
+	fetch 2,mem_omega+2
+	imul32 rega,temp
+	ifetch 2,contr
+	imul32 regc,pdata
+	isub temp,rega				// est(2)
+	rtn
+
+calc_u1:
+ 	fetch 1,mem_vok
+ 	call mults_rshift7
+	iadd rega,regf					// floor(est(1)*Vok(1)/2^7 + est(2))
+	copy timeup,regc
+	arg mem_u1,contw
+	branch theta_mul
+
+calc_u2:
+ 	fetch 1,mem_vok+1
+ 	call mults_rshift7
+	iadd rega,regf					// floor(est(1)*Vok(2)/2^7 + est(2))
+	add timeup,16,regc
+	arg mem_u2,contw
+	branch theta_mul
+
+calc_qest:
+	aligned regb,regf
+	fetchr regb,2,mem_b1
+	fetchr regc,2,mem_b2
+	arg mem_u1,rega
+	arg mem_u2,nap
+	arg mem_q,contw
+	call calc_q			
+	call calc_q
+	fetchr regb,2,mem_b1+2
+	fetchr regc,2,mem_b2+2
+	call calc_q
+	branch calc_q
+
+calc_q:
+	ifetch 4,rega
+	copy contr,rega
+	imults regb,rege
+	ifetch 4,nap
+	copy contr,nap
+	imults regc,pdata
+	iadd rege,pdata
+	lshift8 pdata,pdata
+	copy regf,temp
+	call signed_div
+	ifetchr rege,4,contw
+	isub rege,pdata
+	sub pdata,0,regd
+	istorer regd,4,contw
+	rtn	
+
+mults_rshift7:
+	imults regb,temp
+	preload temp
+	branch rshift7
+
+
+	
+	// regc points to m_k, contw points to result
+theta_mul:
+	arg 4,debug
+	arg mem_theta,nap
+theta_mul_loop0:
+	arg 0,rege
+	arg 8,loopcnt
+theta_mul_loop1:
+	ifetch 2,regc
+	copy contr,regc
+	isub regf,pdata
+	ifetchr fhs_misc,1,nap
+	copy contr,nap
+	aligned fhs_misc,temp
+	imults temp,pdata
+	iadd rege,rege
+	loop theta_mul_loop1
+	rshift8 rege,pdata
+	rshift pdata,pdata
+	istore 4,contw
+	increase -16,regc
+	increase -1,debug
+	nbranch theta_mul_loop0,zero
+	rtn
+
+clear_wake:
+	setarg 0
+	set1 19,pdata	//enable ice low wakeup
+	store 8,mem_gpio_wakeup_low
+	rtn
+
+
+
+
Index: ramdownload.bat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/ramdownload.bat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/ramdownload.bat	(working copy)
@@ -0,0 +1,5 @@
+e ku
+e pu
+e 8043 0
+e hu 
+e su
\ No newline at end of file
Index: sched/1307.dat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/sched/1307.dat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/sched/1307.dat	(working copy)
@@ -0,0 +1,47 @@
+
+mem_gpio_wakeup_low:00 00 08 00 00 00 00 00
+mem_lpm_config:88 12 ce	#4khz
+mem_lpm_xtalcnt:70 3f 0c 37 07 #5000-5fff data save
+mem_lpm_ctrl3_aon_vsel:9d 10 24
+mem_lpm_hibernate_switch:00
+
+mem_fcomp_div:18
+
+mem_rc_cal:d3
+mem_rf_ldo_cfg1:00
+mem_syn_afc_cfg1:29
+mem_dig_aon_vsel:00	#bit5-4;00:1.2V;01:1.08V;02:0.96V;03:0.84V
+
+mem_gain_fix:ff	#00:soft agc; ff:hw agc
+mem_gain_table:88 66 44
+mem_gain_second_agc_en:00	#hw agc: 0:second agc disable
+
+mem_adc_wait_count:0c
+
+
+mem_iscan_window:24 00
+mem_iscan_interval:00 02
+mem_pscan_window:24 00
+mem_pscan_interval:00 02
+
+mem_inq_window:20 00
+mem_page_window:20 00
+mem_page_to:00 20
+mem_rx_window_init:80 04
+mem_rx_window_sniff:00 0c
+
+
+mem_lmp_version:09 0e 05 04 00
+mem_seqi:7f
+
+
+mem_rf_init_data:
+ff
+mem_rf_init_ptr:mem_rf_init_data
+
+
+#bit7:0 means disable rf debug function
+mem_rf_debug_rx_gpio:06
+mem_rf_debug_tx_gpio:07
+
+
Index: sched/keyboard.dat
===================================================================
--- /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/sched/keyboard.dat	(nonexistent)
+++ /branch/keyboard/customer_FW/HQ_project/HQ_HB030_YC1028_keyboard_only_24G/sched/keyboard.dat	(working copy)
@@ -0,0 +1,355 @@
+mem_mouse_flag:
+#mouse flag byte1
+#bit0 MOUSE_SELECT_DEVICE_FLAG
+#bit1 MOUSE_24G_PAIRING_FLAG
+#bit2 MOUSE_STORE_EEPROM_FLAG
+#bit3 MOUSE_BT_CANNEL_RECONN_FLAG
+#bit4 MOUSE_LOW_VOLTAGE_FLAG
+#bit5 MOUSE_BT_DISCOVERY_BUTTON_DOWN_FLAG
+#bit6 MOUSE_BT_DISCOVERY_BUTTON_LONG_DOWN_FLAG
+04
+
+#mouse flag byte2
+#bit0 MOUSE_ENABLE_BLE_RANDOM_ADDRE
+#bit1 MOUSE_ENABLE_2K_EEPROM
+#bit2 MOUSE_ENABLE_INIT_DELAY
+#bit3 MOUSE_ENABLE_WAKEUP_FROM_POWER
+#bit4 MOUSE_ENABLE_16M
+#bit5 MOUSE_ENABLE_USB
+09
+
+#mouse flag byte3
+#bit0 MOUSE_ENABLE_SPI2
+#bit1 MOUSE_ENABLE_24G
+#bit2 MOUSE_ENABLE_FLASH
+#bit3 MOUSE_ENABLE_EEPROM
+#bit4 MOUSE_ENABLE_ADC
+#bit5 MOUSE_ENABLE_KEYBOARD
+#bit6 MOUSE_ENABLE_24G_SEARCH_DONGLE
+32
+
+#mouse flag byte4
+#bit0 MOUSE_ENABLE_24G_250Hz
+#bit1 MOUSE_ENABLE_24G_500Hz
+#bit2 MOUSE_ENABLE_24G_1000
+#bit3 MOUSE_ENABLE_BT_125Hz
+#bit4 MOUSE_ENABLE_DPI_LEVEL_4
+#bit5 MOUSE_ENABLE_USB_250
+#bit6 MOUSE_ENABLE_USB_500
+#bit7 MOUSE_ENABLE_USB_1000
+00
+
+#mouse flag byte5
+#bit0 MOUSE_ENABLE_POWER_ON_LED
+#bit1 MOUSE_ENABLE_LOW_VOLTAGE_LED
+#bit2 MOUSE_ENABLE_LOW_VOLTAGE_USE_MODE_LED
+#bit3 MOUSE_ENABLE_LOW_VOLTAGE_LED_BLINK_N_SECOND
+#bit4 MOUSE_ENABLE_4_LED
+#bit5 MOUSE_ENABLE_DPI_FOR_4_LED
+#bit6 MOUSE_ENABLE_BT2_FOR_4_LED
+#bit7 MOUSE_ENABLE_LOW_V_FOR_4_LED
+03
+
+#mouse flag byte6 
+#bit0 MOUSE_ENABLE_SELECT_DEVICE_BY_DPI_BUTTON
+#bit1 MOUSE_ENABLE_SELECT_DEVICE_BY_PB_BUTTON
+#bit2 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_GPIO
+#bit3 MOUSE_ENABLE_SELECT_DEVICE_BY_SWITCH_ADC
+#bit4 MOUSE_ENABLE_DPI_KEY_CONNECT_GND
+#bit5 MOUSE_ENABLE_PB_BUTTON_CONNECT_GND
+#bit6 MOUSE_ENABLE_DPI_KEY_CONNECT_ADC
+#bit7 MOUSE_ENABLE_24G_FIRST_AUTO_PAIRING
+00
+
+#mouse flag byte7
+#bit0 MOUSE_ENABLE_AUTO_24G_PARING
+#bit1 MOUSE_ENABLE_24G_POWER_ON_PAIRING
+#bit2 MOUSE_ENABLE_COMMBINATION_KEY_BY_24G_PAIRING
+#bit3 MOUSE_ENABLE_BT_RECONNECT_TIMEOUT_ENTER_DISCOVERY
+#bit4 MOUSE_ENABLE_PB_BUTTON_SHORT_PRESS_ENTER_DISCOVERY
+#bit5 MOUSE_ENABLE_COMMBINATION_KEY_BY_BT_DISCOVERY
+#bit6 MOUSE_ENABLE_DPI_KEY_LONG_PRESS_DISCONVERY
+#bit7 MOUSE_ENABLE_PB_BUTTON_LONG_PRESS_DISCONVERY
+01
+
+#mouse flag byte8
+#bit0 MOUSE_ENABLE_SMOOTHER
+#bit1 MOUSE_ENABLE_XY_OFFSET
+#bit2 MOUSE_ENABLE_24G_AUTO_PAIR_NERVER_BEEN_PAIRED
+#bit3 MOUSE_ENABLE_LE_BATTERY_SERVICE_CANCEL
+#bit4 MOUSE_ENABLE_WHEEL_WAKE_UP_CANCEL
+#bit5 MOUSE_ENABLE_OTP
+2c
+
+
+mem_device_option:08
+mem_device_number:01
+mem_power_on_flag:01
+
+#ui
+mem_ui_button_gpio:ff
+mem_ui_button_timeout:1e
+mem_ui_led_struct_num:01
+mem_ui_led_struct_ptr:mem_mouse_led_type
+mem_mouse_struct_led_gpio:ff
+
+#rf
+mem_tx_power:01	#00--0db 01--3db  02--5db  03--f3db  04--f5db
+mem_rssi_buff_index:07
+mem_rssi_signal_buf_ptr:mem_mouse_rssi_signal_buf
+mem_rssi_dis_min_24g_init:85
+mem_rssi_dis_max_24g_init:90
+mem_rssi_dis_min_ble_init:75
+mem_rssi_dis_max_ble_init:80
+mem_rssi_hex_received_max_value_init:63
+mem_power_ctrl_pac_succ_cnt_init:7d
+
+#usb
+mem_usb_offline_check_gpio:ff
+
+#portA:8x,portB:cx,fixed conf,don't change
+mem_key_excol_gpio:c2 c1 85 84 83 82 81 80 c7 c6 c4
+
+#2.4g
+mem_24g_data_type:02	#01--mouse  02--keyboard
+mem_24g_fast_conn_enable:01
+mem_24g_fast_conn_addr:0f 0f 0f 0f
+mem_24g_ch_map_update:00   #00--disable   01--enable
+mem_24g_long_sleep_set_level:02    #00--30ms   01--50ms  02--80ms  03--100ms
+mem_24g_disable_fec1:00	 #00--default mode  01--new process
+
+mem_mouse_24g_pair_tx_power:94 #-20dBm
+
+mem_24g_enter_hibernate:00 48 60
+mem_24g_long_sleep_param_update_timer_init:0a 00	#1s
+mem_24g_transmit_by_interrupt_exit_count_init:50 00
+mem_mouse_24g_power_on_fast_conn_timer:02 00	#1s
+mem_mouse_24g_search_dongle_time_init:32 00	#3mins
+mem_store_information_delay_timer_init:02
+mem_local_rx_max_octets:fb 00 48 08 fb 00 48 08  # 1b
+
+#bt
+mem_lpm_mode:01
+mem_lpm_mult:20
+mem_lpm_mult_init:20
+
+mem_app_connection_options:06
+mem_lap:32 ef 6d ac 24 54
+mem_local_name_length:
+'Bluetooth Keyboard
+mem_sniff_param_interval:
+0e 00 
+01 00 ##mem_sniff_param_attempt:01 00
+02##mem_sniff_param_timeout:00 00
+
+mem_mouse_factory_addr:ff ff ff ff ff ff ff ff
+
+mem_unsniff2sniff_timer:0a
+mem_ssp_enable:01
+
+mem_lmp_io_cap_payload_iocap:03 00 04
+mem_ui_profile_supported:01
+mem_eir_enable:01
+
+#ble
+mem_le_lap:73 83 92 a1 b1 c1
+mem_le_adv_channel_map:07
+
+mem_le_battery_level_updata_timer_init:96 00
+mem_le_keyboard_handle:15 00
+mem_le_notify_handle:19 00
+mem_le_multimedia_handle:1d 00
+mem_le_systemctrl_handle:21 00
+mem_le_pairing_handle:28 00
+mem_le_battery_level_handle:30 00
+
+mem_le_adv_data_len:1f
+mem_le_adv_data:
+#flag
+02 01 05 
+#uuid
+03 03 12 18 
+#appearance
+03 19 c1 03
+
+mem_le_adv_swift_pair:
+#microsoft swift pair
+#06 ff 06 00 03 00 80	
+#name
+'\09Bluetooth Keyboard
+
+mem_le_scan_data_len:1f
+mem_le_scan_data:
+#name
+'\09Bluetooth Keyboard
+
+#max 18bytes, att list data rom limits
+mem_le_name_len:
+'Bluetooth Keyboard
+
+mem_le_interval_min:
+07 00 #min interval
+07 00 #max interval
+20 00 #latency
+2c 01 #timeout
+
+mem_le_adv_ind:03 12 18
+mem_le_adv_direct_ind:ff 00 00
+
+mem_le_search_mac_manu_name:
+41 70 70 6c 65 20 49 6e 63
+mem_le_search_mac_uuid:
+0a 18
+
+mem_keybord_appearance:c1 03
+mem_keyboard_le_map_len:bd 00#d6 00
+
+mem_keyboard_change_vid_pid_flag:
+01			# 00:disable    01:enable
+02
+e8 04		# vid: 04 e8
+21 70		# pid: 70 21
+01 00
+
+mem_keyboard_commbination_fast_conn_bt:2a 10	# bs+M
+
+#adc
+mem_adc_read_time_init:0a
+mem_adc_config_flag_init:01   #00-vinlpm   01-hvin   02-gpio
+mem_adc_channel:00       #00-gpio4   01-gpio5   02-gpio6  03-gpio7    04-gpio9  05-gpio10  06-gpio11  07-gpio12
+#led
+mem_adc_low_volatage_led_blink_timer:64 00
+mem_mouse_low_v_led_blink_time:90 01		#200ms on 200ms off
+mem_mouse_disconvey_led_blink_time:e8 03	#500ms on 500ms off
+mem_mouse_device_poweron_timer_count_init:1e
+
+#time
+mem_mouse_24g_pair_timeout_init:58 02  #1min
+mem_mouse_discovery_timeout:58 02  #1min
+mem_mouse_no_data_timeout:70 17   #10mins
+mem_mouse_24g_reconn_timeout_init:64 #10s
+mem_mouse_direct_timeout:64  #10s
+mem_mouse_fast_direct_timeout:64 #10s
+mem_mouse_page_to:00 40		# 16384*0.625ms=10s
+mem_mouse_fast_page_to:00 40		# 16384*0.625ms=10s
+
+mem_same_keyvalue_timer_init:B8 0B		#5min
+mem_keyboard_caps_led_on_timer:58 02	#1min
+mem_keyboard_commbination_long_press_timer_init:01  #100ms
+#system
+mem_device_flag:00#00--24g 01--bt/ble
+mem_mouse_bluetooth_type:01	#02--ble 01--bt
+mem_device1_type:33		#33--bt  34--ble
+
+##												bt button connct gnd          bt button in matrix        two button commbination
+mem_keyboard_pairing_type:00					#                 00                                    00                                 01
+mem_config_select_device_button_gpio:13    		#              00~16			               ff					ff
+mem_keyboard_commbination_key_bt:7f 06			#		 not care				   not care			     Fn+C
+mem_keyboard_commbination_key_24g:29 14		#		 not care				   not care			     Esc+Q
+
+mem_eeprom_wp_gpio:ff
+mem_eeprom_scl_gpio:ff
+mem_eeprom_sda_gpio:ff
+
+#mem_sensor_motion_gpio:ff
+mem_whee_a_data_gpio:ff
+mem_whee_b_data_gpio:ff
+mem_select_sensor_angle_gpio:ff
+mem_mouse_reuse_2ice_gpio:13
+mem_config_low_voltage_alarm_gpio:80
+mem_config_device_24g_led_gpio:81
+mem_config_device_bt1_led_gpio:ff
+mem_config_device_bt2_led_gpio:ff
+mem_dpi_led_gpio:ff
+mem_keyboard_caps_led_gpio:82
+mem_keyboard_num_led_gpio:ff
+mem_keyboard_power_led_gpio:80
+
+#mem_keyboard_led_r_gpio:04
+#mem_keyboard_led_g_gpio:05
+#mem_keyboard_led_b_gpio:06
+
+mem_mcu_stb_gpio:08
+mem_mcu_clk_gpio:14
+mem_mcu_rstb_gpio:07
+
+#gpio00~16
+mem_key_row_gpio:
+0d 		#r0
+0a 		#r1
+0f 		#r2
+04		#r3
+0e 		#r4
+03		#r5
+0b		#r6
+09		#r7
+
+#gpio00~16   portA:8x,portB:cx
+mem_key_col_gpio:
+80		#c0
+05		#c1
+c4		#c2
+06		#c3
+81		#c4
+c7		#c5
+84		#c6
+82		#c7
+85		#c8
+c2		#c9
+12		#c10
+10		#c11
+11		#c12
+c1		#c13
+c6		#c14
+83		#c15
+ff		#c16
+ff		#c17
+ff		#c18
+ff		#c19
+
+mem_keyboard_keyvalue_map:
+#r0 ~ r7
+48 00 00 00 e6 00 7f 3e 			#c0
+14 2b 04 29 1d 00 35 1e 				#c1
+1a 39 16 64 1b e5 3a 1f 			#c2
+08 3c 07 3d 06 88 3b 20 			#c3
+15 17 09 0a 19 05 22 21 			#c4
+18 1c 0d 0b 10 11 23 24			#c5
+0c 30 0e 3f 36 87 2e 25 			#c6
+12 40 e0 e3 37 e7 41 45 				#c7
+13 2f 33 34 32 38 2d 27 			#c8
+47 2a 31 e2 28 e6 42 43				#c9
+89 e1 e5 44 28 45 42 43 			#c10
+5f 5c 59 2c 44 51 4c 00 			#c11
+60 5d 5a 62 54 4f 49 00 			#c12
+61 5e 5b 52 55 50 4b 4e 				#c13
+12 40 0f 52 37 50 41 26			#c14
+00 e2 e5 F6 F7 F5 F4 F1 			#c15
+fa e3 d1 d3 d2 d4 f8 d5				#c16
+91 d0 e7 f9 f3 fb fb 90				#c17
+
+mem_keyboard_fn_first:	01			#fn first  00:press f1~f12=f1~f12      01:press fn+f1~f12=f1~f12
+mem_keyboard_fn_esc:	fb			#esc
+mem_keyboard_fn_f1:	ad			#f1
+mem_keyboard_fn_f2:	a5			#f2
+mem_keyboard_fn_f3:	a6			#f3
+mem_keyboard_fn_f4:	a7			#f4
+mem_keyboard_fn_f5:	a8			#f5
+mem_keyboard_fn_f6:	eb			#f6
+mem_keyboard_fn_f7:	e9			#f7
+mem_keyboard_fn_f8:	ec			#f8
+mem_keyboard_fn_f9:	ed			#f9
+mem_keyboard_fn_f10:	ee			#f10
+mem_keyboard_fn_f11:	f3			#f11
+mem_keyboard_fn_f12:	f4			#f12
+mem_keyboard_fn_del:	a9			#delete
+
+# 00: disable           01: enable
+mem_keyboard_fn_arrow_enable_flag:01
+mem_keyboard_fn_left_ctrl_enable_flag:00
+mem_keyboard_fn_space_enable_flag:00
+mem_keyboard_fn_system_switch_enable_flag:01
+
+
+
+
Index: util/crc16.exe
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

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

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