	.file	"extr_ftp_fopen_wrapper.c_php_stream_ftp_stream_close.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wa+"
.LC1:
	.string	"FTP server error %d:%s"
.LC2:
	.string	"QUIT\r\n"
	.text
	.p2align 4
	.type	php_stream_ftp_stream_close, @function
php_stream_ftp_stream_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 528
	.cfi_def_cfa_offset 560
	mov	rbp, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 520[rsp], rax
	xor	eax, eax
	test	rbp, rbp
	je	.L1
	mov	edi, DWORD PTR 8[rsi]
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	call	strpbrk@PLT
	test	rax, rax
	jne	.L19
.L3:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	php_stream_write_string@PLT
	mov	rdi, rbp
	call	php_stream_close@PLT
	mov	QWORD PTR [rbx], 0
.L1:
	mov	rax, QWORD PTR 520[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 528
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, rbp
	call	GET_FTP_RESULT@PLT
	cmp	eax, 226
	je	.L8
	cmp	eax, 250
	je	.L8
	mov	esi, DWORD PTR E_WARNING[rip]
	mov	r8, rsp
	mov	ecx, eax
	xor	edi, edi
	lea	rdx, .LC1[rip]
	call	php_error_docref@PLT
	mov	r12d, DWORD PTR EOF[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	xor	r12d, r12d
	jmp	.L3
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	php_stream_ftp_stream_close, .-php_stream_ftp_stream_close
	.comm	E_WARNING,4,4
	.comm	EOF,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_ftp_fopen_wrapper.c_php_stream_ftp_stream_close.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wa+\000"
	.align	2
.LC1:
	.ascii	"FTP server error %d:%s\000"
	.align	2
.LC2:
	.ascii	"QUIT\015\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	php_stream_ftp_stream_close, %function
php_stream_ftp_stream_close:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r1]
	ldr	r3, .L15
	sub	sp, sp, #528
	cmp	r6, #0
	ldr	r3, [r3]
	str	r3, [sp, #524]
	mov	r3,#0
	moveq	r5, r6
	beq	.L1
	mov	r4, r1
	ldr	r1, .L15+4
	ldr	r0, [r4, #4]
	bl	strpbrk
	subs	r5, r0, #0
	bne	.L13
.L3:
	ldr	r1, .L15+8
	mov	r0, r6
	bl	php_stream_write_string
	mov	r0, r6
	bl	php_stream_close
	mov	r3, #0
	str	r3, [r4]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #524]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r5
	add	sp, sp, #528
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	mov	r0, r6
	bl	GET_FTP_RESULT
	cmp	r0, #226
	cmpne	r0, #250
	movne	r5, #1
	moveq	r5, #0
	beq	.L3
	ldr	r1, .L15+12
	add	r2, sp, #12
	mov	r3, r0
	ldr	r1, [r1]
	mov	r0, #0
	str	r2, [sp]
	ldr	r2, .L15+16
	bl	php_error_docref
	ldr	r3, .L15+20
	ldr	r5, [r3]
	b	.L3
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	E_WARNING
	.word	.LC1
	.word	EOF
	.size	php_stream_ftp_stream_close, .-php_stream_ftp_stream_close
	.comm	E_WARNING,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
