	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pemu_finalize_frame            ## -- Begin function pemu_finalize_frame
	.p2align	4, 0x90
_pemu_finalize_frame:                   ## @pemu_finalize_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rdx
	cmpb	$0, (%rsi)
	je	LBB0_3
## %bb.2:
	movq	_g_osd_y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	callq	_emu_osd_text16
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:
	cmpb	$0, (%rbx)
	je	LBB0_7
## %bb.5:
	movq	_currentConfig@GOTPCREL(%rip), %rax
	movq	_EOPT_SHOW_FPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_g_osd_fps_x@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_osd_y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_emu_osd_text16
LBB0_7:
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_MCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_currentConfig@GOTPCREL(%rip), %rax
	movq	_EOPT_EN_CD_LEDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_draw_cd_leds                   ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_osd_y,4,2                    ## @g_osd_y
	.comm	_currentConfig,4,2              ## @currentConfig
	.comm	_EOPT_SHOW_FPS,4,2              ## @EOPT_SHOW_FPS
	.comm	_g_osd_fps_x,4,2                ## @g_osd_fps_x
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_MCD,4,2                   ## @PAHW_MCD
	.comm	_EOPT_EN_CD_LEDS,4,2            ## @EOPT_EN_CD_LEDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pemu_finalize_frame            ; -- Begin function pemu_finalize_frame
	.p2align	2
_pemu_finalize_frame:                   ; @pemu_finalize_frame
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x2, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _g_osd_y@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_osd_y@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #2
	bl	_emu_osd_text16
LBB0_3:
Lloh3:
	adrp	x20, _currentConfig@GOTPAGE
Lloh4:
	ldr	x20, [x20, _currentConfig@GOTPAGEOFF]
	cbz	x19, LBB0_7
; %bb.4:
	ldrb	w8, [x19]
	cbz	w8, LBB0_7
; %bb.5:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _EOPT_SHOW_FPS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EOPT_SHOW_FPS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _g_osd_fps_x@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_osd_fps_x@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _g_osd_y@GOTPAGE
Lloh12:
	ldr	x8, [x8, _g_osd_y@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_emu_osd_text16
LBB0_7:
Lloh14:
	adrp	x8, _PicoAHW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PicoAHW@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _PAHW_MCD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PAHW_MCD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x20]
Lloh20:
	adrp	x9, _EOPT_EN_CD_LEDS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EOPT_EN_CD_LEDS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_draw_cd_leds
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_g_osd_y,4,2                    ; @g_osd_y
	.comm	_currentConfig,4,2              ; @currentConfig
	.comm	_EOPT_SHOW_FPS,4,2              ; @EOPT_SHOW_FPS
	.comm	_g_osd_fps_x,4,2                ; @g_osd_fps_x
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_MCD,4,2                   ; @PAHW_MCD
	.comm	_EOPT_EN_CD_LEDS,4,2            ; @EOPT_EN_CD_LEDS
.subsections_via_symbols
