	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adxl372_set_inactivity_time_ms
_adxl372_set_inactivity_time_ms:        ## @adxl372_set_inactivity_time_ms
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_ADXL372_ODR_6400HZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$13, %eax
	movl	$26, %esi
	cmovel	%eax, %esi
	movl	%r14d, %edi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %ebx
	movzbl	%bh, %edx
	movl	12(%r15), %edi
	movq	_ADXL372_TIME_INACT_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movzbl	%bl, %edx
	movl	12(%r15), %edi
	movq	_ADXL372_TIME_INACT_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	%r14d, 8(%r15)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADXL372_ODR_6400HZ,8,3         ## @ADXL372_ODR_6400HZ
	.comm	_ADXL372_TIME_INACT_H,4,2       ## @ADXL372_TIME_INACT_H
	.comm	_ADXL372_TIME_INACT_L,4,2       ## @ADXL372_TIME_INACT_L
	.no_dead_strip	_adxl372_set_inactivity_time_ms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adxl372_set_inactivity_time_ms
_adxl372_set_inactivity_time_ms:        ; @adxl372_set_inactivity_time_ms
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ADXL372_ODR_6400HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADXL372_ODR_6400HZ@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	mov	w8, #26
	mov	w9, #13
	csel	w1, w9, w8, eq
	mov	x0, x19
	bl	_DIV_ROUND_CLOSEST
	mov	x21, x0
	ubfx	w2, w0, #8, #8
	ldr	w0, [x20, #12]
Lloh3:
	adrp	x8, _ADXL372_TIME_INACT_H@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADXL372_TIME_INACT_H@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_3
; %bb.1:
	and	w2, w21, #0xff
	ldr	w0, [x20, #12]
Lloh6:
	adrp	x8, _ADXL372_TIME_INACT_L@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADXL372_TIME_INACT_L@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_3
; %bb.2:
	str	w19, [x20, #8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADXL372_ODR_6400HZ,8,3         ; @ADXL372_ODR_6400HZ
	.comm	_ADXL372_TIME_INACT_H,4,2       ; @ADXL372_TIME_INACT_H
	.comm	_ADXL372_TIME_INACT_L,4,2       ; @ADXL372_TIME_INACT_L
	.no_dead_strip	_adxl372_set_inactivity_time_ms
.subsections_via_symbols
