	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axi_dmac_alloc_desc
_axi_dmac_alloc_desc:                   ## @axi_dmac_alloc_desc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_sg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, %edx
	callq	_struct_size
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.2:
	movq	8(%rax), %rcx
	movl	%r14d, %r10d
	cmpl	$8, %r14d
	jb	LBB0_3
## %bb.4:
	movq	_AXI_DMAC_SG_UNUSED@GOTPCREL(%rip), %r8
	leaq	4(%r8), %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_7
## %bb.5:
	leaq	(%rcx,%r10,4), %rdx
	cmpq	_AXI_DMAC_SG_UNUSED@GOTPCREL(%rip), %rdx
	jbe	LBB0_7
LBB0_3:
	xorl	%esi, %esi
LBB0_13:
	movq	%rsi, %r8
	notq	%r8
	addq	%r10, %r8
	movq	%r10, %rdx
	andq	$3, %rdx
	je	LBB0_16
## %bb.14:
	movq	_AXI_DMAC_SG_UNUSED@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	%edi, (%rcx,%rsi,4)
	incq	%rsi
	decq	%rdx
	jne	LBB0_15
LBB0_16:
	cmpq	$3, %r8
	jb	LBB0_19
## %bb.17:
	movq	_AXI_DMAC_SG_UNUSED@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %edi
	movl	%edi, (%rcx,%rsi,4)
	movl	(%rdx), %edi
	movl	%edi, 4(%rcx,%rsi,4)
	movl	(%rdx), %edi
	movl	%edi, 8(%rcx,%rsi,4)
	movl	(%rdx), %edi
	movl	%edi, 12(%rcx,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r10
	jne	LBB0_18
	jmp	LBB0_19
LBB0_7:
	movl	%r10d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.8:
	movq	%r9, %rbx
	andq	$-2, %rbx
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rdi,4)
	movdqu	%xmm0, 16(%rcx,%rdi,4)
	movdqu	%xmm0, 32(%rcx,%rdi,4)
	movdqu	%xmm0, 48(%rcx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rbx
	jne	LBB0_9
## %bb.10:
	testb	$1, %r9b
	je	LBB0_12
LBB0_11:
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rcx,%rdi,4)
	movdqu	%xmm0, 16(%rcx,%rdi,4)
LBB0_12:
	cmpq	%r10, %rsi
	jne	LBB0_13
LBB0_19:
	movl	%r14d, (%rax)
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_21:
	xorl	%edi, %edi
	testb	$1, %r9b
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_sg,4,2                         ## @sg
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.comm	_AXI_DMAC_SG_UNUSED,4,2         ## @AXI_DMAC_SG_UNUSED
	.no_dead_strip	_axi_dmac_alloc_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axi_dmac_alloc_desc
_axi_dmac_alloc_desc:                   ; @axi_dmac_alloc_desc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _sg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sg@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x0
	bl	_struct_size
Lloh3:
	adrp	x8, _GFP_NOWAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	cbz	w19, LBB0_10
; %bb.2:
	ldr	x10, [x0, #8]
	mov	w9, w19
Lloh6:
	adrp	x8, _AXI_DMAC_SG_UNUSED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AXI_DMAC_SG_UNUSED@GOTPAGEOFF]
	cmp	w19, #16
	b.lo	LBB0_7
; %bb.3:
	add	x11, x10, x9, lsl #2
	add	x12, x8, #4
	cmp	x10, x12
	ccmp	x11, x8, #0, lo
	b.hi	LBB0_7
; %bb.4:
	and	x11, x9, #0xfffffff0
	ld1r.4s	{ v0 }, [x8]
	add	x12, x10, #32
	mov	x13, x11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_5
; %bb.6:
	cmp	x11, x9
	b.ne	LBB0_8
	b	LBB0_10
LBB0_7:
	mov	x11, #0
LBB0_8:
	add	x10, x10, x11, lsl #2
	sub	x9, x9, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	str	w19, [x0]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_sg,4,2                         ; @sg
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.comm	_AXI_DMAC_SG_UNUSED,4,2         ; @AXI_DMAC_SG_UNUSED
	.no_dead_strip	_axi_dmac_alloc_desc
.subsections_via_symbols
