	.file	"extr_Ppmd7.c_Ppmd7_Alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Ppmd7_Alloc
	.type	Ppmd7_Alloc, @function
Ppmd7_Alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 8[rdi], 0
	mov	rbx, rdi
	je	.L2
	cmp	DWORD PTR [rdi], esi
	je	.L3
.L2:
	mov	rsi, r12
	mov	rdi, rbx
	call	Ppmd7_Free@PLT
	mov	eax, ebp
	mov	esi, 4
	mov	rdi, r12
	and	eax, 3
	sub	esi, eax
	mov	DWORD PTR 4[rbx], esi
	add	esi, ebp
	movsx	rsi, esi
	add	rsi, QWORD PTR UNIT_SIZE[rip]
	call	[QWORD PTR [r12]]
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L8
	mov	DWORD PTR [rbx], ebp
.L3:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR True[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR False[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	Ppmd7_Alloc, .-Ppmd7_Alloc
	.comm	UNIT_SIZE,8,8
	.comm	True,4,4
	.comm	False,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_Ppmd7.c_Ppmd7_Alloc.c"
	.text
	.align	2
	.global	Ppmd7_Alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	Ppmd7_Alloc, %function
Ppmd7_Alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	beq	.L2
	ldr	r3, [r0]
	cmp	r3, r1
	beq	.L3
.L2:
	mov	r1, r6
	mov	r0, r4
	bl	Ppmd7_Free
	ldr	r2, .L12
	and	r3, r5, #3
	rsb	r3, r3, #4
	ldr	r2, [r2]
	add	r1, r3, r5
	str	r3, [r4, #4]
	mov	r0, r6
	ldr	r3, [r6]
	add	r1, r1, r2
	blx	r3
	cmp	r0, #0
	str	r0, [r4, #8]
	strne	r5, [r4]
	beq	.L11
.L3:
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	UNIT_SIZE
	.word	True
	.word	False
	.size	Ppmd7_Alloc, .-Ppmd7_Alloc
	.comm	UNIT_SIZE,4,4
	.comm	True,4,4
	.comm	False,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
