	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_adc_read_raw
_sc27xx_adc_read_raw:                   ## @sc27xx_adc_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	$24, %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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %r12d
	cmpq	$128, %r14
	je	LBB0_7
## %bb.1:
	cmpq	$130, %r14
	je	LBB0_6
## %bb.2:
	cmpq	$129, %r14
	jne	LBB0_9
## %bb.3:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r13), %rsi
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_sc27xx_adc_read
	jmp	LBB0_4
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r13), %rsi
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_sc27xx_adc_read_processed
LBB0_4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.5:
	movl	-44(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_8:
	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
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sc27xx_adc_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_adc_read_raw
_sc27xx_adc_read_raw:                   ; @sc27xx_adc_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x23, x1
	mov	x20, x0
	bl	_iio_priv
	ldr	x8, [x0]
	ldr	x9, [x23]
	ldr	w21, [x8, x9, lsl #2]
	cmp	x24, #128
	b.eq	LBB0_4
; %bb.1:
	mov	x22, x0
	cmp	x24, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	x24, #129
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x20
	bl	_mutex_lock
	ldr	x1, [x23]
	add	x3, sp, #12
	mov	x0, x22
	mov	x2, x21
	bl	_sc27xx_adc_read
	b	LBB0_6
LBB0_4:
	str	w21, [x19]
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_mutex_lock
	ldr	x1, [x23]
	add	x3, sp, #12
	mov	x0, x22
	mov	x2, x21
	bl	_sc27xx_adc_read_processed
LBB0_6:
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	cbnz	w21, LBB0_10
; %bb.7:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_8:
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sc27xx_adc_read_raw
.subsections_via_symbols
