	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseHhea
_ParseHhea:                             ## @ParseHhea
	.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, %rbx
	movslq	24(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	callq	_FindTable
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	movl	4(%r14), %edi
	movq	(%r15), %rsi
	addq	$4, %rsi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_HPDF_Stream_Seek
	movq	%rax, %r12
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_6
## %bb.2:
	movl	4(%r14), %edi
	leaq	16(%rbx), %rsi
	callq	_GetINT16
	movq	%rax, %r13
	imull	$1000, 16(%rbx), %eax           ## imm = 0x3E8
	addq	%r12, %r13
	cltd
	idivl	8(%r14)
	cltq
	movq	%rax, 16(%rbx)
	movl	4(%r14), %edi
	leaq	8(%rbx), %rsi
	callq	_GetINT16
	movq	%rax, %rcx
	imull	$1000, 8(%rbx), %eax            ## imm = 0x3E8
	addq	%r13, %rcx
	movq	_HPDF_OK@GOTPCREL(%rip), %r13
	cltd
	idivl	8(%r14)
	cltq
	movq	%rax, 8(%rbx)
	cmpq	(%r13), %rcx
	jne	LBB0_8
## %bb.3:
	movl	4(%r14), %edi
	movq	(%r15), %rsi
	addq	$34, %rsi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_HPDF_Stream_Seek
	movq	%rax, %r12
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.4:
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_GetUINT16
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.5:
	movq	%rax, %r12
	movslq	(%r14), %rdi
	callq	_HPDF_PTRACE
LBB0_6:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%rbx), %edi
	movq	_HPDF_TTF_MISSING_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$6, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_8:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hhea"

L_.str.1:                               ## @.str.1
	.asciz	" HPDF_TTFontDef_ParseHhea\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	_ParseHhea
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseHhea
_ParseHhea:                             ; @ParseHhea
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldrsw	x20, [x0, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_FindTable
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x21, LBB0_7
; %bb.1:
	ldr	w0, [x20, #4]
	ldr	x8, [x21]
	add	x1, x8, #4
Lloh4:
	adrp	x24, _HPDF_SEEK_SET@GOTPAGE
Lloh5:
	ldr	x24, [x24, _HPDF_SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_HPDF_Stream_Seek
	mov	x22, x0
Lloh6:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x20, #4]
	add	x1, x19, #16
	bl	_GetINT16
	add	x22, x0, x22
	ldr	w8, [x19, #16]
	mov	w25, #1000
	mul	w8, w8, w25
	ldp	w0, w9, [x20, #4]
	sdiv	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x19, #16]
	add	x1, x19, #8
	bl	_GetINT16
	ldr	w8, [x19, #8]
	mul	w8, w8, w25
	ldr	w9, [x20, #8]
	sdiv	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x19, #8]
	ldr	x8, [x23]
	add	x9, x22, x0
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x20, #4]
	ldr	x8, [x21]
	add	x1, x8, #34
	ldr	w2, [x24]
	bl	_HPDF_Stream_Seek
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x20, #4]
	mov	x1, x20
	bl	_GetUINT16
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	mov	x22, x0
	ldrsw	x0, [x20]
	bl	_HPDF_PTRACE
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _HPDF_TTF_MISSING_TABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_TTF_MISSING_TABLE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #6
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_HPDF_SetError
LBB0_8:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_HPDF_Error_GetCode
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hhea"

l_.str.1:                               ; @.str.1
	.asciz	" HPDF_TTFontDef_ParseHhea\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	_ParseHhea
.subsections_via_symbols
