	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleaning_period_store
_cleaning_period_store:                 ## @cleaning_period_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_to_iio_dev
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	xorl	%ebx, %ebx
	leaq	-68(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_kstrtoint
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r13d
	jmp	LBB0_10
LBB0_2:
	movl	-68(%rbp), %edi
	movq	_SPS30_AUTO_CLEANING_PERIOD_MIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jl	LBB0_4
## %bb.3:
	movq	_SPS30_AUTO_CLEANING_PERIOD_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_4
## %bb.5:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_put_unaligned_be32
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_SPS30_AUTO_CLEANING_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_sps30_do_cmd
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r12d, %r13d
	jmp	LBB0_10
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_7:
	movl	$20, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_sps30_do_cmd_reset
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SPS30_AUTO_CLEANING_PERIOD_MIN,4,2 ## @SPS30_AUTO_CLEANING_PERIOD_MIN
	.comm	_SPS30_AUTO_CLEANING_PERIOD_MAX,4,2 ## @SPS30_AUTO_CLEANING_PERIOD_MAX
	.comm	_SPS30_AUTO_CLEANING_PERIOD,4,2 ## @SPS30_AUTO_CLEANING_PERIOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"period changed but reads will return the old value\n"

	.no_dead_strip	_cleaning_period_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleaning_period_store
_cleaning_period_store:                 ; @cleaning_period_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x22, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_dev_to_iio_dev
	bl	_iio_priv
	mov	x21, x0
	add	x2, sp, #4
	mov	x0, x22
	mov	w1, #0
	bl	_kstrtoint
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #4]
Lloh3:
	adrp	x8, _SPS30_AUTO_CLEANING_PERIOD_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPS30_AUTO_CLEANING_PERIOD_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SPS30_AUTO_CLEANING_PERIOD_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPS30_AUTO_CLEANING_PERIOD_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
	b.le	LBB0_5
LBB0_2:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_3:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	add	x1, sp, #8
	bl	_put_unaligned_be32
	mov	x0, x21
	bl	_mutex_lock
Lloh15:
	adrp	x8, _SPS30_AUTO_CLEANING_PERIOD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SPS30_AUTO_CLEANING_PERIOD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #0
	bl	_sps30_do_cmd
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	mov	x19, x22
	b	LBB0_3
LBB0_7:
	mov	w0, #20
	bl	_msleep
	mov	x0, x21
	bl	_sps30_do_cmd_reset
	cbz	w0, LBB0_9
; %bb.8:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_9:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_3
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SPS30_AUTO_CLEANING_PERIOD_MIN,4,2 ; @SPS30_AUTO_CLEANING_PERIOD_MIN
	.comm	_SPS30_AUTO_CLEANING_PERIOD_MAX,4,2 ; @SPS30_AUTO_CLEANING_PERIOD_MAX
	.comm	_SPS30_AUTO_CLEANING_PERIOD,4,2 ; @SPS30_AUTO_CLEANING_PERIOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"period changed but reads will return the old value\n"

	.no_dead_strip	_cleaning_period_store
.subsections_via_symbols
