	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Type1Font_MeasureText
_Type1Font_MeasureText:                 ## @Type1Font_MeasureText
	.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
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movslq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%r15, %r15
	je	LBB0_11
## %bb.1:
	cmpq	$0, 32(%rbp)
	sete	%al
	cmpl	$0, 24(%rbp)
	setne	%cl
	orb	%al, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %r14
	movq	%r14, %rdi
	callq	_HPDF_IS_WHITE_SPACE
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, (%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r12), %rbx
	addl	16(%rbp), %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 24(%rbp)
	cmoveq	%r12, %rbx
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbp), %rax
	movl	%r13d, (%rax)
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$10, %r14
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %eax
	imull	-56(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	addl	%r13d, %eax
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%r12, %r12
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	$0, %edx
	cmovel	%edx, %ecx
	addl	%ecx, %eax
	incq	%r12
	movl	%eax, %r13d
	cmpq	%r12, %r15
	jne	LBB0_2
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	movq	32(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.13:
	movl	%eax, (%rcx)
	jmp	LBB0_16
LBB0_15:
	movq	%rbx, %r15
LBB0_16:
	movq	%r15, %rax
	addq	$40, %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_Type1Font_MeasureText\n"

	.no_dead_strip	_Type1Font_MeasureText
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Type1Font_MeasureText
_Type1Font_MeasureText:                 ; @Type1Font_MeasureText
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, x7
	stp	w6, w5, [sp, #8]                ; 8-byte Folded Spill
	mov	x23, x4
	mov	x24, x3
	mov	x22, x2
	mov	x25, x1
	ldr	x27, [x29, #16]
	ldrsw	x28, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	w21, #0
	cbz	x22, LBB0_11
; %bb.1:
	mov	x20, #0
	mov	x19, #0
	cmp	w26, #0
	ccmp	x27, #0, #4, eq
	cset	w8, eq
	stp	w8, w26, [sp]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x25, x20, lsl #3]
	mov	x0, x26
	bl	_HPDF_IS_WHITE_SPACE
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x27, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w21, [x27]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x20, #1
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	add	w21, w21, w8
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w8, #0
	csel	x19, x19, x20, ne
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w21, [x27]
	mov	x19, x20
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x26, #10
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	ldr	w8, [x8, x26, lsl #2]
	mul	w8, w8, w23
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	add	w8, w8, w21
	cmp	w8, w24
	b.gt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x20, #0
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	csel	w9, wzr, w9, eq
	add	w21, w8, w9
	add	x20, x20, #1
	cmp	x22, x20
	b.ne	LBB0_2
LBB0_11:
	cbz	x27, LBB0_14
; %bb.12:
	str	w21, [x27]
	b	LBB0_14
LBB0_13:
	mov	x22, x19
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Type1Font_MeasureText\n"

	.no_dead_strip	_Type1Font_MeasureText
.subsections_via_symbols
