	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_read_avail_channel_raw     ## -- Begin function iio_read_avail_channel_raw
	.p2align	4, 0x90
_iio_read_avail_channel_raw:            ## @iio_read_avail_channel_raw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	%rdx, %rcx
	movq	_IIO_CHAN_INFO_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-4(%rbp), %rdx
	callq	_iio_read_avail_channel_attribute
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	-4(%rbp), %ecx
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_CHAN_INFO_RAW,4,2          ## @IIO_CHAN_INFO_RAW
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_read_avail_channel_raw     ; -- Begin function iio_read_avail_channel_raw
	.p2align	2
_iio_read_avail_channel_raw:            ; @iio_read_avail_channel_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x3, x2
Lloh0:
	adrp	x8, _IIO_CHAN_INFO_RAW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_CHAN_INFO_RAW@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	sub	x2, x29, #4
	bl	_iio_read_avail_channel_attribute
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldur	w8, [x29, #-4]
Lloh3:
	adrp	x9, _IIO_VAL_INT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IIO_VAL_INT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_CHAN_INFO_RAW,4,2          ; @IIO_CHAN_INFO_RAW
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
