	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function savage_dma_init
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_savage_dma_init:                       ## @savage_dma_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	40(%rdi), %rax
	movl	(%rax), %eax
	movq	_SAVAGE_DMA_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$2, %ecx
	cltd
	idivl	%ecx
	movl	%eax, (%rdi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.2:
	movq	%rax, %rdi
	movl	$16, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SET_AGE
	movq	32(%r15), %rdi
	incq	%r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, -16(%rdi,%rbx)
	movl	(%r15), %eax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jb	LBB0_3
LBB0_4:
	leaq	24(%r15), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SET_AGE
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAVAGE_DMA_PAGE_SIZE,4,2       ## @SAVAGE_DMA_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_savage_dma_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function savage_dma_init
_savage_dma_init:                       ; @savage_dma_init
	.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
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _SAVAGE_DMA_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SAVAGE_DMA_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	sdiv	w0, w8, w9
	str	w0, [x19]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kmalloc_array
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x0, x20
	add	x0, x8, #16
	mov	w1, #0
	mov	w2, #0
	bl	_SET_AGE
	ldr	x0, [x19, #32]
	add	x21, x21, #1
	add	x8, x0, x20
	stp	xzr, xzr, [x8]
	ldr	w8, [x19]
	add	x20, x20, #24
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_4:
	add	x0, x19, #24
	mov	w1, #0
	mov	w2, #0
	bl	_SET_AGE
	mov	w0, #0
	stp	xzr, xzr, [x19, #8]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SAVAGE_DMA_PAGE_SIZE,4,2       ; @SAVAGE_DMA_PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_savage_dma_init
.subsections_via_symbols
