	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_index                    ## -- Begin function write_index
	.p2align	4, 0x90
_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_last@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_cur@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$20, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_ifd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	$20, %edx
	callq	_write
	xorl	%edi, %edi
	cmpl	$20, %eax
	sete	%dil
	callq	_assert
	movl	(%r14), %edi
	movl	(%r15), %esi
	movl	$20, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last,4,2                       ## @last
	.comm	_cur,4,2                        ## @cur
	.comm	_ifd,4,2                        ## @ifd
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_index                    ; -- Begin function write_index
	.p2align	2
_write_index:                           ; @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
Lloh0:
	adrp	x19, _last@GOTPAGE
Lloh1:
	ldr	x19, [x19, _last@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x20, _cur@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cur@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #20
	bl	_memcmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x21, _ifd@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ifd@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	ldr	w0, [x21]
	ldr	w1, [x20]
	mov	w2, #20
	bl	_write
	cmp	w0, #20
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	w2, #20
	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
	b	_memcpy
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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_last,4,2                       ; @last
	.comm	_cur,4,2                        ; @cur
	.comm	_ifd,4,2                        ; @ifd
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
