	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp5523_post_init_device
_lp5523_post_init_device:               ## @lp5523_post_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
	movq	_LP5523_REG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LP5523_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lp55xx_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	_LP5523_AUTO_INC@GOTPCREL(%rip), %rax
	movq	_LP5523_PWR_SAVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_LP5523_CP_AUTO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_LP5523_REG_CONFIG@GOTPCREL(%rip), %rax
	movq	_LP5523_AUTO_CLK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_LP5523_PWM_PWR_SAVE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_lp55xx_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_LP5523_REG_ENABLE_LEDS_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_lp55xx_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_LP5523_REG_ENABLE_LEDS_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_lp55xx_write
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_lp5523_init_program_engine     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LP5523_REG_ENABLE,4,2          ## @LP5523_REG_ENABLE
	.comm	_LP5523_ENABLE,4,2              ## @LP5523_ENABLE
	.comm	_LP5523_REG_CONFIG,4,2          ## @LP5523_REG_CONFIG
	.comm	_LP5523_AUTO_INC,4,2            ## @LP5523_AUTO_INC
	.comm	_LP5523_PWR_SAVE,4,2            ## @LP5523_PWR_SAVE
	.comm	_LP5523_CP_AUTO,4,2             ## @LP5523_CP_AUTO
	.comm	_LP5523_AUTO_CLK,4,2            ## @LP5523_AUTO_CLK
	.comm	_LP5523_PWM_PWR_SAVE,4,2        ## @LP5523_PWM_PWR_SAVE
	.comm	_LP5523_REG_ENABLE_LEDS_MSB,4,2 ## @LP5523_REG_ENABLE_LEDS_MSB
	.comm	_LP5523_REG_ENABLE_LEDS_LSB,4,2 ## @LP5523_REG_ENABLE_LEDS_LSB
	.no_dead_strip	_lp5523_post_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp5523_post_init_device
_lp5523_post_init_device:               ; @lp5523_post_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	x8, _LP5523_REG_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP5523_REG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _LP5523_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP5523_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_lp55xx_write
	cbnz	w0, LBB0_4
; %bb.1:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
Lloh6:
	adrp	x8, _LP5523_REG_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LP5523_REG_CONFIG@GOTPAGEOFF]
Lloh8:
	adrp	x9, _LP5523_AUTO_INC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LP5523_AUTO_INC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _LP5523_PWR_SAVE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LP5523_PWR_SAVE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _LP5523_CP_AUTO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LP5523_CP_AUTO@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _LP5523_AUTO_CLK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LP5523_AUTO_CLK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _LP5523_PWM_PWR_SAVE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LP5523_PWM_PWR_SAVE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_lp55xx_write
	cbnz	w0, LBB0_4
; %bb.2:
Lloh24:
	adrp	x8, _LP5523_REG_ENABLE_LEDS_MSB@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LP5523_REG_ENABLE_LEDS_MSB@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_lp55xx_write
	cbnz	w0, LBB0_4
; %bb.3:
Lloh27:
	adrp	x8, _LP5523_REG_ENABLE_LEDS_LSB@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LP5523_REG_ENABLE_LEDS_LSB@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_lp55xx_write
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lp5523_init_program_engine
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_LP5523_REG_ENABLE,4,2          ; @LP5523_REG_ENABLE
	.comm	_LP5523_ENABLE,4,2              ; @LP5523_ENABLE
	.comm	_LP5523_REG_CONFIG,4,2          ; @LP5523_REG_CONFIG
	.comm	_LP5523_AUTO_INC,4,2            ; @LP5523_AUTO_INC
	.comm	_LP5523_PWR_SAVE,4,2            ; @LP5523_PWR_SAVE
	.comm	_LP5523_CP_AUTO,4,2             ; @LP5523_CP_AUTO
	.comm	_LP5523_AUTO_CLK,4,2            ; @LP5523_AUTO_CLK
	.comm	_LP5523_PWM_PWR_SAVE,4,2        ; @LP5523_PWM_PWR_SAVE
	.comm	_LP5523_REG_ENABLE_LEDS_MSB,4,2 ; @LP5523_REG_ENABLE_LEDS_MSB
	.comm	_LP5523_REG_ENABLE_LEDS_LSB,4,2 ; @LP5523_REG_ENABLE_LEDS_LSB
	.no_dead_strip	_lp5523_post_init_device
.subsections_via_symbols
