	.file	"extr_f_tcm.c_uasp_alloc_cmd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uasp_alloc_cmd, @function
uasp_alloc_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rbx, rdi
	mov	rdi, QWORD PTR 16[rdi]
	call	usb_ep_alloc_request@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR [rax]
	call	kmalloc@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L10
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, DWORD PTR uasp_cmd_complete[rip]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	DWORD PTR 24[rdx], ecx
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR [rdx], rbx
	mov	DWORD PTR 8[rdx], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR [rbx]
	call	usb_ep_free_request@PLT
.L2:
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	uasp_alloc_cmd, .-uasp_alloc_cmd
	.comm	uasp_cmd_complete,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_f_tcm.c_uasp_alloc_cmd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uasp_alloc_cmd, %function
uasp_alloc_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L11
	mov	r4, r0
	ldr	r1, [r5]
	ldr	r0, [r0, #8]
	bl	usb_ep_alloc_request
	cmp	r0, #0
	str	r0, [r4]
	beq	.L2
	ldr	r3, [r4, #8]
	ldr	r1, [r5]
	ldr	r0, [r3]
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L10
	ldr	r2, [r4, #8]
	ldr	r3, .L11+4
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, [r4]
	str	r0, [r3, #8]
	str	r1, [r3, #12]
	mov	r0, #0
	str	r2, [r3, #4]
	str	r4, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, [r4]
	ldr	r0, [r4, #8]
	bl	usb_ep_free_request
.L2:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	GFP_KERNEL
	.word	uasp_cmd_complete
	.word	ENOMEM
	.size	uasp_alloc_cmd, .-uasp_alloc_cmd
	.comm	uasp_cmd_complete,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
