	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_user               ## -- Begin function matrix_scan_user
	.p2align	4, 0x90
_matrix_scan_user:                      ## @matrix_scan_user
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_ergodox_board_led_off
	xorl	%eax, %eax
	callq	_ergodox_right_led_1_off
	xorl	%eax, %eax
	callq	_ergodox_right_led_2_off
	xorl	%eax, %eax
	callq	_ergodox_right_led_3_off
	movl	_matrix_scan_user.state(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, _matrix_scan_user.state(%rip)
	cmpl	$5, %eax
	jl	LBB0_7
## %bb.1:
	movl	$0, _matrix_scan_user.state(%rip)
	movq	_default_layer_state@GOTPCREL(%rip), %rax
	testb	$2, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_ergodox_right_led_1_on
LBB0_3:
	movq	_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_biton32
	cmpl	$4, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$3, %eax
	jne	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_ergodox_right_led_2_on         ## TAILCALL
LBB0_7:
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_ergodox_right_led_3_on         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_matrix_scan_user.state,4,2 ## @matrix_scan_user.state
	.comm	_default_layer_state,8,3        ## @default_layer_state
	.comm	_layer_state,4,2                ## @layer_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan_user               ; -- Begin function matrix_scan_user
	.p2align	2
_matrix_scan_user:                      ; @matrix_scan_user
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_ergodox_board_led_off
	bl	_ergodox_right_led_1_off
	bl	_ergodox_right_led_2_off
	bl	_ergodox_right_led_3_off
	adrp	x8, _matrix_scan_user.state@PAGE
	ldr	w9, [x8, _matrix_scan_user.state@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, _matrix_scan_user.state@PAGEOFF]
	cmp	w9, #5
	b.lt	LBB0_6
; %bb.1:
	str	wzr, [x8, _matrix_scan_user.state@PAGEOFF]
Lloh0:
	adrp	x8, _default_layer_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _default_layer_state@GOTPAGEOFF]
	ldrb	w8, [x8]
	tbz	w8, #1, LBB0_3
; %bb.2:
	bl	_ergodox_right_led_1_on
LBB0_3:
Lloh2:
	adrp	x8, _layer_state@GOTPAGE
Lloh3:
	ldr	x8, [x8, _layer_state@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_biton32
	cmp	w0, #4
	b.eq	LBB0_7
; %bb.4:
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ergodox_right_led_2_on
LBB0_6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ergodox_right_led_3_on
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_matrix_scan_user.state,4,2 ; @matrix_scan_user.state
	.comm	_default_layer_state,8,3        ; @default_layer_state
	.comm	_layer_state,4,2                ; @layer_state
.subsections_via_symbols
