	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function vita2d_font_render_line
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vita2d_font_render_line:               ## @vita2d_font_render_line
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movl	4(%rdi), %r15d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	%xmm1, %xmm0
	callq	_roundf
	movl	%eax, %r14d
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	-44(%rbp), %xmm1                ## 4-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15, %xmm0
	mulss	%xmm1, %xmm0
	callq	_roundf
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%eax, %r15d
	cmpl	$129, %r12d
	je	LBB0_3
## %bb.1:
	cmpl	$128, %r12d
	jne	LBB0_4
## %bb.2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_vita2d_font_get_message_width
	subl	%eax, %r14d
LBB0_4:
	testl	%ebx, %ebx
	jne	LBB0_5
	jmp	LBB0_19
LBB0_3:
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_vita2d_font_get_message_width
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r14d
	testl	%ebx, %ebx
	je	LBB0_19
LBB0_5:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	movss	%xmm0, -60(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, (%r14)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	movq	-128(%rbp), %r10                ## 8-byte Reload
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	movl	-84(%rbp), %r8d                 ## 4-byte Reload
	movl	-80(%rbp), %r9d                 ## 4-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %esi                 ## 4-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %edi
	addl	%r15d, %esi
	xorps	%xmm0, %xmm0
	cvtsi2ss	%esi, %xmm0
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	addss	-64(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	addl	%ebx, %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	mulss	%xmm1, %xmm0
	addss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %edx
	movaps	%xmm1, %xmm0
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	%r10
	callq	_vita2d_draw_texture_tint_part_scale
	addq	$16, %rsp
	addl	32(%r13), %r15d
	addl	24(%r13), %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	%r12d, %r14d
	incl	%r14d
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r14d
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jae	LBB0_19
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	movl	%r14d, %ebx
	addq	%r13, %rbx
	movq	%rbx, -104(%rbp)
	leaq	-104(%rbp), %rdi
	callq	_utf8_walk
	movl	-104(%rbp), %r12d
	subl	%ebx, %r12d
	subl	$1, %r12d
	movl	$0, %ecx
	cmovbl	%ecx, %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rcx
	movl	16(%rbx), %edi
	movsbl	%al, %esi
	callq	*(%rcx)
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rbx), %rax
	movl	16(%rbx), %edi
	movl	$63, %esi
	callq	*(%rax)
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_18
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %esi
	movl	4(%r13), %edx
	movl	8(%r13), %ecx
	movl	12(%r13), %r8d
	movl	16(%r13), %r9d
	movl	20(%r13), %r10d
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	%r9d, -80(%rbp)                 ## 4-byte Spill
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	movq	%r10, -128(%rbp)                ## 8-byte Spill
	movl	%r15d, -92(%rbp)                ## 4-byte Spill
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_vita2d_texture_get_stride
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_vita2d_texture_get_datap
	movq	8(%rbx), %r14
	movl	8(%r14), %r10d
	testl	%r10d, %r10d
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %ecx
	movq	16(%r14), %r15
	movl	4(%r14), %r9d
	movl	%ecx, %r8d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	%r9d, %esi
	xorl	%r11d, %r11d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	%r11d
	addq	%r8, %rdi
	addq	%r9, %rbx
	cmpl	%r10d, %r11d
	jae	LBB0_16
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	testl	%esi, %esi
	movl	$0, %esi
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%rbx,%rcx), %esi
	movl	(%r15,%rsi,4), %esi
	leal	(%rdi,%rcx), %edx
	movl	%esi, (%rax,%rdx,4)
	incq	%rcx
	movl	4(%r14), %esi
	cmpq	%rsi, %rcx
	jb	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	8(%r14), %r10d
	jmp	LBB0_15
