	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_hop
_alloc_hop:                             ## @alloc_hop
	.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	%rdi, %r14
	movq	8(%rdi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movl	(%r13), %edi
	movl	8(%r13), %esi
	callq	_gen_pool_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movl	8(%r13), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	%r12, 32(%r15)
	movq	%rax, 24(%r15)
	movq	%r14, 16(%r15)
	movq	$0, 8(%r15)
	movl	(%r14), %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_hash_add
	jmp	LBB0_8
LBB0_2:
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_5:
	movl	(%r13), %edi
	movl	8(%r13), %edx
	movq	%r12, %rsi
	callq	_gen_pool_free
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
LBB0_7:
	movq	_ULLONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ULLONG_MAX,8,3                 ## @ULLONG_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate page\n"

	.no_dead_strip	_alloc_hop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_hop
_alloc_hop:                             ; @alloc_hop
	.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, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w0, [x23]
	ldr	w1, [x23, #8]
	bl	_gen_pool_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	w0, [x23, #8]
	ldr	w1, [x21]
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	stp	x0, x22, [x19, #24]
	stp	xzr, x20, [x19, #8]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x21
	bl	_hash_add
	b	LBB0_8
LBB0_4:
	ldr	w0, [x23, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_5:
	ldr	w0, [x23]
	ldr	w2, [x23, #8]
	mov	x1, x22
	bl	_gen_pool_free
LBB0_6:
	mov	x0, x19
	bl	_kfree
LBB0_7:
Lloh4:
	adrp	x8, _ULLONG_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ULLONG_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x21, [x8]
LBB0_8:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ULLONG_MAX,8,3                 ; @ULLONG_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate page\n"

	.no_dead_strip	_alloc_hop
.subsections_via_symbols
