	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_index
_write_index:                           ## @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
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	_ff_index_guid@GOTPCREL(%rip), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_write_chunk_header2
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wl32
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wl32
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movl	$12, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %r14
	movl	(%r14,%rbx), %esi
	movq	%r12, %rdi
	callq	_ff_put_guid
	movl	-4(%r14,%rbx), %esi
	movq	%r12, %rdi
	callq	_avio_wl64
	movl	-8(%r14,%rbx), %esi
	movq	%r12, %rdi
	callq	_avio_wl32
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_avio_wl32
	movl	-12(%r14,%rbx), %esi
	movq	%r12, %rdi
	callq	_avio_wl64
	incq	%r13
	movslq	(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movl	$0, (%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_finish_chunk_noindex
	cmpq	$0, 16(%r15)
	jne	LBB0_5
## %bb.4:
	movq	8(%r15), %rax
	movq	%rax, 16(%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_index_guid,4,2              ## @ff_index_guid
	.no_dead_strip	_write_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_index
_write_index:                           ; @write_index
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldp	x21, x20, [x0]
Lloh0:
	adrp	x1, _ff_index_guid@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ff_index_guid@GOTPAGEOFF]
	mov	w2, #-2147483648
	bl	_write_chunk_header2
	mov	x0, x20
	mov	w1, #0
	bl	_avio_wl32
	mov	x0, x20
	mov	w1, #0
	bl	_avio_wl32
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x24, x8, x22
	ldr	w1, [x24, #12]
	mov	x0, x20
	bl	_ff_put_guid
	ldr	w1, [x24, #8]
	mov	x0, x20
	bl	_avio_wl64
	ldr	w1, [x24, #4]
	mov	x0, x20
	bl	_avio_wl32
	mov	x0, x20
	mov	w1, #0
	bl	_avio_wl32
	ldr	w1, [x24]
	mov	x0, x20
	bl	_avio_wl64
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #16
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	str	wzr, [x21]
	mov	x0, x19
	bl	_finish_chunk_noindex
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	str	x8, [x21, #16]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_index_guid,4,2              ; @ff_index_guid
	.no_dead_strip	_write_index
.subsections_via_symbols
