	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_compute_edit_unit_byte_count
_mxf_compute_edit_unit_byte_count:      ## @mxf_compute_edit_unit_byte_count
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	24(%rdi), %r15
	cmpq	_ff_mxf_opatom_muxer@GOTPCREL(%rip), %rax
	je	LBB0_1
## %bb.2:
	movq	_KAG_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$20, %rdi
	movq	%rdi, (%r15)
	callq	_klv_fill_size
	addq	(%r15), %rax
	movq	%rax, (%r15)
	incq	%rbx
	movslq	(%r14), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_mxf_opatom_muxer,4,2        ## @ff_mxf_opatom_muxer
	.comm	_KAG_SIZE,8,3                   ## @KAG_SIZE
	.no_dead_strip	_mxf_compute_edit_unit_byte_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_compute_edit_unit_byte_count
_mxf_compute_edit_unit_byte_count:      ; @mxf_compute_edit_unit_byte_count
	.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
	mov	x19, x0
	ldp	x8, x20, [x0, #16]
Lloh0:
	adrp	x9, _ff_mxf_opatom_muxer@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_mxf_opatom_muxer@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _KAG_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KAG_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x21, lsl #3]
	ldr	x9, [x9]
	str	x8, [x9, #8]
	ldr	x9, [x9]
	add	x8, x8, x9
	add	x0, x8, #20
	str	x0, [x20]
	bl	_klv_fill_size
	ldr	x8, [x20]
	add	x8, x8, x0
	str	x8, [x20]
	add	x21, x21, #1
	ldrsw	x9, [x19]
	cmp	x21, x9
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_mxf_opatom_muxer,4,2        ; @ff_mxf_opatom_muxer
	.comm	_KAG_SIZE,8,3                   ; @KAG_SIZE
	.no_dead_strip	_mxf_compute_edit_unit_byte_count
.subsections_via_symbols
