	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_essence_container_end
_mxf_essence_container_end:             ## @mxf_essence_container_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	leaq	(%rcx,%rcx,2), %rax
	leaq	-24(,%rax,8), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rcx
	movq	8(%rdi), %r8
	leaq	-24(%rdx), %r9
	cmpl	%esi, (%r8,%rdx)
	movq	%r9, %rdx
	jne	LBB0_1
## %bb.3:
	movl	%ecx, %eax
	leaq	(%rax,%rax,2), %rcx
	movq	8(%r8,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	addq	16(%r8,%rcx,8), %rax
LBB0_6:
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mxf_essence_container_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_essence_container_end
_mxf_essence_container_end:             ; @mxf_essence_container_end
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	mov	w9, #24
	mul	x9, x8, x9
	sub	x9, x9, #24
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x8, x8, #1
	ldr	x10, [x0, #8]
	ldr	w11, [x10, x9]
	sub	x9, x9, #24
	cmp	w11, w1
	b.ne	LBB0_1
; %bb.3:
	and	x8, x8, #0xffffffff
	mov	w9, #24
	madd	x9, x8, x9, x10
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_5
; %bb.4:
	mov	w11, #24
	madd	x8, x8, x11, x10
	ldr	x8, [x8, #16]
	add	x0, x8, x9
	ret
LBB0_5:
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mxf_essence_container_end
.subsections_via_symbols
