	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_rq_inline_buf
_alloc_rq_inline_buf:                   ## @alloc_rq_inline_buf
	.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
	movslq	(%rsi), %r12
	movl	16(%rdi), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r13
	leal	(,%r12,4), %esi
	movl	(%rbx), %edx
	movl	%r15d, %edi
	callq	_kcalloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	cmpl	$2, %r15d
	jl	LBB0_10
## %bb.3:
	leaq	-1(%r15), %r9
	leaq	-2(%r15), %rcx
	movl	%r9d, %r8d
	andl	$3, %r8d
	movl	$1, %esi
	cmpq	$3, %rcx
	jb	LBB0_7
## %bb.4:
	andq	$-4, %r9
	movq	%r12, %r10
	shlq	$4, %r10
	leaq	(%rax,%r10), %rcx
	leaq	(%r12,%r12,2), %rdx
	leaq	(%rax,%rdx,4), %rdx
	leaq	(%rax,%r12,4), %rbx
	leaq	(%rax,%r12,8), %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, 8(%r13,%rsi,8)
	movq	%rdi, 16(%r13,%rsi,8)
	movq	%rdx, 24(%r13,%rsi,8)
	movq	%rcx, 32(%r13,%rsi,8)
	addq	$4, %rsi
	addq	%r10, %rcx
	addq	%r10, %rdx
	addq	%r10, %rbx
	addq	%r10, %rdi
	cmpq	%rsi, %r9
	jne	LBB0_5
## %bb.6:
	incq	%rsi
LBB0_7:
	testq	%r8, %r8
	je	LBB0_10
## %bb.8:
	leaq	(,%rsi,8), %rcx
	addq	%r13, %rcx
	imulq	%r12, %rsi
	leaq	(%rax,%rsi,4), %rax
	shlq	$2, %r12
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rcx,%rdx,8)
	incq	%rdx
	addq	%r12, %rax
	cmpq	%rdx, %r8
	jne	LBB0_9
LBB0_10:
	movq	%r13, 8(%r14)
	movl	%r15d, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	%r13, %rdi
	callq	_kfree
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	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	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_rq_inline_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_rq_inline_buf
_alloc_rq_inline_buf:                   ; @alloc_rq_inline_buf
	.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	x19, x0
	ldrsw	x22, [x1]
	ldr	w20, [x0, #16]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	lsl	w1, w22, #2
	ldr	w2, [x23]
	mov	x0, x20
	bl	_kcalloc
	str	x0, [x21]
	cbz	x0, LBB0_5
; %bb.2:
	cmp	w20, #2
	b.lt	LBB0_12
; %bb.3:
	sub	x10, x20, #1
	lsl	x8, x22, #2
	cmp	x10, #4
	b.hs	LBB0_7
; %bb.4:
	mov	w9, #1
	b	LBB0_10
LBB0_5:
	mov	x0, x21
	bl	_kfree
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_7:
	and	x11, x10, #0xfffffffffffffffc
	orr	x9, x11, #0x1
	add	x13, x22, x22, lsl #1
	lsl	x12, x22, #4
	lsl	x13, x13, #2
	add	x14, x21, #16
	lsl	x15, x22, #3
	mov	x16, x11
	mov	x17, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x17, x8
	add	x2, x17, x15
	add	x3, x17, x13
	stp	x1, x2, [x14, #-8]
	add	x17, x17, x12
	stp	x3, x17, [x14, #8]
	add	x14, x14, #32
	subs	x16, x16, #4
	b.ne	LBB0_8
; %bb.9:
	cmp	x10, x11
	b.eq	LBB0_12
LBB0_10:
	mul	x10, x9, x22
	add	x10, x0, x10, lsl #2
	add	x11, x21, x9, lsl #3
	sub	x9, x20, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	x10, [x11], #8
	add	x10, x10, x8
	subs	x9, x9, #1
	b.ne	LBB0_11
LBB0_12:
	mov	w0, #0
	str	x21, [x19, #8]
	str	w20, [x19]
LBB0_13:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_rq_inline_buf
.subsections_via_symbols
