	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CIDFontType2_New
_CIDFontType2_New:                      ## @CIDFontType2_New
	.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
	movl	$524392, %eax                   ## imm = 0x80068
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HPDF_OK@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -524360(%rbp)             ## 8-byte Spill
	movslq	16(%rdi), %rax
	movq	8(%rax), %rcx
	movq	%rax, -524400(%rbp)             ## 8-byte Spill
	movq	16(%rax), %rax
	movq	%rax, -524368(%rbp)             ## 8-byte Spill
	movslq	24(%rax), %rax
	movq	%rax, -524424(%rbp)             ## 8-byte Spill
	movq	%rcx, -524384(%rbp)             ## 8-byte Spill
	movslq	8(%rcx), %r13
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	(%rbx), %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r12
	movl	%r15d, -524388(%rbp)            ## 4-byte Spill
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_HPDF_Xref_Add
	cmpq	(%r14), %rax
	jne	LBB0_18
## %bb.2:
	movq	%r14, %r15
	movq	%r13, -524408(%rbp)             ## 8-byte Spill
	movq	_CIDFontType2_BeforeWrite_Func@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -524416(%rbp)             ## 8-byte Spill
	movl	%eax, 12(%rbx)
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %rbx
	addq	-524360(%rbp), %rbx             ## 8-byte Folded Reload
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %r13
	addq	%rbx, %r13
	movq	-524368(%rbp), %rax             ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_HPDF_Dict_AddNumber
	movq	%rax, %rbx
	addq	%r13, %rbx
	cmpq	(%r14), %rbx
	jne	LBB0_18
## %bb.3:
	movl	(%r12), %edi
	callq	_HPDF_Array_New
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	movq	%rax, %r13
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	cmpq	(%r15), %rax
	jne	LBB0_18
## %bb.5:
	movq	-524368(%rbp), %r14             ## 8-byte Reload
	movl	16(%r14), %esi
	movq	%r13, %rdi
	callq	_HPDF_Array_AddNumber
	addq	%rbx, %rax
	movq	%rax, %rbx
	movl	16(%r14), %esi
	subl	8(%r14), %esi
	movq	%r13, %rdi
	callq	_HPDF_Array_AddNumber
	movq	%rax, %r14
	addq	%rbx, %r14
	leaq	-524336(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$524288, %edx                   ## imm = 0x80000
	callq	_HPDF_MemSet
	cmpq	(%r15), %r14
	jne	LBB0_19
## %bb.6:
	movq	%r14, -524360(%rbp)             ## 8-byte Spill
	movq	%r12, -524376(%rbp)             ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	cmpq	$256, %r15                      ## imm = 0x100
	je	LBB0_21
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	%r15d, %r12d
	shll	$8, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=2
	movl	%r12d, %eax
	orl	%r14d, %eax
	movslq	%eax, %rbx
	movq	-524368(%rbp), %rdi             ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_HPDF_TTFontDef_GetGlyphid
	movq	%rax, -524336(%rbp,%rbx,8)
	cmpq	%rbx, %r13
	cmovbeq	%rbx, %r13
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r14
	cmpq	$256, %r14                      ## imm = 0x100
	je	LBB0_7
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-524384(%rbp), %rax             ## 8-byte Reload
	movq	(%rax), %rax
	movq	_HPDF_CMapEncoder_ToUnicode@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-524408(%rbp), %rcx             ## 8-byte Reload
	movq	(%rcx), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	8(%rcx), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax,%r14,8), %rsi
	movq	-524368(%rbp), %rdi             ## 8-byte Reload
	callq	_HPDF_TTFontDef_GetGlyphid
	movq	%rax, -524336(%rbp,%rbx,8)
	cmpq	%rbx, %r13
	cmovleq	%rbx, %r13
	jmp	LBB0_10
LBB0_21:
	testq	%r13, %r13
	jle	LBB0_33
## %bb.22:
	movq	-524368(%rbp), %rax             ## 8-byte Reload
	movl	(%rax), %r12d
	movq	-524376(%rbp), %rbx             ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_HPDF_Array_New
	testq	%rax, %rax
	je	LBB0_18
