	.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
	movq	_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_biton32
	movq	_LAYER_NUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ergodox_right_led_2_on
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_ergodox_right_led_2_off
LBB0_3:
	movq	_recording_dynamic_macro@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_ergodox_right_led_3_on         ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_ergodox_right_led_3_off        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_layer_state,4,2                ## @layer_state
	.comm	_LAYER_NUM,8,3                  ## @LAYER_NUM
	.comm	_recording_dynamic_macro,8,3    ## @recording_dynamic_macro
.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
Lloh0:
	adrp	x8, _layer_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _layer_state@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_biton32
Lloh3:
	adrp	x8, _LAYER_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LAYER_NUM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	bl	_ergodox_right_led_2_on
	b	LBB0_3
LBB0_2:
	bl	_ergodox_right_led_2_off
LBB0_3:
Lloh6:
	adrp	x8, _recording_dynamic_macro@GOTPAGE
Lloh7:
	ldr	x8, [x8, _recording_dynamic_macro@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ergodox_right_led_3_on
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ergodox_right_led_3_off
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_layer_state,4,2                ; @layer_state
	.comm	_LAYER_NUM,8,3                  ; @LAYER_NUM
	.comm	_recording_dynamic_macro,8,3    ; @recording_dynamic_macro
.subsections_via_symbols
