	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad2s1200_read_raw
_ad2s1200_read_raw:                     ## @ad2s1200_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, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_iio_priv
	cmpq	$129, %rbx
	je	LBB0_6
## %bb.1:
	cmpq	$128, %rbx
	jne	LBB0_14
## %bb.2:
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$131, %eax
	jne	LBB0_14
## %bb.4:
	movl	$0, (%r14)
	movl	$1534355, (%r13)                ## imm = 0x176993
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_6:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	16(%r12), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value
	movl	$1, %edi
	callq	_udelay
	movl	16(%r12), %edi
	movl	$1, %esi
	callq	_gpiod_set_value
	movl	12(%r12), %edi
	xorl	%esi, %esi
	cmpl	$131, (%r15)
	sete	%sil
	callq	_gpiod_set_value
	movl	8(%r12), %edi
	movq	%r12, %r13
	addq	$4, %r13
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_spi_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$131, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	callq	_be16_to_cpup
	sarl	$4, %eax
	jmp	LBB0_12
LBB0_7:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_15
LBB0_5:
	movl	$6, (%r14)
	movl	$283185, (%r13)                 ## imm = 0x45231
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_11:
	movq	%r13, %rdi
	callq	_be16_to_cpup
	sarl	$4, %eax
	movl	%eax, %edi
	movl	$11, %esi
	callq	_sign_extend32
LBB0_12:
	movl	%eax, (%r14)
	movl	$1, %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_13:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	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_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_ad2s1200_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad2s1200_read_raw
_ad2s1200_read_raw:                     ; @ad2s1200_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	x22, x3
	mov	x19, x2
	mov	x21, x1
	bl	_iio_priv
	cmp	x23, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	x23, #128
	b.ne	LBB0_14
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #131
	b.ne	LBB0_14
; %bb.4:
	str	wzr, [x19]
	mov	w8, #27027
	movk	w8, #23, lsl #16
	str	w8, [x22]
Lloh0:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_5:
	mov	x20, x0
	bl	_mutex_lock
	ldr	w0, [x20, #16]
	mov	w1, #0
	bl	_gpiod_set_value
	mov	w0, #1
	bl	_udelay
	ldr	w0, [x20, #16]
	mov	w1, #1
	bl	_gpiod_set_value
	ldr	w0, [x20, #12]
	ldr	w8, [x21]
	cmp	w8, #131
	cset	w1, eq
	bl	_gpiod_set_value
	ldr	w0, [x20, #8]
	add	x23, x20, #4
	mov	x1, x23
	mov	w2, #2
	bl	_spi_read
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	w8, [x21]
	cmp	w8, #130
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, #131
	b.ne	LBB0_13
; %bb.8:
	mov	x0, x23
	bl	_be16_to_cpup
	asr	w0, w0, #4
	b	LBB0_12
LBB0_9:
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_15
LBB0_10:
	mov	w8, #6
	str	w8, [x19]
	mov	w8, #21041
	movk	w8, #4, lsl #16
	str	w8, [x22]
Lloh3:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_11:
	mov	x0, x23
	bl	_be16_to_cpup
	asr	w0, w0, #4
	mov	w1, #11
	bl	_sign_extend32
LBB0_12:
	str	w0, [x19]
	mov	w0, #1
	bl	_udelay
	mov	x0, x20
	bl	_mutex_unlock
Lloh6:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_14:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	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
	.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_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_ad2s1200_read_raw
.subsections_via_symbols