## %bb.23:
	movq	%rax, %r14
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_18
## %bb.24:
	movq	%r14, -524384(%rbp)             ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_27 Depth=1
	xorl	%r14d, %r14d
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%r15, %rax
	incq	%rax
	cmpq	%rax, %r13
	je	LBB0_36
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	movq	-524336(%rbp,%rax,8), %rsi
	movq	-524368(%rbp), %rdi             ## 8-byte Reload
	callq	_HPDF_TTFontDef_GetGidWidth
	cmpl	%r12d, %eax
	je	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r14, %rdi
	testq	%r14, %r14
	jne	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	%r12d, %r14d
	movl	%eax, %r12d
	movq	-524384(%rbp), %rdi             ## 8-byte Reload
	movl	%r15d, %esi
	callq	_HPDF_Array_AddNumber
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-524376(%rbp), %rax             ## 8-byte Reload
	movl	(%rax), %edi
	callq	_HPDF_Array_New
	testq	%rax, %rax
	je	LBB0_19
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-524384(%rbp), %rdi             ## 8-byte Reload
	movq	%rax, %rsi
	movq	%rax, -524360(%rbp)             ## 8-byte Spill
	callq	_HPDF_Array_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-524360(%rbp), %rdi             ## 8-byte Reload
	movl	%r12d, %eax
	movl	%r14d, %r12d
	jne	LBB0_19
LBB0_32:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rdi, %r14
	movl	%eax, %esi
	callq	_HPDF_Array_AddNumber
	movq	%rax, -524360(%rbp)             ## 8-byte Spill
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_26
	jmp	LBB0_19
LBB0_33:
	movq	-524376(%rbp), %rax             ## 8-byte Reload
	movl	4(%rax), %edi
	movq	_HPDF_INVALID_FONTDEF_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_HPDF_SetError
	jmp	LBB0_19
LBB0_36:
	movq	-524424(%rbp), %rax             ## 8-byte Reload
	cmpq	$0, (%rax)
	movq	-524376(%rbp), %r12             ## 8-byte Reload
	movq	_HPDF_OK@GOTPCREL(%rip), %r15
	je	LBB0_42
## %bb.37:
	movl	(%r12), %edi
	movl	-524388(%rbp), %esi             ## 4-byte Reload
	callq	_HPDF_DictStream_New
	movq	-524400(%rbp), %rcx             ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.38:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	cmpq	(%r15), %rax
	jne	LBB0_18
