	.file	"extr_textbuffer.c_tExtMemBufferPut.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tExtMemBufferPut
	.type	tExtMemBufferPut, @function
tExtMemBufferPut:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rdx, rdx
	je	.L7
	mov	r15, rsi
	mov	rsi, QWORD PTR 24[rdi]
	mov	r14, rdx
	test	rsi, rsi
	je	.L18
.L4:
	mov	rax, QWORD PTR [rsi]
	mov	r13, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 20[rbx]
	lea	rdx, [rax+r14]
	cmp	rdx, r13
	jle	.L19
	sub	r13, rax
	mov	r12, r14
	mov	r9, r14
	xor	ecx, ecx
	mov	r8, r13
	mov	rdx, r15
	sub	r12, r13
	call	tColModelAppend@PLT
	add	DWORD PTR 16[rbx], r13d
	add	DWORD PTR 32[rbx], r13d
	test	r12, r12
	jg	.L8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	QWORD PTR 8[rbx], r12
	mov	rbp, r12
	cmovle	rbp, QWORD PTR 8[rbx]
	mov	rcx, r13
	add	DWORD PTR 32[rbx], ebp
	mov	rsi, QWORD PTR 24[rbx]
	mov	r9, r14
	mov	rdx, r15
	mov	edi, DWORD PTR 20[rbx]
	mov	r8, rbp
	sub	r12, rbp
	add	r13, rbp
	call	tColModelAppend@PLT
	add	DWORD PTR 16[rbx], ebp
	test	r12, r12
	jle	.L7
.L8:
	mov	rdi, rbx
	call	tExtMemBufferAlloc@PLT
	test	eax, eax
	jne	.L20
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, -1
	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
.L19:
	.cfi_restore_state
	mov	r9, r14
	mov	r8, r14
	xor	ecx, ecx
	mov	rdx, r15
	call	tColModelAppend@PLT
	add	DWORD PTR 16[rbx], r14d
	add	DWORD PTR 32[rbx], r14d
.L7:
	mov	eax, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L18:
	.cfi_restore_state
	call	tExtMemBufferAlloc@PLT
	test	eax, eax
	je	.L9
	mov	rsi, QWORD PTR 24[rbx]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	tExtMemBufferPut, .-tExtMemBufferPut
	.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_textbuffer.c_tExtMemBufferPut.c"
	.text
	.align	2
	.global	tExtMemBufferPut
	.syntax unified
	.arm
	.fpu softvfp
	.type	tExtMemBufferPut, %function
tExtMemBufferPut:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	subs	r8, r2, #0
	mov	r4, r0
	sub	sp, sp, #12
	beq	.L7
	mov	r9, r1
	ldr	r1, [r0, #16]
	cmp	r1, #0
	beq	.L18
.L4:
	ldr	r3, [r1]
	ldr	r7, [r4, #4]
	add	r2, r3, r8
	cmp	r2, r7
	ldr	r0, [r4, #12]
	ble	.L19
	sub	r7, r7, r3
	mov	r2, r9
	mov	r3, #0
	stm	sp, {r7, r8}
	bl	tColModelAppend
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #20]
	sub	r6, r8, r7
	add	r2, r2, r7
	add	r3, r3, r7
	cmp	r6, #0
	str	r2, [r4, #8]
	str	r3, [r4, #20]
	bgt	.L8
	b	.L7
.L20:
	ldr	r5, [r4, #4]
	ldr	r3, [r4, #20]
	cmp	r6, r5
	movlt	r5, r6
	stm	sp, {r5, r8}
	add	r3, r3, r5
	str	r3, [r4, #20]
	mov	r2, r9
	mov	r3, r7
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #12]
	bl	tColModelAppend
	ldr	r3, [r4, #8]
	sub	r6, r6, r5
	add	r3, r3, r5
	cmp	r6, #0
	add	r7, r7, r5
	str	r3, [r4, #8]
	ble	.L7
.L8:
	mov	r0, r4
	bl	tExtMemBufferAlloc
	cmp	r0, #0
	bne	.L20
.L9:
	mvn	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L19:
	mov	r2, r9
	mov	r3, #0
	str	r8, [sp, #4]
	str	r8, [sp]
	bl	tColModelAppend
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #20]
	add	r3, r3, r8
	add	r8, r2, r8
	str	r3, [r4, #8]
	str	r8, [r4, #20]
.L7:
	ldr	r0, [r4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	bl	tExtMemBufferAlloc
	cmp	r0, #0
	ldrne	r1, [r4, #16]
	bne	.L4
	b	.L9
	.size	tExtMemBufferPut, .-tExtMemBufferPut
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