LBB0_19:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vita2d_font_render_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vita2d_font_render_line
_vita2d_font_render_line:               ; @vita2d_font_render_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x25, x5
	fmov	s9, s2
	str	w4, [sp, #24]                   ; 4-byte Folded Spill
	fmov	s8, s0
	mov	x28, x3
	mov	x21, x2
	mov	x22, x1
	ldp	s0, s10, [x0]
	ucvtf	s0, s0
	fmul	s0, s0, s1
	bl	_roundf
	mov	x23, x0
	fmov	s0, #1.00000000
	fsub	s0, s0, s9
	ucvtf	s1, s10
	fmul	s0, s0, s1
	bl	_roundf
	mov	x24, x0
	cmp	w25, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w25, #128
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x28
	fmov	s0, s8
	bl	_vita2d_font_get_message_width
	sub	w23, w23, w0
LBB0_3:
	cbnz	w28, LBB0_5
	b	LBB0_19
LBB0_4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x28
	fmov	s0, s8
	bl	_vita2d_font_get_message_width
	cmp	w0, #0
	cinc	w8, w0, lt
	sub	w23, w23, w8, asr #1
	cbz	w28, LBB0_19
LBB0_5:
	mov	w20, #0
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
	scvtf	s9, w23
	scvtf	s10, w24
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	wzr, [x8]
	ldr	w28, [sp, #12]                  ; 4-byte Folded Reload
	mov	x3, x24
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x22]
	mov	x24, x28
	ldr	w28, [sp, #36]                  ; 4-byte Folded Reload
	add	w8, w21, w28
	scvtf	s0, w8
	fmadd	s0, s0, s8, s9
	fcvtzs	w1, s0
	ldr	w21, [sp, #32]                  ; 4-byte Folded Reload
	add	w8, w19, w21
	scvtf	s0, w8
	fmadd	s0, s0, s8, s10
	fcvtzs	w2, s0
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	fmov	s0, s8
	fmov	s1, s8
	ldr	w7, [sp, #24]                   ; 4-byte Folded Reload
	bl	_vita2d_draw_texture_tint_part_scale
	ldr	w8, [x23, #32]
	add	w28, w28, w8
	str	w28, [sp, #36]                  ; 4-byte Folded Spill
	mov	x28, x24
	ldr	w8, [x23, #24]
	add	w21, w21, w8
	str	w21, [sp, #32]                  ; 4-byte Folded Spill
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w19, [sp, #28]                  ; 4-byte Folded Reload
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w20, w19
	add	w20, w8, #1
	cmp	w20, w28
	b.hs	LBB0_19
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_17 Depth 3
	add	x19, x21, w20, uxtw
	str	x19, [sp, #40]
	add	x0, sp, #40
	bl	_utf8_walk
	ldr	w8, [sp, #40]
	sub	w8, w8, w19
	subs	w8, w8, #1
	csel	w19, wzr, w8, lo
	ldr	x8, [x22, #24]
	ldr	x9, [x8]
	ldr	w8, [x22, #16]
	sxtb	w1, w0
	mov	x0, x8
	blr	x9
	mov	x23, x0
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	ldr	w0, [x22, #16]
	mov	w1, #63
	blr	x8
	mov	x23, x0
	cbz	x0, LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	str	w19, [sp, #28]                  ; 4-byte Folded Spill
	ldp	w21, w19, [x23]
	ldp	w3, w25, [x23, #8]
	ldp	w26, w27, [x23, #16]
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x3
	ldr	w0, [x22]
	bl	_vita2d_texture_get_stride
	mov	x28, x0
	ldr	w0, [x22]
	bl	_vita2d_texture_get_datap
	ldr	x8, [x22, #8]
	ldr	w15, [x8, #8]
	cbz	w15, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x9, #0
	mov	x10, #0
	mov	w11, #0
	ldr	x12, [x8, #16]
	ldr	w13, [x8, #4]
	mov	w14, w28
	mov	x16, x13
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	w11, w11, #1
	add	x10, x10, x14
	add	x9, x9, x13
	cmp	w11, w15
	b.hs	LBB0_6
LBB0_15:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_17 Depth 3
	cbz	w16, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x15, #0
LBB0_17:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w16, w9, w15
	ldr	w16, [x12, w16, uxtw #2]
	add	w17, w10, w15
	str	w16, [x0, w17, uxtw #2]
	add	x15, x15, #1
	ldr	w16, [x8, #4]
	cmp	x15, x16
	b.lo	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w15, [x8, #8]
	b	LBB0_14
LBB0_19:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vita2d_font_render_line
.subsections_via_symbols
