	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_entity_link_setup_source
_vsp1_entity_link_setup_source:         ## @vsp1_entity_link_setup_source
	.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, %r12d
	movq	%rsi, %r14
	movl	8(%rdi), %edi
	callq	_media_entity_to_vsp1_entity
	xorl	%r15d, %r15d
	cmpl	$0, 24(%rax)
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.2:
	movl	8(%r14), %edi
	callq	_media_entity_to_vsp1_entity
	movq	(%rax), %rcx
	movq	_VSP1_ENTITY_HGO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.3:
	movq	_VSP1_ENTITY_HGT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.4:
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	jmp	LBB0_8
LBB0_5:
	movq	%rax, 16(%rbx)
	movq	(%r14), %rax
	movq	%rax, 8(%rbx)
LBB0_8:
	movl	%r15d, %eax
	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	_VSP1_ENTITY_HGO,8,3            ## @VSP1_ENTITY_HGO
	.comm	_VSP1_ENTITY_HGT,8,3            ## @VSP1_ENTITY_HGT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_vsp1_entity_link_setup_source
.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_source
_vsp1_entity_link_setup_source:         ; @vsp1_entity_link_setup_source
	.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	x21, x2
	mov	x19, x1
	ldr	w0, [x0, #8]
	bl	_media_entity_to_vsp1_entity
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_media_entity_to_vsp1_entity
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _VSP1_ENTITY_HGO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VSP1_ENTITY_HGO@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _VSP1_ENTITY_HGT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _VSP1_ENTITY_HGT@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	stp	xzr, xzr, [x20, #8]
	b	LBB0_8
LBB0_5:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	stp	x9, x8, [x20, #8]
LBB0_8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_VSP1_ENTITY_HGO,8,3            ; @VSP1_ENTITY_HGO
	.comm	_VSP1_ENTITY_HGT,8,3            ; @VSP1_ENTITY_HGT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_vsp1_entity_link_setup_source
.subsections_via_symbols
