	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elevator_alloc
_elevator_alloc:                        ## @elevator_alloc
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	movl	(%rdi), %edx
	movl	$32, %edi
	callq	_kmalloc_node
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_elevator_put
	xorl	%r13d, %r13d
LBB0_7:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, 24(%r13)
	movq	%r14, 16(%r13)
	leaq	12(%r13), %rdi
	movq	_elv_ktype@GOTPCREL(%rip), %rsi
	callq	_kobject_init
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	_ELV_HASH_ENTRIES@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	shll	$2, %edi
	movl	(%rbx), %esi
	movl	(%r15), %edx
	callq	_kmalloc_node
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.3:
	movq	%rax, %rdi
	callq	_INIT_HLIST_HEAD
	cmpl	$2, (%r12)
	jl	LBB0_7
## %bb.4:
	movl	$1, %r14d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_INIT_HLIST_HEAD
	incq	%r14
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_5
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_elv_ktype,4,2                  ## @elv_ktype
	.comm	_ELV_HASH_ENTRIES,4,2           ## @ELV_HASH_ENTRIES
	.no_dead_strip	_elevator_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elevator_alloc
_elevator_alloc:                        ; @elevator_alloc
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [x0]
	mov	w0, #32
	bl	_kmalloc_node
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_elevator_put
	mov	x19, #0
LBB0_2:
	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
LBB0_3:
	stp	x20, x20, [x19, #16]
	add	x0, x19, #12
Lloh5:
	adrp	x1, _elv_ktype@GOTPAGE
Lloh6:
	ldr	x1, [x1, _elv_ktype@GOTPAGEOFF]
	bl	_kobject_init
	add	x0, x19, #8
	bl	_mutex_init
Lloh7:
	adrp	x22, _ELV_HASH_ENTRIES@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ELV_HASH_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w0, w8, #2
	ldr	w1, [x23]
	ldr	w2, [x21]
	bl	_kmalloc_node
	str	x0, [x19]
	cbz	x0, LBB0_1
; %bb.4:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:
	bl	_INIT_HLIST_HEAD
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.6:
	mov	w20, #1
	mov	w21, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x21
	bl	_INIT_HLIST_HEAD
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x21, x21, #4
	cmp	x20, x8
	b.lt	LBB0_7
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_elv_ktype,4,2                  ; @elv_ktype
	.comm	_ELV_HASH_ENTRIES,4,2           ; @ELV_HASH_ENTRIES
	.no_dead_strip	_elevator_alloc
.subsections_via_symbols
