	.file	"extr_dln2.c_dln2_prep_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dln2_prep_buf, @function
dln2_prep_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [r8]
	mov	DWORD PTR 12[rsp], esi
	mov	esi, r9d
	lea	ebp, 32[rax]
	mov	edi, ebp
	call	kmalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	r10d, DWORD PTR 12[rsp]
	mov	edi, r10d
	call	cpu_to_le16@PLT
	mov	edi, ebp
	mov	QWORD PTR 24[r12], rax
	call	cpu_to_le16@PLT
	mov	edi, r15d
	mov	QWORD PTR 16[r12], rax
	call	cpu_to_le16@PLT
	mov	edi, r14d
	mov	QWORD PTR 8[r12], rax
	call	cpu_to_le16@PLT
	mov	edx, DWORD PTR [rbx]
	lea	rdi, 32[r12]
	mov	rsi, r13
	mov	QWORD PTR [r12], rax
	call	memcpy@PLT
	mov	DWORD PTR [rbx], ebp
.L1:
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	dln2_prep_buf, .-dln2_prep_buf
	.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_dln2.c_dln2_prep_buf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dln2_prep_buf, %function
dln2_prep_buf:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [sp, #32]
	mov	r5, r1
	ldr	r6, [r8]
	mov	r9, r0
	add	r6, r6, #16
	mov	r0, r6
	ldr	r1, [sp, #36]
	mov	r10, r2
	mov	r7, r3
	bl	kmalloc
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r5
	bl	cpu_to_le16
	str	r0, [r4, #12]
	mov	r0, r6
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, r10
	str	r3, [r4, #8]
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, r9
	str	r3, [r4, #4]
	bl	cpu_to_le16
	mov	r2, r4
	str	r0, [r2], #16
	mov	r0, r2
	mov	r1, r7
	ldr	r2, [r8]
	bl	memcpy
	str	r6, [r8]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	dln2_prep_buf, .-dln2_prep_buf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
