	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __td_dma_done_ack
___td_dma_done_ack:                     ## @__td_dma_done_ack
	.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	%rdi, %r15
	movslq	(%rdi), %r14
	movq	%r14, %rbx
	shlq	$4, %rbx
	movq	%rdi, %r13
	subq	%rbx, %r13
	addq	$-32, %r13
	negq	%rbx
	callq	_chan2dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	movq	%r13, %rcx
	callq	_dev_dbg
	movq	_TIMBDMA_ISR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	-32(%r15,%rbx), %rdi
	callq	_ioread32
	movl	$1, %r15d
	movl	$1, %edi
	movl	%r14d, %ecx
	shll	%cl, %edi
	andl	%eax, %edi
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rsi
	addq	(%r13), %rsi
	callq	_iowrite32
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checking irq: %d, td: %p\n"

	.comm	_TIMBDMA_ISR,8,3                ## @TIMBDMA_ISR
	.no_dead_strip	___td_dma_done_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __td_dma_done_ack
___td_dma_done_ack:                     ; @__td_dma_done_ack
	.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
	ldr	w20, [x0]
	sub	x21, x0, w20, sxtw #4
	sub	x19, x21, #32
	bl	_chan2dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_dev_dbg
	ldur	x8, [x21, #-32]
Lloh2:
	adrp	x21, _TIMBDMA_ISR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TIMBDMA_ISR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	mov	w8, #1
	lsl	w8, w8, w20
	ands	w0, w0, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_iowrite32
	mov	w0, #1
LBB0_2:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checking irq: %d, td: %p\n"

	.comm	_TIMBDMA_ISR,8,3                ; @TIMBDMA_ISR
	.no_dead_strip	___td_dma_done_ack
.subsections_via_symbols
