	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_image_add_cached            ## -- Begin function pt_image_add_cached
	.p2align	4, 0x90
_pt_image_add_cached:                   ## @pt_image_add_cached
	.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
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rdi, %r15
	leaq	-56(%rbp), %rax
	leaq	-44(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	%r14d, %ecx
	callq	_pt_iscache_lookup
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	leaq	-40(%rbp), %rdi
	movq	%r12, %rsi
	callq	_pt_asid_from_user
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	-56(%rbp), %rsi
	movl	-44(%rbp), %ecx
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	callq	_pt_image_add
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi
	callq	_pt_section_put
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_pte_invalid@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_invalid,4,2                ## @pte_invalid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_image_add_cached            ; -- Begin function pt_image_add_cached
	.p2align	2
_pt_image_add_cached:                   ; @pt_image_add_cached
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x8, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	add	x1, sp, #24
	add	x2, sp, #12
	mov	x0, x8
	mov	x3, x19
	bl	_pt_iscache_lookup
	tbnz	w0, #31, LBB0_6
; %bb.3:
	add	x0, sp, #16
	mov	x1, x21
	bl	_pt_asid_from_user
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	x1, [sp, #24]
	ldr	w3, [sp, #12]
	add	x2, sp, #16
	mov	x0, x20
	mov	x4, x19
	bl	_pt_image_add
	mov	x19, x0
	ldr	x0, [sp, #24]
	bl	_pt_section_put
	cmp	w0, #0
	csel	w0, w0, w19, lt
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _pte_invalid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_invalid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_invalid,4,2                ; @pte_invalid
.subsections_via_symbols
