	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_nearest_led_to_max
_set_nearest_led_to_max:                ## @set_nearest_led_to_max
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_map_key_position_to_led_index
	movq	_ISSI3733_LED_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_2
## %bb.1:
	movq	_LED_BOOST_PEAK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_led_boosts@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx,%rax,4)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISSI3733_LED_COUNT,8,3         ## @ISSI3733_LED_COUNT
	.comm	_LED_BOOST_PEAK,4,2             ## @LED_BOOST_PEAK
	.comm	_led_boosts,8,3                 ## @led_boosts
	.no_dead_strip	_set_nearest_led_to_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_nearest_led_to_max
_set_nearest_led_to_max:                ; @set_nearest_led_to_max
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_map_key_position_to_led_index
Lloh0:
	adrp	x8, _ISSI3733_LED_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISSI3733_LED_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _LED_BOOST_PEAK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LED_BOOST_PEAK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _led_boosts@GOTPAGE
Lloh7:
	ldr	x9, [x9, _led_boosts@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	w8, [x9, x0, lsl #2]
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISSI3733_LED_COUNT,8,3         ; @ISSI3733_LED_COUNT
	.comm	_LED_BOOST_PEAK,4,2             ; @LED_BOOST_PEAK
	.comm	_led_boosts,8,3                 ; @led_boosts
	.no_dead_strip	_set_nearest_led_to_max
.subsections_via_symbols
