	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_mbox_proc_cpu_intr
_ath10k_sdio_mbox_proc_cpu_intr:        ## @ath10k_sdio_mbox_proc_cpu_intr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ath10k_sdio_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rax
	movq	16(%r15), %rdx
	movl	(%rax), %ecx
	movl	(%rdx), %ebx
	andl	%ecx, %ebx
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ecx
	movl	%ecx, (%rax)
	movq	_MBOX_CPU_INT_STATUS_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_sdio_writesb32
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_5
LBB0_3:
	xorl	%r12d, %r12d
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_MBOX_CPU_STATUS_ENABLE_ASSERT_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath10k_err
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_queue_work
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CPU interrupt status is zero\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_MBOX_CPU_INT_STATUS_ADDRESS,4,2 ## @MBOX_CPU_INT_STATUS_ADDRESS
L_.str.1:                               ## @.str.1
	.asciz	"unable to write to cpu interrupt status address: %d\n"

	.comm	_MBOX_CPU_STATUS_ENABLE_ASSERT_MASK,4,2 ## @MBOX_CPU_STATUS_ENABLE_ASSERT_MASK
L_.str.2:                               ## @.str.2
	.asciz	"firmware crashed!\n"

	.no_dead_strip	_ath10k_sdio_mbox_proc_cpu_intr
.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_proc_cpu_intr
_ath10k_sdio_mbox_proc_cpu_intr:        ; @ath10k_sdio_mbox_proc_cpu_intr
	.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	x19, x0
	bl	_ath10k_sdio_priv
	mov	x20, x0
	bl	_mutex_lock
	ldp	x8, x10, [x20, #8]
	ldr	w9, [x8]
	ldr	w10, [x10]
	ands	w21, w10, w9
	b.eq	LBB0_3
; %bb.1:
	eor	w9, w21, w9
	str	w9, [x8]
Lloh0:
	adrp	x8, _MBOX_CPU_INT_STATUS_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBOX_CPU_INT_STATUS_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_sdio_writesb32
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
	str	x22, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x20
	bl	_mutex_unlock
Lloh10:
	adrp	x8, _MBOX_CPU_STATUS_ENABLE_ASSERT_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBOX_CPU_STATUS_ENABLE_ASSERT_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
LBB0_6:
	mov	x0, x22
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CPU interrupt status is zero\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_MBOX_CPU_INT_STATUS_ADDRESS,4,2 ; @MBOX_CPU_INT_STATUS_ADDRESS
l_.str.1:                               ; @.str.1
	.asciz	"unable to write to cpu interrupt status address: %d\n"

	.comm	_MBOX_CPU_STATUS_ENABLE_ASSERT_MASK,4,2 ; @MBOX_CPU_STATUS_ENABLE_ASSERT_MASK
l_.str.2:                               ; @.str.2
	.asciz	"firmware crashed!\n"

	.no_dead_strip	_ath10k_sdio_mbox_proc_cpu_intr
.subsections_via_symbols
