	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad2s90_read_raw
_ad2s90_read_raw:                       ## @ad2s90_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, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_iio_priv
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_IIO_ANGL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	cmpq	$129, %r13
	je	LBB0_4
## %bb.2:
	cmpq	$128, %r13
	jne	LBB0_7
## %bb.3:
	movl	$6283, (%r15)                   ## imm = 0x188B
	movl	$12, (%r14)
	movq	_IIO_VAL_FRACTIONAL_LOG2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	12(%r12), %edi
	movq	(%r12), %rsi
	movl	$2, %edx
	callq	_spi_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	shll	$4, %ecx
	shrl	$4, %eax
	andl	$15, %eax
	orl	%ecx, %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_ANGL,8,3                   ## @IIO_ANGL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ## @IIO_VAL_FRACTIONAL_LOG2
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_ad2s90_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad2s90_read_raw
_ad2s90_read_raw:                       ; @ad2s90_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	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	bl	_iio_priv
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _IIO_ANGL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_ANGL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	cmp	x22, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	x22, #128
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #6283
	str	w8, [x19]
	mov	w8, #12
	str	w8, [x21]
Lloh3:
	adrp	x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL_LOG2@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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_6:
	mov	x20, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x20, #12]
	ldr	x1, [x20]
	mov	w2, #2
	bl	_spi_read
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	x8, [x20]
	ldp	w9, w8, [x8]
	lsl	w9, w9, #4
	bfxil	w9, w8, #4, #4
	str	w9, [x19]
	mov	x0, x21
	bl	_mutex_unlock
Lloh9:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	b	LBB0_5
LBB0_8:
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_ANGL,8,3                   ; @IIO_ANGL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_FRACTIONAL_LOG2,4,2    ; @IIO_VAL_FRACTIONAL_LOG2
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_ad2s90_read_raw
.subsections_via_symbols
