	.file	"extr_aac.c_aac_alloc_command.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.text
	.p2align 4
	.globl	aac_alloc_command
	.type	aac_alloc_command, @function
aac_alloc_command:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	lea	rdx, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rsi, QWORD PTR HBA_FLAGS_DBG_FUNCTION_ENTRY_B[rip]
	call	fwprintf@PLT
	mov	rdi, rbx
	call	aac_dequeue_free@PLT
	test	rax, rax
	je	.L7
	mov	QWORD PTR 0[rbp], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rbx], rax
	jl	.L8
.L3:
	mov	eax, DWORD PTR EBUSY[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
.L8:
	.cfi_restore_state
	lea	rbp, 20[rbx]
	mov	rdi, rbp
	call	mtx_lock@PLT
	mov	eax, DWORD PTR AAC_AIFFLAGS_ALLOCFIBS[rip]
	or	DWORD PTR 24[rbx], eax
	mov	rdi, rbp
	call	mtx_unlock@PLT
	mov	edi, DWORD PTR 16[rbx]
	call	wakeup@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	aac_alloc_command, .-aac_alloc_command
	.comm	HBA_FLAGS_DBG_FUNCTION_ENTRY_B,8,8
	.comm	EBUSY,4,4
	.comm	AAC_AIFFLAGS_ALLOCFIBS,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_aac.c_aac_alloc_command.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.text
	.align	2
	.global	aac_alloc_command
	.syntax unified
	.arm
	.fpu softvfp
	.type	aac_alloc_command, %function
aac_alloc_command:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r2, .L9
	mov	r5, r1
	ldr	r1, [r2]
	ldr	r2, .L9+4
	bl	fwprintf
	mov	r0, r4
	bl	aac_dequeue_free
	subs	r3, r0, #0
	beq	.L7
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L7:
	ldm	r4, {r2, r3}
	cmp	r2, r3
	blt	.L8
.L3:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L8:
	add	r5, r4, #12
	mov	r0, r5
	bl	mtx_lock
	ldr	r2, .L9+12
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	mov	r0, r5
	orr	r3, r3, r2
	str	r3, [r4, #16]
	bl	mtx_unlock
	ldr	r0, [r4, #8]
	bl	wakeup
	b	.L3
.L10:
	.align	2
.L9:
	.word	HBA_FLAGS_DBG_FUNCTION_ENTRY_B
	.word	.LC0
	.word	EBUSY
	.word	AAC_AIFFLAGS_ALLOCFIBS
	.size	aac_alloc_command, .-aac_alloc_command
	.comm	HBA_FLAGS_DBG_FUNCTION_ENTRY_B,4,4
	.comm	EBUSY,4,4
	.comm	AAC_AIFFLAGS_ALLOCFIBS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
