	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_savestate_menu
_draw_savestate_menu:                   ## @draw_savestate_menu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_state_slot_flags@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	btl	%edi, %eax
	jae	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_draw_savestate_bg
LBB0_2:
	xorl	%eax, %eax
	callq	_menu_draw_begin
	testl	%r14d, %r14d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	$105, %edi
	movl	$46, %esi
	xorl	%eax, %eax
	callq	_text_out16
	leal	(%rbx,%rbx,4), %eax
	leal	(%rax,%rax), %esi
	addl	$76, %esi
	movl	$89, %edi
	movl	$108, %edx
	callq	_menu_draw_selection
	testb	$1, (%r15)
	leaq	L_.str.4(%rip), %r12
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %r8
	cmoveq	%r12, %r8
	leaq	L_.str.2(%rip), %r14
	movl	$105, %edi
	movl	$76, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_text_out16
	testb	$2, (%r15)
	movq	%rbx, %r8
	cmoveq	%r12, %r8
	movl	$105, %edi
	movl	$86, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%eax, %eax
	callq	_text_out16
	testb	$4, (%r15)
	movq	%rbx, %r8
	cmoveq	%r12, %r8
	movl	$105, %edi
	movl	$96, %esi
	movq	%r14, %rdx
	movl	$2, %ecx
	xorl	%eax, %eax
	callq	_text_out16
	testb	$8, (%r15)
	movq	%rbx, %r8
	cmoveq	%r12, %r8
	movl	$105, %edi
	movl	$106, %esi
	movq	%r14, %rdx
	movl	$3, %ecx
	xorl	%eax, %eax
	callq	_text_out16
	testb	$16, (%r15)
	movq	%rbx, %r8
	cmoveq	%r12, %r8
	movl	$105, %edi
	movl	$116, %esi
	movq	%r14, %rdx
	movl	$4, %ecx
	xorl	%eax, %eax
	callq	_text_out16
	testb	$32, (%r15)
	movq	%rbx, %r8
	cmoveq	%r12, %r8
	movl	$105, %edi
	movl	$126, %esi
	movq	%r14, %rdx
	movl	$5, %ecx
	xorl	%eax, %eax
	callq	_text_out16
	testb	$64, (%r15)
	movq	%rbx, %r8
	cmoveq	%r12, %r8
	movl	$105, %edi
	movl	$136, %esi
	movq	%r14, %rdx
	movl	$6, %ecx
	xorl	%eax, %eax
	callq	_text_out16
	testb	$-128, (%r15)
	movq	%rbx, %r8
	cmoveq	%r12, %r8
	movl	$105, %edi
	movl	$146, %esi
	movq	%r14, %rdx
	movl	$7, %ecx
	xorl	%eax, %eax
	callq	_text_out16
	testl	$256, (%r15)                    ## imm = 0x100
	movq	%rbx, %r8
	cmoveq	%r12, %r8
	movl	$105, %edi
	movl	$156, %esi
	movq	%r14, %rdx
	movl	$8, %ecx
	xorl	%eax, %eax
	callq	_text_out16
	testl	$512, (%r15)                    ## imm = 0x200
	cmoveq	%r12, %rbx
	movl	$105, %edi
	movl	$166, %esi
	movq	%r14, %rdx
	movl	$9, %ecx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_text_out16
	leaq	L_.str.5(%rip), %rdx
	movl	$105, %edi
	movl	$176, %esi
	xorl	%eax, %eax
	callq	_text_out16
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_draw_end                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_state_slot_flags,4,2           ## @state_slot_flags
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Load state"

L_.str.1:                               ## @.str.1
	.asciz	"Save state"

L_.str.2:                               ## @.str.2
	.asciz	"SLOT %i (%s)"

L_.str.3:                               ## @.str.3
	.asciz	"USED"

L_.str.4:                               ## @.str.4
	.asciz	"free"

L_.str.5:                               ## @.str.5
	.asciz	"back"

	.no_dead_strip	_draw_savestate_menu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_savestate_menu
