	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_new_led_boost_at
_calculate_new_led_boost_at:            ## @calculate_new_led_boost_at
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_led_boosts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rdi
	movq	_LED_BOOST_DECAY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	imulq	(%rax,%rdi,8), %rbx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_get_propagated_boost_from_neighbors
	cmpq	%rbx, %rax
	cmovleq	%rbx, %rax
	movq	_LED_BOOST_PEAK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovgeq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_led_boosts,8,3                 ## @led_boosts
	.comm	_LED_BOOST_DECAY,8,3            ## @LED_BOOST_DECAY
	.comm	_LED_BOOST_PEAK,8,3             ## @LED_BOOST_PEAK
	.no_dead_strip	_calculate_new_led_boost_at
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_new_led_boost_at
_calculate_new_led_boost_at:            ; @calculate_new_led_boost_at
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _led_boosts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _led_boosts@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
Lloh3:
	adrp	x9, _LED_BOOST_DECAY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LED_BOOST_DECAY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mul	x19, x9, x8
	bl	_get_propagated_boost_from_neighbors
	cmp	x0, x19
	csel	x8, x0, x19, gt
Lloh6:
	adrp	x9, _LED_BOOST_PEAK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LED_BOOST_PEAK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x0, x8, x9, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_led_boosts,8,3                 ; @led_boosts
	.comm	_LED_BOOST_DECAY,8,3            ; @LED_BOOST_DECAY
	.comm	_LED_BOOST_PEAK,8,3             ; @LED_BOOST_PEAK
	.no_dead_strip	_calculate_new_led_boost_at
.subsections_via_symbols
