	.file	"extr_hns_roce_hw_v2.c_hns_roce_v2_record_opt_fields.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hns_roce_v2_record_opt_fields, @function
hns_roce_v2_record_opt_fields:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	call	to_hr_dev@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	to_hr_qp@PLT
	test	DWORD PTR IB_QP_ACCESS_FLAGS[rip], ebx
	je	.L2
	mov	edx, DWORD PTR 12[r12]
	mov	DWORD PTR 16[rax], edx
.L2:
	test	DWORD PTR IB_QP_MAX_DEST_RD_ATOMIC[rip], ebx
	je	.L3
	mov	edx, DWORD PTR 8[r12]
	mov	DWORD PTR 12[rax], edx
.L3:
	test	DWORD PTR IB_QP_PORT[rip], ebx
	je	.L1
	mov	rdx, QWORD PTR [r12]
	mov	rcx, QWORD PTR 0[r13]
	sub	rdx, 1
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR [rcx+rdx*4]
	mov	DWORD PTR 8[rax], edx
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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	hns_roce_v2_record_opt_fields, .-hns_roce_v2_record_opt_fields
	.comm	IB_QP_PORT,4,4
	.comm	IB_QP_MAX_DEST_RD_ATOMIC,4,4
	.comm	IB_QP_ACCESS_FLAGS,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_hw_v2.c_hns_roce_v2_record_opt_fields.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hns_roce_v2_record_opt_fields, %function
hns_roce_v2_record_opt_fields:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r4, r2
	mov	r6, r1
	bl	to_hr_dev
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	to_hr_qp
	ldr	r3, .L16
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, [r6, #8]
	strne	r3, [r0, #12]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, [r6, #4]
	strne	r3, [r0, #8]
	ldr	r3, .L16+8
	ldr	r3, [r3]
	tst	r4, r3
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r6]
	ldr	r2, [r5]
	sub	r3, r3, #1
	ldr	r2, [r2, r3, lsl #2]
	str	r3, [r0]
	str	r2, [r0, #4]
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	IB_QP_ACCESS_FLAGS
	.word	IB_QP_MAX_DEST_RD_ATOMIC
	.word	IB_QP_PORT
	.size	hns_roce_v2_record_opt_fields, .-hns_roce_v2_record_opt_fields
	.comm	IB_QP_PORT,4,4
	.comm	IB_QP_MAX_DEST_RD_ATOMIC,4,4
	.comm	IB_QP_ACCESS_FLAGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
