	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_write_klv_fill
_mxf_write_klv_fill:                    ## @mxf_write_klv_fill
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_avio_tell
	movl	%eax, %edi
	callq	_klv_fill_size
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	_klv_fill_key@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edx
	callq	_avio_write
	addl	$-20, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_klv_encode_ber4_length
	movl	(%r14), %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_ffio_fill
	movl	(%r14), %edi
	callq	_avio_tell
	movq	_KAG_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	xorl	%edi, %edi
	testl	%eax, %ecx
	sete	%dil
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_av_assert1                     ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_klv_fill_key,4,2               ## @klv_fill_key
	.comm	_KAG_SIZE,4,2                   ## @KAG_SIZE
	.no_dead_strip	_mxf_write_klv_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_write_klv_fill
_mxf_write_klv_fill:                    ; @mxf_write_klv_fill
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_avio_tell
	bl	_klv_fill_size
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _klv_fill_key@GOTPAGE
Lloh1:
	ldr	x8, [x8, _klv_fill_key@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #16
	bl	_avio_write
	sub	w20, w20, #20
	ldr	w0, [x19]
	mov	x1, x20
	bl	_klv_encode_ber4_length
	ldr	w0, [x19]
	mov	w1, #0
	mov	x2, x20
	bl	_ffio_fill
	ldr	w0, [x19]
	bl	_avio_tell
Lloh3:
	adrp	x8, _KAG_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KAG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w8, w8, #1
	tst	w8, w0
	cset	w0, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_av_assert1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_klv_fill_key,4,2               ; @klv_fill_key
	.comm	_KAG_SIZE,4,2                   ; @KAG_SIZE
	.no_dead_strip	_mxf_write_klv_fill
.subsections_via_symbols
