	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a1ant_run_coexist_mechanism
_btc8821a1ant_run_coexist_mechanism:    ## @btc8821a1ant_run_coexist_mechanism
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	64(%rdi), %rbx
	movl	$0, -44(%rbp)
	movl	$0, -72(%rbp)
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	cmpq	$0, 24(%r14)
	je	LBB0_3
## %bb.1:
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.4:
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_coex_sta@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rcx
LBB0_2:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_7:
	movq	_BTC_GET_BL_WIFI_UNDER_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	cmpl	$0, -60(%rbp)
	je	LBB0_9
## %bb.8:
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8821a1ant_coex_under_5g
	jmp	LBB0_40
LBB0_9:
	movq	_BT_8821A_1ANT_BT_STATUS_ACL_BUSY@GOTPCREL(%rip), %rcx
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rcx)
	je	LBB0_12
## %bb.10:
	movq	_BT_8821A_1ANT_BT_STATUS_SCO_BUSY@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_13
LBB0_12:
	movl	$1, -68(%rbp)
LBB0_13:
	movq	_BTC_SET_BL_INC_SCAN_DEV_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	_BTC_GET_BL_WIFI_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_GET_U4_WIFI_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movl	-64(%rbp), %eax
	cmpl	$131071, %eax                   ## imm = 0x1FFFF
	jg	LBB0_15
## %bb.14:
	movq	_WIFI_P2P_GO_CONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
LBB0_15:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_btc8821a1ant_limited_tx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$5, %r8d
	callq	_btc8821a1ant_limited_rx
	movq	%r14, %rdi
	callq	_btc8821a1ant_action_wifi_multi_port
LBB0_40:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	cmpq	$0, 56(%r14)
	jne	LBB0_18
## %bb.17:
	cmpq	$0, 48(%r14)
	je	LBB0_20
LBB0_18:
	cmpl	$0, -44(%rbp)
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$2, %edx
	movl	$30, %ecx
	xorl	%r8d, %r8d
	callq	_btc8821a1ant_wifi_rssi_state
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	jmp	LBB0_21
LBB0_20:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_21:
	callq	_btc8821a1ant_limited_tx
	movl	$3, %r8d
	movl	$1, %ecx
	cmpq	$0, 56(%r14)
	jne	LBB0_27
## %bb.22:
	movl	$5, %r8d
	cmpq	$0, 48(%r14)
	jne	LBB0_27
## %bb.23:
	cmpq	$0, 40(%r14)
	jne	LBB0_26
## %bb.24:
	cmpq	$0, 32(%r14)
	je	LBB0_25
LBB0_26:
	movl	$8, %r8d
LBB0_27:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_btc8821a1ant_limited_rx
	movq	%r14, %rdi
	callq	_btc8821a1ant_run_sw_coex_mech
	movq	_BTC_GET_BL_HS_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	callq	_btc8821a1ant_action_bt_inquiry
	jmp	LBB0_40
LBB0_29:
	cmpl	$0, -72(%rbp)
	je	LBB0_31
## %bb.30:
	movq	%r14, %rdi
	callq	_btc8821a1ant_action_hs
	jmp	LBB0_40
LBB0_31:
	cmpl	$0, -44(%rbp)
	je	LBB0_32
## %bb.39:
	movq	%r14, %rdi
	callq	_btc8821a1ant_action_wifi_connected
	jmp	LBB0_40
LBB0_32:
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movq	_BTC_GET_BL_WIFI_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_GET_BL_WIFI_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_GET_BL_WIFI_ROAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_35
## %bb.33:
	cmpl	$0, -52(%rbp)
	jne	LBB0_35
## %bb.34:
	cmpl	$0, -48(%rbp)
	jne	LBB0_35
## %bb.38:
	movq	%r14, %rdi
	callq	_btc8821a1ant_action_wifi_not_connected
	jmp	LBB0_40
LBB0_35:
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_37
## %bb.36:
	callq	_btc8821a1ant_act_wifi_not_conn_scan
	jmp	LBB0_40
LBB0_25:
	xorl	%ecx, %ecx
	jmp	LBB0_27
LBB0_37:
	callq	_btc8821a1ant_action_wifi_not_connected_asso_auth
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_RSSI_STATE_HIGH,4,2        ## @BTC_RSSI_STATE_HIGH
	.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()===>\n"

L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], RunCoexistMechanism(), return for Manual CTRL <===\n"

L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], RunCoexistMechanism(), return for Stop Coex DM <===\n"

	.comm	_coex_sta,8,3                   ## @coex_sta
L_.str.3:                               ## @.str.3
	.asciz	"[BTCoex], wifi is under IPS !!!\n"

	.comm	_BTC_GET_BL_WIFI_UNDER_5G,4,2   ## @BTC_GET_BL_WIFI_UNDER_5G
