	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8723b1ant_connect_notify ## -- Begin function ex_btc8723b1ant_connect_notify
	.p2align	4, 0x90
_ex_btc8723b1ant_connect_notify:        ## @ex_btc8723b1ant_connect_notify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -56(%rbp)
	movq	_BTC_GET_BL_WIFI_4_WAY_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	*(%rdi)
	cmpq	$0, 16(%rbx)
	jne	LBB0_18
## %bb.1:
	cmpq	$0, 8(%rbx)
	jne	LBB0_18
## %bb.2:
	movq	_coex_sta@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_18
## %bb.3:
	movq	_BTC_ASSOCIATE_START@GOTPCREL(%rip), %r12
	cmpq	%r15, (%r12)
	jne	LBB0_5
## %bb.4:
	movl	$1, (%rax)
	movq	_FORCE_EXEC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_halbtc8723b1ant_ps_tdma
	movq	_BTC_ANT_PATH_PTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_BTC_ASSOCIATE_START@GOTPCREL(%rip), %r12
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_halbtc8723b1ant_set_ant_path
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	jmp	LBB0_6
LBB0_5:
	movl	$0, (%rax)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
LBB0_6:
	movq	_BTC_GET_U4_WIFI_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	cmpl	$131072, -44(%rbp)              ## imm = 0x20000
	jl	LBB0_8
## %bb.7:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_halbtc8723b1ant_limited_tx
	movl	(%r14), %esi
	movl	$5, %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_halbtc8723b1ant_limited_rx
	movq	%rbx, %rdi
	callq	_halbtc8723b1ant_action_wifi_multiport
	jmp	LBB0_18
LBB0_8:
	movq	_BTC_GET_BL_HS_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	(%r13), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_halbtc8723b1ant_action_bt_inquiry
	jmp	LBB0_18
LBB0_10:
	cmpl	$0, -48(%rbp)
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_halbtc8723b1ant_action_hs
	jmp	LBB0_18
LBB0_12:
	cmpq	%r15, (%r12)
	jne	LBB0_14
## %bb.13:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	%rbx, %rdi
	callq	_btc8723b1ant_act_wifi_not_conn_asso_auth
	jmp	LBB0_18
LBB0_14:
	movq	_BTC_ASSOCIATE_FINISH@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_18
## %bb.15:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_BTC_GET_BL_WIFI_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	cmpl	$0, -52(%rbp)
	je	LBB0_16
## %bb.17:
	movq	%rbx, %rdi
	callq	_halbtc8723b1ant_action_wifi_connected
	jmp	LBB0_18
LBB0_16:
	movq	%rbx, %rdi
	callq	_btc8723b1ant_action_wifi_not_conn
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_GET_BL_WIFI_4_WAY_PROGRESS,4,2 ## @BTC_GET_BL_WIFI_4_WAY_PROGRESS
	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_BTC_ASSOCIATE_START,8,3        ## @BTC_ASSOCIATE_START
	.comm	_FORCE_EXEC,4,2                 ## @FORCE_EXEC
	.comm	_BTC_ANT_PATH_PTA,4,2           ## @BTC_ANT_PATH_PTA
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[BTCoex], CONNECT START notify\n"

	.comm	_coex_dm,8,3                    ## @coex_dm
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], CONNECT FINISH notify\n"

	.comm	_BTC_GET_U4_WIFI_LINK_STATUS,4,2 ## @BTC_GET_U4_WIFI_LINK_STATUS
	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ## @BTC_GET_BL_HS_OPERATION
	.comm	_BTC_ASSOCIATE_FINISH,8,3       ## @BTC_ASSOCIATE_FINISH
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ## @BTC_GET_BL_WIFI_CONNECTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8723b1ant_connect_notify ; -- Begin function ex_btc8723b1ant_connect_notify
	.p2align	2
_ex_btc8723b1ant_connect_notify:        ; @ex_btc8723b1ant_connect_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #24]
	stp	xzr, xzr, [sp]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BTC_GET_BL_WIFI_4_WAY_PROGRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_4_WAY_PROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x2, sp
	blr	x8
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_18
; %bb.1:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_18
; %bb.2:
Lloh3:
	adrp	x23, _coex_sta@GOTPAGE
