	.file	"extr_in_sdl.c_in_sdl_menu_translate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	in_sdl_menu_translate, @function
in_sdl_menu_translate:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 8[rdi]
	mov	rcx, QWORD PTR [rax]
	mov	r9, QWORD PTR [rcx]
	mov	rax, QWORD PTR 24[rcx]
	mov	r8d, DWORD PTR 12[rcx]
	test	r9, r9
	cmove	r9, QWORD PTR in_sdl_keys[rip]
	cmp	QWORD PTR [rdi], 0
	cmovne	r8d, DWORD PTR 8[rcx]
	cmove	rax, QWORD PTR 16[rcx]
	test	esi, esi
	js	.L4
	test	r8d, r8d
	jle	.L22
	lea	ecx, -1[r8]
	lea	rcx, 8[rax+rcx*8]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	add	rax, 8
	cmp	rax, rcx
	je	.L22
.L11:
	cmp	DWORD PTR 4[rax], esi
	jne	.L10
	mov	eax, DWORD PTR [rax]
.L6:
	test	rdx, rdx
	je	.L1
	cmp	esi, DWORD PTR SDLK_LAST[rip]
	jnb	.L1
	movsx	rsi, esi
	mov	rcx, QWORD PTR [r9+rsi*8]
	test	rcx, rcx
	je	.L1
	cmp	BYTE PTR 1[rcx], 0
	jne	.L1
	movzx	ecx, BYTE PTR [rcx]
	or	eax, DWORD PTR PBTN_CHAR[rip]
	mov	BYTE PTR [rdx], cl
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	xor	eax, eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	neg	esi
	test	r8d, r8d
	jle	.L13
	lea	edx, -1[r8]
	lea	rdx, 8[rax+rdx*8]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	add	rax, 8
	cmp	rax, rdx
	je	.L13
.L9:
	cmp	DWORD PTR [rax], esi
	jne	.L8
	mov	eax, DWORD PTR 4[rax]
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	xor	eax, eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	in_sdl_menu_translate, .-in_sdl_menu_translate
	.comm	in_sdl_keys,8,8
	.comm	SDLK_LAST,4,4
	.comm	PBTN_CHAR,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_in_sdl.c_in_sdl_menu_translate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	in_sdl_menu_translate, %function
in_sdl_menu_translate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, lr}
	ldr	lr, [r3]
	ldr	ip, .L26
	ldr	r4, [lr]
	ldr	r3, [r0]
	ldr	r0, [ip]
	cmp	r4, #0
	moveq	r4, r0
	ldr	r5, [lr, #4]
	ldr	r0, [lr, #12]
	cmp	r3, #0
	ldr	ip, [lr, #8]
	ldr	r3, [lr, #16]
	movne	ip, r5
	moveq	r3, r0
	cmp	r1, #0
	blt	.L4
	cmp	ip, #0
	mov	r0, #0
	bgt	.L11
	b	.L6
.L10:
	cmp	ip, r0
	add	r3, r3, #8
	beq	.L24
.L11:
	ldr	lr, [r3, #4]
	add	r0, r0, #1
	cmp	lr, r1
	bne	.L10
	ldr	r0, [r3]
.L6:
	cmp	r2, #0
	popeq	{r4, r5, pc}
.L25:
	ldr	r3, .L26+4
	ldr	r3, [r3]
	cmp	r1, r3
	popcs	{r4, r5, pc}
	ldr	r3, [r4, r1, lsl #2]
	cmp	r3, #0
	popeq	{r4, r5, pc}
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	cmp	r1, #0
	ldreq	ip, .L26+8
	ldrbeq	r1, [r3]	@ zero_extendqisi2
	ldreq	r3, [ip]
	strbeq	r1, [r2]
	orreq	r0, r0, r3
	pop	{r4, r5, pc}
.L4:
	cmp	ip, #0
	rsb	r1, r1, #0
	ble	.L13
	mov	r0, r3
	mov	r2, #0
	b	.L9
.L8:
	cmp	ip, r2
	add	r0, r0, #8
	beq	.L13
.L9:
	ldr	lr, [r3, r2, lsl #3]
	add	r2, r2, #1
	cmp	lr, r1
	bne	.L8
	ldr	r0, [r0, #4]
	pop	{r4, r5, pc}
.L24:
	cmp	r2, #0
	mov	r0, #0
	bne	.L25
	pop	{r4, r5, pc}
.L13:
	mov	r0, #0
	pop	{r4, r5, pc}
.L27:
	.align	2
.L26:
	.word	in_sdl_keys
	.word	SDLK_LAST
	.word	PBTN_CHAR
	.size	in_sdl_menu_translate, .-in_sdl_menu_translate
	.comm	in_sdl_keys,4,4
	.comm	SDLK_LAST,4,4
	.comm	PBTN_CHAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
