	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_video_toggle_renderer     ## -- Begin function plat_video_toggle_renderer
	.p2align	4, 0x90
_plat_video_toggle_renderer:            ## @plat_video_toggle_renderer
	.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
	movl	%esi, %ebx
	callq	_change_renderer
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_vid_reset_mode
	movq	_rendstatus_old@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_32X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	jne	LBB0_2
## %bb.3:
	movq	_renderer_names@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_renderer_names32x@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_get_renderer
	movl	(%rbx,%rax,4), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_emu_status_msg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rendstatus_old,4,2             ## @rendstatus_old
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_32X,4,2                   ## @PAHW_32X
	.comm	_renderer_names32x,8,3          ## @renderer_names32x
	.comm	_renderer_names,8,3             ## @renderer_names
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_video_toggle_renderer     ; -- Begin function plat_video_toggle_renderer
	.p2align	2
_plat_video_toggle_renderer:            ; @plat_video_toggle_renderer
	.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, x1
	bl	_change_renderer
	cbz	w19, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_vid_reset_mode
Lloh0:
	adrp	x8, _rendstatus_old@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rendstatus_old@GOTPAGEOFF]
	mov	w9, #-1
Lloh2:
	adrp	x10, _PicoAHW@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PicoAHW@GOTPAGEOFF]
Lloh4:
	str	w9, [x8]
Lloh5:
	ldr	w8, [x10]
Lloh6:
	adrp	x9, _PAHW_32X@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAHW_32X@GOTPAGEOFF]
Lloh8:
	adrp	x10, _renderer_names@GOTPAGE
Lloh9:
	ldr	x10, [x10, _renderer_names@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x11, _renderer_names32x@GOTPAGE
Lloh12:
	ldr	x11, [x11, _renderer_names32x@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	x19, [x8]
	bl	_get_renderer
	ldr	w0, [x19, x0, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emu_status_msg
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_rendstatus_old,4,2             ; @rendstatus_old
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_32X,4,2                   ; @PAHW_32X
	.comm	_renderer_names32x,8,3          ; @renderer_names32x
	.comm	_renderer_names,8,3             ; @renderer_names
.subsections_via_symbols
