	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coh901318_lli_fill_single      ## -- Begin function coh901318_lli_fill_single
	.p2align	4, 0x90
_coh901318_lli_fill_single:             ## @coh901318_lli_fill_single
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %rax
	movl	24(%rbp), %esi
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	movq	%r8, %r12
	jmp	LBB0_2
LBB0_7:
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rcx
	movq	%r8, %rdi
	cmpl	%esi, (%rcx)
	je	LBB0_2
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	movl	$0, %ecx
	cmovneq	%rcx, %r13
	addq	%r13, %r12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	subl	%r15d, %r14d
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rax)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_DMA_PACKET_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	%ecx, %esi
	orl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movl	%esi, (%rax)
	movl	(%rbx), %esi
	movl	%esi, %r15d
	shrl	$31, %r15d
	addl	%esi, %r15d
	sarl	%r15d
	addl	%r15d, %esi
	cmpl	%esi, %r14d
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r15d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %r13
	movq	%rdi, 8(%rax)
	movq	%r12, 16(%rax)
	movq	%rdi, %rbx
	movq	%rax, %rdi
	callq	_coh901318_lli_next
	movl	24(%rbp), %ecx
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %rbx
	jmp	LBB0_10
LBB0_11:
	orl	16(%rbp), %r14d
	movl	%r14d, (%rax)
	movq	%rdi, 8(%rax)
	movq	%r12, 16(%rax)
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_DMA_PACKET_SIZE,4,2        ## @MAX_DMA_PACKET_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coh901318_lli_fill_single      ; -- Begin function coh901318_lli_fill_single
	.p2align	2
_coh901318_lli_fill_single:             ; @coh901318_lli_fill_single
	.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	x22, x7
	mov	x19, x6
	mov	x23, x5
	mov	x21, x3
	mov	x20, x2
	mov	x0, x1
Lloh0:
	adrp	x25, _DMA_MEM_TO_DEV@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_MEM_TO_DEV@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w7
	b.ne	LBB0_2
; %bb.1:
	mov	x24, x20
	mov	x20, x4
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _DMA_DEV_TO_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x24, x4
	cmp	w8, w22
	b.ne	LBB0_9
LBB0_3:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_8
; %bb.4:
Lloh5:
	adrp	x26, _MAX_DMA_PACKET_SIZE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MAX_DMA_PACKET_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _DMA_DEV_TO_MEM@GOTPAGE
Lloh8:
	ldr	x27, [x27, _DMA_DEV_TO_MEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
	cmp	w8, w22
	csel	x8, x28, xzr, eq
	add	x20, x8, x20
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	orr	w9, w8, w23
	str	w9, [x0]
	ldr	w9, [x26]
	cmp	w9, #0
	cinc	w10, w9, lt
	asr	w10, w10, #1
	add	w9, w10, w9
	cmp	w21, w9
	csel	w8, w10, w8, lt
	sxtw	x28, w8
	sub	w21, w21, w8
	stp	x24, x20, [x0, #8]
	bl	_coh901318_lli_next
	ldr	w8, [x25]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, x28
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_6
LBB0_8:
	mov	w8, #0
	orr	w9, w21, w19
	str	w9, [x0]
	stp	x24, x20, [x0, #8]
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_10:
	mov	x0, 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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_DMA_PACKET_SIZE,4,2        ; @MAX_DMA_PACKET_SIZE
.subsections_via_symbols
