	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function stripes_render_messagebox_internal
LCPI0_0:
	.quad	0x3ff3333333333333              ## double 1.2
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_4:
	.quad	0x3fe8000000000000              ## double 0.75
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0xbf000000                      ## float -0.5
LCPI0_5:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_stripes_render_messagebox_internal:    ## @stripes_render_messagebox_internal
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %r12d
	movl	4(%rdi), %r13d
	movq	%rdx, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_split
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	cmpq	$0, 8(%r13)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_19
## %bb.7:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_menu_input_dialog_get_display_kb
	cmpq	$1, %rax
	movb	$2, %cl
	sbbb	$0, %cl
	movl	%ebx, %eax
	shrl	%cl, %eax
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movl	%r12d, %ecx
	shrl	%ecx
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movl	(%r13), %eax
	subl	$1, %eax
	cvtsi2ss	%eax, %xmm1
	mulss	-48(%rbp), %xmm1                ## 4-byte Folded Reload
	mulss	LCPI0_1(%rip), %xmm1
	addss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jae	LBB0_8
LBB0_12:
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_menu_display_blend_begin
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	subl	%eax, %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rcx
	subl	%ecx, %esi
	movslq	-60(%rbp), %rdx                 ## 4-byte Folded Reload
	movq	16(%rax), %rdi
	movq	24(%rax), %rax
	addq	%rax, %rdx
	subq	%rcx, %rdx
	leal	(%rcx,%rcx), %ebx
	leal	(%r12,%rcx,2), %r9d
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r13), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ebx, %xmm1
	mulss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	%xmm1, %xmm0
	movq	_STRIPES_TEXTURE_DIALOG_SLICE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rdi,%rcx,4), %ebx
	subq	$8, %rsp
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	movq	%r15, %rdi
	movl	$256, %ecx                      ## imm = 0x100
	movl	$256, %r8d                      ## imm = 0x100
	pushq	%rbx
	pushq	%rax
	pushq	$0
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_menu_display_draw_texture_slice
	addq	$48, %rsp
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14d, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r12d, %xmm1
	mulsd	LCPI0_3(%rip), %xmm1
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %r12d
	xorps	%xmm0, %xmm0
	cvtsi2sdl	-60(%rbp), %xmm0        ## 4-byte Folded Reload
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movss	-48(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_TEXT_ALIGN_LEFT@GOTPCREL(%rip), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movl	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	addsd	LCPI0_4(%rip), %xmm0
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %ecx
	movl	(%r14), %eax
	subq	$8, %rsp
	movl	%r12d, %edx
	movq	-104(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	-80(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	movss	LCPI0_5(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%rax
	pushq	$1145324799                     ## imm = 0x444444FF
	callq	_menu_display_draw_text
	addq	$48, %rsp
	movl	(%r13), %eax
	jmp	LBB0_16
LBB0_4:
	testq	%r13, %r13
	jne	LBB0_19
	jmp	LBB0_5
LBB0_17:
	xorl	%eax, %eax
	callq	_menu_input_dialog_get_display_kb
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_menu_event_get_osk_grid
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_menu_event_get_osk_ptr
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_stripes_render_keyboard
LBB0_19:
	movq	%r13, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_string_list_free               ## TAILCALL
LBB0_8:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movl	(%r13), %eax
	cmpq	%rax, %r15
	jae	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rbx
	movq	%rbx, %rdi
	callq	_utf8len
	movq	%rax, %r12
	cmpl	%r12d, %r14d
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_font_driver_get_message_width
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_STRIPES_TEXTURE_DIALOG_SLICE,8,3 ## @STRIPES_TEXTURE_DIALOG_SLICE
	.comm	_TEXT_ALIGN_LEFT,4,2            ## @TEXT_ALIGN_LEFT
	.no_dead_strip	_stripes_render_messagebox_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stripes_render_messagebox_internal
_stripes_render_messagebox_internal:    ; @stripes_render_messagebox_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldp	w22, w23, [x0]
	mov	x0, x2
	bl	_string_is_empty
	cbz	w0, LBB0_2
LBB0_1:
	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
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_string_split
	mov	x21, x0
	cbz	x20, LBB0_11
; %bb.3:
	cbz	x21, LBB0_11
; %bb.4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.5:
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_20
; %bb.6:
	ldr	d0, [x8]
	mov	x8, #3689348814741910323
	movk	x8, #16371, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvt	s8, d0
	bl	_menu_input_dialog_get_display_kb
	cmp	x0, #0
	mov	w8, #1
	cinc	w8, w8, ne
	lsr	w8, w23, w8
	lsr	w10, w22, #1
	ucvtf	s0, w8
	ldr	w8, [x21]
	sub	w9, w8, #1
	scvtf	s1, w9
	fmul	s1, s8, s1
	fmov	s2, #-0.50000000
	fmul	s1, s1, s2
	fadd	s0, s0, s1
	fcvtzs	w9, s0
	stp	w9, w10, [sp, #24]              ; 8-byte Folded Spill
	cbz	w8, LBB0_12
; %bb.7:
	mov	x27, #0
	mov	w28, #0
	mov	w24, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
	ldr	w8, [x21]
	cmp	x27, x8
	b.hs	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x26, [x8, x27, lsl #3]
	mov	x0, x26
	bl	_utf8len
	mov	x25, x0
	cmp	w28, w25
	b.ge	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x24, [x20, #8]
	mov	x0, x26
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	mov	w3, #1
	bl	_font_driver_get_message_width
	mov	x24, x0
	mov	x28, x25
	b	LBB0_8
LBB0_11:
	cbnz	x21, LBB0_20
	b	LBB0_1
LBB0_12:
	mov	w24, #0
LBB0_13:
	mov	x0, x19
	bl	_menu_display_blend_begin
	cmp	w24, #0
	cinc	w8, w24, lt
	ldp	w27, w26, [sp, #24]             ; 8-byte Folded Reload
	sub	w8, w26, w8, asr #1
	ldrsw	x9, [x20]
	sub	w1, w8, w9
	ldp	x10, x8, [x20, #16]
	add	x11, x8, w27, sxtw
	sub	x2, x11, x9
	lsl	w9, w9, #1
	add	w5, w9, w24
	ldr	s0, [x21]
	scvtf	s0, s0
	scvtf	s1, w9
	fmadd	s0, s8, s0, s1
Lloh2:
	adrp	x9, _STRIPES_TEXTURE_DIALOG_SLICE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STRIPES_TEXTURE_DIALOG_SLICE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w9, [x10, x9, lsl #2]
	str	w9, [sp, #16]
	fmov	d1, #1.00000000
	stp	xzr, x8, [sp]
	mov	x0, x19
	mov	w3, #256
	mov	w4, #256
	mov	x6, x22
	mov	x7, x23
	bl	_menu_display_draw_texture_slice
	ldr	w8, [x21]
	cbz	w8, LBB0_18
; %bb.14:
	mov	x25, #0
	scvtf	d0, w26
	scvtf	d1, w24
	fmov	d2, #-0.50000000
	fmul	d1, d1, d2
	fadd	d0, d0, d1
	fcvtzs	w24, d0
	scvtf	d9, w27
	fcvt	d8, s8
	fmov	d10, #0.75000000
Lloh5:
	adrp	x26, _TEXT_ALIGN_LEFT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TEXT_ALIGN_LEFT@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, uxtw
	b.hs	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x1, [x9, x25, lsl #3]
	cbz	x1, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ucvtf	d0, w25
	ldr	x0, [x20, #8]
	fadd	d0, d0, d10
	fmadd	d0, d0, d8, d9
	fcvtzs	w3, d0
	ldr	w7, [x26]
	str	wzr, [sp, #8]
	str	xzr, [sp]
	fmov	s0, #1.00000000
	mov	x2, x24
	mov	x4, x22
	mov	x5, x23
	mov	w6, #17663
	movk	w6, #17476, lsl #16
	bl	_menu_display_draw_text
	ldr	w8, [x21]
	b	LBB0_15
LBB0_18:
	bl	_menu_input_dialog_get_display_kb
	cbz	x0, LBB0_20
; %bb.19:
	bl	_menu_event_get_osk_grid
	mov	x22, x0
	bl	_menu_event_get_osk_ptr
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_stripes_render_keyboard
LBB0_20:
	mov	x0, x21
	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
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_string_list_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_STRIPES_TEXTURE_DIALOG_SLICE,8,3 ; @STRIPES_TEXTURE_DIALOG_SLICE
	.comm	_TEXT_ALIGN_LEFT,4,2            ; @TEXT_ALIGN_LEFT
	.no_dead_strip	_stripes_render_messagebox_internal
.subsections_via_symbols