L_.str.4:                               ## @.str.4
	.asciz	"[BTCoex], RunCoexistMechanism(), return for 5G <===\n"

	.comm	_BT_8821A_1ANT_BT_STATUS_ACL_BUSY,8,3 ## @BT_8821A_1ANT_BT_STATUS_ACL_BUSY
	.comm	_coex_dm,8,3                    ## @coex_dm
	.comm	_BT_8821A_1ANT_BT_STATUS_SCO_BUSY,8,3 ## @BT_8821A_1ANT_BT_STATUS_SCO_BUSY
	.comm	_BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY,8,3 ## @BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY
	.comm	_BTC_SET_BL_INC_SCAN_DEV_NUM,4,2 ## @BTC_SET_BL_INC_SCAN_DEV_NUM
	.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	_WIFI_P2P_GO_CONNECTED,4,2      ## @WIFI_P2P_GO_CONNECTED
	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ## @BTC_GET_BL_HS_OPERATION
L_.str.5:                               ## @.str.5
	.asciz	"[BTCoex], wifi is non connected-idle !!!\n"

	.comm	_BTC_GET_BL_WIFI_SCAN,4,2       ## @BTC_GET_BL_WIFI_SCAN
	.comm	_BTC_GET_BL_WIFI_LINK,4,2       ## @BTC_GET_BL_WIFI_LINK
	.comm	_BTC_GET_BL_WIFI_ROAM,4,2       ## @BTC_GET_BL_WIFI_ROAM
	.no_dead_strip	_btc8821a1ant_run_coexist_mechanism
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8821a1ant_run_coexist_mechanism
_btc8821a1ant_run_coexist_mechanism:    ; @btc8821a1ant_run_coexist_mechanism
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	x20, [x0, #64]
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x22, _COMP_BT_COEXIST@GOTPAGE
Lloh1:
	ldr	x22, [x22, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x21, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x23, _coex_sta@GOTPAGE
Lloh11:
	ldr	x23, [x23, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh12:
	adrp	x3, l_.str.3@PAGE
Lloh13:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #96
	b	_RT_TRACE
LBB0_7:
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh17:
	adrp	x3, l_.str.4@PAGE
Lloh18:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8821a1ant_coex_under_5g
	b	LBB0_14
LBB0_9:
Lloh19:
	adrp	x8, _BT_8821A_1ANT_BT_STATUS_ACL_BUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BT_8821A_1ANT_BT_STATUS_ACL_BUSY@GOTPAGEOFF]
Lloh21:
	adrp	x9, _coex_dm@GOTPAGE
Lloh22:
	ldr	x9, [x9, _coex_dm@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	ldr	x9, [x9]
	ldr	x9, [x9]
Lloh25:
	adrp	x10, _BT_8821A_1ANT_BT_STATUS_SCO_BUSY@GOTPAGE
Lloh26:
	ldr	x10, [x10, _BT_8821A_1ANT_BT_STATUS_SCO_BUSY@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
Lloh28:
	adrp	x11, _BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY@GOTPAGE
Lloh29:
	ldr	x11, [x11, _BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x10, x9, #4, ne
	ccmp	x11, x9, #4, ne
	b.ne	LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [sp, #20]
LBB0_11:
	ldr	x8, [x19, #8]
Lloh31:
	adrp	x9, _BTC_SET_BL_INC_SCAN_DEV_NUM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BTC_SET_BL_INC_SCAN_DEV_NUM@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	add	x2, sp, #20
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh34:
	adrp	x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x9]
	add	x2, sp, #28
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh37:
	adrp	x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x9]
	add	x2, sp, #16
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #16]
	cmp	w8, #32, lsl #12                ; =131072
	b.ge	LBB0_13
; %bb.12:
Lloh40:
	adrp	x9, _WIFI_P2P_GO_CONNECTED@GOTPAGE
Lloh41:
	ldr	x9, [x9, _WIFI_P2P_GO_CONNECTED@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_13:
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
LBB0_14:
	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
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	x8, [x19, #56]
Lloh45:
	adrp	x24, _NORMAL_EXEC@GOTPAGE
Lloh46:
	ldr	x24, [x24, _NORMAL_EXEC@GOTPAGEOFF]
	cbnz	x8, LBB0_17
; %bb.16:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_19
LBB0_17:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #2
	mov	w3, #30
	mov	w4, #0
	bl	_btc8821a1ant_wifi_rssi_state
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	b	LBB0_20
LBB0_19:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
LBB0_20:
	bl	_btc8821a1ant_limited_tx
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_22
; %bb.21:
	mov	w4, #3
	b	LBB0_27
LBB0_22:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_24
; %bb.23:
	mov	w4, #5
	b	LBB0_27
LBB0_24:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_26
; %bb.25:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_40
LBB0_26:
	mov	w4, #8
LBB0_27:
	mov	w3, #1
LBB0_28:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_btc8821a1ant_limited_rx
	mov	x0, x19
	bl	_btc8821a1ant_run_sw_coex_mech
	ldr	x8, [x19]
Lloh47:
	adrp	x9, _BTC_GET_BL_HS_OPERATION@GOTPAGE
Lloh48:
	ldr	x9, [x9, _BTC_GET_BL_HS_OPERATION@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x9]
	add	x2, sp, #24
	mov	x0, x19
	blr	x8
	ldr	x8, [x23]
	ldr	x8, [x8]
	cbz	x8, LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_btc8821a1ant_action_bt_inquiry
	b	LBB0_14
LBB0_30:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_32
; %bb.31:
	mov	x0, x19
	bl	_btc8821a1ant_action_hs
	b	LBB0_14
LBB0_32:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_34
; %bb.33:
	mov	x0, x19
	bl	_btc8821a1ant_action_wifi_connected
	b	LBB0_14
LBB0_34:
	str	wzr, [sp, #8]
	str	xzr, [sp]
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh50:
	adrp	x3, l_.str.5@PAGE
Lloh51:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19]
Lloh52:
	adrp	x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGE
Lloh53:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh55:
	adrp	x9, _BTC_GET_BL_WIFI_LINK@GOTPAGE
Lloh56:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_LINK@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x9]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh58:
	adrp	x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGE
Lloh59:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x9]
	mov	x2, sp
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_38
; %bb.35:
	ldr	w9, [sp, #4]
	cbnz	w9, LBB0_38
; %bb.36:
	ldr	w9, [sp]
	cbnz	w9, LBB0_38
; %bb.37:
	mov	x0, x19
	bl	_btc8821a1ant_action_wifi_not_connected
	b	LBB0_14
LBB0_38:
	mov	x0, x19
	cbz	w8, LBB0_41
; %bb.39:
	bl	_btc8821a1ant_act_wifi_not_conn_scan
	b	LBB0_14
LBB0_40:
	mov	w3, #0
	mov	w4, #5
	b	LBB0_28
LBB0_41:
	bl	_btc8821a1ant_action_wifi_not_connected_asso_auth
	b	LBB0_14
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_RSSI_STATE_HIGH,4,2        ; @BTC_RSSI_STATE_HIGH
	.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()===>\n"

l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], RunCoexistMechanism(), return for Manual CTRL <===\n"

l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], RunCoexistMechanism(), return for Stop Coex DM <===\n"

	.comm	_coex_sta,8,3                   ; @coex_sta
l_.str.3:                               ; @.str.3
	.asciz	"[BTCoex], wifi is under IPS !!!\n"

	.comm	_BTC_GET_BL_WIFI_UNDER_5G,4,2   ; @BTC_GET_BL_WIFI_UNDER_5G
l_.str.4:                               ; @.str.4
	.asciz	"[BTCoex], RunCoexistMechanism(), return for 5G <===\n"

	.comm	_BT_8821A_1ANT_BT_STATUS_ACL_BUSY,8,3 ; @BT_8821A_1ANT_BT_STATUS_ACL_BUSY
	.comm	_coex_dm,8,3                    ; @coex_dm
	.comm	_BT_8821A_1ANT_BT_STATUS_SCO_BUSY,8,3 ; @BT_8821A_1ANT_BT_STATUS_SCO_BUSY
	.comm	_BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY,8,3 ; @BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY
	.comm	_BTC_SET_BL_INC_SCAN_DEV_NUM,4,2 ; @BTC_SET_BL_INC_SCAN_DEV_NUM
	.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	_WIFI_P2P_GO_CONNECTED,4,2      ; @WIFI_P2P_GO_CONNECTED
	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ; @BTC_GET_BL_HS_OPERATION
l_.str.5:                               ; @.str.5
	.asciz	"[BTCoex], wifi is non connected-idle !!!\n"

	.comm	_BTC_GET_BL_WIFI_SCAN,4,2       ; @BTC_GET_BL_WIFI_SCAN
	.comm	_BTC_GET_BL_WIFI_LINK,4,2       ; @BTC_GET_BL_WIFI_LINK
	.comm	_BTC_GET_BL_WIFI_ROAM,4,2       ; @BTC_GET_BL_WIFI_ROAM
	.no_dead_strip	_btc8821a1ant_run_coexist_mechanism
.subsections_via_symbols
