	.file	"extr_tree.c_xmlBufferGrow.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"growing buffer"
	.text
	.p2align 4
	.globl	xmlBufferGrow
	.type	xmlBufferGrow, @function
xmlBufferGrow:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L9
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r8, QWORD PTR [rdi]
	mov	rbx, rdi
	cmp	r8, QWORD PTR XML_BUFFER_ALLOC_IMMUTABLE[rip]
	je	.L1
	mov	edx, DWORD PTR 8[rdi]
	mov	ecx, DWORD PTR 12[rdi]
	add	edx, esi
	cmp	edx, ecx
	jb	.L1
	add	edx, 100
	lea	eax, [rcx+rcx]
	cmp	ecx, esi
	mov	rdi, QWORD PTR 16[rdi]
	cmovbe	eax, edx
	cmp	r8, QWORD PTR XML_BUFFER_ALLOC_IO[rip]
	mov	ebp, eax
	jne	.L5
	mov	r8, QWORD PTR 24[rbx]
	test	r8, r8
	je	.L5
	sub	rdi, r8
	mov	rsi, rdi
	mov	r12, rdi
	mov	rdi, r8
	sar	rsi, 2
	add	esi, eax
	call	xmlRealloc@PLT
	test	rax, rax
	je	.L8
	lea	rdi, [rax+r12]
	mov	DWORD PTR 12[rbx], ebp
	mov	QWORD PTR 16[rbx], rdi
	mov	QWORD PTR 24[rbx], rax
	mov	eax, ebp
	sub	eax, DWORD PTR 8[rbx]
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	mov	esi, ebp
	call	xmlRealloc@PLT
	test	rax, rax
	je	.L8
	mov	QWORD PTR 16[rbx], rax
	mov	eax, ebp
	sub	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 12[rbx], ebp
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, -1
	ret
.L8:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	lea	rdi, .LC0[rip]
	call	xmlTreeErrMemory@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	xmlBufferGrow, .-xmlBufferGrow
	.comm	XML_BUFFER_ALLOC_IO,8,8
	.comm	XML_BUFFER_ALLOC_IMMUTABLE,8,8
	.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_tree.c_xmlBufferGrow.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"growing buffer\000"
	.text
	.align	2
	.global	xmlBufferGrow
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmlBufferGrow, %function
xmlBufferGrow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	beq	.L9
	ldr	r2, .L20
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
	ldr	r5, [r4, #4]
	ldr	r0, [r4, #8]
	add	r5, r1, r5
	cmp	r5, r0
	bcc	.L11
	ldr	r2, .L20+4
	cmp	r0, r1
	ldr	r2, [r2]
	lslhi	r5, r0, #1
	addls	r5, r5, #100
	cmp	r3, r2
	ldr	r0, [r4, #12]
	bne	.L5
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L5
	sub	r6, r0, r3
	add	r1, r5, r6, asr #2
	mov	r0, r3
	bl	xmlRealloc
	subs	r3, r0, #0
	addne	r0, r3, r6
	strne	r0, [r4, #12]
	strne	r3, [r4, #16]
	bne	.L7
.L8:
	ldr	r0, .L20+8
	bl	xmlTreeErrMemory
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	mov	r1, r5
	bl	xmlRealloc
	cmp	r0, #0
	beq	.L8
	str	r0, [r4, #12]
.L7:
	ldr	r0, [r4, #4]
	str	r5, [r4, #8]
	sub	r0, r5, r0
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L21:
	.align	2
.L20:
	.word	XML_BUFFER_ALLOC_IMMUTABLE
	.word	XML_BUFFER_ALLOC_IO
	.word	.LC0
	.size	xmlBufferGrow, .-xmlBufferGrow
	.comm	XML_BUFFER_ALLOC_IO,4,4
	.comm	XML_BUFFER_ALLOC_IMMUTABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
