	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseLoca
_ParseLoca:                             ## @ParseLoca
	.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
	movq	%rdi, %r14
	movslq	8(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	callq	_FindTable
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.1:
	movl	24(%r15), %edi
	movl	(%rbx), %esi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_HPDF_Stream_Seek
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.2:
	movl	4(%r14), %edi
	movl	(%r15), %eax
	leal	4(,%rax,4), %esi
	callq	_HPDF_GetMem
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movl	(%r15), %ecx
	leal	4(,%rcx,4), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_HPDF_MemSet
	movl	4(%r14), %edi
	movl	(%r15), %esi
	shll	$2, %esi
	callq	_HPDF_GetMem
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	movl	(%r15), %edx
	shll	$2, %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_HPDF_MemSet
	movq	16(%r15), %rax
	movl	$1, (%rax)
	movq	8(%r15), %r14
	cmpq	$0, 32(%r15)
	movl	(%r15), %eax
	je	LBB0_9
## %bb.5:
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %edi
	movq	%r14, %rsi
	callq	_GetUINT32
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %r14
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_7
	jmp	LBB0_13
LBB0_15:
	movl	(%r14), %edi
	movq	_HPDF_TTF_MISSING_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_16:
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
LBB0_9:
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	movl	$-1, %r13d
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -44(%rbp)
	movl	24(%r15), %edi
	movq	%rbx, %rsi
	callq	_GetUINT16
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	addq	$4, %r14
	incl	%r13d
	cmpl	(%r15), %r13d
	jl	LBB0_11
LBB0_13:
	movq	(%r12), %rax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"loca"

L_.str.1:                               ## @.str.1
	.asciz	" HPDF_TTFontDef_ParseLoca\n"

	.comm	_HPDF_TTF_MISSING_TABLE,4,2     ## @HPDF_TTF_MISSING_TABLE
	.comm	_HPDF_SEEK_SET,4,2              ## @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.no_dead_strip	_ParseLoca
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseLoca
_ParseLoca:                             ; @ParseLoca
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldrsw	x21, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_FindTable
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x20, LBB0_9
; %bb.1:
	ldr	w0, [x21, #24]
	ldr	w1, [x20]
Lloh4:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_HPDF_Stream_Seek
Lloh7:
	adrp	x20, _HPDF_OK@GOTPAGE
Lloh8:
	ldr	x20, [x20, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.2:
	ldr	w0, [x19, #4]
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w1, w8, #4
	bl	_HPDF_GetMem
	str	x0, [x21, #8]
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w8, [x21]
	lsl	w8, w8, #2
	add	w2, w8, #4
	mov	w1, #0
	bl	_HPDF_MemSet
	ldr	w0, [x19, #4]
	ldr	w8, [x21]
	lsl	w1, w8, #2
	bl	_HPDF_GetMem
	str	x0, [x21, #16]
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w8, [x21]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_HPDF_MemSet
	mov	w8, #1
	ldp	x19, x9, [x21, #8]
	str	w8, [x9]
	ldr	x9, [x21, #32]
	ldr	w8, [x21]
	cbz	x9, LBB0_11
; %bb.5:
	tbnz	w8, #31, LBB0_15
; %bb.6:
	mov	w22, #-1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #24]
	mov	x1, x19
	bl	_GetUINT32
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x19, x19, #4
	ldr	w8, [x21]
	add	w22, w22, #1
	cmp	w22, w8
	b.lt	LBB0_7
	b	LBB0_15
LBB0_9:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _HPDF_TTF_MISSING_TABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_TTF_MISSING_TABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #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
	add	sp, sp, #64
	b	_HPDF_SetError
LBB0_10:
	ldr	w0, [x19]
	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
	add	sp, sp, #64
	b	_HPDF_Error_GetCode
LBB0_11:
	tbnz	w8, #31, LBB0_15
; %bb.12:
	mov	w22, #-1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #12]
	ldr	w0, [x21, #24]
	add	x1, sp, #12
	bl	_GetUINT16
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [x19], #4
	ldr	w8, [x21]
	add	w22, w22, #1
	cmp	w22, w8
	b.lt	LBB0_13
LBB0_15:
	ldr	x0, [x20]
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"loca"

l_.str.1:                               ; @.str.1
	.asciz	" HPDF_TTFontDef_ParseLoca\n"

	.comm	_HPDF_TTF_MISSING_TABLE,4,2     ; @HPDF_TTF_MISSING_TABLE
	.comm	_HPDF_SEEK_SET,4,2              ; @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.no_dead_strip	_ParseLoca
.subsections_via_symbols
