	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_FileStream_SizeFunc       ## -- Begin function HPDF_FileStream_SizeFunc
	.p2align	4, 0x90
_HPDF_FileStream_SizeFunc:              ## @HPDF_FileStream_SizeFunc
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %r12d
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	%r12d, %edi
	callq	_HPDF_FTELL
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_HPDF_FSEEK
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movl	%r12d, %edi
	callq	_HPDF_FTELL
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_HPDF_FSEEK
	testq	%rax, %rax
	jns	LBB0_5
LBB0_4:
	movl	(%r14), %r14d
	movq	_HPDF_FILE_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_HPDF_FERROR
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_HPDF_SetError
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_FileReader_SizeFunc\n"

	.comm	_HPDF_FILE_IO_ERROR,4,2         ## @HPDF_FILE_IO_ERROR
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_FileStream_SizeFunc       ; -- Begin function HPDF_FileStream_SizeFunc
	.p2align	2
_HPDF_FileStream_SizeFunc:              ; @HPDF_FileStream_SizeFunc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	w19, [x0, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x0, x19
	bl	_HPDF_FTELL
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_HPDF_FSEEK
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_HPDF_FTELL
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh5:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_HPDF_FSEEK
	tbz	x0, #63, LBB0_5
LBB0_4:
	ldr	w20, [x20]
Lloh8:
	adrp	x8, _HPDF_FILE_IO_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_FILE_IO_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_HPDF_FERROR
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_HPDF_SetError
	mov	w22, #0
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_FileReader_SizeFunc\n"

	.comm	_HPDF_FILE_IO_ERROR,4,2         ; @HPDF_FILE_IO_ERROR
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
