	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5380_read_raw
_ad5380_read_raw:                       ## @ad5380_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_iio_priv
	leaq	-129(%rbx), %rcx
	cmpq	$2, %rcx
	jb	LBB0_5
## %bb.1:
	cmpq	$128, %rbx
	je	LBB0_8
## %bb.2:
	cmpq	$131, %rbx
	jne	LBB0_9
## %bb.3:
	movl	4(%rax), %ebx
	movl	8(%r15), %edi
	callq	_AD5380_REG_OFFSET
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movb	(%r15), %cl
	movl	(%r14), %eax
	sarl	%cl, %eax
	movl	%eax, (%r14)
	movb	4(%r15), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	subl	%ecx, %eax
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_5:
	movl	4(%rax), %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ad5380_info_to_reg
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movb	(%r15), %cl
	sarl	%cl, (%r14)
LBB0_7:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_8:
	movl	(%rax), %eax
	addl	%eax, %eax
	movl	%eax, (%r14)
	movl	4(%r15), %eax
	movl	%eax, (%r12)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad5380_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5380_read_raw
_ad5380_read_raw:                       ; @ad5380_read_raw
	.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	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_iio_priv
	sub	x8, x21, #129
	cmp	x8, #2
	b.lo	LBB0_5
; %bb.1:
	cmp	x21, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	x21, #131
	b.ne	LBB0_9
; %bb.3:
	ldr	w21, [x0, #4]
	ldr	w0, [x20, #8]
	bl	_AD5380_REG_OFFSET
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	bl	_regmap_read
	cbnz	w0, LBB0_10
; %bb.4:
	ldr	w8, [x20]
	ldr	w9, [x19]
	asr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x20, #4]
	mov	w10, #1
	lsl	w9, w10, w9
	cmp	w9, #0
	cinc	w9, w9, lt
	sub	w8, w8, w9, asr #1
	b	LBB0_7
LBB0_5:
	ldr	w22, [x0, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_ad5380_info_to_reg
	mov	x1, x0
	mov	x0, x22
	mov	x2, x19
	bl	_regmap_read
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	w8, [x20]
	ldr	w9, [x19]
	asr	w8, w9, w8
LBB0_7:
	str	w8, [x19]
Lloh0:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_8:
	ldr	w8, [x0]
	lsl	w8, w8, #1
	str	w8, [x19]
	ldr	w8, [x20, #4]
	str	w8, [x22]
Lloh3:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad5380_read_raw
.subsections_via_symbols
