	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function wiiu_font_render_line
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wiiu_font_render_line:                 ## @wiiu_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, %r13d
	movss	%xmm2, -112(%rbp)               ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movl	(%rdi), %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movq	8(%rdi), %r12
	movl	4(%rdi), %ebx
	mulss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	callq	_roundf
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movss	-112(%rbp), %xmm0               ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rbx, %xmm0
	mulsd	%xmm1, %xmm0
	callq	_roundf
	testq	%r12, %r12
	je	LBB0_21
## %bb.1:
	movl	%eax, %esi
	leal	(,%r14,4), %eax
	addl	(%r12), %eax
	cmpl	4(%r12), %eax
	ja	LBB0_21
## %bb.2:
	cmpl	$129, %r13d
	je	LBB0_5
## %bb.3:
	cmpl	$128, %r13d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movl	%esi, %r13d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movapd	-96(%rbp), %xmm0                ## 16-byte Reload
	callq	_wiiu_font_get_message_width
	movl	%r13d, %esi
	subl	%eax, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	movl	%esi, %ebx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movapd	-96(%rbp), %xmm0                ## 16-byte Reload
	callq	_wiiu_font_get_message_width
	movl	%ebx, %esi
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	subl	%ecx, %ebx
LBB0_6:
	movq	8(%r12), %rax
	movl	(%r12), %ecx
	leaq	(%rcx,%rcx,8), %rdx
	leaq	(%rax,%rdx,4), %r13
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.7:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movd	%ebx, %xmm0
	pinsrd	$1, %esi, %xmm0
	movdqa	%xmm0, -112(%rbp)               ## 16-byte Spill
	movsldup	-96(%rbp), %xmm0                ## 16-byte Folded Reload
                                        ## xmm0 = mem[0,0,2,2]
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cvtdq2ps	-112(%rbp), %xmm0               ## 16-byte Folded Reload
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	-96(%rbp), %xmm4                ## 16-byte Reload
	mulss	%xmm4, %xmm1
	addss	%xmm0, %xmm1
	cvttss2si	%xmm1, %ecx
	movl	%ecx, 20(%r13)
	movshdup	%xmm0, %xmm1                    ## xmm1 = xmm0[1,1,3,3]
	movss	4(%rax), %xmm2                  ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm4, %xmm2
	addss	%xmm1, %xmm2
	cvttss2si	%xmm2, %ecx
	movl	%ecx, 24(%r13)
	movss	8(%rax), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	mulss	%xmm4, %xmm2
	movss	%xmm2, 28(%r13)
	movss	12(%rax), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm3
	mulss	%xmm4, %xmm3
	movss	%xmm3, 32(%r13)
	movl	28(%rax), %ecx
	movl	%ecx, 16(%r13)
	movl	24(%rax), %ecx
	movl	%ecx, 12(%r13)
	movss	%xmm1, 4(%r13)
	movss	%xmm2, 8(%r13)
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r13)
	addq	$36, %r13
	movsd	16(%rax), %xmm1                 ## xmm1 = mem[0],zero
	mulps	-144(%rbp), %xmm1               ## 16-byte Folded Reload
	addps	%xmm0, %xmm1
	cvttps2dq	%xmm1, %xmm0
	movaps	%xmm0, -112(%rbp)               ## 16-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%r12d, %r14d
	incl	%r14d
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	jae	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %ebx
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, -72(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_utf8_walk
	movl	-72(%rbp), %r12d
	subl	%ebx, %r12d
	subl	$1, %r12d
	movl	$0, %ecx
	cmovbl	%ecx, %r12d
	movq	48(%r15), %rcx
	movl	40(%r15), %edi
	movsbl	%al, %esi
	callq	*(%rcx)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	48(%r15), %rax
	movl	40(%r15), %edi
	movl	$63, %esi
	callq	*(%rax)
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_12:
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	8(%r12), %rax
	movl	(%r12), %ecx
LBB0_13:
	movq	%r13, %rdx
	subq	%rax, %rdx
	shrq	$2, %rdx
	imull	$954437177, %edx, %r14d         ## imm = 0x38E38E39
	subl	%ecx, %r14d
	je	LBB0_21
## %bb.14:
	movl	%ecx, %ecx
	movq	_GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	(%rcx,%rcx,8), %rcx
	leaq	(%rax,%rcx,4), %rsi
	leal	(,%r14,8), %edx
	callq	_GX2Invalidate
	movq	32(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.15:
	cmpl	$0, 4(%rax)
	je	LBB0_19
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpl	8(%r15), %ebx
	jae	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	12(%r15), %ecx
	imull	%ebx, %ecx
	leaq	(%rcx,%rcx,8), %rdi
	shlq	$2, %rdi
	addq	24(%r15), %rdi
	movl	8(%rax), %edx
	movl	%edx, %esi
	imull	%ebx, %esi
	addq	16(%rax), %rsi
	callq	_memcpy
	incl	%ebx
	movq	32(%r15), %rax
	cmpl	4(%rax), %ebx
	jb	LBB0_17
LBB0_19:
	movq	_GX2_INVALIDATE_MODE_CPU_TEXTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rsi
	movl	16(%r15), %edx
	callq	_GX2Invalidate
	movq	32(%r15), %rax
	movl	$0, (%rax)
LBB0_20:
	leaq	8(%r15), %rdi
	movq	_sprite_shader@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_GX2SetPixelTexture
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movl	12(%rax), %edi
	movl	(%r15), %edx
	callq	_GX2SetVertexUniformBlock
	movq	_GX2_PRIMITIVE_MODE_POINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	movl	%r14d, %esi
	movl	$1, %ecx
	callq	_GX2DrawEx
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movl	12(%rax), %edi
	movl	16(%r12), %edx
	callq	_GX2SetVertexUniformBlock
	subq	8(%r12), %r13
	shrq	$2, %r13
	imull	$954437177, %r13d, %eax         ## imm = 0x38E38E39
	movl	%eax, (%r12)
LBB0_21:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER,4,2 ## @GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER
	.comm	_GX2_INVALIDATE_MODE_CPU_TEXTURE,4,2 ## @GX2_INVALIDATE_MODE_CPU_TEXTURE
	.comm	_sprite_shader,16,3             ## @sprite_shader
	.comm	_GX2_PRIMITIVE_MODE_POINTS,4,2  ## @GX2_PRIMITIVE_MODE_POINTS
	.no_dead_strip	_wiiu_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 wiiu_font_render_line
_wiiu_font_render_line:                 ; @wiiu_font_render_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x25, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	fmov	s8, s2
	str	d0, [sp]                        ; 16-byte Folded Spill
	mov	x19, x1
	ldp	s0, s9, [x0]
	ucvtf	s0, s0
	fmul	s0, s0, s1
	ldr	x26, [x0, #8]
	fcvt	d0, s0
	bl	_roundf
	mov	x23, x0
	fcvt	d0, s8
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	ucvtf	d1, d9
	fmul	d0, d0, d1
	bl	_roundf
	cbz	x26, LBB0_21
; %bb.1:
	ldp	w8, w9, [x26]
	add	w8, w8, w21, lsl #2
	cmp	w8, w9
	b.hi	LBB0_21
; %bb.2:
	mov	x24, x0
	cmp	w25, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w25, #128
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	ldr	q0, [sp]                        ; 16-byte Folded Reload
                                        ; kill: def $s0 killed $s0 killed $q0
	bl	_wiiu_font_get_message_width
	sub	w23, w23, w0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	ldr	q0, [sp]                        ; 16-byte Folded Reload
                                        ; kill: def $s0 killed $s0 killed $q0
	bl	_wiiu_font_get_message_width
	cmp	w0, #0
	cinc	w8, w0, lt
	sub	w23, w23, w8, asr #1
LBB0_6:
	ldr	x8, [x26, #8]
	ldr	w9, [x26]
	mov	w10, #36
	madd	x25, x9, x10, x8
	cbz	w21, LBB0_13
; %bb.7:
	mov	w27, #0
	fmov	s0, w23
	mov.s	v0[1], w24
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	dup.2s	v8, v0[0]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldp	q4, q0, [sp]                    ; 32-byte Folded Reload
	scvtf.2s	v0, v0
	ldp	s1, s2, [x0, #8]
	fmul	s3, s1, s4
	fmul	s4, s2, s4
	stp	s3, s4, [x25, #28]
	stp	s1, s2, [x25, #4]
	ldr	d1, [x0]
	fmov	d2, d0
	fmla.2s	v2, v8, v1
	fcvtzs.2s	v1, v2
	stur	d1, [x25, #20]
	ldp	d2, d1, [x0, #16]
	stur	d1, [x25, #12]
	str	w20, [x25], #36
	fmla.2s	v0, v8, v2
	fcvtzs.2s	v0, v0
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w27, w23
	add	w27, w8, #1
	cmp	w27, w21
	b.hs	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x23, x22, w27, uxtw
	str	x23, [sp, #40]
	add	x0, sp, #40
	bl	_utf8_walk
	ldr	w8, [sp, #40]
	sub	w8, w8, w23
	subs	w8, w8, #1
	csel	w23, wzr, w8, lo
	ldr	x8, [x19, #48]
	ldr	x9, [x8]
	ldr	w8, [x19, #40]
	sxtb	w1, w0
	mov	x0, x8
	blr	x9
	cbnz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	w0, [x19, #40]
	mov	w1, #63
	blr	x8
	cbnz	x0, LBB0_8
	b	LBB0_9
LBB0_12:
	ldr	x8, [x26, #8]
	ldr	w9, [x26]
LBB0_13:
	sub	x10, x25, x8
	lsr	x10, x10, #2
	mov	w11, #36409
	movk	w11, #14563, lsl #16
	mul	w10, w10, w11
	subs	w20, w10, w9
	b.eq	LBB0_21
; %bb.14:
Lloh0:
	adrp	x10, _GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x10]
	mov	w10, #36
	umaddl	x1, w9, w10, x8
	lsl	w2, w20, #3
	bl	_GX2Invalidate
	ldr	x8, [x19, #32]
	ldr	w9, [x8]
	cbz	w9, LBB0_20
; %bb.15:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_19
; %bb.16:
	mov	w21, #0
	mov	w22, #36
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #8]
	cmp	w21, w9
	b.hs	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x9, [x19, #24]
	ldr	w10, [x19, #12]
	mul	w10, w10, w21
	umaddl	x0, w10, w22, x9
	ldr	x9, [x8, #16]
	ldr	w2, [x8, #8]
	mul	w8, w2, w21
	add	x1, x9, x8
	bl	_memcpy
	add	w21, w21, #1
	ldr	x8, [x19, #32]
	ldr	w9, [x8, #4]
	cmp	w21, w9
	b.lo	LBB0_17
LBB0_19:
Lloh3:
	adrp	x8, _GX2_INVALIDATE_MODE_CPU_TEXTURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GX2_INVALIDATE_MODE_CPU_TEXTURE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #16]
	bl	_GX2Invalidate
	ldr	x8, [x19, #32]
	str	wzr, [x8]
LBB0_20:
	add	x0, x19, #8
Lloh6:
	adrp	x21, _sprite_shader@GOTPAGE
Lloh7:
	ldr	x21, [x21, _sprite_shader@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	ldr	w1, [x8]
	bl	_GX2SetPixelTexture
	ldr	x8, [x21]
	ldp	w1, w0, [x8, #8]
	ldr	w2, [x19]
	bl	_GX2SetVertexUniformBlock
Lloh8:
	adrp	x8, _GX2_PRIMITIVE_MODE_POINTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GX2_PRIMITIVE_MODE_POINTS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [x26]
	mov	x1, x20
	mov	w3, #1
	bl	_GX2DrawEx
	ldr	x8, [x21]
	ldp	w1, w0, [x8, #8]
	ldr	w2, [x26, #16]
	bl	_GX2SetVertexUniformBlock
	ldr	x8, [x26, #8]
	sub	x8, x25, x8
	lsr	x8, x8, #2
	mov	w9, #36409
	movk	w9, #14563, lsl #16
	mul	w8, w8, w9
	str	w8, [x26]
LBB0_21:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER,4,2 ; @GX2_INVALIDATE_MODE_CPU_ATTRIBUTE_BUFFER
	.comm	_GX2_INVALIDATE_MODE_CPU_TEXTURE,4,2 ; @GX2_INVALIDATE_MODE_CPU_TEXTURE
	.comm	_sprite_shader,16,3             ; @sprite_shader
	.comm	_GX2_PRIMITIVE_MODE_POINTS,4,2  ; @GX2_PRIMITIVE_MODE_POINTS
	.no_dead_strip	_wiiu_font_render_line
.subsections_via_symbols
