	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_New             ## -- Begin function HPDF_TTFontDef_New
	.p2align	4, 0x90
_HPDF_TTFontDef_New:                    ## @HPDF_TTFontDef_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HPDF_MemSet
	movq	_HPDF_FONTDEF_SIG_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 36(%rbx)
	movq	_HPDF_FONTDEF_TYPE_TRUETYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_CleanFunc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_FreeFunc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HPDF_MemSet
	movq	_HPDF_FONT_STD_CHARSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	16(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_HPDF_FreeMem
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_TTFontDef_New\n"

	.comm	_HPDF_FONTDEF_SIG_BYTES,4,2     ## @HPDF_FONTDEF_SIG_BYTES
	.comm	_HPDF_FONTDEF_TYPE_TRUETYPE,4,2 ## @HPDF_FONTDEF_TYPE_TRUETYPE
	.comm	_CleanFunc,4,2                  ## @CleanFunc
	.comm	_FreeFunc,4,2                   ## @FreeFunc
	.comm	_HPDF_FONT_STD_CHARSET,4,2      ## @HPDF_FONT_STD_CHARSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_TTFontDef_New             ; -- Begin function HPDF_TTFontDef_New
	.p2align	2
_HPDF_TTFontDef_New:                    ; @HPDF_TTFontDef_New
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x20, LBB0_5
; %bb.1:
	mov	x0, x20
	mov	w1, #4
	bl	_HPDF_GetMem
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_HPDF_MemSet
Lloh2:
	adrp	x8, _HPDF_FONTDEF_SIG_BYTES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_FONTDEF_SIG_BYTES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	str	x20, [x19, #16]
Lloh5:
	adrp	x8, _HPDF_FONTDEF_TYPE_TRUETYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HPDF_FONTDEF_TYPE_TRUETYPE@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #32]
Lloh8:
	adrp	x8, _CleanFunc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CleanFunc@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _FreeFunc@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FreeFunc@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	mov	x0, x20
	mov	w1, #4
	bl	_HPDF_GetMem
	cbz	x0, LBB0_4
; %bb.3:
	str	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_HPDF_MemSet
Lloh14:
	adrp	x8, _HPDF_FONT_STD_CHARSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HPDF_FONT_STD_CHARSET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
LBB0_4:
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_HPDF_FreeMem
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_TTFontDef_New\n"

	.comm	_HPDF_FONTDEF_SIG_BYTES,4,2     ; @HPDF_FONTDEF_SIG_BYTES
	.comm	_HPDF_FONTDEF_TYPE_TRUETYPE,4,2 ; @HPDF_FONTDEF_TYPE_TRUETYPE
	.comm	_CleanFunc,4,2                  ; @CleanFunc
	.comm	_FreeFunc,4,2                   ; @FreeFunc
	.comm	_HPDF_FONT_STD_CHARSET,4,2      ; @HPDF_FONT_STD_CHARSET
.subsections_via_symbols
