	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8821a1ant_scan_notify    ## -- Begin function ex_btc8821a1ant_scan_notify
	.p2align	4, 0x90
_ex_btc8821a1ant_scan_notify:           ## @ex_btc8821a1ant_scan_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, -44(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	cmpq	$0, 16(%rdi)
	jne	LBB0_22
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_22
## %bb.2:
	movq	%rsi, %r15
	movq	_BTC_GET_BL_WIFI_UNDER_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	cmpl	$0, -52(%rbp)
	je	LBB0_4
## %bb.3:
	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_22
LBB0_4:
	movq	_BTC_SCAN_START@GOTPCREL(%rip), %r12
	movq	_coex_sta@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	%r15, (%r12)
	jne	LBB0_6
## %bb.5:
	movl	$1, (%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
	movq	_FORCE_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_btc8821a1ant_ps_tdma
	jmp	LBB0_7
LBB0_6:
	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.2(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
LBB0_7:
	movq	(%r13), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_22
## %bb.8:
	movq	_BTC_GET_BL_HS_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_BTC_GET_BL_WIFI_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	%rbx, %rdi
	callq	_btc8821a1ant_query_bt_info
	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_10
## %bb.9:
	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_22
LBB0_10:
	movq	(%r13), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_bt_inquiry
	jmp	LBB0_22
LBB0_12:
	cmpl	$0, -56(%rbp)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_hs
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	cmpq	%r15, (%r12)
	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
	cmpl	$0, -44(%rbp)
	je	LBB0_16
## %bb.17:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_wifi_connected_scan
	jmp	LBB0_22
LBB0_18:
	movq	_BTC_SCAN_FINISH@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_22
## %bb.19:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	cmpl	$0, -44(%rbp)
	je	LBB0_20
## %bb.21:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_wifi_connected
	jmp	LBB0_22
LBB0_16:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_act_wifi_not_conn_scan
	jmp	LBB0_22
LBB0_20:
	movq	%rbx, %rdi
	callq	_btc8821a1ant_action_wifi_not_connected
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.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_SCAN_START,8,3             ## @BTC_SCAN_START
	.comm	_coex_sta,8,3                   ## @coex_sta
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], SCAN START notify\n"

	.comm	_FORCE_EXEC,4,2                 ## @FORCE_EXEC
L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], SCAN FINISH notify\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8821a1ant_scan_notify    ; -- Begin function ex_btc8821a1ant_scan_notify
	.p2align	2
_ex_btc8821a1ant_scan_notify:           ; @ex_btc8821a1ant_scan_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
	stp	xzr, xzr, [sp]
	ldp	x8, x20, [x0, #16]
	cbnz	x8, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_14
; %bb.2:
	mov	x21, x1
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8821a1ant_coex_under_5g
	b	LBB0_14
LBB0_4:
Lloh11:
	adrp	x22, _BTC_SCAN_START@GOTPAGE
Lloh12:
	ldr	x22, [x22, _BTC_SCAN_START@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh13:
	adrp	x23, _coex_sta@GOTPAGE
Lloh14:
	ldr	x23, [x23, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x9, x21
	b.ne	LBB0_6
; %bb.5:
	mov	w9, #1
	str	w9, [x8]
Lloh15:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x3, l_.str.1@PAGE
Lloh22:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh23:
	adrp	x8, _FORCE_EXEC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FORCE_EXEC@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	bl	_btc8821a1ant_ps_tdma
	b	LBB0_7
LBB0_6:
	str	wzr, [x8]
Lloh26:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x3, l_.str.2@PAGE
Lloh33:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
LBB0_7:
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_14
; %bb.8:
	ldr	x8, [x19]
Lloh34:
	adrp	x9, _BTC_GET_BL_HS_OPERATION@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BTC_GET_BL_HS_OPERATION@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh37:
	adrp	x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGE
Lloh38:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_btc8821a1ant_query_bt_info
	ldr	x8, [x19]
Lloh40:
	adrp	x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x9]
	mov	x2, sp
	mov	x0, x19
	blr	x8
	ldr	w8, [sp]
	cmp	w8, #32, lsl #12                ; =131072
	b.lt	LBB0_10
; %bb.9:
Lloh43:
	adrp	x20, _NORMAL_EXEC@GOTPAGE
Lloh44:
	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_14
LBB0_10:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_btc8821a1ant_action_bt_inquiry
	b	LBB0_14
LBB0_12:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_btc8821a1ant_action_hs
LBB0_14:
	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
LBB0_15:
	ldr	x8, [x22]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.16:
Lloh45:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh46:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
Lloh51:
	adrp	x3, l_.str.1@PAGE
Lloh52:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_21
; %bb.17:
	mov	x0, x19
	bl	_btc8821a1ant_action_wifi_connected_scan
	b	LBB0_14
LBB0_18:
Lloh53:
	adrp	x8, _BTC_SCAN_FINISH@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BTC_SCAN_FINISH@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_14
; %bb.19:
Lloh56:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh57:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
Lloh59:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh60:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
Lloh62:
	adrp	x3, l_.str.2@PAGE
Lloh63:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_22
; %bb.20:
	mov	x0, x19
	bl	_btc8821a1ant_action_wifi_connected
	b	LBB0_14
LBB0_21:
	mov	x0, x19
	bl	_btc8821a1ant_act_wifi_not_conn_scan
	b	LBB0_14
LBB0_22:
	mov	x0, x19
	bl	_btc8821a1ant_action_wifi_not_connected
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.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_SCAN_START,8,3             ; @BTC_SCAN_START
	.comm	_coex_sta,8,3                   ; @coex_sta
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], SCAN START notify\n"

	.comm	_FORCE_EXEC,4,2                 ; @FORCE_EXEC
l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], SCAN FINISH notify\n"

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