	.file	"extr_keymap.c_layer_state_set_user.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	layer_state_set_user
	.type	layer_state_set_user, @function
layer_state_set_user:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12d, edi
	call	ergodox_board_led_off@PLT
	xor	eax, eax
	call	ergodox_right_led_1_off@PLT
	xor	eax, eax
	call	ergodox_right_led_2_off@PLT
	xor	eax, eax
	call	ergodox_right_led_3_off@PLT
	mov	edi, r12d
	call	get_highest_layer@PLT
	cmp	eax, 7
	ja	.L2
	lea	rdx, .L4[rip]
	mov	eax, eax
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L2-.L4
	.long	.L10-.L4
	.long	.L12-.L4
	.long	.L14-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L13-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	call	ergodox_right_led_1_on@PLT
.L13:
	xor	eax, eax
	call	ergodox_right_led_2_on@PLT
.L14:
	xor	eax, eax
	call	ergodox_right_led_3_on@PLT
.L2:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	ergodox_right_led_1_on@PLT
.L12:
	xor	eax, eax
	call	ergodox_right_led_2_on@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	eax, eax
	call	ergodox_right_led_1_on@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	eax, eax
	call	ergodox_right_led_1_on@PLT
	xor	eax, eax
	call	ergodox_right_led_3_on@PLT
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	layer_state_set_user, .-layer_state_set_user
	.comm	RGBLIGHT_COLOR_LAYER_7,4,4
	.comm	RGBLIGHT_COLOR_LAYER_6,4,4
	.comm	RGBLIGHT_COLOR_LAYER_5,4,4
	.comm	RGBLIGHT_COLOR_LAYER_4,4,4
	.comm	RGBLIGHT_COLOR_LAYER_3,4,4
	.comm	RGBLIGHT_COLOR_LAYER_2,4,4
	.comm	RGBLIGHT_COLOR_LAYER_1,4,4
	.comm	RGBLIGHT_COLOR_LAYER_0,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_keymap.c_layer_state_set_user.c"
	.text
	.align	2
	.global	layer_state_set_user
	.syntax unified
	.arm
	.fpu softvfp
	.type	layer_state_set_user, %function
layer_state_set_user:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	ergodox_board_led_off
	bl	ergodox_right_led_1_off
	bl	ergodox_right_led_2_off
	bl	ergodox_right_led_3_off
	mov	r0, r4
	bl	get_highest_layer
	sub	r0, r0, #1
	cmp	r0, #6
	ldrls	pc, [pc, r0, asl #2]
	b	.L2
.L4:
	.word	.L10
	.word	.L12
	.word	.L14
	.word	.L7
	.word	.L6
	.word	.L13
	.word	.L3
.L3:
	bl	ergodox_right_led_1_on
.L13:
	bl	ergodox_right_led_2_on
.L14:
	bl	ergodox_right_led_3_on
.L2:
	mov	r0, r4
	pop	{r4, pc}
.L7:
	bl	ergodox_right_led_1_on
.L12:
	bl	ergodox_right_led_2_on
	mov	r0, r4
	pop	{r4, pc}
.L10:
	bl	ergodox_right_led_1_on
	mov	r0, r4
	pop	{r4, pc}
.L6:
	bl	ergodox_right_led_1_on
	bl	ergodox_right_led_3_on
	mov	r0, r4
	pop	{r4, pc}
	.size	layer_state_set_user, .-layer_state_set_user
	.comm	RGBLIGHT_COLOR_LAYER_7,4,4
	.comm	RGBLIGHT_COLOR_LAYER_6,4,4
	.comm	RGBLIGHT_COLOR_LAYER_5,4,4
	.comm	RGBLIGHT_COLOR_LAYER_4,4,4
	.comm	RGBLIGHT_COLOR_LAYER_3,4,4
	.comm	RGBLIGHT_COLOR_LAYER_2,4,4
	.comm	RGBLIGHT_COLOR_LAYER_1,4,4
	.comm	RGBLIGHT_COLOR_LAYER_0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
