	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseCMap
_ParseCMap:                             ## @ParseCMap
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movslq	4(%rdi), %r12
	leaq	L_.str(%rip), %rsi
	callq	_FindTable
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r14, %r14
	je	LBB0_25
## %bb.1:
	movl	(%r12), %edi
	movq	(%r14), %rsi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_HPDF_Stream_Seek
	movq	%rax, %r13
	movq	_HPDF_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_24
## %bb.2:
	movl	(%r12), %edi
	leaq	-136(%rbp), %rsi
	callq	_GetUINT16
	movq	%rbx, %rcx
	movq	%rax, %rbx
	addq	%r13, %rbx
	cmpq	(%rcx), %rbx
	jne	LBB0_3
## %bb.4:
	cmpq	$0, -136(%rbp)
	je	LBB0_5
LBB0_22:
	movl	(%r15), %edi
	movq	_HPDF_TTF_INVALID_FOMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_HPDF_SetError
	jmp	LBB0_23
LBB0_25:
	movl	(%r15), %edi
	movq	_HPDF_TTF_MISSING_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_5:
	movl	(%r12), %edi
	leaq	-64(%rbp), %rsi
	callq	_GetUINT16
	movq	%rax, %r13
	addq	%rbx, %r13
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_3
## %bb.6:
	cmpq	$0, -64(%rbp)
	jle	LBB0_21
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	leaq	-128(%rbp), %rsi
	callq	_GetUINT16
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	(%r12), %edi
	leaq	-120(%rbp), %rsi
	callq	_GetUINT16
	movq	%rax, %r13
	addq	%rbx, %r13
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_GetUINT32
	addq	%r13, %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %edi
	callq	_HPDF_Stream_Tell
	testq	%rax, %rax
	js	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi
	addq	(%r14), %rsi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_HPDF_Stream_Seek
	cmpq	(%rbx), %rax
	jne	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %edi
	leaq	-112(%rbp), %rsi
	callq	_GetUINT16
	cmpq	(%rbx), %rax
	jne	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rdi
	callq	_HPDF_PTRACE
	movq	-128(%rbp), %rbx
	movq	-120(%rbp), %rcx
	movq	-112(%rbp), %rax
	movq	-48(%rbp), %r13
	cmpq	$3, %rbx
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$1, %rcx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$4, %rax
	je	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_HPDF_Stream_Seek
	movq	%rax, %r13
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	xorq	$1, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	xorq	$1, %rax
	orq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	orq	%rax, %rbx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmoveq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	cmpq	-64(%rbp), %rax
	jl	LBB0_8
	jmp	LBB0_17
LBB0_3:
	movl	(%r15), %edi
	callq	_HPDF_Error_GetCode
LBB0_23:
	movq	%rax, %r13
LBB0_24:
	movq	%r13, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	testq	%r13, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_17
## %bb.20:
	leaq	L_.str.3(%rip), %rdi
	callq	_HPDF_PTRACE
	addq	(%r14), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ParseCMAP_format4
	jmp	LBB0_23
LBB0_17:
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.18:
	leaq	L_.str.4(%rip), %rdi
	callq	_HPDF_PTRACE
	addq	(%r14), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ParseCMAP_format0
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str.5(%rip), %rdi
	callq	_HPDF_PTRACE
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmap"

L_.str.1:                               ## @.str.1
	.asciz	" HPDF_TTFontDef_ParseCMap\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
	.comm	_HPDF_TTF_INVALID_FOMAT,4,2     ## @HPDF_TTF_INVALID_FOMAT
L_.str.3:                               ## @.str.3
	.asciz	" found microsoft unicode cmap.\n"

L_.str.4:                               ## @.str.4
	.asciz	" found byte encoding cmap.\n"

L_.str.5:                               ## @.str.5
	.asciz	" cannot found target cmap.\n"

	.no_dead_strip	_ParseCMap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseCMap
_ParseCMap:                             ; @ParseCMap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x23, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_FindTable
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x20, LBB0_5
; %bb.1:
	ldr	w0, [x23]
	ldr	x1, [x20]
Lloh4:
	adrp	x24, _HPDF_SEEK_SET@GOTPAGE
