	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_sec_file_map                ## -- Begin function pt_sec_file_map
	.p2align	4, 0x90
_pt_sec_file_map:                       ## @pt_sec_file_map
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, 32(%rdi)
	je	LBB0_6
LBB0_2:
	movq	_pte_internal@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%r15), %r13
	testq	%r13, %r13
	js	LBB0_11
## %bb.7:
	movq	%rsi, %r14
	movq	(%r15), %r12
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_fseek
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_pte_bad_image@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	%r14, %rdi
	callq	_ftell
	testq	%rax, %rax
	js	LBB0_11
## %bb.10:
	addq	%r12, %r13
	cmpq	%r13, %rax
	jge	LBB0_12
LBB0_11:
	movq	_pte_bad_image@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_fmap_init
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, 16(%rax)
	movq	%r12, (%rax)
	movq	%r13, 8(%rax)
	movq	%rax, 32(%r15)
	movq	_pt_sec_file_unmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_pt_sec_file_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_pt_sec_file_memsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_15:
	movq	_pte_nomem@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_16:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_pte_bad_image,4,2              ## @pte_bad_image
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_pte_nomem,4,2                  ## @pte_nomem
	.comm	_pt_sec_file_unmap,4,2          ## @pt_sec_file_unmap
	.comm	_pt_sec_file_read,4,2           ## @pt_sec_file_read
	.comm	_pt_sec_file_memsize,4,2        ## @pt_sec_file_memsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_sec_file_map                ; -- Begin function pt_sec_file_map
	.p2align	2
_pt_sec_file_map:                       ; @pt_sec_file_map
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x21, [x19, #8]
	tbnz	x21, #63, LBB0_5
; %bb.4:
	mov	x20, x1
	ldr	x23, [x19]
Lloh2:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x1
	mov	w1, #0
	bl	_fseek
	cbz	w0, LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _pte_bad_image@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pte_bad_image@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	bl	_ftell
	tbnz	x0, #63, LBB0_5
; %bb.9:
	add	x24, x21, x23
	cmp	x0, x24
	b.lt	LBB0_5
; %bb.10:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_13
; %bb.11:
	mov	x22, x0
	bl	_fmap_init
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	w21, #0
	stp	x24, x20, [x22, #8]
	str	x23, [x22]
	str	x22, [x19, #32]
Lloh7:
	adrp	x8, _pt_sec_file_unmap@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pt_sec_file_unmap@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh10:
	adrp	x8, _pt_sec_file_read@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pt_sec_file_read@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _pt_sec_file_memsize@GOTPAGE
Lloh14:
	ldr	x9, [x9, _pt_sec_file_memsize@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	b	LBB0_7
LBB0_13:
Lloh16:
	adrp	x8, _pte_nomem@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pte_nomem@GOTPAGEOFF]
	b	LBB0_6
LBB0_14:
	mov	x21, x0
	mov	x0, x22
	bl	_free
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_pte_bad_image,4,2              ; @pte_bad_image
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_pte_nomem,4,2                  ; @pte_nomem
	.comm	_pt_sec_file_unmap,4,2          ; @pt_sec_file_unmap
	.comm	_pt_sec_file_read,4,2           ; @pt_sec_file_read
	.comm	_pt_sec_file_memsize,4,2        ; @pt_sec_file_memsize
.subsections_via_symbols
