	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proc_pending_irqs
_proc_pending_irqs:                     ## @proc_pending_irqs
	.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	_HTC_MAILBOX@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	movl	$1, %r14d
	shll	%cl, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_ATH6KL_DBG_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	cmpl	$0, 24(%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_17
## %bb.1:
	movl	28(%r12), %edi
	movq	_HOST_INT_STATUS_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r12), %r15
	movq	_HIF_RD_SYNC_BYTE_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdx
	movl	$16, %ecx
	callq	_hif_read_write_sync
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.2:
	leaq	24(%r12), %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ath6kl_dump_registers
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_trace_ath6kl_sdio_irq
	movl	24(%r12), %r15d
	andl	8(%r12), %r15d
	testl	%r14d, %r15d
	je	LBB0_9
## %bb.3:
	movl	%r14d, %eax
	notl	%eax
	andl	%eax, %r15d
	testl	%r14d, 12(%r12)
	je	LBB0_9
## %bb.4:
	movq	16(%r12), %rax
	movslq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	movl	$0, -52(%rbp)
	movq	_ATH6KL_DBG_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	movq	(%r12), %rdi
	leaq	-52(%rbp), %rdx
	movl	%ebx, %esi
	callq	_ath6kl_htc_rxmsg_pending_handler
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	cmpl	$0, -52(%rbp)
	jne	LBB0_10
## %bb.7:
	movq	(%r12), %rax
	movq	$0, (%rax)
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_ath6kl_err
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testl	%r15d, %r15d
	je	LBB0_17
LBB0_10:
	movq	_ATH6KL_DBG_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	movq	_HOST_INT_STATUS_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_MS
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_ath6kl_hif_proc_cpu_intr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
LBB0_12:
	movq	_HOST_INT_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_MS
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	_ath6kl_hif_proc_err_intr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
LBB0_14:
	movq	_HOST_INT_STATUS_COUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_MS
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movq	%r12, %rdi
	callq	_ath6kl_hif_proc_counter_intr
LBB0_16:
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_17:
	movl	$1, (%rbx)
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	_ATH6KL_DBG_IRQ@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	jmp	LBB0_22
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$1, %edx
LBB0_22:
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_ath6kl_dbg
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTC_MAILBOX,4,2                ## @HTC_MAILBOX
	.comm	_ATH6KL_DBG_IRQ,4,2             ## @ATH6KL_DBG_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"proc_pending_irqs: (dev: 0x%p)\n"

	.comm	_HOST_INT_STATUS_ADDRESS,4,2    ## @HOST_INT_STATUS_ADDRESS
	.comm	_HIF_RD_SYNC_BYTE_INC,4,2       ## @HIF_RD_SYNC_BYTE_INC
L_.str.1:                               ## @.str.1
	.asciz	"lookAhead is zero!\n"

L_.str.2:                               ## @.str.2
	.asciz	"pending mailbox msg, lk_ahd: 0x%X\n"

L_.str.3:                               ## @.str.3
	.asciz	"valid interrupt source(s) for other interrupts: 0x%x\n"

	.comm	_HOST_INT_STATUS_CPU,4,2        ## @HOST_INT_STATUS_CPU
	.comm	_HOST_INT_STATUS_ERROR,4,2      ## @HOST_INT_STATUS_ERROR
	.comm	_HOST_INT_STATUS_COUNTER,4,2    ## @HOST_INT_STATUS_COUNTER
L_.str.4:                               ## @.str.4
	.asciz	"bypassing irq status re-check, forcing done\n"

L_.str.5:                               ## @.str.5
	.asciz	"proc_pending_irqs: (done:%d, status=%d\n"

	.no_dead_strip	_proc_pending_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proc_pending_irqs
_proc_pending_irqs:                     ; @proc_pending_irqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _HTC_MAILBOX@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HTC_MAILBOX@GOTPAGEOFF]
	ldr	w27, [x26]
	mov	w25, #1
