	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ozone_draw_messagebox
LCPI0_0:
	.long	0xc1c80000                      ## float -25
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
LCPI0_2:
	.long	0x41c80000                      ## float 25
LCPI0_3:
	.long	0x42c00000                      ## float 96
LCPI0_8:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_4:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_5:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_6:
	.quad	0x3fe8000000000000              ## double 0.75
LCPI0_7:
	.quad	0x4039000000000000              ## double 25
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ozone_draw_messagebox
	.p2align	4, 0x90
_ozone_draw_messagebox:                 ## @ozone_draw_messagebox
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r14d
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	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:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_split
	movq	%rax, %r12
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_4
## %bb.2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 16(%rax)
	je	LBB0_4
## %bb.6:
	cmpq	$0, 8(%r12)
	je	LBB0_19
## %bb.7:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_menu_input_dialog_get_display_kb
	cmpq	$1, %rax
	movb	$2, %cl
	sbbb	$0, %cl
	movq	-80(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	shrl	%cl, %eax
	cvtsi2ss	%rax, %xmm0
	movl	(%r12), %eax
	subl	$1, %eax
	cvtsi2ss	%eax, %xmm1
	mulss	LCPI0_0(%rip), %xmm1
	mulss	LCPI0_1(%rip), %xmm1
	addss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	jae	LBB0_8
LBB0_12:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %r13d
	shrl	%r13d
	cvttss2si	-44(%rbp), %eax         ## 4-byte Folded Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %edi
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	callq	_menu_display_set_alpha
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_menu_display_blend_begin
	cmpq	$0, 40(%rbx)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	movl	%r13d, %esi
	subl	%eax, %esi
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r12), %xmm0
	addl	$-48, %esi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	-32(%rax), %edx
	mulss	LCPI0_2(%rip), %xmm0
	leal	96(%rbx), %r9d
	addss	LCPI0_3(%rip), %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %r10d
	movq	24(%rax), %rcx
	movq	_OZONE_ENTRIES_ICONS_TEXTURE_DIALOG_SLICE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	(%rcx,%rdi,4), %eax
	subq	$8, %rsp
	movsd	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero
	movq	%r15, %rdi
	movl	$256, %ecx                      ## imm = 0x100
	movl	$256, %r8d                      ## imm = 0x100
	pushq	%rax
	pushq	$16
	pushq	%r10
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	callq	_menu_display_draw_texture_slice
	addq	$48, %rsp
