	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_draw_osk                 ## -- Begin function ozone_draw_osk
	.p2align	4, 0x90
_ozone_draw_osk:                        ## @ozone_draw_osk
	.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	$2104, %rsp                     ## imm = 0x838
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -2120(%rbp)               ## 8-byte Spill
	movl	(%rsi), %eax
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	movq	%rcx, %rdi
	callq	_string_is_empty
	movl	%eax, -2108(%rbp)               ## 4-byte Spill
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	movq	%rbx, %rsi
	movq	%rax, %rcx
	subq	_ozone_draw_osk.last_time(%rip), %rcx
	movq	_INTERVAL_OSK_CURSOR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_2
## %bb.1:
	xorl	%ecx, %ecx
	cmpl	$0, (%rsi)
	sete	%cl
	movl	%ecx, (%rsi)
	movq	%rax, _ozone_draw_osk.last_time(%rip)
LBB0_2:
	movq	-2120(%rbp), %rbx               ## 8-byte Reload
	movl	(%rbx), %r10d
	movl	4(%rbx), %r9d
	leal	-150(%r9), %ecx
	movq	8(%rsi), %rdx
	movl	16(%rdx), %eax
	movq	%rbx, %rdi
	movq	%rsi, -2104(%rbp)               ## 8-byte Spill
	movl	$75, %esi
	movl	$75, %edx
	movl	$1, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	%r10
	callq	_menu_display_draw_quad
	addq	$16, %rsp
	leal	-75(%r13), %edx
	movl	(%rbx), %r10d
	movl	4(%rbx), %r9d
	leal	-150(%r9), %ecx
	movq	-2104(%rbp), %rsi               ## 8-byte Reload
	movq	8(%rsi), %rsi
	movl	16(%rsi), %eax
	movq	%rbx, %rdi
	movl	$75, %esi
	movl	$1, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	%r10
	callq	_menu_display_draw_quad
	addq	$16, %rsp
	leal	-150(%r13), %r14d
	movl	(%rbx), %r10d
	movl	4(%rbx), %r9d
	movq	-2104(%rbp), %rax               ## 8-byte Reload
	movq	8(%rax), %rcx
	movl	16(%rcx), %eax
	movq	%rbx, %rdi
	movl	$75, %esi
	movl	$75, %edx
	movl	$1, %ecx
	movl	%r14d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_menu_display_draw_quad
	addq	$16, %rsp
	movl	(%rbx), %r10d
	movl	4(%rbx), %r9d
	leal	-75(%r9), %esi
	movq	-2104(%rbp), %rax               ## 8-byte Reload
	movq	8(%rax), %rcx
	movl	16(%rcx), %eax
	movq	%rbx, %rdi
	movl	$75, %edx
	movl	$1, %ecx
	movl	%r14d, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	%r10
	callq	_menu_display_draw_quad
	addq	$16, %rsp
	movl	(%rbx), %r10d
	movl	4(%rbx), %r9d
	leal	-152(%r9), %ecx
	addl	$-152, %r13d
	movq	_ozone_osk_backdrop@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	%rbx, %rdi
	movl	$76, %esi
	movl	$76, %edx
	movl	%r13d, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	pushq	%r10
	callq	_menu_display_draw_quad
	addq	$16, %rsp
	movq	_ozone_theme_light@GOTPCREL(%rip), %rax
	movl	-2108(%rbp), %ecx               ## 4-byte Reload
	cmpl	$1, %ecx
	movl	$0, %edx
	sbbl	%edx, %edx
	orl	(%rax), %edx
	movq	%rdx, -2136(%rbp)               ## 8-byte Spill
	testl	%ecx, %ecx
	cmoveq	%r15, %r12
	movl	$-170, %eax
	addl	4(%rbx), %eax
	xorl	%edx, %edx
	movq	-2104(%rbp), %rcx               ## 8-byte Reload
	divl	4(%rcx)
	leaq	-2096(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_word_wrap
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_split
	movq	-2104(%rbp), %r15               ## 8-byte Reload
	movq	%rax, -2128(%rbp)               ## 8-byte Spill
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$25, %ebx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movl	%eax, %eax
	cmpq	%rax, %r13
	jae	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-2128(%rbp), %r14               ## 8-byte Reload
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %r12
	movq	_FONT_SIZE_ENTRIES_LABEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	leaq	85(%rcx,%rax), %r8
	movq	_TEXT_ALIGN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-2120(%rbp), %rdi               ## 8-byte Reload
	movl	(%rdi), %r11d
	movl	4(%rdi), %r10d
	movl	16(%r15), %eax
	subq	$8, %rsp
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	$95, %ecx
	pushq	$0
	pushq	-2136(%rbp)                     ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_ozone_draw_text
	addq	$48, %rsp
	movl	(%r14), %eax
	leal	-1(%rax), %ecx
	cmpq	%rcx, %r13
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	cmpl	$0, -2108(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-2104(%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
	movl	%eax, %esi
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$95, %esi
	leal	88(%rbx), %edx
	movq	-2120(%rbp), %rdi               ## 8-byte Reload
	movl	(%rdi), %r10d
	movl	4(%rdi), %r9d
	movq	_ozone_pure_white@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	$1, %ecx
	movl	$25, %r8d
	pushq	%rax
	pushq	%r10
	callq	_menu_display_draw_quad
	addq	$16, %rsp
	movq	-2128(%rbp), %rax               ## 8-byte Reload
	movl	(%rax), %eax
	movq	-2104(%rbp), %r15               ## 8-byte Reload
	jmp	LBB0_10
LBB0_11:
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movq	_OZONE_THEME_TEXTURE_CURSOR_STATIC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r14d
	movl	16(%r15), %r13d
	xorl	%eax, %eax
	callq	_menu_event_get_osk_grid
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_menu_event_get_osk_ptr
	movq	8(%r15), %rcx
	movl	(%rcx), %r9d
	movl	%r14d, %edi
	movl	%r13d, %esi
	movq	-2120(%rbp), %rdx               ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_menu_display_draw_keyboard
	movq	-2128(%rbp), %rdi               ## 8-byte Reload
	callq	_string_list_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$2104, %rsp                     ## imm = 0x838
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ozone_draw_osk.last_time,8,3 ## @ozone_draw_osk.last_time
	.comm	_INTERVAL_OSK_CURSOR,8,3        ## @INTERVAL_OSK_CURSOR
	.comm	_ozone_osk_backdrop,4,2         ## @ozone_osk_backdrop
	.comm	_ozone_theme_light,4,2          ## @ozone_theme_light
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_FONT_SIZE_ENTRIES_LABEL,8,3    ## @FONT_SIZE_ENTRIES_LABEL
	.comm	_TEXT_ALIGN_LEFT,4,2            ## @TEXT_ALIGN_LEFT
	.comm	_ozone_pure_white,4,2           ## @ozone_pure_white
	.comm	_OZONE_THEME_TEXTURE_CURSOR_STATIC,8,3 ## @OZONE_THEME_TEXTURE_CURSOR_STATIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ozone_draw_osk                 ; -- Begin function ozone_draw_osk
	.p2align	2
_ozone_draw_osk:                        ; @ozone_draw_osk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #2080
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	w8, [x1]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w21, w8, #1
	mov	x0, x3
	bl	_string_is_empty
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	bl	_cpu_features_get_time_usec
	adrp	x8, _ozone_draw_osk.last_time@PAGE
	ldr	x9, [x8, _ozone_draw_osk.last_time@PAGEOFF]
Lloh3:
	adrp	x10, _INTERVAL_OSK_CURSOR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _INTERVAL_OSK_CURSOR@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	sub	x9, x0, x9
	cmp	x9, x10
	b.lt	LBB0_2
; %bb.1:
	ldr	w9, [x20]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x20]
	str	x0, [x8, _ozone_draw_osk.last_time@PAGEOFF]
LBB0_2:
	ldp	w6, w5, [x19]
	sub	w3, w5, #150
	ldr	x8, [x20, #8]
	ldr	w7, [x8, #16]
	mov	x0, x19
	mov	w1, #75
	mov	w2, #75
	mov	w4, #1
	bl	_menu_display_draw_quad
	sub	w2, w21, #75
	ldp	w6, w5, [x19]
	sub	w3, w5, #150
	ldr	x8, [x20, #8]
	ldr	w7, [x8, #16]
	mov	x0, x19
	mov	w1, #75
	mov	w4, #1
	bl	_menu_display_draw_quad
	sub	w24, w21, #150
	ldp	w6, w5, [x19]
	ldr	x8, [x20, #8]
	ldr	w7, [x8, #16]
	mov	x0, x19
	mov	w1, #75
	mov	w2, #75
	mov	w3, #1
	mov	x4, x24
	bl	_menu_display_draw_quad
	ldp	w6, w5, [x19]
	sub	w1, w5, #75
	ldr	x8, [x20, #8]
	ldr	w7, [x8, #16]
	mov	x0, x19
	mov	w2, #75
	mov	w3, #1
	mov	x4, x24
	bl	_menu_display_draw_quad
	ldp	w6, w5, [x19]
	sub	w3, w5, #152
	sub	w4, w21, #152
Lloh6:
	adrp	x8, _ozone_osk_backdrop@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ozone_osk_backdrop@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	mov	x0, x19
	mov	w1, #76
	mov	w2, #76
	bl	_menu_display_draw_quad
Lloh9:
	adrp	x8, _ozone_theme_light@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ozone_theme_light@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w24, #0
	csinv	w25, w8, wzr, ne
	csel	x1, x22, x23, eq
	ldr	w8, [x19, #4]
	sub	w8, w8, #170
	ldr	w9, [x20, #4]
	udiv	w2, w8, w9
	add	x0, sp, #16
	mov	w3, #1
	mov	w4, #0
	bl	_word_wrap
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_string_split
	mov	x22, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_12
; %bb.3:
	mov	x26, #0
	mov	w27, #0
Lloh14:
	adrp	x28, _FONT_SIZE_ENTRIES_LABEL@GOTPAGE
Lloh15:
	ldr	x28, [x28, _FONT_SIZE_ENTRIES_LABEL@GOTPAGEOFF]
Lloh16:
	adrp	x21, _TEXT_ALIGN_LEFT@GOTPAGE
Lloh17:
	ldr	x21, [x21, _TEXT_ALIGN_LEFT@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w27, w27, #25
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, uxtw
	b.hs	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x23, [x8, x26, lsl #3]
	ldr	x8, [x28]
	add	x8, x8, w27, uxtw
	add	x4, x8, #85
	ldr	w5, [x21]
	ldp	w7, w6, [x19]
	ldr	w8, [x20, #16]
	stp	w25, wzr, [sp, #4]
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	w3, #95
	bl	_ozone_draw_text
	ldr	w8, [x22]
	sub	w9, w8, #1
	cmp	x26, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x20]
	cbz	w9, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w24, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w24, [x20, #16]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #1
	bl	_font_driver_get_message_width
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w1, w0, #95
	add	w2, w27, #88
	ldp	w6, w5, [x19]
Lloh18:
	adrp	x8, _ozone_pure_white@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ozone_pure_white@GOTPAGEOFF]
Lloh20:
	ldr	w7, [x8]
	mov	x0, x19
	mov	w3, #1
	mov	w4, #25
	bl	_menu_display_draw_quad
	ldr	w8, [x22]
	b	LBB0_5
LBB0_12:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
Lloh21:
	adrp	x9, _OZONE_THEME_TEXTURE_CURSOR_STATIC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OZONE_THEME_TEXTURE_CURSOR_STATIC@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	w21, [x8, x9, lsl #2]
	ldr	w23, [x20, #16]
	bl	_menu_event_get_osk_grid
	mov	x24, x0
	bl	_menu_event_get_osk_ptr
	mov	x4, x0
	ldr	x8, [x20, #8]
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	mov	x3, x24
	bl	_menu_display_draw_keyboard
	mov	x0, x22
	bl	_string_list_free
	ldur	x8, [x29, #-96]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #2080
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ozone_draw_osk.last_time,8,3 ; @ozone_draw_osk.last_time
	.comm	_INTERVAL_OSK_CURSOR,8,3        ; @INTERVAL_OSK_CURSOR
	.comm	_ozone_osk_backdrop,4,2         ; @ozone_osk_backdrop
	.comm	_ozone_theme_light,4,2          ; @ozone_theme_light
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_FONT_SIZE_ENTRIES_LABEL,8,3    ; @FONT_SIZE_ENTRIES_LABEL
	.comm	_TEXT_ALIGN_LEFT,4,2            ; @TEXT_ALIGN_LEFT
	.comm	_ozone_pure_white,4,2           ; @ozone_pure_white
	.comm	_OZONE_THEME_TEXTURE_CURSOR_STATIC,8,3 ; @OZONE_THEME_TEXTURE_CURSOR_STATIC
.subsections_via_symbols
