	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8821a1ant_connect_notify ## -- Begin function ex_btc8821a1ant_connect_notify
	.p2align	4, 0x90
_ex_btc8821a1ant_connect_notify:        ## @ex_btc8821a1ant_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	24(%rdi), %r14
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	cmpq	$0, 16(%rdi)
	jne	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_17
## %bb.2:
	movq	_coex_sta@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_17
## %bb.3:
	movq	%rsi, %r15
	movq	_BTC_GET_BL_WIFI_UNDER_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	cmpl	$0, -44(%rbp)
	je	LBB0_5
## %bb.4:
	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	_btc8821a1ant_coex_under_5g
	jmp	LBB0_17
LBB0_5:
	movq	_BTC_ASSOCIATE_START@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%r15, (%rcx)
	sete	%al
	movq	(%r12), %rdx
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rsi, %rcx
	movl	%eax, (%rdx)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	_BTC_GET_U4_WIFI_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	cmpl	$131072, -48(%rbp)              ## imm = 0x20000
	jl	LBB0_7
## %bb.6:
	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	_btc8821a1ant_limited_tx
	movl	(%r14), %esi
	movl	$5, %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a1ant_limited_rx
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_wifi_multi_port
	jmp	LBB0_17
LBB0_7:
	movq	_BTC_GET_BL_HS_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_bt_inquiry
	jmp	LBB0_17
LBB0_9:
	cmpl	$0, -52(%rbp)
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_hs
	jmp	LBB0_17
LBB0_11:
	movq	_BTC_ASSOCIATE_START@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_13
## %bb.12:
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	%rbx, %rdi
	callq	_btc8821a1ant_act_wifi_not_conn_scan
	jmp	LBB0_17
LBB0_13:
	movq	_BTC_ASSOCIATE_FINISH@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_17
## %bb.14:
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_BTC_GET_BL_WIFI_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	cmpl	$0, -56(%rbp)
	je	LBB0_15
## %bb.16:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_wifi_connected
	jmp	LBB0_17
LBB0_15:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_wifi_not_connected
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_BTC_GET_BL_WIFI_UNDER_5G,4,2   ## @BTC_GET_BL_WIFI_UNDER_5G
	.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], RunCoexistMechanism(), return for 5G <===\n"

	.comm	_BTC_ASSOCIATE_START,8,3        ## @BTC_ASSOCIATE_START
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], CONNECT START notify\n"

	.comm	_coex_dm,8,3                    ## @coex_dm
L_.str.2:                               ## @.str.2
	.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_btc8821a1ant_connect_notify ; -- Begin function ex_btc8821a1ant_connect_notify
	.p2align	2
_ex_btc8821a1ant_connect_notify:        ; @ex_btc8821a1ant_connect_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	stp	xzr, xzr, [sp]
	ldp	x8, x20, [x0, #16]
	cbnz	x8, LBB0_17
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_17
; %bb.2:
Lloh0:
	adrp	x22, _coex_sta@GOTPAGE
Lloh1:
	ldr	x22, [x22, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_17
; %bb.3:
	mov	x21, x1
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x2, sp
	mov	x0, x19
	blr	x8
	ldr	w8, [sp]
	cbz	w8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8821a1ant_coex_under_5g
	b	LBB0_17
LBB0_5:
Lloh13:
	adrp	x25, _BTC_ASSOCIATE_START@GOTPAGE
Lloh14:
	ldr	x25, [x25, _BTC_ASSOCIATE_START@GOTPAGEOFF]
Lloh15:
	adrp	x8, l_.str.2@PAGE
Lloh16:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh17:
	adrp	x9, l_.str.1@PAGE
Lloh18:
	add	x9, x9, l_.str.1@PAGEOFF
	ldr	x10, [x25]
	cmp	x10, x21
	csel	x3, x9, x8, eq
	cset	w8, eq
	ldr	x9, [x22]
	str	w8, [x9]
Lloh19:
	adrp	x23, _COMP_BT_COEXIST@GOTPAGE
Lloh20:
	ldr	x23, [x23, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh21:
	adrp	x24, _DBG_LOUD@GOTPAGE
Lloh22:
	ldr	x24, [x24, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_RT_TRACE
Lloh23:
	adrp	x8, _coex_dm@GOTPAGE
Lloh24:
	ldr	x8, [x8, _coex_dm@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	xzr, [x8]
	ldr	x8, [x19]
Lloh26:
	adrp	x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGEOFF]
Lloh28:
	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_7
; %bb.6:
Lloh29:
	adrp	x20, _NORMAL_EXEC@GOTPAGE
Lloh30:
	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	_btc8821a1ant_limited_tx
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #5
	bl	_btc8821a1ant_limited_rx
	mov	x0, x19
	bl	_btc8821a1ant_action_wifi_multi_port
	b	LBB0_17
LBB0_7:
	ldr	x8, [x19]
Lloh31:
	adrp	x9, _BTC_GET_BL_HS_OPERATION@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BTC_GET_BL_HS_OPERATION@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_btc8821a1ant_action_bt_inquiry
	b	LBB0_17
LBB0_9:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_btc8821a1ant_action_hs
	b	LBB0_17
LBB0_11:
	ldr	x8, [x25]
	cmp	x8, x21
	b.ne	LBB0_13
; %bb.12:
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh34:
	adrp	x3, l_.str.1@PAGE
Lloh35:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8821a1ant_act_wifi_not_conn_scan
	b	LBB0_17
LBB0_13:
Lloh36:
	adrp	x8, _BTC_ASSOCIATE_FINISH@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BTC_ASSOCIATE_FINISH@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_17
; %bb.14:
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh39:
	adrp	x3, l_.str.2@PAGE
Lloh40:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19]
Lloh41:
	adrp	x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGE
Lloh42:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_btc8821a1ant_action_wifi_connected
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_btc8821a1ant_action_wifi_not_connected
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_BTC_GET_BL_WIFI_UNDER_5G,4,2   ; @BTC_GET_BL_WIFI_UNDER_5G
	.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], RunCoexistMechanism(), return for 5G <===\n"

	.comm	_BTC_ASSOCIATE_START,8,3        ; @BTC_ASSOCIATE_START
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], CONNECT START notify\n"

	.comm	_coex_dm,8,3                    ; @coex_dm
l_.str.2:                               ; @.str.2
	.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
