	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_object_init_pt            ## -- Begin function pmap_object_init_pt
	.p2align	4, 0x90
_pmap_object_init_pt:                   ## @pmap_object_init_pt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r13d
	movl	%edi, %r14d
	callq	_pmap_accessed_bit
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pmap_modified_bit
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pmap_valid_bit
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pmap_rw_bit
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	(%r15), %rax
	movq	_OBJT_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_OBJT_SG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_NBPDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movl	%r12d, %ecx
	orl	%r13d, %ecx
	testl	%ecx, %eax
	je	LBB0_1
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r14d, %edi
	callq	_pmap_ps_enabled
	testl	%eax, %eax
	je	LBB0_17
## %bb.2:
	movl	%r12d, %edi
	callq	_atop
	leaq	(%rax,%rbx), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vm_object_populate
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vm_page_lookup
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_VM_PAGE_BITS_ALL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movl	16(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %ecx
	movq	_NBPDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testl	%ecx, %eax
	jne	LBB0_17
## %bb.4:
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%r12d, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r12d, %r15d
	jge	LBB0_9
## %bb.5:
	movq	%rax, %r12
	addl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	xorl	%edi, %edi
	movq	_VM_PAGE_BITS_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_VM_PAGE_TO_PHYS
	cmpl	%eax, %r15d
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	16(%rbx), %eax
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %rbx
	addl	(%r12), %r15d
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jl	LBB0_6
LBB0_9:
	movl	%r14d, %edi
	callq	_PMAP_LOCK
	movl	%r14d, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	$1, %edx
	callq	_pmap_cache_bits
	movl	%eax, %r12d
	orl	-64(%rbp), %r12d                ## 4-byte Folded Reload
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_16
## %bb.10:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	orl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	orl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	orl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 8(%rbx)
	xorl	%edi, %edi
	cmpq	$2, %rax
	setge	%dil
	movslq	%r13d, %rsi
	callq	_KASSERT
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_NBPDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %r13d
	addl	%eax, %r12d
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_pmap_allocpde
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %edi
	callq	_PHYS_TO_DMAP
	movq	%rax, %r15
	movl	%r13d, %edi
	callq	_pmap_pde_index
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%r15,%rax,4)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	(%r15,%rax,4), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	orl	%r12d, %esi
	movq	_PG_PS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_PG_U@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_pde_store
	movq	_NBPDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pmap_resident_count_inc
	movq	_pmap_pde_mappings@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_add_long
	jmp	LBB0_15
LBB0_16:
	movl	%r14d, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PMAP_UNLOCK                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_DEVICE,8,3                ## @OBJT_DEVICE
	.comm	_OBJT_SG,8,3                    ## @OBJT_SG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_object_init_pt: non-device object"

	.comm	_NBPDR,4,2                      ## @NBPDR
	.comm	_VM_PAGE_BITS_ALL,8,3           ## @VM_PAGE_BITS_ALL
	.comm	_listq,4,2                      ## @listq
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PG_PS,4,2                      ## @PG_PS
	.comm	_PG_U,4,2                       ## @PG_U
	.comm	_pmap_pde_mappings,4,2          ## @pmap_pde_mappings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_object_init_pt            ; -- Begin function pmap_object_init_pt
	.p2align	2
_pmap_object_init_pt:                   ; @pmap_object_init_pt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x4
	mov	x26, x3
	mov	x27, x2
	mov	x20, x1
	mov	x19, x0
	bl	_pmap_accessed_bit
	mov	x22, x0
	mov	x0, x19
	bl	_pmap_modified_bit
	mov	x23, x0
	mov	x0, x19
	bl	_pmap_valid_bit
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_pmap_rw_bit
	mov	x24, x0
	mov	x0, x27
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x8, [x27]
Lloh0:
	adrp	x9, _OBJT_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OBJT_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _OBJT_SG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OBJT_SG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh8:
	adrp	x21, _NBPDR@GOTPAGE
