	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_sdio_mbox_proc_err_intr
_ath10k_sdio_mbox_proc_err_intr:        ## @ath10k_sdio_mbox_proc_err_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_ath10k_sdio_priv
	movq	%rax, %r14
	movq	_ATH10K_DBG_SDIO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movq	(%r14), %rax
	movl	(%rax), %r12d
	andl	$15, %r12d
	je	LBB0_1
## %bb.2:
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movq	_MBOX_ERROR_INT_STATUS_WAKEUP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_GET
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
LBB0_4:
	movq	_MBOX_ERROR_INT_STATUS_RX_UNDERFLOW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_GET
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_6:
	movq	_MBOX_ERROR_INT_STATUS_TX_OVERFLOW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_GET
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_8:
	movl	%r12d, %eax
	notl	%eax
	movq	(%r14), %rcx
	andl	%eax, (%rcx)
	movq	_MBOX_ERROR_INT_STATUS_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_ath10k_sdio_writesb32
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_SDIO,4,2            ## @ATH10K_DBG_SDIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sdio error interrupt\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid error interrupt status: 0x%x\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"sdio error_int_status 0x%x\n"

	.comm	_MBOX_ERROR_INT_STATUS_WAKEUP_MASK,4,2 ## @MBOX_ERROR_INT_STATUS_WAKEUP_MASK
L_.str.3:                               ## @.str.3
	.asciz	"sdio interrupt error wakeup\n"

	.comm	_MBOX_ERROR_INT_STATUS_RX_UNDERFLOW_MASK,4,2 ## @MBOX_ERROR_INT_STATUS_RX_UNDERFLOW_MASK
L_.str.4:                               ## @.str.4
	.asciz	"rx underflow interrupt error\n"

	.comm	_MBOX_ERROR_INT_STATUS_TX_OVERFLOW_MASK,4,2 ## @MBOX_ERROR_INT_STATUS_TX_OVERFLOW_MASK
L_.str.5:                               ## @.str.5
	.asciz	"tx overflow interrupt error\n"

	.comm	_MBOX_ERROR_INT_STATUS_ADDRESS,4,2 ## @MBOX_ERROR_INT_STATUS_ADDRESS
L_.str.6:                               ## @.str.6
	.asciz	"unable to write to error int status address: %d\n"

	.no_dead_strip	_ath10k_sdio_mbox_proc_err_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_err_intr
_ath10k_sdio_mbox_proc_err_intr:        ; @ath10k_sdio_mbox_proc_err_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
Lloh0:
	adrp	x22, _ATH10K_DBG_SDIO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ATH10K_DBG_SDIO@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	ldr	x8, [x20]
	ldr	w8, [x8]
	ands	w21, w8, #0xf
	b.eq	LBB0_9
; %bb.1:
	ldr	w1, [x22]
	str	x21, [sp]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
Lloh6:
	adrp	x8, _MBOX_ERROR_INT_STATUS_WAKEUP_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBOX_ERROR_INT_STATUS_WAKEUP_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_GET
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x22]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
LBB0_3:
Lloh11:
	adrp	x8, _MBOX_ERROR_INT_STATUS_RX_UNDERFLOW_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBOX_ERROR_INT_STATUS_RX_UNDERFLOW_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_GET
	cbz	x0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_5:
Lloh16:
	adrp	x8, _MBOX_ERROR_INT_STATUS_TX_OVERFLOW_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MBOX_ERROR_INT_STATUS_TX_OVERFLOW_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_GET
	cbz	x0, LBB0_7
; %bb.6:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_7:
	ldr	x8, [x20]
	ldr	w9, [x8]
	bic	w9, w9, w21
	str	w9, [x8]
Lloh21:
	adrp	x8, _MBOX_ERROR_INT_STATUS_ADDRESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MBOX_ERROR_INT_STATUS_ADDRESS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_sdio_writesb32
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.8:
	str	x20, [sp]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_10
LBB0_9:
	str	xzr, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh28:
	adrp	x8, _EIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_SDIO,4,2            ; @ATH10K_DBG_SDIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sdio error interrupt\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid error interrupt status: 0x%x\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"sdio error_int_status 0x%x\n"

	.comm	_MBOX_ERROR_INT_STATUS_WAKEUP_MASK,4,2 ; @MBOX_ERROR_INT_STATUS_WAKEUP_MASK
l_.str.3:                               ; @.str.3
	.asciz	"sdio interrupt error wakeup\n"

	.comm	_MBOX_ERROR_INT_STATUS_RX_UNDERFLOW_MASK,4,2 ; @MBOX_ERROR_INT_STATUS_RX_UNDERFLOW_MASK
l_.str.4:                               ; @.str.4
	.asciz	"rx underflow interrupt error\n"

	.comm	_MBOX_ERROR_INT_STATUS_TX_OVERFLOW_MASK,4,2 ; @MBOX_ERROR_INT_STATUS_TX_OVERFLOW_MASK
l_.str.5:                               ; @.str.5
	.asciz	"tx overflow interrupt error\n"

	.comm	_MBOX_ERROR_INT_STATUS_ADDRESS,4,2 ; @MBOX_ERROR_INT_STATUS_ADDRESS
l_.str.6:                               ; @.str.6
	.asciz	"unable to write to error int status address: %d\n"

	.no_dead_strip	_ath10k_sdio_mbox_proc_err_intr
.subsections_via_symbols
