	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function alloc_device_memory
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_alloc_device_memory:                   ## @alloc_device_memory
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movl	8(%r12), %ebx
	movl	%ebx, %edi
	callq	___ffs
	movl	%eax, %ecx
	movl	4(%r14), %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rax), %r15d
	decl	%r15d
	sarl	%cl, %r15d
	movl	%r15d, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	movq	_HL_MEM_CONTIGUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.4:
	movl	12(%r12), %edi
	movl	%r13d, %esi
	callq	_gen_pool_alloc
	testl	%eax, %eax
	jne	LBB0_2
## %bb.5:
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_44
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %r12
	movq	_VM_TYPE_PHYS_PACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, 36(%r12)
	movl	%r15d, (%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 4(%r12)
	movl	%r13d, 8(%r12)
	movl	(%r14), %eax
	movl	%eax, 12(%r12)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r12)
	movl	(%rbx), %edx
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_kvmalloc_array
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpl	$0, 16(%r12)
	movl	%r13d, -84(%rbp)                ## 4-byte Spill
	je	LBB0_23
## %bb.9:
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.11:
	movl	%r15d, %ecx
	cmpl	$8, %r15d
	jae	LBB0_13
## %bb.12:
	xorl	%edx, %edx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_20
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_33
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_32
LBB0_23:
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.24:
	movl	%r15d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_gen_pool_alloc
	movq	24(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_26
## %bb.35:                              ##   in Loop: Header=BB0_25 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_25
## %bb.36:
	movl	%r15d, %ebx
	jmp	LBB0_37
LBB0_10:
	xorl	%ebx, %ebx
LBB0_37:
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_38
LBB0_13:
	movl	%ecx, %edx
	andl	$-8, %edx
	movd	-64(%rbp), %xmm0                ## 4-byte Folded Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm3                ## xmm3 = xmm0[0,0,0,0]
	movd	-52(%rbp), %xmm0                ## 4-byte Folded Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_14
## %bb.15:
	movq	%rbx, %rdi
	andq	$-2, %rdi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [0,1,2,3]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm5            ## xmm5 = [12,12,12,12]
	movdqa	LCPI0_4(%rip), %xmm6            ## xmm6 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm2, %xmm7
	paddd	%xmm8, %xmm7
	movdqa	%xmm3, %xmm1
	pmulld	%xmm2, %xmm1
	pmulld	%xmm3, %xmm7
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm7
	movdqu	%xmm1, (%rax,%rsi,4)
	movdqu	%xmm7, 16(%rax,%rsi,4)
	movdqa	%xmm2, %xmm1
	paddd	%xmm4, %xmm1
	movdqa	%xmm2, %xmm7
	paddd	%xmm5, %xmm7
	pmulld	%xmm3, %xmm1
	pmulld	%xmm3, %xmm7
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm7
	movdqu	%xmm1, 32(%rax,%rsi,4)
	movdqu	%xmm7, 48(%rax,%rsi,4)
	addq	$16, %rsi
	paddd	%xmm6, %xmm2
	addq	$-2, %rdi
	jne	LBB0_16
## %bb.17:
	testb	$1, %bl
	je	LBB0_19
LBB0_18:
	movdqa	%xmm3, %xmm1
	pmulld	%xmm2, %xmm1
	paddd	LCPI0_1(%rip), %xmm2
	pmulld	%xmm3, %xmm2
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rax,%rsi,4)
	movdqu	%xmm2, 16(%rax,%rsi,4)
LBB0_19:
	xorl	%ebx, %ebx
	cmpq	%rcx, %rdx
	je	LBB0_38
LBB0_20:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%edi, %esi
	imull	%edx, %esi
	addl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, (%rax,%rdx,4)
	incq	%rdx
	addl	%edi, %esi
	cmpq	%rdx, %rcx
	jne	LBB0_21
## %bb.22:
	xorl	%ebx, %ebx
LBB0_38:
	movq	%r8, %r13
	leaq	20(%r8), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	24(%r13), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_spin_unlock
	testl	%r13d, %r13d
	js	LBB0_39
