	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_write_index
_asf_write_index:                       ## @asf_write_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	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	(%rdi), %r13
	movq	_ff_asf_simple_index_header@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_ff_put_guid
	leal	(%r15,%r15,2), %eax
	leal	(%rax,%rax), %esi
	addl	$56, %esi
	movq	%r13, %rdi
	callq	_avio_wl64
	movq	_ff_asf_my_guid@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_ff_put_guid
	movq	_ASF_INDEXED_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_avio_wl64
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_avio_wl32
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_avio_wl32
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,8), %esi
	movq	%r13, %rdi
	callq	_avio_wl32
	movl	4(%r14,%rbx,8), %esi
	movq	%r13, %rdi
	callq	_avio_wl16
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_asf_simple_index_header,4,2 ## @ff_asf_simple_index_header
	.comm	_ff_asf_my_guid,4,2             ## @ff_asf_my_guid
	.comm	_ASF_INDEXED_INTERVAL,4,2       ## @ASF_INDEXED_INTERVAL
	.no_dead_strip	_asf_write_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_write_index
_asf_write_index:                       ; @asf_write_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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x1, _ff_asf_simple_index_header@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ff_asf_simple_index_header@GOTPAGEOFF]
	mov	x0, x19
	bl	_ff_put_guid
	mov	w8, #6
	orr	w9, wzr, #0x38
	madd	w1, w21, w8, w9
	mov	x0, x19
	bl	_avio_wl64
Lloh2:
	adrp	x1, _ff_asf_my_guid@GOTPAGE
Lloh3:
	ldr	x1, [x1, _ff_asf_my_guid@GOTPAGEOFF]
	mov	x0, x19
	bl	_ff_put_guid
Lloh4:
	adrp	x8, _ASF_INDEXED_INTERVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ASF_INDEXED_INTERVAL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_avio_wl64
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wl32
	mov	x0, x19
	mov	x1, x21
	bl	_avio_wl32
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, w21
	add	x20, x20, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x20, #-4]
	mov	x0, x19
	bl	_avio_wl32
	ldr	w1, [x20], #8
	mov	x0, x19
	bl	_avio_wl16
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_asf_simple_index_header,4,2 ; @ff_asf_simple_index_header
	.comm	_ff_asf_my_guid,4,2             ; @ff_asf_my_guid
	.comm	_ASF_INDEXED_INTERVAL,4,2       ; @ASF_INDEXED_INTERVAL
	.no_dead_strip	_asf_write_index
.subsections_via_symbols
