	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5761_read_raw
_ad5761_read_raw:                       ## @ad5761_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	cmpq	$128, %r8
	je	LBB0_6
## %bb.1:
	cmpq	$130, %r8
	je	LBB0_7
## %bb.2:
	cmpq	$129, %r8
	jne	LBB0_8
## %bb.3:
	movq	_AD5761_ADDR_DAC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_ad5761_spi_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	-28(%rbp), %eax
	movb	(%r14), %cl
	sarl	%cl, %eax
	jmp	LBB0_5
LBB0_6:
	movq	%rcx, %rbx
	callq	_iio_priv
	movq	_ad5761_range_params@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rdx
	movl	(%rcx,%rdx,8), %ecx
	imull	(%rax), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, (%r15)
	movl	4(%r14), %eax
	movl	%eax, (%rbx)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_7:
	callq	_iio_priv
	movb	4(%r14), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	movl	%edx, (%r15)
	movq	_ad5761_range_params@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rsi
	imull	4(%rcx,%rsi,8), %edx
	movl	%edx, (%r15)
	movl	%edx, %eax
	cltd
	idivl	(%rcx,%rsi,8)
LBB0_5:
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD5761_ADDR_DAC_READ,4,2       ## @AD5761_ADDR_DAC_READ
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_ad5761_range_params,8,3        ## @ad5761_range_params
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad5761_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5761_read_raw
_ad5761_read_raw:                       ; @ad5761_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	cmp	x4, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x4, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	x4, #129
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _AD5761_ADDR_DAC_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD5761_ADDR_DAC_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ad5761_spi_read
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	asr	w8, w8, w9
	b	LBB0_7
LBB0_5:
	mov	x21, x3
	bl	_iio_priv
Lloh3:
	adrp	x8, _ad5761_range_params@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ad5761_range_params@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh5:
	ldr	x8, [x8]
	ldr	x10, [x0, #8]
	lsl	x10, x10, #3
	ldr	w8, [x8, x10]
	mul	w8, w8, w9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [x19]
	ldr	w8, [x20, #4]
	str	w8, [x21]
Lloh6:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_6:
	bl	_iio_priv
	ldr	w8, [x20, #4]
	mov	w9, #-1
	lsl	w8, w9, w8
	str	w8, [x19]
Lloh9:
	adrp	x9, _ad5761_range_params@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ad5761_range_params@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x10, [x0, #8]
	add	x9, x9, x10, lsl #3
	ldr	w10, [x9, #4]
	mul	w8, w10, w8
	str	w8, [x19]
	ldr	w9, [x9]
	sdiv	w8, w8, w9
LBB0_7:
	str	w8, [x19]
Lloh12:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AD5761_ADDR_DAC_READ,4,2       ; @AD5761_ADDR_DAC_READ
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_ad5761_range_params,8,3        ; @ad5761_range_params
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad5761_read_raw
.subsections_via_symbols
