	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_resolve_multidescriptor
_mxf_resolve_multidescriptor:           ## @mxf_resolve_multidescriptor
	.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
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r13
	movq	(%rsi), %rcx
	movq	_MultipleDescriptor@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_8
## %bb.2:
	cmpl	$0, 8(%r13)
	jle	LBB0_9
## %bb.3:
	movl	%edx, %r14d
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	8(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rsi
	addq	%rbx, %rsi
	movq	_Descriptor@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	callq	_mxf_resolve_strong_ref
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r14d, 12(%rax)
	jne	LBB0_7
	jmp	LBB0_10
LBB0_8:
	movq	_Descriptor@GOTPCREL(%rip), %rdx
	movq	%r13, %rax
	cmpq	(%rdx), %rcx
	je	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MultipleDescriptor,8,3         ## @MultipleDescriptor
	.comm	_Descriptor,8,3                 ## @Descriptor
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not resolve sub descriptor strong ref\n"

	.no_dead_strip	_mxf_resolve_multidescriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_resolve_multidescriptor
_mxf_resolve_multidescriptor:           ; @mxf_resolve_multidescriptor
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x1, LBB0_9
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MultipleDescriptor@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MultipleDescriptor@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x20, x2
	mov	x21, x0
	mov	x23, #0
	mov	x24, #0
Lloh3:
	adrp	x25, _Descriptor@GOTPAGE
Lloh4:
	ldr	x25, [x25, _Descriptor@GOTPAGEOFF]
Lloh5:
	adrp	x26, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x26, [x26, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x26]
	mov	x2, x22
	bl	_av_log
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19, #8]
	add	x23, x23, #4
	cmp	x24, x8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x23
	ldr	x2, [x25]
	mov	x0, x21
	bl	_mxf_resolve_strong_ref
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x0, #12]
	cmp	w8, w20
	b.ne	LBB0_5
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x9, _Descriptor@GOTPAGE
Lloh10:
	ldr	x9, [x9, _Descriptor@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MultipleDescriptor,8,3         ; @MultipleDescriptor
	.comm	_Descriptor,8,3                 ; @Descriptor
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not resolve sub descriptor strong ref\n"

	.no_dead_strip	_mxf_resolve_multidescriptor
.subsections_via_symbols
