	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RecreateGLYF
_RecreateGLYF:                          ## @RecreateGLYF
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movslq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	cmpq	$0, (%r14)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rsp, %r13
	movq	_HPDF_STREAM_BUF_SIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	24(%r14), %rax
	cmpl	$1, (%rax,%r15,4)
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax,%r15,4), %r13d
	movl	4(%rax,%r15,4), %r12d
	subl	%r13d, %r12d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, (%rdx,%r15,4)
	cmpq	$0, 8(%r14)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, (%rdx,%r15,4)
	addl	%r12d, %r12d
	movl	%ecx, %eax
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %rdi
	callq	_HPDF_PTRACE
	cmpq	$0, 8(%r14)
	sete	%cl
	shll	%cl, %r13d
	addl	40(%r14), %r13d
	movl	16(%r14), %edi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %esi
	callq	_HPDF_Stream_Seek
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_HPDF_STREAM_BUF_SIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %r12d
	cmovll	%r12d, %edx
	movl	%edx, -52(%rbp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_HPDF_MemSet
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	leaq	-52(%rbp), %rdx
	callq	_HPDF_Stream_Read
	movq	_HPDF_OK@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	-52(%rbp), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_HPDF_Stream_Write
	cmpl	(%r13), %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	subl	-52(%rbp), %r12d
	jg	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	subl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	cmpq	$0, 8(%r14)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	movl	%eax, %r12d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax,%r15,4)
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movq	%r13, %rsp
	movq	(%r14), %rax
	cmpq	%rax, %r15
	jb	LBB0_3
	jmp	LBB0_16
LBB0_10:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rsp
	jmp	LBB0_17
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
LBB0_16:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, (%rcx,%rax,4)
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
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	" RecreateGLYF\n"

	.comm	_HPDF_STREAM_BUF_SIZ,4,2        ## @HPDF_STREAM_BUF_SIZ
	.comm	_HPDF_SEEK_SET,4,2              ## @HPDF_SEEK_SET
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
	.no_dead_strip	_RecreateGLYF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RecreateGLYF
_RecreateGLYF:                          ; @RecreateGLYF
	.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	x20, x2
	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]
	ldr	w8, [x2]
	stur	w8, [x29, #-96]                 ; 4-byte Folded Spill
	ldrsw	x24, [x0]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x8, [x24]
Lloh5:
	adrp	x22, _HPDF_OK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _HPDF_OK@GOTPAGEOFF]
	mov	w13, #0
	cbz	x8, LBB0_13
; %bb.1:
	mov	x12, #0
Lloh7:
	adrp	x26, _HPDF_STREAM_BUF_SIZ@GOTPAGE
Lloh8:
	ldr	x26, [x26, _HPDF_STREAM_BUF_SIZ@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x25, sp
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x24, #24]
	ldr	w8, [x8, x12, lsl #2]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #32]
	lsl	x9, x12, #2
	ldr	w23, [x8, x9]
	add	x28, x12, #1
	ldr	w8, [x8, x28, lsl #2]
	sub	w27, w8, w23
	ldr	w8, [x20]
	ldur	w10, [x29, #-96]                ; 4-byte Folded Reload
	sub	w8, w8, w10
	str	w8, [x19, x9]
	ldr	x9, [x24, #8]
	cbnz	x9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x19, x12, lsl #2]
	lsl	w27, w27, #1
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x0, w8
	bl	_HPDF_PTRACE
	ldr	x8, [x24, #8]
	cmp	x8, #0
	cset	w8, eq
	lsl	w8, w23, w8
	ldr	w9, [x24, #40]
	add	w1, w8, w9
	ldr	w0, [x24, #16]
Lloh11:
	adrp	x8, _HPDF_SEEK_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_SEEK_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_HPDF_Stream_Seek
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w27, #1
	b.lt	LBB0_10
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x26]
	cmp	w27, w8
	csel	w2, w27, w8, lt
	stur	w2, [x29, #-92]
	mov	x0, x21
	mov	w1, #0
	bl	_HPDF_MemSet
	ldr	w0, [x24, #16]
	sub	x2, x29, #92
	mov	x1, x21
	bl	_HPDF_Stream_Read
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldur	w2, [x29, #-92]
	mov	x0, x20
	mov	x1, x21
	bl	_HPDF_Stream_Write
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldur	w8, [x29, #-92]
	sub	w27, w27, w8
	cmp	w27, #0
	b.gt	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	ldur	w9, [x29, #-96]                 ; 4-byte Folded Reload
	sub	w8, w8, w9
	ldr	x9, [x24, #8]
	cmp	w8, #0
	cinc	w10, w8, lt
	asr	w10, w10, #1
	cmp	x9, #0
	csel	w13, w10, w8, eq
	mov	x12, x28
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w13, [x19, x12, lsl #2]
	add	x12, x12, #1
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	sp, x25
	ldr	x8, [x24]
	cmp	x12, x8
	b.lo	LBB0_2
LBB0_13:
	str	w13, [x19, x8, lsl #2]
	ldr	w0, [x22]
	b	LBB0_15
LBB0_14:
	mov	sp, x25
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" RecreateGLYF\n"

	.comm	_HPDF_STREAM_BUF_SIZ,4,2        ; @HPDF_STREAM_BUF_SIZ
	.comm	_HPDF_SEEK_SET,4,2              ; @HPDF_SEEK_SET
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
	.no_dead_strip	_RecreateGLYF
.subsections_via_symbols
