	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function led_set_kb
LCPI0_0:
	.space	4
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_led_set_kb
	.p2align	4, 0x90
_led_set_kb:                            ## @led_set_kb
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_backlight_os_state@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	movl	$1, %edx
	movl	$1, %esi
	shll	%cl, %esi
	andl	%eax, %esi
	movl	%esi, -64(%rbp)
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	movl	$1, %esi
	shll	%cl, %esi
	andl	%eax, %esi
	movl	%esi, -60(%rbp)
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_backlight_layer_state@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movd	%edx, %xmm0
	pinsrd	$1, %ecx, %xmm0
	pshufd	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <u,2,4,8>
	pinsrd	$0, %eax, %xmm1
	pand	%xmm0, %xmm1
	movdqu	%xmm1, -56(%rbp)
	andl	$16, %ecx
	movl	%ecx, -40(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_indicator_leds_set
	movl	(%rbx), %eax
	movq	_PORTB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	$-18, %edx
	movl	(%r14), %esi
	xorl	%edi, %edi
	btl	%esi, %eax
	setae	%dil
	orl	%edx, %edi
	movl	(%r15), %edx
	xorl	%esi, %esi
	btl	%edx, %eax
	setae	%sil
	shll	$4, %esi
	orl	%edi, %esi
	movl	%esi, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_backlight_os_state,4,2         ## @backlight_os_state
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_backlight_layer_state,4,2      ## @backlight_layer_state
	.comm	_PORTB,4,2                      ## @PORTB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function led_set_kb
lCPI0_0:
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_led_set_kb
	.p2align	2
_led_set_kb:                            ; @led_set_kb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x19, _backlight_os_state@GOTPAGE
Lloh4:
	ldr	x19, [x19, _backlight_os_state@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh5:
	adrp	x20, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh6:
	ldr	x20, [x20, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
	ldr	w9, [x20]
	mov	w10, #1
	lsl	w9, w10, w9
	and	w9, w9, w8
Lloh7:
	adrp	x21, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh8:
	ldr	x21, [x21, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
	ldr	w11, [x21]
	lsl	w11, w10, w11
	and	w11, w11, w8
	stp	w9, w11, [sp, #12]
Lloh9:
	adrp	x9, _USB_LED_NUM_LOCK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	and	w8, w9, w8
	str	w8, [sp, #20]
Lloh12:
	adrp	x8, _backlight_layer_state@GOTPAGE
Lloh13:
	ldr	x8, [x8, _backlight_layer_state@GOTPAGEOFF]
	ld1r.4s	{ v0 }, [x8]
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	and.16b	v0, v0, v1
	stur	q0, [sp, #24]
	add	x0, sp, #12
	bl	_indicator_leds_set
	ldr	w8, [x19]
	ldr	w9, [x20]
Lloh16:
	adrp	x10, _PORTB@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PORTB@GOTPAGEOFF]
	ldr	w11, [x10]
	mov	w12, #-18
	and	w11, w11, w12
	mvn	w12, w8
	lsr	w9, w12, w9
	bfxil	w11, w9, #0, #1
	ldr	w9, [x21]
	lsr	w8, w8, w9
	tst	w8, #0x1
	cset	w8, eq
	bfi	w11, w8, #4, #1
	str	w11, [x10]
	ldr	x8, [sp, #40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_backlight_os_state,4,2         ; @backlight_os_state
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_backlight_layer_state,4,2      ; @backlight_layer_state
	.comm	_PORTB,4,2                      ; @PORTB
.subsections_via_symbols
