	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseHead
_ParseHead:                             ## @ParseHead
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	36(%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_6
## %bb.1:
	movl	104(%r15), %edi
	movl	(%rbx), %esi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_HPDF_Stream_Seek
	movq	%rax, %r13
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_5
## %bb.2:
	movl	$4, -44(%rbp)
	movl	104(%r15), %edi
	leaq	100(%r15), %rsi
	leaq	-44(%rbp), %rdx
	callq	_HPDF_Stream_Read
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	104(%r15), %edi
	leaq	96(%r15), %rsi
	callq	_GetUINT32
	movq	%rax, %r13
	addq	%rbx, %r13
	movl	104(%r15), %edi
	leaq	92(%r15), %rsi
	callq	_GetUINT32
	movq	%rax, %r12
	addq	%r13, %r12
	movl	104(%r15), %edi
	leaq	88(%r15), %rsi
	callq	_GetUINT32
	movq	%rax, %rbx
	addq	%r12, %rbx
	movl	104(%r15), %edi
	movq	%r15, %rsi
	callq	_GetUINT16
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	104(%r15), %edi
	leaq	4(%r15), %rsi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_GetUINT16
	movq	%rax, %rbx
	addq	%r12, %rbx
	movl	$8, -44(%rbp)
	movl	104(%r15), %edi
	movq	80(%r15), %rsi
	leaq	-44(%rbp), %r13
	movq	%r13, %rdx
	callq	_HPDF_Stream_Read
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	$8, -44(%rbp)
	movl	104(%r15), %edi
	movq	72(%r15), %rsi
	movq	%r13, %rdx
	callq	_HPDF_Stream_Read
	movq	%rax, %rbx
	addq	%r12, %rbx
	movl	104(%r15), %edi
	leaq	40(%r15), %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_GetINT16
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	104(%r15), %edi
	leaq	32(%r15), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_GetINT16
	movq	%rax, %rbx
	addq	%r12, %rbx
	movl	104(%r15), %edi
	leaq	24(%r15), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_GetINT16
	movq	%rax, %r13
	addq	%rbx, %r13
	movl	104(%r15), %edi
	leaq	16(%r15), %r12
	movq	%r12, %rsi
	callq	_GetINT16
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	104(%r15), %edi
	leaq	8(%r15), %rsi
	callq	_GetUINT16
	movq	%rax, %r13
	addq	%rbx, %r13
	movl	104(%r15), %edi
	leaq	12(%r15), %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	104(%r15), %edi
	leaq	64(%r15), %rsi
	callq	_GetINT16
	movq	%rax, %r13
	addq	%rbx, %r13
	movl	104(%r15), %edi
	leaq	56(%r15), %rsi
	callq	_GetINT16
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	104(%r15), %edi
	addq	$48, %r15
	movq	%r15, %rsi
	callq	_GetINT16
	movq	%rax, %r13
	addq	%rbx, %r13
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_3
## %bb.4:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	cltq
	movq	%rax, 24(%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	cltd
	idivl	%ecx
	cltq
	movq	%rax, 16(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	cltd
	idivl	%ecx
	cltq
	movq	%rax, 8(%r14)
	imull	$1000, (%r12), %eax             ## imm = 0x3E8
	cltd
	idivl	%ecx
	cltq
	movq	%rax, (%r14)
	jmp	LBB0_5
LBB0_6:
	movl	32(%r14), %edi
	movq	_HPDF_TTF_MISSING_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_3:
	movl	32(%r14), %edi
	callq	_HPDF_Error_GetCode
	movq	%rax, %r13
LBB0_5:
	movq	%r13, %rax
	addq	$40, %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	"head"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseHead
_ParseHead:                             ; @ParseHead
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldrsw	x20, [x0, #36]
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_4
; %bb.1:
	ldr	w0, [x20, #104]
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_HPDF_Stream_Seek
	mov	x26, x0
Lloh7:
	adrp	x27, _HPDF_OK@GOTPAGE
Lloh8:
	ldr	x27, [x27, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	w8, #4
	str	w8, [sp, #12]
	ldr	w0, [x20, #104]
	add	x1, x20, #100
	add	x2, sp, #12
	bl	_HPDF_Stream_Read
	add	x21, x0, x26
	ldr	w0, [x20, #104]
	add	x1, x20, #96
	bl	_GetUINT32
	add	x21, x21, x0
	ldr	w0, [x20, #104]
	add	x1, x20, #92
	bl	_GetUINT32
	add	x21, x21, x0
	ldr	w0, [x20, #104]
	add	x1, x20, #88
	bl	_GetUINT32
	add	x21, x21, x0
	ldr	w0, [x20, #104]
	mov	x1, x20
	bl	_GetUINT16
	add	x22, x21, x0
	ldr	w0, [x20, #104]
	add	x21, x20, #4
	mov	x1, x21
	bl	_GetUINT16
	add	x22, x22, x0
	mov	w23, #8
	str	w23, [sp, #12]
	ldr	w0, [x20, #104]
	ldr	x1, [x20, #80]
	add	x2, sp, #12
	bl	_HPDF_Stream_Read
	add	x22, x22, x0
	str	w23, [sp, #12]
	ldr	w0, [x20, #104]
	ldr	x1, [x20, #72]
	add	x2, sp, #12
	bl	_HPDF_Stream_Read
	add	x23, x22, x0
	ldr	w0, [x20, #104]
	add	x22, x20, #40
	mov	x1, x22
	bl	_GetINT16
	add	x24, x23, x0
	ldr	w0, [x20, #104]
	add	x23, x20, #32
	mov	x1, x23
	bl	_GetINT16
	add	x25, x24, x0
	ldr	w0, [x20, #104]
	add	x24, x20, #24
	mov	x1, x24
	bl	_GetINT16
	add	x26, x25, x0
	ldr	w0, [x20, #104]
	add	x25, x20, #16
	mov	x1, x25
	bl	_GetINT16
	add	x26, x26, x0
	ldr	w0, [x20, #104]
	add	x1, x20, #8
	bl	_GetUINT16
	add	x26, x26, x0
	ldr	w0, [x20, #104]
	add	x1, x20, #12
	bl	_GetUINT16
	add	x26, x26, x0
	ldr	w0, [x20, #104]
	add	x1, x20, #64
	bl	_GetINT16
	add	x26, x26, x0
	ldr	w0, [x20, #104]
	add	x1, x20, #56
	bl	_GetINT16
	add	x26, x26, x0
	ldr	w0, [x20, #104]
	add	x1, x20, #48
	bl	_GetINT16
	ldr	x8, [x27]
	add	x26, x26, x0
	cmp	x26, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x22]
	mov	w9, #1000
	mul	w8, w8, w9
	ldr	w10, [x21]
	sdiv	w8, w8, w10
	sxtw	x8, w8
	ldr	w11, [x23]
	mul	w11, w11, w9
	sdiv	w11, w11, w10
	sxtw	x11, w11
	stp	x11, x8, [x19, #16]
	ldr	w8, [x24]
	mul	w8, w8, w9
	sdiv	w8, w8, w10
	sxtw	x8, w8
	ldr	w11, [x25]
	mul	w9, w11, w9
	sdiv	w9, w9, w10
	sxtw	x9, w9
	stp	x9, x8, [x19]
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #32]
Lloh9:
	adrp	x8, _HPDF_TTF_MISSING_TABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_TTF_MISSING_TABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #5
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_HPDF_SetError
LBB0_5:
	ldr	w0, [x19, #32]
	bl	_HPDF_Error_GetCode
	mov	x26, x0
LBB0_6:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	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	"head"

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