	.file	"extr_core-transaction.c_allocate_request.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERROR - corrupt request received - %08x %08x %08x\n"
	.text
	.p2align 4
	.type	allocate_request, @function
allocate_request:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	edi, DWORD PTR [rax]
	call	HEADER_GET_TCODE@PLT
	add	eax, -128
	cmp	eax, 4
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L7-.L4
	.long	.L3-.L4
	.long	.L12-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, 44
	mov	r13d, 4
	xor	ebp, ebp
.L6:
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	call	kmalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR 16[rbx]
	mov	ecx, eax
	and	eax, -8192
	and	ecx, 8191
	add	ecx, 4000
	lea	esi, 192[rcx+rax]
	add	eax, ecx
	cmp	ecx, 8000
	cmovl	esi, eax
	mov	eax, DWORD PTR 28[rbx]
	mov	DWORD PTR 36[r12], eax
	mov	eax, DWORD PTR 24[rbx]
	mov	DWORD PTR 16[r12], esi
	mov	DWORD PTR 32[r12], eax
	mov	eax, DWORD PTR free_response_callback[rip]
	mov	QWORD PTR 24[r12], 0
	mov	DWORD PTR 20[r12], eax
	mov	eax, DWORD PTR 20[rbx]
	mov	DWORD PTR [r12], r13d
	mov	DWORD PTR 12[r12], eax
	test	rbp, rbp
	je	.L11
	mov	edi, DWORD PTR 8[r12]
	mov	edx, r13d
	mov	rsi, rbp
	call	memcpy@PLT
.L11:
	mov	edi, DWORD PTR 4[r12]
	mov	rsi, QWORD PTR [rbx]
	mov	edx, 8
	call	memcpy@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	mov	rbp, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rax]
	call	HEADER_GET_DATA_LENGTH@PLT
	mov	r13d, eax
	lea	edi, 40[rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [rbx]
	xor	ebp, ebp
	mov	edi, DWORD PTR 12[rax]
	call	HEADER_GET_DATA_LENGTH@PLT
	mov	r13d, eax
	lea	edi, 40[rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [rbx]
	mov	edi, 44
	mov	r13d, 4
	lea	rbp, 12[rax]
	jmp	.L6
.L2:
	mov	rax, QWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	xor	r12d, r12d
	mov	ecx, DWORD PTR 8[rax]
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	call	fw_error@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	allocate_request, .-allocate_request
	.comm	free_response_callback,4,4
	.comm	GFP_ATOMIC,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_core-transaction.c_allocate_request.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR - corrupt request received - %08x %08x %08x\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_request, %function
allocate_request:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r3]
	bl	HEADER_GET_TCODE
	sub	r0, r0, #128
	cmp	r0, #4
	ldrls	pc, [pc, r0, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L3
	.word	.L12
	.word	.L5
	.word	.L3
.L12:
	mov	r0, #40
	mov	r7, #4
	mov	r6, #0
.L6:
	ldr	r3, .L21
	ldr	r1, [r3]
	bl	kmalloc
	subs	r4, r0, #0
	beq	.L1
	mov	r2, #0
	ldr	r1, [r5, #8]
	ldr	r0, .L21+4
	lsl	r3, r1, #19
	lsr	r3, r3, #19
	bic	r1, r1, #8128
	add	r3, r3, #4000
	bic	r1, r1, #63
	cmp	r3, #8000
	add	r3, r3, r1
	ldr	r1, [r5, #20]
	addge	r3, r3, #192
	ldr	r0, [r0]
	str	r1, [r4, #32]
	ldr	r1, [r5, #16]
	str	r3, [r4, #16]
	ldr	r3, [r5, #12]
	cmp	r6, r2
	str	r0, [r4, #20]
	str	r1, [r4, #28]
	str	r2, [r4, #24]
	str	r3, [r4, #12]
	str	r7, [r4]
	beq	.L11
	mov	r2, r7
	mov	r1, r6
	ldr	r0, [r4, #8]
	bl	memcpy
.L11:
	mov	r2, #4
	ldr	r1, [r5]
	ldr	r0, [r4, #4]
	bl	memcpy
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldm	r5, {r3, r6}
	ldr	r0, [r3, #12]
	bl	HEADER_GET_DATA_LENGTH
	mov	r7, r0
	add	r0, r0, #36
	b	.L6
.L5:
	ldr	r3, [r5]
	mov	r6, #0
	ldr	r0, [r3, #12]
	bl	HEADER_GET_DATA_LENGTH
	mov	r7, r0
	add	r0, r0, #36
	b	.L6
.L7:
	ldr	r6, [r5]
	mov	r0, #40
	mov	r7, #4
	add	r6, r6, #12
	b	.L6
.L2:
	ldr	r1, [r5]
	ldr	r0, .L21+8
	ldm	r1, {r1, r2, r3}
	bl	fw_error
	mov	r4, #0
	b	.L1
.L22:
	.align	2
.L21:
	.word	GFP_ATOMIC
	.word	free_response_callback
	.word	.LC0
	.size	allocate_request, .-allocate_request
	.comm	free_response_callback,4,4
	.comm	GFP_ATOMIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
