	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcm_process_isoc
_qcm_process_isoc:                      ## @qcm_process_isoc
	.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	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	movl	(%r14), %r12d
	cmpl	$129, %r12d
	movl	$162, %eax
	movl	$324, %r15d                     ## imm = 0x144
	cmovel	%eax, %r15d
	movq	(%r13), %rax
	movq	_ScanState_Scanning@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_RingQueue_GetLength
	cmpl	$129, %r12d
	movl	$325, %ecx                      ## imm = 0x145
	movl	$1298, %edx                     ## imm = 0x512
	cmovel	%ecx, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leal	4(%rdx), %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_RING_QUEUE_DEQUEUE_BYTES
	movq	%rbx, %rdi
	callq	_RingQueue_GetLength
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, %eax
	jl	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_RING_QUEUE_PEEK
	testl	%eax, %eax
	jne	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_RING_QUEUE_PEEK
	cmpl	$255, %eax
	jne	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_RING_QUEUE_PEEK
	testl	%eax, %eax
	jne	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_RING_QUEUE_PEEK
	cmpl	$255, %eax
	jne	LBB0_20
## %bb.7:
	movl	$0, 8(%r13)
	movq	_ScanState_Lines@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	_FrameState_Grabbing@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_RING_QUEUE_DEQUEUE_BYTES
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_RING_QUEUE_DEQUEUE_BYTES
LBB0_8:
	movq	(%r13), %rax
	movq	_ScanState_Scanning@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.9:
	movl	8(%r13), %r8d
	movl	4(%r14), %eax
	cmpl	%eax, %r8d
	jge	LBB0_17
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r12
	movl	%r15d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	leal	(%r9,%r9,2), %eax
	addl	%eax, %eax
	addl	%eax, 12(%r13)
	addl	$2, %r8d
	movl	%r8d, 8(%r13)
	movl	4(%r14), %eax
	cmpl	%eax, %r8d
	jge	LBB0_17
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	%r12, %rdi
	callq	_RingQueue_GetLength
	cmpl	%r15d, %eax
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_RingQueue_Dequeue
	movl	8(%r14), %r9d
	movl	8(%r13), %r8d
	testl	%r9d, %r9d
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r9d, %eax
	imull	%r8d, %eax
	leal	(%rax,%rax,2), %eax
	movslq	%eax, %rdx
	addq	24(%r13), %rdx
	leaq	(,%r9,4), %rax
	andq	$-8, %rax
	movq	16(%r14), %r11
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r11,%rcx), %r10
	leaq	(%rax,%rax,2), %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r11,%rax,4), %ecx
	movl	(%r10,%rax,4), %edi
	movd	%ecx, %xmm0
	pinsrd	$1, %edi, %xmm0
	pinsrd	$2, 4(%r11,%rax,4), %xmm0
	pinsrd	$3, %ecx, %xmm0
	movdqu	%xmm0, 8(%rdx)
	movl	4(%r10,%rax,4), %esi
	movl	%esi, 4(%rdx)
	movl	%edi, (%rdx)
	movd	%esi, %xmm0
	pinsrd	$1, %ecx, %xmm0
	pinsrd	$2, %edi, %xmm0
	movl	%ecx, 20(%rdx,%rbx)
	pinsrd	$3, %esi, %xmm0
	movdqu	%xmm0, 4(%rdx,%rbx)
	movl	%edi, (%rdx,%rbx)
	addq	$24, %rdx
	addq	$2, %rax
	cmpl	%r9d, %eax
	jl	LBB0_15
	jmp	LBB0_16
LBB0_12:
	movl	8(%r13), %r8d
	movl	4(%r14), %eax
LBB0_17:
	cmpl	%eax, %r8d
	jne	LBB0_19
