	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function epu_dma_done_irq
_epu_dma_done_irq:                      ## @epu_dma_done_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	%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	%rsi, %r14
	movq	%rdi, %r13
	movq	16(%rsi), %rax
	movq	(%rax), %rcx
	movq	_CX18_INVALID_TASK_HANDLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.1:
	movq	16(%rax), %r15
	testq	%r15, %r15
	je	LBB0_10
## %bb.2:
	movq	_CX18_MAX_MDL_ACKS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	jg	LBB0_10
## %bb.3:
	shlq	$2, %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movq	8(%rax), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r12), %rsi
	addq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_cx18_readl
	movq	8(%r14), %rcx
	movq	%rbx, %rdx
	andq	$-8, %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$8, %ebx
	movslq	%ebx, %rbx
	cmpq	%r15, %rbx
	jb	LBB0_5
LBB0_6:
	movq	_CX18_F_EWO_MB_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r15d
	testl	%eax, (%r14)
	jne	LBB0_9
	jmp	LBB0_8
LBB0_10:
	movq	_CX18_F_EWO_MB_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, %r15d
	testl	%eax, (%r14)
	jne	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mb_ack_irq
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX18_INVALID_TASK_HANDLE,8,3   ## @CX18_INVALID_TASK_HANDLE
	.comm	_CX18_MAX_MDL_ACKS,8,3          ## @CX18_MAX_MDL_ACKS
	.comm	_CX18_F_EWO_MB_STALE,4,2        ## @CX18_F_EWO_MB_STALE
	.no_dead_strip	_epu_dma_done_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function epu_dma_done_irq
_epu_dma_done_irq:                      ; @epu_dma_done_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	ldr	x10, [x8]
	ldr	x9, [x8, #16]
Lloh0:
	adrp	x11, _CX18_INVALID_TASK_HANDLE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _CX18_INVALID_TASK_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
Lloh3:
	adrp	x12, _CX18_MAX_MDL_ACKS@GOTPAGE
Lloh4:
	ldr	x12, [x12, _CX18_MAX_MDL_ACKS@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x9, #0, #4, ne
	ccmp	x9, x12, #0, ne
	b.le	LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _CX18_F_EWO_MB_STALE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CX18_F_EWO_MB_STALE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	w21, #-1
	tst	w9, w8
	b.ne	LBB0_7
	b	LBB0_6
LBB0_2:
	lsl	x21, x9, #2
	cbz	x21, LBB0_5
; %bb.3:
	mov	x23, #0
	ldr	x22, [x8, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x9, x23, x22
	add	x1, x9, x8
	mov	x0, x20
	bl	_cx18_readl
	ldr	x8, [x19, #8]
	and	x9, x23, #0xfffffffffffffff8
	str	x0, [x8, x9]
	add	w8, w23, #8
	sxtw	x23, w8
	cmp	x23, x21
	b.lo	LBB0_4
LBB0_5:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _CX18_F_EWO_MB_STALE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CX18_F_EWO_MB_STALE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mov	w21, #1
	tst	w9, w8
	b.ne	LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_mb_ack_irq
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CX18_INVALID_TASK_HANDLE,8,3   ; @CX18_INVALID_TASK_HANDLE
	.comm	_CX18_MAX_MDL_ACKS,8,3          ; @CX18_MAX_MDL_ACKS
	.comm	_CX18_F_EWO_MB_STALE,4,2        ; @CX18_F_EWO_MB_STALE
	.no_dead_strip	_epu_dma_done_irq
.subsections_via_symbols
