	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_sec_file_read               ## -- Begin function pt_sec_file_read
	.p2align	4, 0x90
_pt_sec_file_read:                      ## @pt_sec_file_read
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.4:
	movq	%rcx, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %r14
	movq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_fmap_lock
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	addq	%r13, %r14
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_fseek
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_fmap_unlock
	movq	_pte_nomap@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_pte_internal@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	%r15, %rdi
	movl	$1, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_fread
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_fmap_unlock
	testl	%eax, %eax
	cmovsl	%eax, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_pte_nomap,4,2                  ## @pte_nomap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_sec_file_read               ; -- Begin function pt_sec_file_read
	.p2align	2
_pt_sec_file_read:                      ; @pt_sec_file_read
	.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_6
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_6
; %bb.2:
	ldr	x20, [x0]
	cbz	x20, LBB0_6
; %bb.3:
	mov	x23, x3
	mov	x19, x2
	ldp	x24, x22, [x20]
	mov	x0, x20
	bl	_fmap_lock
	tbnz	w0, #31, LBB0_8
; %bb.4:
	add	x1, x24, x23
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_fseek
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_fmap_unlock
Lloh3:
	adrp	x8, _pte_nomap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pte_nomap@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _pte_internal@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x19
	mov	x3, x22
	bl	_fread
	mov	x19, x0
	mov	x0, x20
	bl	_fmap_unlock
	cmp	w0, #0
	csel	w0, w0, w19, lt
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_pte_nomap,4,2                  ; @pte_nomap
.subsections_via_symbols
