	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp5520_led_prepare
_adp5520_led_prepare:                   ## @adp5520_led_prepare
	.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	%rdi, %rbx
	callq	_dev_get_platdata
	movq	%rax, %r14
	movq	(%rbx), %r12
	movq	_ADP5520_LED1_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_adp5520_write
	movl	%eax, %r15d
	movq	_ADP5520_LED2_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_adp5520_write
	movl	%eax, %r13d
	orl	%r15d, %r13d
	movq	_ADP5520_LED3_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_adp5520_write
	movl	%eax, %r15d
	movq	_ADP5520_LED_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	shll	$6, %edx
	movq	%r12, %rdi
	callq	_adp5520_write
	movl	%eax, %ebx
	orl	%r15d, %ebx
	orl	%r13d, %ebx
	movq	_ADP5520_LED_FADE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_FADE_VAL
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_adp5520_write
	orl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADP5520_LED1_CURRENT,4,2       ## @ADP5520_LED1_CURRENT
	.comm	_ADP5520_LED2_CURRENT,4,2       ## @ADP5520_LED2_CURRENT
	.comm	_ADP5520_LED3_CURRENT,4,2       ## @ADP5520_LED3_CURRENT
	.comm	_ADP5520_LED_TIME,4,2           ## @ADP5520_LED_TIME
	.comm	_ADP5520_LED_FADE,4,2           ## @ADP5520_LED_FADE
	.no_dead_strip	_adp5520_led_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp5520_led_prepare
_adp5520_led_prepare:                   ; @adp5520_led_prepare
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_dev_get_platdata
	mov	x20, x0
	ldr	x19, [x19]
Lloh0:
	adrp	x8, _ADP5520_LED1_CURRENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADP5520_LED1_CURRENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_adp5520_write
	mov	x21, x0
Lloh3:
	adrp	x8, _ADP5520_LED2_CURRENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADP5520_LED2_CURRENT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_adp5520_write
	orr	w21, w0, w21
Lloh6:
	adrp	x8, _ADP5520_LED3_CURRENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADP5520_LED3_CURRENT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_adp5520_write
	orr	w21, w21, w0
Lloh9:
	adrp	x8, _ADP5520_LED_TIME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADP5520_LED_TIME@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x20]
	lsl	w2, w8, #6
	mov	x0, x19
	bl	_adp5520_write
	orr	w22, w21, w0
Lloh12:
	adrp	x8, _ADP5520_LED_FADE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADP5520_LED_FADE@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	ldp	w1, w0, [x20, #4]
	bl	_FADE_VAL
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_adp5520_write
	orr	w0, w22, w0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADP5520_LED1_CURRENT,4,2       ; @ADP5520_LED1_CURRENT
	.comm	_ADP5520_LED2_CURRENT,4,2       ; @ADP5520_LED2_CURRENT
	.comm	_ADP5520_LED3_CURRENT,4,2       ; @ADP5520_LED3_CURRENT
	.comm	_ADP5520_LED_TIME,4,2           ; @ADP5520_LED_TIME
	.comm	_ADP5520_LED_FADE,4,2           ; @ADP5520_LED_FADE
	.no_dead_strip	_adp5520_led_prepare
.subsections_via_symbols
