	.file	"extr_menu.c_draw_savestate_menu.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Load state"
.LC1:
	.string	"Save state"
.LC2:
	.string	"USED"
.LC3:
	.string	"free"
.LC4:
	.string	"SLOT %i (%s)"
.LC5:
	.string	"back"
	.text
	.p2align 4
	.type	draw_savestate_menu, @function
draw_savestate_menu:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR state_slot_flags[rip]
	bt	eax, edi
	jc	.L14
.L2:
	mov	edi, 1
	lea	r13, .LC2[rip]
	call	menu_draw_begin@PLT
	test	ebp, ebp
	mov	esi, 30
	lea	rax, .LC1[rip]
	lea	rdx, .LC0[rip]
	mov	edi, 25
	lea	rbp, .LC3[rip]
	cmove	rdx, rax
	xor	eax, eax
	xor	r12d, r12d
	call	text_out16@PLT
	lea	eax, [rbx+rbx*4]
	mov	edx, 108
	mov	edi, 9
	lea	esi, 60[rax+rax]
	mov	ebx, 60
	call	menu_draw_selection@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR state_slot_flags[rip]
	mov	ecx, r12d
	mov	r8, rbp
	mov	esi, ebx
	lea	rdx, .LC4[rip]
	mov	edi, 25
	sar	eax, cl
	mov	ecx, r12d
	test	al, 1
	cmovne	r8, r13
	xor	eax, eax
	add	ebx, 10
	add	r12d, 1
	call	text_out16@PLT
	cmp	ebx, 160
	jne	.L5
	lea	rdx, .LC5[rip]
	mov	esi, 160
	mov	edi, 25
	xor	eax, eax
	call	text_out16@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	menu_draw_end@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	draw_savestate_bg@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	draw_savestate_menu, .-draw_savestate_menu
	.comm	state_slot_flags,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_menu.c_draw_savestate_menu.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Load state\000"
	.align	2
.LC1:
	.ascii	"Save state\000"
	.align	2
.LC2:
	.ascii	"USED\000"
	.align	2
.LC3:
	.ascii	"free\000"
	.align	2
.LC4:
	.ascii	"SLOT %i (%s)\000"
	.align	2
.LC5:
	.ascii	"back\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_savestate_menu, %function
draw_savestate_menu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r6, .L15
	mov	r4, r0
	ldr	r3, [r6]
	mov	r5, r1
	asr	r3, r3, r0
	tst	r3, #1
	sub	sp, sp, #12
	bne	.L14
.L2:
	mov	r0, #1
	bl	menu_draw_begin
	ldr	r3, .L15+4
	cmp	r5, #0
	ldr	r2, .L15+8
	mov	r1, #30
	moveq	r2, r3
	add	r4, r4, r4, lsl #2
	mov	r0, #25
	bl	text_out16
	lsl	r1, r4, #1
	mov	r2, #108
	mov	r0, #9
	add	r1, r1, #60
	bl	menu_draw_selection
	mov	r5, #0
	mov	r4, #60
	ldr	r8, .L15+12
	ldr	r7, .L15+16
	ldr	r9, .L15+20
.L5:
	ldr	r1, [r6]
	mov	r3, r5
	asr	r1, r1, r5
	tst	r1, #1
	movne	r1, r8
	moveq	r1, r7
	mov	r2, r9
	str	r1, [sp]
	mov	r0, #25
	mov	r1, r4
	add	r4, r4, #10
	bl	text_out16
	cmp	r4, #160
	add	r5, r5, #1
	bne	.L5
	mov	r1, r4
	ldr	r2, .L15+24
	mov	r0, #25
	bl	text_out16
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	menu_draw_end
.L14:
	bl	draw_savestate_bg
	b	.L2
.L16:
	.align	2
.L15:
	.word	state_slot_flags
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	draw_savestate_menu, .-draw_savestate_menu
	.comm	state_slot_flags,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
