	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7791_read_raw
_ad7791_read_raw:                       ## @ad7791_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	$-128, %rbx
	cmpq	$3, %rbx
	ja	LBB0_6
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_AD7791_MODE_UNIPOLAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	(%rax), %r14d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	4(%r12), %edx
	movq	_AD7791_CH_AVDD_MONITOR@GOTPCREL(%rip), %rsi
	movl	$5850, %ecx                     ## imm = 0x16DA
	cmpl	(%rsi), %edx
	je	LBB0_5
## %bb.3:
	movl	8(%rax), %edi
	callq	_regulator_get_voltage
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	movl	%eax, %eax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	shrq	$38, %rcx
LBB0_5:
	movl	%ecx, (%r15)
	movl	(%r12), %eax
	cmpl	$1, %r14d
	sbbl	$0, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_7:
	movq	_AD7791_FILTER_RATE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	movq	_ad7791_sample_freq_avail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	4(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ad_sigma_delta_single_conversion ## TAILCALL
LBB0_9:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.10:
	movb	(%r12), %cl
	decb	%cl
	movl	$-1, %eax
	shll	%cl, %eax
LBB0_11:
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	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	_AD7791_MODE_UNIPOLAR,4,2       ## @AD7791_MODE_UNIPOLAR
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_AD7791_CH_AVDD_MONITOR,4,2     ## @AD7791_CH_AVDD_MONITOR
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_AD7791_FILTER_RATE_MASK,4,2    ## @AD7791_FILTER_RATE_MASK
	.comm	_ad7791_sample_freq_avail,8,3   ## @ad7791_sample_freq_avail
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad7791_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7791_read_raw
_ad7791_read_raw:                       ; @ad7791_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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_iio_priv
	sub	x8, x23, #128
	cmp	x8, #3
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _AD7791_MODE_UNIPOLAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AD7791_MODE_UNIPOLAR@GOTPAGEOFF]
	ldr	w10, [x0]
Lloh2:
	ldr	w9, [x9]
	and	w23, w9, w10
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x21, #4]
Lloh5:
	adrp	x9, _AD7791_CH_AVDD_MONITOR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AD7791_CH_AVDD_MONITOR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.3:
	mov	w8, #5850
	b	LBB0_11
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_5:
	ldr	w8, [x0, #4]
Lloh11:
	adrp	x9, _AD7791_FILTER_RATE_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AD7791_FILTER_RATE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	x8, x9, x8
Lloh14:
	adrp	x9, _ad7791_sample_freq_avail@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ad7791_sample_freq_avail@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w8, [x8, #4]
	str	w8, [x20]
Lloh17:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	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
	b	_ad_sigma_delta_single_conversion
LBB0_7:
	cbz	w23, LBB0_12
; %bb.8:
	mov	w8, #0
	b	LBB0_13
LBB0_9:
	ldr	w0, [x0, #8]
	bl	_regulator_get_voltage
	tbnz	w0, #31, LBB0_15
; %bb.10:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w0, w8
	lsr	x8, x8, #38
LBB0_11:
	cmp	w23, #0
	cset	w9, eq
	str	w8, [x19]
	ldr	w8, [x21]
	sub	w8, w8, w9
	str	w8, [x20]
Lloh19:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	ldr	w8, [x21]
	sub	w8, w8, #1
	mov	w9, #-1
	lsl	w8, w9, w8
LBB0_13:
	str	w8, [x19]
Lloh21:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	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	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_AD7791_MODE_UNIPOLAR,4,2       ; @AD7791_MODE_UNIPOLAR
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_AD7791_CH_AVDD_MONITOR,4,2     ; @AD7791_CH_AVDD_MONITOR
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_AD7791_FILTER_RATE_MASK,4,2    ; @AD7791_FILTER_RATE_MASK
	.comm	_ad7791_sample_freq_avail,8,3   ; @ad7791_sample_freq_avail
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad7791_read_raw
.subsections_via_symbols
