	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_draw_begin
_menu_draw_begin:                       ## @menu_draw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_plat_video_menu_begin
	xorl	%eax, %eax
	callq	_menu_reset_borders
	movq	_g_border_style@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	setne	%al
	testl	%ebx, %ebx
	sete	%dl
	andb	%al, %dl
	movzbl	%dl, %eax
	movq	_borders_pending@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.1:
	movq	_g_menuscreen_ptr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_g_menubg_ptr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_menuscreen_w@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_g_menuscreen_h@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.5:
	imull	%edx, %eax
	movl	%eax, %edx
	movl	$1, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_menu_darken_bg                 ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	imull	%eax, %edx
	addl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_border_style,8,3             ## @g_border_style
	.comm	_borders_pending,4,2            ## @borders_pending
	.comm	_g_menuscreen_ptr,4,2           ## @g_menuscreen_ptr
	.comm	_g_menubg_ptr,4,2               ## @g_menubg_ptr
	.comm	_g_menuscreen_w,4,2             ## @g_menuscreen_w
	.comm	_g_menuscreen_h,4,2             ## @g_menuscreen_h
	.no_dead_strip	_menu_draw_begin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_draw_begin
_menu_draw_begin:                       ; @menu_draw_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
	mov	x19, x1
	mov	x20, x0
	bl	_plat_video_menu_begin
	bl	_menu_reset_borders
Lloh0:
	adrp	x8, _g_border_style@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_border_style@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w19, #0, #0, ne
	cset	w9, eq
Lloh3:
	adrp	x10, _borders_pending@GOTPAGE
Lloh4:
	ldr	x10, [x10, _borders_pending@GOTPAGEOFF]
Lloh5:
	str	w9, [x10]
	cbz	w20, LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, _g_menuscreen_ptr@GOTPAGE
Lloh7:
	ldr	x9, [x9, _g_menuscreen_ptr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
Lloh9:
	adrp	x9, _g_menubg_ptr@GOTPAGE
Lloh10:
	ldr	x9, [x9, _g_menubg_ptr@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
Lloh12:
	adrp	x9, _g_menuscreen_w@GOTPAGE
Lloh13:
	ldr	x9, [x9, _g_menuscreen_w@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _g_menuscreen_h@GOTPAGE
Lloh16:
	ldr	x10, [x10, _g_menuscreen_h@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cbz	w19, LBB0_5
; %bb.2:
	cbz	x8, LBB0_5
; %bb.3:
	mul	w2, w10, w9
	mov	w3, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_menu_darken_bg
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mul	w8, w9, w10
	lsl	w2, w8, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_g_border_style,8,3             ; @g_border_style
	.comm	_borders_pending,4,2            ; @borders_pending
	.comm	_g_menuscreen_ptr,4,2           ; @g_menuscreen_ptr
	.comm	_g_menubg_ptr,4,2               ; @g_menubg_ptr
	.comm	_g_menuscreen_w,4,2             ; @g_menuscreen_w
	.comm	_g_menuscreen_h,4,2             ; @g_menuscreen_h
	.no_dead_strip	_menu_draw_begin
.subsections_via_symbols