## %bb.39:
	leaq	-524352(%rbp), %r14
	movq	%r13, %rbx
	leaq	-524336(%rbp), %r12
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	%rax, %rcx
	sarq	$8, %rcx
	movq	%rcx, -524352(%rbp)
	movq	%rax, -524344(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_HPDF_MemCpy
	addq	$8, %r12
	decq	%rbx
	jne	LBB0_40
## %bb.41:
	movq	-524400(%rbp), %rax             ## 8-byte Reload
	movq	(%rax), %rax
	movl	8(%rax), %edi
	addq	%r13, %r13
	leaq	-524336(%rbp), %rsi
	movq	%r13, %rdx
	callq	_HPDF_Stream_Write
	movq	%rax, -524360(%rbp)             ## 8-byte Spill
	cmpq	(%r15), %rax
	movq	-524376(%rbp), %r12             ## 8-byte Reload
	jne	LBB0_18
LBB0_42:
	movq	-524416(%rbp), %rbx             ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_18
## %bb.43:
	movq	%rax, %r13
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	cmpq	(%r15), %rax
	jne	LBB0_18
## %bb.44:
	movl	(%rbx), %edi
	movq	%rbx, %r15
	movq	-524408(%rbp), %rbx             ## 8-byte Reload
	movl	24(%rbx), %esi
	xorl	%edx, %edx
	callq	_HPDF_String_New
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r14
	addq	-524360(%rbp), %r14             ## 8-byte Folded Reload
	movl	(%r15), %edi
	movl	20(%rbx), %esi
	xorl	%edx, %edx
	callq	_HPDF_String_New
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	%r12, %r15
	movq	%rax, %r12
	addq	%r14, %r12
	movl	16(%rbx), %edx
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdi
	callq	_HPDF_Dict_AddNumber
	addq	%r12, %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$0, %eax
	cmovneq	%rax, %r15
	movq	%r15, %rbx
	jmp	LBB0_19
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_50
## %bb.20:
	movq	%rbx, %rax
	addq	$524392, %rsp                   ## imm = 0x80068
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_50:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_CIDFontType2_New\n"

	.comm	_CIDFontType2_BeforeWrite_Func,4,2 ## @CIDFontType2_BeforeWrite_Func
L_.str.1:                               ## @.str.1
	.asciz	"Type"

L_.str.2:                               ## @.str.2
	.asciz	"Font"

L_.str.3:                               ## @.str.3
	.asciz	"Subtype"

L_.str.4:                               ## @.str.4
	.asciz	"CIDFontType2"

L_.str.5:                               ## @.str.5
	.asciz	"DW"

L_.str.6:                               ## @.str.6
	.asciz	"DW2"

	.comm	_HPDF_CMapEncoder_ToUnicode,8,3 ## @HPDF_CMapEncoder_ToUnicode
L_.str.7:                               ## @.str.7
	.asciz	"W"

L_.str.8:                               ## @.str.8
	.asciz	"CIDToGIDMap"

	.comm	_HPDF_INVALID_FONTDEF_DATA,4,2  ## @HPDF_INVALID_FONTDEF_DATA
L_.str.9:                               ## @.str.9
	.asciz	"CIDSystemInfo"

L_.str.10:                              ## @.str.10
	.asciz	"Registry"

L_.str.11:                              ## @.str.11
	.asciz	"Ordering"

L_.str.12:                              ## @.str.12
	.asciz	"Supplement"

	.no_dead_strip	_CIDFontType2_New
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CIDFontType2_New
_CIDFontType2_New:                      ; @CIDFontType2_New
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #96
	movk	w9, #8, lsl #16
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #128, lsl #12           ; =524288
	sub	sp, sp, #96
	mov	x27, x1
	mov	x22, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh5:
	adrp	x20, _HPDF_OK@GOTPAGE
Lloh6:
	ldr	x20, [x20, _HPDF_OK@GOTPAGEOFF]
	ldr	x19, [x20]
	ldrsw	x24, [x0, #16]
	ldp	x25, x8, [x24, #8]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	ldrsw	x28, [x8, #24]
	ldrsw	x26, [x25, #8]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w0, [x22]
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_28
; %bb.1:
	mov	x21, x0
	mov	x0, x27
	mov	x1, x21
	bl	_HPDF_Xref_Add
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_27
; %bb.2:
Lloh9:
	adrp	x8, _CIDFontType2_BeforeWrite_Func@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CIDFontType2_BeforeWrite_Func@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x22, #12]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_HPDF_Dict_AddName
	add	x19, x0, x19
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh18:
	adrp	x2, l_.str.4@PAGE
Lloh19:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_HPDF_Dict_AddName
	add	x19, x19, x0
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w2, [x8]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_HPDF_Dict_AddNumber
	ldr	x8, [x20]
	add	x19, x19, x0
	cmp	x19, x8
	b.ne	LBB0_27
; %bb.3:
	ldr	w0, [x21]
	bl	_HPDF_Array_New
	cbz	x0, LBB0_28
; %bb.4:
	mov	x23, x0
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_HPDF_Dict_Add
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_27
; %bb.5:
	str	x28, [sp, #48]                  ; 8-byte Folded Spill
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
	ldr	w1, [x28, #16]
	mov	x0, x23
	bl	_HPDF_Array_AddNumber
	add	x19, x0, x19
	ldr	w8, [x28, #16]
	ldr	w9, [x28, #8]
	sub	w1, w8, w9
	mov	x0, x23
	bl	_HPDF_Array_AddNumber
	add	x19, x19, x0
	add	x28, sp, #80
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #524288
	bl	_HPDF_MemSet
	ldr	x8, [x20]
	cmp	x19, x8
	b.ne	LBB0_27
; %bb.6:
	stp	x24, x19, [sp, #24]             ; 16-byte Folded Spill
	str	w27, [sp, #20]                  ; 4-byte Folded Spill
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	str	x21, [sp, #40]                  ; 8-byte Folded Spill
	mov	x21, #0
	mov	x23, #0
Lloh24:
	adrp	x20, _HPDF_CMapEncoder_ToUnicode@GOTPAGE
Lloh25:
	ldr	x20, [x20, _HPDF_CMapEncoder_ToUnicode@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	cmp	x21, #256
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x27, #0
	lsl	w19, w21, #8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	x22, x26
	orr	w26, w19, w27
	sxtw	x24, w26
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	mov	x1, x24
	bl	_HPDF_TTFontDef_GetGlyphid
	str	x0, [x28, w26, sxtw #3]
	mov	x26, x22
	cmp	x23, x24
	csel	x23, x23, x24, hi
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x27, x27, #1
	cmp	x27, #256
	b.eq	LBB0_7
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x26]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x24, [x8, x27, lsl #3]
	cbz	x24, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x26, #8]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x1, [x8, x27, lsl #3]
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_HPDF_TTFontDef_GetGlyphid
	str	x0, [x28, x24, lsl #3]
	cmp	x23, x24
	csel	x23, x23, x24, gt
	b	LBB0_10
LBB0_14:
	cmp	x23, #1
	b.lt	LBB0_26
; %bb.15:
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w20, [x8]
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w0, [x27]
	bl	_HPDF_Array_New
	cbz	x0, LBB0_28
; %bb.16:
	mov	x22, x0
	str	x26, [sp]                       ; 8-byte Folded Spill
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x27
	mov	x2, x22
	bl	_HPDF_Dict_Add
Lloh28:
	adrp	x26, _HPDF_OK@GOTPAGE
Lloh29:
	ldr	x26, [x26, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	b.ne	LBB0_27
; %bb.17:
	mov	x25, #0
	mov	x28, #0
	add	x21, sp, #80
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x28, #0
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x25, x25, #1
	cmp	x23, x25
	b.eq	LBB0_30
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x21, x25, lsl #3]
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_HPDF_TTFontDef_GetGidWidth
	cmp	w0, w20
	b.eq	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x24, x0
	mov	x19, x28
	cbnz	x28, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_HPDF_Array_AddNumber
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w0, [x27]
	bl	_HPDF_Array_New
	cbz	x0, LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x19, x0
	mov	x0, x22
	mov	x1, x19
	bl	_HPDF_Array_Add
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x28, x19
	mov	x0, x19
	mov	x1, x24
	bl	_HPDF_Array_AddNumber
	mov	x19, x0
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_19
	b	LBB0_27
LBB0_26:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w0, [x8, #4]
Lloh30:
	adrp	x8, _HPDF_INVALID_FONTDEF_DATA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HPDF_INVALID_FONTDEF_DATA@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
LBB0_27:
	mov	x0, #0
LBB0_28:
	ldur	x8, [x29, #-96]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.29:
	add	sp, sp, #128, lsl #12           ; =524288
	add	sp, sp, #96
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_30:
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_36
; %bb.31:
	ldr	w0, [x27]
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_HPDF_DictStream_New
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x0, [x8]
	cbz	x0, LBB0_28
; %bb.32:
	mov	x2, x0
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x27
	bl	_HPDF_Dict_Add
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_27
; %bb.33:
	add	x0, sp, #80
	mov	x19, x23
	mov	x20, x0
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20], #8
	asr	x9, x8, #8
	stp	x9, x8, [sp, #64]
	add	x1, sp, #64
	mov	w2, #2
	bl	_HPDF_MemCpy
	mov	x0, x20
	subs	x19, x19, #1
	b.ne	LBB0_34
; %bb.35:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	lsl	x2, x23, #1
	add	x1, sp, #80
	bl	_HPDF_Stream_Write
	mov	x19, x0
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_27
LBB0_36:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_28
; %bb.37:
	mov	x21, x0
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x27
	mov	x2, x21
	bl	_HPDF_Dict_Add
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_27
; %bb.38:
	ldp	x28, x20, [sp]                  ; 16-byte Folded Reload
	ldr	w0, [x20]
	ldr	w1, [x28, #24]
	mov	x2, #0
	bl	_HPDF_String_New
	mov	x2, x0
Lloh40:
	adrp	x1, l_.str.10@PAGE
Lloh41:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_HPDF_Dict_Add
	add	x19, x0, x19
	ldr	w0, [x20]
	ldr	w1, [x28, #20]
	mov	x2, #0
	bl	_HPDF_String_New
	mov	x2, x0
Lloh42:
	adrp	x1, l_.str.11@PAGE
Lloh43:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_HPDF_Dict_Add
	add	x19, x19, x0
	ldr	w2, [x28, #16]
Lloh44:
	adrp	x1, l_.str.12@PAGE
Lloh45:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x21
	bl	_HPDF_Dict_AddNumber
	ldr	x8, [x26]
	add	x9, x19, x0
	cmp	x9, x8
	csel	x0, x27, xzr, eq
	b	LBB0_28
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_CIDFontType2_New\n"

	.comm	_CIDFontType2_BeforeWrite_Func,4,2 ; @CIDFontType2_BeforeWrite_Func
l_.str.1:                               ; @.str.1
	.asciz	"Type"

l_.str.2:                               ; @.str.2
	.asciz	"Font"

l_.str.3:                               ; @.str.3
	.asciz	"Subtype"

l_.str.4:                               ; @.str.4
	.asciz	"CIDFontType2"

l_.str.5:                               ; @.str.5
	.asciz	"DW"

l_.str.6:                               ; @.str.6
	.asciz	"DW2"

	.comm	_HPDF_CMapEncoder_ToUnicode,8,3 ; @HPDF_CMapEncoder_ToUnicode
l_.str.7:                               ; @.str.7
	.asciz	"W"

l_.str.8:                               ; @.str.8
	.asciz	"CIDToGIDMap"

	.comm	_HPDF_INVALID_FONTDEF_DATA,4,2  ; @HPDF_INVALID_FONTDEF_DATA
l_.str.9:                               ; @.str.9
	.asciz	"CIDSystemInfo"

l_.str.10:                              ; @.str.10
	.asciz	"Registry"

l_.str.11:                              ; @.str.11
	.asciz	"Ordering"

l_.str.12:                              ; @.str.12
	.asciz	"Supplement"

	.no_dead_strip	_CIDFontType2_New
.subsections_via_symbols
