	.file	"extr_hns_roce_hem.c_hem_list_alloc_item.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hem_list_alloc_item, @function
hem_list_alloc_item:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	mov	edi, 28
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	test	ebp, ebp
	jne	.L12
.L3:
	mov	DWORD PTR [r12], ebx
	lea	rdi, 16[r12]
	mov	DWORD PTR 4[r12], r14d
	mov	DWORD PTR 8[r12], r13d
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 12[r12]
	call	INIT_LIST_HEAD@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR BA_BYTE_LEN[rip]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, 24[rax]
	mov	edi, DWORD PTR [r15]
	imul	esi, ebx
	call	dma_alloc_coherent@PLT
	mov	DWORD PTR 20[r12], eax
	test	eax, eax
	jne	.L3
	mov	rdi, r12
	xor	r12d, r12d
	call	kfree@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hem_list_alloc_item, .-hem_list_alloc_item
	.comm	GFP_KERNEL,4,4
	.comm	BA_BYTE_LEN,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_hns_roce_hem.c_hem_list_alloc_item.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hem_list_alloc_item, %function
hem_list_alloc_item:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, .L13
	mov	r8, r0
	mov	r7, r1
	mov	r0, #28
	ldr	r1, [r9]
	mov	r6, r2
	mov	r5, r3
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, [sp, #32]
	cmp	r3, #0
	bne	.L12
.L3:
	stm	r4, {r5, r7}
	str	r6, [r4, #8]
	add	r0, r4, #16
	bl	INIT_LIST_HEAD
	add	r0, r4, #12
	bl	INIT_LIST_HEAD
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r2, .L13+4
	ldr	r0, [r8]
	ldr	r1, [r2]
	ldr	r3, [r9]
	mul	r1, r5, r1
	add	r2, r4, #24
	bl	dma_alloc_coherent
	cmp	r0, #0
	mov	r8, r0
	str	r0, [r4, #20]
	bne	.L3
	mov	r0, r4
	bl	kfree
	mov	r4, r8
	b	.L1
.L14:
	.align	2
.L13:
	.word	GFP_KERNEL
	.word	BA_BYTE_LEN
	.size	hem_list_alloc_item, .-hem_list_alloc_item
	.comm	GFP_KERNEL,4,4
	.comm	BA_BYTE_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
