	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_queue_init                 ## -- Begin function rxe_queue_init
	.p2align	4, 0x90
_rxe_queue_init:                        ## @rxe_queue_init
	.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
	cmpl	$0, (%rsi)
	js	LBB0_7
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, 32(%rax)
	movl	%r15d, (%rax)
	xorl	%eax, %eax
	callq	_cache_line_size
	cmpl	%r15d, %eax
	jbe	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_cache_line_size
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %edi
	callq	_roundup_pow_of_two
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_order_base_2
	movl	%eax, 24(%r12)
	movl	(%r14), %edi
	incl	%edi
	callq	_roundup_pow_of_two
	movl	%eax, %ebx
	leal	-1(%rbx), %r13d
	movl	%r13d, 4(%r12)
	imull	%r15d, %ebx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_vmalloc_user
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	24(%r12), %ecx
	movl	%ecx, 4(%rax)
	movl	4(%r12), %ecx
	movl	%ecx, (%rax)
	movq	%rbx, 8(%r12)
	movl	%r13d, (%r14)
	jmp	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movq	%r12, %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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rxe_queue_init                 ; -- Begin function rxe_queue_init
	.p2align	2
_rxe_queue_init:                        ; @rxe_queue_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x1]
	tbnz	w8, #31, LBB0_7
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	str	x22, [x20, #32]
	str	w21, [x20]
	bl	_cache_line_size
	cmp	w0, w21
	b.ls	LBB0_4
; %bb.3:
	bl	_cache_line_size
	mov	x21, x0
LBB0_4:
	mov	x0, x21
	bl	_roundup_pow_of_two
	mov	x21, x0
	bl	_order_base_2
	str	w0, [x20, #24]
	ldr	w8, [x19]
	add	w0, w8, #1
	bl	_roundup_pow_of_two
	sub	w22, w0, #1
	str	w22, [x20, #4]
	mul	w8, w0, w21
	add	x21, x8, #4
	mov	x0, x21
	bl	_vmalloc_user
	str	x0, [x20, #16]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x20, #24]
	ldr	w9, [x20, #4]
	stp	w9, w8, [x0]
	str	x21, [x20, #8]
	str	w22, [x19]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_kfree
LBB0_7:
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
