	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7615_irq_handler
_mt7615_irq_handler:                    ## @mt7615_irq_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_MT_INT_SOURCE_CSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_mt76_rr
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_mt76_wr
	movq	_MT76_STATE_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	andl	12(%rbx), %r14d
	movq	_MT_INT_TX_DONE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %r14d
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_mt7615_irq_disable
	leaq	8(%rbx), %rdi
	callq	_napi_schedule
LBB0_4:
	xorl	%edi, %edi
	callq	_MT_INT_RX_DONE
	testl	%r14d, %eax
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	callq	_MT_INT_RX_DONE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt7615_irq_disable
	movq	(%rbx), %rdi
	callq	_napi_schedule
LBB0_6:
	movl	$1, %edi
	callq	_MT_INT_RX_DONE
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%r14d, %eax
	je	LBB0_8
## %bb.7:
	movl	$1, %edi
	callq	_MT_INT_RX_DONE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt7615_irq_disable
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_napi_schedule
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_INT_SOURCE_CSR,4,2          ## @MT_INT_SOURCE_CSR
	.comm	_MT76_STATE_INITIALIZED,4,2     ## @MT76_STATE_INITIALIZED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_MT_INT_TX_DONE_ALL,4,2         ## @MT_INT_TX_DONE_ALL
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mt7615_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7615_irq_handler
_mt7615_irq_handler:                    ; @mt7615_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
Lloh0:
	adrp	x21, _MT_INT_SOURCE_CSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MT_INT_SOURCE_CSR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mt76_rr
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
Lloh2:
	adrp	x8, _MT76_STATE_INITIALIZED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT76_STATE_INITIALIZED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	w0, LBB0_8
; %bb.1:
	ldr	w8, [x19, #12]
	and	w20, w8, w20
Lloh5:
	adrp	x8, _MT_INT_TX_DONE_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MT_INT_TX_DONE_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	tst	w20, w1
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_mt7615_irq_disable
	add	x0, x19, #8
	bl	_napi_schedule
LBB0_3:
	mov	w0, #0
	bl	_MT_INT_RX_DONE
	tst	w0, w20
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #0
	bl	_MT_INT_RX_DONE
	mov	x1, x0
	mov	x0, x19
	bl	_mt7615_irq_disable
	ldr	x0, [x19]
	bl	_napi_schedule
LBB0_5:
	mov	w0, #1
	bl	_MT_INT_RX_DONE
	tst	w0, w20
	b.eq	LBB0_7
; %bb.6:
	mov	w0, #1
	bl	_MT_INT_RX_DONE
	mov	x1, x0
	mov	x0, x19
	bl	_mt7615_irq_disable
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_napi_schedule
LBB0_7:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_INT_SOURCE_CSR,4,2          ; @MT_INT_SOURCE_CSR
	.comm	_MT76_STATE_INITIALIZED,4,2     ; @MT76_STATE_INITIALIZED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_MT_INT_TX_DONE_ALL,4,2         ; @MT_INT_TX_DONE_ALL
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mt7615_irq_handler
.subsections_via_symbols
