	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flatfile_delete                ## -- Begin function flatfile_delete
	.p2align	4, 0x90
_flatfile_delete:                       ## @flatfile_delete
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_FLATFILE_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_emalloc
	movq	%rax, %r15
	movl	(%r14), %edi
	callq	_php_stream_rewind
	movl	(%r14), %edi
	callq	_php_stream_eof
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	movq	_FAILURE@GOTPCREL(%rip), %rbx
LBB0_13:
	movq	%r15, %rdi
	callq	_efree
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_php_stream_read
	movl	(%r14), %edi
	callq	_php_stream_eof
	testl	%eax, %eax
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	$15, %edx
	callq	_php_stream_gets
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
	movq	%r15, %rdi
	callq	_atoi
	movq	%rax, %r12
	cmpq	%r13, %rax
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_FLATFILE_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addq	%r12, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_erealloc
	movq	%rax, %r15
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	callq	_php_stream_tell
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_php_stream_read
	movq	%rbx, %r12
	cmpq	%rbx, %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	$15, %edx
	callq	_php_stream_gets
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_atoi
	movq	%rax, %rbx
	cmpq	%r13, %rax
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_FLATFILE_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addq	%rbx, %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_erealloc
	movq	%rax, %r15
	jmp	LBB0_11
LBB0_7:
	movl	(%r14), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_php_stream_seek
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_php_stream_putc
	movl	(%r14), %edi
	callq	_php_stream_flush
	movl	(%r14), %edi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_php_stream_seek
	movq	_SUCCESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_FLATFILE_BLOCK_SIZE,8,3        ## @FLATFILE_BLOCK_SIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_FAILURE,4,2                    ## @FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flatfile_delete                ; -- Begin function flatfile_delete
	.p2align	2
_flatfile_delete:                       ; @flatfile_delete
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x27, _FLATFILE_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _FLATFILE_BLOCK_SIZE@GOTPAGEOFF]
	ldr	x23, [x27]
	mov	x0, x23
	bl	_emalloc
	mov	x19, x0
	ldr	w0, [x20]
	bl	_php_stream_rewind
	ldr	w0, [x20]
	bl	_php_stream_eof
Lloh2:
	adrp	x26, _FAILURE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _FAILURE@GOTPAGEOFF]
	cbz	w0, LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_efree
	ldr	w0, [x26]
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x24
	bl	_php_stream_read
	ldr	w0, [x20]
	bl	_php_stream_eof
	cbnz	w0, LBB0_1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #15
	bl	_php_stream_gets
	cbz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_atoi
	mov	x24, x0
	cmp	x0, x23
	b.lo	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	add	x23, x8, x24
	mov	x0, x19
	mov	x1, x23
	bl	_erealloc
	mov	x19, x0
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	bl	_php_stream_tell
	mov	x25, x0
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x24
	bl	_php_stream_read
	cmp	x21, x0
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_memcmp
	cbz	w0, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #15
	bl	_php_stream_gets
	cbz	w0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_atoi
	mov	x24, x0
	cmp	x0, x23
	b.lo	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	add	x23, x8, x24
	mov	x0, x19
	mov	x1, x23
	bl	_erealloc
	mov	x19, x0
	b	LBB0_2
LBB0_11:
	ldr	w0, [x20]
Lloh4:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x25
	bl	_php_stream_seek
	ldr	w0, [x20]
	mov	w1, #0
	bl	_php_stream_putc
	ldr	w0, [x20]
	bl	_php_stream_flush
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_php_stream_seek
Lloh10:
	adrp	x26, _SUCCESS@GOTPAGE
Lloh11:
	ldr	x26, [x26, _SUCCESS@GOTPAGEOFF]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FLATFILE_BLOCK_SIZE,8,3        ; @FLATFILE_BLOCK_SIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_FAILURE,4,2                    ; @FAILURE
.subsections_via_symbols
