	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_BasicEncoder_Write        ## -- Begin function HPDF_BasicEncoder_Write
	.p2align	4, 0x90
_HPDF_BasicEncoder_Write:               ## @HPDF_BasicEncoder_Write
	.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	%esi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	(%rdi), %r13
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	40(%r13), %edi
	movq	_HPDF_ENCODING_FONT_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HPDF_StrCmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rax
	movq	_HPDF_TRUE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movl	%r14d, %edi
	callq	_HPDF_Stream_WriteStr
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.6:
	movl	40(%r13), %esi
	movl	%r14d, %edi
	callq	_HPDF_Stream_WriteEscapeName
	movq	_HPDF_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_17
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	callq	_HPDF_Stream_WriteStr
	cmpq	(%rbx), %rax
	jne	LBB0_17
## %bb.8:
	movq	(%r13), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_17
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	callq	_HPDF_Stream_WriteStr
	cmpq	(%rbx), %rax
	jne	LBB0_17
## %bb.10:
	movq	8(%r13), %rbx
	movq	16(%r13), %rax
	jmp	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r13), %rax
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rbx
	ja	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	24(%r13), %rcx
	cmpl	$1, (%rcx,%rbx,4)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_HPDF_TEXT_DEFAULT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	32(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_HPDF_UnicodeToGryphName
	movq	%rax, %r12
	movq	_HPDF_TEXT_DEFAULT_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r15,%rax), %rdx
	decq	%rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_HPDF_IToA
	movw	$12064, (%rax)                  ## imm = 0x2F20
	leaq	2(%rax), %rdi
	movq	_HPDF_TEXT_DEFAULT_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r15,%rax), %rdx
	decq	%rdx
	movq	%r12, %rsi
	callq	_HPDF_StrCpy
	movw	$32, (%rax)
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	_HPDF_OK@GOTPCREL(%rip), %r15
	callq	_HPDF_Stream_WriteStr
	cmpq	(%r15), %rax
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	je	LBB0_14
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	callq	_HPDF_Stream_WriteStr
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_BasicEncoder_Write\n"

	.comm	_HPDF_ENCODING_FONT_SPECIFIC,4,2 ## @HPDF_ENCODING_FONT_SPECIFIC
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.comm	_HPDF_TRUE,8,3                  ## @HPDF_TRUE
L_.str.1:                               ## @.str.1
	.asciz	"/Encoding <<\n/Type /Encoding\n/BaseEncoding "

L_.str.2:                               ## @.str.2
	.asciz	"/Encoding "

L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"/Differences ["

	.comm	_HPDF_TEXT_DEFAULT_LEN,4,2      ## @HPDF_TEXT_DEFAULT_LEN
L_.str.5:                               ## @.str.5
	.asciz	"]\n>>\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_BasicEncoder_Write        ; -- Begin function HPDF_BasicEncoder_Write
	.p2align	2
_HPDF_BasicEncoder_Write:               ; @HPDF_BasicEncoder_Write
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldrsw	x23, [x0]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w0, [x23, #40]
Lloh5:
	adrp	x8, _HPDF_ENCODING_FONT_SPECIFIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HPDF_ENCODING_FONT_SPECIFIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_HPDF_StrCmp
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x23]
Lloh8:
	adrp	x20, _HPDF_TRUE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _HPDF_TRUE@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh10:
	adrp	x24, _HPDF_OK@GOTPAGE
Lloh11:
	ldr	x24, [x24, _HPDF_OK@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	b	LBB0_12
LBB0_4:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_HPDF_Stream_WriteStr
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.6:
	ldr	w1, [x23, #40]
	mov	x0, x19
	bl	_HPDF_Stream_WriteEscapeName
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.7:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Stream_WriteStr
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.8:
	ldr	x8, [x23]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Stream_WriteStr
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.10:
	ldp	x20, x8, [x23, #8]
	cmp	x20, x8
	b.ls	LBB0_14
LBB0_11:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Stream_WriteStr
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.13:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh28:
	adrp	x25, _HPDF_TEXT_DEFAULT_LEN@GOTPAGE
Lloh29:
	ldr	x25, [x25, _HPDF_TEXT_DEFAULT_LEN@GOTPAGEOFF]
	mov	w27, #32
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x23, #16]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x20, x20, #1
	cmp	x20, x8
	b.hi	LBB0_11
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #24]
	ldr	w9, [x9, x20, lsl #2]
	cmp	w9, #1
	b.ne	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x28, sp
	ldr	w8, [x25]
	mov	x9, x8
Lloh30:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh31:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x23, #32]
	ldr	w0, [x8, x20, lsl #2]
	bl	_HPDF_UnicodeToGryphName
	mov	x22, x0
	ldrsw	x8, [x25]
	sub	x26, x21, #1
	add	x2, x26, x8
	mov	x0, x21
	mov	x1, x20
	bl	_HPDF_IToA
	mov	w8, #12064
	strh	w8, [x0], #2
	ldrsw	x8, [x25]
	add	x2, x26, x8
	mov	x1, x22
	bl	_HPDF_StrCpy
	strh	w27, [x0]
	mov	x0, x19
	mov	x1, x21
	bl	_HPDF_Stream_WriteStr
	ldr	x8, [x24]
	mov	sp, x28
	cmp	x0, x8
	b.eq	LBB0_15
	b	LBB0_12
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_BasicEncoder_Write\n"

	.comm	_HPDF_ENCODING_FONT_SPECIFIC,4,2 ; @HPDF_ENCODING_FONT_SPECIFIC
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_HPDF_TRUE,8,3                  ; @HPDF_TRUE
l_.str.1:                               ; @.str.1
	.asciz	"/Encoding <<\n/Type /Encoding\n/BaseEncoding "

l_.str.2:                               ; @.str.2
	.asciz	"/Encoding "

l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"/Differences ["

	.comm	_HPDF_TEXT_DEFAULT_LEN,4,2      ; @HPDF_TEXT_DEFAULT_LEN
l_.str.5:                               ; @.str.5
	.asciz	"]\n>>\n"

.subsections_via_symbols
