	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_CMapEncoder_New           ## -- Begin function HPDF_CMapEncoder_New
	.p2align	4, 0x90
_HPDF_CMapEncoder_New:                  ## @HPDF_CMapEncoder_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HPDF_MemSet
	movq	40(%rbx), %rdi
	movq	_HPDF_LIMIT_MAX_NAME_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rdi, %rdx
	movq	%r12, %rsi
	callq	_HPDF_StrCpy
	movq	%r15, 32(%rbx)
	movl	(%r15), %eax
	movl	%eax, 28(%rbx)
	movq	_HPDF_ENCODER_TYPE_UNINITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_HPDF_CMapEncoder_ByteType@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_HPDF_CMapEncoder_ToUnicode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_HPDF_CMapEncoder_Write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_HPDF_CMapEncoder_Free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r14d, 4(%rbx)
	movq	_HPDF_ENCODER_SIG_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_CMapEncoder_New\n"

	.comm	_HPDF_LIMIT_MAX_NAME_LEN,8,3    ## @HPDF_LIMIT_MAX_NAME_LEN
	.comm	_HPDF_ENCODER_TYPE_UNINITIALIZED,4,2 ## @HPDF_ENCODER_TYPE_UNINITIALIZED
	.comm	_HPDF_CMapEncoder_ByteType,4,2  ## @HPDF_CMapEncoder_ByteType
	.comm	_HPDF_CMapEncoder_ToUnicode,4,2 ## @HPDF_CMapEncoder_ToUnicode
	.comm	_HPDF_CMapEncoder_Write,4,2     ## @HPDF_CMapEncoder_Write
	.comm	_HPDF_CMapEncoder_Free,4,2      ## @HPDF_CMapEncoder_Free
	.comm	_HPDF_ENCODER_SIG_BYTES,4,2     ## @HPDF_ENCODER_SIG_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_CMapEncoder_New           ; -- Begin function HPDF_CMapEncoder_New
	.p2align	2
_HPDF_CMapEncoder_New:                  ; @HPDF_CMapEncoder_New
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x21, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	w1, #4
	bl	_HPDF_GetMem
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_HPDF_MemSet
	ldr	x0, [x20, #40]
Lloh2:
	adrp	x8, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x2, x8, x0
	mov	x1, x22
	bl	_HPDF_StrCpy
	str	x21, [x20, #32]
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _HPDF_ENCODER_TYPE_UNINITIALIZED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HPDF_ENCODER_TYPE_UNINITIALIZED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh8:
	adrp	x8, _HPDF_CMapEncoder_ByteType@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_CMapEncoder_ByteType@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _HPDF_CMapEncoder_ToUnicode@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HPDF_CMapEncoder_ToUnicode@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _HPDF_CMapEncoder_Write@GOTPAGE
Lloh15:
	ldr	x10, [x10, _HPDF_CMapEncoder_Write@GOTPAGEOFF]
	stp	w9, w8, [x20, #16]
Lloh16:
	ldr	w8, [x10]
Lloh17:
	adrp	x9, _HPDF_CMapEncoder_Free@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HPDF_CMapEncoder_Free@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
Lloh20:
	adrp	x8, _HPDF_ENCODER_SIG_BYTES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HPDF_ENCODER_SIG_BYTES@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	stp	w8, w19, [x20]
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_CMapEncoder_New\n"

	.comm	_HPDF_LIMIT_MAX_NAME_LEN,8,3    ; @HPDF_LIMIT_MAX_NAME_LEN
	.comm	_HPDF_ENCODER_TYPE_UNINITIALIZED,4,2 ; @HPDF_ENCODER_TYPE_UNINITIALIZED
	.comm	_HPDF_CMapEncoder_ByteType,4,2  ; @HPDF_CMapEncoder_ByteType
	.comm	_HPDF_CMapEncoder_ToUnicode,4,2 ; @HPDF_CMapEncoder_ToUnicode
	.comm	_HPDF_CMapEncoder_Write,4,2     ; @HPDF_CMapEncoder_Write
	.comm	_HPDF_CMapEncoder_Free,4,2      ; @HPDF_CMapEncoder_Free
	.comm	_HPDF_ENCODER_SIG_BYTES,4,2     ; @HPDF_ENCODER_SIG_BYTES
.subsections_via_symbols
