	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_image_remove_by_asid        ## -- Begin function pt_image_remove_by_asid
	.p2align	4, 0x90
_pt_image_remove_by_asid:               ## @pt_image_remove_by_asid
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r12
	leaq	-40(%rbp), %rdi
	callq	_pt_asid_from_user
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movq	(%r12), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.3:
	leaq	-40(%rbp), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_pt_section_list_free
	incl	%r14d
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	8(%rbx), %rdi
	callq	_pt_msec_asid
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_pt_asid_match
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %r12
	jmp	LBB0_5
LBB0_9:
	movq	_pte_invalid@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$16, %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_remove_by_asid        ; -- Begin function pt_image_remove_by_asid
	.p2align	2
_pt_image_remove_by_asid:               ; @pt_image_remove_by_asid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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_8
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	bl	_pt_asid_from_user
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x21, [x19]
	cbz	x21, LBB0_10
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x21
	ldr	x21, [x19]
	cbz	x21, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, #8
	bl	_pt_msec_asid
	add	x1, sp, #8
	bl	_pt_asid_match
	tbnz	w0, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	str	x8, [x19]
	mov	x0, x21
	bl	_pt_section_list_free
	add	w20, w20, #1
	ldr	x21, [x19]
	cbnz	x21, LBB0_5
	b	LBB0_11
LBB0_8:
Lloh0:
	adrp	x8, _pte_invalid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_invalid@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_9:
	mov	x20, x0
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_invalid,4,2                ; @pte_invalid
.subsections_via_symbols
