	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_key_led                    ## -- Begin function set_key_led
	.p2align	4, 0x90
_set_key_led:                           ## @set_key_led
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %ecx
	movl	12(%rdi), %eax
	leal	(%rcx,%rcx,4), %r8d
	cmpl	$4, %ecx
	jg	LBB0_3
## %bb.1:
	testb	$1, %cl
	je	LBB0_4
LBB0_2:
	subl	%eax, %r8d
	addl	$4, %r8d
	jmp	LBB0_5
LBB0_3:
	testb	$1, %cl
	je	LBB0_2
LBB0_4:
	addl	%eax, %r8d
LBB0_5:
	cmpq	$0, (%rdi)
	movq	_active_key_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r8d, %rcx
	je	LBB0_7
## %bb.6:
	movl	$1, (%rax,%rcx,4)
	movq	__PC@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movl	$0, (%rax,%rcx,4)
	movq	__LC@GOTPCREL(%rip), %rcx
	movslq	%esi, %rax
	shlq	$3, %rax
	addq	(%rcx), %rax
LBB0_8:
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movq	_led_dim@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbp
	jmp	_SET_LED_RGB                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_active_key_pos,8,3             ## @active_key_pos
	.comm	__PC,8,3                        ## @_PC
	.comm	_led_dim,4,2                    ## @led_dim
	.comm	__LC,8,3                        ## @_LC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_key_led                    ; -- Begin function set_key_led
	.p2align	2
_set_key_led:                           ; @set_key_led
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0, #8]
	add	w10, w8, w8, lsl #2
	add	w11, w10, w9
	sub	w9, w10, w9
	add	w9, w9, #4
	tst	w8, #0x1
	csel	w10, w11, w9, ne
	csel	w9, w9, w11, ne
	cmp	w8, #4
	csel	w9, w10, w9, gt
	ldr	x10, [x0]
Lloh0:
	adrp	x8, _active_key_pos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _active_key_pos@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sxtw	x4, w9
	cbz	x10, LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x8, x4, lsl #2]
Lloh3:
	adrp	x8, __PC@GOTPAGE
Lloh4:
	ldr	x8, [x8, __PC@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	str	wzr, [x8, x4, lsl #2]
Lloh5:
	adrp	x8, __LC@GOTPAGE
Lloh6:
	ldr	x8, [x8, __LC@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x8, x8, w1, sxtw #3
LBB0_3:
	ldr	x8, [x8]
	ldp	w0, w1, [x8]
	ldr	w2, [x8, #8]
Lloh8:
	adrp	x8, _led_dim@GOTPAGE
Lloh9:
	ldr	x8, [x8, _led_dim@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
                                        ; kill: def $w4 killed $w4 killed $x4
	b	_SET_LED_RGB
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_active_key_pos,8,3             ; @active_key_pos
	.comm	__PC,8,3                        ; @_PC
	.comm	_led_dim,4,2                    ; @led_dim
	.comm	__LC,8,3                        ; @_LC
.subsections_via_symbols