## %bb.18:
	movq	_FrameState_Done_Hold@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movl	$0, 8(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$-1, (%rax)
	incl	4(%rax)
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ScanState_Scanning,8,3         ## @ScanState_Scanning
	.comm	_ScanState_Lines,8,3            ## @ScanState_Lines
	.comm	_FrameState_Grabbing,4,2        ## @FrameState_Grabbing
	.comm	_FrameState_Done_Hold,4,2       ## @FrameState_Done_Hold
	.no_dead_strip	_qcm_process_isoc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcm_process_isoc
_qcm_process_isoc:                      ; @qcm_process_isoc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	ldr	w22, [x23]
	mov	w8, #324
	mov	w9, #162
	cmp	w22, #129
	csel	w24, w9, w8, eq
	ldr	x8, [x20]
Lloh0:
	adrp	x25, _ScanState_Scanning@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ScanState_Scanning@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	add	x21, x19, #8
	mov	x0, x21
	bl	_RingQueue_GetLength
	mov	w8, #1298
	mov	w9, #325
	cmp	w22, #129
	csel	w22, w9, w8, eq
	add	w26, w22, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	w1, #1
	bl	_RING_QUEUE_DEQUEUE_BYTES
	mov	x0, x21
	bl	_RingQueue_GetLength
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, w26
	b.lt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	w1, #0
	bl	_RING_QUEUE_PEEK
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	w1, #1
	bl	_RING_QUEUE_PEEK
	cmp	w0, #255
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	w1, #2
	bl	_RING_QUEUE_PEEK
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	w1, #3
	bl	_RING_QUEUE_PEEK
	cmp	w0, #255
	b.ne	LBB0_2
; %bb.8:
	str	wzr, [x20, #8]
Lloh2:
	adrp	x8, _ScanState_Lines@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ScanState_Lines@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh5:
	adrp	x8, _FrameState_Grabbing@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FrameState_Grabbing@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x21
	mov	w1, #4
	bl	_RING_QUEUE_DEQUEUE_BYTES
	mov	x0, x21
	mov	x1, x22
	bl	_RING_QUEUE_DEQUEUE_BYTES
LBB0_9:
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.10:
	ldr	w8, [x20, #8]
	ldr	w9, [x23, #4]
	cmp	w8, w9
	b.ge	LBB0_18
; %bb.11:
	add	x21, x19, #8
	lsl	w22, w24, #1
	mov	w25, #6
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w10, [x20, #12]
	madd	w10, w8, w25, w10
	add	w8, w9, #2
	stp	w8, w10, [x20, #8]
	ldr	w9, [x23, #4]
	cmp	w8, w9
	b.ge	LBB0_18
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	mov	x0, x21
	bl	_RingQueue_GetLength
	cmp	w0, w22
	b.lt	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x1, [x23, #16]
	mov	x0, x21
	mov	x2, x22
	bl	_RingQueue_Dequeue
	ldr	w8, [x23, #8]
	ldr	w9, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x10, #0
	ldr	x11, [x20, #24]
	mul	w12, w8, w9
	add	w12, w12, w12, lsl #1
	add	x11, x11, w12, sxtw
	lsr	x14, x8, #1
	ldr	x12, [x23, #16]
	add	x13, x12, x24
	add	x14, x14, x14, lsl #1
	lsl	x14, x14, #3
LBB0_16:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x15, x10, #2
	add	x16, x12, x15
	ldr	w17, [x16], #4
	add	x15, x13, x15
	ldr	w0, [x15]
	fmov	s0, w17
	mov.s	v0[1], w0
	ld1.s	{ v0 }[2], [x16]
	mov.s	v0[3], w17
	stur	q0, [x11, #8]
	ldr	w15, [x15, #4]
	fmov	s0, w15
	mov.s	v0[1], w17
	add	x16, x11, x14
	mov.s	v0[2], w0
	mov.s	v0[3], w15
	stp	w0, w15, [x11], #24
	str	w17, [x16, #20]
	stur	q0, [x16, #4]
	str	w0, [x16]
	add	x10, x10, #2
	cmp	w10, w8
	b.lt	LBB0_16
	b	LBB0_12
LBB0_17:
	ldr	w8, [x20, #8]
	ldr	w9, [x23, #4]
LBB0_18:
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.19:
Lloh8:
	adrp	x8, _FrameState_Done_Hold@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FrameState_Done_Hold@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	wzr, [x20, #8]
	mov	w8, #-1
	ldr	w9, [x19, #4]
	add	w9, w9, #1
	stp	w8, w9, [x19]
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ScanState_Scanning,8,3         ; @ScanState_Scanning
	.comm	_ScanState_Lines,8,3            ; @ScanState_Lines
	.comm	_FrameState_Grabbing,4,2        ; @FrameState_Grabbing
	.comm	_FrameState_Done_Hold,4,2       ; @FrameState_Done_Hold
	.no_dead_strip	_qcm_process_isoc
.subsections_via_symbols
