	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_video_menu_enter          ## -- Begin function plat_video_menu_enter
	.p2align	4, 0x90
_plat_video_menu_enter:                 ## @plat_video_menu_enter
	.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	_gp2x_current_bpp@GOTPCREL(%rip), %rax
	cmpl	$16, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_gp2x_dev_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GP2X_DEV_WIZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_gp2x_video_wait_vsync
	movq	_gp2x_screens@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$153600, %edx                   ## imm = 0x25800
	callq	_memset
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	xorl	%esi, %esi
	movl	$153600, %edx                   ## imm = 0x25800
	callq	_memset
	xorl	%eax, %eax
	callq	_gp2x_video_flip2
LBB0_3:
	xorl	%eax, %eax
	callq	_gp2x_video_flip2
	movl	$16, %edi
	xorl	%esi, %esi
	callq	_gp2x_video_changemode_ll
	xorl	%edi, %edi
	movl	$320, %esi                      ## imm = 0x140
	movl	$240, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gp2x_video_RGB_setscaling      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gp2x_current_bpp,4,2           ## @gp2x_current_bpp
	.comm	_gp2x_dev_id,8,3                ## @gp2x_dev_id
	.comm	_GP2X_DEV_WIZ,8,3               ## @GP2X_DEV_WIZ
	.comm	_gp2x_screens,8,3               ## @gp2x_screens
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_video_menu_enter          ; -- Begin function plat_video_menu_enter
	.p2align	2
_plat_video_menu_enter:                 ; @plat_video_menu_enter
	.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
Lloh0:
	adrp	x8, _gp2x_current_bpp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gp2x_current_bpp@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #16
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _gp2x_dev_id@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gp2x_dev_id@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _GP2X_DEV_WIZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GP2X_DEV_WIZ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	bl	_gp2x_video_wait_vsync
Lloh9:
	adrp	x19, _gp2x_screens@GOTPAGE
Lloh10:
	ldr	x19, [x19, _gp2x_screens@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #22528
	movk	w2, #2, lsl #16
	bl	_memset
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	w1, #0
	mov	w2, #22528
	movk	w2, #2, lsl #16
	bl	_memset
	bl	_gp2x_video_flip2
LBB0_3:
	bl	_gp2x_video_flip2
	mov	w0, #16
	mov	w1, #0
	bl	_gp2x_video_changemode_ll
	mov	w0, #0
	mov	w1, #320
	mov	w2, #240
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gp2x_video_RGB_setscaling
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_gp2x_current_bpp,4,2           ; @gp2x_current_bpp
	.comm	_gp2x_dev_id,8,3                ; @gp2x_dev_id
	.comm	_GP2X_DEV_WIZ,8,3               ; @GP2X_DEV_WIZ
	.comm	_gp2x_screens,8,3               ; @gp2x_screens
.subsections_via_symbols
