	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sca3000_ring_int_process
_sca3000_ring_int_process:              ## @sca3000_ring_int_process
	.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	%rsi, %r15
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %r13
	leaq	8(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_SCA3000_REG_INT_STATUS_HALF@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_SCA3000_REG_BUF_COUNT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_sca3000_read_data_short
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	(%r13), %rdx
	movl	(%rdx), %ebx
	movq	_SCA3000_REG_RING_OUT_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rbx,%rbx), %ecx
	movq	%r13, %rdi
	callq	_sca3000_read_data
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	cmpl	$3, %ebx
	jl	LBB0_6
## %bb.4:
	movl	%ebx, %eax
	movl	$2863311531, %r12d              ## imm = 0xAAAAAAAB
	imulq	%rax, %r12
	shrq	$33, %r12
	xorl	%ebx, %ebx
	movabsq	$25769803776, %r14              ## imm = 0x600000000
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	sarq	$30, %rsi
	addq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_iio_push_to_buffers
	addq	%r14, %rbx
	decq	%r12
	jne	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCA3000_REG_INT_STATUS_HALF,4,2 ## @SCA3000_REG_INT_STATUS_HALF
	.comm	_SCA3000_REG_BUF_COUNT_ADDR,4,2 ## @SCA3000_REG_BUF_COUNT_ADDR
	.comm	_SCA3000_REG_RING_OUT_ADDR,4,2  ## @SCA3000_REG_RING_OUT_ADDR
	.no_dead_strip	_sca3000_ring_int_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sca3000_ring_int_process
_sca3000_ring_int_process:              ; @sca3000_ring_int_process
	.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	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_iio_priv
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _SCA3000_REG_INT_STATUS_HALF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCA3000_REG_INT_STATUS_HALF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _SCA3000_REG_BUF_COUNT_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCA3000_REG_BUF_COUNT_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_sca3000_read_data_short
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x2, [x21]
	ldr	w23, [x2]
Lloh6:
	adrp	x8, _SCA3000_REG_RING_OUT_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCA3000_REG_RING_OUT_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	lsl	w3, w23, #1
	mov	x0, x21
	bl	_sca3000_read_data
	cmp	w0, #0
	ccmp	w23, #3, #8, eq
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	w8, #43691
	movk	w8, #43690, lsl #16
	umull	x8, w23, w8
	lsr	x23, x8, #33
	mov	x24, #25769803776
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x1, x8, x22, asr #30
	mov	x0, x19
	bl	_iio_push_to_buffers
	add	x22, x22, x24
	subs	x23, x23, #1
	b.ne	LBB0_4
LBB0_5:
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SCA3000_REG_INT_STATUS_HALF,4,2 ; @SCA3000_REG_INT_STATUS_HALF
	.comm	_SCA3000_REG_BUF_COUNT_ADDR,4,2 ; @SCA3000_REG_BUF_COUNT_ADDR
	.comm	_SCA3000_REG_RING_OUT_ADDR,4,2  ; @SCA3000_REG_RING_OUT_ADDR
	.no_dead_strip	_sca3000_ring_int_process
.subsections_via_symbols
