	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_handle_irq
_mtk_handle_irq:                        ## @mtk_handle_irq
	.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
	movl	%edi, %r14d
	movq	_MTK_PDMA_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mtk_r32
	movq	_MTK_RX_DONE_INT@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:
	movq	_MTK_PDMA_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mtk_r32
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.2:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_mtk_handle_irq_rx
LBB0_3:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mtk_r32
	movq	_MTK_TX_DONE_INT@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.4:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mtk_r32
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_mtk_handle_irq_tx
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_PDMA_INT_MASK,4,2          ## @MTK_PDMA_INT_MASK
	.comm	_MTK_RX_DONE_INT,4,2            ## @MTK_RX_DONE_INT
	.comm	_MTK_PDMA_INT_STATUS,4,2        ## @MTK_PDMA_INT_STATUS
	.comm	_MTK_TX_DONE_INT,4,2            ## @MTK_TX_DONE_INT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mtk_handle_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_handle_irq
_mtk_handle_irq:                        ; @mtk_handle_irq
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _MTK_PDMA_INT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_PDMA_INT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mtk_r32
Lloh3:
	adrp	x21, _MTK_RX_DONE_INT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MTK_RX_DONE_INT@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _MTK_PDMA_INT_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MTK_PDMA_INT_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_handle_irq_rx
LBB0_3:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_mtk_r32
Lloh8:
	adrp	x21, _MTK_TX_DONE_INT@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MTK_TX_DONE_INT@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_mtk_r32
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_handle_irq_tx
LBB0_6:
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_PDMA_INT_MASK,4,2          ; @MTK_PDMA_INT_MASK
	.comm	_MTK_RX_DONE_INT,4,2            ; @MTK_RX_DONE_INT
	.comm	_MTK_PDMA_INT_STATUS,4,2        ; @MTK_PDMA_INT_STATUS
	.comm	_MTK_TX_DONE_INT,4,2            ; @MTK_TX_DONE_INT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mtk_handle_irq
.subsections_via_symbols
