	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiiu_font_get_message_width
_wiiu_font_get_message_width:           ## @wiiu_font_get_message_width
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r13d
	testl	%edx, %edx
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.4:
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	%r14d, %r12d
	incl	%r12d
	cmpl	%r13d, %r12d
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %r15d
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%r15, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_utf8_walk
	movl	-56(%rbp), %r14d
	subl	%r15d, %r14d
	subl	$1, %r14d
	movl	$0, %ecx
	cmovbl	%ecx, %r14d
	movq	8(%rbx), %rcx
	movl	(%rbx), %edi
	movsbl	%al, %esi
	callq	*(%rcx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movl	$63, %esi
	callq	*(%rax)
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-44(%rbp), %xmm0        ## 4-byte Folded Reload
	mulss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wiiu_font_get_message_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiiu_font_get_message_width
_wiiu_font_get_message_width:           ; @wiiu_font_get_message_width
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	fmov	s8, s0
	mov	x19, x2
	cbz	w2, LBB0_7
; %bb.2:
	mov	x20, x1
	mov	x21, x0
	mov	w23, #0
	mov	w22, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x0]
	add	w22, w22, w8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w23, w24
	add	w23, w8, #1
	cmp	w23, w19
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x20, w23, uxtw
	str	x24, [sp, #8]
	add	x0, sp, #8
	bl	_utf8_walk
	ldr	w8, [sp, #8]
	sub	w8, w8, w24
	subs	w8, w8, #1
	csel	w24, wzr, w8, lo
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
	ldr	w8, [x21]
	sxtb	w1, w0
	mov	x0, x8
	blr	x9
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x21]
	mov	w1, #63
	blr	x8
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_7:
	mov	w22, #0
LBB0_8:
	scvtf	s0, w22
	fmul	s0, s0, s8
	fcvtzs	w0, s0
	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
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
LBB0_9:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value b8
	.cfi_same_value b9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wiiu_font_get_message_width
.subsections_via_symbols
