	.file	"extr_leds-simpad.c_simpad_leds_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	simpad_leds_event
	.type	simpad_leds_event, @function
simpad_leds_event:
.LFB0:
	.cfi_startproc
	endbr64
	sub	edi, 129
	mov	eax, DWORD PTR LED_STATE_ENABLED[rip]
	cmp	edi, 10
	ja	.L2
	lea	rcx, .L4[rip]
	movsx	rdx, DWORD PTR [rcx+rdi*4]
	add	rdx, rcx
	notrack jmp	rdx
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L2:
	and	eax, DWORD PTR led_state[rip]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR LED2_ON[rip]
	test	eax, eax
	je	.L11
.L19:
	jmp	set_cs3_bit@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, eax
	mov	edi, DWORD PTR LED2_ON[rip]
	not	edx
	and	edx, DWORD PTR led_state[rip]
	and	eax, edx
	mov	DWORD PTR led_state[rip], edx
	test	eax, eax
	jne	.L19
.L11:
	jmp	clear_cs3_bit@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR LED_GREEN[rip]
	mov	DWORD PTR led_state[rip], eax
	mov	DWORD PTR hw_led_state[rip], edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR LED_STATE_CLAIMED[rip]
	mov	ecx, DWORD PTR LED_GREEN[rip]
	not	edx
	and	edx, DWORD PTR led_state[rip]
	mov	DWORD PTR hw_led_state[rip], ecx
	mov	DWORD PTR led_state[rip], edx
	and	eax, edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR led_state[rip]
	and	eax, edx
	test	DWORD PTR LED_STATE_CLAIMED[rip], edx
	je	.L10
	mov	edx, DWORD PTR LED_GREEN[rip]
	or	DWORD PTR hw_led_state[rip], edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR led_state[rip]
	and	eax, edx
	test	DWORD PTR LED_STATE_CLAIMED[rip], edx
	je	.L10
	mov	edx, DWORD PTR LED_GREEN[rip]
	not	edx
	and	DWORD PTR hw_led_state[rip], edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR LED_GREEN[rip]
	mov	edx, DWORD PTR led_state[rip]
	or	edx, DWORD PTR LED_STATE_CLAIMED[rip]
	mov	DWORD PTR led_state[rip], edx
	and	eax, edx
	mov	DWORD PTR hw_led_state[rip], ecx
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	simpad_leds_event, .-simpad_leds_event
	.comm	led_state,4,4
	.comm	hw_led_state,4,4
	.comm	LED_STATE_ENABLED,4,4
	.comm	LED_STATE_CLAIMED,4,4
	.comm	LED_GREEN,4,4
	.comm	LED2_ON,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_leds-simpad.c_simpad_leds_event.c"
	.text
	.align	2
	.global	simpad_leds_event
	.syntax unified
	.arm
	.fpu softvfp
	.type	simpad_leds_event, %function
simpad_leds_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L21
	sub	r0, r0, #129
	str	lr, [sp, #-4]!
	ldr	r3, [r3]
	cmp	r0, #10
	ldrls	pc, [pc, r0, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L6
	.word	.L5
	.word	.L3
.L2:
	ldr	r2, .L21+4
	ldr	r2, [r2]
	and	r3, r3, r2
.L10:
	ldr	r2, .L21+8
	cmp	r3, #0
	ldr	r0, [r2]
	beq	.L11
.L20:
	ldr	lr, [sp], #4
	b	set_cs3_bit
.L9:
	ldr	r1, .L21+4
	ldr	r2, [r1]
	bic	r2, r2, r3
	and	r3, r3, r2
	str	r2, [r1]
	ldr	r2, .L21+8
	cmp	r3, #0
	ldr	r0, [r2]
	bne	.L20
.L11:
	ldr	lr, [sp], #4
	b	clear_cs3_bit
.L8:
	ldr	r2, .L21+12
	ldr	r1, .L21+16
	ldr	r0, [r2]
	ldr	r2, .L21+4
	str	r0, [r1]
	str	r3, [r2]
	b	.L10
.L7:
	ldr	r2, .L21+20
	ldr	r1, .L21+4
	ldr	r0, .L21+12
	ldr	lr, [r2]
	ldr	r2, [r1]
	ldr	ip, [r0]
	ldr	r0, .L21+16
	bic	r2, r2, lr
	str	r2, [r1]
	and	r3, r3, r2
	str	ip, [r0]
	b	.L10
.L6:
	ldr	r2, .L21+4
	ldr	r1, .L21+20
	ldr	r2, [r2]
	ldr	r1, [r1]
	and	r3, r3, r2
	tst	r2, r1
	beq	.L10
	ldr	r1, .L21+16
	ldr	r0, .L21+12
	ldr	r2, [r1]
	ldr	r0, [r0]
	orr	r2, r2, r0
	str	r2, [r1]
	b	.L10
.L5:
	ldr	r2, .L21+4
	ldr	r1, .L21+20
	ldr	r2, [r2]
	ldr	r1, [r1]
	and	r3, r3, r2
	tst	r2, r1
	beq	.L10
	ldr	r1, .L21+16
	ldr	r0, .L21+12
	ldr	r2, [r1]
	ldr	r0, [r0]
	bic	r2, r2, r0
	str	r2, [r1]
	b	.L10
.L3:
	ldr	r1, .L21+4
	ldr	ip, .L21+20
	ldr	r0, .L21+12
	ldr	r2, [r1]
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, .L21+16
	orr	r2, r2, lr
	str	r2, [r1]
	and	r3, r3, r2
	str	ip, [r0]
	b	.L10
.L22:
	.align	2
.L21:
	.word	LED_STATE_ENABLED
	.word	led_state
	.word	LED2_ON
	.word	LED_GREEN
	.word	hw_led_state
	.word	LED_STATE_CLAIMED
	.size	simpad_leds_event, .-simpad_leds_event
	.comm	led_state,4,4
	.comm	hw_led_state,4,4
	.comm	LED_STATE_ENABLED,4,4
	.comm	LED_STATE_CLAIMED,4,4
	.comm	LED_GREEN,4,4
	.comm	LED2_ON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
