	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma8452_calculate_sleep
_mma8452_calculate_sleep:               ## @mma8452_calculate_sleep
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_mma8452_get_odr_index
	movq	_mma8452_samp_freq@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	movl	$1000, %eax                     ## imm = 0x3E8
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ecx
	cmpl	$1001, %esi                     ## imm = 0x3E9
	movl	$1, %eax
	cmovbl	%ecx, %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mma8452_samp_freq,8,3          ## @mma8452_samp_freq
	.no_dead_strip	_mma8452_calculate_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma8452_calculate_sleep
_mma8452_calculate_sleep:               ; @mma8452_calculate_sleep
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_mma8452_get_odr_index
Lloh0:
	adrp	x8, _mma8452_samp_freq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mma8452_samp_freq@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	w8, [x8]
	mov	w0, #1000
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	udiv	w9, w0, w8
	cmp	w8, #1000
	csinc	w0, w9, wzr, ls
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mma8452_samp_freq,8,3          ; @mma8452_samp_freq
	.no_dead_strip	_mma8452_calculate_sleep
.subsections_via_symbols
