	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ams_iaqcore_read_raw
_ams_iaqcore_read_raw:                  ## @ams_iaqcore_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	callq	_iio_priv
	movq	%rax, %r12
	movq	_IIO_CHAN_INFO_PROCESSED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_ams_iaqcore_get_measurement
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_10:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.6:
	movl	$0, (%r15)
	movl	12(%r12), %edi
	callq	_be16_to_cpu
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_8:
	movl	$0, (%r15)
	movl	4(%r12), %edi
	callq	_be16_to_cpu
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movl	8(%r12), %edi
	callq	_be32_to_cpu
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_CHAN_INFO_PROCESSED,8,3    ## @IIO_CHAN_INFO_PROCESSED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.no_dead_strip	_ams_iaqcore_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ams_iaqcore_read_raw
_ams_iaqcore_read_raw:                  ; @ams_iaqcore_read_raw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	bl	_iio_priv
Lloh0:
	adrp	x8, _IIO_CHAN_INFO_PROCESSED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_CHAN_INFO_PROCESSED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	bl	_ams_iaqcore_get_measurement
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x23]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.7:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.8:
	str	wzr, [x21]
	ldr	w0, [x19, #12]
	bl	_be16_to_cpu
	str	w0, [x20]
Lloh6:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_2
LBB0_9:
	str	wzr, [x21]
	ldr	w0, [x19, #4]
	bl	_be16_to_cpu
	str	w0, [x20]
Lloh9:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	b	LBB0_2
LBB0_10:
	ldr	w0, [x19, #8]
	bl	_be32_to_cpu
	str	w0, [x21]
Lloh12:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	b	LBB0_2
LBB0_11:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_CHAN_INFO_PROCESSED,8,3    ; @IIO_CHAN_INFO_PROCESSED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.no_dead_strip	_ams_iaqcore_read_raw
.subsections_via_symbols
