	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function halbtc8723b1ant_action_bt_inquiry
_halbtc8723b1ant_action_bt_inquiry:     ## @halbtc8723b1ant_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -40(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -44(%rbp)
	movq	_BTC_GET_BL_WIFI_AP_MODE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	*8(%rdi)
	movq	_BTC_GET_BL_WIFI_CONNECTED@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	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	_BTC_SET_BL_BT_TRAFFIC_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_coex_sta@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_2
## %bb.1:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$33, %ecx
	callq	_halbtc8723b1ant_ps_tdma
LBB0_13:
	movl	$7, %r14d
	jmp	LBB0_14
LBB0_2:
	cmpl	$0, -40(%rbp)
	jne	LBB0_5
## %bb.3:
	cmpl	$0, 8(%rax)
	je	LBB0_4
LBB0_5:
	cmpq	$0, 40(%rbx)
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 32(%rbx)
	jne	LBB0_8
## %bb.7:
	cmpq	$0, 24(%rbx)
	je	LBB0_9
LBB0_8:
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_halbtc8723b1ant_power_save_state
LBB0_11:
	movq	(%r14), %rax
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rcx
	cmpq	$1, (%rax)
	movl	(%rcx), %esi
	movl	$33, %ecx
	sbbl	$0, %ecx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_halbtc8723b1ant_ps_tdma
	movl	$4, %r14d
LBB0_14:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_halbtc8723b1ant_coex_table_with_type
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_halbtc8723b1ant_power_save_state
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_halbtc8723b1ant_ps_tdma
	movq	_BTC_ANT_PATH_PTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_halbtc8723b1ant_set_ant_path
	jmp	LBB0_14
LBB0_9:
	movq	16(%rbx), %r12
	movl	-36(%rbp), %r15d
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_halbtc8723b1ant_power_save_state
	testq	%r12, %r12
	jne	LBB0_11
## %bb.10:
	testl	%r15d, %r15d
	jne	LBB0_11
## %bb.12:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_halbtc8723b1ant_ps_tdma
	movq	_BTC_ANT_PATH_PTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_halbtc8723b1ant_set_ant_path
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_GET_BL_WIFI_AP_MODE_ENABLE,4,2 ## @BTC_GET_BL_WIFI_AP_MODE_ENABLE
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ## @BTC_GET_BL_WIFI_CONNECTED
	.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	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ## @BTC_PS_WIFI_NATIVE
	.comm	_BTC_ANT_PATH_PTA,4,2           ## @BTC_ANT_PATH_PTA
	.no_dead_strip	_halbtc8723b1ant_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 halbtc8723b1ant_action_bt_inquiry
_halbtc8723b1ant_action_bt_inquiry:     ; @halbtc8723b1ant_action_bt_inquiry
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _BTC_GET_BL_WIFI_AP_MODE_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_AP_MODE_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #8
	blr	x8
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #12
	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
Lloh12:
	adrp	x21, _coex_sta@GOTPAGE
Lloh13:
	ldr	x21, [x21, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8, #16]
Lloh14:
	adrp	x20, _NORMAL_EXEC@GOTPAGE
Lloh15:
	ldr	x20, [x20, _NORMAL_EXEC@GOTPAGEOFF]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #33
	bl	_halbtc8723b1ant_ps_tdma
LBB0_2:
	mov	w2, #7
	b	LBB0_10
LBB0_3:
	ldr	w9, [sp, #12]
	cbnz	w9, LBB0_5
; %bb.4:
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_11
LBB0_5:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
LBB0_8:
Lloh16:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_halbtc8723b1ant_power_save_state
LBB0_9:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w1, [x20]
	cmp	x8, #0
	mov	w8, #32
	cinc	w3, w8, ne
	mov	x0, x19
	mov	w2, #1
	bl	_halbtc8723b1ant_ps_tdma
	mov	w2, #4
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_halbtc8723b1ant_coex_table_with_type
	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_11:
Lloh19:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_halbtc8723b1ant_power_save_state
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	bl	_halbtc8723b1ant_ps_tdma
Lloh22:
	adrp	x8, _BTC_ANT_PATH_PTA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BTC_ANT_PATH_PTA@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	bl	_halbtc8723b1ant_set_ant_path
	mov	w2, #0
	b	LBB0_10
LBB0_12:
	ldr	x23, [x19, #16]
	ldr	w22, [sp, #4]
Lloh25:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_halbtc8723b1ant_power_save_state
	cbnz	x23, LBB0_9
; %bb.13:
	cbnz	w22, LBB0_9
; %bb.14:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	bl	_halbtc8723b1ant_ps_tdma
Lloh28:
	adrp	x8, _BTC_ANT_PATH_PTA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BTC_ANT_PATH_PTA@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	bl	_halbtc8723b1ant_set_ant_path
	b	LBB0_2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_GET_BL_WIFI_AP_MODE_ENABLE,4,2 ; @BTC_GET_BL_WIFI_AP_MODE_ENABLE
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ; @BTC_GET_BL_WIFI_CONNECTED
	.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	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ; @BTC_PS_WIFI_NATIVE
	.comm	_BTC_ANT_PATH_PTA,4,2           ; @BTC_ANT_PATH_PTA
	.no_dead_strip	_halbtc8723b1ant_action_bt_inquiry
.subsections_via_symbols
