	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_interrupt
_mwl8k_interrupt:                       ## @mwl8k_interrupt
	.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	%rsi, %r15
	movq	(%rsi), %r14
	movq	_MWL8K_HIU_A2H_INTERRUPT_STATUS@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	32(%r14), %rdi
	callq	_ioread32
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_MWL8K_A2H_INT_TX_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	notl	%eax
	andl	%eax, %ebx
	leaq	52(%r14), %rdi
	callq	_tasklet_schedule
LBB0_4:
	movq	_MWL8K_A2H_INT_RX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	notl	%eax
	andl	%eax, %ebx
	leaq	48(%r14), %rdi
	callq	_tasklet_schedule
LBB0_6:
	movq	_MWL8K_A2H_INT_BA_WATCHDOG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	testl	%ebx, %edi
	je	LBB0_8
## %bb.7:
	notl	%edi
	movq	_MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%r14), %rsi
	callq	_iowrite32
	leaq	44(%r14), %rdi
	callq	_atomic_inc
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %ebx
	leaq	40(%r14), %rsi
	movq	%r15, %rdi
	callq	_ieee80211_queue_work
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:
	movl	%ebx, %edi
	notl	%edi
	movq	(%r12), %rsi
	addq	32(%r14), %rsi
	callq	_iowrite32
LBB0_10:
	movq	_MWL8K_A2H_INT_OPC_DONE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.11:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_complete
LBB0_13:
	movq	_MWL8K_A2H_INT_QUEUE_EMPTY@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.14:
	leaq	16(%r14), %rdi
	callq	_mutex_is_locked
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	cmpq	$0, 8(%r14)
	je	LBB0_18
## %bb.16:
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_mwl8k_tx_start
	jmp	LBB0_18
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_18:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_HIU_A2H_INTERRUPT_STATUS,8,3 ## @MWL8K_HIU_A2H_INTERRUPT_STATUS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_MWL8K_A2H_INT_TX_DONE,4,2      ## @MWL8K_A2H_INT_TX_DONE
	.comm	_MWL8K_A2H_INT_RX_READY,4,2     ## @MWL8K_A2H_INT_RX_READY
	.comm	_MWL8K_A2H_INT_BA_WATCHDOG,4,2  ## @MWL8K_A2H_INT_BA_WATCHDOG
	.comm	_MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK,8,3 ## @MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK
	.comm	_MWL8K_A2H_INT_OPC_DONE,4,2     ## @MWL8K_A2H_INT_OPC_DONE
	.comm	_MWL8K_A2H_INT_QUEUE_EMPTY,4,2  ## @MWL8K_A2H_INT_QUEUE_EMPTY
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mwl8k_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_interrupt
_mwl8k_interrupt:                       ; @mwl8k_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	ldr	x19, [x1]
	ldr	x8, [x19, #32]
Lloh0:
	adrp	x22, _MWL8K_HIU_A2H_INTERRUPT_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MWL8K_HIU_A2H_INTERRUPT_STATUS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread32
	cbz	w0, LBB0_18
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _MWL8K_A2H_INT_TX_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MWL8K_A2H_INT_TX_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	bic	w20, w20, w8
	add	x0, x19, #52
	bl	_tasklet_schedule
LBB0_3:
Lloh5:
	adrp	x8, _MWL8K_A2H_INT_RX_READY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MWL8K_A2H_INT_RX_READY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	bic	w20, w20, w8
	add	x0, x19, #48
	bl	_tasklet_schedule
LBB0_5:
Lloh8:
	adrp	x23, _MWL8K_A2H_INT_BA_WATCHDOG@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MWL8K_A2H_INT_BA_WATCHDOG@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	mvn	w0, w8
	ldr	x8, [x19, #32]
Lloh10:
	adrp	x9, _MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	add	x0, x19, #44
	bl	_atomic_inc
	ldr	w8, [x23]
	bic	w20, w20, w8
	add	x1, x19, #40
	mov	x0, x21
	bl	_ieee80211_queue_work
LBB0_7:
	cbz	w20, LBB0_9
; %bb.8:
	mvn	w0, w20
	ldr	x8, [x19, #32]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_iowrite32
LBB0_9:
Lloh13:
	adrp	x8, _MWL8K_A2H_INT_OPC_DONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MWL8K_A2H_INT_OPC_DONE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.10:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_complete
LBB0_12:
Lloh16:
	adrp	x8, _MWL8K_A2H_INT_QUEUE_EMPTY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MWL8K_A2H_INT_QUEUE_EMPTY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.13:
	add	x0, x19, #16
	bl	_mutex_is_locked
	cbnz	w0, LBB0_17
; %bb.14:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
; %bb.15:
	ldr	x8, [x19]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_mwl8k_tx_start
LBB0_17:
Lloh19:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh21:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MWL8K_HIU_A2H_INTERRUPT_STATUS,8,3 ; @MWL8K_HIU_A2H_INTERRUPT_STATUS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_MWL8K_A2H_INT_TX_DONE,4,2      ; @MWL8K_A2H_INT_TX_DONE
	.comm	_MWL8K_A2H_INT_RX_READY,4,2     ; @MWL8K_A2H_INT_RX_READY
	.comm	_MWL8K_A2H_INT_BA_WATCHDOG,4,2  ; @MWL8K_A2H_INT_BA_WATCHDOG
	.comm	_MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK,8,3 ; @MWL8K_HIU_A2H_INTERRUPT_STATUS_MASK
	.comm	_MWL8K_A2H_INT_OPC_DONE,4,2     ; @MWL8K_A2H_INT_OPC_DONE
	.comm	_MWL8K_A2H_INT_QUEUE_EMPTY,4,2  ; @MWL8K_A2H_INT_QUEUE_EMPTY
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mwl8k_interrupt
.subsections_via_symbols
