	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_copy_tte
_pmap_copy_tte:                         ## @pmap_copy_tte
	.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	_TD_FAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdx)
	jne	LBB0_3
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movl	%esi, %edi
	movl	%ecx, %esi
	callq	_tsb_tte_lookup
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_TD_PV@GOTPCREL(%rip), %rax
	movq	_TD_REF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_TD_SW@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_TD_CV@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_TD_W@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	notl	%r12d
	andl	(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_TTE_GET_PA
	movl	%eax, %edi
	callq	_PHYS_TO_VM_PAGE
	movq	_TS_8K@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	movl	%r12d, %r8d
	callq	_tsb_tte_enter
LBB0_3:
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TD_FAKE,4,2                    ## @TD_FAKE
	.comm	_TD_PV,4,2                      ## @TD_PV
	.comm	_TD_REF,4,2                     ## @TD_REF
	.comm	_TD_SW,4,2                      ## @TD_SW
	.comm	_TD_CV,4,2                      ## @TD_CV
	.comm	_TD_W,4,2                       ## @TD_W
	.comm	_TS_8K,4,2                      ## @TS_8K
	.no_dead_strip	_pmap_copy_tte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_copy_tte
_pmap_copy_tte:                         ; @pmap_copy_tte
	.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, [x2]
Lloh0:
	adrp	x9, _TD_FAKE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TD_FAKE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x0, x1
	mov	x1, x3
	bl	_tsb_tte_lookup
	cbnz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _TD_PV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TD_PV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TD_REF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TD_REF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _TD_SW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TD_SW@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _TD_CV@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TD_CV@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _TD_W@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TD_W@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w22, w10, w8
	mov	x0, x21
	bl	_TTE_GET_PA
	bl	_PHYS_TO_VM_PAGE
	mov	x1, x0
Lloh18:
	adrp	x8, _TS_8K@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TS_8K@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x4, x22
	bl	_tsb_tte_enter
LBB0_3:
	mov	w0, #1
	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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TD_FAKE,4,2                    ; @TD_FAKE
	.comm	_TD_PV,4,2                      ; @TD_PV
	.comm	_TD_REF,4,2                     ; @TD_REF
	.comm	_TD_SW,4,2                      ; @TD_SW
	.comm	_TD_CV,4,2                      ; @TD_CV
	.comm	_TD_W,4,2                       ; @TD_W
	.comm	_TS_8K,4,2                      ; @TS_8K
	.no_dead_strip	_pmap_copy_tte
.subsections_via_symbols
