	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_du_pipeline_frame_end
_vsp1_du_pipeline_frame_end:            ## @vsp1_du_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_to_vsp1_drm_pipeline
	movq	%rax, %rbx
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movq	24(%rbx), %rdi
	movq	_VSP1_DU_STATUS_COMPLETE@GOTPCREL(%rip), %rax
	movq	_VSP1_DU_STATUS_WRITEBACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	orl	(%rax), %r15d
	andl	%r14d, %r15d
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	callq	_to_uif
	movl	%eax, %edi
	callq	_vsp1_uif_get_crc
	movl	%eax, %edx
	movq	16(%rbx), %rcx
	jmp	LBB0_4
LBB0_2:
	xorl	%edx, %edx
LBB0_4:
	movl	8(%rbx), %edi
	movl	%r15d, %esi
	callq	*%rcx
LBB0_5:
	movq	_VSP1_DL_FRAME_END_INTERNAL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.7:
	movl	$0, (%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VSP1_DU_STATUS_COMPLETE,4,2    ## @VSP1_DU_STATUS_COMPLETE
	.comm	_VSP1_DU_STATUS_WRITEBACK,4,2   ## @VSP1_DU_STATUS_WRITEBACK
	.comm	_VSP1_DL_FRAME_END_INTERNAL,4,2 ## @VSP1_DL_FRAME_END_INTERNAL
	.no_dead_strip	_vsp1_du_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_du_pipeline_frame_end
_vsp1_du_pipeline_frame_end:            ; @vsp1_du_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	x20, x1
	bl	_to_vsp1_drm_pipeline
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x9, _VSP1_DU_STATUS_COMPLETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VSP1_DU_STATUS_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _VSP1_DU_STATUS_WRITEBACK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VSP1_DU_STATUS_WRITEBACK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w21, w9, w20
	cbz	x0, LBB0_3
; %bb.2:
	bl	_to_uif
	bl	_vsp1_uif_get_crc
	mov	x2, x0
	ldr	x8, [x19, #16]
	b	LBB0_4
LBB0_3:
	mov	w2, #0
LBB0_4:
	ldr	w0, [x19, #8]
	mov	x1, x21
	blr	x8
LBB0_5:
Lloh6:
	adrp	x8, _VSP1_DL_FRAME_END_INTERNAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VSP1_DL_FRAME_END_INTERNAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	str	wzr, [x19], #4
	mov	x0, x19
	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	_wake_up
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VSP1_DU_STATUS_COMPLETE,4,2    ; @VSP1_DU_STATUS_COMPLETE
	.comm	_VSP1_DU_STATUS_WRITEBACK,4,2   ; @VSP1_DU_STATUS_WRITEBACK
	.comm	_VSP1_DL_FRAME_END_INTERNAL,4,2 ; @VSP1_DL_FRAME_END_INTERNAL
	.no_dead_strip	_vsp1_du_pipeline_frame_end
.subsections_via_symbols
