	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Type1Font_New             ## -- Begin function HPDF_Type1Font_New
	.p2align	4, 0x90
_HPDF_Type1Font_New:                    ## @HPDF_Type1Font_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	(%r14), %rax
	movq	_HPDF_ENCODER_TYPE_SINGLE_BYTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	(%r13), %rax
	movq	_HPDF_FONTDEF_TYPE_TYPE1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	_HPDF_OSUBCLASS_FONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movq	_HPDF_OSUBCLASS_FONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movq	_Type1Font_OnWrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_Type1Font_OnFree@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HPDF_MemSet
	movq	%rbx, (%r15)
	movq	_HPDF_FONT_TYPE1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_HPDF_WMODE_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_Type1Font_TextWidth@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_Type1Font_MeasureText@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r13, 24(%rbx)
	movq	%r14, 16(%rbx)
	movl	%r12d, 8(%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1024, %esi                     ## imm = 0x400
	callq	_HPDF_GetMem
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	8(%r14), %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_HPDF_MemSet
	movq	(%r15), %r14
	cmpq	8(%r15), %r14
	ja	LBB0_14
## %bb.12:
	movq	%r14, %rax
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %r12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r14,4), %edx
	leaq	-112(%rbp), %rdi
	movq	%r13, %rsi
	callq	_HPDF_Type1FontDef_GetWidth
	movq	(%rbx), %rax
	movups	-112(%rbp), %xmm0
	movups	-96(%rbp), %xmm1
	movups	-80(%rbp), %xmm2
	movups	%xmm2, 32(%rax,%r12)
	movups	%xmm1, 16(%rax,%r12)
	movups	%xmm0, (%rax,%r12)
	incq	%r14
	addq	$48, %r12
	cmpq	8(%r15), %r14
	jbe	LBB0_13
LBB0_14:
	movq	24(%r13), %r15
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %r14
	movq	8(%r13), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %rbx
	addq	%r14, %rbx
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %r14
	addq	%rbx, %r14
	cmpl	$0, (%r15)
	je	LBB0_16
## %bb.15:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_20
LBB0_1:
	movl	(%rbx), %edi
	movq	_HPDF_INVALID_ENCODER_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movl	(%rbx), %edi
	movq	_HPDF_INVALID_FONTDEF_TYPE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_HPDF_SetError
LBB0_23:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	jmp	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_16:
	movl	16(%r13), %edx
	testl	%edx, %edx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_17
## %bb.18:
	leaq	L_.str.6(%rip), %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_HPDF_Dict_AddNumber
	addq	%rax, %r14
	jmp	LBB0_19
LBB0_17:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_19:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_Type1Font_CreateDescriptor
	addq	%rax, %r14
LBB0_20:
	movq	_HPDF_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %r14
	jne	LBB0_21
## %bb.22:
	movl	%ebx, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_HPDF_Xref_Add
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	cmoveq	%r14, %rbx
	jmp	LBB0_23
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_9:
	callq	_HPDF_Dict_Free
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Type1Font_New\n"

	.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_TYPE1,8,3    ## @HPDF_FONTDEF_TYPE_TYPE1
	.comm	_HPDF_INVALID_FONTDEF_TYPE,4,2  ## @HPDF_INVALID_FONTDEF_TYPE
	.comm	_HPDF_OSUBCLASS_FONT,4,2        ## @HPDF_OSUBCLASS_FONT
	.comm	_Type1Font_OnWrite,4,2          ## @Type1Font_OnWrite
	.comm	_Type1Font_OnFree,4,2           ## @Type1Font_OnFree
	.comm	_HPDF_FONT_TYPE1,4,2            ## @HPDF_FONT_TYPE1
	.comm	_HPDF_WMODE_HORIZONTAL,4,2      ## @HPDF_WMODE_HORIZONTAL
	.comm	_Type1Font_TextWidth,4,2        ## @Type1Font_TextWidth
	.comm	_Type1Font_MeasureText,4,2      ## @Type1Font_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	"Type1"

L_.str.6:                               ## @.str.6
	.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_Type1Font_New             ; -- Begin function HPDF_Type1Font_New
	.p2align	2
