	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sps30_read_raw
_sps30_read_raw:                        ## @sps30_read_raw
	.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	%r8, %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_iio_priv
	movq	%rax, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpq	$133, %r14
	je	LBB0_7
## %bb.1:
	cmpq	$134, %r14
	jne	LBB0_11
## %bb.2:
	cmpl	$132, 12(%r12)
	jne	LBB0_11
## %bb.3:
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	8(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.4:
	cltq
	leaq	L_switch.table.sps30_read_raw(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_sps30_do_meas
	movl	%eax, %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.6:
	movq	(%r12), %rax
	movslq	-64(%rbp,%rax,4), %rax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	movl	%ecx, (%r15)
	imull	$100, %ecx, %ecx
	subl	%ecx, %eax
	imull	$10000, %eax, %eax              ## imm = 0x2710
	jmp	LBB0_10
LBB0_7:
	cmpl	$132, 12(%r12)
	jne	LBB0_11
## %bb.8:
	movl	8(%r12), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.9:
	movl	$0, (%r15)
	movl	$10000, %eax                    ## imm = 0x2710
LBB0_10:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_sps30_read_raw
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.sps30_read_raw
L_switch.table.sps30_read_raw:
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sps30_read_raw
_sps30_read_raw:                        ; @sps30_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_iio_priv
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	cmp	x24, #133
	b.eq	LBB0_7
; %bb.1:
	cmp	x24, #134
	b.ne	LBB0_11
; %bb.2:
	ldr	w8, [x22, #12]
	cmp	w8, #132
	b.ne	LBB0_11
; %bb.3:
	mov	x23, x0
	bl	_mutex_lock
	ldr	w8, [x22, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.4:
Lloh6:
	adrp	x9, l_switch.table.sps30_read_raw@PAGE
Lloh7:
	add	x9, x9, l_switch.table.sps30_read_raw@PAGEOFF
	ldr	w2, [x9, w8, sxtw #2]
	add	x1, sp, #8
	mov	x0, x23
	bl	_sps30_do_meas
	mov	x21, x0
LBB0_5:
	mov	x0, x23
	bl	_mutex_unlock
	cbnz	w21, LBB0_11
; %bb.6:
	ldr	x8, [x22]
	add	x9, sp, #8
	ldr	w8, [x9, x8, lsl #2]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	str	w9, [x20]
	mov	w10, #100
	msub	w8, w9, w10, w8
	mov	w9, #10000
	mul	w8, w8, w9
	b	LBB0_10
LBB0_7:
	ldr	w8, [x22, #12]
	cmp	w8, #132
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x22, #8]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.9:
	str	wzr, [x20]
	mov	w8, #10000
LBB0_10:
	str	w8, [x19]
Lloh8:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
LBB0_11:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_sps30_read_raw
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.sps30_read_raw
l_switch.table.sps30_read_raw:
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	1                               ; 0x1

.subsections_via_symbols
