	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xvip_pipeline_validate
_xvip_pipeline_validate:                ## @xvip_pipeline_validate
	.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, %r12
	movq	%rdi, %r14
	movq	16(%rsi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_media_graph_walk_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_14
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	addq	$8, %r12
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_media_graph_walk_start
	movq	%rbx, %rdi
	callq	_media_graph_walk_next
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	_MEDIA_ENT_F_IO_V4L@GOTPCREL(%rip), %r14
	leaq	-48(%rbp), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_media_graph_walk_next
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_media_entity_to_video_device
	movl	%eax, %edi
	callq	_to_xvip_dma
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	incl	%ebx
	jmp	LBB0_9
LBB0_3:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	-48(%rbp), %rdi
	callq	_media_graph_walk_cleanup
	cmpl	$1, %ebx
	jne	LBB0_12
## %bb.11:
	cmpl	$2, %r12d
	jae	LBB0_12
## %bb.13:
	incl	%r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_12:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_ENT_F_IO_V4L,8,3         ## @MEDIA_ENT_F_IO_V4L
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_EPIPE,4,2                      ## @EPIPE
	.no_dead_strip	_xvip_pipeline_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xvip_pipeline_validate
_xvip_pipeline_validate:                ; @xvip_pipeline_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x1, #16]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, sp, #8
	mov	x1, x20
	bl	_media_graph_walk_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_14
LBB0_2:
	add	x1, x22, #8
	add	x0, sp, #8
	bl	_media_graph_walk_start
	add	x0, sp, #8
	bl	_media_graph_walk_next
	cbz	x0, LBB0_9
; %bb.3:
	mov	w21, #0
	mov	w22, #0
Lloh0:
	adrp	x23, _MEDIA_ENT_F_IO_V4L@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MEDIA_ENT_F_IO_V4L@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	bl	_media_graph_walk_next
	cbz	x0, LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_media_entity_to_video_device
	bl	_to_xvip_dma
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x19, #8]
	add	w21, w21, #1
	b	LBB0_5
LBB0_9:
	mov	w22, #0
	mov	w21, #0
LBB0_10:
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, sp, #8
	bl	_media_graph_walk_cleanup
	cmp	w21, #1
	b.ne	LBB0_13
; %bb.11:
	cmp	w22, #2
	b.hs	LBB0_13
; %bb.12:
	mov	w21, #0
	add	w8, w22, #1
	str	w8, [x19]
	b	LBB0_14
LBB0_13:
Lloh4:
	adrp	x8, _EPIPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_ENT_F_IO_V4L,8,3         ; @MEDIA_ENT_F_IO_V4L
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_EPIPE,4,2                      ; @EPIPE
	.no_dead_strip	_xvip_pipeline_validate
.subsections_via_symbols
