	.file	"extr_main.c_sdl_input_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sdl_input_update
	.type	sdl_input_update, @function
sdl_input_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	edi, edi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	SDL_GetKeyState@PLT
	mov	rdx, QWORD PTR input[rip+16]
	mov	rbx, rax
	mov	rax, QWORD PTR joynum[rip]
	mov	QWORD PTR [rdx+rax*8], 0
	mov	rax, QWORD PTR input[rip]
	mov	rcx, QWORD PTR joynum[rip]
	mov	eax, DWORD PTR [rax+rcx*4]
	add	eax, -128
	cmp	eax, 7
	ja	.L2
	lea	rsi, .L4[rip]
	movsx	rax, DWORD PTR [rsi+rax*4]
	add	rax, rsi
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR SDLK_g[rip]
	mov	edi, DWORD PTR [rbx+rax*4]
	test	edi, edi
	je	.L56
	mov	rax, QWORD PTR INPUT_ACTIVATOR_7L[rip]
	or	QWORD PTR [rdx+rcx*8], rax
.L56:
	mov	rax, QWORD PTR SDLK_h[rip]
	mov	esi, DWORD PTR [rbx+rax*4]
	test	esi, esi
	je	.L57
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_ACTIVATOR_7U[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L57:
	mov	rax, QWORD PTR SDLK_j[rip]
	mov	ecx, DWORD PTR [rbx+rax*4]
	test	ecx, ecx
	je	.L58
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_ACTIVATOR_8L[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L58:
	mov	rax, QWORD PTR SDLK_k[rip]
	mov	eax, DWORD PTR [rbx+rax*4]
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_ACTIVATOR_8U[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L2:
	mov	rax, QWORD PTR SDLK_a[rip]
	mov	eax, DWORD PTR [rbx+rax*4]
	test	eax, eax
	je	.L59
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_A[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L59:
	mov	rax, QWORD PTR SDLK_s[rip]
	mov	eax, DWORD PTR [rbx+rax*4]
	test	eax, eax
	je	.L60
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_B[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L60:
	mov	rax, QWORD PTR SDLK_d[rip]
	mov	eax, DWORD PTR [rbx+rax*4]
	test	eax, eax
	je	.L61
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_C[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L61:
	mov	rax, QWORD PTR SDLK_f[rip]
	mov	eax, DWORD PTR [rbx+rax*4]
	test	eax, eax
	je	.L62
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_START[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L62:
	mov	rax, QWORD PTR SDLK_z[rip]
	mov	r11d, DWORD PTR [rbx+rax*4]
	test	r11d, r11d
	je	.L63
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_X[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L63:
	mov	rax, QWORD PTR SDLK_x[rip]
	mov	r10d, DWORD PTR [rbx+rax*4]
	test	r10d, r10d
	je	.L64
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_Y[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L64:
	mov	rax, QWORD PTR SDLK_c[rip]
	mov	r9d, DWORD PTR [rbx+rax*4]
	test	r9d, r9d
	je	.L65
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_Z[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L65:
	mov	rax, QWORD PTR SDLK_v[rip]
	mov	r8d, DWORD PTR [rbx+rax*4]
	test	r8d, r8d
	je	.L66
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_MODE[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L66:
	mov	rax, QWORD PTR SDLK_UP[rip]
	mov	edi, DWORD PTR [rbx+rax*4]
	test	edi, edi
	jne	.L117
	mov	rax, QWORD PTR SDLK_DOWN[rip]
	mov	esi, DWORD PTR [rbx+rax*4]
	test	esi, esi
	je	.L68
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_DOWN[rip]
	or	QWORD PTR [rdx+rax*8], rcx
.L68:
	mov	rax, QWORD PTR SDLK_LEFT[rip]
	mov	ecx, DWORD PTR [rbx+rax*4]
	test	ecx, ecx
	je	.L69
.L119:
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_LEFT[rip]
	or	QWORD PTR [rdx+rax*8], rcx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rsi, 4[rsp]
	mov	rdi, rsp
	call	SDL_GetMouseState@PLT
	mov	rdx, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR input[rip+8]
	lea	rdi, 0[0+rdx*8]
	mov	rsi, QWORD PTR [rcx+rdx*8]
	mov	edx, DWORD PTR VIDEO_WIDTH[rip]
	mov	ecx, edx
	sub	ecx, DWORD PTR bitmap[rip]
	mov	edx, ecx
	shr	edx, 31
	add	edx, ecx
	mov	ecx, DWORD PTR [rsp]
	sar	edx
	sub	ecx, edx
	mov	DWORD PTR [rsi], ecx
	mov	edx, DWORD PTR VIDEO_HEIGHT[rip]
	sub	edx, DWORD PTR bitmap[rip+4]
	mov	ecx, edx
	shr	edx, 31
	add	edx, ecx
	mov	ecx, DWORD PTR 4[rsp]
	sar	edx
	sub	ecx, edx
	mov	DWORD PTR 4[rsi], ecx
	test	DWORD PTR SDL_BUTTON_LMASK[rip], eax
	je	.L12
	add	rdi, QWORD PTR input[rip+16]
	mov	rdx, QWORD PTR INPUT_A[rip]
	or	QWORD PTR [rdi], rdx
.L12:
	test	DWORD PTR SDL_BUTTON_RMASK[rip], eax
	je	.L13
	mov	rcx, QWORD PTR joynum[rip]
	mov	rdx, QWORD PTR input[rip+16]
	mov	rsi, QWORD PTR INPUT_B[rip]
	or	QWORD PTR [rdx+rcx*8], rsi
.L13:
	test	DWORD PTR SDL_BUTTON_MMASK[rip], eax
	je	.L23
	mov	rdx, QWORD PTR joynum[rip]
	mov	rax, QWORD PTR input[rip+16]
	mov	rcx, QWORD PTR INPUT_C[rip]
	or	QWORD PTR [rax+rdx*8], rcx
.L23:
	mov	rax, QWORD PTR SDLK_f[rip]
	mov	ebx, DWORD PTR [rbx+rax*4]
	test	ebx, ebx
	je	.L16
	mov	rdx, QWORD PTR joynum[rip]
	mov	rax, QWORD PTR input[rip+16]
	mov	rcx, QWORD PTR INPUT_START[rip]
	or	QWORD PTR [rax+rdx*8], rcx
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L118
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rsi, QWORD PTR SDLK_a[rip]
	lea	rax, 0[0+rcx*8]
	mov	r11d, DWORD PTR [rbx+rsi*4]
	test	r11d, r11d
	je	.L25
	mov	rcx, QWORD PTR INPUT_START[rip]
	or	QWORD PTR [rdx+rax], rcx
	mov	rcx, QWORD PTR joynum[rip]
	lea	rax, 0[0+rcx*8]
.L25:
	mov	rsi, QWORD PTR SDLK_s[rip]
	mov	r10d, DWORD PTR [rbx+rsi*4]
	test	r10d, r10d
	je	.L26
	mov	rcx, QWORD PTR INPUT_A[rip]
	or	QWORD PTR [rdx+rax], rcx
	mov	rcx, QWORD PTR joynum[rip]
	lea	rax, 0[0+rcx*8]
.L26:
	mov	rsi, QWORD PTR SDLK_d[rip]
	mov	r9d, DWORD PTR [rbx+rsi*4]
	test	r9d, r9d
	je	.L27
	mov	rcx, QWORD PTR INPUT_C[rip]
	or	QWORD PTR [rdx+rax], rcx
	mov	rcx, QWORD PTR joynum[rip]
	lea	rax, 0[0+rcx*8]
.L27:
	mov	rsi, QWORD PTR SDLK_f[rip]
	mov	r8d, DWORD PTR [rbx+rsi*4]
	test	r8d, r8d
	je	.L28
	mov	rcx, QWORD PTR INPUT_Y[rip]
	or	QWORD PTR [rdx+rax], rcx
	mov	rcx, QWORD PTR joynum[rip]
	lea	rax, 0[0+rcx*8]
.L28:
	mov	rsi, QWORD PTR SDLK_z[rip]
	mov	edi, DWORD PTR [rbx+rsi*4]
	test	edi, edi
	je	.L29
	mov	rcx, QWORD PTR INPUT_B[rip]
	or	QWORD PTR [rdx+rax], rcx
	mov	rcx, QWORD PTR joynum[rip]
	lea	rax, 0[0+rcx*8]
.L29:
	mov	rsi, QWORD PTR SDLK_x[rip]
	mov	esi, DWORD PTR [rbx+rsi*4]
	test	esi, esi
	je	.L30
	mov	rcx, QWORD PTR INPUT_X[rip]
	or	QWORD PTR [rdx+rax], rcx
	mov	rcx, QWORD PTR joynum[rip]
	lea	rax, 0[0+rcx*8]
.L30:
	mov	rsi, QWORD PTR SDLK_c[rip]
	mov	r11d, DWORD PTR [rbx+rsi*4]
	test	r11d, r11d
	je	.L31
	mov	rcx, QWORD PTR INPUT_MODE[rip]
	or	QWORD PTR [rdx+rax], rcx
	mov	rcx, QWORD PTR joynum[rip]
	lea	rax, 0[0+rcx*8]
.L31:
	mov	rsi, QWORD PTR SDLK_v[rip]
	mov	r10d, DWORD PTR [rbx+rsi*4]
	test	r10d, r10d
	je	.L32
	mov	rcx, QWORD PTR INPUT_Z[rip]
	or	QWORD PTR [rdx+rax], rcx
	mov	rcx, QWORD PTR joynum[rip]
	lea	rax, 0[0+rcx*8]
.L32:
	mov	rsi, QWORD PTR SDLK_UP[rip]
	mov	rdx, QWORD PTR input[rip+8]
	mov	r9d, DWORD PTR [rbx+rsi*4]
	mov	rax, QWORD PTR [rdx+rax]
	test	r9d, r9d
	je	.L33
	sub	DWORD PTR 4[rax], 2
.L34:
	mov	rsi, QWORD PTR SDLK_LEFT[rip]
	mov	edi, DWORD PTR [rbx+rsi*4]
	test	edi, edi
	je	.L36
	sub	DWORD PTR [rax], 2
.L37:
	mov	rdx, QWORD PTR 8[rdx+rcx*8]
	mov	rcx, QWORD PTR SDLK_KP8[rip]
	mov	r11d, DWORD PTR [rbx+rcx*4]
	test	r11d, r11d
	jne	.L112
	mov	rcx, QWORD PTR SDLK_KP2[rip]
	mov	r10d, DWORD PTR [rbx+rcx*4]
	test	r10d, r10d
	jne	.L113
	mov	rcx, QWORD PTR SDLK_KP4[rip]
	mov	r9d, DWORD PTR [rbx+rcx*4]
	test	r9d, r9d
	jne	.L112
	mov	rcx, QWORD PTR SDLK_KP6[rip]
	mov	r8d, DWORD PTR [rbx+rcx*4]
	test	r8d, r8d
	jne	.L113
	mov	DWORD PTR [rdx], 128
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, 4[rsp]
	mov	rdi, rsp
	call	SDL_GetMouseState@PLT
	mov	r8d, eax
	mov	rax, QWORD PTR input[rip+8]
	mov	rcx, QWORD PTR [rax]
	imul	eax, DWORD PTR [rsp], 250
	cdq
	idiv	DWORD PTR VIDEO_WIDTH[rip]
	mov	DWORD PTR [rcx], eax
	imul	eax, DWORD PTR 4[rsp], 250
	cdq
	idiv	DWORD PTR VIDEO_HEIGHT[rip]
	mov	DWORD PTR 4[rcx], eax
	test	DWORD PTR SDL_BUTTON_RMASK[rip], r8d
	je	.L16
	mov	rax, QWORD PTR input[rip+16]
	mov	rdx, QWORD PTR INPUT_B[rip]
	or	QWORD PTR [rax], rdx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, 4[rsp]
	mov	rdi, rsp
	call	SDL_GetRelativeMouseState@PLT
	mov	rdx, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR input[rip+8]
	lea	rsi, 0[0+rdx*8]
	mov	rcx, QWORD PTR [rcx+rdx*8]
	movzx	edx, BYTE PTR [rsp]
	neg	edx
	movzx	edx, dl
	mov	DWORD PTR [rcx], edx
	movzx	edx, BYTE PTR 4[rsp]
	neg	edx
	movzx	edx, dl
	mov	DWORD PTR 4[rcx], edx
	test	DWORD PTR SDL_BUTTON_LMASK[rip], eax
	je	.L18
	add	rsi, QWORD PTR input[rip+16]
	mov	rdx, QWORD PTR INPUT_B[rip]
	or	QWORD PTR [rsi], rdx
.L18:
	test	DWORD PTR SDL_BUTTON_RMASK[rip], eax
	je	.L16
	mov	rdx, QWORD PTR joynum[rip]
	mov	rax, QWORD PTR input[rip+16]
	mov	rcx, QWORD PTR INPUT_C[rip]
	or	QWORD PTR [rax+rdx*8], rcx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, 4[rsp]
	mov	rdi, rsp
	call	SDL_GetMouseState@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR input[rip+8]
	mov	rsi, QWORD PTR [rax]
	imul	eax, DWORD PTR [rsp], 321
	cdq
	idiv	DWORD PTR VIDEO_WIDTH[rip]
	add	eax, 60
	mov	DWORD PTR [rsi], eax
	imul	eax, DWORD PTR 4[rsp], 252
	cdq
	idiv	DWORD PTR VIDEO_HEIGHT[rip]
	add	eax, 508
	mov	DWORD PTR 4[rsi], eax
	test	DWORD PTR SDL_BUTTON_MMASK[rip], ecx
	je	.L52
	mov	eax, DWORD PTR pico_current[rip]
	add	eax, 1
	and	eax, 7
	mov	DWORD PTR pico_current[rip], eax
.L52:
	test	DWORD PTR SDL_BUTTON_RMASK[rip], ecx
	je	.L53
	mov	rax, QWORD PTR input[rip+16]
	mov	rdx, QWORD PTR INPUT_PICO_RED[rip]
	or	QWORD PTR [rax], rdx
.L53:
	test	DWORD PTR SDL_BUTTON_LMASK[rip], ecx
	je	.L16
	mov	rax, QWORD PTR input[rip+16]
	mov	rdx, QWORD PTR INPUT_PICO_PEN[rip]
	or	QWORD PTR [rax], rdx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L7:
	xor	esi, esi
	lea	rdi, 4[rsp]
	call	SDL_GetMouseState@PLT
	mov	rdx, QWORD PTR input[rip+8]
	mov	r8d, eax
	mov	rax, QWORD PTR joynum[rip]
	mov	rsi, QWORD PTR [rdx+rax*8]
	lea	rcx, 0[0+rax*8]
	mov	eax, DWORD PTR 4[rsp]
	sal	eax, 8
	cdq
	idiv	DWORD PTR VIDEO_WIDTH[rip]
	mov	DWORD PTR [rsi], eax
	test	DWORD PTR SDL_BUTTON_LMASK[rip], r8d
	je	.L16
	add	rcx, QWORD PTR input[rip+16]
	mov	rax, QWORD PTR INPUT_B[rip]
	or	QWORD PTR [rcx], rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rsi, 4[rsp]
	mov	rdi, rsp
	call	SDL_GetRelativeMouseState@PLT
	mov	rdx, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR input[rip+8]
	mov	edi, DWORD PTR [rsp]
	mov	rcx, QWORD PTR [rcx+rdx*8]
	lea	rsi, 0[0+rdx*8]
	lea	edx, [rdi+rdi]
	mov	DWORD PTR [rcx], edx
	mov	edi, DWORD PTR 4[rsp]
	lea	edx, [rdi+rdi]
	mov	edi, DWORD PTR config[rip]
	mov	DWORD PTR 4[rcx], edx
	test	edi, edi
	jne	.L20
	neg	edx
	mov	DWORD PTR 4[rcx], edx
.L20:
	test	DWORD PTR SDL_BUTTON_LMASK[rip], eax
	je	.L21
	add	rsi, QWORD PTR input[rip+16]
	mov	rdx, QWORD PTR INPUT_B[rip]
	or	QWORD PTR [rsi], rdx
.L21:
	test	DWORD PTR SDL_BUTTON_RMASK[rip], eax
	je	.L22
	mov	rcx, QWORD PTR joynum[rip]
	mov	rdx, QWORD PTR input[rip+16]
	mov	rsi, QWORD PTR INPUT_C[rip]
	or	QWORD PTR [rdx+rcx*8], rsi
.L22:
	test	DWORD PTR SDL_BUTTON_MMASK[rip], eax
	je	.L23
	mov	rdx, QWORD PTR joynum[rip]
	mov	rax, QWORD PTR input[rip+16]
	mov	rcx, QWORD PTR INPUT_A[rip]
	or	QWORD PTR [rax+rdx*8], rcx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L117:
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_UP[rip]
	or	QWORD PTR [rdx+rax*8], rcx
	mov	rax, QWORD PTR SDLK_LEFT[rip]
	mov	ecx, DWORD PTR [rbx+rax*4]
	test	ecx, ecx
	jne	.L119
.L69:
	mov	rax, QWORD PTR SDLK_RIGHT[rip]
	mov	eax, DWORD PTR [rbx+rax*4]
	test	eax, eax
	je	.L16
	mov	rax, QWORD PTR joynum[rip]
	mov	rcx, QWORD PTR INPUT_RIGHT[rip]
	or	QWORD PTR [rdx+rax*8], rcx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L112:
	sub	DWORD PTR [rdx], 2
.L40:
	mov	ecx, DWORD PTR [rax]
	cmp	ecx, 255
	jle	.L44
	mov	DWORD PTR [rax], 255
.L45:
	mov	ecx, DWORD PTR 4[rax]
	cmp	ecx, 255
	jle	.L46
	mov	DWORD PTR 4[rax], 255
.L47:
	mov	eax, DWORD PTR [rdx]
	cmp	eax, 255
	jle	.L48
	mov	DWORD PTR [rdx], 255
.L49:
	mov	eax, DWORD PTR 4[rdx]
	cmp	eax, 255
	jle	.L50
	mov	DWORD PTR 4[rdx], 255
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rsi, QWORD PTR SDLK_RIGHT[rip]
	mov	esi, DWORD PTR [rbx+rsi*4]
	test	esi, esi
	je	.L38
	add	DWORD PTR [rax], 2
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rsi, QWORD PTR SDLK_DOWN[rip]
	mov	r8d, DWORD PTR [rbx+rsi*4]
	test	r8d, r8d
	je	.L35
	add	DWORD PTR 4[rax], 2
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L50:
	test	eax, eax
	jns	.L16
	mov	DWORD PTR 4[rdx], 0
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L48:
	test	eax, eax
	jns	.L49
	mov	DWORD PTR [rdx], 0
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L46:
	test	ecx, ecx
	jns	.L47
	mov	DWORD PTR 4[rax], 0
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L44:
	test	ecx, ecx
	jns	.L45
	mov	DWORD PTR [rax], 0
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L113:
	add	DWORD PTR [rdx], 2
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L35:
	mov	DWORD PTR 4[rax], 128
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L38:
	mov	DWORD PTR [rax], 128
	jmp	.L37
.L118:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sdl_input_update, .-sdl_input_update
	.comm	pico_current,4,4
	.comm	joynum,8,8
	.comm	input,24,16
	.comm	config,4,4
	.comm	bitmap,8,8
	.comm	VIDEO_WIDTH,4,4
	.comm	VIDEO_HEIGHT,4,4
	.comm	SDL_BUTTON_RMASK,4,4
	.comm	SDL_BUTTON_MMASK,4,4
	.comm	SDL_BUTTON_LMASK,4,4
	.comm	SDLK_z,8,8
	.comm	SDLK_x,8,8
	.comm	SDLK_v,8,8
	.comm	SDLK_s,8,8
	.comm	SDLK_k,8,8
	.comm	SDLK_j,8,8
	.comm	SDLK_h,8,8
	.comm	SDLK_g,8,8
	.comm	SDLK_f,8,8
	.comm	SDLK_d,8,8
	.comm	SDLK_c,8,8
	.comm	SDLK_a,8,8
	.comm	SDLK_UP,8,8
	.comm	SDLK_RIGHT,8,8
	.comm	SDLK_LEFT,8,8
	.comm	SDLK_KP8,8,8
	.comm	SDLK_KP6,8,8
	.comm	SDLK_KP4,8,8
	.comm	SDLK_KP2,8,8
	.comm	SDLK_DOWN,8,8
	.comm	INPUT_Z,8,8
	.comm	INPUT_Y,8,8
	.comm	INPUT_X,8,8
	.comm	INPUT_UP,8,8
	.comm	INPUT_START,8,8
	.comm	INPUT_RIGHT,8,8
	.comm	INPUT_PICO_RED,8,8
	.comm	INPUT_PICO_PEN,8,8
	.comm	INPUT_MODE,8,8
	.comm	INPUT_LEFT,8,8
	.comm	INPUT_DOWN,8,8
	.comm	INPUT_C,8,8
	.comm	INPUT_B,8,8
	.comm	INPUT_ACTIVATOR_8U,8,8
	.comm	INPUT_ACTIVATOR_8L,8,8
	.comm	INPUT_ACTIVATOR_7U,8,8
	.comm	INPUT_ACTIVATOR_7L,8,8
	.comm	INPUT_A,8,8
	.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_main.c_sdl_input_update.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sdl_input_update
	.syntax unified
	.arm
	.fpu softvfp
	.type	sdl_input_update, %function
sdl_input_update:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L191
	sub	sp, sp, #20
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	SDL_GetKeyState
	mov	ip, #0
	ldr	r6, .L191+4
	ldr	r5, .L191+8
	ldr	r3, [r6, #8]
	ldr	r1, [r5]
	ldr	r2, [r6]
	str	ip, [r3, r1, lsl #2]
	ldr	r1, [r5]
	mov	r4, r0
	ldr	r2, [r2, r1, lsl #2]
	lsl	r0, r1, #2
	sub	r2, r2, #128
	cmp	r2, #7
	ldrls	pc, [pc, r2, asl #2]
	b	.L2
.L4:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r2, .L191+12
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	ldrne	r1, .L191+16
	ldrne	r2, [r3, r0]
	ldrne	r1, [r1]
	orrne	r2, r2, r1
	strne	r2, [r3, r0]
	ldr	r2, .L191+20
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L57
	ldr	r1, [r5]
	ldr	r0, .L191+24
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L57:
	ldr	r2, .L191+28
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L58
	ldr	r1, [r5]
	ldr	r0, .L191+32
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L58:
	ldr	r2, .L191+36
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L2
	ldr	r1, [r5]
	ldr	r0, .L191+40
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L2:
	ldr	r2, .L191+44
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L59
	ldr	r1, [r5]
	ldr	r0, .L191+48
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L59:
	ldr	r2, .L191+52
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L60
	ldr	r1, [r5]
	ldr	r0, .L191+56
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L60:
	ldr	r2, .L191+60
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L61
	ldr	r1, [r5]
	ldr	r0, .L191+64
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L61:
	ldr	r2, .L191+68
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L62
	ldr	r1, [r5]
	ldr	r0, .L191+72
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L62:
	ldr	r2, .L191+76
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L63
	ldr	r1, [r5]
	ldr	r0, .L191+80
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L63:
	ldr	r2, .L191+84
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L64
	ldr	r1, [r5]
	ldr	r0, .L191+88
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L64:
	ldr	r2, .L191+92
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L65
	ldr	r1, [r5]
	ldr	r0, .L191+96
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L65:
	ldr	r2, .L191+100
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L66
	ldr	r1, [r5]
	ldr	r0, .L191+104
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L66:
	ldr	r2, .L191+108
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	bne	.L189
	ldr	r2, .L191+112
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L68
	ldr	r1, [r5]
	ldr	r0, .L191+116
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
.L68:
	ldr	r2, .L191+120
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L69
	ldr	r1, [r5]
	ldr	r0, .L191+124
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
	b	.L16
.L11:
	ldr	r2, .L191+44
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L25
	ldr	r1, .L191+72
	ldr	r2, [r3, r0]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, r0]
	ldr	r1, [r5]
	lsl	r0, r1, #2
.L25:
	ldr	r2, .L191+52
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L26
	ldr	r1, .L191+48
	ldr	r2, [r3, r0]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, r0]
	ldr	r1, [r5]
	lsl	r0, r1, #2
.L26:
	ldr	r2, .L191+60
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L27
	ldr	r1, .L191+64
	ldr	r2, [r3, r0]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, r0]
	ldr	r1, [r5]
	lsl	r0, r1, #2
.L27:
	ldr	r2, .L191+68
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L28
	ldr	r1, .L191+88
	ldr	r2, [r3, r0]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, r0]
	ldr	r1, [r5]
	lsl	r0, r1, #2
.L28:
	ldr	r2, .L191+76
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L29
	ldr	r1, .L191+56
	ldr	r2, [r3, r0]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, r0]
	ldr	r1, [r5]
	lsl	r0, r1, #2
.L29:
	ldr	r2, .L191+84
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L30
	ldr	r1, .L191+80
	ldr	r2, [r3, r0]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, r0]
	ldr	r1, [r5]
	lsl	r0, r1, #2
.L30:
	ldr	r2, .L191+92
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L31
	ldr	r1, .L191+104
	ldr	r2, [r3, r0]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, r0]
	ldr	r1, [r5]
	lsl	r0, r1, #2
.L31:
	ldr	r2, .L191+100
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L32
	ldr	r1, .L191+96
	ldr	r2, [r3, r0]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, r0]
	ldr	r1, [r5]
	lsl	r0, r1, #2
.L32:
	ldr	r3, .L191+108
	ldr	ip, [r6, #4]
	ldr	r2, [r3]
	ldr	r3, [ip, r0]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L33
	ldr	r2, [r3, #4]
	sub	r2, r2, #2
	str	r2, [r3, #4]
.L34:
	ldr	r2, .L191+120
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L36
	ldr	r2, [r3]
	sub	r2, r2, #2
	str	r2, [r3]
.L37:
	ldr	r2, .L191+128
	add	r1, r1, #1
	ldr	r0, [r2]
	ldr	r2, [ip, r1, lsl #2]
	ldr	r1, [r4, r0, lsl #2]
	cmp	r1, #0
	bne	.L184
	ldr	r1, .L191+132
	ldr	r1, [r1]
	ldr	r1, [r4, r1, lsl #2]
	cmp	r1, #0
	bne	.L185
	ldr	r1, .L191+136
	ldr	r1, [r1]
	ldr	r1, [r4, r1, lsl #2]
	cmp	r1, #0
	bne	.L184
	ldr	r1, .L191+140
	ldr	r1, [r1]
	ldr	r1, [r4, r1, lsl #2]
	cmp	r1, #0
	moveq	r1, #128
	streq	r1, [r2]
	beq	.L40
.L185:
	ldr	r1, [r2]
	add	r1, r1, #2
	str	r1, [r2]
	b	.L40
.L10:
	add	r1, sp, #8
	add	r0, sp, #4
	bl	SDL_GetMouseState
	mov	r4, r0
	ldr	r0, [sp, #4]
	ldr	r2, .L191+144
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	ldr	r3, [r6, #4]
	ldr	r1, [r2]
	lsl	r0, r0, #1
	ldr	r5, [r3]
	bl	__aeabi_idiv
	str	r0, [r5]
	ldr	r3, [sp, #8]
	ldr	r2, .L191+148
	rsb	r0, r3, r3, lsl #5
	add	r0, r3, r0, lsl #2
	ldr	r1, [r2]
	lsl	r0, r0, #1
	bl	__aeabi_idiv
	ldr	r3, .L191+152
	str	r0, [r5, #4]
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L16
	ldr	r2, [r6, #8]
	ldr	r1, .L191+56
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
.L16:
	ldr	r3, .L191
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L190
	mov	r0, #1
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	add	r1, sp, #8
	add	r0, sp, #4
	bl	SDL_GetMouseState
	ldr	r3, [sp, #4]
	ldr	r1, .L191+144
	ldr	r2, [r6, #4]
	mov	r4, r0
	add	r0, r3, r3, lsl #2
	ldr	r1, [r1]
	add	r0, r3, r0, lsl #6
	ldr	r5, [r2]
	bl	__aeabi_idiv
	add	r0, r0, #60
	str	r0, [r5]
	ldr	r0, [sp, #8]
	ldr	r3, .L191+148
	rsb	r0, r0, r0, lsl #6
	ldr	r1, [r3]
	lsl	r0, r0, #2
	bl	__aeabi_idiv
	ldr	r3, .L191+156
	add	r0, r0, #508
	ldr	r3, [r3]
	str	r0, [r5, #4]
	tst	r4, r3
	ldrne	r2, .L191+160
	ldrne	r3, [r2]
	addne	r3, r3, #1
	andne	r3, r3, #7
	strne	r3, [r2]
	ldr	r3, .L191+152
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L53
	ldr	r2, [r6, #8]
	ldr	r1, .L191+164
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
.L53:
	ldr	r3, .L191+168
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L16
	ldr	r2, [r6, #8]
	ldr	r1, .L191+172
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
	b	.L16
.L7:
	mov	r1, #0
	add	r0, sp, #8
	bl	SDL_GetMouseState
	ldr	r2, .L191+144
	mov	r4, r0
	ldr	r0, [sp, #8]
	ldr	r3, [r6, #4]
	ldr	r5, [r5]
	ldr	r1, [r2]
	lsl	r0, r0, #8
	ldr	r7, [r3, r5, lsl #2]
	bl	__aeabi_idiv
	ldr	r3, .L191+168
	str	r0, [r7]
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L16
	ldr	r2, [r6, #8]
	ldr	r1, .L191+56
	ldr	r3, [r2, r5, lsl #2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2, r5, lsl #2]
	b	.L16
.L6:
	add	r1, sp, #8
	add	r0, sp, #4
	bl	SDL_GetRelativeMouseState
	ldr	r2, [r6, #4]
	ldr	r1, [r5]
	ldr	r3, [sp, #4]
	ldr	r2, [r2, r1, lsl #2]
	lsl	r3, r3, #1
	ldr	ip, .L191+176
	str	r3, [r2]
	ldr	r3, [sp, #8]
	ldr	ip, [ip]
	lsl	r3, r3, #1
	cmp	ip, #0
	str	r3, [r2, #4]
	rsbeq	r3, r3, #0
	streq	r3, [r2, #4]
	ldr	r3, .L191+168
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L21
	ldr	r2, [r6, #8]
	ldr	ip, .L191+56
	ldr	r3, [r2, r1, lsl #2]
	ldr	ip, [ip]
	orr	r3, r3, ip
	str	r3, [r2, r1, lsl #2]
.L21:
	ldr	r3, .L191+152
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L22
	ldr	r1, [r5]
	ldr	r2, [r6, #8]
	ldr	ip, .L191+64
	ldr	r3, [r2, r1, lsl #2]
	ldr	ip, [ip]
	orr	r3, r3, ip
	str	r3, [r2, r1, lsl #2]
.L22:
	ldr	r3, .L191+156
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L23
	ldr	r1, [r5]
	ldr	r2, [r6, #8]
	ldr	r0, .L191+48
	ldr	r3, [r2, r1, lsl #2]
	ldr	r0, [r0]
	orr	r3, r3, r0
	str	r3, [r2, r1, lsl #2]
.L23:
	ldr	r3, .L191+68
	ldr	r3, [r3]
	ldr	r3, [r4, r3, lsl #2]
	cmp	r3, #0
	beq	.L16
	ldr	r1, [r5]
	ldr	r2, [r6, #8]
	ldr	r0, .L191+72
	ldr	r3, [r2, r1, lsl #2]
	ldr	r0, [r0]
	orr	r3, r3, r0
	str	r3, [r2, r1, lsl #2]
	b	.L16
.L5:
	add	r1, sp, #8
	add	r0, sp, #4
	bl	SDL_GetMouseState
	ldr	lr, .L191+180
	ldr	r3, .L191+144
	ldr	r2, [lr]
	ldr	r3, [r3]
	ldr	ip, [r6, #4]
	ldr	r1, [r5]
	sub	r3, r3, r2
	ldr	r2, [sp, #4]
	ldr	ip, [ip, r1, lsl #2]
	add	r3, r3, r3, lsr #31
	sub	r3, r2, r3, asr #1
	ldr	r7, .L191+148
	str	r3, [ip]
	ldr	r2, [lr, #4]
	ldr	r3, [r7]
	ldr	lr, .L191+168
	sub	r3, r3, r2
	ldr	lr, [lr]
	ldr	r2, [sp, #8]
	add	r3, r3, r3, lsr #31
	sub	r3, r2, r3, asr #1
	tst	r0, lr
	str	r3, [ip, #4]
	beq	.L12
	ldr	r2, [r6, #8]
	ldr	ip, .L191+48
	ldr	r3, [r2, r1, lsl #2]
	ldr	ip, [ip]
	orr	r3, r3, ip
	str	r3, [r2, r1, lsl #2]
.L12:
	ldr	r3, .L191+152
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L13
	ldr	r1, [r5]
	ldr	r2, [r6, #8]
	ldr	ip, .L191+56
	ldr	r3, [r2, r1, lsl #2]
	ldr	ip, [ip]
	orr	r3, r3, ip
	str	r3, [r2, r1, lsl #2]
.L13:
	ldr	r3, .L191+156
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L23
	ldr	r1, [r5]
	ldr	r2, [r6, #8]
	ldr	r0, .L191+64
	ldr	r3, [r2, r1, lsl #2]
	ldr	r0, [r0]
	orr	r3, r3, r0
	str	r3, [r2, r1, lsl #2]
	b	.L23
.L9:
	add	r1, sp, #8
	add	r0, sp, #4
	bl	SDL_GetRelativeMouseState
	ldr	r3, [sp, #4]
	ldr	r2, [r6, #4]
	ldr	r1, [r5]
	rsb	r3, r3, #0
	ldr	r2, [r2, r1, lsl #2]
	and	r3, r3, #255
	str	r3, [r2]
	ldr	ip, .L191+168
	ldr	r3, [sp, #8]
	ldr	ip, [ip]
	rsb	r3, r3, #0
	and	r3, r3, #255
	tst	r0, ip
	str	r3, [r2, #4]
	beq	.L18
	ldr	r2, [r6, #8]
	ldr	ip, .L191+56
	ldr	r3, [r2, r1, lsl #2]
	ldr	ip, [ip]
	orr	r3, r3, ip
	str	r3, [r2, r1, lsl #2]
.L18:
	ldr	r3, .L191+152
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L16
	ldr	r1, [r5]
	ldr	r2, [r6, #8]
	ldr	r0, .L191+64
	ldr	r3, [r2, r1, lsl #2]
	ldr	r0, [r0]
	orr	r3, r3, r0
	str	r3, [r2, r1, lsl #2]
	b	.L16
.L189:
	ldr	r1, [r5]
	ldr	r0, .L191+184
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
	b	.L68
.L69:
	ldr	r2, .L191+188
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	beq	.L16
	ldr	r1, [r5]
	ldr	r0, .L191+192
	ldr	r2, [r3, r1, lsl #2]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r3, r1, lsl #2]
	b	.L16
.L184:
	ldr	r1, [r2]
	sub	r1, r1, #2
	str	r1, [r2]
.L40:
	ldr	r1, [r3]
	cmp	r1, #255
	movgt	r1, #255
	strgt	r1, [r3]
	bgt	.L45
	cmp	r1, #0
	movlt	r1, #0
	strlt	r1, [r3]
.L45:
	ldr	r1, [r3, #4]
	cmp	r1, #255
	movgt	r1, #255
	strgt	r1, [r3, #4]
	bgt	.L47
	cmp	r1, #0
	movlt	r1, #0
	strlt	r1, [r3, #4]
.L47:
	ldr	r3, [r2]
	cmp	r3, #255
	movgt	r3, #255
	strgt	r3, [r2]
	bgt	.L49
	cmp	r3, #0
	movlt	r3, #0
	strlt	r3, [r2]
.L49:
	ldr	r3, [r2, #4]
	cmp	r3, #255
	movgt	r3, #255
	strgt	r3, [r2, #4]
	bgt	.L16
	cmp	r3, #0
	movlt	r3, #0
	strlt	r3, [r2, #4]
	b	.L16
.L36:
	ldr	r2, .L191+188
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	moveq	r2, #128
	ldrne	r2, [r3]
	addne	r2, r2, #2
	str	r2, [r3]
	b	.L37
.L33:
	ldr	r2, .L191+112
	ldr	r2, [r2]
	ldr	r2, [r4, r2, lsl #2]
	cmp	r2, #0
	moveq	r2, #128
	ldrne	r2, [r3, #4]
	addne	r2, r2, #2
	str	r2, [r3, #4]
	b	.L34
.L190:
	bl	__stack_chk_fail
.L192:
	.align	2
.L191:
	.word	.LC0
	.word	input
	.word	joynum
	.word	SDLK_g
	.word	INPUT_ACTIVATOR_7L
	.word	SDLK_h
	.word	INPUT_ACTIVATOR_7U
	.word	SDLK_j
	.word	INPUT_ACTIVATOR_8L
	.word	SDLK_k
	.word	INPUT_ACTIVATOR_8U
	.word	SDLK_a
	.word	INPUT_A
	.word	SDLK_s
	.word	INPUT_B
	.word	SDLK_d
	.word	INPUT_C
	.word	SDLK_f
	.word	INPUT_START
	.word	SDLK_z
	.word	INPUT_X
	.word	SDLK_x
	.word	INPUT_Y
	.word	SDLK_c
	.word	INPUT_Z
	.word	SDLK_v
	.word	INPUT_MODE
	.word	SDLK_UP
	.word	SDLK_DOWN
	.word	INPUT_DOWN
	.word	SDLK_LEFT
	.word	INPUT_LEFT
	.word	SDLK_KP8
	.word	SDLK_KP2
	.word	SDLK_KP4
	.word	SDLK_KP6
	.word	VIDEO_WIDTH
	.word	VIDEO_HEIGHT
	.word	SDL_BUTTON_RMASK
	.word	SDL_BUTTON_MMASK
	.word	pico_current
	.word	INPUT_PICO_RED
	.word	SDL_BUTTON_LMASK
	.word	INPUT_PICO_PEN
	.word	config
	.word	bitmap
	.word	INPUT_UP
	.word	SDLK_RIGHT
	.word	INPUT_RIGHT
	.size	sdl_input_update, .-sdl_input_update
	.comm	pico_current,4,4
	.comm	joynum,4,4
	.comm	input,12,4
	.comm	config,4,4
	.comm	bitmap,8,4
	.comm	VIDEO_WIDTH,4,4
	.comm	VIDEO_HEIGHT,4,4
	.comm	SDL_BUTTON_RMASK,4,4
	.comm	SDL_BUTTON_MMASK,4,4
	.comm	SDL_BUTTON_LMASK,4,4
	.comm	SDLK_z,4,4
	.comm	SDLK_x,4,4
	.comm	SDLK_v,4,4
	.comm	SDLK_s,4,4
	.comm	SDLK_k,4,4
	.comm	SDLK_j,4,4
	.comm	SDLK_h,4,4
	.comm	SDLK_g,4,4
	.comm	SDLK_f,4,4
	.comm	SDLK_d,4,4
	.comm	SDLK_c,4,4
	.comm	SDLK_a,4,4
	.comm	SDLK_UP,4,4
	.comm	SDLK_RIGHT,4,4
	.comm	SDLK_LEFT,4,4
	.comm	SDLK_KP8,4,4
	.comm	SDLK_KP6,4,4
	.comm	SDLK_KP4,4,4
	.comm	SDLK_KP2,4,4
	.comm	SDLK_DOWN,4,4
	.comm	INPUT_Z,4,4
	.comm	INPUT_Y,4,4
	.comm	INPUT_X,4,4
	.comm	INPUT_UP,4,4
	.comm	INPUT_START,4,4
	.comm	INPUT_RIGHT,4,4
	.comm	INPUT_PICO_RED,4,4
	.comm	INPUT_PICO_PEN,4,4
	.comm	INPUT_MODE,4,4
	.comm	INPUT_LEFT,4,4
	.comm	INPUT_DOWN,4,4
	.comm	INPUT_C,4,4
	.comm	INPUT_B,4,4
	.comm	INPUT_ACTIVATOR_8U,4,4
	.comm	INPUT_ACTIVATOR_8L,4,4
	.comm	INPUT_ACTIVATOR_7U,4,4
	.comm	INPUT_ACTIVATOR_7L,4,4
	.comm	INPUT_A,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
