	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TextWidth
_TextWidth:                             ## @TextWidth
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movslq	4(%rsi), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movups	%xmm0, (%rdi)
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	incq	%r14
	cmpq	%r14, %rbx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %r13d
	leal	1(%r14), %eax
	movl	%eax, 12(%r15)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_CharWidth
	movq	%rax, %r12
	addl	%ebx, %r12d
	movl	%r12d, 8(%r15)
	movl	%r13d, %edi
	callq	_HPDF_IS_WHITE_SPACE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, 4(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r15)
	jmp	LBB0_6
LBB0_7:
	movl	(%r15), %edi
	movq	_HPDF_FONT_INVALID_WIDTHS_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_HPDF_SetError
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movl	%r13d, %edi
	callq	_HPDF_IS_WHITE_SPACE
	testq	%rax, %rax
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movl	%ecx, (%rax)
LBB0_11:
	addq	$56, %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_TTFont_TextWidth\n"

	.comm	_HPDF_FONT_INVALID_WIDTHS_TABLE,4,2 ## @HPDF_FONT_INVALID_WIDTHS_TABLE
	.no_dead_strip	_TextWidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TextWidth
_TextWidth:                             ; @TextWidth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x19, x8
	ldrsw	x23, [x0, #4]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.1:
	cbz	x20, LBB0_7
; %bb.2:
	movi.2d	v1, #0000000000000000
	movi.2d	v0, #0000000000000000
	stp	q1, q0, [sp]                    ; 32-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #4
	subs	x20, x20, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x22]
	mov	x0, x21
	mov	x1, x23
	bl	_CharWidth
	movi.2s	v0, #1
	mov.s	v0[0], w0
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v1, v1, v0
	str	q1, [sp, #16]                   ; 16-byte Folded Spill
	str	d1, [x19, #8]
	mov	x0, x23
	bl	_HPDF_IS_WHITE_SPACE
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	q0, [sp]                        ; 16-byte Folded Spill
	str	d0, [x19]
	b	LBB0_3
LBB0_6:
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _HPDF_FONT_INVALID_WIDTHS_TABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPDF_FONT_INVALID_WIDTHS_TABLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
LBB0_7:
	mov	w23, #0
	mov	w20, #1
	b	LBB0_9
LBB0_8:
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	fmov	w8, s0
	add	w20, w8, #1
LBB0_9:
	mov	x0, x23
	bl	_HPDF_IS_WHITE_SPACE
	cbnz	x0, LBB0_11
; %bb.10:
	str	w20, [x19]
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_TTFont_TextWidth\n"

	.comm	_HPDF_FONT_INVALID_WIDTHS_TABLE,4,2 ; @HPDF_FONT_INVALID_WIDTHS_TABLE
	.no_dead_strip	_TextWidth
.subsections_via_symbols
