	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_entity_link_setup_sink
_vsp1_entity_link_setup_sink:           ## @vsp1_entity_link_setup_sink
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	8(%rsi), %edi
	callq	_media_entity_to_vsp1_entity
	movq	%rax, %r12
	movl	8(%r15), %edi
	callq	_media_entity_to_vsp1_entity
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rsi
	movq	(%r12), %rcx
	movq	(%rbx), %rdx
	testl	%r14d, (%rsi)
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	$0, (%rcx,%rdx,8)
	jmp	LBB0_5
LBB0_3:
	movq	%rax, (%rcx,%rdx,8)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_vsp1_entity_link_setup_sink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_entity_link_setup_sink
_vsp1_entity_link_setup_sink:           ; @vsp1_entity_link_setup_sink
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1, #8]
	bl	_media_entity_to_vsp1_entity
	mov	x22, x0
	ldr	w0, [x21, #8]
	bl	_media_entity_to_vsp1_entity
Lloh0:
	adrp	x9, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x9]
	ldr	x9, [x22]
	ldr	x10, [x20]
	tst	w11, w19
	b.eq	LBB0_3
; %bb.1:
	ldr	x11, [x9, x10, lsl #3]
	cbz	x11, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	str	xzr, [x9, x10, lsl #3]
	b	LBB0_5
LBB0_4:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x9, x10, lsl #3]
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_vsp1_entity_link_setup_sink
.subsections_via_symbols