LBB0_14:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r13d, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ebx, %xmm1
	mulsd	LCPI0_5(%rip), %xmm1
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edx, %xmm0
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r15
	movl	%eax, %ecx
	cmpq	%rcx, %r15
	jae	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	(%rcx,%r15,8), %r13
	testq	%r13, %r13
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%r15d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	addsd	LCPI0_6(%rip), %xmm0
	mulsd	LCPI0_7(%rip), %xmm0
	addsd	-72(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %r14d
	movq	_TEXT_ALIGN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	16(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_8(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	callq	_COLOR_TEXT_ALPHA
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	movq	-104(%rbp), %r12                ## 8-byte Reload
	pushq	$0
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_ozone_draw_text
	addq	$48, %rsp
	movl	(%r12), %eax
	jmp	LBB0_18
LBB0_4:
	testq	%r12, %r12
	je	LBB0_5
LBB0_19:
	movq	%r12, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_string_list_free               ## TAILCALL
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	movq	%r13, %r12
	jae	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	%r12, %r13
	movq	(%rax,%rbx,8), %r12
	movq	%r12, %rdi
	callq	_utf8len
	movq	%rax, %r15
	cmpl	%r15d, %r14d
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %r14d
	movq	%r12, %rdi
	callq	_strlen
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_font_driver_get_message_width
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_OZONE_ENTRIES_ICONS_TEXTURE_DIALOG_SLICE,8,3 ## @OZONE_ENTRIES_ICONS_TEXTURE_DIALOG_SLICE
	.comm	_TEXT_ALIGN_LEFT,4,2            ## @TEXT_ALIGN_LEFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_draw_messagebox          ; -- Begin function ozone_draw_messagebox
	.p2align	2
_ozone_draw_messagebox:                 ; @ozone_draw_messagebox
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldp	w21, w22, [x1]
	mov	x0, x2
	bl	_string_is_empty
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_string_split
	mov	x23, x0
	cbz	x20, LBB0_11
; %bb.3:
	cbz	x23, LBB0_11
; %bb.4:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_11
; %bb.5:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_12
; %bb.6:
	bl	_menu_input_dialog_get_display_kb
	cmp	x0, #0
	mov	w8, #1
	cinc	w8, w8, ne
	lsr	w8, w22, w8
	ucvtf	s0, w8
	ldr	w8, [x23]
	sub	w9, w8, #1
	scvtf	s1, w9
	fmov	s2, #-25.00000000
	fmul	s1, s1, s2
	fmov	s2, #0.50000000
	fmul	s1, s1, s2
	fadd	s8, s0, s1
	cbz	w8, LBB0_13
; %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, [x23]
	cmp	x27, x8
	b.hs	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #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	w24, [x20, #16]
	mov	x0, x26
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #1
	bl	_font_driver_get_message_width
	mov	x24, x0
	mov	x28, x25
	b	LBB0_8
LBB0_11:
	cbz	x23, LBB0_1
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_string_list_free
LBB0_13:
	mov	w24, #0
LBB0_14:
	lsr	w26, w21, #1
	fcvtzs	w25, s8
	ldr	w0, [x20, #32]
	ldr	s0, [x20]
	bl	_menu_display_set_alpha
	mov	x0, x19
	bl	_menu_display_blend_begin
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_16
; %bb.15:
	cmp	w24, #0
	cinc	w8, w24, lt
	sub	w8, w26, w8, asr #1
	sub	w1, w8, #48
	sub	w2, w25, #32
	add	w5, w24, #96
	ldr	s0, [x23]
	scvtf	s0, s0
	mov	w8, #1119879168
	fmov	s1, w8
	fmov	s2, #25.00000000
	fmadd	s0, s0, s2, s1
	ldr	w8, [x20, #32]
	ldr	x9, [x20, #24]
Lloh2:
	adrp	x10, _OZONE_ENTRIES_ICONS_TEXTURE_DIALOG_SLICE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _OZONE_ENTRIES_ICONS_TEXTURE_DIALOG_SLICE@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	w11, [x9, x10, lsl #2]
	mov	w9, #16
	stp	w9, w11, [sp, #4]
	str	w8, [sp]
	fmov	d1, #1.00000000
	mov	x0, x19
	mov	w3, #256
	mov	w4, #256
	mov	x6, x21
	mov	x7, x22
	bl	_menu_display_draw_texture_slice
LBB0_16:
	ldr	w8, [x23]
	cbz	w8, LBB0_12
; %bb.17:
	mov	x28, #0
	scvtf	d0, w26
	scvtf	d1, w24
	fmov	d2, #-0.50000000
	fmul	d1, d1, d2
	fadd	d0, d0, d1
	fcvtzs	w9, d0
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	scvtf	d8, w25
	fmov	d9, #0.75000000
	fmov	d10, #25.00000000
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x28, x28, #1
	cmp	x28, w8, uxtw
	b.hs	LBB0_12
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23, #8]
	ldr	x25, [x9, x28, lsl #3]
	cbz	x25, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ucvtf	d0, w28
	fadd	d0, d0, d9
	fmadd	d0, d0, d10, d8
	fcvtzs	w26, d0
Lloh5:
	adrp	x8, _TEXT_ALIGN_LEFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TEXT_ALIGN_LEFT@GOTPAGEOFF]
Lloh7:
	ldr	w27, [x8]
	mov	x24, x22
	mov	x22, x21
	ldr	w21, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	s0, [x20]
	mov	w8, #1132396544
	fmov	s1, w8
	fmul	s0, s0, s1
	fcvtzs	w1, s0
	bl	_COLOR_TEXT_ALPHA
	stp	w0, wzr, [sp, #4]
	str	w21, [sp]
	mov	x21, x22
	mov	x22, x24
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x26
	mov	x5, x27
	mov	x6, x21
	mov	x7, x24
	bl	_ozone_draw_text
	ldr	w8, [x23]
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_OZONE_ENTRIES_ICONS_TEXTURE_DIALOG_SLICE,8,3 ; @OZONE_ENTRIES_ICONS_TEXTURE_DIALOG_SLICE
	.comm	_TEXT_ALIGN_LEFT,4,2            ; @TEXT_ALIGN_LEFT
.subsections_via_symbols
