	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lis3lv02d_get_xyz
_lis3lv02d_get_xyz:                     ## @lis3lv02d_get_xyz
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rcx
	movq	_WAI_12B@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_OUTX_L@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	*%rax
	movl	-96(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movl	-92(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, %r14
	movl	-88(%rbp), %edi
	callq	_le16_to_cpu
	movq	%rax, %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_OUTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	%eax, %r13d
	movq	_OUTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	%eax, %r14d
	movq	_OUTZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	%eax, %ecx
	jmp	LBB0_5
LBB0_3:
	movq	_OUTX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	*%rax
	movl	-96(%rbp), %r13d
	movl	-80(%rbp), %r14d
	movl	-64(%rbp), %ecx
LBB0_5:
	movl	16(%rbx), %esi
	movq	_LIS3_ACCURACY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%esi, %r13d
	movl	%r13d, %eax
	cltd
	idivl	%edi
	movl	%eax, -96(%rbp)
	imull	%esi, %r14d
	movl	%r14d, %eax
	cltd
	idivl	%edi
	movl	%eax, -92(%rbp)
	imull	%esi, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	%eax, -88(%rbp)
	movl	28(%rbx), %edi
	leaq	-96(%rbp), %r14
	movq	%r14, %rsi
	callq	_lis3lv02d_get_axis
	movl	%eax, (%r12)
	movl	24(%rbx), %edi
	movq	%r14, %rsi
	callq	_lis3lv02d_get_axis
	movl	%eax, (%r15)
	movl	20(%rbx), %edi
	movq	%r14, %rsi
	callq	_lis3lv02d_get_axis
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WAI_12B,8,3                    ## @WAI_12B
	.comm	_OUTX_L,4,2                     ## @OUTX_L
	.comm	_OUTX,4,2                       ## @OUTX
	.comm	_OUTY,4,2                       ## @OUTY
	.comm	_OUTZ,4,2                       ## @OUTZ
	.comm	_LIS3_ACCURACY,4,2              ## @LIS3_ACCURACY
	.no_dead_strip	_lis3lv02d_get_xyz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lis3lv02d_get_xyz
_lis3lv02d_get_xyz:                     ; @lis3lv02d_get_xyz
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x21]
Lloh3:
	adrp	x10, _WAI_12B@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WAI_12B@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _OUTX_L@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OUTX_L@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	x3, sp
	mov	x0, x21
	mov	w2, #6
	blr	x8
	ldr	w0, [sp]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [sp, #4]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	b	LBB0_5
LBB0_3:
	ldr	x8, [x21, #8]
Lloh9:
	adrp	x9, _OUTX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OUTX@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	mov	x23, x0
	ldr	x8, [x21, #8]
Lloh12:
	adrp	x9, _OUTY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OUTY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
	mov	x24, x0
	ldr	x8, [x21, #8]
Lloh15:
	adrp	x9, _OUTZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OUTZ@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x9, _OUTX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OUTX@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	mov	x3, sp
	mov	x0, x21
	mov	w2, #5
	blr	x8
	ldr	w23, [sp]
	ldr	w24, [sp, #16]
	ldr	w0, [sp, #32]
LBB0_5:
Lloh21:
	adrp	x8, _LIS3_ACCURACY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LIS3_ACCURACY@GOTPAGEOFF]
	ldr	w9, [x21, #16]
Lloh23:
	ldr	w8, [x8]
	mul	w10, w9, w23
	sdiv	w10, w10, w8
	mul	w11, w9, w24
	sdiv	w11, w11, w8
	stp	w10, w11, [sp]
	mul	w9, w9, w0
	sdiv	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x21, #28]
	mov	x1, sp
	bl	_lis3lv02d_get_axis
	str	w0, [x22]
	ldr	w0, [x21, #24]
	mov	x1, sp
	bl	_lis3lv02d_get_axis
	str	w0, [x20]
	ldr	w0, [x21, #20]
	mov	x1, sp
	bl	_lis3lv02d_get_axis
	str	w0, [x19]
	ldr	x8, [sp, #40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WAI_12B,8,3                    ; @WAI_12B
	.comm	_OUTX_L,4,2                     ; @OUTX_L
	.comm	_OUTX,4,2                       ; @OUTX
	.comm	_OUTY,4,2                       ; @OUTY
	.comm	_OUTZ,4,2                       ; @OUTZ
	.comm	_LIS3_ACCURACY,4,2              ; @LIS3_ACCURACY
	.no_dead_strip	_lis3lv02d_get_xyz
.subsections_via_symbols
