	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_biton32
	movq	%rax, %rbx
	movq	_current_layer_global@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, (%rax)
	xorl	%eax, %eax
	callq	_host_keyboard_leds
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	btrl	%ecx, %eax
	movl	%eax, %edi
	callq	_led_set_kb
	xorl	%eax, %eax
	callq	_host_keyboard_leds
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	btrl	%ecx, %eax
	movl	%eax, %edi
	callq	_led_set_kb
	movq	_MOUSE1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.2:
	movq	_MOUSE2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.3:
	movq	_PROG1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.6:
	movq	_PROG2@GOTPCREL(%rip), %rax
	movq	%r14, %r15
	cmpq	(%rax), %rbx
	jne	LBB0_7
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %r15
LBB0_5:
	xorl	%eax, %eax
	callq	_host_keyboard_leds
	movb	(%r15), %cl
	btsl	%ecx, %eax
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_led_set_kb                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_layer_state,4,2                ## @layer_state
	.comm	_current_layer_global,8,3       ## @current_layer_global
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
	.comm	_MOUSE1,8,3                     ## @MOUSE1
	.comm	_MOUSE2,8,3                     ## @MOUSE2
	.comm	_PROG1,8,3                      ## @PROG1
	.comm	_PROG2,8,3                      ## @PROG2
.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _layer_state@GOTPAGE
Lloh1:
	ldr	x8, [x8, _layer_state@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_biton32
Lloh3:
	adrp	x8, _current_layer_global@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_layer_global@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x0
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	str	x0, [x8]
	bl	_host_keyboard_leds
Lloh5:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w20, #1
	lsl	w8, w20, w8
	bic	w0, w0, w8
	bl	_led_set_kb
	bl	_host_keyboard_leds
Lloh8:
	adrp	x21, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh9:
	ldr	x21, [x21, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w8, w20, w8
	bic	w0, w0, w8
	bl	_led_set_kb
Lloh10:
	adrp	x8, _MOUSE1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MOUSE1@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _MOUSE2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MOUSE2@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x19, x8
	ccmp	x19, x9, #4, ne
	b.eq	LBB0_4
; %bb.2:
Lloh16:
	adrp	x8, _PROG1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PROG1@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _PROG2@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PROG2@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x19, x8
	ccmp	x19, x9, #4, ne
	b.ne	LBB0_5
; %bb.3:
Lloh22:
	adrp	x21, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh23:
	ldr	x21, [x21, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
LBB0_4:
	bl	_host_keyboard_leds
	ldr	w8, [x21]
	lsl	w8, w20, w8
	orr	w0, w8, w0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_led_set_kb
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_layer_state,4,2                ; @layer_state
	.comm	_current_layer_global,8,3       ; @current_layer_global
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
	.comm	_MOUSE1,8,3                     ; @MOUSE1
	.comm	_MOUSE2,8,3                     ; @MOUSE2
	.comm	_PROG1,8,3                      ; @PROG1
	.comm	_PROG2,8,3                      ; @PROG2
.subsections_via_symbols
