	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad8366_read_raw
_ad8366_read_raw:                       ## @ad8366_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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	callq	_iio_priv
	movq	%rax, %rbx
	leaq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpq	$128, %r14
	jne	LBB0_8
## %bb.1:
	movq	(%rbx), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	12(%rbx), %edx
	cmpl	$129, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %edx
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	cmpl	$131, %edx
	jne	LBB0_7
## %bb.4:
	imull	$253, %ecx, %eax
	addl	$4500, %eax                     ## imm = 0x1194
	jmp	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	imull	$500, %ecx, %eax                ## imm = 0x1F4
	addl	$-11500, %eax                   ## imm = 0xD314
	jmp	LBB0_7
LBB0_5:
	imull	$-1000, %ecx, %eax              ## imm = 0xFC18
	addl	$15000, %eax                    ## imm = 0x3A98
LBB0_7:
	cltq
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, (%r15)
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	subl	%ecx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT_PLUS_MICRO_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_VAL_INT_PLUS_MICRO_DB,4,2  ## @IIO_VAL_INT_PLUS_MICRO_DB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad8366_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad8366_read_raw
_ad8366_read_raw:                       ; @ad8366_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	x20, x3
	mov	x21, x2
	mov	x22, x1
	bl	_iio_priv
	mov	x23, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	cmp	x24, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x23]
	ldr	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x23, #12]
	mov	w10, #500
	mov	w11, #-11500
	madd	w10, w8, w10, w11
	mov	w11, #-1000
	mov	w12, #15000
	madd	w11, w8, w11, w12
	mov	w12, #253
	mov	w13, #4500
	madd	w8, w8, w12, w13
	cmp	w9, #131
	csel	w8, wzr, w8, ne
	cmp	w9, #130
	csel	w8, w11, w8, eq
	cmp	w9, #129
	csel	w8, w10, w8, eq
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	str	w9, [x21]
	mov	w10, #1000
	msub	w8, w9, w10, w8
	mul	w8, w8, w10
	str	w8, [x20]
Lloh0:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO_DB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO_DB@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_VAL_INT_PLUS_MICRO_DB,4,2  ; @IIO_VAL_INT_PLUS_MICRO_DB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad8366_read_raw
.subsections_via_symbols
