	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_mbox_read_int_status
_ath10k_sdio_mbox_read_int_status:      ## @ath10k_sdio_mbox_read_int_status
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_ath10k_sdio_priv
	movq	%rax, %r13
	movq	8(%rax), %r14
	movq	16(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ATH10K_HTC_MAILBOX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	$0, (%r15)
	movl	$0, (%r12)
	cmpl	$0, (%r14)
	je	LBB0_7
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_MBOX_HOST_INT_STATUS_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	$16, %ecx
	callq	_ath10k_sdio_read
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	(%r14), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	andl	(%rcx), %eax
	movl	%eax, (%r12)
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %r15
	movl	%edx, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%edx, 4(%rax)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_ATH10K_HTC_MAILBOX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ath10k_warn
	jmp	LBB0_7
LBB0_3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_HTC_MAILBOX_MASK,4,2    ## @ATH10K_HTC_MAILBOX_MASK
	.comm	_MBOX_HOST_INT_STATUS_ADDRESS,4,2 ## @MBOX_HOST_INT_STATUS_ADDRESS
	.comm	_ATH10K_HTC_MAILBOX,8,3         ## @ATH10K_HTC_MAILBOX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdio mbox lookahead is zero\n"

	.no_dead_strip	_ath10k_sdio_mbox_read_int_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_sdio_mbox_read_int_status
_ath10k_sdio_mbox_read_int_status:      ; @ath10k_sdio_mbox_read_int_status
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_ath10k_sdio_priv
	mov	x19, x0
	ldp	x26, x23, [x0, #8]
Lloh0:
	adrp	x8, _ATH10K_HTC_MAILBOX_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_HTC_MAILBOX_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_FIELD_PREP
	mov	x24, x0
	mov	x0, x19
	bl	_mutex_lock
	str	xzr, [x21]
	str	wzr, [x22]
	ldr	w8, [x26]
	cbz	w8, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _MBOX_HOST_INT_STATUS_ADDRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBOX_HOST_INT_STATUS_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	mov	w3, #16
	bl	_ath10k_sdio_read
	mov	x25, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	w8, [x23]
	ldr	w9, [x26]
	and	w8, w9, w8
	str	w8, [x22]
	tst	w8, w24
	b.eq	LBB0_8
; %bb.3:
	bic	w8, w8, w24
	str	w8, [x22]
	ldr	w8, [x23, #4]
	tst	w8, w24
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x23, #8]
Lloh6:
	adrp	x9, _ATH10K_HTC_MAILBOX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH10K_HTC_MAILBOX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	str	x0, [x21]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath10k_warn
LBB0_6:
	mov	w25, #0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x25
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w25, #0
	str	xzr, [x21]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_HTC_MAILBOX_MASK,4,2    ; @ATH10K_HTC_MAILBOX_MASK
	.comm	_MBOX_HOST_INT_STATUS_ADDRESS,4,2 ; @MBOX_HOST_INT_STATUS_ADDRESS
	.comm	_ATH10K_HTC_MAILBOX,8,3         ; @ATH10K_HTC_MAILBOX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdio mbox lookahead is zero\n"

	.no_dead_strip	_ath10k_sdio_mbox_read_int_status
.subsections_via_symbols
