	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avi_write_index_entry
_avi_write_index_entry:                 ## @avi_write_index_entry
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_AVI_INDEX_DELTAFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	8(%r12), %rdi
	callq	_vc_container_io_write_uint8
	movq	8(%r12), %rdi
	orl	%r15d, %ebx
	movl	%ebx, %esi
	callq	_vc_container_io_write_be_uint32
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, (%r12)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_LOG_DEBUG
	movq	8(%r12), %rax
	movq	(%rax), %rax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVI_INDEX_DELTAFRAME,4,2       ## @AVI_INDEX_DELTAFRAME
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning, couldn't store index data, index data will be incorrect"

	.no_dead_strip	_avi_write_index_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avi_write_index_entry
_avi_write_index_entry:                 ; @avi_write_index_entry
	.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	x20, x2
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _AVI_INDEX_DELTAFRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVI_INDEX_DELTAFRAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w3, #0
	csel	w22, w8, wzr, eq
	ldr	x0, [x21, #8]
	bl	_vc_container_io_write_uint8
	ldr	x0, [x21, #8]
	orr	w1, w22, w20
	bl	_vc_container_io_write_be_uint32
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	str	x0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
LBB0_2:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AVI_INDEX_DELTAFRAME,4,2       ; @AVI_INDEX_DELTAFRAME
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning, couldn't store index data, index data will be incorrect"

	.no_dead_strip	_avi_write_index_entry
.subsections_via_symbols
