	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is31fl3216_reset
_is31fl3216_reset:                      ## @is31fl3216_reset
	.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
	movq	%rdi, %r14
	movq	_IS31FL3216_CONFIG_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_IS31FL3216_CONFIG_SSD_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_is31fl32xx_write
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_is31fl32xx_write
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r14), %rax
	movl	(%rax), %ecx
	cmpq	%rcx, %rbx
	jb	LBB0_4
LBB0_5:
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_is31fl32xx_write
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_IS31FL3216_LIGHTING_EFFECT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_is31fl32xx_write
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_IS31FL3216_CHANNEL_CONFIG_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_is31fl32xx_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IS31FL3216_CONFIG_REG,8,3      ## @IS31FL3216_CONFIG_REG
	.comm	_IS31FL3216_CONFIG_SSD_ENABLE,4,2 ## @IS31FL3216_CONFIG_SSD_ENABLE
	.comm	_IS31FL3216_LIGHTING_EFFECT_REG,8,3 ## @IS31FL3216_LIGHTING_EFFECT_REG
	.comm	_IS31FL3216_CHANNEL_CONFIG_REG,8,3 ## @IS31FL3216_CHANNEL_CONFIG_REG
	.no_dead_strip	_is31fl3216_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is31fl3216_reset
_is31fl3216_reset:                      ; @is31fl3216_reset
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _IS31FL3216_CONFIG_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS31FL3216_CONFIG_REG@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
Lloh3:
	adrp	x8, _IS31FL3216_CONFIG_SSD_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IS31FL3216_CONFIG_SSD_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_is31fl32xx_write
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.2:
	mov	x20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #16]
	add	x1, x20, x8
	mov	x0, x19
	mov	w2, #0
	bl	_is31fl32xx_write
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	x20, x9
	b.lo	LBB0_3
LBB0_5:
	ldr	x1, [x8, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_is31fl32xx_write
	cbnz	w0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _IS31FL3216_LIGHTING_EFFECT_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IS31FL3216_LIGHTING_EFFECT_REG@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_is31fl32xx_write
	cbz	w0, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh9:
	adrp	x8, _IS31FL3216_CHANNEL_CONFIG_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IS31FL3216_CHANNEL_CONFIG_REG@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_is31fl32xx_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IS31FL3216_CONFIG_REG,8,3      ; @IS31FL3216_CONFIG_REG
	.comm	_IS31FL3216_CONFIG_SSD_ENABLE,4,2 ; @IS31FL3216_CONFIG_SSD_ENABLE
	.comm	_IS31FL3216_LIGHTING_EFFECT_REG,8,3 ; @IS31FL3216_LIGHTING_EFFECT_REG
	.comm	_IS31FL3216_CHANNEL_CONFIG_REG,8,3 ; @IS31FL3216_CHANNEL_CONFIG_REG
	.no_dead_strip	_is31fl3216_reset
.subsections_via_symbols
