	.file	"extr_hns_roce_pd.c_hns_roce_alloc_pd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[alloc_pd]hns_roce_pd_alloc failed!\n"
	.align 8
.LC1:
	.string	"[alloc_pd]ib_copy_to_udata failed!\n"
	.text
	.p2align 4
	.globl	hns_roce_alloc_pd
	.type	hns_roce_alloc_pd, @function
hns_roce_alloc_pd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rbp
	call	to_hr_dev@PLT
	mov	rdi, r12
	mov	r13, QWORD PTR [rax]
	call	to_hr_pd@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	to_hr_dev@PLT
	mov	rsi, rbx
	mov	rdi, rax
	call	hns_roce_pd_alloc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	test	r14, r14
	je	.L1
	mov	eax, DWORD PTR [rbx]
	lea	rsi, 4[rsp]
	mov	edx, 4
	mov	rdi, r14
	mov	DWORD PTR 4[rsp], eax
	call	ib_copy_to_udata@PLT
	test	rax, rax
	jne	.L15
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12d, DWORD PTR [rbx]
	mov	rdi, rbp
	call	to_hr_dev@PLT
	mov	rdi, rax
	mov	esi, r12d
	call	hns_roce_pd_free@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	dev_err@PLT
	mov	r12d, DWORD PTR EFAULT[rip]
	neg	r12d
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hns_roce_alloc_pd, .-hns_roce_alloc_pd
	.comm	EFAULT,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_pd.c_hns_roce_alloc_pd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[alloc_pd]hns_roce_pd_alloc failed!\012\000"
	.align	2
.LC1:
	.ascii	"[alloc_pd]ib_copy_to_udata failed!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hns_roce_alloc_pd
	.syntax unified
	.arm
	.fpu softvfp
	.type	hns_roce_alloc_pd, %function
hns_roce_alloc_pd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	ldr	r3, .L17
	sub	sp, sp, #8
	mov	r4, r0
	mov	r0, r7
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_hr_dev
	mov	r3, r0
	mov	r0, r4
	ldr	r8, [r3]
	bl	to_hr_pd
	mov	r5, r0
	mov	r0, r7
	bl	to_hr_dev
	mov	r1, r5
	bl	hns_roce_pd_alloc
	subs	r4, r0, #0
	bne	.L14
	cmp	r6, #0
	beq	.L1
	ldr	r3, [r5]
	mov	r0, r6
	mov	r2, #4
	mov	r1, sp
	str	r3, [sp]
	bl	ib_copy_to_udata
	subs	r4, r0, #0
	bne	.L15
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r8
	ldr	r1, .L17+4
	bl	dev_err
	b	.L1
.L15:
	mov	r0, r7
	bl	to_hr_dev
	ldr	r1, [r5]
	bl	hns_roce_pd_free
	mov	r0, r8
	ldr	r1, .L17+8
	bl	dev_err
	ldr	r3, .L17+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	EFAULT
	.size	hns_roce_alloc_pd, .-hns_roce_alloc_pd
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
