	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_FileReader_SeekFunc       ## -- Begin function HPDF_FileReader_SeekFunc
	.p2align	4, 0x90
_HPDF_FileReader_SeekFunc:              ## @HPDF_FileReader_SeekFunc
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	4(%rdi), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	cmpl	$128, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	cmpl	$129, %ebx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	cmpl	$129, %ebx
	jne	LBB0_5
LBB0_4:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_HPDF_FSEEK
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%r12), %r15d
	movq	_HPDF_FILE_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_HPDF_FERROR
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_6:
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %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_SeekFunc\n"

	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_HPDF_FILE_IO_ERROR,4,2         ## @HPDF_FILE_IO_ERROR
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_FileReader_SeekFunc       ; -- Begin function HPDF_FileReader_SeekFunc
	.p2align	2
_HPDF_FileReader_SeekFunc:              ; @HPDF_FileReader_SeekFunc
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w19, [x0, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
Lloh2:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh4:
	adrp	x9, _SEEK_END@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SEEK_END@GOTPAGEOFF]
Lloh6:
	adrp	x10, _SEEK_SET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SEEK_SET@GOTPAGEOFF]
	cmp	w21, #128
	csel	x9, x9, x10, eq
	cmp	w21, #129
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_HPDF_FSEEK
	cbz	x0, LBB0_2
; %bb.1:
	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
	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
	b	_HPDF_SetError
LBB0_2:
Lloh11:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_FileReader_SeekFunc\n"

	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_HPDF_FILE_IO_ERROR,4,2         ; @HPDF_FILE_IO_ERROR
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
.subsections_via_symbols
