	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a2ant_action_bt_inquiry
_btc8821a2ant_action_bt_inquiry:        ## @btc8821a2ant_action_bt_inquiry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	$0, -32(%rbp)
	movl	$1, -36(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$15, %ecx
	xorl	%r8d, %r8d
	callq	_btc8821a2ant_wifi_rssi_state
	movq	_BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_btc8821a2ant_wifi_rssi_state
	movq	_BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%ecx, %ecx
	callq	_btc8821a2ant_bt_rssi_state
	movq	_BTC_SET_ACT_DISABLE_LOW_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_BTC_GET_BL_WIFI_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_BTC_GET_BL_WIFI_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_BTC_GET_BL_WIFI_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_BTC_GET_BL_WIFI_ROAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a2ant_power_save_state
	cmpl	$0, -28(%rbp)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, -24(%rbp)
	jne	LBB0_3
## %bb.2:
	cmpl	$0, -20(%rbp)
	jne	LBB0_3
## %bb.4:
	cmpl	$0, -32(%rbp)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_6
LBB0_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
LBB0_6:
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_btc8821a2ant_coex_table_with_type
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$22, %ecx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_btc8821a2ant_coex_table_with_type
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
LBB0_8:
	callq	_btc8821a2ant_ps_tdma
	movq	_FORCE_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_btc8821a2ant_fw_dac_swing_lvl
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_btc8821a2ant_dec_bt_pwr
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_btc8821a2ant_sw_mechanism1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$24, %r8d
	callq	_btc8821a2ant_sw_mechanism2
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES,4,2 ## @BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES
	.comm	_BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES,4,2 ## @BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES
	.comm	_BTC_SET_ACT_DISABLE_LOW_POWER,4,2 ## @BTC_SET_ACT_DISABLE_LOW_POWER
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ## @BTC_GET_BL_WIFI_CONNECTED
	.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
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ## @BTC_PS_WIFI_NATIVE
	.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], Wifi link process + BT Inq/Page!!\n"

	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], Wifi connected + BT Inq/Page!!\n"

L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], Wifi no-link + BT Inq/Page!!\n"

	.comm	_FORCE_EXEC,4,2                 ## @FORCE_EXEC
	.no_dead_strip	_btc8821a2ant_action_bt_inquiry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8821a2ant_action_bt_inquiry
_btc8821a2ant_action_bt_inquiry:        ; @btc8821a2ant_action_bt_inquiry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	w8, #1
	stp	w8, wzr, [sp, #24]
	str	xzr, [sp, #16]
	str	wzr, [sp, #12]
	mov	w1, #0
	mov	w2, #2
	mov	w3, #15
	mov	w4, #0
	bl	_btc8821a2ant_wifi_rssi_state
Lloh0:
	adrp	x8, _BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #2
	mov	w4, #0
	bl	_btc8821a2ant_wifi_rssi_state
Lloh3:
	adrp	x8, _BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #2
	mov	w3, #0
	bl	_btc8821a2ant_bt_rssi_state
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _BTC_SET_ACT_DISABLE_LOW_POWER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTC_SET_ACT_DISABLE_LOW_POWER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	x2, sp, #24
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	add	x2, sp, #28
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	add	x2, sp, #20
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _BTC_GET_BL_WIFI_LINK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_LINK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	add	x2, sp, #16
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
Lloh21:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_btc8821a2ant_power_save_state
	ldr	w8, [sp, #20]
Lloh24:
	adrp	x21, _NORMAL_EXEC@GOTPAGE
Lloh25:
	ldr	x21, [x21, _NORMAL_EXEC@GOTPAGEOFF]
	cbnz	w8, LBB0_5
; %bb.1:
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	w8, [sp, #28]
Lloh26:
	adrp	x9, _COMP_BT_COEXIST@GOTPAGE
Lloh27:
	ldr	x9, [x9, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
Lloh29:
	adrp	x9, _DBG_LOUD@GOTPAGE
Lloh30:
	ldr	x9, [x9, _DBG_LOUD@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x9]
	cbz	w8, LBB0_7
; %bb.4:
Lloh32:
	adrp	x3, l_.str.1@PAGE
Lloh33:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh34:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh35:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x3, l_.str@PAGE
Lloh41:
	add	x3, x3, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #15
	bl	_btc8821a2ant_coex_table_with_type
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #22
	b	LBB0_8
LBB0_7:
Lloh42:
	adrp	x3, l_.str.2@PAGE
Lloh43:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_btc8821a2ant_coex_table_with_type
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
LBB0_8:
	bl	_btc8821a2ant_ps_tdma
Lloh44:
	adrp	x8, _FORCE_EXEC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _FORCE_EXEC@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #6
	bl	_btc8821a2ant_fw_dac_swing_lvl
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_btc8821a2ant_dec_bt_pwr
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_btc8821a2ant_sw_mechanism1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #24
	bl	_btc8821a2ant_sw_mechanism2
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES,4,2 ; @BT_8821A_2ANT_WIFI_RSSI_COEXSWITCH_THRES
	.comm	_BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES,4,2 ; @BT_8821A_2ANT_BT_RSSI_COEXSWITCH_THRES
	.comm	_BTC_SET_ACT_DISABLE_LOW_POWER,4,2 ; @BTC_SET_ACT_DISABLE_LOW_POWER
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ; @BTC_GET_BL_WIFI_CONNECTED
	.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
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ; @BTC_PS_WIFI_NATIVE
	.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], Wifi link process + BT Inq/Page!!\n"

	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], Wifi connected + BT Inq/Page!!\n"

l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], Wifi no-link + BT Inq/Page!!\n"

	.comm	_FORCE_EXEC,4,2                 ; @FORCE_EXEC
	.no_dead_strip	_btc8821a2ant_action_bt_inquiry
.subsections_via_symbols
