	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flatfile_nextkey               ## -- Begin function flatfile_nextkey
	.p2align	4, 0x90
_flatfile_nextkey:                      ## @flatfile_nextkey
	.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, %r14
	movq	_FLATFILE_BLOCK_SIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %r15
	movq	%r15, %rdi
	callq	_emalloc
	movq	%rax, %r12
	movl	(%r14), %edi
	movl	4(%r14), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_php_stream_seek
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_php_stream_read
	cmpb	$0, (%r12)
	jne	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_php_stream_eof
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	$15, %edx
	callq	_php_stream_gets
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_atoi
	movq	%rax, %rbx
	cmpq	%r15, %rax
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %r15
	addq	%rbx, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_erealloc
	movq	%rax, %r12
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_php_stream_read
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	$15, %edx
	callq	_php_stream_gets
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_atoi
	movq	%rax, %rbx
	cmpq	%r15, %rax
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %r15
	addq	%rbx, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_erealloc
	movq	%rax, %r12
	jmp	LBB0_8
LBB0_10:
	movq	%r12, %rdi
	callq	_efree
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_php_stream_tell
	movl	%eax, 4(%r14)
LBB0_11:
	movq	%r12, %rax
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLATFILE_BLOCK_SIZE,8,3        ## @FLATFILE_BLOCK_SIZE
	.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	_flatfile_nextkey               ; -- Begin function flatfile_nextkey
	.p2align	2
_flatfile_nextkey:                      ; @flatfile_nextkey
	.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	x20, x0
Lloh0:
	adrp	x23, _FLATFILE_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FLATFILE_BLOCK_SIZE@GOTPAGEOFF]
	ldr	x21, [x23]
	mov	x0, x21
	bl	_emalloc
	mov	x19, x0
	ldp	w0, w1, [x20]
Lloh2:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_php_stream_seek
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x22
	bl	_php_stream_read
	ldrb	w8, [x19]
	cbnz	w8, LBB0_10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_php_stream_eof
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #15
	bl	_php_stream_gets
	cbz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_atoi
	mov	x22, x0
	cmp	x0, x21
	b.lo	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	add	x21, x8, x22
	mov	x0, x19
	mov	x1, x21
	bl	_erealloc
	mov	x19, x0
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x22
	bl	_php_stream_read
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #15
	bl	_php_stream_gets
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_atoi
	mov	x22, x0
	cmp	x0, x21
	b.lo	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	add	x21, x8, x22
	mov	x0, x19
	mov	x1, x21
	bl	_erealloc
	mov	x19, x0
	b	LBB0_1
LBB0_9:
	mov	x0, x19
	bl	_efree
	mov	x19, #0
	mov	x22, #0
	b	LBB0_11
LBB0_10:
	mov	x22, x0
	ldr	w0, [x20]
	bl	_php_stream_tell
	str	w0, [x20, #4]
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FLATFILE_BLOCK_SIZE,8,3        ; @FLATFILE_BLOCK_SIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
