	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movups	%xmm0, (%rdi)
	movq	$0, 32(%rdi)
	movslq	(%rsi), %r14
	movq	16(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	movq	_HPDF_FONTDEF_TYPE_CID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movslq	24(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_2:
	movq	16(%rax), %rcx
	subq	8(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
LBB0_3:
	leaq	-84(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_HPDF_Encoder_SetParseText
	testq	%rbx, %rbx
	jle	LBB0_4
## %bb.5:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	negq	-72(%rbp)                       ## 8-byte Folded Spill
	xorl	%r12d, %r12d
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movq	%r14, %r13
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, (%r14)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, 16(%r14)
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%r15, %r12
	movq	%r12, 8(%r13)
	incq	%rbx
	cmpq	%rbx, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_20
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-84(%rbp), %rsi
	callq	*(%rdi)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rbx,4), %edx
	movl	%edx, %r13d
	movq	_HPDF_BYTE_TYPE_LEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, %r13d
	shll	$8, %r13d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	4(%rcx,%rbx,4), %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_HPDF_BYTE_TYPE_TRIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	_HPDF_WMODE_HORIZONTAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_HPDF_FONTDEF_TYPE_CID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_HPDF_CMapEncoder_ToCID
	movq	8(%r15), %rdi
	movl	%eax, %esi
	callq	_HPDF_CIDFontDef_GetCIDWidth
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	*8(%rdi)
	movq	8(%r15), %rdi
	movl	%eax, %esi
	callq	_HPDF_TTFontDef_GetCharWidth
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r15
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, 20(%r14)
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %edi
	callq	_HPDF_IS_WHITE_SPACE
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %r13
	jmp	LBB0_19
LBB0_4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_20:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_HPDF_IS_WHITE_SPACE
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, (%r13)
LBB0_22:
	movq	%r13, %rax
	addq	$72, %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_Type0Font_TextWidth\n"

	.comm	_HPDF_FONTDEF_TYPE_CID,8,3      ## @HPDF_FONTDEF_TYPE_CID
	.comm	_HPDF_BYTE_TYPE_LEAD,8,3        ## @HPDF_BYTE_TYPE_LEAD
	.comm	_HPDF_BYTE_TYPE_TRIAL,8,3       ## @HPDF_BYTE_TYPE_TRIAL
	.comm	_HPDF_WMODE_HORIZONTAL,8,3      ## @HPDF_WMODE_HORIZONTAL
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x8
	str	xzr, [x8, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8]
	ldrsw	x24, [x0]
	ldr	x21, [x24, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x8, [x24, #8]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _HPDF_FONTDEF_TYPE_CID@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HPDF_FONTDEF_TYPE_CID@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldrsw	x8, [x8, #24]
	ldr	x8, [x8]
	ldr	x23, [x8, #8]
	b	LBB0_3
LBB0_2:
	ldp	x8, x9, [x8, #8]
	sub	x23, x9, x8
LBB0_3:
	add	x1, sp, #28
	mov	x0, x21
	mov	x2, x22
	mov	x3, x20
	bl	_HPDF_Encoder_SetParseText
	cmp	x20, #1
	b.lt	LBB0_18
; %bb.4:
	mov	x28, #0
	mov	w26, #0
	mov	w27, #0
	str	wzr, [sp, #24]                  ; 4-byte Folded Spill
	neg	x8, x23
	stp	x8, x24, [sp, #8]               ; 16-byte Folded Spill
	add	x25, x22, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, x24
	str	x28, [x19, #8]
	add	x25, x25, #4
	subs	x20, x20, #1
	b.eq	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x1, sp, #28
	mov	x0, x21
	blr	x8
	ldur	w22, [x25, #-4]
Lloh5:
	adrp	x8, _HPDF_BYTE_TYPE_LEAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HPDF_BYTE_TYPE_LEAD@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	x23, x22
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	add	w23, w8, w22, lsl #8
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x8, _HPDF_BYTE_TYPE_TRIAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_BYTE_TYPE_TRIAL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, #0
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x24, x8, [sp, #8]               ; 16-byte Folded Reload
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _HPDF_WMODE_HORIZONTAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HPDF_WMODE_HORIZONTAL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x24, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _HPDF_FONTDEF_TYPE_CID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HPDF_FONTDEF_TYPE_CID@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_HPDF_CMapEncoder_ToCID
	mov	x1, x0
	ldr	x0, [x24, #8]
	bl	_HPDF_CIDFontDef_GetCIDWidth
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	mov	x0, x21
	mov	x1, x23
	blr	x8
	mov	x1, x0
	ldr	x0, [x24, #8]
	bl	_HPDF_TTFontDef_GetCharWidth
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	str	w8, [x19, #20]
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_HPDF_IS_WHITE_SPACE
	cbz	x0, LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w27, w27, #1
	str	w27, [x19]
	add	w26, w26, #1
	str	w26, [x19, #16]
	b	LBB0_5
LBB0_18:
	mov	w27, #0
	mov	w22, #0
LBB0_19:
	mov	x0, x22
	bl	_HPDF_IS_WHITE_SPACE
	cbnz	x0, LBB0_21
; %bb.20:
	add	w8, w27, #1
	str	w8, [x19]
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, 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	" HPDF_Type0Font_TextWidth\n"

	.comm	_HPDF_FONTDEF_TYPE_CID,8,3      ; @HPDF_FONTDEF_TYPE_CID
	.comm	_HPDF_BYTE_TYPE_LEAD,8,3        ; @HPDF_BYTE_TYPE_LEAD
	.comm	_HPDF_BYTE_TYPE_TRIAL,8,3       ; @HPDF_BYTE_TYPE_TRIAL
	.comm	_HPDF_WMODE_HORIZONTAL,8,3      ; @HPDF_WMODE_HORIZONTAL
	.no_dead_strip	_TextWidth
.subsections_via_symbols
