	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp3944_configure
_lp3944_configure:                      ## @lp3944_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	$-12, %rbx
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$12, %rbx
	addq	$40, %r14
	cmpq	%rcx, %r15
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %r13
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r12
	movq	%rdi, 32(%r12,%r14)
	movl	%r15d, (%r12,%r14)
	movl	12(%r13,%rbx), %ecx
	leal	-129(%rcx), %esi
	cmpl	$1, %esi
	ja	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, 4(%r12,%r14)
	movl	20(%r13,%rbx), %eax
	leaq	(%r12,%r14), %rsi
	addq	$8, %rsi
	movl	%eax, 16(%r12,%r14)
	movl	$1, 8(%r12,%r14)
	movq	_lp3944_led_set_brightness@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12,%r14)
	movq	_lp3944_led_set_blink@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12,%r14)
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12,%r14)
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r14), %rdi
	movl	16(%r13,%rbx), %esi
	movl	%esi, 12(%r12,%r14)
	callq	_lp3944_led_set
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_9:
	movl	16(%r12,%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_10:
	movl	16(%r12,%r14), %edx
	movl	16(%r13,%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movl	%r12d, %eax
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.12:
	movl	%eax, %r13d
	addq	$-32, %r14
	incq	%r15
	movl	$-129, %r12d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	decq	%r15
	addq	$-40, %r14
	addq	$-12, %rbx
	cmpq	$1, %r15
	jbe	LBB0_16
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rax
	movl	(%rax,%rbx), %eax
	addl	%r12d, %eax
	cmpl	$1, %eax
	ja	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_led_classdev_unregister
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_16:
	movl	%r13d, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lp3944_led_set_brightness,4,2  ## @lp3944_led_set_brightness
	.comm	_lp3944_led_set_blink,4,2       ## @lp3944_led_set_blink
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't register LED %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s couldn't set STATUS %d\n"

	.no_dead_strip	_lp3944_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp3944_configure
_lp3944_configure:                      ; @lp3944_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x2]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x11, x1
	mov	x21, x0
	mov	x26, #0
	mov	x25, #0
	mov	x24, #-32
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	add	x24, x24, #40
	add	x26, x26, #12
	cmp	x25, w8, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x11]
	add	x1, x28, x24
	mov	x23, x1
	str	w25, [x23, #32]!
	ldr	x27, [x19, #8]
	str	x21, [x23, #32]
	ldr	w9, [x27, x26]
	sub	w10, w9, #129
	cmp	w10, #1
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #1
	str	w8, [x1, #40]!
	stur	w9, [x1, #-4]
	add	x20, x27, x26
	ldr	w8, [x20, #8]
	str	w8, [x1, #8]
Lloh0:
	adrp	x8, _lp3944_led_set_brightness@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lp3944_led_set_brightness@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #20]
Lloh3:
	adrp	x8, _lp3944_led_set_blink@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lp3944_led_set_blink@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x1, #16]
Lloh6:
	adrp	x8, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x1, #12]
	mov	x0, x21
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, #4]
	add	x20, x28, x24
	str	w1, [x20, #44]
	mov	x0, x23
	bl	_lp3944_led_set
	tbnz	w0, #31, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_2
LBB0_7:
	mov	w22, #0
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	mov	x22, x0
	add	x8, x28, x24
	ldr	w2, [x8, #48]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x22, x0
	ldr	w2, [x20, #48]
	add	x8, x27, x26
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x21
	bl	_dev_err
	cbz	w25, LBB0_8
; %bb.12:
	sub	x21, x26, #12
	add	x23, x25, #1
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	x23, x23, #1
	sub	x24, x24, #40
	sub	x21, x21, #12
	cmp	x23, #1
	b.ls	LBB0_8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x21]
	sub	w8, w8, #129
	cmp	w8, #1
	b.hi	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x20]
	add	x0, x8, x24
	bl	_led_classdev_unregister
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_lp3944_led_set_brightness,4,2  ; @lp3944_led_set_brightness
	.comm	_lp3944_led_set_blink,4,2       ; @lp3944_led_set_blink
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't register LED %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s couldn't set STATUS %d\n"

	.no_dead_strip	_lp3944_configure
.subsections_via_symbols
