	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_image_remove                ## -- Begin function pt_image_remove
	.p2align	4, 0x90
_pt_image_remove:                       ## @pt_image_remove
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.4:
	movq	%rdx, %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rbx
	movq	(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_pt_msec_asid
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_pt_asid_match
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_pt_msec_begin
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_pt_msec_section
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	movq	%r13, %rdi
	callq	_pt_section_list_free
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	movq	_pte_internal@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_11:
	movq	_pte_bad_image@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_pte_bad_image,4,2              ## @pte_bad_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_image_remove                ; -- Begin function pt_image_remove
	.p2align	2
_pt_image_remove:                       ; @pt_image_remove
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_10
; %bb.2:
	mov	x20, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_11
; %bb.3:
	mov	x19, x3
	mov	x21, x2
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x20, [x20]
	ldr	x23, [x20]
	cbz	x23, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x23, #8
	mov	x0, x24
	bl	_pt_msec_asid
	mov	x1, x21
	bl	_pt_asid_match
	tbnz	w0, #31, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_pt_msec_begin
	mov	x25, x0
	mov	x0, x24
	bl	_pt_msec_section
	cmp	x0, x22
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x25, x19
	b.ne	LBB0_4
; %bb.9:
	ldr	x8, [x23]
	str	x8, [x20]
	mov	x0, x23
	bl	_pt_section_list_free
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x8, _pte_bad_image@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pte_bad_image@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_pte_bad_image,4,2              ; @pte_bad_image
.subsections_via_symbols
