	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_get_stream_index
_mxf_get_stream_index:                  ## @mxf_get_stream_index
	.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
	movl	(%rdi), %eax
	movl	$-1, %r14d
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %edx
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	addq	$4, %rdi
	movl	4(%rcx), %esi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %eax
	jmp	LBB0_8
LBB0_9:
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.10:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	cmpq	$1, (%rax)
	sbbl	%r14d, %r14d
	jmp	LBB0_12
LBB0_11:
	movl	%ebx, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mxf_get_stream_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_get_stream_index
_mxf_get_stream_index:                  ; @mxf_get_stream_index
	.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_10
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x19, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	add	x0, x8, #4
	ldr	w1, [x9, #4]
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #1
	cmp	x19, w8, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x9, [x9, x19, lsl #3]
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w21, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x9]
	cmp	w10, #0
	ccmp	w10, w21, #4, ne
	b.eq	LBB0_2
	b	LBB0_4
LBB0_8:
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #0
	csetm	w19, eq
	b	LBB0_11
LBB0_10:
	mov	w19, #-1
LBB0_11:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mxf_get_stream_index
.subsections_via_symbols
