	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a1ant_action_bt_inquiry
_btc8821a1ant_action_bt_inquiry:        ## @btc8821a1ant_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -32(%rbp)
	movl	$0, -40(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, -36(%rbp)
	movq	_BTC_GET_BL_WIFI_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	*8(%rdi)
	movq	_BTC_GET_BL_WIFI_AP_MODE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_BTC_GET_BL_WIFI_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_BTC_SET_BL_BT_TRAFFIC_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	cmpl	$0, -32(%rbp)
	jne	LBB0_3
## %bb.1:
	movq	_coex_sta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_3:
	cmpq	$0, 48(%rbx)
	jne	LBB0_6
## %bb.4:
	cmpq	$0, 32(%rbx)
	jne	LBB0_6
## %bb.5:
	cmpq	$0, 40(%rbx)
	je	LBB0_7
LBB0_6:
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a1ant_power_save_state
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$32, %ecx
LBB0_10:
	callq	_btc8821a1ant_ps_tdma
	movl	$4, %r14d
LBB0_12:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_btc8821a1ant_coex_table_with_type
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a1ant_power_save_state
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_btc8821a1ant_ps_tdma
	jmp	LBB0_12
LBB0_7:
	movq	16(%rbx), %r15
	movl	-28(%rbp), %r14d
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a1ant_power_save_state
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%r15, %r15
	jne	LBB0_9
## %bb.8:
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.11:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_btc8821a1ant_ps_tdma
	movl	$7, %r14d
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$20, %ecx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ## @BTC_GET_BL_WIFI_CONNECTED
	.comm	_BTC_GET_BL_WIFI_AP_MODE_ENABLE,4,2 ## @BTC_GET_BL_WIFI_AP_MODE_ENABLE
	.comm	_BTC_GET_BL_WIFI_BUSY,4,2       ## @BTC_GET_BL_WIFI_BUSY
	.comm	_BTC_SET_BL_BT_TRAFFIC_BUSY,4,2 ## @BTC_SET_BL_BT_TRAFFIC_BUSY
	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ## @BTC_PS_WIFI_NATIVE
	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
	.no_dead_strip	_btc8821a1ant_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 btc8821a1ant_action_bt_inquiry
_btc8821a1ant_action_bt_inquiry:        ; @btc8821a1ant_action_bt_inquiry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	stp	xzr, xzr, [sp]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #12
	blr	x8
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _BTC_GET_BL_WIFI_AP_MODE_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_AP_MODE_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _BTC_GET_BL_WIFI_BUSY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_BUSY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _BTC_SET_BL_BT_TRAFFIC_BUSY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BTC_SET_BL_BT_TRAFFIC_BUSY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x2, sp
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
Lloh12:
	adrp	x20, _NORMAL_EXEC@GOTPAGE
Lloh13:
	ldr	x20, [x20, _NORMAL_EXEC@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _coex_sta@GOTPAGE
Lloh15:
	ldr	x8, [x8, _coex_sta@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
LBB0_2:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
LBB0_5:
Lloh17:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_btc8821a1ant_power_save_state
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #32
LBB0_6:
	bl	_btc8821a1ant_ps_tdma
	mov	w2, #4
LBB0_7:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_btc8821a1ant_coex_table_with_type
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
Lloh20:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_btc8821a1ant_power_save_state
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	bl	_btc8821a1ant_ps_tdma
	mov	w2, #0
	b	LBB0_7
LBB0_9:
	ldr	x22, [x19, #16]
	ldr	w21, [sp, #4]
Lloh23:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_btc8821a1ant_power_save_state
	ldr	w1, [x20]
	cbnz	x22, LBB0_12
; %bb.10:
	cbnz	w21, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	bl	_btc8821a1ant_ps_tdma
	mov	w2, #7
	b	LBB0_7
LBB0_12:
	mov	x0, x19
	mov	w2, #1
	mov	w3, #20
	b	LBB0_6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ; @BTC_GET_BL_WIFI_CONNECTED
	.comm	_BTC_GET_BL_WIFI_AP_MODE_ENABLE,4,2 ; @BTC_GET_BL_WIFI_AP_MODE_ENABLE
	.comm	_BTC_GET_BL_WIFI_BUSY,4,2       ; @BTC_GET_BL_WIFI_BUSY
	.comm	_BTC_SET_BL_BT_TRAFFIC_BUSY,4,2 ; @BTC_SET_BL_BT_TRAFFIC_BUSY
	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ; @BTC_PS_WIFI_NATIVE
	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
	.no_dead_strip	_btc8821a1ant_action_bt_inquiry
.subsections_via_symbols