Lloh4:
	ldr	x23, [x23, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_18
; %bb.3:
Lloh5:
	adrp	x22, _BTC_ASSOCIATE_START@GOTPAGE
Lloh6:
	ldr	x22, [x22, _BTC_ASSOCIATE_START@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x9, x21
	b.ne	LBB0_5
; %bb.4:
	mov	w9, #1
	str	w9, [x8]
Lloh7:
	adrp	x24, _FORCE_EXEC@GOTPAGE
Lloh8:
	ldr	x24, [x24, _FORCE_EXEC@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	bl	_halbtc8723b1ant_ps_tdma
Lloh9:
	adrp	x8, _BTC_ANT_PATH_PTA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTC_ANT_PATH_PTA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	bl	_halbtc8723b1ant_set_ant_path
Lloh12:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh20:
	adrp	x8, _coex_dm@GOTPAGE
Lloh21:
	ldr	x8, [x8, _coex_dm@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	xzr, [x8]
	b	LBB0_6
LBB0_5:
	str	wzr, [x8]
Lloh23:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh24:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x3, l_.str.1@PAGE
Lloh30:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
LBB0_6:
	ldr	x8, [x19]
Lloh31:
	adrp	x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #4]
	cmp	w8, #32, lsl #12                ; =131072
	b.lt	LBB0_8
; %bb.7:
Lloh34:
	adrp	x20, _NORMAL_EXEC@GOTPAGE
Lloh35:
	ldr	x20, [x20, _NORMAL_EXEC@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_halbtc8723b1ant_limited_tx
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #5
	bl	_halbtc8723b1ant_limited_rx
	mov	x0, x19
	bl	_halbtc8723b1ant_action_wifi_multiport
	b	LBB0_18
LBB0_8:
	ldr	x8, [x19]
Lloh36:
	adrp	x9, _BTC_GET_BL_HS_OPERATION@GOTPAGE
Lloh37:
	ldr	x9, [x9, _BTC_GET_BL_HS_OPERATION@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_halbtc8723b1ant_action_bt_inquiry
	b	LBB0_18
LBB0_10:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_halbtc8723b1ant_action_hs
	b	LBB0_18
LBB0_12:
	ldr	x8, [x22]
	cmp	x8, x21
	b.ne	LBB0_14
; %bb.13:
Lloh39:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh40:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
Lloh45:
	adrp	x3, l_.str@PAGE
Lloh46:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b1ant_act_wifi_not_conn_asso_auth
	b	LBB0_18
LBB0_14:
Lloh47:
	adrp	x8, _BTC_ASSOCIATE_FINISH@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BTC_ASSOCIATE_FINISH@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.15:
Lloh50:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh51:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh54:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
Lloh56:
	adrp	x3, l_.str.1@PAGE
Lloh57:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19]
Lloh58:
	adrp	x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGE
Lloh59:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_halbtc8723b1ant_action_wifi_connected
	b	LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_btc8723b1ant_action_wifi_not_conn
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_GET_BL_WIFI_4_WAY_PROGRESS,4,2 ; @BTC_GET_BL_WIFI_4_WAY_PROGRESS
	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_BTC_ASSOCIATE_START,8,3        ; @BTC_ASSOCIATE_START
	.comm	_FORCE_EXEC,4,2                 ; @FORCE_EXEC
	.comm	_BTC_ANT_PATH_PTA,4,2           ; @BTC_ANT_PATH_PTA
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[BTCoex], CONNECT START notify\n"

	.comm	_coex_dm,8,3                    ; @coex_dm
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], CONNECT FINISH notify\n"

	.comm	_BTC_GET_U4_WIFI_LINK_STATUS,4,2 ; @BTC_GET_U4_WIFI_LINK_STATUS
	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ; @BTC_GET_BL_HS_OPERATION
	.comm	_BTC_ASSOCIATE_FINISH,8,3       ; @BTC_ASSOCIATE_FINISH
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ; @BTC_GET_BL_WIFI_CONNECTED
.subsections_via_symbols
