	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_read_channel_processed     ## -- Begin function iio_read_channel_processed
	.p2align	4, 0x90
_iio_read_channel_processed:            ## @iio_read_channel_processed
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movl	8(%r15), %edi
	movq	_IIO_CHAN_INFO_PROCESSED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_iio_channel_has_info
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_iio_channel_read
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_IIO_CHAN_INFO_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_iio_channel_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_iio_convert_raw_to_processed_unlocked
LBB0_6:
	movl	%eax, %ebx
LBB0_7:
	movq	(%r15), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IIO_CHAN_INFO_PROCESSED,4,2    ## @IIO_CHAN_INFO_PROCESSED
	.comm	_IIO_CHAN_INFO_RAW,4,2          ## @IIO_CHAN_INFO_RAW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_read_channel_processed     ; -- Begin function iio_read_channel_processed
	.p2align	2
_iio_read_channel_processed:            ; @iio_read_channel_processed
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_mutex_lock
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x21, _IIO_CHAN_INFO_PROCESSED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IIO_CHAN_INFO_PROCESSED@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_iio_channel_has_info
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w3, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_iio_channel_read
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _IIO_CHAN_INFO_RAW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_CHAN_INFO_RAW@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_iio_channel_read
	tbnz	w0, #31, LBB0_6
; %bb.5:
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #1
	bl	_iio_convert_raw_to_processed_unlocked
LBB0_6:
	mov	x21, x0
LBB0_7:
	ldr	x0, [x19]
	bl	_mutex_unlock
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IIO_CHAN_INFO_PROCESSED,4,2    ; @IIO_CHAN_INFO_PROCESSED
	.comm	_IIO_CHAN_INFO_RAW,4,2          ; @IIO_CHAN_INFO_RAW
.subsections_via_symbols
