	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axi_dmac_fill_linear_sg
_axi_dmac_fill_linear_sg:               ## @axi_dmac_fill_linear_sg
	.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	%r9, %rbx
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %esi
	movl	%r8d, %edi
	callq	_DIV_ROUND_UP
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_DIV_ROUND_UP
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.1:
	decl	%eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	4(%rcx), %eax
	incl	%eax
	xorl	%ecx, %ecx
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rdx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	cmpl	%r13d, (%rdx)
	setne	%dil
	movl	%r12d, (%rbx,%rdi,4)
	movl	%esi, 8(%rbx)
	movl	$1, 12(%rbx)
	addq	$16, %rbx
	addl	%esi, %r12d
	incl	%ecx
	cmpl	%r15d, %ecx
	je	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	%r14d, %esi
	cmpl	%r14d, %eax
	jae	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	4(%rbx), %rdi
	cmpl	%r13d, (%rdx)
	cmoveq	%rbx, %rdi
	movl	%r12d, (%rdi)
	movl	%eax, 8(%rbx)
	movl	$1, 12(%rbx)
	addq	$16, %rbx
	addl	%eax, %r12d
	subl	%eax, %esi
	cmpl	%eax, %esi
	ja	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.no_dead_strip	_axi_dmac_fill_linear_sg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axi_dmac_fill_linear_sg
_axi_dmac_fill_linear_sg:               ; @axi_dmac_fill_linear_sg
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w1, [x0]
	mov	x0, x4
	bl	_DIV_ROUND_UP
	mov	x1, x0
	mov	x0, x20
	bl	_DIV_ROUND_UP
	cbz	w21, LBB0_5
; %bb.1:
	mov	w8, #0
	sub	w9, w0, #1
	ldr	w10, [x24, #4]
	orr	w9, w9, w10
	add	w9, w9, #1
Lloh0:
	adrp	x10, _DMA_DEV_TO_MEM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DMA_DEV_TO_MEM@GOTPAGEOFF]
	mov	w11, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x10]
	cmp	w13, w23
	cset	w13, ne
	str	w22, [x19, w13, uxtw #2]
	stp	w12, w11, [x19, #8]
	add	x19, x19, #16
	add	w22, w12, w22
	add	w8, w8, #1
	cmp	w8, w21
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x12, x20
	cmp	w9, w20
	b.hs	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x10]
	add	x14, x19, #4
	cmp	w13, w23
	csel	x13, x19, x14, eq
	str	w22, [x13]
	stp	w9, w11, [x19, #8]
	add	x19, x19, #16
	add	w22, w22, w9
	sub	w12, w12, w9
	cmp	w12, w9
	b.hi	LBB0_4
	b	LBB0_2
LBB0_5:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.no_dead_strip	_axi_dmac_fill_linear_sg
.subsections_via_symbols
