	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFont_New                ## -- Begin function HPDF_TTFont_New
	.p2align	4, 0x90
_HPDF_TTFont_New:                       ## @HPDF_TTFont_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
	subq	$24, %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, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	%r12d, %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r13
	movq	_HPDF_OSUBCLASS_FONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r13)
	movq	(%r15), %rax
	movq	_HPDF_ENCODER_TYPE_SINGLE_BYTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	movq	(%rbx), %rax
	movq	_HPDF_FONTDEF_TYPE_TRUETYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HPDF_MemSet
	movq	_HPDF_OSUBCLASS_FONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r13)
	movq	_OnWrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	_BeforeWrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_OnFree@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	%r14, (%r13)
	movq	_HPDF_FONT_TRUETYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_HPDF_WMODE_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_TextWidth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	_MeasureText@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	%rbx, 32(%r14)
	movq	%r15, 24(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r14)
	movl	%r12d, %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_HPDF_GetMem
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_HPDF_MemSet
	movl	%r12d, %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_HPDF_GetMem
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_HPDF_MemSet
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rbx
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %r14
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %rbx
	addq	%r14, %rbx
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %r14
	addq	%rbx, %r14
	movq	8(%r15), %rbx
	movl	4(%rbx), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_HPDF_Dict_AddNumber
	movq	%rax, %r12
	addq	%r14, %r12
	movl	(%rbx), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_HPDF_Dict_AddNumber
	movq	%rax, %rbx
	addq	%r12, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_HPDF_Dict_AddNumber
	addq	%rax, %rbx
LBB0_8:
	movq	_HPDF_OK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rbx
	jne	LBB0_14
## %bb.9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	callq	_HPDF_Xref_Add
	xorl	%ebx, %ebx
	cmpq	(%r14), %rax
	cmoveq	%r13, %rbx
	jmp	LBB0_16
LBB0_11:
	movl	24(%r13), %edi
	movq	_HPDF_INVALID_ENCODER_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movl	24(%r13), %edi
	movq	_HPDF_INVALID_FONTDEF_TYPE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_HPDF_SetError
	jmp	LBB0_16
LBB0_14:
	movq	%r13, %rdi
	callq	_HPDF_Dict_Free
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_TTFont_New\n"

	.comm	_HPDF_OSUBCLASS_FONT,4,2        ## @HPDF_OSUBCLASS_FONT
	.comm	_HPDF_ENCODER_TYPE_SINGLE_BYTE,8,3 ## @HPDF_ENCODER_TYPE_SINGLE_BYTE
	.comm	_HPDF_INVALID_ENCODER_TYPE,4,2  ## @HPDF_INVALID_ENCODER_TYPE
	.comm	_HPDF_FONTDEF_TYPE_TRUETYPE,8,3 ## @HPDF_FONTDEF_TYPE_TRUETYPE
	.comm	_HPDF_INVALID_FONTDEF_TYPE,4,2  ## @HPDF_INVALID_FONTDEF_TYPE
	.comm	_OnWrite,4,2                    ## @OnWrite
	.comm	_BeforeWrite,4,2                ## @BeforeWrite
	.comm	_OnFree,4,2                     ## @OnFree
	.comm	_HPDF_FONT_TRUETYPE,4,2         ## @HPDF_FONT_TRUETYPE
	.comm	_HPDF_WMODE_HORIZONTAL,4,2      ## @HPDF_WMODE_HORIZONTAL
	.comm	_TextWidth,4,2                  ## @TextWidth
	.comm	_MeasureText,4,2                ## @MeasureText
L_.str.1:                               ## @.str.1
	.asciz	"Type"

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

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

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

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

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

L_.str.7:                               ## @.str.7
	.asciz	"LastChar"

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

	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFont_New                ; -- Begin function HPDF_TTFont_New
	.p2align	2
_HPDF_TTFont_New:                       ; @HPDF_TTFont_New
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x0, x23
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_15
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x25, _HPDF_OSUBCLASS_FONT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HPDF_OSUBCLASS_FONT@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x0, #20]
	orr	w8, w9, w8
	str	w8, [x0, #20]
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _HPDF_ENCODER_TYPE_SINGLE_BYTE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HPDF_ENCODER_TYPE_SINGLE_BYTE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x21]
Lloh7:
	adrp	x9, _HPDF_FONTDEF_TYPE_TRUETYPE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HPDF_FONTDEF_TYPE_TRUETYPE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	mov	x0, x23
	mov	w1, #4
	bl	_HPDF_GetMem
	cbz	x0, LBB0_13
