	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function graph_check_validity
_graph_check_validity:                  ## @graph_check_validity
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	jle	LBB0_16
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rdi), %r8
	xorl	%edx, %edx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%r8,%rdx,8), %rbx
	movl	(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%rbx), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%r9, %rdx
	jne	LBB0_2
LBB0_16:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	40(%rbx), %rax
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	movl	(%rax,%rcx,8), %edi
	movl	4(%rax,%rcx,8), %r15d
	callq	_av_get_media_type_string
	movl	16(%rbx), %r9d
	movq	8(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
LBB0_13:
	movq	24(%rbx), %rax
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	movl	(%rax,%rcx,8), %edi
	movl	4(%rax,%rcx,8), %r15d
	callq	_av_get_media_type_string
	movl	16(%rbx), %r9d
	movq	8(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str.1(%rip), %rdx
LBB0_7:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input pad \"%s\" with type %s of the filter instance \"%s\" of %s not connected to any source\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Output pad \"%s\" with type %s of the filter instance \"%s\" of %s not connected to any destination\n"

	.no_dead_strip	_graph_check_validity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function graph_check_validity
_graph_check_validity:                  ; @graph_check_validity
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x9, #0
	ldr	x10, [x0, #8]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x22, [x10, x9, lsl #3]
	ldr	w13, [x22]
	cmp	w13, #1
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x11, #0
	ldr	x12, [x22, #48]
	lsl	x13, x13, #3
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x12, x11]
	cbz	x14, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w14, [x14]
	cbz	w14, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x11, x11, #8
	cmp	x13, x11
	b.ne	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w13, [x22, #4]
	cmp	w13, #1
	b.lt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x11, #0
	ldr	x12, [x22, #32]
	lsl	x13, x13, #3
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x12, x11]
	cbz	x14, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w14, [x14]
	cbz	w14, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x11, x11, #8
	cmp	x13, x11
	b.ne	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_13:
	mov	w0, #0
	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
LBB0_14:
	ldr	x8, [x22, #40]
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x9]
	add	x8, x8, x11
	ldp	w0, w21, [x8]
	bl	_av_get_media_type_string
	mov	x4, x0
	ldr	w5, [x22, #16]
	ldr	x8, [x22, #8]
	ldr	w6, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_16
LBB0_15:
	ldr	x8, [x22, #24]
Lloh5:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x9]
	add	x8, x8, x11
	ldp	w0, w21, [x8]
	bl	_av_get_media_type_string
	mov	x4, x0
	ldr	w5, [x22, #16]
	ldr	x8, [x22, #8]
	ldr	w6, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_av_log
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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	_AVERROR
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input pad \"%s\" with type %s of the filter instance \"%s\" of %s not connected to any source\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Output pad \"%s\" with type %s of the filter instance \"%s\" of %s not connected to any destination\n"

	.no_dead_strip	_graph_check_validity
.subsections_via_symbols
