	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ## -- Begin function rgui_frame
LCPI0_0:
	.long	0x3fc00000                      ## float 1.5
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rgui_frame:                            ## @rgui_frame
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r14
	movq	(%rax), %rax
	movabsq	$4294967297, %r12               ## imm = 0x100000001
	cmpq	(%rbx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, (%rbx)
	movq	%r12, 8(%rbx)
LBB0_2:
	movq	8(%r14), %rax
	cmpq	16(%rbx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, 16(%rbx)
	movq	%r12, 8(%rbx)
LBB0_4:
	movq	16(%r14), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, 24(%rbx)
	movq	%r12, 8(%rbx)
LBB0_6:
	movq	24(%r14), %rdi
	cmpq	32(%rbx), %rdi
	je	LBB0_8
## %bb.7:
	movq	32(%r14), %rsi
	callq	_rgui_set_blit_functions
	movq	24(%r14), %rax
	movq	%rax, 32(%rbx)
	movq	%r12, 8(%rbx)
LBB0_8:
	movq	64(%r14), %rax
	cmpq	40(%rbx), %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, 40(%rbx)
	movq	_RGUI_PARTICLE_EFFECT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_rgui_init_particle_effect
	movq	40(%rbx), %rax
LBB0_11:
	movl	$1, 12(%rbx)
LBB0_12:
	movq	_RGUI_PARTICLE_EFFECT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movl	$1, 12(%rbx)
LBB0_14:
	movq	32(%r14), %rsi
	cmpq	48(%rbx), %rsi
	je	LBB0_16
## %bb.15:
	movq	24(%r14), %rdi
	callq	_rgui_set_blit_functions
	movq	32(%r14), %rax
	movq	%rax, 48(%rbx)
	movl	$1, 12(%rbx)
LBB0_16:
	movq	72(%r14), %rax
	cmpq	56(%rbx), %rax
	jne	LBB0_19
## %bb.17:
	movq	_RGUI_THEME_CUSTOM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.18:
	movl	104(%r14), %edi
	movl	152(%rbx), %esi
	movl	$4, %edx
	callq	_string_is_not_equal_fast
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_prepare_rgui_colors
LBB0_20:
	movq	80(%r14), %rax
	cmpq	64(%rbx), %rax
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rgui_set_aspect_ratio
	movl	$0, 72(%rbx)
LBB0_22:
	movq	88(%r14), %rax
	cmpq	80(%rbx), %rax
	je	LBB0_26
## %bb.23:
	movq	%rax, 80(%rbx)
	movq	_RGUI_ASPECT_RATIO_LOCK_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.24:
	leaq	148(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rgui_set_video_config
	jmp	LBB0_26
LBB0_25:
	movq	%rbx, %rdi
	callq	_rgui_update_menu_viewport
	leaq	144(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rgui_set_video_config
	movl	$0, 72(%rbx)
LBB0_26:
	movq	(%r15), %rax
	cmpq	%rax, 88(%rbx)
	jne	LBB0_28
## %bb.27:
	movq	96(%rbx), %rcx
	cmpq	8(%r15), %rcx
	je	LBB0_32
LBB0_28:
	movq	88(%r14), %rcx
	movq	_RGUI_ASPECT_RATIO_LOCK_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_31
## %bb.29:
	cmpl	$0, 72(%rbx)
	jne	LBB0_31
## %bb.30:
	movq	%rbx, %rdi
	callq	_rgui_update_menu_viewport
	leaq	144(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rgui_set_video_config
	movq	(%r15), %rax
LBB0_31:
	movq	%rax, 88(%rbx)
	movq	8(%r15), %rax
	movq	%rax, 96(%rbx)
LBB0_32:
	cmpq	$0, 136(%rbx)
	je	LBB0_35
## %bb.33:
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	subl	104(%rbx), %eax
	cvtsi2ss	%eax, %xmm0
	imull	$1000, 96(%r14), %eax           ## imm = 0x3E8
	cvtsi2ss	%eax, %xmm1
	xorl	%eax, %eax
	cmpq	$0, 128(%rbx)
	sete	%al
	leaq	LCPI0_0(%rip), %rcx
	mulss	(%rcx,%rax,4), %xmm1
	ucomiss	%xmm1, %xmm0
	jb	LBB0_35
## %bb.34:
	movl	56(%r14), %esi
	movq	%rbx, %rdi
	callq	_rgui_load_current_thumbnails
LBB0_35:
	cmpq	$0, 48(%r14)
	jne	LBB0_37
## %bb.36:
	cmpq	$0, 40(%r14)
	je	LBB0_40
LBB0_37:
	leaq	112(%rbx), %rdi
	callq	_menu_input_get_pointer_state
	movq	112(%rbx), %rax
	movq	_MENU_POINTER_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_41
## %bb.38:
	cmpq	$0, 120(%rbx)
	je	LBB0_41
## %bb.39:
	movl	$1, 12(%rbx)
	jmp	LBB0_41
LBB0_40:
	movq	_MENU_POINTER_DISABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 112(%rbx)
LBB0_41:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RGUI_PARTICLE_EFFECT_NONE,8,3  ## @RGUI_PARTICLE_EFFECT_NONE
	.comm	_RGUI_THEME_CUSTOM,8,3          ## @RGUI_THEME_CUSTOM
	.comm	_RGUI_ASPECT_RATIO_LOCK_NONE,8,3 ## @RGUI_ASPECT_RATIO_LOCK_NONE
	.comm	_MENU_POINTER_DISABLED,8,3      ## @MENU_POINTER_DISABLED
	.no_dead_strip	_rgui_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgui_frame
_rgui_frame:                            ; @rgui_frame
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_config_get_ptr
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	str	x8, [x19]
	movi.2s	v0, #1
	str	d0, [x19, #8]
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	str	x8, [x19, #16]
	movi.2s	v0, #1
	str	d0, [x19, #8]
LBB0_4:
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	str	x8, [x19, #24]
	movi.2s	v0, #1
	str	d0, [x19, #8]
LBB0_6:
	ldr	x0, [x20, #24]
	ldr	x8, [x19, #32]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
	ldr	x1, [x20, #32]
	bl	_rgui_set_blit_functions
	ldr	x8, [x20, #24]
	str	x8, [x19, #32]
	movi.2s	v0, #1
	str	d0, [x19, #8]
LBB0_8:
	ldr	x8, [x20, #64]
	ldr	x9, [x19, #40]
Lloh0:
	adrp	x22, _RGUI_PARTICLE_EFFECT_NONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RGUI_PARTICLE_EFFECT_NONE@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.9:
	str	x8, [x19, #40]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_rgui_init_particle_effect
	ldr	x8, [x19, #40]
LBB0_11:
	mov	w9, #1
	str	w9, [x19, #12]
LBB0_12:
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.13:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_14:
	ldr	x1, [x20, #32]
	ldr	x8, [x19, #48]
	cmp	x1, x8
	b.eq	LBB0_16
; %bb.15:
	ldr	x0, [x20, #24]
	bl	_rgui_set_blit_functions
	ldr	x8, [x20, #32]
	str	x8, [x19, #48]
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_16:
	ldr	x8, [x20, #72]
	ldr	x9, [x19, #56]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.17:
Lloh2:
	adrp	x9, _RGUI_THEME_CUSTOM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RGUI_THEME_CUSTOM@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:
	ldr	w0, [x20, #104]
	ldr	w1, [x19, #152]
	mov	w2, #4
	bl	_string_is_not_equal_fast
	cbz	x0, LBB0_20
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	bl	_prepare_rgui_colors
LBB0_20:
	ldr	x8, [x20, #80]
	ldr	x9, [x19, #64]
	cmp	x8, x9
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x19
	mov	w1, #1
	bl	_rgui_set_aspect_ratio
	str	wzr, [x19, #72]
LBB0_22:
	ldr	x8, [x20, #88]
	ldr	x9, [x19, #80]
Lloh5:
	adrp	x22, _RGUI_ASPECT_RATIO_LOCK_NONE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _RGUI_ASPECT_RATIO_LOCK_NONE@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_26
; %bb.23:
	str	x8, [x19, #80]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.24:
	add	x1, x19, #148
	mov	x0, x19
	mov	w2, #1
	bl	_rgui_set_video_config
	b	LBB0_26
LBB0_25:
	mov	x0, x19
	bl	_rgui_update_menu_viewport
	add	x1, x19, #144
	mov	x0, x19
	mov	w2, #1
	bl	_rgui_set_video_config
	str	wzr, [x19, #72]
LBB0_26:
	ldr	x9, [x19, #88]
	ldr	x8, [x21]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	ldr	x9, [x19, #96]
	ldr	x10, [x21, #8]
	cmp	x9, x10
	b.eq	LBB0_32
LBB0_28:
	ldr	x9, [x20, #88]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_31
; %bb.29:
	ldr	w9, [x19, #72]
	cbnz	w9, LBB0_31
; %bb.30:
	mov	x0, x19
	bl	_rgui_update_menu_viewport
	add	x1, x19, #144
	mov	x0, x19
	mov	w2, #1
	bl	_rgui_set_video_config
	ldr	x8, [x21]
LBB0_31:
	ldr	x9, [x21, #8]
	stp	x8, x9, [x19, #88]
LBB0_32:
	ldr	x8, [x19, #136]
	cbz	x8, LBB0_35
; %bb.33:
	bl	_cpu_features_get_time_usec
	ldr	w8, [x19, #104]
	sub	w8, w0, w8
	scvtf	s0, w8
	ldr	w8, [x20, #96]
	mov	w9, #1000
	mul	w8, w8, w9
	scvtf	s1, w8
	ldr	x8, [x19, #128]
	cmp	x8, #0
	fmov	s2, #1.50000000
	fmov	s3, #1.00000000
	fcsel	s2, s3, s2, eq
	fmul	s1, s2, s1
	fcmp	s1, s0
	b.hi	LBB0_35
; %bb.34:
	ldr	w1, [x20, #56]
	mov	x0, x19
	bl	_rgui_load_current_thumbnails
LBB0_35:
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_37
; %bb.36:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_40
LBB0_37:
	add	x0, x19, #112
	bl	_menu_input_get_pointer_state
	ldr	x8, [x19, #112]
Lloh7:
	adrp	x9, _MENU_POINTER_DISABLED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MENU_POINTER_DISABLED@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_41
; %bb.38:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_41
; %bb.39:
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_41
LBB0_40:
Lloh10:
	adrp	x8, _MENU_POINTER_DISABLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MENU_POINTER_DISABLED@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #112]
LBB0_41:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RGUI_PARTICLE_EFFECT_NONE,8,3  ; @RGUI_PARTICLE_EFFECT_NONE
	.comm	_RGUI_THEME_CUSTOM,8,3          ; @RGUI_THEME_CUSTOM
	.comm	_RGUI_ASPECT_RATIO_LOCK_NONE,8,3 ; @RGUI_ASPECT_RATIO_LOCK_NONE
	.comm	_MENU_POINTER_DISABLED,8,3      ; @MENU_POINTER_DISABLED
	.no_dead_strip	_rgui_frame
.subsections_via_symbols
