	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sca3000_read_raw
_sca3000_read_raw:                      ## @sca3000_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, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_iio_priv
	addq	$-128, %rbx
	cmpq	$4, %rbx
	ja	LBB0_19
## %bb.1:
	movq	%rax, %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	movl	$0, (%r14)
	movl	8(%r13), %ecx
	movq	_IIO_ACCEL@GOTPCREL(%rip), %rdx
	movl	$555556, %eax                   ## imm = 0x87A24
	cmpl	(%rdx), %ecx
	jne	LBB0_13
## %bb.12:
	movq	16(%r12), %rax
	movl	(%rax), %eax
LBB0_13:
	movl	%eax, (%r15)
	jmp	LBB0_14
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_16:
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sca3000_read_raw_samp_freq
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_17
	jmp	LBB0_21
LBB0_2:
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	8(%r13), %eax
	movq	_IIO_ACCEL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.3:
	cmpl	$0, 24(%r12)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_20:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_15:
	movl	$-214, (%r14)
	movl	$600000, (%r15)                 ## imm = 0x927C0
LBB0_14:
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_18:
	movq	%r12, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sca3000_read_3db_freq
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	jmp	LBB0_22
LBB0_8:
	movq	_SCA3000_REG_TEMP_MSB_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_sca3000_read_data_short
	testl	%eax, %eax
	js	LBB0_6
## %bb.9:
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	andl	$63, %ecx
	shrl	$5, %eax
	andl	$7, %eax
	leal	(%rax,%rcx,8), %eax
	jmp	LBB0_10
LBB0_5:
	movq	_sca3000_addresses@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_sca3000_read_data_short
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	(%r12), %rdi
	callq	_be16_to_cpup
	cwtl
	sarl	$3, %eax
LBB0_10:
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_17:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_21:
	movl	%ebx, %eax
LBB0_22:
	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_11, LBB0_11-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_16
	.long	L0_0_set_2
	.long	L0_0_set_15
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_IIO_ACCEL,4,2                  ## @IIO_ACCEL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_sca3000_addresses,8,3          ## @sca3000_addresses
	.comm	_SCA3000_REG_TEMP_MSB_ADDR,4,2  ## @SCA3000_REG_TEMP_MSB_ADDR
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sca3000_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sca3000_read_raw
_sca3000_read_raw:                      ; @sca3000_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	x21, x3
	mov	x19, x2
	mov	x22, x1
	bl	_iio_priv
	sub	x8, x23, #128
	cmp	x8, #4
	b.hi	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	str	wzr, [x19]
	ldr	w8, [x22, #8]
Lloh2:
	adrp	x9, _IIO_ACCEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IIO_ACCEL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	b	LBB0_13
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x19
	bl	_sca3000_read_raw_samp_freq
	mov	x19, x0
	mov	x0, x21
	bl	_mutex_unlock
Lloh7:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w19, #0
	csel	w22, w8, w19, eq
	b	LBB0_15
LBB0_6:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x22, #8]
Lloh10:
	adrp	x9, _IIO_ACCEL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IIO_ACCEL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.7:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_19
; %bb.8:
	mov	x0, x21
	bl	_mutex_unlock
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_10:
	mov	w8, #-214
	str	w8, [x19]
	mov	w8, #10176
	movk	w8, #9, lsl #16
	b	LBB0_13
LBB0_11:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x19
	bl	_sca3000_read_3db_freq
	mov	x19, x0
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_16
LBB0_12:
	mov	w8, #31268
	movk	w8, #8, lsl #16
LBB0_13:
	str	w8, [x21]
Lloh15:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
LBB0_14:
	ldr	w22, [x8]
LBB0_15:
	mov	x0, x22
LBB0_16:
	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
LBB0_17:
Lloh17:
	adrp	x8, _SCA3000_REG_TEMP_MSB_ADDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SCA3000_REG_TEMP_MSB_ADDR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #2
	bl	_sca3000_read_data_short
	tbnz	w0, #31, LBB0_22
; %bb.18:
	ldr	x8, [x20]
	ldp	w9, w10, [x8]
	ubfiz	w8, w9, #3, #6
	bfxil	w8, w10, #5, #3
	b	LBB0_21
LBB0_19:
Lloh20:
	adrp	x8, _sca3000_addresses@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sca3000_addresses@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #2
	bl	_sca3000_read_data_short
	tbnz	w0, #31, LBB0_22
; %bb.20:
	ldr	x0, [x20]
	bl	_be16_to_cpup
	sbfx	w8, w0, #3, #13
LBB0_21:
	str	w8, [x19]
	mov	x0, x21
	bl	_mutex_unlock
Lloh23:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
	b	LBB0_14
LBB0_22:
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.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_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_IIO_ACCEL,4,2                  ; @IIO_ACCEL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_sca3000_addresses,8,3          ; @sca3000_addresses
	.comm	_SCA3000_REG_TEMP_MSB_ADDR,4,2  ; @SCA3000_REG_TEMP_MSB_ADDR
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sca3000_read_raw
.subsections_via_symbols
