	.file	"extr_ssl_tls.c_ssl_flight_append.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ssl_flight_append, @function
ssl_flight_append:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, 32
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	edi, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mbedtls_calloc@PLT
	test	rax, rax
	je	.L10
	mov	esi, DWORD PTR [rbx]
	mov	edi, 1
	mov	rbp, rax
	call	mbedtls_calloc@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L11
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR 20[rbx]
	call	memcpy@PLT
	mov	eax, DWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbx]
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 24[rbp], eax
	mov	rax, QWORD PTR [rdx]
	test	rax, rax
	je	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, rax
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L5
	mov	QWORD PTR 16[rdx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, 32
	mov	edi, 1
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	mov	eax, DWORD PTR MBEDTLS_ERR_SSL_ALLOC_FAILED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	QWORD PTR [rdx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movsx	rsi, DWORD PTR [rbx]
	mov	edi, 1
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	mov	rdi, rbp
	call	mbedtls_free@PLT
	mov	eax, DWORD PTR MBEDTLS_ERR_SSL_ALLOC_FAILED[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ssl_flight_append, .-ssl_flight_append
	.comm	MBEDTLS_ERR_SSL_ALLOC_FAILED,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_ssl_tls.c_ssl_flight_append.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_flight_append, %function
ssl_flight_append:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r1, #16
	mov	r5, r0
	mov	r0, #1
	bl	mbedtls_calloc
	subs	r4, r0, #0
	beq	.L10
	mov	r0, #1
	ldr	r1, [r5]
	bl	mbedtls_calloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L11
	ldr	r2, [r5]
	ldr	r1, [r5, #12]
	bl	memcpy
	ldm	r5, {r0, r2}
	mov	ip, #0
	ldr	r3, [r2]
	ldr	r1, [r5, #8]
	cmp	r3, ip
	stmib	r4, {r0, ip}
	str	r1, [r4, #12]
	beq	.L12
.L5:
	mov	r2, r3
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L5
	mov	r0, r3
	str	r4, [r2, #8]
	pop	{r4, r5, r6, pc}
.L10:
	mov	r1, #16
	mov	r0, #1
	bl	MBEDTLS_SSL_DEBUG_MSG
	ldr	r3, .L13
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, r3
	str	r4, [r2]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r1, [r5]
	mov	r0, #1
	bl	MBEDTLS_SSL_DEBUG_MSG
	mov	r0, r4
	bl	mbedtls_free
	ldr	r3, .L13
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	MBEDTLS_ERR_SSL_ALLOC_FAILED
	.size	ssl_flight_append, .-ssl_flight_append
	.comm	MBEDTLS_ERR_SSL_ALLOC_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
