	.file	"extr_vcos_generic_blockpool.c_vcos_generic_blockpool_create_on_heap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: num_blocks %d block_size %d name %s"
	.text
	.p2align 4
	.globl	vcos_generic_blockpool_create_on_heap
	.type	vcos_generic_blockpool_create_on_heap, @function
vcos_generic_blockpool_create_on_heap:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	mov	edx, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	mov	esi, r12d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	edi, ebp
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 8[rsp], ecx
	call	VCOS_BLOCKPOOL_SIZE@PLT
	mov	rsi, rbx
	mov	rdi, rax
	mov	r15, rax
	call	vcos_malloc@PLT
	mov	esi, DWORD PTR VCOS_FUNCTION[rip]
	mov	r8, rbx
	mov	edx, ebp
	mov	r13, rax
	mov	ecx, r12d
	lea	rdi, .LC0[rip]
	call	vcos_log_trace@PLT
	test	r13, r13
	mov	r11d, DWORD PTR 8[rsp]
	je	.L7
	push	rbx
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 20[rsp]
	mov	edx, r12d
	mov	r9d, r11d
	mov	r8, r15
	mov	rcx, r13
	mov	esi, ebp
	mov	rdi, r14
	push	rax
	.cfi_def_cfa_offset 96
	call	vcos_generic_blockpool_init@PLT
	mov	r12, rax
	cmp	QWORD PTR VCOS_SUCCESS[rip], r12
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jne	.L8
	mov	rax, QWORD PTR [r14]
	mov	edx, DWORD PTR VCOS_BLOCKPOOL_SUBPOOL_FLAG_OWNS_MEM[rip]
	or	DWORD PTR [rax], edx
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L8:
	.cfi_restore_state
	mov	rdi, r13
	call	vcos_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12, QWORD PTR VCOS_ENOMEM[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vcos_generic_blockpool_create_on_heap, .-vcos_generic_blockpool_create_on_heap
	.comm	VCOS_SUCCESS,8,8
	.comm	VCOS_FUNCTION,4,4
	.comm	VCOS_ENOMEM,8,8
	.comm	VCOS_BLOCKPOOL_SUBPOOL_FLAG_OWNS_MEM,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_vcos_generic_blockpool.c_vcos_generic_blockpool_create_on_heap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: num_blocks %d block_size %d name %s\000"
	.text
	.align	2
	.global	vcos_generic_blockpool_create_on_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	vcos_generic_blockpool_create_on_heap, %function
vcos_generic_blockpool_create_on_heap:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r5, r2
	sub	sp, sp, #16
	mov	r2, r3
	mov	r1, r5
	mov	r8, r0
	mov	r0, r4
	mov	r7, r3
	ldr	r10, [sp, #52]
	bl	VCOS_BLOCKPOOL_SIZE
	mov	r1, r10
	mov	r9, r0
	bl	vcos_malloc
	mov	r6, r0
	ldr	r1, .L9
	str	r10, [sp]
	mov	r3, r5
	mov	r2, r4
	ldr	r1, [r1]
	ldr	r0, .L9+4
	bl	vcos_log_trace
	cmp	r6, #0
	beq	.L7
	ldr	r3, [sp, #48]
	mov	r1, r4
	str	r3, [sp, #8]
	mov	r2, r5
	mov	r3, r6
	mov	r0, r8
	str	r10, [sp, #12]
	str	r7, [sp, #4]
	str	r9, [sp]
	bl	vcos_generic_blockpool_init
	ldr	r3, .L9+8
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L8
	mov	r0, r4
	ldr	r2, [r8]
	ldr	r1, .L9+12
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r0, r6
	bl	vcos_free
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r3, .L9+16
	ldr	r4, [r3]
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	.align	2
.L9:
	.word	VCOS_FUNCTION
	.word	.LC0
	.word	VCOS_SUCCESS
	.word	VCOS_BLOCKPOOL_SUBPOOL_FLAG_OWNS_MEM
	.word	VCOS_ENOMEM
	.size	vcos_generic_blockpool_create_on_heap, .-vcos_generic_blockpool_create_on_heap
	.comm	VCOS_SUCCESS,4,4
	.comm	VCOS_FUNCTION,4,4
	.comm	VCOS_ENOMEM,4,4
	.comm	VCOS_BLOCKPOOL_SUBPOOL_FLAG_OWNS_MEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
