	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_mci_send_coex_version_query
_ar9003_mci_send_coex_version_query:    ## @ar9003_mci_send_coex_version_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	cmpq	$0, 8(%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MCI_BT_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movl	%esi, %r14d
	movq	_MCI_GPM_COEX_AGENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCI_GPM_COEX_VERSION_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_MCI_GPM_SET_TYPE_OPCODE
	movq	_MCI_GPM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r15, %rcx
	movl	$16, %r8d
	movl	%r14d, %r9d
	callq	_ar9003_mci_send_message
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_BT_SLEEP,8,3               ## @MCI_BT_SLEEP
	.comm	_MCI_GPM_COEX_AGENT,4,2         ## @MCI_GPM_COEX_AGENT
	.comm	_MCI_GPM_COEX_VERSION_QUERY,4,2 ## @MCI_GPM_COEX_VERSION_QUERY
	.comm	_MCI_GPM,4,2                    ## @MCI_GPM
	.no_dead_strip	_ar9003_mci_send_coex_version_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_version_query
_ar9003_mci_send_coex_version_query:    ; @ar9003_mci_send_coex_version_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
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, #8]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x20, x0
	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_3
; %bb.2:
	mov	x19, x1
Lloh6:
	adrp	x8, _MCI_GPM_COEX_AGENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCI_GPM_COEX_AGENT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MCI_GPM_COEX_VERSION_QUERY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MCI_GPM_COEX_VERSION_QUERY@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_MCI_GPM_SET_TYPE_OPCODE
Lloh12:
	adrp	x8, _MCI_GPM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MCI_GPM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #0
	mov	w4, #16
	mov	x5, x19
	mov	w6, #1
	bl	_ar9003_mci_send_message
LBB0_3:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_BT_SLEEP,8,3               ; @MCI_BT_SLEEP
	.comm	_MCI_GPM_COEX_AGENT,4,2         ; @MCI_GPM_COEX_AGENT
	.comm	_MCI_GPM_COEX_VERSION_QUERY,4,2 ; @MCI_GPM_COEX_VERSION_QUERY
	.comm	_MCI_GPM,4,2                    ; @MCI_GPM
	.no_dead_strip	_ar9003_mci_send_coex_version_query
.subsections_via_symbols
