	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads8688_read_raw
_ads8688_read_raw:                      ## @ads8688_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, %r12
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r13
	movq	%rax, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	cmpq	$128, %r12
	je	LBB0_6
## %bb.1:
	cmpq	$130, %r12
	je	LBB0_7
## %bb.2:
	cmpq	$129, %r12
	jne	LBB0_8
## %bb.3:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_ads8688_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	jmp	LBB0_5
LBB0_6:
	movq	_ads8688_range_def@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r13), %rcx
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %eax
	imull	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, (%rcx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_9
LBB0_7:
	movq	_ads8688_range_def@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r13), %rcx
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_5:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %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	_ads8688_range_def,8,3          ## @ads8688_range_def
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ads8688_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ads8688_read_raw
_ads8688_read_raw:                      ; @ads8688_read_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	bl	_iio_priv
	mov	x25, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_mutex_lock
	cmp	x24, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x24, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	x24, #129
	b.ne	LBB0_8
; %bb.3:
	ldr	x1, [x21]
	mov	x0, x23
	bl	_ads8688_read
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_9
; %bb.4:
	str	w21, [x19]
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _ads8688_range_def@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ads8688_range_def@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh2:
	ldr	x8, [x8]
	ldr	x10, [x25, #8]
	ldr	x11, [x21]
	ldr	x10, [x10, x11, lsl #3]
	lsl	x10, x10, #4
	ldr	w8, [x8, x10]
	mul	w8, w8, w9
	str	wzr, [x19]
	str	w8, [x22]
	mov	x0, x20
	bl	_mutex_unlock
Lloh3:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _ads8688_range_def@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ads8688_range_def@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x25, #8]
	ldr	x10, [x21]
	ldr	x9, [x9, x10, lsl #3]
	add	x8, x8, x9, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
LBB0_7:
Lloh9:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_ads8688_range_def,8,3          ; @ads8688_range_def
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ads8688_read_raw
.subsections_via_symbols
