	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_ports
_connect_ports:                         ## @connect_ports
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movl	$1, %edi
	cmpl	$1, 4(%r13)
	jne	LBB0_3
## %bb.1:
	cmpl	$1, 8(%r13)
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %edi
LBB0_3:
	movl	%edi, (%r13)
	movl	$4, %esi
	callq	_av_calloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	(%r13), %rcx
	cmpq	%rcx, %r12
	jge	LBB0_17
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	32(%r13), %rdi
	movl	4(%r15), %esi
	callq	*16(%rdi)
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%r12,4)
	testl	%eax, %eax
	je	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 12(%r13)
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	64(%r13), %rcx
	movl	(%rcx), %esi
	movq	32(%r13), %rcx
	movq	56(%r13), %rdx
	movl	%eax, %edi
	callq	*8(%rcx)
	cmpl	$2, 12(%r13)
	jl	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %ebx
	movl	$4, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r13), %rax
	movq	32(%r13), %rcx
	movl	(%rax,%r12,4), %edi
	movq	64(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	56(%r13), %rdx
	addq	%r14, %rdx
	callq	*8(%rcx)
	incq	%rbx
	movslq	12(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 16(%r13)
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r13), %rax
	movq	32(%r13), %rcx
	movl	(%rax,%r12,4), %edi
	movq	48(%r13), %rax
	movl	(%rax,%rbx), %esi
	movq	40(%r13), %rdx
	addq	%rbx, %rdx
	callq	*8(%rcx)
	incq	%r14
	movslq	16(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r13), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r13), %rcx
	movl	(%rcx,%r12,4), %edi
	callq	*%rax
	jmp	LBB0_16
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_17:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_19
LBB0_21:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not instantiate plugin.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"handles: %d\n"

	.no_dead_strip	_connect_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_ports
_connect_ports:                         ; @connect_ports
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20]
	b	LBB0_4
LBB0_3:
	mov	w0, #1
LBB0_4:
	str	w0, [x21]
	mov	w1, #4
	bl	_av_calloc
	str	x0, [x21, #24]
	cbz	x0, LBB0_18
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.6:
	mov	x22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_19
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x0, [x21, #32]
	ldr	x8, [x0, #16]
	ldr	w1, [x20, #4]
	blr	x8
	ldr	x8, [x21, #24]
	str	w0, [x8, x22, lsl #2]
	cbz	w0, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21, #12]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #32]
	ldr	x8, [x8, #8]
	ldp	x2, x9, [x21, #56]
	ldr	w1, [x9]
	blr	x8
	ldr	w8, [x21, #12]
	cmp	w8, #1
	b.le	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w23, #4
	mov	w24, #1
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x8, x9, [x21, #24]
	ldr	w0, [x8, x22, lsl #2]
	ldr	x8, [x9, #8]
	ldp	x10, x9, [x21, #56]
	ldr	w1, [x9, x24, lsl #2]
	add	x2, x10, x23
	blr	x8
	add	x24, x24, #1
	ldrsw	x8, [x21, #12]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, #0
	mov	x24, #0
LBB0_15:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x21, #24]
	ldr	w0, [x9, x22, lsl #2]
	ldr	x8, [x8, #8]
	ldp	x10, x9, [x21, #40]
	ldr	w1, [x9, x23]
	add	x2, x10, x23
	blr	x8
	add	x24, x24, #1
	ldrsw	x8, [x21, #16]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_15
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x21, #24]
	ldr	w0, [x9, x22, lsl #2]
	blr	x8
	b	LBB0_7
LBB0_18:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_19:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_20:
Lloh3:
	adrp	x9, _AV_LOG_DEBUG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w0, #0
	b	LBB0_22
LBB0_21:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_22:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not instantiate plugin.\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"handles: %d\n"

	.no_dead_strip	_connect_ports
.subsections_via_symbols
