	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_mci_send_coex_bt_status_query
_ar9003_mci_send_coex_bt_status_query:  ## @ar9003_mci_send_coex_bt_status_query
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	(%rdi), %rax
	movq	_MCI_BT_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_MCI_GPM_COEX_QUERY_BT_ALL_INFO@GOTPCREL(%rip), %rax
	movq	_MCI_GPM_COEX_QUERY_BT_TOPOLOGY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_MCI_GPM_COEX_AGENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCI_GPM_COEX_STATUS_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	callq	_MCI_GPM_SET_TYPE_OPCODE
	movq	_MCI_GPM_COEX_B_BT_BITMAP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	%r14d, -64(%rbp,%rax,4)
	movq	_MCI_GPM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movl	$16, %r8d
	movl	%r15d, %r9d
	callq	_ar9003_mci_send_message
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	%r13d, %eax
	andl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movl	$1, 8(%rbx)
LBB0_4:
	testl	%r14d, %r13d
	je	LBB0_6
## %bb.5:
	movl	$0, 12(%rbx)
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_BT_SLEEP,8,3               ## @MCI_BT_SLEEP
	.comm	_MCI_GPM_COEX_QUERY_BT_ALL_INFO,4,2 ## @MCI_GPM_COEX_QUERY_BT_ALL_INFO
	.comm	_MCI_GPM_COEX_QUERY_BT_TOPOLOGY,4,2 ## @MCI_GPM_COEX_QUERY_BT_TOPOLOGY
	.comm	_MCI_GPM_COEX_AGENT,4,2         ## @MCI_GPM_COEX_AGENT
	.comm	_MCI_GPM_COEX_STATUS_QUERY,4,2  ## @MCI_GPM_COEX_STATUS_QUERY
	.comm	_MCI_GPM_COEX_B_BT_BITMAP,4,2   ## @MCI_GPM_COEX_B_BT_BITMAP
	.comm	_MCI_GPM,4,2                    ## @MCI_GPM
	.no_dead_strip	_ar9003_mci_send_coex_bt_status_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_mci_send_coex_bt_status_query
_ar9003_mci_send_coex_bt_status_query:  ; @ar9003_mci_send_coex_bt_status_query
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _MCI_BT_SLEEP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCI_BT_SLEEP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh6:
	adrp	x8, _MCI_GPM_COEX_QUERY_BT_ALL_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCI_GPM_COEX_QUERY_BT_ALL_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MCI_GPM_COEX_QUERY_BT_TOPOLOGY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MCI_GPM_COEX_QUERY_BT_TOPOLOGY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w22, w8, w2
Lloh12:
	adrp	x8, _MCI_GPM_COEX_AGENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCI_GPM_COEX_AGENT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MCI_GPM_COEX_STATUS_QUERY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MCI_GPM_COEX_STATUS_QUERY@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x23, sp, #8
	add	x0, sp, #8
	bl	_MCI_GPM_SET_TYPE_OPCODE
Lloh18:
	adrp	x8, _MCI_GPM_COEX_B_BT_BITMAP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MCI_GPM_COEX_B_BT_BITMAP@GOTPAGEOFF]
Lloh20:
	ldrsw	x8, [x8]
	str	w21, [x23, x8, lsl #2]
Lloh21:
	adrp	x8, _MCI_GPM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MCI_GPM@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w21, #1
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w4, #16
	mov	x5, x20
	mov	w6, #1
	bl	_ar9003_mci_send_message
	cmp	w0, #0
	ccmp	w22, #0, #4, eq
	b.eq	LBB0_3
; %bb.2:
	str	w21, [x19, #8]
LBB0_3:
	cbz	w22, LBB0_5
; %bb.4:
	str	wzr, [x19, #12]
LBB0_5:
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_BT_SLEEP,8,3               ; @MCI_BT_SLEEP
	.comm	_MCI_GPM_COEX_QUERY_BT_ALL_INFO,4,2 ; @MCI_GPM_COEX_QUERY_BT_ALL_INFO
	.comm	_MCI_GPM_COEX_QUERY_BT_TOPOLOGY,4,2 ; @MCI_GPM_COEX_QUERY_BT_TOPOLOGY
	.comm	_MCI_GPM_COEX_AGENT,4,2         ; @MCI_GPM_COEX_AGENT
	.comm	_MCI_GPM_COEX_STATUS_QUERY,4,2  ; @MCI_GPM_COEX_STATUS_QUERY
	.comm	_MCI_GPM_COEX_B_BT_BITMAP,4,2   ; @MCI_GPM_COEX_B_BT_BITMAP
	.comm	_MCI_GPM,4,2                    ; @MCI_GPM
	.no_dead_strip	_ar9003_mci_send_coex_bt_status_query
.subsections_via_symbols
