	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_video_menu_begin          ## -- Begin function plat_video_menu_begin
	.p2align	4, 0x90
_plat_video_menu_begin:                 ## @plat_video_menu_begin
	.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	_plat_sdl_overlay@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_shadow_fb@GOTPCREL(%rip), %rax
	jne	LBB0_5
## %bb.1:
	movq	_plat_sdl_gl_active@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_5
## %bb.2:
	movq	_plat_sdl_screen@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_SDL_MUSTLOCK
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	callq	_SDL_LockSurface
LBB0_4:
	movq	(%rbx), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	_g_menuscreen_ptr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_plat_sdl_overlay,8,3           ## @plat_sdl_overlay
	.comm	_plat_sdl_gl_active,8,3         ## @plat_sdl_gl_active
	.comm	_shadow_fb,4,2                  ## @shadow_fb
	.comm	_g_menuscreen_ptr,4,2           ## @g_menuscreen_ptr
	.comm	_plat_sdl_screen,8,3            ## @plat_sdl_screen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_video_menu_begin          ; -- Begin function plat_video_menu_begin
	.p2align	2
_plat_video_menu_begin:                 ; @plat_video_menu_begin
	.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, _plat_sdl_overlay@GOTPAGE
Lloh1:
	ldr	x8, [x8, _plat_sdl_overlay@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _plat_sdl_gl_active@GOTPAGE
Lloh4:
	ldr	x9, [x9, _plat_sdl_gl_active@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _shadow_fb@GOTPAGE
Lloh7:
	ldr	x8, [x8, _shadow_fb@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x19, _plat_sdl_screen@GOTPAGE
Lloh9:
	ldr	x19, [x19, _plat_sdl_screen@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_SDL_MUSTLOCK
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19]
	bl	_SDL_LockSurface
LBB0_4:
	ldr	x8, [x19]
LBB0_5:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _g_menuscreen_ptr@GOTPAGE
Lloh11:
	ldr	x9, [x9, _g_menuscreen_ptr@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_plat_sdl_overlay,8,3           ; @plat_sdl_overlay
	.comm	_plat_sdl_gl_active,8,3         ; @plat_sdl_gl_active
	.comm	_shadow_fb,4,2                  ; @shadow_fb
	.comm	_g_menuscreen_ptr,4,2           ; @g_menuscreen_ptr
	.comm	_plat_sdl_screen,8,3            ; @plat_sdl_screen
.subsections_via_symbols
