	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5421_read_raw
_ad5421_read_raw:                       ## @ad5421_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, %r13
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_iio_priv
	movq	(%rbx), %rcx
	movq	_IIO_CURRENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.1:
	addq	$-128, %r13
	cmpq	$4, %r13
	ja	LBB0_4
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%r13,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_3:
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_ad5421_get_current_min_max
	movl	-44(%rbp), %eax
	subl	-48(%rbp), %eax
	movl	%eax, (%r14)
	movl	$65536000, (%r15)               ## imm = 0x3E80000
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_5:
	movq	_AD5421_REG_DAC_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%rax, %rdi
	callq	_ad5421_get_offset
	jmp	LBB0_11
LBB0_7:
	movq	_AD5421_REG_GAIN@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ad5421_read
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_13
LBB0_9:
	movq	_AD5421_REG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ad5421_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	addl	$-32768, %eax                   ## imm = 0x8000
LBB0_11:
	movl	%eax, (%r14)
	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_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_IIO_CURRENT,8,3                ## @IIO_CURRENT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD5421_REG_DAC_DATA,4,2        ## @AD5421_REG_DAC_DATA
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_AD5421_REG_OFFSET,4,2          ## @AD5421_REG_OFFSET
	.comm	_AD5421_REG_GAIN,4,2            ## @AD5421_REG_GAIN
	.no_dead_strip	_ad5421_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5421_read_raw
_ad5421_read_raw:                       ; @ad5421_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x4
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	bl	_iio_priv
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _IIO_CURRENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_CURRENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	sub	x8, x22, #128
	cmp	x8, #4
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_ad5421_get_current_min_max
	ldp	w8, w9, [sp, #8]
	sub	w8, w8, w9
	str	w8, [x19]
	mov	w8, #65536000
	str	w8, [x20]
Lloh5:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_5:
Lloh10:
	adrp	x8, _AD5421_REG_DAC_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AD5421_REG_DAC_DATA@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	bl	_ad5421_get_offset
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _AD5421_REG_GAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AD5421_REG_GAIN@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ad5421_read
	tbnz	w0, #31, LBB0_14
LBB0_9:
	str	w0, [x19]
	b	LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _AD5421_REG_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AD5421_REG_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ad5421_read
	tbnz	w0, #31, LBB0_14
; %bb.11:
	sub	w8, w0, #8, lsl #12             ; =32768
	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, #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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_IIO_CURRENT,8,3                ; @IIO_CURRENT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD5421_REG_DAC_DATA,4,2        ; @AD5421_REG_DAC_DATA
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_AD5421_REG_OFFSET,4,2          ; @AD5421_REG_OFFSET
	.comm	_AD5421_REG_GAIN,4,2            ; @AD5421_REG_GAIN
	.no_dead_strip	_ad5421_read_raw
.subsections_via_symbols
