	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emu_loop_prep
_emu_loop_prep:                         ## @emu_loop_prep
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_currentConfig@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	xorl	%eax, %eax
	callq	_plat_target_cpu_clock_get
	cmpq	%rax, %rbx
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	callq	_plat_target_cpu_clock_set
LBB0_2:
	movq	_Pico@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	cmpl	_emu_loop_prep.pal_old(%rip), %edi
	je	LBB0_4
## %bb.3:
	callq	_plat_target_lcdrate_set
	movl	(%r14), %eax
	movl	%eax, _emu_loop_prep.pal_old(%rip)
LBB0_4:
	movl	8(%r15), %edi
	cmpl	_emu_loop_prep.filter_old(%rip), %edi
	je	LBB0_6
## %bb.5:
	callq	_plat_target_hwfilter_set
	movl	8(%r15), %eax
	movl	%eax, _emu_loop_prep.filter_old(%rip)
LBB0_6:
	movl	12(%r15), %edi
	xorl	%esi, %esi
	callq	_plat_target_gamma_set
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pemu_loop_prep                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @emu_loop_prep.pal_old
_emu_loop_prep.pal_old:
	.long	4294967295                      ## 0xffffffff

	.p2align	2                               ## @emu_loop_prep.filter_old
_emu_loop_prep.filter_old:
	.long	4294967295                      ## 0xffffffff

	.comm	_currentConfig,16,3             ## @currentConfig
	.comm	_Pico,4,2                       ## @Pico
	.no_dead_strip	_emu_loop_prep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emu_loop_prep
_emu_loop_prep:                         ; @emu_loop_prep
	.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
Lloh0:
	adrp	x19, _currentConfig@GOTPAGE
Lloh1:
	ldr	x19, [x19, _currentConfig@GOTPAGEOFF]
	ldr	x20, [x19]
	bl	_plat_target_cpu_clock_get
	cmp	x20, x0
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_plat_target_cpu_clock_set
LBB0_2:
Lloh2:
	adrp	x20, _Pico@GOTPAGE
Lloh3:
	ldr	x20, [x20, _Pico@GOTPAGEOFF]
	ldr	w0, [x20]
	adrp	x21, _emu_loop_prep.pal_old@PAGE
	ldr	w8, [x21, _emu_loop_prep.pal_old@PAGEOFF]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	bl	_plat_target_lcdrate_set
	ldr	w8, [x20]
	str	w8, [x21, _emu_loop_prep.pal_old@PAGEOFF]
LBB0_4:
	ldr	w0, [x19, #8]
	adrp	x20, _emu_loop_prep.filter_old@PAGE
	ldr	w8, [x20, _emu_loop_prep.filter_old@PAGEOFF]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:
	bl	_plat_target_hwfilter_set
	ldr	w8, [x19, #8]
	str	w8, [x20, _emu_loop_prep.filter_old@PAGEOFF]
LBB0_6:
	ldr	w0, [x19, #12]
	mov	w1, #0
	bl	_plat_target_gamma_set
	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
	b	_pemu_loop_prep
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @emu_loop_prep.pal_old
_emu_loop_prep.pal_old:
	.long	4294967295                      ; 0xffffffff

	.p2align	2                               ; @emu_loop_prep.filter_old
_emu_loop_prep.filter_old:
	.long	4294967295                      ; 0xffffffff

	.comm	_currentConfig,16,3             ; @currentConfig
	.comm	_Pico,4,2                       ; @Pico
	.no_dead_strip	_emu_loop_prep
.subsections_via_symbols
