	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_host_alloc_queue
_qp_host_alloc_queue:                   ## @qp_host_alloc_queue
	.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
	movq	_SIZE_MAX@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	subq	%rsi, %rax
	cmpq	%rdi, %rax
	jb	LBB0_6
## %bb.2:
	callq	_DIV_ROUND_UP
	movq	%rax, %rbx
	incq	%rbx
	movq	(%r14), %rax
	addq	$-64, %rax
	shrq	$3, %rax
	cmpq	%rax, %rbx
	ja	LBB0_6
## %bb.4:
	leaq	64(,%rbx,8), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	24(%rax), %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	%rcx, (%rax)
	movl	$1, 24(%rax)
	movq	$0, 56(%rax)
	movq	%rbx, 48(%rax)
	leaq	256(%rax), %rcx
	movq	%rcx, 32(%rax)
	movq	%rax, %rcx
	addq	$264, %rcx                      ## imm = 0x108
	movq	%rcx, 40(%rax)
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_qp_host_alloc_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_host_alloc_queue
_qp_host_alloc_queue:                   ; @qp_host_alloc_queue
	.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
Lloh0:
	adrp	x20, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SIZE_MAX@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x9]
	sub	x8, x8, x1
	cmp	x8, x0
	b.lo	LBB0_2
; %bb.1:
	bl	_DIV_ROUND_UP
	add	x19, x0, #1
	ldr	x8, [x20]
	sub	x8, x8, #64
	cmp	x19, x8, lsr #3
	b.ls	LBB0_4
LBB0_2:
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	lsl	x8, x19, #3
	add	x0, x8, #64
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.5:
	stp	xzr, xzr, [x0, #8]
	mov	w8, #1
	mov	x9, x0
	str	w8, [x9, #24]!
	str	x9, [x0]
	stp	x19, xzr, [x0, #48]
	add	x8, x0, #256
	add	x9, x0, #264
	stp	x8, x9, [x0, #32]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_qp_host_alloc_queue
.subsections_via_symbols
