	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseCMAP_format0
_ParseCMAP_format0:                     ## @ParseCMAP_format0
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	8(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	40(%r15), %edi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_HPDF_Stream_Seek
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.1:
	movl	40(%r15), %edi
	movq	%r15, %rsi
	callq	_GetUINT16
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	40(%r15), %edi
	leaq	8(%r15), %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	addq	%r12, %rbx
	movl	40(%r15), %edi
	leaq	16(%r15), %rsi
	callq	_GetUINT16
	addq	%rbx, %rax
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.4:
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.5:
	movl	(%r14), %edi
	movq	_HPDF_TTF_INVALID_FOMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.6:
	xorl	%edx, %edx
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_2:
	movl	(%r14), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.3:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
LBB0_7:
	movl	$256, -1076(%rbp)               ## imm = 0x100
	movl	40(%r15), %edi
	leaq	-1072(%rbp), %rsi
	leaq	-1076(%rbp), %rdx
	callq	_HPDF_Stream_Read
	movq	%rax, %rbx
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.8:
	movl	$256, 24(%r15)                  ## imm = 0x100
	movl	4(%r14), %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_HPDF_GetMem
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%rax, %r12
	movslq	(%rax), %rdi
	callq	_HPDF_PTRACE
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movslq	(%rax,%rbx,4), %rdi
	movl	%edi, (%r12,%rbx,4)
	callq	_HPDF_PTRACE
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_10
## %bb.11:
	movq	(%r13), %rbx
	jmp	LBB0_12
LBB0_14:
	movl	(%r14), %edi
	callq	_HPDF_Error_GetCode
	movq	%rax, %rbx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.15:
	movq	%rbx, %rax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" ParseCMAP_format0\n"

	.comm	_HPDF_SEEK_SET,4,2              ## @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.comm	_HPDF_TTF_INVALID_FOMAT,4,2     ## @HPDF_TTF_INVALID_FOMAT
	.no_dead_strip	_ParseCMAP_format0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseCMAP_format0
_ParseCMAP_format0:                     ; @ParseCMAP_format0
	.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
	sub	sp, sp, #1040
	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]
	stur	x8, [x29, #-56]
	ldrsw	x19, [x0, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w0, [x19, #40]
Lloh5:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_HPDF_Stream_Seek
	mov	x21, x0
Lloh8:
	adrp	x22, _HPDF_OK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.1:
	ldr	w0, [x19, #40]
	mov	x1, x19
	bl	_GetUINT16
	add	x21, x0, x21
	ldr	w0, [x19, #40]
	add	x1, x19, #8
	bl	_GetUINT16
	add	x21, x21, x0
	ldr	w0, [x19, #40]
	add	x1, x19, #16
	bl	_GetUINT16
	ldr	x8, [x22]
	add	x9, x21, x0
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _HPDF_TTF_INVALID_FOMAT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HPDF_TTF_INVALID_FOMAT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldur	x8, [x29, #-56]
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_15
; %bb.4:
	mov	w2, #0
	add	sp, sp, #1040
	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
LBB0_5:
	ldr	w0, [x20]
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.6:
	add	sp, sp, #1040
	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_Error_GetCode
LBB0_7:
	mov	w23, #256
	str	w23, [sp, #4]
	ldr	w0, [x19, #40]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_HPDF_Stream_Read
	mov	x21, x0
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.8:
	str	w23, [x19, #24]
	ldr	w0, [x20, #4]
	mov	w1, #1024
	bl	_HPDF_GetMem
	str	x0, [x19, #32]
	cbz	x0, LBB0_12
; %bb.9:
	mov	x21, x0
	ldrsw	x0, [x0]
	bl	_HPDF_PTRACE
	mov	w20, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldrsw	x0, [x8, x20]
	str	w0, [x21, x20]
	bl	_HPDF_PTRACE
	add	x20, x20, #4
	cmp	x20, #1024
	b.ne	LBB0_10
; %bb.11:
	ldr	x21, [x22]
	b	LBB0_13
LBB0_12:
	ldr	w0, [x20]
	bl	_HPDF_Error_GetCode
	mov	x21, x0
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x21
	add	sp, sp, #1040
	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:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" ParseCMAP_format0\n"

	.comm	_HPDF_SEEK_SET,4,2              ; @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_HPDF_TTF_INVALID_FOMAT,4,2     ; @HPDF_TTF_INVALID_FOMAT
	.no_dead_strip	_ParseCMAP_format0
.subsections_via_symbols
