	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnWrite
_OnWrite:                               ## @OnWrite
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	(%rdi), %r13
	movq	(%r13), %rax
	movslq	8(%rax), %r12
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	callq	_HPDF_Stream_WriteEscapeName
	movq	_HPDF_OK@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_10
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	callq	_HPDF_Stream_WriteStr
	cmpl	(%r14), %eax
	jne	LBB0_10
## %bb.2:
	movl	%ebx, -180(%rbp)                ## 4-byte Spill
	leaq	-49(%rbp), %rbx
	movq	(%r12), %r15
	cmpq	8(%r12), %r15
	jbe	LBB0_4
## %bb.3:
	leaq	-176(%rbp), %rdi
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_HPDF_StrCpy
	leaq	-176(%rbp), %rsi
	movl	-180(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edi
	callq	_HPDF_Stream_WriteStr
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movq	(%r13), %rdi
	movl	%ebx, %esi
	callq	*(%rdi)
	jmp	LBB0_10
LBB0_4:
	leaq	-176(%rbp), %rdi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	8(%r12), %r15
	ja	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdx
	callq	_HPDF_IToA
	movq	%rax, %rdi
	movb	$32, (%rax)
	incq	%rdi
	incq	%r15
	testb	$15, %r15b
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_HPDF_StrCpy
	movl	-180(%rbp), %edi                ## 4-byte Reload
	leaq	-176(%rbp), %r14
	movq	%r14, %rsi
	callq	_HPDF_Stream_WriteStr
	movq	%r14, %rdi
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Font_OnWrite\n"

L_.str.1:                               ## @.str.1
	.asciz	"Widths"

	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
L_.str.2:                               ## @.str.2
	.asciz	" [\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"]\n"

	.no_dead_strip	_OnWrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnWrite
_OnWrite:                               ; @OnWrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldrsw	x22, [x0]
	ldr	x8, [x22]
	ldrsw	x24, [x8, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Stream_WriteEscapeName
	mov	x8, x0
Lloh7:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh8:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w0, w9
	b.ne	LBB0_9
; %bb.1:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Stream_WriteStr
	mov	x8, x0
	ldr	w9, [x23]
	cmp	w0, w9
	b.ne	LBB0_9
; %bb.2:
	add	x8, sp, #8
	add	x20, x8, #127
	ldp	x25, x8, [x24]
	add	x0, sp, #8
	cmp	x25, x8
	b.ls	LBB0_5
LBB0_3:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_HPDF_StrCpy
	add	x1, sp, #8
	mov	x0, x19
	bl	_HPDF_Stream_WriteStr
	mov	x8, x0
	ldr	w9, [x23]
	cmp	w0, w9
	b.ne	LBB0_9
; %bb.4:
	ldr	x0, [x22]
	ldr	x8, [x0]
	mov	x1, x19
	blr	x8
	mov	x8, x0
	b	LBB0_9
LBB0_5:
	mov	w26, #32
Lloh13:
	adrp	x21, l_.str.3@PAGE
Lloh14:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x24, #8]
	cmp	x25, x8
	b.hi	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x25, lsl #2]
	mov	x2, x20
	bl	_HPDF_IToA
	strb	w26, [x0], #1
	add	x25, x25, #1
	tst	x25, #0xf
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x21
	mov	x2, x20
	bl	_HPDF_StrCpy
	add	x1, sp, #8
	mov	x0, x19
	bl	_HPDF_Stream_WriteStr
	mov	x8, x0
	ldr	w9, [x23]
	add	x0, sp, #8
	cmp	w8, w9
	b.eq	LBB0_6
LBB0_9:
	ldur	x9, [x29, #-72]
Lloh15:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x8
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Font_OnWrite\n"

l_.str.1:                               ; @.str.1
	.asciz	"Widths"

	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
l_.str.2:                               ; @.str.2
	.asciz	" [\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"]\n"

	.no_dead_strip	_OnWrite
.subsections_via_symbols