_HPDF_Type1Font_New:                    ; @HPDF_Type1Font_New
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x8, [x24]
Lloh2:
	adrp	x9, _HPDF_ENCODER_TYPE_SINGLE_BYTE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HPDF_ENCODER_TYPE_SINGLE_BYTE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.1:
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _HPDF_FONTDEF_TYPE_TYPE1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HPDF_FONTDEF_TYPE_TYPE1@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.2:
	mov	x0, x21
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_18
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x25, _HPDF_OSUBCLASS_FONT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _HPDF_OSUBCLASS_FONT@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x0, #16]
	orr	w8, w9, w8
	str	w8, [x0, #16]
	mov	x0, x21
	mov	w1, #4
	bl	_HPDF_GetMem
	cbz	x0, LBB0_19
; %bb.4:
	mov	x23, x0
	ldr	w8, [x25]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
Lloh10:
	adrp	x8, _Type1Font_OnWrite@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Type1Font_OnWrite@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _Type1Font_OnFree@GOTPAGE
Lloh14:
	ldr	x9, [x9, _Type1Font_OnFree@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_HPDF_MemSet
Lloh16:
	adrp	x8, _HPDF_FONT_TYPE1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HPDF_FONT_TYPE1@GOTPAGEOFF]
	str	x23, [x20]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _HPDF_WMODE_HORIZONTAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _HPDF_WMODE_HORIZONTAL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #40]
Lloh22:
	adrp	x8, _Type1Font_TextWidth@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Type1Font_TextWidth@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _Type1Font_MeasureText@GOTPAGE
Lloh26:
	ldr	x9, [x9, _Type1Font_MeasureText@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #32]
	stp	x24, x22, [x23, #16]
	str	w19, [x23, #8]
	mov	x0, x21
	mov	w1, #1024
	bl	_HPDF_GetMem
	str	x0, [x23]
	cbz	x0, LBB0_19
; %bb.5:
	ldr	x24, [x24, #8]
	mov	w1, #0
	mov	w2, #1024
	bl	_HPDF_MemSet
	ldp	x25, x8, [x24]
	cmp	x25, x8
	b.hi	LBB0_8
; %bb.6:
	add	x8, x25, x25, lsl #1
	lsl	x26, x8, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #16]
	ldr	w1, [x8, x25, lsl #2]
	mov	x8, sp
	mov	x0, x22
	bl	_HPDF_Type1FontDef_GetWidth
	ldr	x8, [x23]
	add	x8, x8, x26
	ldp	q0, q1, [sp]
	ldr	q2, [sp, #32]
	stp	q1, q2, [x8, #16]
	str	q0, [x8]
	add	x25, x25, #1
	ldr	x8, [x24, #8]
	add	x26, x26, #48
	cmp	x25, x8
	b.ls	LBB0_7
LBB0_8:
	ldr	x24, [x22, #24]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_AddName
	mov	x23, x0
	ldr	x2, [x22, #8]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_AddName
	add	x23, x0, x23
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh36:
	adrp	x2, l_.str.5@PAGE
Lloh37:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_AddName
	add	x23, x23, x0
	ldr	w8, [x24]
	cbnz	w8, LBB0_12
; %bb.9:
	ldr	w2, [x22, #16]
	cbz	w2, LBB0_11
; %bb.10:
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_AddNumber
	add	x23, x0, x23
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_Type1Font_CreateDescriptor
	add	x23, x0, x23
LBB0_12:
Lloh40:
	adrp	x21, _HPDF_OK@GOTPAGE
Lloh41:
	ldr	x21, [x21, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x23, x8
	b.ne	LBB0_19
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_HPDF_Xref_Add
	ldr	x8, [x21]
	cmp	x0, x8
	csel	x0, x20, xzr, eq
	b	LBB0_18
LBB0_14:
	ldr	w0, [x21]
Lloh42:
	adrp	x8, _HPDF_INVALID_ENCODER_TYPE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HPDF_INVALID_ENCODER_TYPE@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
	ldr	w0, [x21]
Lloh44:
	adrp	x8, _HPDF_INVALID_FONTDEF_TYPE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HPDF_INVALID_FONTDEF_TYPE@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
LBB0_17:
	mov	x0, #0
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	mov	x0, x20
	bl	_HPDF_Dict_Free
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Type1Font_New\n"

	.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_TYPE1,8,3    ; @HPDF_FONTDEF_TYPE_TYPE1
	.comm	_HPDF_INVALID_FONTDEF_TYPE,4,2  ; @HPDF_INVALID_FONTDEF_TYPE
	.comm	_HPDF_OSUBCLASS_FONT,4,2        ; @HPDF_OSUBCLASS_FONT
	.comm	_Type1Font_OnWrite,4,2          ; @Type1Font_OnWrite
	.comm	_Type1Font_OnFree,4,2           ; @Type1Font_OnFree
	.comm	_HPDF_FONT_TYPE1,4,2            ; @HPDF_FONT_TYPE1
	.comm	_HPDF_WMODE_HORIZONTAL,4,2      ; @HPDF_WMODE_HORIZONTAL
	.comm	_Type1Font_TextWidth,4,2        ; @Type1Font_TextWidth
	.comm	_Type1Font_MeasureText,4,2      ; @Type1Font_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	"Type1"

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

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