Lloh5:
	ldr	x24, [x24, _HPDF_SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_HPDF_Stream_Seek
	mov	x21, x0
Lloh6:
	adrp	x25, _HPDF_OK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.2:
	ldr	w0, [x23]
	add	x1, sp, #56
	bl	_GetUINT16
	ldr	x8, [x25]
	add	x21, x0, x21
	cmp	x21, x8
	b.ne	LBB0_18
; %bb.3:
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_6
LBB0_4:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _HPDF_TTF_INVALID_FOMAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_TTF_INVALID_FOMAT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
	b	LBB0_19
LBB0_5:
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _HPDF_TTF_MISSING_TABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_TTF_MISSING_TABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #1
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_HPDF_SetError
LBB0_6:
	ldr	w0, [x23]
	add	x1, sp, #48
	bl	_GetUINT16
	ldr	x8, [x25]
	add	x21, x0, x21
	cmp	x21, x8
	b.ne	LBB0_18
; %bb.7:
	ldr	x8, [sp, #48]
	cmp	x8, #1
	b.lt	LBB0_25
; %bb.8:
	mov	x26, #0
	mov	x27, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	add	x1, sp, #40
	bl	_GetUINT16
	add	x21, x0, x21
	ldr	w0, [x23]
	add	x1, sp, #32
	bl	_GetUINT16
	add	x21, x21, x0
	ldr	w0, [x23]
	add	x1, sp, #16
	bl	_GetUINT32
	ldr	x8, [x25]
	add	x9, x21, x0
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23]
	bl	_HPDF_Stream_Tell
	tbnz	x0, #63, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x22, x0
	ldr	w0, [x23]
	ldr	x8, [x20]
	ldr	x9, [sp, #16]
	add	x1, x9, x8
	ldr	w2, [x24]
	bl	_HPDF_Stream_Seek
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23]
	add	x1, sp, #24
	bl	_GetUINT16
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	stp	x27, x26, [sp]                  ; 16-byte Folded Spill
	ldr	x0, [sp, #16]
	bl	_HPDF_PTRACE
	ldp	x26, x28, [sp, #32]
	ldp	x24, x27, [sp, #16]
	cmp	x28, #3
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x26, #1
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x27, #4
	b.eq	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23]
Lloh14:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_HPDF_Stream_Seek
	mov	x21, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x27, #1
	ccmp	x26, #0, #0, eq
	ccmp	x28, #1, #0, eq
	ldp	x27, x26, [sp]                  ; 16-byte Folded Reload
	csel	x26, x24, x26, eq
	add	x27, x27, #1
	ldr	x8, [sp, #48]
	cmp	x27, x8
Lloh17:
	adrp	x24, _HPDF_SEEK_SET@GOTPAGE
Lloh18:
	ldr	x24, [x24, _HPDF_SEEK_SET@GOTPAGEOFF]
	b.lt	LBB0_9
	b	LBB0_23
LBB0_18:
	ldr	w0, [x19]
	bl	_HPDF_Error_GetCode
LBB0_19:
	mov	x21, x0
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_21:
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x24, LBB0_23
; %bb.22:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x8, [x20]
	add	x1, x8, x24
	mov	x0, x19
	bl	_ParseCMAP_format4
	b	LBB0_19
LBB0_23:
	cbz	x26, LBB0_25
; %bb.24:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x8, [x20]
	add	x1, x8, x26
	mov	x0, x19
	bl	_ParseCMAP_format0
	b	LBB0_19
LBB0_25:
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_HPDF_PTRACE
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmap"

l_.str.1:                               ; @.str.1
	.asciz	" HPDF_TTFontDef_ParseCMap\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
	.comm	_HPDF_TTF_INVALID_FOMAT,4,2     ; @HPDF_TTF_INVALID_FOMAT
l_.str.3:                               ; @.str.3
	.asciz	" found microsoft unicode cmap.\n"

l_.str.4:                               ; @.str.4
	.asciz	" found byte encoding cmap.\n"

l_.str.5:                               ; @.str.5
	.asciz	" cannot found target cmap.\n"

	.no_dead_strip	_ParseCMap
.subsections_via_symbols
