	.file	"extr_keymap.c_matrix_init_user.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	matrix_init_user
	.type	matrix_init_user, @function
matrix_init_user:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edi, DWORD PTR UC_LNX[rip]
	call	set_unicode_input_mode@PLT
	xor	eax, eax
	call	ergodox_led_all_on@PLT
	mov	ebx, DWORD PTR LED_BRIGHTNESS_HI[rip]
	cmp	ebx, DWORD PTR LED_BRIGHTNESS_LO[rip]
	jle	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, ebx
	sub	ebx, 1
	call	ergodox_led_all_set@PLT
	mov	edi, 5
	call	wait_ms@PLT
	cmp	DWORD PTR LED_BRIGHTNESS_LO[rip], ebx
	jl	.L3
.L2:
	mov	edi, 1000
	call	wait_ms@PLT
	mov	ebx, DWORD PTR LED_BRIGHTNESS_LO[rip]
	test	ebx, ebx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, ebx
	call	ergodox_led_all_set@PLT
	mov	edi, 10
	call	wait_ms@PLT
	sub	ebx, 1
	jne	.L5
.L4:
	xor	eax, eax
	call	ergodox_led_all_off@PLT
	xor	eax, eax
	call	eeconfig_is_enabled@PLT
	test	eax, eax
	je	.L12
.L6:
	xor	eax, eax
	call	eeconfig_read_default_layer@PLT
	mov	rcx, QWORD PTR ADORE[rip]
	mov	r8, rax
	mov	eax, 1
	sal	rax, cl
	cmp	rax, r8
	je	.L13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	DWORD PTR is_adore[rip], 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	eeconfig_init@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	matrix_init_user, .-matrix_init_user
	.comm	is_adore,4,4
	.comm	UC_LNX,4,4
	.comm	LED_BRIGHTNESS_LO,4,4
	.comm	LED_BRIGHTNESS_HI,4,4
	.comm	ADORE,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_keymap.c_matrix_init_user.c"
	.text
	.align	2
	.global	matrix_init_user
	.syntax unified
	.arm
	.fpu softvfp
	.type	matrix_init_user, %function
matrix_init_user:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, lr}
	ldr	r0, [r3]
	bl	set_unicode_input_mode
	ldr	r5, .L13+4
	bl	ergodox_led_all_on
	ldr	r2, .L13+8
	ldr	r3, [r5]
	ldr	r4, [r2]
	cmp	r4, r3
	ble	.L2
.L3:
	mov	r0, r4
	bl	ergodox_led_all_set
	mov	r0, #5
	bl	wait_ms
	ldr	r3, [r5]
	sub	r4, r4, #1
	cmp	r3, r4
	blt	.L3
.L2:
	mov	r0, #1000
	bl	wait_ms
	ldr	r4, [r5]
	cmp	r4, #0
	ble	.L4
.L5:
	mov	r0, r4
	bl	ergodox_led_all_set
	mov	r0, #10
	bl	wait_ms
	subs	r4, r4, #1
	bne	.L5
.L4:
	bl	ergodox_led_all_off
	bl	eeconfig_is_enabled
	cmp	r0, #0
	beq	.L12
.L6:
	bl	eeconfig_read_default_layer
	mov	r3, #1
	ldr	r2, .L13+12
	ldr	r2, [r2]
	cmp	r0, r3, lsl r2
	ldreq	r2, .L13+16
	streq	r3, [r2]
	pop	{r4, r5, r6, pc}
.L12:
	bl	eeconfig_init
	b	.L6
.L14:
	.align	2
.L13:
	.word	UC_LNX
	.word	LED_BRIGHTNESS_LO
	.word	LED_BRIGHTNESS_HI
	.word	ADORE
	.word	is_adore
	.size	matrix_init_user, .-matrix_init_user
	.comm	is_adore,4,4
	.comm	UC_LNX,4,4
	.comm	LED_BRIGHTNESS_LO,4,4
	.comm	LED_BRIGHTNESS_HI,4,4
	.comm	ADORE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
