	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_qpn_table
_init_qpn_table:                        ## @init_qpn_table
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	cmpl	4(%rdi), %eax
	jge	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_3:
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	20(%rsi), %rdi
	callq	_spin_lock_init
	movl	16(%r12), %eax
	movl	%eax, 16(%r14)
	movl	8(%r12), %eax
	movb	12(%r12), %cl
	shll	%cl, %eax
	movl	%eax, (%r14)
	movl	4(%r12), %r8d
	movq	_RVT_BITS_PER_PAGE@GOTPCREL(%rip), %rcx
	movl	%r8d, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, %r13d
	movl	%eax, 4(%r14)
	movq	_RVT_BITS_PER_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edx
	callq	_rvt_pr_info
	movl	4(%r12), %r15d
	cmpl	(%r12), %r15d
	jle	LBB0_4
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movslq	%r13d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	andl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	decl	%r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	cmpl	(%r12), %r15d
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	testl	%esi, %esi
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_get_map_page
	movl	(%r13), %esi
	testl	%esi, %esi
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_set_bit
	incl	%ebx
	movq	_RVT_BITS_PER_PAGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	4(%r14)
	addq	$4, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RVT_BITS_PER_PAGE,4,2          ## @RVT_BITS_PER_PAGE
	.comm	_RVT_BITS_PER_PAGE_MASK,4,2     ## @RVT_BITS_PER_PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reserving QPNs from 0x%x to 0x%x for non-verbs use\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_init_qpn_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_qpn_table
_init_qpn_table:                        ; @init_qpn_table
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #20
	bl	_spin_lock_init
	ldr	w8, [x20, #16]
	str	w8, [x19, #16]
	ldp	w8, w9, [x20, #8]
	lsl	w8, w8, w9
	str	w8, [x19]
Lloh2:
	adrp	x23, _RVT_BITS_PER_PAGE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RVT_BITS_PER_PAGE@GOTPAGEOFF]
	ldr	w8, [x23]
	ldp	w3, w22, [x20]
	sdiv	w21, w22, w8
	str	w21, [x19, #4]
Lloh4:
	adrp	x8, _RVT_BITS_PER_PAGE_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RVT_BITS_PER_PAGE_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w24, [x8]
	ldr	x25, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_rvt_pr_info
	ldp	w9, w8, [x20]
	cmp	w8, w9
	b.le	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x21, x25, w21, sxtw #2
	and	w22, w24, w22
	sub	w24, w8, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20]
	add	w24, w24, #1
	cmp	w24, w8
	b.ge	LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	cbnz	w1, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_get_map_page
	ldr	w1, [x21]
	cbz	w1, LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_set_bit
	add	w22, w22, #1
	ldr	w8, [x23]
	cmp	w22, w8
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w22, #0
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	add	x21, x21, #4
	b	LBB0_7
LBB0_12:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RVT_BITS_PER_PAGE,4,2          ; @RVT_BITS_PER_PAGE
	.comm	_RVT_BITS_PER_PAGE_MASK,4,2     ; @RVT_BITS_PER_PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reserving QPNs from 0x%x to 0x%x for non-verbs use\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_init_qpn_table
.subsections_via_symbols
