	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_intr
_sdma_intr:                             ## @sdma_intr
	.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	%rdi, %r15
	movq	_SDMAARM_INTR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_READ4
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_WRITE4
	movq	_SDMA_N_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movl	%ebx, %edx
	xorl	%ebx, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %edi
	movl	$1, %esi
	callq	*8(%r12)
	movq	_SDMAARM_HSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_WRITE4
	movq	_SDMA_N_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	$1, %r13d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	btl	%ebx, %edx
	jae	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %r14
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movq	8(%r14,%rcx), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rcx, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rcx
	movl	(%rcx,%r15,4), %edx
	movq	_BD_DONE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, (%rcx,%r15,4)
	movq	_BD_RROR@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%r12), %eax
	jmp	LBB0_8
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMAARM_INTR,4,2               ## @SDMAARM_INTR
	.comm	_SDMA_N_CHANNELS,4,2            ## @SDMA_N_CHANNELS
	.comm	_BD_DONE,4,2                    ## @BD_DONE
	.comm	_BD_RROR,4,2                    ## @BD_RROR
	.comm	_SDMAARM_HSTART,4,2             ## @SDMAARM_HSTART
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"sDMA error"

	.no_dead_strip	_sdma_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_intr
_sdma_intr:                             ; @sdma_intr
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _SDMAARM_INTR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SDMAARM_INTR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_READ4
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_WRITE4
Lloh2:
	adrp	x8, _SDMA_N_CHANNELS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDMA_N_CHANNELS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x24, #0
	mov	w11, #1
Lloh5:
	adrp	x26, _BD_DONE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _BD_DONE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _BD_RROR@GOTPAGE
Lloh8:
	ldr	x27, [x27, _BD_RROR@GOTPAGEOFF]
Lloh9:
	adrp	x21, l_str@PAGE
Lloh10:
	add	x21, x21, l_str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28, #8]
	ldr	w0, [x28, #4]
	mov	w1, #1
	blr	x8
Lloh11:
	adrp	x8, _SDMAARM_HSTART@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDMAARM_HSTART@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_WRITE4
Lloh14:
	adrp	x8, _SDMA_N_CHANNELS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SDMA_N_CHANNELS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mov	w11, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	lsl	w22, w11, w24
	tst	w22, w20
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19]
	add	x10, x9, x24, lsl #4
	ldr	x28, [x10, #8]
	cbz	x28, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	add	x25, x9, x24, lsl #4
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x25]
	lsl	x10, x23, #2
	ldr	w11, [x9, x10]
	ldr	w12, [x26]
	orr	w11, w11, w12
	str	w11, [x9, x10]
	ldr	w9, [x27]
	tst	w9, w11
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x21
	bl	_puts
	ldr	w8, [x28]
	b	LBB0_8
LBB0_11:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMAARM_INTR,4,2               ; @SDMAARM_INTR
	.comm	_SDMA_N_CHANNELS,4,2            ; @SDMA_N_CHANNELS
	.comm	_BD_DONE,4,2                    ; @BD_DONE
	.comm	_BD_RROR,4,2                    ; @BD_RROR
	.comm	_SDMAARM_HSTART,4,2             ; @SDMAARM_HSTART
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"sDMA error"

	.no_dead_strip	_sdma_intr
.subsections_via_symbols
