	.file	"extr_inifile.c_inifile_delete_replace_append.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Could not create temporary stream"
	.align 8
.LC2:
	.string	"Could not copy remainder to temporary stream"
	.section	.rodata.str1.1
.LC3:
	.string	"[%s]\n"
.LC4:
	.string	"%s=%s\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Could not copy from temporary stream - ini file truncated"
	.text
	.p2align 4
	.type	inifile_delete_replace_append, @function
inifile_delete_replace_append:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	test	ecx, ecx
	je	.L2
	cmp	QWORD PTR [rsi], 0
	setne	al
	xor	edi, edi
	test	rdx, rdx
	setne	dil
	and	edi, eax
	call	assert@PLT
	lea	rdx, 16[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	call	inifile_find_group@PLT
	lea	rdx, 24[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	call	inifile_next_group@PLT
	mov	r12d, DWORD PTR SUCCESS[rip]
.L26:
	mov	esi, 65536
	xor	edi, edi
	call	php_stream_temp_create@PLT
	lea	rdx, .LC1[rip]
	mov	r15, rax
	test	rax, rax
	je	.L62
	mov	edx, DWORD PTR SEEK_END[rip]
	mov	rdi, QWORD PTR [rbx]
	xor	esi, esi
	call	php_stream_seek@PLT
	mov	rdi, QWORD PTR [rbx]
	call	php_stream_tell@PLT
	mov	rsi, QWORD PTR 24[rsp]
	cmp	rax, rsi
	je	.L63
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	rdi, QWORD PTR [rbx]
	call	php_stream_seek@PLT
	mov	edx, DWORD PTR PHP_STREAM_COPY_ALL[rip]
	mov	rdi, QWORD PTR [rbx]
	xor	ecx, ecx
	mov	rsi, r15
	call	php_stream_copy_to_stream_ex@PLT
	mov	r9d, eax
	mov	eax, DWORD PTR SUCCESS[rip]
	cmp	r9d, eax
	je	.L4
	lea	rdx, .LC2[rip]
.L62:
	mov	esi, DWORD PTR E_WARNING[rip]
	xor	edi, edi
	call	php_error_docref@PLT
	mov	r12d, DWORD PTR FAILURE[rip]
.L63:
	mov	eax, DWORD PTR SUCCESS[rip]
.L4:
	cmp	r12d, eax
	jne	.L14
	test	r14, r14
	je	.L11
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L65
.L10:
	test	r15, r15
	je	.L20
	mov	rdi, r15
	call	php_stream_tell@PLT
	test	rax, rax
	jne	.L66
.L21:
	mov	rax, QWORD PTR 32[rsp]
	test	rax, rax
	je	.L25
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, QWORD PTR [rax]
	call	php_stream_close@PLT
	mov	rdi, QWORD PTR 32[rsp]
	xor	esi, esi
	call	inifile_free@PLT
.L22:
	test	r15, r15
	je	.L23
.L25:
	mov	rdi, r15
	call	php_stream_close@PLT
.L23:
	mov	rdi, QWORD PTR [rbx]
	call	php_stream_flush@PLT
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	rdi, QWORD PTR [rbx]
	xor	esi, esi
	call	php_stream_seek@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L67
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, 1
	call	assert@PLT
	lea	rdx, 16[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	call	inifile_find_group@PLT
	lea	rdx, 24[rsp]
	mov	rsi, rbp
	mov	rdi, rbx
	call	inifile_next_group@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, rbx
	lea	rcx, 32[rsp]
	call	inifile_copy_to@PLT
	cmp	DWORD PTR SUCCESS[rip], eax
	mov	r12d, eax
	je	.L26
	xor	r15d, r15d
.L14:
	mov	rax, QWORD PTR 32[rsp]
	test	rax, rax
	jne	.L24
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR 32[rsp]
	test	rax, rax
	jne	.L24
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L65:
	call	strlen@PLT
	test	rax, rax
	je	.L12
.L11:
	test	r13d, r13d
	je	.L68
	mov	rsi, QWORD PTR 24[rsp]
.L13:
	mov	rdi, rbx
	call	inifile_truncate@PLT
	mov	r12d, eax
.L12:
	cmp	DWORD PTR SUCCESS[rip], r12d
	jne	.L14
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L10
	call	strlen@PLT
	test	rax, rax
	je	.L10
	test	r13d, r13d
	jne	.L15
	mov	rsi, QWORD PTR 32[rsp]
	test	rsi, rsi
	je	.L15
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, rbp
	mov	rdi, rbx
	call	inifile_filter@PLT
	mov	r12d, eax
.L15:
	test	r14, r14
	je	.L10
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR 16[rsp], rax
	je	.L69
.L17:
	mov	rcx, QWORD PTR [r14]
	lea	rax, .LC0[rip]
	mov	rdx, QWORD PTR 0[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, QWORD PTR [rbx]
	test	rcx, rcx
	cmove	rcx, rax
	xor	eax, eax
	call	php_stream_printf@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L68:
	mov	rsi, QWORD PTR 16[rsp]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L66:
	mov	edx, DWORD PTR SEEK_SET[rip]
	xor	esi, esi
	mov	rdi, r15
	call	php_stream_seek@PLT
	mov	edx, DWORD PTR SEEK_END[rip]
	mov	rdi, QWORD PTR [rbx]
	xor	esi, esi
	call	php_stream_seek@PLT
	mov	edx, DWORD PTR PHP_STREAM_COPY_ALL[rip]
	mov	rsi, QWORD PTR [rbx]
	xor	ecx, ecx
	mov	rdi, r15
	call	php_stream_copy_to_stream_ex@PLT
	cmp	eax, DWORD PTR SUCCESS[rip]
	je	.L21
	lea	rsi, .LC5[rip]
	xor	edi, edi
	call	zend_throw_error@PLT
	mov	r12d, DWORD PTR FAILURE[rip]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L69:
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L17
	call	strlen@PLT
	test	rax, rax
	je	.L17
	mov	rdx, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	php_stream_printf@PLT
	jmp	.L17
.L67:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	inifile_delete_replace_append, .-inifile_delete_replace_append
	.comm	SUCCESS,4,4
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,4,4
	.comm	PHP_STREAM_COPY_ALL,4,4
	.comm	FAILURE,4,4
	.comm	E_WARNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_inifile.c_inifile_delete_replace_append.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Could not create temporary stream\000"
	.align	2
.LC2:
	.ascii	"Could not copy remainder to temporary stream\000"
	.align	2
.LC3:
	.ascii	"[%s]\012\000"
	.align	2
.LC4:
	.ascii	"%s=%s\012\000"
	.align	2
.LC5:
	.ascii	"Could not copy from temporary stream - ini file tru"
	.ascii	"ncated\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	inifile_delete_replace_append, %function
inifile_delete_replace_append:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r7, r3, #0
	ldr	r3, .L69
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r3, [sp, #64]
	mov	r4, r0
	mov	r5, r1
	mov	r8, r2
	str	ip, [sp, #8]
	str	ip, [sp, #16]
	str	r3, [sp, #4]
	beq	.L2
	subs	r3, r2, ip
	movne	r3, #1
	ldr	r0, [r1]
	ldr	r10, .L69+4
	cmp	r0, ip
	movne	r0, r3
	moveq	r0, ip
	bl	assert
	mov	r1, r5
	add	r2, sp, #8
	mov	r0, r4
	bl	inifile_find_group
	mov	r1, r5
	mov	r0, r4
	add	r2, sp, #12
	bl	inifile_next_group
	ldr	r6, [r10]
.L26:
	mov	r1, #65536
	mov	r0, #0
	bl	php_stream_temp_create
	subs	r9, r0, #0
	beq	.L63
	ldr	r3, .L69+8
	mov	r1, #0
	ldr	r2, [r3]
	ldr	r0, [r4]
	bl	php_stream_seek
	ldr	r0, [r4]
	bl	php_stream_tell
	ldr	r1, [sp, #12]
	cmp	r0, r1
	bne	.L5
	ldr	r3, [r10]
	ldr	fp, .L69+12
.L4:
	cmp	r6, r3
	bne	.L14
	cmp	r8, #0
	beq	.L11
	ldr	r0, [r5]
	cmp	r0, #0
	bne	.L64
.L10:
	cmp	r9, #0
	beq	.L20
	mov	r0, r9
	bl	php_stream_tell
	cmp	r0, #0
	bne	.L65
.L21:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L25
.L24:
	ldr	r0, [r3]
	bl	php_stream_close
	mov	r1, #0
	ldr	r0, [sp, #16]
	bl	inifile_free
.L22:
	cmp	r9, #0
	beq	.L23
.L25:
	mov	r0, r9
	bl	php_stream_close
.L23:
	ldr	r0, [r4]
	bl	php_stream_flush
	ldr	r2, [fp]
	mov	r1, #0
	ldr	r0, [r4]
	bl	php_stream_seek
	ldr	r3, .L69
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L66
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, #1
	bl	assert
	mov	r1, r5
	add	r2, sp, #8
	mov	r0, r4
	bl	inifile_find_group
	mov	r1, r5
	add	r2, sp, #12
	mov	r0, r4
	bl	inifile_next_group
	add	r3, sp, #16
	mov	r0, r4
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #8]
	bl	inifile_copy_to
	ldr	r10, .L69+4
	mov	r6, r0
	ldr	r3, [r10]
	cmp	r3, r0
	beq	.L26
	mov	r9, r7
	ldr	fp, .L69+12
.L14:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L24
	b	.L22
.L63:
	ldr	r3, .L69+16
	ldr	r2, .L69+20
	ldr	r1, [r3]
	bl	php_error_docref
	ldr	r2, .L69+24
	ldr	r3, [r10]
	ldr	r6, [r2]
	ldr	fp, .L69+12
	b	.L4
.L20:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L24
	b	.L23
.L64:
	bl	strlen
	cmp	r0, #0
	beq	.L12
.L11:
	cmp	r7, #0
	beq	.L67
	ldr	r1, [sp, #12]
.L13:
	mov	r0, r4
	bl	inifile_truncate
	mov	r6, r0
.L12:
	ldr	r3, [r10]
	cmp	r3, r6
	bne	.L14
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L10
	bl	strlen
	cmp	r0, #0
	beq	.L10
	cmp	r7, #0
	bne	.L15
	ldr	r1, [sp, #16]
	cmp	r1, #0
	beq	.L15
	mov	r2, r5
	mov	r0, r4
	ldr	r3, [sp, #4]
	bl	inifile_filter
	mov	r6, r0
.L15:
	cmp	r8, #0
	beq	.L10
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #12]
	cmp	r2, r3
	beq	.L68
.L17:
	ldr	r3, [r8]
	ldr	r1, .L69+28
	cmp	r3, #0
	moveq	r3, r1
	ldr	r2, [r5]
	ldr	r1, .L69+32
	ldr	r0, [r4]
	bl	php_stream_printf
	b	.L10
.L67:
	ldr	r1, [sp, #8]
	b	.L13
.L5:
	ldr	fp, .L69+12
	ldr	r0, [r4]
	ldr	r2, [fp]
	bl	php_stream_seek
	ldr	r2, .L69+36
	mov	r3, #0
	mov	r1, r9
	ldr	r2, [r2]
	ldr	r0, [r4]
	bl	php_stream_copy_to_stream_ex
	ldr	r3, [r10]
	cmp	r0, r3
	beq	.L4
	ldr	r3, .L69+16
	ldr	r2, .L69+40
	ldr	r1, [r3]
	mov	r0, #0
	bl	php_error_docref
	ldr	r2, .L69+24
	ldr	r3, [r10]
	ldr	r6, [r2]
	b	.L4
.L65:
	mov	r1, #0
	ldr	r2, [fp]
	mov	r0, r9
	bl	php_stream_seek
	ldr	r3, .L69+8
	mov	r1, #0
	ldr	r2, [r3]
	ldr	r0, [r4]
	bl	php_stream_seek
	ldr	r2, .L69+36
	mov	r3, #0
	mov	r0, r9
	ldr	r2, [r2]
	ldr	r1, [r4]
	bl	php_stream_copy_to_stream_ex
	ldr	r3, [r10]
	cmp	r0, r3
	beq	.L21
	mov	r0, #0
	ldr	r1, .L69+44
	bl	zend_throw_error
	ldr	r3, .L69+24
	ldr	r6, [r3]
	b	.L21
.L68:
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L17
	bl	strlen
	cmp	r0, #0
	beq	.L17
	ldr	r2, [r5, #4]
	ldr	r1, .L69+48
	ldr	r0, [r4]
	bl	php_stream_printf
	b	.L17
.L66:
	bl	__stack_chk_fail
.L70:
	.align	2
.L69:
	.word	.LC6
	.word	SUCCESS
	.word	SEEK_END
	.word	SEEK_SET
	.word	E_WARNING
	.word	.LC1
	.word	FAILURE
	.word	.LC0
	.word	.LC4
	.word	PHP_STREAM_COPY_ALL
	.word	.LC2
	.word	.LC5
	.word	.LC3
	.size	inifile_delete_replace_append, .-inifile_delete_replace_append
	.comm	SUCCESS,4,4
	.comm	SEEK_SET,4,4
	.comm	SEEK_END,4,4
	.comm	PHP_STREAM_COPY_ALL,4,4
	.comm	FAILURE,4,4
	.comm	E_WARNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
