	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pms7003_read_raw
_pms7003_read_raw:                      ## @pms7003_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_iio_priv
	cmpq	$129, %rbx
	jne	LBB0_5
## %bb.1:
	cmpl	$128, 8(%r15)
	jne	LBB0_5
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	_CMD_READ_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pms7003_do_cmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r15), %rdi
	addq	8(%r12), %rdi
	callq	_pms7003_get_pm
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_READ_PASSIVE,4,2           ## @CMD_READ_PASSIVE
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pms7003_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pms7003_read_raw
_pms7003_read_raw:                      ; @pms7003_read_raw
	.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	x22, x4
	mov	x19, x2
	mov	x21, x1
	bl	_iio_priv
	cmp	x22, #129
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x21, #8]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x20, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _CMD_READ_PASSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_READ_PASSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pms7003_do_cmd
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_pms7003_get_pm
	str	w0, [x19]
	mov	x0, x20
	bl	_mutex_unlock
Lloh6:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_READ_PASSIVE,4,2           ; @CMD_READ_PASSIVE
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pms7003_read_raw
.subsections_via_symbols
