	.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
	movq	_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_LR_NUMR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ergodox_right_led_1_on
LBB0_2:
	xorl	%eax, %eax
	callq	_IS_CA_MULT_ENABLED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_ergodox_right_led_2_on
LBB0_4:
	xorl	%eax, %eax
	callq	_host_keyboard_leds
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_ergodox_right_led_3_on         ## TAILCALL
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_layer_state,4,2                ## @layer_state
	.comm	_LR_NUMR,4,2                    ## @LR_NUMR
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
.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
Lloh0:
	adrp	x8, _layer_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _layer_state@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LR_NUMR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LR_NUMR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_2
; %bb.1:
	bl	_ergodox_right_led_1_on
LBB0_2:
	bl	_IS_CA_MULT_ENABLED
	cbz	x0, LBB0_4
; %bb.3:
	bl	_ergodox_right_led_2_on
LBB0_4:
	bl	_host_keyboard_leds
Lloh6:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsr	w8, w0, w8
	tbz	w8, #0, LBB0_6
; %bb.5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ergodox_right_led_3_on
LBB0_6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.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	_LR_NUMR,4,2                    ; @LR_NUMR
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
.subsections_via_symbols
