	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_hif_swap_mailbox
_ath10k_sdio_hif_swap_mailbox:          ## @ath10k_sdio_hif_swap_mailbox
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ath10k_sdio_priv
	movq	%rax, %r14
	movq	_hi_acs_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HI_ITEM
	movl	%eax, %edi
	callq	_host_interest_item_address
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ath10k_sdio_hif_diag_read32
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ath10k_warn
	jmp	LBB0_5
LBB0_2:
	movq	_HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ATH10K_DBG_SDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, -28(%rbp)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ath10k_dbg
	movl	$1, (%r14)
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ath10k_dbg
	movl	$0, (%r14)
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hi_acs_flags,4,2               ## @hi_acs_flags
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read hi_acs_flags : %d\n"

	.comm	_HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK,4,2 ## @HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK
	.comm	_ATH10K_DBG_SDIO,4,2            ## @ATH10K_DBG_SDIO
L_.str.1:                               ## @.str.1
	.asciz	"sdio mailbox swap service enabled\n"

L_.str.2:                               ## @.str.2
	.asciz	"sdio mailbox swap service disabled\n"

	.no_dead_strip	_ath10k_sdio_hif_swap_mailbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_sdio_hif_swap_mailbox
_ath10k_sdio_hif_swap_mailbox:          ; @ath10k_sdio_hif_swap_mailbox
	.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	x20, x0
	bl	_ath10k_sdio_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _hi_acs_flags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hi_acs_flags@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_HI_ITEM
	bl	_host_interest_item_address
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_ath10k_sdio_hif_diag_read32
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_ath10k_warn
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x10, _ATH10K_DBG_SDIO@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ATH10K_DBG_SDIO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x10]
	tst	w8, w9
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath10k_dbg
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ath10k_dbg
	str	wzr, [x19]
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_hi_acs_flags,4,2               ; @hi_acs_flags
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read hi_acs_flags : %d\n"

	.comm	_HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK,4,2 ; @HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK
	.comm	_ATH10K_DBG_SDIO,4,2            ; @ATH10K_DBG_SDIO
l_.str.1:                               ; @.str.1
	.asciz	"sdio mailbox swap service enabled\n"

l_.str.2:                               ; @.str.2
	.asciz	"sdio mailbox swap service disabled\n"

	.no_dead_strip	_ath10k_sdio_hif_swap_mailbox
.subsections_via_symbols
