	.file	"extr_buffer.c_buffer_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	buffer_init
	.type	buffer_init, @function
buffer_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	edi, esi
	lea	r13, 48[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	DWORD PTR [rbx], esi
	test	rdx, rdx
	je	.L2
	mov	rsi, rdx
	mov	rdi, r13
	mov	edx, 4
	call	memcpy@PLT
.L3:
	mov	QWORD PTR 40[rbx], r12
	mov	QWORD PTR 8[rbx], rbp
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	esi, -1
	je	.L5
	mov	rsi, r13
	call	zend_fstat@PLT
	cmp	eax, -1
	jne	.L3
.L5:
	mov	edx, 4
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	buffer_init, .-buffer_init
	.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_buffer.c_buffer_init.c"
	.text
	.align	2
	.global	buffer_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	buffer_init, %function
buffer_init:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r5, r4
	subs	r1, r2, #0
	mov	r6, r3
	ldr	r7, [sp, #24]
	str	r0, [r5], #24
	beq	.L2
	mov	r0, r5
	mov	r2, #4
	bl	memcpy
.L3:
	mov	r2, #0
	str	r6, [r4, #20]
	str	r7, [r4, #4]
	str	r2, [r4, #16]
	str	r2, [r4, #12]
	str	r2, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmn	r0, #1
	beq	.L5
	mov	r1, r5
	bl	zend_fstat
	cmn	r0, #1
	bne	.L3
.L5:
	mov	r3, #0
	strb	r3, [r4, #24]
	strb	r3, [r5, #1]
	strb	r3, [r5, #2]
	strb	r3, [r5, #3]
	b	.L3
	.size	buffer_init, .-buffer_init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
