	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8501_post_init_device
_lp8501_post_init_device:               ## @lp8501_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_LP8501_DEFAULT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_LP8501_REG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LP8501_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	(%rbx), %rax
	movq	(%rax), %rax
	movq	_LP55XX_CLOCK_EXT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_LP8501_INT_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	orl	%r14d, %edx
	movq	_LP8501_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lp55xx_write
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_LP8501_REG_PWR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LP8501_PWR_CONFIG_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lp55xx_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LP8501_DEFAULT_CFG,4,2         ## @LP8501_DEFAULT_CFG
	.comm	_LP8501_REG_ENABLE,4,2          ## @LP8501_REG_ENABLE
	.comm	_LP8501_ENABLE,4,2              ## @LP8501_ENABLE
	.comm	_LP55XX_CLOCK_EXT,8,3           ## @LP55XX_CLOCK_EXT
	.comm	_LP8501_INT_CLK,4,2             ## @LP8501_INT_CLK
	.comm	_LP8501_REG_CONFIG,4,2          ## @LP8501_REG_CONFIG
	.comm	_LP8501_REG_PWR_CONFIG,4,2      ## @LP8501_REG_PWR_CONFIG
	.comm	_LP8501_PWR_CONFIG_M,4,2        ## @LP8501_PWR_CONFIG_M
	.no_dead_strip	_lp8501_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 lp8501_post_init_device
_lp8501_post_init_device:               ; @lp8501_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, _LP8501_DEFAULT_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP8501_DEFAULT_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _LP8501_REG_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP8501_REG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _LP8501_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LP8501_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_lp55xx_write
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _LP55XX_CLOCK_EXT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LP55XX_CLOCK_EXT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _LP8501_INT_CLK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _LP8501_INT_CLK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w8, wzr, w10, eq
	orr	w2, w8, w20
Lloh15:
	adrp	x8, _LP8501_REG_CONFIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LP8501_REG_CONFIG@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lp55xx_write
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh18:
	adrp	x8, _LP8501_REG_PWR_CONFIG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LP8501_REG_PWR_CONFIG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _LP8501_PWR_CONFIG_M@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LP8501_PWR_CONFIG_M@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldr	w3, [x8, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lp55xx_update_bits
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LP8501_DEFAULT_CFG,4,2         ; @LP8501_DEFAULT_CFG
	.comm	_LP8501_REG_ENABLE,4,2          ; @LP8501_REG_ENABLE
	.comm	_LP8501_ENABLE,4,2              ; @LP8501_ENABLE
	.comm	_LP55XX_CLOCK_EXT,8,3           ; @LP55XX_CLOCK_EXT
	.comm	_LP8501_INT_CLK,4,2             ; @LP8501_INT_CLK
	.comm	_LP8501_REG_CONFIG,4,2          ; @LP8501_REG_CONFIG
	.comm	_LP8501_REG_PWR_CONFIG,4,2      ; @LP8501_REG_PWR_CONFIG
	.comm	_LP8501_PWR_CONFIG_M,4,2        ; @LP8501_PWR_CONFIG_M
	.no_dead_strip	_lp8501_post_init_device
.subsections_via_symbols
