	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lis3lv02d_poweron              ## -- Begin function lis3lv02d_poweron
	.p2align	4, 0x90
_lis3lv02d_poweron:                     ## @lis3lv02d_poweron
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	*40(%rdi)
	cmpq	$0, 32(%rbx)
	je	LBB0_9
## %bb.1:
	movq	_CTRL_REG2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	(%rbx), %rax
	movq	_WAI_12B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_CTRL2_BDU@GOTPCREL(%rip), %rax
	movq	_CTRL2_BOOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	-20(%rbp), %edx
	jmp	LBB0_7
LBB0_3:
	movq	_WAI_3DLH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_CTRL2_BOOT_3DLH@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_CTRL2_BOOT_8B@GOTPCREL(%rip), %rax
LBB0_6:
	movl	-20(%rbp), %edx
	orl	(%rax), %edx
LBB0_7:
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	(%rbx), %rax
	movq	_WAI_3DLH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_CTRL_REG4@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	_CTRL4_BDU@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	callq	_lis3lv02d_get_pwron_wait
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	cmpq	$0, 8(%rbx)
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_lis3_context_restore
LBB0_12:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL_REG2,4,2                  ## @CTRL_REG2
	.comm	_WAI_12B,8,3                    ## @WAI_12B
	.comm	_CTRL2_BDU,4,2                  ## @CTRL2_BDU
	.comm	_CTRL2_BOOT,4,2                 ## @CTRL2_BOOT
	.comm	_WAI_3DLH,8,3                   ## @WAI_3DLH
	.comm	_CTRL2_BOOT_3DLH,4,2            ## @CTRL2_BOOT_3DLH
	.comm	_CTRL2_BOOT_8B,4,2              ## @CTRL2_BOOT_8B
	.comm	_CTRL_REG4,4,2                  ## @CTRL_REG4
	.comm	_CTRL4_BDU,4,2                  ## @CTRL4_BDU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lis3lv02d_poweron              ; -- Begin function lis3lv02d_poweron
	.p2align	2
_lis3lv02d_poweron:                     ; @lis3lv02d_poweron
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0, #40]
	blr	x8
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x20, _CTRL_REG2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CTRL_REG2@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _WAI_12B@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WAI_12B@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x21, _WAI_3DLH@GOTPAGE
Lloh6:
	ldr	x21, [x21, _WAI_3DLH@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _CTRL2_BDU@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CTRL2_BDU@GOTPAGEOFF]
Lloh9:
	adrp	x9, _CTRL2_BOOT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CTRL2_BOOT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
	b	LBB0_7
LBB0_3:
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _CTRL2_BOOT_3DLH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CTRL2_BOOT_3DLH@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _CTRL2_BOOT_8B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CTRL2_BOOT_8B@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
LBB0_7:
	str	w2, [sp, #12]
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19, #24]
Lloh17:
	adrp	x20, _CTRL_REG4@GOTPAGE
Lloh18:
	ldr	x20, [x20, _CTRL_REG4@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
Lloh19:
	adrp	x8, _CTRL4_BDU@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CTRL4_BDU@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
LBB0_9:
	mov	x0, x19
	bl	_lis3lv02d_get_pwron_wait
	mov	x20, x0
	cbnz	w0, LBB0_12
; %bb.10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_lis3_context_restore
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL_REG2,4,2                  ; @CTRL_REG2
	.comm	_WAI_12B,8,3                    ; @WAI_12B
	.comm	_CTRL2_BDU,4,2                  ; @CTRL2_BDU
	.comm	_CTRL2_BOOT,4,2                 ; @CTRL2_BOOT
	.comm	_WAI_3DLH,8,3                   ; @WAI_3DLH
	.comm	_CTRL2_BOOT_3DLH,4,2            ; @CTRL2_BOOT_3DLH
	.comm	_CTRL2_BOOT_8B,4,2              ; @CTRL2_BOOT_8B
	.comm	_CTRL_REG4,4,2                  ; @CTRL_REG4
	.comm	_CTRL4_BDU,4,2                  ; @CTRL4_BDU
.subsections_via_symbols
