	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_mci_sync_bt_state
_ar9003_mci_sync_bt_state:              ## @ar9003_mci_sync_bt_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MCI_STATE_REMOTE_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ar9003_mci_state
	cmpq	%rax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rax, (%rbx)
LBB0_2:
	movq	_MCI_BT_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ar9003_mci_send_coex_version_query
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ar9003_mci_send_coex_wlan_channels
	cmpl	$1, 8(%rbx)
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ar9003_mci_send_coex_halt_bt_gpm ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_STATE_REMOTE_SLEEP,4,2     ## @MCI_STATE_REMOTE_SLEEP
	.comm	_MCI_BT_SLEEP,8,3               ## @MCI_BT_SLEEP
	.no_dead_strip	_ar9003_mci_sync_bt_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_mci_sync_bt_state
_ar9003_mci_sync_bt_state:              ; @ar9003_mci_sync_bt_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MCI_STATE_REMOTE_SLEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI_STATE_REMOTE_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ar9003_mci_state
	ldr	x8, [x19]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.1:
	str	x0, [x19]
LBB0_2:
Lloh3:
	adrp	x8, _MCI_BT_SLEEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCI_BT_SLEEP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_ar9003_mci_send_coex_version_query
	mov	x0, x19
	mov	w1, #1
	bl	_ar9003_mci_send_coex_wlan_channels
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ar9003_mci_send_coex_halt_bt_gpm
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_STATE_REMOTE_SLEEP,4,2     ; @MCI_STATE_REMOTE_SLEEP
	.comm	_MCI_BT_SLEEP,8,3               ; @MCI_BT_SLEEP
	.no_dead_strip	_ar9003_mci_sync_bt_state
.subsections_via_symbols
