	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flatfile_fetch                 ## -- Begin function flatfile_fetch
	.p2align	4, 0x90
_flatfile_fetch:                        ## @flatfile_fetch
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movups	%xmm0, (%rdi)
	movaps	16(%rbp), %xmm0
	movaps	32(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%rsi, %rdi
	callq	_flatfile_findkey
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%r14), %edi
	leaq	-48(%rbp), %rsi
	movl	$16, %edx
	callq	_php_stream_gets
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	callq	_atoi
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_safe_emalloc
	movq	%rax, 8(%rbx)
	movl	(%r14), %edi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_php_stream_read
	movq	%rax, (%rbx)
	jmp	LBB0_4
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flatfile_fetch                 ; -- Begin function flatfile_fetch
	.p2align	2
_flatfile_fetch:                        ; @flatfile_fetch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	mov	x19, x8
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19]
	ldp	q0, q1, [x1]
	stp	q0, q1, [sp]
	mov	x1, sp
	bl	_flatfile_findkey
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x20]
	mov	x1, sp
	mov	w2, #16
	bl	_php_stream_gets
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, sp
	bl	_atoi
	mov	x21, x0
	mov	w1, #1
	mov	w2, #1
	bl	_safe_emalloc
	mov	x1, x0
	str	x0, [x19, #8]
	ldr	w0, [x20]
	mov	x2, x21
	bl	_php_stream_read
	str	x0, [x19]
	b	LBB0_4
LBB0_3:
	stp	xzr, xzr, [x19]
LBB0_4:
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
