	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adxl34x_calibrate_store
_adxl34x_calibrate_store:               ## @adxl34x_calibrate_store
	.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	%rcx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	32(%rbx), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movl	%ecx, %edx
	sarl	$2, %edx
	movslq	%edx, %rsi
	movq	24(%rbx), %rdx
	subq	%rsi, %rdx
	movq	%rdx, 24(%rbx)
	andl	$-4, %ecx
	subl	%ecx, %eax
	movl	%eax, 44(%rbx)
	movq	36(%rbx), %rax
	movq	%rax, %xmm0
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-4, %ecx
	movl	%eax, %esi
	subl	%ecx, %esi
	movl	%esi, 48(%rbx)
	movdqa	%xmm0, %xmm1
	psrad	$31, %xmm1
	psrld	$30, %xmm1
	paddd	%xmm0, %xmm1
	psrad	$2, %xmm1
	pmovsxdq	%xmm1, %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	8(%rbx), %xmm1
	psubq	%xmm0, %xmm1
	movdqu	%xmm1, 8(%rbx)
	shrq	$32, %rax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-4, %ecx
	subl	%ecx, %eax
	movl	%eax, 52(%rbx)
	movq	_OFSX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_AC_WRITE
	movq	_OFSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	callq	_AC_WRITE
	movq	_OFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_AC_WRITE
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OFSX,4,2                       ## @OFSX
	.comm	_OFSY,4,2                       ## @OFSY
	.comm	_OFSZ,4,2                       ## @OFSZ
	.no_dead_strip	_adxl34x_calibrate_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adxl34x_calibrate_store
_adxl34x_calibrate_store:               ; @adxl34x_calibrate_store
	.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, x3
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_mutex_lock
	ldp	w8, w9, [x20, #32]
	add	w10, w8, #3
	cmp	w8, #0
	csel	w10, w10, w8, lt
	asr	w11, w10, #2
	ldr	x12, [x20, #24]
	sub	x2, x12, w11, sxtw
	and	w10, w10, #0xfffffffc
	sub	w8, w8, w10
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w11, w10, #2
	ldp	x13, x12, [x20, #8]
	sub	x11, x12, w11, sxtw
	and	w10, w10, #0xfffffffc
	sub	w9, w9, w10
	stp	w8, w9, [x20, #44]
	ldr	w8, [x20, #40]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w10, w9, #2
	sub	x10, x13, w10, sxtw
	stp	x11, x2, [x20, #16]
	str	x10, [x20, #8]
	and	w9, w9, #0xfffffffc
	sub	w8, w8, w9
	str	w8, [x20, #52]
Lloh0:
	adrp	x8, _OFSX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OFSX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_AC_WRITE
Lloh3:
	adrp	x8, _OFSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OFSY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x20
	bl	_AC_WRITE
Lloh6:
	adrp	x8, _OFSZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OFSZ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x20
	bl	_AC_WRITE
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OFSX,4,2                       ; @OFSX
	.comm	_OFSY,4,2                       ; @OFSY
	.comm	_OFSZ,4,2                       ; @OFSZ
	.no_dead_strip	_adxl34x_calibrate_store
.subsections_via_symbols
