	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phys_pager_alloc
_phys_pager_alloc:                      ## @phys_pager_alloc
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%rdi, %r12
	addl	%esi, %ecx
	addl	%eax, %ecx
	movl	%ecx, %edi
	callq	_OFF_TO_IDX
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_12
## %bb.3:
	movq	_phys_pager_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_phys_pager_object_list@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_vm_pager_object_lookup
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%rax, %rbx
	cmpq	(%rax), %r15
	jle	LBB0_10
## %bb.9:
	movq	%r15, (%rbx)
	jmp	LBB0_10
LBB0_12:
	movq	_OBJT_PHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_vm_object_allocate
	movq	%rax, %rbx
	movq	_OBJ_POPULATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vm_object_set_flag
	jmp	LBB0_13
LBB0_4:
	movq	_phys_pager_mtx@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	_OBJT_PHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_vm_object_allocate
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_mtx_lock
	movq	_phys_pager_object_list@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_vm_pager_object_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rbx
	cmpq	(%rax), %r15
	jle	LBB0_11
## %bb.6:
	movq	%r15, (%rbx)
	jmp	LBB0_11
LBB0_7:
	movq	%r12, 8(%r14)
	movq	_OBJ_POPULATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vm_object_set_flag
	movq	_pager_object_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_phys_pager_object_list@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r14, %rbx
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	_phys_pager_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	%r14, %rdi
	callq	_vm_object_deallocate
LBB0_13:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_phys_pager_mtx,4,2             ## @phys_pager_mtx
	.comm	_phys_pager_object_list,4,2     ## @phys_pager_object_list
	.comm	_OBJT_PHYS,4,2                  ## @OBJT_PHYS
	.comm	_OBJ_POPULATE,4,2               ## @OBJ_POPULATE
	.comm	_pager_object_list,4,2          ## @pager_object_list
	.no_dead_strip	_phys_pager_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phys_pager_alloc
_phys_pager_alloc:                      ; @phys_pager_alloc
	.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
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_13
LBB0_2:
	mov	x22, x0
	add	w9, w3, w1
	add	w0, w9, w8
	bl	_OFF_TO_IDX
	mov	x21, x0
	cbz	x22, LBB0_6
; %bb.3:
Lloh3:
	adrp	x0, _phys_pager_mtx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _phys_pager_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh5:
	adrp	x0, _phys_pager_object_list@GOTPAGE
Lloh6:
	ldr	x0, [x0, _phys_pager_object_list@GOTPAGEOFF]
	mov	x1, x22
	bl	_vm_pager_object_lookup
	cbz	x0, LBB0_7
; %bb.4:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x21, x8
	b.le	LBB0_11
; %bb.5:
	mov	x20, #0
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _OBJT_PHYS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OBJT_PHYS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_vm_object_allocate
	mov	x19, x0
Lloh10:
	adrp	x8, _OBJ_POPULATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OBJ_POPULATE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_vm_object_set_flag
	b	LBB0_13
LBB0_7:
Lloh13:
	adrp	x19, _phys_pager_mtx@GOTPAGE
Lloh14:
	ldr	x19, [x19, _phys_pager_mtx@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_unlock
Lloh15:
	adrp	x8, _OBJT_PHYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OBJT_PHYS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_vm_object_allocate
	mov	x20, x0
	mov	x0, x19
	bl	_mtx_lock
Lloh18:
	adrp	x0, _phys_pager_object_list@GOTPAGE
Lloh19:
	ldr	x0, [x0, _phys_pager_object_list@GOTPAGEOFF]
	mov	x1, x22
	bl	_vm_pager_object_lookup
	cbz	x0, LBB0_10
; %bb.8:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x21, x8
	b.le	LBB0_12
LBB0_9:
	str	x21, [x19]
	b	LBB0_12
LBB0_10:
	str	x22, [x20, #8]
Lloh20:
	adrp	x8, _OBJ_POPULATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OBJ_POPULATE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vm_object_set_flag
Lloh23:
	adrp	x8, _pager_object_list@GOTPAGE
Lloh24:
	ldr	x8, [x8, _pager_object_list@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x0, _phys_pager_object_list@GOTPAGE
Lloh27:
	ldr	x0, [x0, _phys_pager_object_list@GOTPAGEOFF]
	mov	x1, x20
	bl	_TAILQ_INSERT_TAIL
	mov	x19, x20
LBB0_11:
	mov	x20, #0
LBB0_12:
Lloh28:
	adrp	x0, _phys_pager_mtx@GOTPAGE
Lloh29:
	ldr	x0, [x0, _phys_pager_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	mov	x0, x20
	bl	_vm_object_deallocate
LBB0_13:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_phys_pager_mtx,4,2             ; @phys_pager_mtx
	.comm	_phys_pager_object_list,4,2     ; @phys_pager_object_list
	.comm	_OBJT_PHYS,4,2                  ; @OBJT_PHYS
	.comm	_OBJ_POPULATE,4,2               ; @OBJ_POPULATE
	.comm	_pager_object_list,4,2          ; @pager_object_list
	.no_dead_strip	_phys_pager_alloc
.subsections_via_symbols
