	.file	"extr_dinput.c_dinput_lightgun_aiming_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dinput_lightgun_aiming_state, @function
dinput_lightgun_aiming_state:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 72
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	test	esi, esi
	mov	DWORD PTR [rsp], 0
	mov	DWORD PTR 4[rsp], 0
	setne	cl
	mov	DWORD PTR 8[rsp], 0
	mov	DWORD PTR 12[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	mov	QWORD PTR 48[rsp], 0
	test	rax, rax
	je	.L26
	test	cl, cl
	je	.L2
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rax]
	add	edx, 1
	test	rax, rax
	je	.L26
	cmp	esi, edx
	ja	.L3
.L2:
	test	rax, rax
	je	.L26
	mov	esi, DWORD PTR [rdi]
	mov	edx, DWORD PTR 4[rdi]
	test	rax, rax
	je	.L7
.L30:
	mov	esi, DWORD PTR [rax]
	mov	edx, DWORD PTR 4[rax]
.L7:
	mov	rcx, rsp
	lea	rdi, 16[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	lea	rax, 20[rsp]
	push	rax
	.cfi_def_cfa_offset 96
	lea	r9, 24[rsp]
	lea	r8, 20[rsp]
	call	video_driver_translate_coord_viewport_wrap@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
.L5:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	xor	eax, eax
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	test	cl, cl
	jne	.L5
	mov	esi, DWORD PTR [rdi]
	mov	edx, DWORD PTR 4[rdi]
	test	rax, rax
	jne	.L30
	jmp	.L7
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dinput_lightgun_aiming_state, .-dinput_lightgun_aiming_state
	.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_dinput.c_dinput_lightgun_aiming_state.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dinput_lightgun_aiming_state, %function
dinput_lightgun_aiming_state:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	ldr	ip, [r0, #8]
	subs	r2, r1, #0
	movne	r2, #1
	cmp	ip, r3
	cmpne	r1, r3
	push	{r4, lr}
	ldr	lr, .L17
	sub	sp, sp, #64
	ldr	lr, [lr]
	str	lr, [sp, #60]
	mov	lr,#0
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	str	r3, [sp, #56]
	str	r3, [sp, #52]
	str	r3, [sp, #48]
	str	r3, [sp, #44]
	str	r3, [sp, #40]
	str	r3, [sp, #36]
	beq	.L2
.L3:
	ldr	ip, [ip, #8]
	add	r3, r3, #1
	cmp	ip, #0
	cmpne	r1, r3
	bhi	.L3
.L2:
	cmp	ip, #0
	movne	r2, #0
	cmp	r2, #0
	bne	.L4
	ldm	r0, {r1, r2}
	cmp	ip, #0
	ldmne	ip, {r1, r2}
	add	r0, sp, #28
	add	r3, sp, #24
	add	ip, sp, #32
	stmib	sp, {r0, ip}
	str	r3, [sp]
	add	r0, sp, #36
	add	r3, sp, #20
	bl	video_driver_translate_coord_viewport_wrap
.L4:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, #0
	add	sp, sp, #64
	@ sp needed
	pop	{r4, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.size	dinput_lightgun_aiming_state, .-dinput_lightgun_aiming_state
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
