	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_BasicEncoder_New          ## -- Begin function HPDF_BasicEncoder_New
	.p2align	4, 0x90
_HPDF_BasicEncoder_New:                 ## @HPDF_BasicEncoder_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_HPDF_BasicEncoder_FindBuiltinData
	cmpl	$0, 16(%rax)
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HPDF_MemSet
	movq	(%r15), %rdi
	movq	_HPDF_LIMIT_MAX_NAME_LEN@GOTPCREL(%rip), %r13
	movslq	(%r13), %rdx
	addq	%rdi, %rdx
	movl	16(%r14), %esi
	callq	_HPDF_StrCpy
	movq	%r12, 48(%r15)
	movl	(%r12), %eax
	movl	%eax, 80(%r15)
	movq	_HPDF_ENCODER_TYPE_SINGLE_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r15)
	movq	_HPDF_BasicEncoder_ToUnicode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	movq	$0, 64(%r15)
	movq	_HPDF_BasicEncoder_Write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r15)
	movq	_HPDF_BasicEncoder_Free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %rbx
	movq	_HPDF_ENCODER_SIG_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	%rbx, 32(%r15)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HPDF_MemSet
	movq	_HPDF_BASIC_ENCODER_FIRST_CHAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_HPDF_BASIC_ENCODER_LAST_CHAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_HPDF_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rdi
	movslq	(%r13), %rdx
	addq	%rdi, %rdx
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_10
## %bb.5:
	movslq	%eax, %rcx
	leaq	l_switch.table.HPDF_BasicEncoder_New(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	leaq	l_switch.table.HPDF_BasicEncoder_New.1(%rip), %rsi
	movq	(%rsi,%rcx,8), %rbx
	jmp	LBB0_11
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_7:
	movl	(%r12), %edi
	movq	_HPDF_INVALID_ENCODING_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_HPDF_SetError
	jmp	LBB0_13
LBB0_9:
	movq	48(%r15), %rdi
	movq	%r15, %rsi
	callq	_HPDF_FreeMem
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_10:
	movq	_HPDF_UNICODE_MAP_FONT_SPECIFIC@GOTPCREL(%rip), %rbx
	movq	_HPDF_ENCODING_FONT_SPECIFIC@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	callq	_HPDF_StrCpy
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_HPDF_BasicEncoder_CopyMap
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_HPDF_BasicEncoder_OverrideMap
LBB0_13:
	movq	%r15, %rax
	addq	$8, %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_BasicEncoder_New\n"

	.comm	_HPDF_INVALID_ENCODING_NAME,4,2 ## @HPDF_INVALID_ENCODING_NAME
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,4,2    ## @HPDF_LIMIT_MAX_NAME_LEN
	.comm	_HPDF_ENCODER_TYPE_SINGLE_BYTE,4,2 ## @HPDF_ENCODER_TYPE_SINGLE_BYTE
	.comm	_HPDF_BasicEncoder_ToUnicode,4,2 ## @HPDF_BasicEncoder_ToUnicode
	.comm	_HPDF_BasicEncoder_Write,4,2    ## @HPDF_BasicEncoder_Write
	.comm	_HPDF_BasicEncoder_Free,4,2     ## @HPDF_BasicEncoder_Free
	.comm	_HPDF_ENCODER_SIG_BYTES,4,2     ## @HPDF_ENCODER_SIG_BYTES
	.comm	_HPDF_BASIC_ENCODER_FIRST_CHAR,4,2 ## @HPDF_BASIC_ENCODER_FIRST_CHAR
	.comm	_HPDF_BASIC_ENCODER_LAST_CHAR,4,2 ## @HPDF_BASIC_ENCODER_LAST_CHAR
	.comm	_HPDF_FALSE,4,2                 ## @HPDF_FALSE
	.comm	_HPDF_ENCODING_STANDARD,4,2     ## @HPDF_ENCODING_STANDARD
	.comm	_HPDF_UNICODE_MAP_STANDARD,4,2  ## @HPDF_UNICODE_MAP_STANDARD
	.comm	_HPDF_ENCODING_WIN_ANSI,4,2     ## @HPDF_ENCODING_WIN_ANSI
	.comm	_HPDF_UNICODE_MAP_WIN_ANSI,4,2  ## @HPDF_UNICODE_MAP_WIN_ANSI
	.comm	_HPDF_ENCODING_MAC_ROMAN,4,2    ## @HPDF_ENCODING_MAC_ROMAN
	.comm	_HPDF_UNICODE_MAP_MAC_ROMAN,4,2 ## @HPDF_UNICODE_MAP_MAC_ROMAN
	.comm	_HPDF_ENCODING_FONT_SPECIFIC,4,2 ## @HPDF_ENCODING_FONT_SPECIFIC
	.comm	_HPDF_UNICODE_MAP_FONT_SPECIFIC,4,2 ## @HPDF_UNICODE_MAP_FONT_SPECIFIC
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.HPDF_BasicEncoder_New
l_switch.table.HPDF_BasicEncoder_New:
	.quad	_HPDF_ENCODING_WIN_ANSI
	.quad	_HPDF_ENCODING_STANDARD
	.quad	_HPDF_ENCODING_MAC_ROMAN

	.p2align	3                               ## @switch.table.HPDF_BasicEncoder_New.1
l_switch.table.HPDF_BasicEncoder_New.1:
	.quad	_HPDF_UNICODE_MAP_WIN_ANSI
	.quad	_HPDF_UNICODE_MAP_STANDARD
	.quad	_HPDF_UNICODE_MAP_MAC_ROMAN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_BasicEncoder_New          ; -- Begin function HPDF_BasicEncoder_New
	.p2align	2
_HPDF_BasicEncoder_New:                 ; @HPDF_BasicEncoder_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, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x21, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_HPDF_BasicEncoder_FindBuiltinData
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	mov	w1, #4
	bl	_HPDF_GetMem
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_HPDF_MemSet
	ldr	x0, [x19]
Lloh2:
	adrp	x22, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x2, x0, x8
	ldr	w1, [x20, #16]
	bl	_HPDF_StrCpy
	str	x21, [x19, #48]
	ldr	w8, [x21]
	str	w8, [x19, #80]
Lloh4:
	adrp	x8, _HPDF_ENCODER_TYPE_SINGLE_BYTE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPDF_ENCODER_TYPE_SINGLE_BYTE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _HPDF_BasicEncoder_ToUnicode@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HPDF_BasicEncoder_ToUnicode@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #72]
	str	xzr, [x19, #64]
Lloh10:
	adrp	x8, _HPDF_BasicEncoder_Write@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HPDF_BasicEncoder_Write@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _HPDF_BasicEncoder_Free@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HPDF_BasicEncoder_Free@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	mov	x0, x21
	mov	w1, #4
	bl	_HPDF_GetMem
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
Lloh16:
	adrp	x8, _HPDF_ENCODER_SIG_BYTES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HPDF_ENCODER_SIG_BYTES@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	str	x0, [x19, #32]
	mov	w1, #0
	mov	w2, #4
	bl	_HPDF_MemSet
Lloh19:
	adrp	x8, _HPDF_BASIC_ENCODER_FIRST_CHAR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HPDF_BASIC_ENCODER_FIRST_CHAR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x21, #24]
Lloh22:
	adrp	x8, _HPDF_BASIC_ENCODER_LAST_CHAR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HPDF_BASIC_ENCODER_LAST_CHAR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _HPDF_FALSE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HPDF_FALSE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
	ldr	x0, [x21, #8]
	ldrsw	x8, [x22]
	add	x2, x0, x8
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_9
; %bb.5:
	sbfiz	x9, x8, #3, #32
Lloh28:
	adrp	x8, l_switch.table.HPDF_BasicEncoder_New@PAGE
Lloh29:
	add	x8, x8, l_switch.table.HPDF_BasicEncoder_New@PAGEOFF
	ldr	x8, [x8, x9]
Lloh30:
	adrp	x10, l_switch.table.HPDF_BasicEncoder_New.1@PAGE
Lloh31:
	add	x10, x10, l_switch.table.HPDF_BasicEncoder_New.1@PAGEOFF
	ldr	x21, [x10, x9]
	b	LBB0_10
LBB0_6:
	mov	x19, #0
	b	LBB0_12
LBB0_7:
	ldr	w0, [x21]
Lloh32:
	adrp	x8, _HPDF_INVALID_ENCODING_NAME@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HPDF_INVALID_ENCODING_NAME@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
	mov	x19, #0
	b	LBB0_12
LBB0_8:
	ldr	x0, [x19, #48]
	mov	x1, x19
	bl	_HPDF_FreeMem
	mov	x19, #0
	b	LBB0_12
LBB0_9:
Lloh35:
	adrp	x21, _HPDF_UNICODE_MAP_FONT_SPECIFIC@GOTPAGE
Lloh36:
	ldr	x21, [x21, _HPDF_UNICODE_MAP_FONT_SPECIFIC@GOTPAGEOFF]
Lloh37:
	adrp	x8, _HPDF_ENCODING_FONT_SPECIFIC@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HPDF_ENCODING_FONT_SPECIFIC@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	bl	_HPDF_StrCpy
	ldr	w1, [x21]
	mov	x0, x19
	bl	_HPDF_BasicEncoder_CopyMap
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_HPDF_BasicEncoder_OverrideMap
LBB0_12:
	mov	x0, x19
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_BasicEncoder_New\n"

	.comm	_HPDF_INVALID_ENCODING_NAME,4,2 ; @HPDF_INVALID_ENCODING_NAME
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,4,2    ; @HPDF_LIMIT_MAX_NAME_LEN
	.comm	_HPDF_ENCODER_TYPE_SINGLE_BYTE,4,2 ; @HPDF_ENCODER_TYPE_SINGLE_BYTE
	.comm	_HPDF_BasicEncoder_ToUnicode,4,2 ; @HPDF_BasicEncoder_ToUnicode
	.comm	_HPDF_BasicEncoder_Write,4,2    ; @HPDF_BasicEncoder_Write
	.comm	_HPDF_BasicEncoder_Free,4,2     ; @HPDF_BasicEncoder_Free
	.comm	_HPDF_ENCODER_SIG_BYTES,4,2     ; @HPDF_ENCODER_SIG_BYTES
	.comm	_HPDF_BASIC_ENCODER_FIRST_CHAR,4,2 ; @HPDF_BASIC_ENCODER_FIRST_CHAR
	.comm	_HPDF_BASIC_ENCODER_LAST_CHAR,4,2 ; @HPDF_BASIC_ENCODER_LAST_CHAR
	.comm	_HPDF_FALSE,4,2                 ; @HPDF_FALSE
	.comm	_HPDF_ENCODING_STANDARD,4,2     ; @HPDF_ENCODING_STANDARD
	.comm	_HPDF_UNICODE_MAP_STANDARD,4,2  ; @HPDF_UNICODE_MAP_STANDARD
	.comm	_HPDF_ENCODING_WIN_ANSI,4,2     ; @HPDF_ENCODING_WIN_ANSI
	.comm	_HPDF_UNICODE_MAP_WIN_ANSI,4,2  ; @HPDF_UNICODE_MAP_WIN_ANSI
	.comm	_HPDF_ENCODING_MAC_ROMAN,4,2    ; @HPDF_ENCODING_MAC_ROMAN
	.comm	_HPDF_UNICODE_MAP_MAC_ROMAN,4,2 ; @HPDF_UNICODE_MAP_MAC_ROMAN
	.comm	_HPDF_ENCODING_FONT_SPECIFIC,4,2 ; @HPDF_ENCODING_FONT_SPECIFIC
	.comm	_HPDF_UNICODE_MAP_FONT_SPECIFIC,4,2 ; @HPDF_UNICODE_MAP_FONT_SPECIFIC
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.HPDF_BasicEncoder_New
l_switch.table.HPDF_BasicEncoder_New:
	.quad	_HPDF_ENCODING_WIN_ANSI
	.quad	_HPDF_ENCODING_STANDARD
	.quad	_HPDF_ENCODING_MAC_ROMAN

	.p2align	3                               ; @switch.table.HPDF_BasicEncoder_New.1
l_switch.table.HPDF_BasicEncoder_New.1:
	.quad	_HPDF_UNICODE_MAP_WIN_ANSI
	.quad	_HPDF_UNICODE_MAP_STANDARD
	.quad	_HPDF_UNICODE_MAP_MAC_ROMAN

.subsections_via_symbols