; %bb.4:
	mov	x24, x0
	mov	w1, #0
	mov	w2, #4
	bl	_HPDF_MemSet
	ldr	w8, [x25]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _OnWrite@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OnWrite@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh13:
	adrp	x8, _BeforeWrite@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BeforeWrite@GOTPAGEOFF]
Lloh15:
	adrp	x9, _OnFree@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OnFree@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh19:
	adrp	x8, _HPDF_FONT_TRUETYPE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HPDF_FONT_TRUETYPE@GOTPAGEOFF]
	str	x24, [x19]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _HPDF_WMODE_HORIZONTAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _HPDF_WMODE_HORIZONTAL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #48]
Lloh25:
	adrp	x8, _TextWidth@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TextWidth@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _MeasureText@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MeasureText@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #40]
	stp	x22, x21, [x24, #24]
	str	w20, [x24, #16]
	mov	x0, x23
	mov	w1, #1024
	bl	_HPDF_GetMem
	str	x0, [x24, #8]
	cbz	x0, LBB0_13
; %bb.5:
	mov	w1, #0
	mov	w2, #1024
	bl	_HPDF_MemSet
	mov	x0, x23
	mov	w1, #1024
	bl	_HPDF_GetMem
	str	x0, [x24]
	cbz	x0, LBB0_13
; %bb.6:
	mov	w1, #0
	mov	w2, #1024
	bl	_HPDF_MemSet
	ldr	x24, [x21, #16]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh33:
	adrp	x2, l_.str.2@PAGE
Lloh34:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_AddName
	mov	x23, x0
	ldr	x2, [x24]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_AddName
	add	x23, x0, x23
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_AddName
	add	x23, x23, x0
	ldr	x22, [x22, #8]
	ldr	w2, [x22, #4]
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_AddNumber
	add	x23, x23, x0
	ldr	w2, [x22]
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_AddNumber
	add	x22, x23, x0
	ldr	w2, [x21, #8]
	cbz	w2, LBB0_8
; %bb.7:
Lloh45:
	adrp	x1, l_.str.8@PAGE
Lloh46:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_AddNumber
	add	x22, x0, x22
LBB0_8:
Lloh47:
	adrp	x21, _HPDF_OK@GOTPAGE
Lloh48:
	ldr	x21, [x21, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x22, x8
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_HPDF_Xref_Add
	ldr	x8, [x21]
	cmp	x0, x8
	csel	x0, x19, xzr, eq
	b	LBB0_15
LBB0_10:
	ldr	w0, [x19, #24]
Lloh49:
	adrp	x8, _HPDF_INVALID_ENCODER_TYPE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _HPDF_INVALID_ENCODER_TYPE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19, #24]
Lloh51:
	adrp	x8, _HPDF_INVALID_FONTDEF_TYPE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _HPDF_INVALID_FONTDEF_TYPE@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_HPDF_Dict_Free
LBB0_14:
	mov	x0, #0
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_TTFont_New\n"

	.comm	_HPDF_OSUBCLASS_FONT,4,2        ; @HPDF_OSUBCLASS_FONT
	.comm	_HPDF_ENCODER_TYPE_SINGLE_BYTE,8,3 ; @HPDF_ENCODER_TYPE_SINGLE_BYTE
	.comm	_HPDF_INVALID_ENCODER_TYPE,4,2  ; @HPDF_INVALID_ENCODER_TYPE
	.comm	_HPDF_FONTDEF_TYPE_TRUETYPE,8,3 ; @HPDF_FONTDEF_TYPE_TRUETYPE
	.comm	_HPDF_INVALID_FONTDEF_TYPE,4,2  ; @HPDF_INVALID_FONTDEF_TYPE
	.comm	_OnWrite,4,2                    ; @OnWrite
	.comm	_BeforeWrite,4,2                ; @BeforeWrite
	.comm	_OnFree,4,2                     ; @OnFree
	.comm	_HPDF_FONT_TRUETYPE,4,2         ; @HPDF_FONT_TRUETYPE
	.comm	_HPDF_WMODE_HORIZONTAL,4,2      ; @HPDF_WMODE_HORIZONTAL
	.comm	_TextWidth,4,2                  ; @TextWidth
	.comm	_MeasureText,4,2                ; @MeasureText
l_.str.1:                               ; @.str.1
	.asciz	"Type"

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

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

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

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

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

l_.str.7:                               ; @.str.7
	.asciz	"LastChar"

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

	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
.subsections_via_symbols
