	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atlas_read_raw
_atlas_read_raw:                        ## @atlas_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
	subq	$24, %rsp
	.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, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_iio_priv
	cmpq	$133, %r14
	je	LBB0_6
## %bb.1:
	cmpq	$134, %r14
	jne	LBB0_9
## %bb.2:
	movq	%rax, %r13
	movl	(%r12), %eax
	leal	-130(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_10
## %bb.3:
	cmpl	$128, %eax
	je	LBB0_10
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.5:
	movl	(%r13), %edi
	movl	4(%r12), %esi
	leaq	-44(%rbp), %rdx
	movl	$4, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_20
	jmp	LBB0_13
LBB0_6:
	movl	(%r12), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_9
## %bb.7:
	movl	$1000, %eax                     ## imm = 0x3E8
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_8:
	movl	$10, %eax
	jmp	LBB0_17
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_10:
	movq	%r15, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.11:
	movl	4(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_atlas_read_measurement
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_iio_device_release_direct_mode
	testl	%ebx, %ebx
	jne	LBB0_20
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_20
LBB0_13:
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_15
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$10, (%rax)
LBB0_15:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movl	$100000, %eax                   ## imm = 0x186A0
LBB0_17:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rcx)
	movl	%eax, (%rbx)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$1000, (%rbx)                   ## imm = 0x3E8
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %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_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.no_dead_strip	_atlas_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atlas_read_raw
_atlas_read_raw:                        ; @atlas_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	x24, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_iio_priv
	cmp	x24, #133
	b.eq	LBB0_6
; %bb.1:
	cmp	x24, #134
	b.ne	LBB0_9
; %bb.2:
	mov	x23, x0
	ldr	w8, [x22]
	sub	w9, w8, #130
	cmp	w9, #3
	b.lo	LBB0_10
; %bb.3:
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.5:
	ldr	w0, [x23]
	ldr	w1, [x22, #4]
	add	x2, sp, #12
	mov	w3, #4
	bl	_regmap_bulk_read
	mov	x20, x0
	cbnz	w20, LBB0_20
	b	LBB0_13
LBB0_6:
	ldr	w8, [x22]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_9
; %bb.7:
	mov	w8, #1000
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_8:
	mov	w8, #10
	b	LBB0_17
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_20
LBB0_10:
	mov	x0, x21
	bl	_iio_device_claim_direct_mode
	mov	x20, x0
	cbnz	w0, LBB0_20
; %bb.11:
	ldr	w1, [x22, #4]
	add	x2, sp, #12
	mov	x0, x23
	bl	_atlas_read_measurement
	mov	x20, x0
	mov	x0, x21
	bl	_iio_device_release_direct_mode
	cbnz	w20, LBB0_20
	b	LBB0_13
LBB0_12:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	cbnz	w20, LBB0_20
LBB0_13:
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	str	w0, [x19]
	b	LBB0_15
LBB0_14:
	mov	w8, #10
	str	w8, [x19]
LBB0_15:
Lloh8:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
	mov	w8, #34464
	movk	w8, #1, lsl #16
LBB0_17:
	mov	w9, #1
	str	w9, [x19]
	str	w8, [x20]
Lloh10:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
	str	wzr, [x19]
	mov	w8, #1000
	str	w8, [x20]
Lloh12:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
LBB0_19:
	ldr	w20, [x8]
LBB0_20:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.no_dead_strip	_atlas_read_raw
.subsections_via_symbols
