	.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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_keyboard_report@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	_KC_LSFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MOD_BIT
	testl	%ebx, %eax
	jne	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	_KC_RSFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MOD_BIT
	testl	%ebx, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_host_keyboard_leds
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_ergodox_right_led_1_on
LBB0_5:
	movq	_layer_state@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_SYMB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btq	%rcx, %rax
	jae	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_ergodox_right_led_2_on
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_ergodox_right_led_2_off
LBB0_8:
	movq	(%rbx), %rax
	movq	_MDIA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btq	%rcx, %rax
	jae	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ergodox_right_led_3_on         ## TAILCALL
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ergodox_right_led_3_off        ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	callq	_ergodox_right_led_1_off
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_keyboard_report,8,3            ## @keyboard_report
	.comm	_KC_LSFT,4,2                    ## @KC_LSFT
	.comm	_KC_RSFT,4,2                    ## @KC_RSFT
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_layer_state,8,3                ## @layer_state
	.comm	_SYMB,8,3                       ## @SYMB
	.comm	_MDIA,8,3                       ## @MDIA
.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _keyboard_report@GOTPAGE
Lloh1:
	ldr	x19, [x19, _keyboard_report@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w20, [x8]
Lloh2:
	adrp	x8, _KC_LSFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KC_LSFT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_MOD_BIT
	tst	w0, w20
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	w19, [x8]
Lloh5:
	adrp	x8, _KC_RSFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KC_RSFT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_MOD_BIT
	tst	w0, w19
	b.ne	LBB0_3
; %bb.2:
	bl	_host_keyboard_leds
Lloh8:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsr	w8, w0, w8
	tbz	w8, #0, LBB0_10
LBB0_3:
	bl	_ergodox_right_led_1_on
LBB0_4:
Lloh11:
	adrp	x19, _layer_state@GOTPAGE
Lloh12:
	ldr	x19, [x19, _layer_state@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _SYMB@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SYMB@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	lsr	x8, x8, x9
	tbz	w8, #0, LBB0_6
; %bb.5:
	bl	_ergodox_right_led_2_on
	b	LBB0_7
LBB0_6:
	bl	_ergodox_right_led_2_off
LBB0_7:
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _MDIA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MDIA@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	lsr	x8, x8, x9
	tbz	w8, #0, LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ergodox_right_led_3_on
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ergodox_right_led_3_off
LBB0_10:
	bl	_ergodox_right_led_1_off
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_keyboard_report,8,3            ; @keyboard_report
	.comm	_KC_LSFT,4,2                    ; @KC_LSFT
	.comm	_KC_RSFT,4,2                    ; @KC_RSFT
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_layer_state,8,3                ; @layer_state
	.comm	_SYMB,8,3                       ; @SYMB
	.comm	_MDIA,8,3                       ; @MDIA
.subsections_via_symbols
