	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadTTFTable                   ## -- Begin function LoadTTFTable
	.p2align	4, 0x90
_LoadTTFTable:                          ## @LoadTTFTable
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movslq	8(%rdi), %r14
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	(%r14), %edi
	leaq	8(%r14), %r12
	leaq	32(%r14), %rsi
	callq	_GetUINT32
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	%r12, %r15
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_GetUINT16
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	(%r14), %edi
	leaq	12(%r14), %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	addq	%r12, %rbx
	movl	(%r14), %edi
	leaq	16(%r14), %rsi
	callq	_GetUINT16
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	(%r14), %edi
	leaq	20(%r14), %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	addq	%r12, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
## %bb.1:
	movslq	(%r15), %rsi
	shlq	$5, %rsi
	movq	_HPDF_TTF_MAX_MEM_SIZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rsi
	jbe	LBB0_2
## %bb.11:
	movl	(%r13), %edi
	movq	_HPDF_TTF_INVALID_FOMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_2:
	movl	4(%r13), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_HPDF_GetMem
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$4, -44(%rbp)
	movl	(%r14), %edi
	movq	24(%r12), %rsi
	leaq	-44(%rbp), %rdx
	callq	_HPDF_Stream_Read
	movq	%rax, %r13
	addq	%rbx, %r13
	movl	(%r14), %edi
	leaq	16(%r12), %rsi
	callq	_GetUINT32
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	(%r14), %edi
	leaq	8(%r12), %rsi
	callq	_GetUINT32
	movq	%rax, %r13
	addq	%rbx, %r13
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_GetUINT32
	movq	%rax, %rbx
	addq	%r13, %rbx
	movslq	(%r12), %rdi
	callq	_HPDF_PTRACE
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$32, %r12
	incl	%r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r15d
	jl	LBB0_6
	jmp	LBB0_9
LBB0_10:
	movl	(%r13), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
LBB0_4:
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_9
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_HPDF_Error_GetCode
	movq	%rax, %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_TTFontDef_LoadTTFTable\n"

	.comm	_HPDF_TTF_MAX_MEM_SIZ,4,2       ## @HPDF_TTF_MAX_MEM_SIZ
	.comm	_HPDF_TTF_INVALID_FOMAT,4,2     ## @HPDF_TTF_INVALID_FOMAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadTTFTable                   ; -- Begin function LoadTTFTable
	.p2align	2
_LoadTTFTable:                          ; @LoadTTFTable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, [x0, #8]
Lloh0:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	ldr	x20, [x23]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x1, x24
	ldr	w0, [x1], #32
	bl	_GetUINT32
	add	x21, x0, x20
	mov	x20, x24
	ldr	w0, [x20], #8
	mov	x1, x20
	bl	_GetUINT16
	add	x21, x21, x0
	mov	x1, x24
	ldr	w0, [x1], #12
	bl	_GetUINT16
	add	x21, x21, x0
	mov	x1, x24
	ldr	w0, [x1], #16
	bl	_GetUINT16
	add	x21, x21, x0
	mov	x1, x24
	ldr	w0, [x1], #20
	bl	_GetUINT16
	ldr	x8, [x23]
	add	x21, x21, x0
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.1:
	ldrsw	x8, [x20]
	lsl	x1, x8, #5
Lloh4:
	adrp	x8, _HPDF_TTF_MAX_MEM_SIZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_TTF_MAX_MEM_SIZ@GOTPAGEOFF]
Lloh6:
	ldrsw	x8, [x8]
	cmp	x1, x8
	b.ls	LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _HPDF_TTF_INVALID_FOMAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_TTF_INVALID_FOMAT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_HPDF_SetError
LBB0_3:
	ldr	w0, [x19, #4]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_HPDF_GetMem
	str	x0, [x24, #24]
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.5:
	mov	x22, x0
	mov	w25, #0
	mov	w26, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w26, [sp, #12]
	ldr	w0, [x24]
	ldr	x1, [x22, #24]
	add	x2, sp, #12
	bl	_HPDF_Stream_Read
	add	x21, x0, x21
	ldr	w0, [x24]
	add	x1, x22, #16
	bl	_GetUINT32
	add	x21, x21, x0
	ldr	w0, [x24]
	add	x1, x22, #8
	bl	_GetUINT32
	add	x21, x21, x0
	ldr	w0, [x24]
	mov	x1, x22
	bl	_GetUINT32
	add	x21, x21, x0
	ldrsw	x0, [x22]
	bl	_HPDF_PTRACE
	ldr	x8, [x23]
	cmp	x21, x8
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #32
	add	w25, w25, #1
	ldr	w8, [x20]
	cmp	w25, w8
	b.lt	LBB0_6
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_HPDF_Error_GetCode
LBB0_9:
	ldr	x21, [x23]
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19]
	bl	_HPDF_Error_GetCode
	mov	x21, x0
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_TTFontDef_LoadTTFTable\n"

	.comm	_HPDF_TTF_MAX_MEM_SIZ,4,2       ; @HPDF_TTF_MAX_MEM_SIZ
	.comm	_HPDF_TTF_INVALID_FOMAT,4,2     ; @HPDF_TTF_INVALID_FOMAT
.subsections_via_symbols