Lloh9:
	ldr	x21, [x21, _NBPDR@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w8, w8, #1
	orr	w9, w25, w20
	tst	w8, w9
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x0, x19
	bl	_pmap_ps_enabled
	cbz	w0, LBB0_1
; %bb.3:
	mov	x0, x25
	bl	_atop
	add	x2, x0, x26
	mov	x0, x27
	mov	x1, x26
	bl	_vm_object_populate
	cbz	w0, LBB0_1
; %bb.4:
	mov	x0, x27
	mov	x1, x26
	bl	_vm_page_lookup
	mov	x28, x0
	ldr	x8, [x0]
Lloh10:
	adrp	x9, _VM_PAGE_BITS_ALL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VM_PAGE_BITS_ALL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	mov	x1, x28
	bl	_KASSERT
	ldr	w26, [x28, #16]
	mov	x0, x28
	bl	_VM_PAGE_TO_PHYS
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	tst	w8, w0
	b.ne	LBB0_1
; %bb.5:
Lloh13:
	adrp	x8, _listq@GOTPAGE
Lloh14:
	ldr	x8, [x8, _listq@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x28
	bl	_TAILQ_NEXT
Lloh16:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	add	w27, w9, w25
	cmp	w8, w25
	b.ge	LBB0_10
; %bb.6:
	mov	x28, x0
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	add	w25, w8, w9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
Lloh19:
	adrp	x9, _VM_PAGE_BITS_ALL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VM_PAGE_BITS_ALL@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	mov	x1, x28
	bl	_KASSERT
	mov	x0, x28
	bl	_VM_PAGE_TO_PHYS
	cmp	w25, w0
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x28, #16]
	cmp	w26, w8
	b.ne	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh22:
	adrp	x8, _listq@GOTPAGE
Lloh23:
	ldr	x8, [x8, _listq@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x28
	bl	_TAILQ_NEXT
	mov	x28, x0
Lloh25:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	add	w25, w8, w25
	cmp	w25, w27
	b.lt	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_PMAP_LOCK
	mov	x0, x19
	mov	x1, x26
	mov	w2, #1
	bl	_pmap_cache_bits
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	orr	w25, w0, w8
	cmp	w25, w27
	b.ge	LBB0_17
; %bb.11:
	orr	w8, w23, w22
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w8, w8, w9
	orr	w26, w8, w24
Lloh28:
	adrp	x28, _PG_U@GOTPAGE
Lloh29:
	ldr	x28, [x28, _PG_U@GOTPAGEOFF]
Lloh30:
	adrp	x22, _pmap_pde_mappings@GOTPAGE
Lloh31:
	ldr	x22, [x22, _pmap_pde_mappings@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x23, #8]
	subs	x8, x8, #1
	str	x8, [x23, #8]
	cset	w0, gt
	sxtw	x1, w20
	bl	_KASSERT
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x21]
	add	w20, w8, w20
	add	w25, w8, w25
	cmp	w25, w27
	b.ge	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_pmap_allocpde
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x23, x0
	bl	_VM_PAGE_TO_PHYS
	bl	_PHYS_TO_DMAP
	mov	x24, x0
	mov	x0, x20
	bl	_pmap_pde_index
	add	x0, x24, x0, lsl #2
	ldr	w8, [x0]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	tst	w8, w9
	b.ne	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh32:
	adrp	x8, _PG_PS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PG_PS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w10, w26, w25
	orr	w8, w10, w8
	orr	w1, w8, w9
	bl	_pde_store
	ldr	w8, [x21]
Lloh35:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	sdiv	w1, w8, w9
	mov	x0, x19
	bl	_pmap_resident_count_inc
	mov	x0, x22
	mov	w1, #1
	bl	_atomic_add_long
	b	LBB0_13
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PMAP_UNLOCK
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_DEVICE,8,3                ; @OBJT_DEVICE
	.comm	_OBJT_SG,8,3                    ; @OBJT_SG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_object_init_pt: non-device object"

	.comm	_NBPDR,4,2                      ; @NBPDR
	.comm	_VM_PAGE_BITS_ALL,8,3           ; @VM_PAGE_BITS_ALL
	.comm	_listq,4,2                      ; @listq
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PG_PS,4,2                      ; @PG_PS
	.comm	_PG_U,4,2                       ; @PG_U
	.comm	_pmap_pde_mappings,4,2          ; @pmap_pde_mappings
.subsections_via_symbols
