	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlc591xx_configure
_tlc591xx_configure:                    ## @tlc591xx_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %edi
	movq	_MODE2_DIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tlc591xx_set_mode
	movq	_TLC591XX_MAX_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	addq	$32, %r13
	cmpq	%rcx, %rbx
	jae	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r14
	cmpl	$0, 24(%r14,%r13)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, 16(%r14,%r13)
	movl	%ebx, (%r14,%r13)
	movq	_tlc591xx_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r14,%r13), %rsi
	addq	$4, %rsi
	movl	%eax, 12(%r14,%r13)
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14,%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_TLC591XX_MAX_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_2
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %r12d
	movl	4(%r14,%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tlc591xx_destroy_devices
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE2_DIM,4,2                  ## @MODE2_DIM
	.comm	_TLC591XX_MAX_LEDS,4,2          ## @TLC591XX_MAX_LEDS
	.comm	_tlc591xx_brightness_set,4,2    ## @tlc591xx_brightness_set
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't register LED %s\n"

	.no_dead_strip	_tlc591xx_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlc591xx_configure
_tlc591xx_configure:                    ; @tlc591xx_configure
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
Lloh0:
	adrp	x8, _MODE2_DIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE2_DIM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tlc591xx_set_mode
Lloh3:
	adrp	x23, _TLC591XX_MAX_LEDS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TLC591XX_MAX_LEDS@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x24, #0
	mov	x21, #0
Lloh5:
	adrp	x25, _tlc591xx_brightness_set@GOTPAGE
Lloh6:
	ldr	x25, [x25, _tlc591xx_brightness_set@GOTPAGEOFF]
Lloh7:
	adrp	x26, _LED_FULL@GOTPAGE
Lloh8:
	ldr	x26, [x26, _LED_FULL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x24, x24, #32
	cmp	x21, w8, uxtw
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19]
	add	x9, x27, x24
	ldr	w10, [x9, #24]
	cbz	w10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x19, [x9, #16]
	str	w21, [x9]
	ldr	w8, [x25]
	add	x1, x9, #4
	str	w8, [x9, #12]
	ldr	w8, [x26]
	str	w8, [x9, #8]
	mov	x0, x20
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	b	LBB0_2
LBB0_6:
	mov	w22, #0
	b	LBB0_8
LBB0_7:
	mov	x22, x0
	add	x8, x27, x24
	ldr	w2, [x8, #4]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	mov	x1, x21
	bl	_tlc591xx_destroy_devices
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE2_DIM,4,2                  ; @MODE2_DIM
	.comm	_TLC591XX_MAX_LEDS,4,2          ; @TLC591XX_MAX_LEDS
	.comm	_tlc591xx_brightness_set,4,2    ; @tlc591xx_brightness_set
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't register LED %s\n"

	.no_dead_strip	_tlc591xx_configure
.subsections_via_symbols
