	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LoadFontData
_LoadFontData:                          ## @LoadFontData
	.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
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movslq	28(%rdi), %r13
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	%rbx, (%r13)
	movl	%r14d, 28(%r13)
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_HPDF_Stream_Seek
	movq	_HPDF_OK@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.1:
	movq	%r15, %rdi
	callq	_LoadTTFTable
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.2:
	movq	%r15, %rdi
	callq	_ParseHead
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.3:
	movq	%r15, %rdi
	callq	_ParseMaxp
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.4:
	movq	%r15, %rdi
	callq	_ParseHhea
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.5:
	movq	%r15, %rdi
	callq	_ParseCMap
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.6:
	movq	%r15, %rdi
	callq	_ParseHmtx
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.7:
	movq	%r15, %rdi
	callq	_ParseLoca
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.8:
	movq	%r15, %rdi
	callq	_ParseName
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.9:
	movq	%r15, %rdi
	callq	_ParseOS2
	cmpl	(%rbx), %eax
	jne	LBB0_14
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_FindTable
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movl	$72, %esi
	movq	%r15, %rdi
	callq	_HPDF_TTFontDef_GetCharBBox
	movq	%rax, 16(%r15)
	movl	$120, %esi
	movq	%r15, %rdi
	callq	_HPDF_TTFontDef_GetCharBBox
	movq	%rax, 8(%r15)
	movq	16(%r13), %rax
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	cltd
	idivl	8(%r13)
	cltq
	movq	%rax, (%r15)
	movq	16(%r15), %rdi
	callq	_HPDF_PTRACE
	movq	8(%r15), %rdi
	callq	_HPDF_PTRACE
	movq	(%r15), %rdi
	callq	_HPDF_PTRACE
	testl	%r14d, %r14d
	jne	LBB0_13
## %bb.12:
	movq	(%r13), %rdi
	callq	_HPDF_Stream_Free
	movq	$0, (%r13)
LBB0_13:
	movl	(%rbx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	24(%r15), %edi
	movq	_HPDF_TTF_MISSING_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_TTFontDef_LoadFontData\n"

	.comm	_HPDF_SEEK_SET,4,2              ## @HPDF_SEEK_SET
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
L_.str.1:                               ## @.str.1
	.asciz	"glyf"

	.comm	_HPDF_TTF_MISSING_TABLE,4,2     ## @HPDF_TTF_MISSING_TABLE
	.no_dead_strip	_LoadFontData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadFontData
_LoadFontData:                          ; @LoadFontData
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldrsw	x23, [x0, #28]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	str	x22, [x23]
	str	w19, [x23, #28]
Lloh2:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_HPDF_Stream_Seek
Lloh5:
	adrp	x21, _HPDF_OK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _HPDF_OK@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.1:
	mov	x0, x20
	bl	_LoadTTFTable
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.2:
	mov	x0, x20
	bl	_ParseHead
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.3:
	mov	x0, x20
	bl	_ParseMaxp
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.4:
	mov	x0, x20
	bl	_ParseHhea
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.5:
	mov	x0, x20
	bl	_ParseCMap
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.6:
	mov	x0, x20
	bl	_ParseHmtx
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.7:
	mov	x0, x20
	bl	_ParseLoca
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.8:
	mov	x0, x20
	bl	_ParseName
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.9:
	mov	x0, x20
	bl	_ParseOS2
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.10:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_FindTable
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w8, [x0]
	str	w8, [x23, #24]
	mov	x0, x20
	mov	w1, #72
	bl	_HPDF_TTFontDef_GetCharBBox
	str	x0, [x20, #16]
	mov	x0, x20
	mov	w1, #120
	bl	_HPDF_TTFontDef_GetCharBBox
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w8, w8, w9
	ldr	w9, [x23, #8]
	sdiv	w8, w8, w9
	sxtw	x8, w8
	stp	x8, x0, [x20]
	ldr	x0, [x20, #16]
	bl	_HPDF_PTRACE
	ldr	x0, [x20, #8]
	bl	_HPDF_PTRACE
	ldr	x0, [x20]
	bl	_HPDF_PTRACE
	cbnz	w19, LBB0_13
; %bb.12:
	ldr	x0, [x23]
	bl	_HPDF_Stream_Free
	str	xzr, [x23]
LBB0_13:
	ldr	w0, [x21]
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w0, [x20, #24]
Lloh9:
	adrp	x8, _HPDF_TTF_MISSING_TABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_TTF_MISSING_TABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #4
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_HPDF_SetError
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_TTFontDef_LoadFontData\n"

	.comm	_HPDF_SEEK_SET,4,2              ; @HPDF_SEEK_SET
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
l_.str.1:                               ; @.str.1
	.asciz	"glyf"

	.comm	_HPDF_TTF_MISSING_TABLE,4,2     ; @HPDF_TTF_MISSING_TABLE
	.no_dead_strip	_LoadFontData
.subsections_via_symbols
