	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IS31FL3731_set_led_control_register ## -- Begin function IS31FL3731_set_led_control_register
	.p2align	4, 0x90
_IS31FL3731_set_led_control_register:   ## @IS31FL3731_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
	movq	_g_is31_leds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rdi
	movl	(%rax,%rdi), %edx
	movq	8(%rax,%rdi), %rax
	leal	-36(%rdx), %ecx
	addl	$-29, %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	movslq	%edx, %rdx
	andb	$7, %cl
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_g_led_control_registers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	orl	%edi, (%rax,%rdx,4)
	jmp	LBB0_3
LBB0_2:
	notl	%edi
	movq	_g_led_control_registers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	andl	%edi, (%rax,%rdx,4)
LBB0_3:
	movq	_g_led_control_registers_update_required@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	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,4,2 ## @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	_IS31FL3731_set_led_control_register ; -- Begin function IS31FL3731_set_led_control_register
	.p2align	2
_IS31FL3731_set_led_control_register:   ; @IS31FL3731_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]
	add	x8, x8, x0, lsl #4
	ldr	w9, [x8]
	ldr	x8, [x8, #8]
	sub	w11, w9, #36
	sub	w9, w9, #29
	cmp	w11, #0
	csel	w9, w9, w11, lt
	sbfx	x10, x9, #3, #29
	and	w9, w11, #0x7
	mov	w11, #1
	lsl	w9, w11, w9
Lloh3:
	adrp	x11, _g_led_control_registers@GOTPAGE
Lloh4:
	ldr	x11, [x11, _g_led_control_registers@GOTPAGEOFF]
	cbz	w1, LBB0_2
; %bb.1:
	ldr	x11, [x11]
	ldr	x8, [x11, x8, lsl #3]
	lsl	x10, x10, #2
	ldr	w11, [x8, x10]
	orr	w9, w11, w9
	b	LBB0_3
LBB0_2:
	ldr	x11, [x11]
	ldr	x8, [x11, x8, lsl #3]
	lsl	x10, x10, #2
	ldr	w11, [x8, x10]
	bic	w9, w11, w9
LBB0_3:
	str	w9, [x8, x10]
Lloh5:
	adrp	x8, _g_led_control_registers_update_required@GOTPAGE
Lloh6:
	ldr	x8, [x8, _g_led_control_registers_update_required@GOTPAGEOFF]
	mov	w9, #1
Lloh7:
	str	w9, [x8]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	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,4,2 ; @g_led_control_registers_update_required
.subsections_via_symbols
