	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IS31FL3731_set_color           ## -- Begin function IS31FL3731_set_color
	.p2align	4, 0x90
_IS31FL3731_set_color:                  ## @IS31FL3731_set_color
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	js	LBB0_3
## %bb.1:
	movq	_DRIVER_LED_TOTAL@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_3
## %bb.2:
	movq	_g_is31_leds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %edi
	leaq	(%rdi,%rdi,2), %rdi
	movq	(%rax,%rdi,8), %r8
	movslq	8(%rax,%rdi,8), %r9
	movslq	12(%rax,%rdi,8), %r10
	movslq	16(%rax,%rdi,8), %rax
	movq	_g_pwm_buffer@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	(%rdi,%r8,8), %rdi
	movl	%esi, -144(%rdi,%r9,4)
	movl	%edx, -144(%rdi,%r10,4)
	movl	%ecx, -144(%rdi,%rax,4)
	movq	_g_pwm_buffer_update_required@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%r8,4)
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_LED_TOTAL,4,2           ## @DRIVER_LED_TOTAL
	.comm	_g_is31_leds,8,3                ## @g_is31_leds
	.comm	_g_pwm_buffer,8,3               ## @g_pwm_buffer
	.comm	_g_pwm_buffer_update_required,8,3 ## @g_pwm_buffer_update_required
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IS31FL3731_set_color           ; -- Begin function IS31FL3731_set_color
	.p2align	2
_IS31FL3731_set_color:                  ; @IS31FL3731_set_color
	.cfi_startproc
; %bb.0:
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _DRIVER_LED_TOTAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_LED_TOTAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _g_is31_leds@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_is31_leds@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #24
	umaddl	x8, w0, w9, x8
	ldr	x9, [x8]
	ldpsw	x10, x11, [x8, #8]
	ldrsw	x8, [x8, #16]
Lloh6:
	adrp	x12, _g_pwm_buffer@GOTPAGE
Lloh7:
	ldr	x12, [x12, _g_pwm_buffer@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	ldr	x12, [x12, x9, lsl #3]
	add	x10, x12, x10, lsl #2
	stur	w1, [x10, #-144]
	add	x10, x12, x11, lsl #2
	stur	w2, [x10, #-144]
	add	x8, x12, x8, lsl #2
	stur	w3, [x8, #-144]
Lloh9:
	adrp	x8, _g_pwm_buffer_update_required@GOTPAGE
Lloh10:
	ldr	x8, [x8, _g_pwm_buffer_update_required@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_LED_TOTAL,4,2           ; @DRIVER_LED_TOTAL
	.comm	_g_is31_leds,8,3                ; @g_is31_leds
	.comm	_g_pwm_buffer,8,3               ; @g_pwm_buffer
	.comm	_g_pwm_buffer_update_required,8,3 ; @g_pwm_buffer_update_required
.subsections_via_symbols
