	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_video_pipeline_frame_end
_vsp1_video_pipeline_frame_end:         ## @vsp1_video_pipeline_frame_end
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	_VSP1_DL_FRAME_END_COMPLETED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	andl	(%rax), %esi
	sete	%dil
	callq	_WARN_ON_ONCE
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	(%rax), %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_vsp1_video_frame_end
	movq	(%r15), %rax
	jmp	LBB0_4
LBB0_5:
	movq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_vsp1_video_frame_end
	movl	(%r12), %eax
	movq	_VSP1_PIPELINE_STOPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r12)
	movq	_VSP1_PIPELINE_STOPPING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_wake_up
	jmp	LBB0_9
LBB0_7:
	movq	%r12, %rdi
	callq	_vsp1_pipeline_ready
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_vsp1_video_pipeline_run
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VSP1_DL_FRAME_END_COMPLETED,4,2 ## @VSP1_DL_FRAME_END_COMPLETED
	.comm	_VSP1_PIPELINE_STOPPED,4,2      ## @VSP1_PIPELINE_STOPPED
	.comm	_VSP1_PIPELINE_STOPPING,4,2     ## @VSP1_PIPELINE_STOPPING
	.no_dead_strip	_vsp1_video_pipeline_frame_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_video_pipeline_frame_end
_vsp1_video_pipeline_frame_end:         ; @vsp1_video_pipeline_frame_end
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _VSP1_DL_FRAME_END_COMPLETED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VSP1_DL_FRAME_END_COMPLETED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	cset	w0, eq
	bl	_WARN_ON_ONCE
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x21]
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.1:
	mov	x22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	w9, [x8]
	cmp	x22, x9
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	x1, [x9, x22, lsl #3]
	cbz	x1, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_vsp1_video_frame_end
	ldr	x8, [x21]
	b	LBB0_2
LBB0_5:
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_vsp1_video_frame_end
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _VSP1_PIPELINE_STOPPED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VSP1_PIPELINE_STOPPED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x19]
Lloh6:
	adrp	x9, _VSP1_PIPELINE_STOPPING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VSP1_PIPELINE_STOPPING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	add	x0, x19, #8
	bl	_wake_up
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_vsp1_pipeline_ready
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_vsp1_video_pipeline_run
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VSP1_DL_FRAME_END_COMPLETED,4,2 ; @VSP1_DL_FRAME_END_COMPLETED
	.comm	_VSP1_PIPELINE_STOPPED,4,2      ; @VSP1_PIPELINE_STOPPED
	.comm	_VSP1_PIPELINE_STOPPING,4,2     ; @VSP1_PIPELINE_STOPPING
	.no_dead_strip	_vsp1_video_pipeline_frame_end
.subsections_via_symbols
