	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_handle_ring
_solo_handle_ring:                      ## @solo_handle_ring
	.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	%rdi, %rbx
	movl	$11, %edi
	callq	_SOLO_VE_STATE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_solo_reg_read
	movzbl	%al, %eax
	movq	(%rbx), %rdi
	cmpq	%rax, %rdi
	jne	LBB0_1
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_MP4_QS@GOTPCREL(%rip), %r15
	movq	_SOLO_MAX_CHANNELS@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$11, %edi
	callq	_SOLO_VE_STATE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_solo_reg_read
	movzbl	%al, %eax
	movq	(%rbx), %rdi
	cmpq	%rax, %rdi
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_SOLO_VE_MPEG4_QUE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_solo_reg_read
	movl	%eax, %r12d
	movq	(%rbx), %rax
	incq	%rax
	movslq	(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%rbx)
	movl	%r12d, %edx
	shrl	$24, %edx
	andl	$31, %edx
	movq	(%r14), %rax
	cmpq	%rdx, %rax
	movl	$0, %ecx
	cmovbeq	%rax, %rcx
	movq	_SOLO_ENC_TYPE_EXT@GOTPCREL(%rip), %rax
	cmovaq	_SOLO_ENC_TYPE_STD@GOTPCREL(%rip), %rax
	subq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	24(%rbx), %rax
	movq	(%rax,%rdx,8), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$16777215, %r12d                ## imm = 0xFFFFFF
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	$4, %ecx
	callq	_enc_get_mpeg_dma
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edi
	movl	%edi, -52(%rbp)
	callq	_vop_mpeg_offset
	movq	%r15, %r14
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_SOLO_MP4E_EXT_ADDR
	movl	%r12d, %ecx
	addq	%rax, %rcx
	cmpq	%rcx, %r15
	movq	%r14, %r15
	movq	_SOLO_MAX_CHANNELS@GOTPCREL(%rip), %r14
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_solo_motion_detected
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, -56(%rbp)
	movq	%r13, %rdi
	leaq	-56(%rbp), %rsi
	callq	_solo_enc_handle_one
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MP4_QS,4,2                     ## @MP4_QS
	.comm	_SOLO_MAX_CHANNELS,8,3          ## @SOLO_MAX_CHANNELS
	.comm	_SOLO_ENC_TYPE_EXT,4,2          ## @SOLO_ENC_TYPE_EXT
	.comm	_SOLO_ENC_TYPE_STD,4,2          ## @SOLO_ENC_TYPE_STD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got spurious packet for channel %d\n"

	.no_dead_strip	_solo_handle_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solo_handle_ring
_solo_handle_ring:                      ; @solo_handle_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	w0, #11
	bl	_SOLO_VE_STATE
	mov	x1, x0
	mov	x0, x19
	bl	_solo_reg_read
	and	w8, w0, #0xff
	ldr	x0, [x19]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh0:
	adrp	x24, _MP4_QS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MP4_QS@GOTPAGEOFF]
Lloh2:
	adrp	x25, _SOLO_MAX_CHANNELS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SOLO_MAX_CHANNELS@GOTPAGEOFF]
Lloh4:
	adrp	x26, _SOLO_ENC_TYPE_STD@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SOLO_ENC_TYPE_STD@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
Lloh8:
	adrp	x27, _SOLO_ENC_TYPE_EXT@GOTPAGE
Lloh9:
	ldr	x27, [x27, _SOLO_ENC_TYPE_EXT@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #16]
	mov	x1, x20
	bl	_dev_err
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #11
	bl	_SOLO_VE_STATE
	mov	x1, x0
	mov	x0, x19
	bl	_solo_reg_read
	and	w8, w0, #0xff
	ldr	x0, [x19]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_SOLO_VE_MPEG4_QUE
	mov	x1, x0
	mov	x0, x19
	bl	_solo_reg_read
	ldr	x8, [x19]
	add	x8, x8, #1
	ldrsw	x9, [x24]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x19]
	ubfx	w8, w0, #24, #5
	ldr	x9, [x25]
	cmp	x9, x8
	csel	x9, xzr, x9, hi
	csel	x10, x26, x27, hi
	sub	x2, x8, x9
	ldr	w8, [x10]
	str	w8, [sp, #8]
	ldr	x8, [x19, #24]
	ldr	x21, [x8, x2, lsl #3]
	cbz	x21, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w22, w0, #0xffffff
	ldr	w1, [x19, #12]
	mov	x0, x19
	mov	x2, x22
	mov	w3, #4
	bl	_enc_get_mpeg_dma
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #8]
	str	w0, [sp, #4]
	bl	_vop_mpeg_offset
	mov	x23, x0
	mov	x0, x19
	bl	_SOLO_MP4E_EXT_ADDR
	add	x8, x0, w22, uxtw
	cmp	x23, x8
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_solo_motion_detected
	cmp	x0, #0
	cset	w8, ne
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x21
	bl	_solo_enc_handle_one
	b	LBB0_4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MP4_QS,4,2                     ; @MP4_QS
	.comm	_SOLO_MAX_CHANNELS,8,3          ; @SOLO_MAX_CHANNELS
	.comm	_SOLO_ENC_TYPE_EXT,4,2          ; @SOLO_ENC_TYPE_EXT
	.comm	_SOLO_ENC_TYPE_STD,4,2          ; @SOLO_ENC_TYPE_STD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got spurious packet for channel %d\n"

	.no_dead_strip	_solo_handle_ring
.subsections_via_symbols
