	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_driver_qp_init             ## -- Begin function rvt_driver_qp_init
	.p2align	4, 0x90
_rvt_driver_qp_init:                    ## @rvt_driver_qp_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$0, 12(%rdi)
	je	LBB0_16
## %bb.1:
	movq	%rdi, %r15
	cmpl	$0, 36(%rdi)
	je	LBB0_15
## %bb.2:
	cmpl	$0, 32(%r15)
	je	LBB0_15
## %bb.3:
	cmpl	$0, 28(%r15)
	je	LBB0_15
## %bb.4:
	cmpl	$0, 24(%r15)
	je	LBB0_15
## %bb.5:
	cmpl	$0, 20(%r15)
	je	LBB0_15
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	subl	(%rbx), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	16(%r15), %edx
	movl	$24, %edi
	callq	_kzalloc_node
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movl	12(%r15), %edi
	movl	%edi, (%rax)
	callq	_ilog2
	movq	(%r15), %rcx
	movl	%eax, 20(%rcx)
	movl	(%rcx), %edi
	movl	(%r12), %edx
	movl	16(%r15), %ecx
	movl	$24, %esi
	callq	_kmalloc_array_node
	movq	(%r15), %rdi
	movq	%rax, 8(%rdi)
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	cmpl	$0, (%rdi)
	jle	LBB0_12
## %bb.9:
	movq	16(%rax), %rcx
	movq	%rcx, 16(%rsp)
	movups	(%rax), %xmm0
	movups	%xmm0, (%rsp)
	xorl	%edi, %edi
	callq	_RCU_INIT_POINTER
	movq	(%r15), %rdi
	cmpl	$2, (%rdi)
	jl	LBB0_12
## %bb.10:
	movl	$1, %r12d
	movl	$24, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	movq	16(%rax,%rbx), %rcx
	movq	%rcx, 16(%rsp)
	movups	(%rax,%rbx), %xmm0
	movups	%xmm0, (%rsp)
	xorl	%edi, %edi
	callq	_RCU_INIT_POINTER
	incq	%r12
	movq	(%r15), %rdi
	movslq	(%rdi), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jl	LBB0_11
LBB0_12:
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	(%r15), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	callq	_init_qpn_table
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	callq	_kfree
	movq	(%r15), %rdi
	addq	$4, %rdi
	callq	_free_qpn_table
	movq	(%r15), %rdi
LBB0_14:
	callq	_kfree
	jmp	LBB0_18
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_17:
	subl	(%rax), %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%r14d, %r14d
	subl	(%rbx), %r14d
	jmp	LBB0_18
LBB0_20:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_init
	xorl	%r14d, %r14d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	_rvt_driver_qp_init             ; -- Begin function rvt_driver_qp_init
	.p2align	2
_rvt_driver_qp_init:                    ; @rvt_driver_qp_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, [x0, #12]
	cbz	w8, LBB0_15
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #36]
	cbz	w8, LBB0_15
; %bb.2:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_15
; %bb.3:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_15
; %bb.4:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_15
; %bb.5:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_15
; %bb.6:
Lloh0:
	adrp	x22, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ENOMEM@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh2:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w2, [x19, #16]
	mov	w0, #24
	bl	_kzalloc_node
	str	x0, [x19]
	cbz	x0, LBB0_18
; %bb.7:
	ldr	w8, [x19, #12]
	str	w8, [x0]
	mov	x0, x8
	bl	_ilog2
	ldr	x8, [x19]
	str	w0, [x8, #20]
	ldr	w0, [x8]
	ldr	w2, [x21]
	ldr	w3, [x19, #16]
	mov	w1, #24
	bl	_kmalloc_array_node
	mov	x8, x0
	ldr	x0, [x19]
	str	x8, [x0, #8]
	cbz	x8, LBB0_14
; %bb.8:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.9:
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	str	q0, [sp]
	mov	x0, sp
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	ldr	x0, [x19]
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.10:
	mov	w21, #1
	mov	w22, #24
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	add	x8, x8, x22
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	str	q0, [sp]
	mov	x0, sp
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	add	x21, x21, #1
	ldr	x0, [x19]
	ldrsw	x8, [x0]
	add	x22, x22, #24
	cmp	x21, x8
	b.lt	LBB0_11
LBB0_12:
	add	x0, x0, #16
	bl	_spin_lock_init
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	bl	_init_qpn_table
	cbz	x0, LBB0_19
; %bb.13:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_free_qpn_table
	ldr	x0, [x19]
LBB0_14:
	neg	w19, w20
	bl	_kfree
	b	LBB0_17
LBB0_15:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
LBB0_16:
	neg	w19, w8
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
	ldr	w8, [x22]
	b	LBB0_16
LBB0_19:
	add	x0, x19, #8
	bl	_spin_lock_init
	mov	w19, #0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