Lloh2:
	adrp	x24, _ATH6KL_DBG_IRQ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ATH6KL_DBG_IRQ@GOTPAGEOFF]
	ldr	w0, [x24]
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
	mov	x21, x20
	ldr	w8, [x21, #24]!
	cbz	w8, LBB0_17
; %bb.1:
Lloh6:
	adrp	x8, _HOST_INT_STATUS_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOST_INT_STATUS_ADDRESS@GOTPAGEOFF]
	ldr	w0, [x20, #28]
Lloh8:
	ldr	w1, [x8]
	add	x23, x20, #8
Lloh9:
	adrp	x8, _HIF_RD_SYNC_BYTE_INC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HIF_RD_SYNC_BYTE_INC@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x2, x23
	mov	w3, #16
	bl	_hif_read_write_sync
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.2:
	lsl	w22, w25, w27
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_ath6kl_dump_registers
	mov	x0, x21
	mov	w1, #4
	bl	_trace_ath6kl_sdio_irq
	ldr	w8, [x20, #8]
	ldr	w9, [x20, #24]
	and	w21, w9, w8
	tst	w21, w22
	b.eq	LBB0_9
; %bb.3:
	bic	w21, w21, w22
	ldr	w8, [x20, #12]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.4:
	ldr	x8, [x20, #16]
	ldrsw	x9, [x26]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	cbz	w0, LBB0_8
; %bb.5:
	mov	x22, x0
	str	wzr, [sp, #28]
	ldr	w0, [x24]
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ath6kl_dbg
	ldr	x0, [x20]
	add	x2, sp, #28
	mov	x1, x22
	bl	_ath6kl_htc_rxmsg_pending_handler
	cbnz	w0, LBB0_16
; %bb.6:
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_10
; %bb.7:
	ldr	x8, [x20]
	str	xzr, [x8]
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ath6kl_err
LBB0_9:
	cbz	w21, LBB0_17
LBB0_10:
	ldr	w0, [x24]
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ath6kl_dbg
Lloh18:
	adrp	x8, _HOST_INT_STATUS_CPU@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HOST_INT_STATUS_CPU@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_MS
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_ath6kl_hif_proc_cpu_intr
	mov	x22, x0
	cbnz	w0, LBB0_18
LBB0_12:
Lloh21:
	adrp	x8, _HOST_INT_STATUS_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HOST_INT_STATUS_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_MS
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_ath6kl_hif_proc_err_intr
	mov	x22, x0
	cbnz	w0, LBB0_18
LBB0_14:
Lloh24:
	adrp	x8, _HOST_INT_STATUS_COUNTER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HOST_INT_STATUS_COUNTER@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_MS
	cbz	x0, LBB0_22
; %bb.15:
	mov	x0, x20
	bl	_ath6kl_hif_proc_counter_intr
LBB0_16:
	mov	x22, x0
	b	LBB0_18
LBB0_17:
	mov	w22, #0
	str	w25, [x19]
LBB0_18:
	ldr	w0, [x24]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ath6kl_dbg
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	w8, [x19]
	b	LBB0_21
LBB0_20:
	mov	w8, #1
	str	w8, [x19]
LBB0_21:
	ldr	w0, [x24]
	stp	x8, x22, [sp]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_ath6kl_dbg
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	mov	w22, #0
	b	LBB0_18
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_HTC_MAILBOX,4,2                ; @HTC_MAILBOX
	.comm	_ATH6KL_DBG_IRQ,4,2             ; @ATH6KL_DBG_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"proc_pending_irqs: (dev: 0x%p)\n"

	.comm	_HOST_INT_STATUS_ADDRESS,4,2    ; @HOST_INT_STATUS_ADDRESS
	.comm	_HIF_RD_SYNC_BYTE_INC,4,2       ; @HIF_RD_SYNC_BYTE_INC
l_.str.1:                               ; @.str.1
	.asciz	"lookAhead is zero!\n"

l_.str.2:                               ; @.str.2
	.asciz	"pending mailbox msg, lk_ahd: 0x%X\n"

l_.str.3:                               ; @.str.3
	.asciz	"valid interrupt source(s) for other interrupts: 0x%x\n"

	.comm	_HOST_INT_STATUS_CPU,4,2        ; @HOST_INT_STATUS_CPU
	.comm	_HOST_INT_STATUS_ERROR,4,2      ; @HOST_INT_STATUS_ERROR
	.comm	_HOST_INT_STATUS_COUNTER,4,2    ; @HOST_INT_STATUS_COUNTER
l_.str.4:                               ; @.str.4
	.asciz	"bypassing irq status re-check, forcing done\n"

l_.str.5:                               ; @.str.5
	.asciz	"proc_pending_irqs: (done:%d, status=%d\n"

	.no_dead_strip	_proc_pending_irqs
.subsections_via_symbols
