	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IS31FL3733_set_led_control_register ## -- Begin function IS31FL3733_set_led_control_register
	.p2align	4, 0x90
_IS31FL3733_set_led_control_register:   ## @IS31FL3733_set_led_control_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r8d
	movq	_g_is31_leds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rdi,%rdi,2), %rbx
	movl	(%rax,%rbx,8), %ecx
	movl	4(%rax,%rbx,8), %edi
	movl	8(%rax,%rbx,8), %r10d
	movq	16(%rax,%rbx,8), %r9
	leal	7(%rcx), %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	sarl	$3, %ebx
	leal	7(%rdi), %eax
	testl	%edi, %edi
	cmovnsl	%edi, %eax
	movslq	%ebx, %r14
	sarl	$3, %eax
	leal	7(%r10), %r11d
	testl	%r10d, %r10d
	cmovnsl	%r10d, %r11d
	andb	$7, %cl
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %ebx
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_g_led_control_registers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r9,8), %rsi
	orl	%ebx, (%rsi,%r14,4)
	jmp	LBB0_3
LBB0_2:
	notl	%ebx
	movq	_g_led_control_registers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r9,8), %rsi
	andl	%ebx, (%rsi,%r14,4)
LBB0_3:
	sarl	$3, %r11d
	cltq
	andb	$7, %dil
	movl	$1, %ebx
	movl	%edi, %ecx
	shll	%cl, %ebx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	orl	%ebx, (%rsi,%rax,4)
	jmp	LBB0_6
LBB0_5:
	notl	%ebx
	andl	%ebx, (%rsi,%rax,4)
LBB0_6:
	movslq	%r11d, %rax
	andb	$7, %r10b
	movl	$1, %edx
	movl	%r10d, %ecx
	shll	%cl, %edx
	testl	%r8d, %r8d
	je	LBB0_8
## %bb.7:
	orl	%edx, (%rsi,%rax,4)
	jmp	LBB0_9
LBB0_8:
	notl	%edx
	andl	%edx, (%rsi,%rax,4)
LBB0_9:
	movq	_g_led_control_registers_update_required@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%r9,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_is31_leds,8,3                ## @g_is31_leds
	.comm	_g_led_control_registers,8,3    ## @g_led_control_registers
	.comm	_g_led_control_registers_update_required,8,3 ## @g_led_control_registers_update_required
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IS31FL3733_set_led_control_register ; -- Begin function IS31FL3733_set_led_control_register
	.p2align	2
_IS31FL3733_set_led_control_register:   ; @IS31FL3733_set_led_control_register
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _g_is31_leds@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_is31_leds@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #24
	madd	x8, x0, x9, x8
	ldp	w10, w12, [x8]
	ldr	w9, [x8, #8]
	add	w11, w10, #7
	cmp	w10, #0
	csel	w11, w11, w10, lt
	sbfx	x14, x11, #3, #29
	add	w11, w12, #7
	ldr	x8, [x8, #16]
	cmp	w12, #0
	csel	w13, w11, w12, lt
	add	w11, w9, #7
	cmp	w9, #0
	csel	w11, w11, w9, lt
	and	x10, x10, #0x7
	mov	w15, #1
	lsl	w15, w15, w10
Lloh3:
	adrp	x10, _g_led_control_registers@GOTPAGE
Lloh4:
	ldr	x10, [x10, _g_led_control_registers@GOTPAGEOFF]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	x10, [x10]
	ldr	x10, [x10, x8, lsl #3]
	lsl	x14, x14, #2
	ldr	w16, [x10, x14]
	orr	w15, w16, w15
	b	LBB0_3
LBB0_2:
	ldr	x10, [x10]
	ldr	x10, [x10, x8, lsl #3]
	lsl	x14, x14, #2
	ldr	w16, [x10, x14]
	bic	w15, w16, w15
LBB0_3:
	str	w15, [x10, x14]
	sbfx	x13, x13, #3, #29
	and	w12, w12, #0x7
	mov	w14, #1
	lsl	w12, w14, w12
	lsl	x13, x13, #2
	cbz	w2, LBB0_5
; %bb.4:
	ldr	w14, [x10, x13]
	orr	w12, w14, w12
	b	LBB0_6
LBB0_5:
	ldr	w14, [x10, x13]
	bic	w12, w14, w12
LBB0_6:
	str	w12, [x10, x13]
	sbfx	x11, x11, #3, #29
	and	w9, w9, #0x7
	mov	w12, #1
	lsl	w9, w12, w9
	lsl	x11, x11, #2
	cbz	w3, LBB0_8
; %bb.7:
	ldr	w12, [x10, x11]
	orr	w9, w12, w9
	b	LBB0_9
LBB0_8:
	ldr	w12, [x10, x11]
	bic	w9, w12, w9
LBB0_9:
	str	w9, [x10, x11]
Lloh5:
	adrp	x9, _g_led_control_registers_update_required@GOTPAGE
Lloh6:
	ldr	x9, [x9, _g_led_control_registers_update_required@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x9, x8, lsl #2]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_g_is31_leds,8,3                ; @g_is31_leds
	.comm	_g_led_control_registers,8,3    ; @g_led_control_registers
	.comm	_g_led_control_registers_update_required,8,3 ; @g_led_control_registers_update_required
.subsections_via_symbols
