	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_image_add                   ## -- Begin function pt_image_add
	.p2align	4, 0x90
_pt_image_add:                          ## @pt_image_add
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movl	%r8d, %r14d
	movq	%rdi, %rbx
	movq	%r15, %rdi
	callq	_pt_section_size
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%rax, %r15
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	%rax, %r8
	movl	%r14d, %r9d
	callq	_pt_mk_section_list
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rbx
	addq	$8, %rbx
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_23
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	16(%r15), %r13
	movq	%r13, %rdi
	callq	_pt_msec_asid
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_pt_asid_match
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_pt_msec_begin
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_pt_msec_end
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	subq	%r12, %rcx
	jle	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	callq	_pt_msec_section
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_pt_msec_offset
	movq	%rax, %r10
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	cmpq	%r8, %r12
	jge	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	subq	%r12, %r8
	movl	(%r15), %r9d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %r13
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r10, %r12
	movq	%r10, %rcx
	callq	_pt_mk_section_list
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r12, %r10
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	subq	%rdx, %r8
	jle	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addq	%r10, %rcx
	movl	(%r15), %r9d
	movq	%r14, %rsi
	callq	_pt_mk_section_list
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_22
LBB0_2:
	movq	_pte_internal@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_30
LBB0_4:
	movq	_pte_nomem@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	%r12, %r14
	jmp	LBB0_30
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pt_section_list_free_tail
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_30
LBB0_9:
	movl	%eax, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_27:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pt_section_list_free_tail
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	movq	(%rbx), %rcx
	leaq	8(%rcx), %rbx
	testq	%rcx, %rcx
	jne	LBB0_28
## %bb.29:
	movq	%r15, (%rax)
LBB0_30:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_pte_nomem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_25
## %bb.26:
	negl	%eax
	movl	%eax, %r14d
	jmp	LBB0_27
LBB0_25:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_pte_nomem,4,2                  ## @pte_nomem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_image_add                   ; -- Begin function pt_image_add
	.p2align	2
_pt_image_add:                          ; @pt_image_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cbz	x0, LBB0_18
; %bb.1:
	mov	x24, x1
	cbz	x1, LBB0_18
; %bb.2:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	mov	x0, x24
	bl	_pt_section_size
	mov	x23, x0
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	mov	x3, #0
	mov	x4, x23
	mov	x5, x20
	bl	_pt_mk_section_list
	cbz	x0, LBB0_19
; %bb.3:
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x24, [x19]
	cbz	x24, LBB0_21
; %bb.4:
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	add	x28, x23, x21
	stp	x22, x21, [sp]                  ; 16-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	add	x19, x8, #8
	ldr	x24, [x19]
	cbz	x24, LBB0_22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x24, #16
	mov	x0, x27
	bl	_pt_msec_asid
	mov	x25, x0
	mov	x1, x22
	bl	_pt_asid_match
	mov	x26, x0
	tbnz	w0, #31, LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w26, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	bl	_pt_msec_begin
	mov	x20, x0
	mov	x0, x27
	bl	_pt_msec_end
	subs	x23, x28, x20
	b.le	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x0
	cmp	x0, x21
	b.le	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	bl	_pt_msec_section
	mov	x22, x0
	mov	x0, x27
	bl	_pt_msec_offset
	mov	x27, x0
	ldr	x8, [x24, #8]
	str	x8, [x19]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [x24, #8]
	cmp	x20, x21
	b.ge	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x4, x21, x20
	ldr	w5, [x24]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x20
	mov	x3, x27
	bl	_pt_mk_section_list
	cbz	x0, LBB0_28
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [x0, #8]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	subs	x4, x26, x28
	b.le	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x3, x23, x27
	ldr	w5, [x24]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x28
	bl	_pt_mk_section_list
	cbz	x0, LBB0_28
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [x0, #8]
	stp	x0, x24, [sp, #16]              ; 16-byte Folded Spill
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x22, x21, [sp]                  ; 16-byte Folded Reload
	ldr	x24, [x19]
	cbnz	x24, LBB0_6
	b	LBB0_22
LBB0_18:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh2:
	adrp	x8, _pte_nomem@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pte_nomem@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_27
LBB0_21:
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
LBB0_22:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_pt_section_list_free_tail
	mov	w26, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [x19]
	b	LBB0_27
LBB0_23:
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
LBB0_24:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_pt_section_list_free_tail
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	mov	x8, x19
	ldr	x9, [x19]
	add	x19, x9, #8
	cbnz	x9, LBB0_25
; %bb.26:
	str	x24, [x8]
LBB0_27:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_28:
Lloh4:
	adrp	x8, _pte_nomem@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pte_nomem@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.29:
	neg	w26, w8
	b	LBB0_24
LBB0_30:
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_pte_nomem,4,2                  ; @pte_nomem
.subsections_via_symbols
