	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flatfile_store                 ## -- Begin function flatfile_store
	.p2align	4, 0x90
_flatfile_store:                        ## @flatfile_store
	.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	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_FLATFILE_INSERT@GOTPCREL(%rip), %rax
	cmpl	%r9d, (%rax)
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_4
## %bb.1:
	callq	_flatfile_findkey
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movl	(%r12), %edi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_php_stream_seek
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_php_stream_printf
	movl	(%r12), %edi
	callq	_php_stream_flush
	movl	(%r12), %edi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_php_stream_write
	movl	$-1, %r15d
	cmpq	%rbx, %rax
	jl	LBB0_8
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_php_stream_printf
	movl	(%r12), %edi
	callq	_php_stream_flush
	jmp	LBB0_6
LBB0_4:
	callq	_flatfile_delete
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_php_stream_printf
	movl	(%r12), %edi
	callq	_php_stream_flush
	movl	(%r12), %edi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_php_stream_write
	movl	$-1, %r15d
	cmpq	%rbx, %rax
	jl	LBB0_8
## %bb.5:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_php_stream_printf
LBB0_6:
	movl	(%r12), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	callq	_php_stream_write
	cmpq	%r14, %rax
	jl	LBB0_8
## %bb.7:
	movl	(%r12), %edi
	callq	_php_stream_flush
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLATFILE_INSERT,4,2            ## @FLATFILE_INSERT
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%zu\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flatfile_store                 ; -- Begin function flatfile_store
	.p2align	2
_flatfile_store:                        ; @flatfile_store
	.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	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FLATFILE_INSERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLATFILE_INSERT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w5
	b.ne	LBB0_3
; %bb.1:
	bl	_flatfile_findkey
	cbz	x0, LBB0_5
; %bb.2:
	mov	w0, #1
	b	LBB0_10
LBB0_3:
	bl	_flatfile_delete
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_php_stream_printf
	ldr	w0, [x19]
	bl	_php_stream_flush
	ldr	w0, [x19]
	mov	x1, x23
	mov	x2, x22
	bl	_php_stream_write
	cmp	x0, x22
	b.lt	LBB0_8
; %bb.4:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_php_stream_printf
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_php_stream_seek
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_php_stream_printf
	ldr	w0, [x19]
	bl	_php_stream_flush
	ldr	w0, [x19]
	mov	x1, x23
	mov	x2, x22
	bl	_php_stream_write
	cmp	x0, x22
	b.lt	LBB0_8
; %bb.6:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_php_stream_printf
	ldr	w0, [x19]
	bl	_php_stream_flush
LBB0_7:
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_php_stream_write
	cmp	x0, x20
	b.ge	LBB0_9
LBB0_8:
	mov	w0, #-1
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19]
	bl	_php_stream_flush
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FLATFILE_INSERT,4,2            ; @FLATFILE_INSERT
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%zu\n"

.subsections_via_symbols
