	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7266_read_raw
_ad7266_read_raw:                       ## @ad7266_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r12
	cmpq	$128, %r14
	je	LBB0_7
## %bb.1:
	cmpq	$130, %r14
	je	LBB0_8
## %bb.2:
	cmpq	$129, %r14
	jne	LBB0_12
## %bb.3:
	movq	%rbx, %rdi
	callq	_iio_device_claim_direct_mode
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	%r15, %r14
	movl	8(%r15), %edx
	movq	%r12, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ad7266_read_single
	movq	%rbx, %rdi
	callq	_iio_device_release_direct_mode
	movl	(%r15), %edi
	shrl	$2, %edi
	andl	$4095, %edi                     ## imm = 0xFFF
	movl	%edi, (%r15)
	cmpb	$115, (%r14)
	jne	LBB0_6
## %bb.5:
	movl	$11, %esi
	callq	_sign_extend32
	movl	%eax, (%r15)
	jmp	LBB0_6
LBB0_7:
	movl	(%r12), %edx
	movl	8(%r12), %eax
	movq	_AD7266_MODE_DIFF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%cl
	movl	12(%r12), %eax
	movq	_AD7266_RANGE_2VREF@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	sete	%al
	shll	%cl, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	movl	4(%r15), %eax
	movl	%eax, (%r13)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_8:
	movl	12(%r12), %eax
	movq	_AD7266_RANGE_2VREF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movl	8(%r12), %ecx
	movq	_AD7266_MODE_DIFF@GOTPCREL(%rip), %rdx
	movl	$2048, %eax                     ## imm = 0x800
	cmpl	(%rdx), %ecx
	jne	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_6:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %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	_AD7266_MODE_DIFF,4,2           ## @AD7266_MODE_DIFF
	.comm	_AD7266_RANGE_2VREF,4,2         ## @AD7266_RANGE_2VREF
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad7266_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7266_read_raw
_ad7266_read_raw:                       ; @ad7266_read_raw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_iio_priv
	mov	x21, x0
	cmp	x24, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	x24, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	x24, #129
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x22
	bl	_iio_device_claim_direct_mode
	cbnz	w0, LBB0_14
; %bb.4:
	ldr	w2, [x20, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_ad7266_read_single
	mov	x0, x22
	bl	_iio_device_release_direct_mode
	ldr	w8, [x19]
	ubfx	w0, w8, #2, #12
	str	w0, [x19]
	ldrb	w8, [x20]
	cmp	w8, #115
	b.ne	LBB0_12
; %bb.5:
	mov	w1, #11
	bl	_sign_extend32
	str	w0, [x19]
	b	LBB0_12
LBB0_6:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _AD7266_MODE_DIFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AD7266_MODE_DIFF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldp	w10, w11, [x21, #8]
	cmp	w10, w9
	cset	w9, eq
	lsl	x8, x8, x9
Lloh3:
	adrp	x9, _AD7266_RANGE_2VREF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AD7266_RANGE_2VREF@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w11, w9
	cset	w9, eq
	lsl	x8, x8, x9
	str	w8, [x19]
	ldr	w8, [x20, #4]
	str	w8, [x23]
Lloh6:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	ldr	w8, [x21, #12]
Lloh8:
	adrp	x9, _AD7266_RANGE_2VREF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AD7266_RANGE_2VREF@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x21, #8]
Lloh11:
	adrp	x9, _AD7266_MODE_DIFF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AD7266_MODE_DIFF@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
LBB0_9:
	mov	w8, #0
	str	wzr, [x19]
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_11:
	mov	w8, #2048
	str	w8, [x19]
LBB0_12:
Lloh17:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_AD7266_MODE_DIFF,4,2           ; @AD7266_MODE_DIFF
	.comm	_AD7266_RANGE_2VREF,4,2         ; @AD7266_RANGE_2VREF
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad7266_read_raw
.subsections_via_symbols
