	.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	4                               ## 0x4
	.long	2                               ## 0x2
	.space	4
	.long	32                              ## 0x20
LCPI0_1:
	.space	4
	.space	4
	.long	1                               ## 0x1
	.space	4
	.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
	subq	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_USB_LED_SCROLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_HOST_LED_ON
	movl	%eax, -48(%rbp)
	movq	_USB_LED_CAPS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_HOST_LED_ON
	movl	%eax, -44(%rbp)
	movq	_USB_LED_NUM_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_HOST_LED_ON
	movl	%eax, -40(%rbp)
	movq	_layer_state@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	$1, %ecx
	movd	%eax, %xmm0
	pinsrd	$1, %ecx, %xmm0
	pshufd	$16, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <4,2,u,32>
	pand	%xmm0, %xmm1
	pxor	LCPI0_1(%rip), %xmm0
	pblendw	$207, %xmm1, %xmm0              ## xmm0 = xmm1[0,1,2,3],xmm0[4,5],xmm1[6,7]
	movdqu	%xmm0, -36(%rbp)
	andl	$16, %eax
	movl	%eax, -20(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_indicator_leds_set
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_LED_SCROLL_LOCK,4,2        ## @USB_LED_SCROLL_LOCK
	.comm	_USB_LED_CAPS_LOCK,4,2          ## @USB_LED_CAPS_LOCK
	.comm	_USB_LED_NUM_LOCK,4,2           ## @USB_LED_NUM_LOCK
	.comm	_layer_state,4,2                ## @layer_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function led_set_kb
lCPI0_0:
	.long	4                               ; 0x4
	.long	2                               ; 0x2
lCPI0_1:
	.long	32                              ; 0x20
	.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, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _USB_LED_SCROLL_LOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_LED_SCROLL_LOCK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_IS_HOST_LED_ON
	str	w0, [sp, #8]
Lloh6:
	adrp	x8, _USB_LED_CAPS_LOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_LED_CAPS_LOCK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_IS_HOST_LED_ON
	str	w0, [sp, #12]
Lloh9:
	adrp	x8, _USB_LED_NUM_LOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_LED_NUM_LOCK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_IS_HOST_LED_ON
	str	w0, [sp, #16]
Lloh12:
	adrp	x8, _layer_state@GOTPAGE
Lloh13:
	ldr	x8, [x8, _layer_state@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mvn	w9, w8
	dup.2s	v0, w8
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	and.8b	v1, v0, v1
	stur	d1, [sp, #20]
	and	w8, w9, #0x1
	str	w8, [sp, #28]
Lloh17:
	adrp	x8, lCPI0_1@PAGE
Lloh18:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	and.8b	v0, v0, v1
	str	d0, [sp, #32]
	add	x0, sp, #8
	bl	_indicator_leds_set
	ldur	x8, [x29, #-8]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_LED_SCROLL_LOCK,4,2        ; @USB_LED_SCROLL_LOCK
	.comm	_USB_LED_CAPS_LOCK,4,2          ; @USB_LED_CAPS_LOCK
	.comm	_USB_LED_NUM_LOCK,4,2           ; @USB_LED_NUM_LOCK
	.comm	_layer_state,4,2                ; @layer_state
.subsections_via_symbols
