	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8788_led_init_device
_lp8788_led_init_device:                ## @lp8788_led_init_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	(%rsi), %eax
	movq	_default_led_config@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movl	4(%rsi), %ecx
	movl	%ecx, 4(%rdx)
	movl	8(%rsi), %esi
	movl	%esi, 8(%rdx)
	jmp	LBB0_3
LBB0_1:
	movq	_default_led_config@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	4(%rcx), %ecx
LBB0_3:
	movl	%ecx, (%rbx)
	movq	_LP8788_ISINK_CTRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_LP8788_ISINK_SCALE_OFFSET@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	movl	$1, %edx
	shll	%cl, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	4(%rbx), %edi
	movl	%eax, %ecx
	callq	_lp8788_update_bits
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_lp8788_iout_addr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_default_led_config@GOTPCREL(%rip), %rcx
	movslq	4(%rcx), %rdx
	movl	(%rax,%rdx,4), %esi
	movq	_lp8788_iout_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %edx
	movl	8(%rcx), %ecx
	movl	4(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_lp8788_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_default_led_config,12,2        ## @default_led_config
	.comm	_LP8788_ISINK_CTRL,4,2          ## @LP8788_ISINK_CTRL
	.comm	_LP8788_ISINK_SCALE_OFFSET,4,2  ## @LP8788_ISINK_SCALE_OFFSET
	.comm	_lp8788_iout_addr,8,3           ## @lp8788_iout_addr
	.comm	_lp8788_iout_mask,8,3           ## @lp8788_iout_mask
	.no_dead_strip	_lp8788_led_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8788_led_init_device
_lp8788_led_init_device:                ; @lp8788_led_init_device
	.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	x20, _default_led_config@GOTPAGE
Lloh1:
	ldr	x20, [x20, _default_led_config@GOTPAGEOFF]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w8, [x1]
	str	w8, [x20]
	ldur	d0, [x1, #4]
	stur	d0, [x20, #4]
	fmov	w9, s0
	b	LBB0_3
LBB0_2:
	ldp	w8, w9, [x20]
LBB0_3:
	str	w9, [x19]
Lloh2:
	adrp	x10, _LP8788_ISINK_CTRL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LP8788_ISINK_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x10]
Lloh5:
	adrp	x10, _LP8788_ISINK_SCALE_OFFSET@GOTPAGE
Lloh6:
	ldr	x10, [x10, _LP8788_ISINK_SCALE_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	add	w9, w10, w9
	mov	w10, #1
	lsl	w2, w10, w9
	lsl	w3, w8, w9
	ldr	w0, [x19, #4]
	bl	_lp8788_update_bits
	cbz	w0, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh8:
	adrp	x8, _lp8788_iout_addr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _lp8788_iout_addr@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldp	w9, w3, [x20, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	lsl	x9, x9, #2
	ldr	w1, [x8, x9]
Lloh11:
	adrp	x8, _lp8788_iout_mask@GOTPAGE
Lloh12:
	ldr	x8, [x8, _lp8788_iout_mask@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w2, [x8, x9]
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lp8788_update_bits
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_default_led_config,12,2        ; @default_led_config
	.comm	_LP8788_ISINK_CTRL,4,2          ; @LP8788_ISINK_CTRL
	.comm	_LP8788_ISINK_SCALE_OFFSET,4,2  ; @LP8788_ISINK_SCALE_OFFSET
	.comm	_lp8788_iout_addr,8,3           ; @lp8788_iout_addr
	.comm	_lp8788_iout_mask,8,3           ; @lp8788_iout_mask
	.no_dead_strip	_lp8788_led_init_device
.subsections_via_symbols
