	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7793_read_raw
_ad7793_read_raw:                       ## @ad7793_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, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_iio_priv
	addq	$-130, %rbx
	cmpq	$3, %rbx
	ja	LBB0_6
## %bb.1:
	movl	(%rax), %edx
	movq	_AD7793_CONF_UNIPOLAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdi
	addq	%rcx, %rdi
	jmpq	*%rdi
LBB0_2:
	movl	(%r12), %ecx
	cmpl	$129, %ecx
	je	LBB0_14
## %bb.3:
	cmpl	$128, %ecx
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 8(%r12)
	je	LBB0_15
## %bb.5:
	movq	8(%rax), %rcx
	shrq	$5, %rdx
	andl	$56, %edx
	movq	(%rcx,%rdx), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%r15)
	movl	(%rax), %eax
	shrq	$5, %rax
	andl	$56, %eax
	movq	(%rcx,%rax), %rax
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_17
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_7:
	movq	24(%rax), %rcx
	movq	(%rcx), %rbx
	movl	16(%rax), %edi
	callq	_AD7793_MODE_RATE
	movl	(%rbx,%rax,4), %eax
	movl	%eax, (%r15)
	jmp	LBB0_13
LBB0_8:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ad_sigma_delta_single_conversion
	testl	%eax, %eax
	jns	LBB0_13
	jmp	LBB0_19
LBB0_9:
	xorl	%eax, %eax
	testl	%edx, %esi
	jne	LBB0_11
## %bb.10:
	movb	4(%r12), %cl
	decb	%cl
	movl	$-1, %eax
	shll	%cl, %eax
LBB0_11:
	movl	%eax, (%r15)
	cmpl	$129, (%r12)
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	testl	%edx, %esi
	sete	%al
	movl	4(%r12), %ecx
	subl	%eax, %ecx
	movl	$273, %ebx                      ## imm = 0x111
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rbx
	movq	%rbx, %rdi
	movl	$1444, %esi                     ## imm = 0x5A4
	callq	_do_div
	subl	%ebx, (%r15)
LBB0_13:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	movabsq	$1444444444444444, %rax         ## imm = 0x521B6EE02471C
	jmp	LBB0_16
LBB0_15:
	movabsq	$7020000000000, %rax            ## imm = 0x662789B3800
LBB0_16:
	xorl	%edi, %edi
	testl	%edx, %esi
	sete	%dil
	movl	4(%r12), %ecx
	subl	%edi, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rax
	movl	$0, (%r15)
	movl	%eax, (%r14)
LBB0_17:
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_AD7793_CONF_UNIPOLAR,4,2       ## @AD7793_CONF_UNIPOLAR
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad7793_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7793_read_raw
_ad7793_read_raw:                       ; @ad7793_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	x23, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_iio_priv
	sub	x10, x23, #130
	cmp	x10, #3
	b.hi	LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _AD7793_CONF_UNIPOLAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD7793_CONF_UNIPOLAR@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	ldr	w10, [x20]
	cmp	w10, #129
	b.eq	LBB0_16
; %bb.3:
	cmp	w10, #128
	b.ne	LBB0_6
; %bb.4:
	ldr	w10, [x20, #8]
	cbz	w10, LBB0_17
; %bb.5:
	ldr	x8, [x0, #8]
	ubfx	x9, x9, #8, #3
	ldr	x9, [x8, x9, lsl #3]
	ldr	w9, [x9]
	str	w9, [x19]
	ldr	w9, [x0]
	ubfx	x9, x9, #8, #3
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8, #4]
	str	w8, [x21]
	b	LBB0_19
LBB0_6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_7:
	ldr	x8, [x0, #24]
	ldr	x20, [x8]
	ldr	w0, [x0, #16]
	bl	_AD7793_MODE_RATE
	ldr	w8, [x20, x0, lsl #2]
	b	LBB0_14
LBB0_8:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_ad_sigma_delta_single_conversion
Lloh8:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w0, w8, lt
	b	LBB0_21
LBB0_9:
	cbz	w8, LBB0_11
; %bb.10:
	mov	w9, #0
	b	LBB0_12
LBB0_11:
	ldr	w9, [x20, #4]
	sub	w9, w9, #1
	mov	w10, #-1
	lsl	w9, w10, w9
LBB0_12:
	str	w9, [x19]
	ldr	w9, [x20]
	cmp	w9, #129
	b.ne	LBB0_15
; %bb.13:
	cmp	w8, #0
	cset	w8, eq
	ldr	w9, [x20, #4]
	sub	w8, w9, w8
	mov	w9, #273
	lsl	x20, x9, x8
	mov	x0, x20
	mov	w1, #1444
	bl	_do_div
	ldr	w8, [x19]
	sub	w8, w8, w20
LBB0_14:
	str	w8, [x19]
LBB0_15:
Lloh11:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
	mov	x9, #18204
	movk	x9, #60930, lsl #16
	movk	x9, #8630, lsl #32
	movk	x9, #5, lsl #48
	b	LBB0_18
LBB0_17:
	mov	x9, #14336
	movk	x9, #30875, lsl #16
	movk	x9, #1634, lsl #32
LBB0_18:
	cmp	w8, #0
	cset	w8, eq
	ldr	w10, [x20, #4]
	sub	w8, w10, w8
	lsr	x8, x9, x8
	str	wzr, [x19]
	str	w8, [x21]
LBB0_19:
Lloh13:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
LBB0_21:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_AD7793_CONF_UNIPOLAR,4,2       ; @AD7793_CONF_UNIPOLAR
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad7793_read_raw
.subsections_via_symbols
