	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LoadFontData2
_LoadFontData2:                         ## @LoadFontData2
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	4(%rdi), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	%r12d, 4(%rbx)
	movl	%r14d, (%rbx)
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_HPDF_Stream_Seek
	movq	_HPDF_OK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.1:
	movq	$4, -88(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	movl	%r12d, %edi
	callq	_HPDF_Stream_Read
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	$4, %edx
	callq	_HPDF_MemCmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r15), %edi
	movq	_HPDF_INVALID_TTC_FILE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_HPDF_SetError
	jmp	LBB0_12
LBB0_5:
	movl	(%rbx), %edx
	movl	%r12d, %edi
	movl	$8, %esi
	callq	_HPDF_Stream_Seek
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.6:
	leaq	-72(%rbp), %rsi
	movl	%r12d, %edi
	callq	_GetUINT32
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.7:
	movq	-72(%rbp), %rdi
	callq	_HPDF_PTRACE
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -72(%rbp)
	jle	LBB0_8
## %bb.9:
	leal	12(,%rax,4), %esi
	movl	(%rbx), %edx
	movl	%r12d, %edi
	callq	_HPDF_Stream_Seek
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.10:
	leaq	-96(%rbp), %rsi
	movl	%r12d, %edi
	callq	_GetUINT32
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.11:
	movq	-96(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_LoadFontData
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r15), %edi
	movq	_HPDF_INVALID_TTC_INDEX@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_TTFontDef_LoadFontData2\n"

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

	.comm	_HPDF_INVALID_TTC_FILE,4,2      ## @HPDF_INVALID_TTC_FILE
	.comm	_HPDF_INVALID_TTC_INDEX,4,2     ## @HPDF_INVALID_TTC_INDEX
	.no_dead_strip	_LoadFontData2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadFontData2
_LoadFontData2:                         ; @LoadFontData2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldrsw	x23, [x0, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	stp	w19, w21, [x23]
Lloh5:
	adrp	x24, _HPDF_SEEK_SET@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HPDF_SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	mov	w1, #0
	bl	_HPDF_Stream_Seek
Lloh7:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh8:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.1:
	mov	w8, #4
	str	x8, [sp]
	add	x1, sp, #24
	mov	x2, sp
	mov	x0, x21
	bl	_HPDF_Stream_Read
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.2:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w2, #4
	bl	_HPDF_MemCmp
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _HPDF_INVALID_TTC_FILE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_INVALID_TTC_FILE@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
	b	LBB0_11
LBB0_5:
	ldr	w2, [x24]
	mov	x0, x21
	mov	w1, #8
	bl	_HPDF_Stream_Seek
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.6:
	add	x1, sp, #16
	mov	x0, x21
	bl	_GetUINT32
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.7:
	ldr	x0, [sp, #16]
	bl	_HPDF_PTRACE
	ldr	x8, [sp, #16]
	cmp	x8, x22
	b.le	LBB0_13
; %bb.8:
	lsl	w8, w22, #2
	add	w1, w8, #12
	ldr	w2, [x24]
	mov	x0, x21
	bl	_HPDF_Stream_Seek
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:
	add	x1, sp, #8
	mov	x0, x21
	bl	_GetUINT32
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	x3, [sp, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_LoadFontData
LBB0_11:
	ldr	x8, [sp, #40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	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
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _HPDF_INVALID_TTC_INDEX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HPDF_INVALID_TTC_INDEX@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_TTFontDef_LoadFontData2\n"

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

	.comm	_HPDF_INVALID_TTC_FILE,4,2      ; @HPDF_INVALID_TTC_FILE
	.comm	_HPDF_INVALID_TTC_INDEX,4,2     ; @HPDF_INVALID_TTC_INDEX
	.no_dead_strip	_LoadFontData2
.subsections_via_symbols
