	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_irq_handler
_dma_irq_handler:                       ## @dma_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	%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	_IRQ_NONE@GOTPCREL(%rip), %r15
	cmpl	$0, (%rsi)
	js	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movl	16(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_vdbg
	movq	_SH_IPR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_edma_shadow0_read_array
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %esi
	movl	$1, %r13d
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_edma_shadow0_read_array
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_8
LBB0_3:
	movq	_SH_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_edma_shadow0_read_array
	movl	%eax, %r12d
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	shll	$5, %r13d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %r13d
	movl	%r14d, %edi
	callq	___ffs
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_BIT
	movl	%eax, %r14d
	notl	%r14d
	andl	%r13d, %r14d
	movl	%ebx, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r15d
	orl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movq	_SH_ICR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%ebx, %edi
	callq	_BIT
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_edma_shadow0_write_array
	movslq	%r15d, %rdi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
	callq	_edma_completion_handler
	jmp	LBB0_6
LBB0_7:
	movq	_SH_IEVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_edma_shadow0_write
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma_irq_handler\n"

	.comm	_SH_IPR,4,2                     ## @SH_IPR
	.comm	_SH_IER,4,2                     ## @SH_IER
	.comm	_SH_ICR,4,2                     ## @SH_ICR
	.comm	_SH_IEVAL,4,2                   ## @SH_IEVAL
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_dma_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_irq_handler
_dma_irq_handler:                       ; @dma_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x1]
	tbnz	w8, #31, LBB0_10
; %bb.1:
	mov	x19, x1
	ldr	w0, [x1, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_vdbg
Lloh2:
	adrp	x20, _SH_IPR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SH_IPR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_edma_shadow0_read_array
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	mov	w20, #0
	b	LBB0_5
LBB0_3:
	ldr	w1, [x20]
	mov	w20, #1
	mov	x0, x19
	mov	w2, #1
	bl	_edma_shadow0_read_array
	cbz	w0, LBB0_10
; %bb.4:
	mov	x21, x0
LBB0_5:
Lloh4:
	adrp	x8, _SH_IER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SH_IER@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_edma_shadow0_read_array
	mov	x22, x0
	lsl	w26, w20, #5
Lloh7:
	adrp	x27, _SH_ICR@GOTPAGE
Lloh8:
	ldr	x27, [x27, _SH_ICR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	bic	w21, w21, w23
	cbz	w21, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	___ffs
	mov	x24, x0
	bl	_BIT
	mov	x23, x0
	mov	x0, x24
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	orr	w28, w24, w26
	ldr	w25, [x27]
	mov	x0, x24
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x20
	bl	_edma_shadow0_write_array
	ldr	x8, [x19, #8]
	add	x0, x8, w28, sxtw #2
	bl	_edma_completion_handler
	b	LBB0_6
LBB0_9:
Lloh9:
	adrp	x8, _SH_IEVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SH_IEVAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_edma_shadow0_write
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma_irq_handler\n"

	.comm	_SH_IPR,4,2                     ; @SH_IPR
	.comm	_SH_IER,4,2                     ; @SH_IER
	.comm	_SH_ICR,4,2                     ; @SH_ICR
	.comm	_SH_IEVAL,4,2                   ; @SH_IEVAL
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_dma_irq_handler
.subsections_via_symbols