## %bb.40:
	testl	%r15d, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_43
## %bb.41:
	leaq	16(%r14), %rbx
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_kref_get
	decl	%r15d
	jne	LBB0_42
LBB0_43:
	movl	%r13d, 32(%r12)
	movl	8(%r12), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_atomic64_add
	movl	8(%r12), %edi
	movq	%r14, %rsi
	callq	_atomic64_add
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_44
LBB0_39:
	movq	_EFAULT@GOTPCREL(%rip), %r14
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_27
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	leaq	L_.str.1(%rip), %rsi
LBB0_27:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %edi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	cmpl	$0, 16(%r12)
	movq	%r12, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_31
## %bb.28:
	testl	%ebx, %ebx
	jle	LBB0_31
## %bb.29:
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %edi
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%r12d, %edx
	callq	_gen_pool_free
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_30
LBB0_31:
	movq	24(%r14), %rdi
	callq	_kvfree
	movl	-84(%rbp), %r13d                ## 4-byte Reload
	movq	%r14, %r12
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
LBB0_32:
	movq	%r12, %rdi
	callq	_kfree
LBB0_33:
	negl	%ebx
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_44
## %bb.34:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_gen_pool_free
LBB0_44:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [0,1,2,3]
	xorl	%esi, %esi
	testb	$1, %bl
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_HL_MEM_CONTIGUOUS,4,2          ## @HL_MEM_CONTIGUOUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate %llu huge contiguous pages\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_VM_TYPE_PHYS_PACK,4,2          ## @VM_TYPE_PHYS_PACK
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate device memory (out of memory)\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get handle for page\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_alloc_device_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function alloc_device_memory
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_alloc_device_memory:                   ; @alloc_device_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x27, x1
	mov	x25, x0
	ldr	x19, [x0, #8]
	ldr	w23, [x19, #8]
	mov	x0, x23
	bl	___ffs
	ldp	w9, w8, [x27]
	add	w8, w23, w8
	sub	w8, w8, #1
	asr	w26, w8, w0
	lsl	w20, w26, w0
Lloh0:
	adrp	x8, _HL_MEM_CONTIGUOUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HL_MEM_CONTIGUOUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w28, w8, w9
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x19, #12]
	mov	x1, x20
	bl	_gen_pool_alloc
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	str	x26, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_38
LBB0_3:
	mov	w21, #0
LBB0_4:
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
Lloh8:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x22, x0
Lloh10:
	adrp	x8, _VM_TYPE_PHYS_PACK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VM_TYPE_PHYS_PACK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x25, #4]
	stp	w9, w8, [x0, #36]
	stp	w26, w23, [x0]
	ldr	w8, [x27]
	stp	w20, w8, [x0, #8]
	str	w28, [x0, #16]
	ldr	w2, [x24]
	mov	x0, x26
	mov	w1, #4
	bl	_kvmalloc_array
	str	x0, [x22, #24]
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_12
; %bb.7:
	cmp	w26, #1
	str	w28, [sp, #20]                  ; 4-byte Folded Spill
	b.lt	LBB0_23
; %bb.8:
	cmp	w26, #16
	b.hs	LBB0_17
; %bb.9:
	mov	x8, #0
	b	LBB0_20
LBB0_10:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w25, [x8]
	neg	w22, w25
	cbnz	w28, LBB0_37
	b	LBB0_38
LBB0_11:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w25, [x8]
	b	LBB0_36
LBB0_12:
	cmp	w26, #1
	b.lt	LBB0_22
; %bb.13:
	mov	x24, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	mov	x1, x23
	bl	_gen_pool_alloc
	ldr	x8, [x22, #24]
	str	w0, [x8, x24, lsl #2]
	cbz	w0, LBB0_30
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #1
	cmp	x26, x24
	b.ne	LBB0_14
; %bb.16:
	str	w28, [sp, #20]                  ; 4-byte Folded Spill
	mov	x24, x26
	b	LBB0_24
LBB0_17:
	and	x8, x26, #0xfffffff0
	dup.4s	v0, w23
	dup.4s	v1, w21
Lloh19:
	adrp	x9, lCPI0_0@PAGE
Lloh20:
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	add	x9, x0, #32
	movi.4s	v3, #4
	movi.4s	v4, #8
	movi.4s	v5, #12
	movi.4s	v6, #16
	mov	x10, x8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v7, v2, v3
	add.4s	v16, v2, v4
	add.4s	v17, v2, v5
	mov.16b	v18, v1
	mla.4s	v18, v0, v2
	mov.16b	v19, v1
	mla.4s	v19, v0, v7
	mov.16b	v7, v1
	mla.4s	v7, v0, v16
	mov.16b	v16, v1
	mla.4s	v16, v0, v17
	stp	q18, q19, [x9, #-32]
	stp	q7, q16, [x9], #64
	add.4s	v2, v2, v6
	subs	x10, x10, #16
	b.ne	LBB0_18
; %bb.19:
	cmp	x8, x26
	b.eq	LBB0_23
LBB0_20:
	madd	w9, w23, w8, w21
	add	x10, x0, x8, lsl #2
	sub	x8, x26, x8
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	str	w9, [x10], #4
	add	w9, w9, w23
	subs	x8, x8, #1
	b.ne	LBB0_21
	b	LBB0_23
LBB0_22:
	str	w28, [sp, #20]                  ; 4-byte Folded Spill
LBB0_23:
	mov	w24, #0
LBB0_24:
	add	x28, x19, #20
	mov	x0, x28
	bl	_spin_lock
	add	x0, x19, #24
Lloh21:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	mov	x1, x22
	mov	w2, #1
	mov	w3, #0
	bl	_idr_alloc
	mov	x27, x0
	mov	x0, x28
	bl	_spin_unlock
	tbnz	w27, #31, LBB0_29
; %bb.25:
	cmp	w26, #1
	b.lt	LBB0_28
; %bb.26:
	add	x20, x19, #16
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_kref_get
	subs	w26, w26, #1
	b.ne	LBB0_27
LBB0_28:
	str	w27, [x22, #32]
	ldr	w0, [x22, #8]
	mov	x1, x25
	bl	_atomic64_add
	ldr	w0, [x22, #8]
	mov	x1, x19
	bl	_atomic64_add
	mov	w22, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w27, [x8]
	b	LBB0_38
LBB0_29:
Lloh24:
	adrp	x25, _EFAULT@GOTPAGE
Lloh25:
	ldr	x25, [x25, _EFAULT@GOTPAGEOFF]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	ldr	w28, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_31
LBB0_30:
Lloh28:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_31:
	ldr	w0, [x19, #4]
	bl	_dev_err
	ldr	w25, [x25]
	ldr	w8, [x22, #16]
	cbnz	w8, LBB0_35
; %bb.32:
	cmp	w24, #1
	b.lt	LBB0_35
; %bb.33:
	mov	x26, #0
	mov	w8, w24
	lsl	x24, x8, #2
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	ldr	x8, [x22, #24]
	ldr	w1, [x8, x26]
	mov	x2, x23
	bl	_gen_pool_free
	add	x26, x26, #4
	cmp	x24, x26
	b.ne	LBB0_34
LBB0_35:
	ldr	x0, [x22, #24]
	bl	_kvfree
LBB0_36:
	mov	x0, x22
	bl	_kfree
	neg	w22, w25
	cbz	w28, LBB0_38
LBB0_37:
	ldr	w0, [x19, #12]
	mov	x1, x21
	mov	x2, x20
	bl	_gen_pool_free
LBB0_38:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_HL_MEM_CONTIGUOUS,4,2          ; @HL_MEM_CONTIGUOUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate %llu huge contiguous pages\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_VM_TYPE_PHYS_PACK,4,2          ; @VM_TYPE_PHYS_PACK
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate device memory (out of memory)\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get handle for page\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_alloc_device_memory
.subsections_via_symbols
