	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_biton32
	movl	%eax, %r14d
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ergodox_right_led_2_on
	xorl	%eax, %eax
	callq	_ergodox_right_led_3_on
	movq	_LED_BRIGHTNESS_HI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_ergodox_right_led_2_set
	movl	(%rbx), %edi
	callq	_ergodox_right_led_3_set
LBB0_2:
	movq	_capsOn@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_LED_BRIGHTNESS_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ergodox_right_led_1_set
	xorl	%eax, %eax
	callq	_ergodox_right_led_1_on
LBB0_4:
	movq	_keyboard_report@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %ebx
	movq	_KC_LSFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MOD_BIT
	testl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	movq	_LED_BRIGHTNESS_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ergodox_right_led_1_set
	xorl	%eax, %eax
	callq	_ergodox_right_led_1_on
	jmp	LBB0_8
LBB0_6:
	movq	_LED_BRIGHTNESS_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ergodox_right_led_1_set
	cmpq	$0, (%r12)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_ergodox_right_led_1_off
LBB0_8:
	movq	(%r15), %rax
	movl	(%rax), %ebx
	movq	_KC_LALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MOD_BIT
	testl	%ebx, %eax
	je	LBB0_10
## %bb.9:
	movq	_LED_BRIGHTNESS_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ergodox_right_led_2_set
	xorl	%eax, %eax
	callq	_ergodox_right_led_2_on
	jmp	LBB0_12
LBB0_10:
	movq	_LED_BRIGHTNESS_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ergodox_right_led_2_set
	cmpl	$1, %r14d
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_ergodox_right_led_2_off
LBB0_12:
	movq	(%r15), %rax
	movl	(%rax), %ebx
	movq	_KC_LCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MOD_BIT
	testl	%ebx, %eax
	je	LBB0_13
## %bb.15:
	movq	_LED_BRIGHTNESS_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ergodox_right_led_3_set
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ergodox_right_led_3_on         ## TAILCALL
LBB0_13:
	movq	_LED_BRIGHTNESS_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ergodox_right_led_3_set
	cmpl	$1, %r14d
	jne	LBB0_16
## %bb.14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ergodox_right_led_3_off        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_layer_state,4,2                ## @layer_state
	.comm	_LED_BRIGHTNESS_HI,4,2          ## @LED_BRIGHTNESS_HI
	.comm	_capsOn,8,3                     ## @capsOn
	.comm	_keyboard_report,8,3            ## @keyboard_report
	.comm	_KC_LSFT,4,2                    ## @KC_LSFT
	.comm	_LED_BRIGHTNESS_LO,4,2          ## @LED_BRIGHTNESS_LO
	.comm	_KC_LALT,4,2                    ## @KC_LALT
	.comm	_KC_LCTRL,4,2                   ## @KC_LCTRL
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _layer_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _layer_state@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_biton32
	mov	x19, x0
Lloh3:
	adrp	x20, _LED_BRIGHTNESS_HI@GOTPAGE
Lloh4:
	ldr	x20, [x20, _LED_BRIGHTNESS_HI@GOTPAGEOFF]
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_ergodox_right_led_2_on
	bl	_ergodox_right_led_3_on
	ldr	w0, [x20]
	bl	_ergodox_right_led_2_set
	ldr	w0, [x20]
	bl	_ergodox_right_led_3_set
LBB0_2:
Lloh5:
	adrp	x22, _capsOn@GOTPAGE
Lloh6:
	ldr	x22, [x22, _capsOn@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_ergodox_right_led_1_set
	bl	_ergodox_right_led_1_on
LBB0_4:
Lloh7:
	adrp	x21, _keyboard_report@GOTPAGE
Lloh8:
	ldr	x21, [x21, _keyboard_report@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _KC_LSFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KC_LSFT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_MOD_BIT
	tst	w0, w23
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x20]
	bl	_ergodox_right_led_1_set
	bl	_ergodox_right_led_1_on
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _LED_BRIGHTNESS_LO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LED_BRIGHTNESS_LO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_ergodox_right_led_1_set
	ldr	x8, [x22]
	cbnz	x8, LBB0_8
; %bb.7:
	bl	_ergodox_right_led_1_off
LBB0_8:
	ldr	x8, [x21]
	ldr	w22, [x8]
Lloh15:
	adrp	x8, _KC_LALT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KC_LALT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_MOD_BIT
	tst	w0, w22
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x20]
	bl	_ergodox_right_led_2_set
	bl	_ergodox_right_led_2_on
	b	LBB0_12
LBB0_10:
Lloh18:
	adrp	x8, _LED_BRIGHTNESS_LO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LED_BRIGHTNESS_LO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_ergodox_right_led_2_set
	cmp	w19, #1
	b.eq	LBB0_12
; %bb.11:
	bl	_ergodox_right_led_2_off
LBB0_12:
	ldr	x8, [x21]
	ldr	w21, [x8]
Lloh21:
	adrp	x8, _KC_LCTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KC_LCTRL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_MOD_BIT
	tst	w0, w21
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x20]
	bl	_ergodox_right_led_3_set
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ergodox_right_led_3_on
LBB0_14:
Lloh24:
	adrp	x8, _LED_BRIGHTNESS_LO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LED_BRIGHTNESS_LO@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_ergodox_right_led_3_set
	cmp	w19, #1
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ergodox_right_led_3_off
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_layer_state,4,2                ; @layer_state
	.comm	_LED_BRIGHTNESS_HI,4,2          ; @LED_BRIGHTNESS_HI
	.comm	_capsOn,8,3                     ; @capsOn
	.comm	_keyboard_report,8,3            ; @keyboard_report
	.comm	_KC_LSFT,4,2                    ; @KC_LSFT
	.comm	_LED_BRIGHTNESS_LO,4,2          ; @LED_BRIGHTNESS_LO
	.comm	_KC_LALT,4,2                    ; @KC_LALT
	.comm	_KC_LCTRL,4,2                   ; @KC_LCTRL
.subsections_via_symbols