_draw_savestate_menu:                   ; @draw_savestate_menu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _state_slot_flags@GOTPAGE
Lloh1:
	ldr	x21, [x21, _state_slot_flags@GOTPAGEOFF]
	ldr	w8, [x21]
	lsr	w8, w8, w0
	tbz	w8, #0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_draw_savestate_bg
LBB0_2:
	bl	_menu_draw_begin
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
	mov	w0, #105
	mov	w1, #46
	bl	_text_out16
	mov	w8, #10
	mul	w8, w19, w8
	add	w1, w8, #76
	mov	w0, #89
	mov	w2, #108
	bl	_menu_draw_selection
	ldr	w8, [x21]
Lloh6:
	adrp	x20, l_.str.3@PAGE
Lloh7:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh8:
	adrp	x22, l_.str.4@PAGE
Lloh9:
	add	x22, x22, l_.str.4@PAGEOFF
	tst	w8, #0x1
	csel	x8, x22, x20, eq
	stp	xzr, x8, [sp]
Lloh10:
	adrp	x19, l_.str.2@PAGE
Lloh11:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	w0, #105
	mov	w1, #76
	mov	x2, x19
	bl	_text_out16
	ldr	w8, [x21]
	tst	w8, #0x2
	csel	x8, x22, x20, eq
	mov	w9, #1
	stp	x9, x8, [sp]
	mov	w0, #105
	mov	w1, #86
	mov	x2, x19
	bl	_text_out16
	ldr	w8, [x21]
	tst	w8, #0x4
	csel	x8, x22, x20, eq
	mov	w9, #2
	stp	x9, x8, [sp]
	mov	w0, #105
	mov	w1, #96
	mov	x2, x19
	bl	_text_out16
	ldr	w8, [x21]
	tst	w8, #0x8
	csel	x8, x22, x20, eq
	mov	w9, #3
	stp	x9, x8, [sp]
	mov	w0, #105
	mov	w1, #106
	mov	x2, x19
	bl	_text_out16
	ldr	w8, [x21]
	tst	w8, #0x10
	csel	x8, x22, x20, eq
	mov	w9, #4
	stp	x9, x8, [sp]
	mov	w0, #105
	mov	w1, #116
	mov	x2, x19
	bl	_text_out16
	ldr	w8, [x21]
	tst	w8, #0x20
	csel	x8, x22, x20, eq
	mov	w9, #5
	stp	x9, x8, [sp]
	mov	w0, #105
	mov	w1, #126
	mov	x2, x19
	bl	_text_out16
	ldr	w8, [x21]
	tst	w8, #0x40
	csel	x8, x22, x20, eq
	mov	w9, #6
	stp	x9, x8, [sp]
	mov	w0, #105
	mov	w1, #136
	mov	x2, x19
	bl	_text_out16
	ldr	w8, [x21]
	tst	w8, #0x80
	csel	x8, x22, x20, eq
	mov	w9, #7
	stp	x9, x8, [sp]
	mov	w0, #105
	mov	w1, #146
	mov	x2, x19
	bl	_text_out16
	ldr	w8, [x21]
	tst	w8, #0x100
	csel	x8, x22, x20, eq
	mov	w9, #8
	stp	x9, x8, [sp]
	mov	w0, #105
	mov	w1, #156
	mov	x2, x19
	bl	_text_out16
	ldr	w8, [x21]
	tst	w8, #0x200
	csel	x8, x22, x20, eq
	mov	w9, #9
	stp	x9, x8, [sp]
	mov	w0, #105
	mov	w1, #166
	mov	x2, x19
	bl	_text_out16
Lloh12:
	adrp	x2, l_.str.5@PAGE
Lloh13:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w0, #105
	mov	w1, #176
	bl	_text_out16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_menu_draw_end
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_state_slot_flags,4,2           ; @state_slot_flags
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Load state"

l_.str.1:                               ; @.str.1
	.asciz	"Save state"

l_.str.2:                               ; @.str.2
	.asciz	"SLOT %i (%s)"

l_.str.3:                               ; @.str.3
	.asciz	"USED"

l_.str.4:                               ; @.str.4
	.asciz	"free"

l_.str.5:                               ; @.str.5
	.asciz	"back"

	.no_dead_strip	_draw_savestate_menu
.subsections_via_symbols
