	.file	"extr_hns_roce_hw_v2.c_set_frmr_seg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_frmr_seg, @function
set_frmr_seg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR 8[rdx]
	call	to_hr_mr@PLT
	mov	edi, DWORD PTR 48[rbx]
	mov	esi, DWORD PTR V2_RC_FRMR_WQE_BYTE_4_BIND_EN_S[rip]
	xor	edx, edx
	mov	r12, rax
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IB_ACCESS_MW_BIND[rip], eax
	setne	dl
	call	roce_set_bit@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 48[rbx]
	xor	edx, edx
	mov	esi, DWORD PTR V2_RC_FRMR_WQE_BYTE_4_ATOMIC_S[rip]
	test	DWORD PTR IB_ACCESS_REMOTE_ATOMIC[rip], eax
	setne	dl
	call	roce_set_bit@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 48[rbx]
	xor	edx, edx
	mov	esi, DWORD PTR V2_RC_FRMR_WQE_BYTE_4_RR_S[rip]
	test	DWORD PTR IB_ACCESS_REMOTE_READ[rip], eax
	setne	dl
	call	roce_set_bit@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 48[rbx]
	xor	edx, edx
	mov	esi, DWORD PTR V2_RC_FRMR_WQE_BYTE_4_RW_S[rip]
	test	DWORD PTR IB_ACCESS_REMOTE_WRITE[rip], eax
	setne	dl
	call	roce_set_bit@PLT
	mov	esi, DWORD PTR V2_RC_FRMR_WQE_BYTE_4_LW_S[rip]
	mov	eax, DWORD PTR 0[rbp]
	xor	edx, edx
	mov	edi, DWORD PTR 48[rbx]
	test	DWORD PTR IB_ACCESS_LOCAL_WRITE[rip], eax
	setne	dl
	call	roce_set_bit@PLT
	mov	edi, DWORD PTR [r12]
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR [r12]
	mov	ecx, 32
	mov	QWORD PTR 40[rbx], rax
	sar	edi, cl
	call	cpu_to_le32@PLT
	mov	QWORD PTR 32[rbx], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax]
	call	cpu_to_le32@PLT
	mov	ecx, 32
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax]
	sar	edi, cl
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	QWORD PTR 16[rbx], rax
	call	cpu_to_le32@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 4[rax]
	call	cpu_to_le64@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	DWORD PTR [rbx], eax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	edx, DWORD PTR V2_RC_FRMR_WQE_BYTE_40_PBL_BUF_PG_SZ_S[rip]
	mov	QWORD PTR 8[r13], rax
	mov	esi, DWORD PTR V2_RC_FRMR_WQE_BYTE_40_PBL_BUF_PG_SZ_M[rip]
	mov	rcx, QWORD PTR PG_SHIFT_OFFSET[rip]
	add	rcx, QWORD PTR 8[r12]
	call	roce_set_field@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, DWORD PTR V2_RC_FRMR_WQE_BYTE_40_BLK_MODE_S[rip]
	xor	edx, edx
	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
	jmp	roce_set_bit@PLT
	.cfi_endproc
.LFE0:
	.size	set_frmr_seg, .-set_frmr_seg
	.comm	V2_RC_FRMR_WQE_BYTE_4_RW_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_4_RR_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_4_LW_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_4_BIND_EN_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_4_ATOMIC_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_40_PBL_BUF_PG_SZ_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_40_PBL_BUF_PG_SZ_M,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_40_BLK_MODE_S,4,4
	.comm	PG_SHIFT_OFFSET,8,8
	.comm	IB_ACCESS_REMOTE_WRITE,4,4
	.comm	IB_ACCESS_REMOTE_READ,4,4
	.comm	IB_ACCESS_REMOTE_ATOMIC,4,4
	.comm	IB_ACCESS_MW_BIND,4,4
	.comm	IB_ACCESS_LOCAL_WRITE,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_set_frmr_seg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_frmr_seg, %function
set_frmr_seg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r2, #8]
	mov	r5, r2
	mov	r7, r1
	bl	to_hr_mr
	mov	r6, r0
	ldr	r3, .L4
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, .L4+4
	tst	r1, r2
	movne	r2, #1
	moveq	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r4, #24]
	bl	roce_set_bit
	ldr	r3, .L4+8
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, .L4+12
	tst	r1, r2
	movne	r2, #1
	moveq	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r4, #24]
	bl	roce_set_bit
	ldr	r3, .L4+16
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, .L4+20
	tst	r1, r2
	movne	r2, #1
	moveq	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r4, #24]
	bl	roce_set_bit
	ldr	r3, .L4+24
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, .L4+28
	tst	r1, r2
	movne	r2, #1
	moveq	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r4, #24]
	bl	roce_set_bit
	ldr	r3, .L4+32
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, .L4+36
	tst	r1, r2
	movne	r2, #1
	moveq	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r4, #24]
	bl	roce_set_bit
	ldr	r0, [r6]
	bl	cpu_to_le32
	mov	r8, #32
	ldr	r3, [r6]
	str	r0, [r4, #20]
	asr	r0, r3, r8
	bl	cpu_to_le32
	ldr	r3, [r5, #8]
	str	r0, [r4, #16]
	ldr	r0, [r3]
	bl	cpu_to_le32
	ldr	r3, [r5, #8]
	str	r0, [r4, #12]
	ldr	r0, [r3]
	asr	r0, r0, r8
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r5, #4]
	str	r3, [r4, #8]
	bl	cpu_to_le32
	ldr	r3, [r5, #8]
	str	r0, [r4, #4]
	ldr	r0, [r3, #4]
	bl	cpu_to_le64
	mov	r3, r0
	ldr	r0, [r6, #4]
	str	r3, [r4]
	bl	cpu_to_le32
	ldr	r3, .L4+40
	ldr	ip, [r6, #8]
	ldr	r3, [r3]
	ldr	r2, .L4+44
	ldr	r1, .L4+48
	str	r0, [r7, #4]
	ldr	r2, [r2]
	ldr	r0, [r7]
	ldr	r1, [r1]
	add	r3, ip, r3
	bl	roce_set_field
	ldr	r3, .L4+52
	ldr	r0, [r7]
	mov	r2, #0
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	b	roce_set_bit
.L5:
	.align	2
.L4:
	.word	IB_ACCESS_MW_BIND
	.word	V2_RC_FRMR_WQE_BYTE_4_BIND_EN_S
	.word	IB_ACCESS_REMOTE_ATOMIC
	.word	V2_RC_FRMR_WQE_BYTE_4_ATOMIC_S
	.word	IB_ACCESS_REMOTE_READ
	.word	V2_RC_FRMR_WQE_BYTE_4_RR_S
	.word	IB_ACCESS_REMOTE_WRITE
	.word	V2_RC_FRMR_WQE_BYTE_4_RW_S
	.word	IB_ACCESS_LOCAL_WRITE
	.word	V2_RC_FRMR_WQE_BYTE_4_LW_S
	.word	PG_SHIFT_OFFSET
	.word	V2_RC_FRMR_WQE_BYTE_40_PBL_BUF_PG_SZ_S
	.word	V2_RC_FRMR_WQE_BYTE_40_PBL_BUF_PG_SZ_M
	.word	V2_RC_FRMR_WQE_BYTE_40_BLK_MODE_S
	.size	set_frmr_seg, .-set_frmr_seg
	.comm	V2_RC_FRMR_WQE_BYTE_4_RW_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_4_RR_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_4_LW_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_4_BIND_EN_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_4_ATOMIC_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_40_PBL_BUF_PG_SZ_S,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_40_PBL_BUF_PG_SZ_M,4,4
	.comm	V2_RC_FRMR_WQE_BYTE_40_BLK_MODE_S,4,4
	.comm	PG_SHIFT_OFFSET,4,4
	.comm	IB_ACCESS_REMOTE_WRITE,4,4
	.comm	IB_ACCESS_REMOTE_READ,4,4
	.comm	IB_ACCESS_REMOTE_ATOMIC,4,4
	.comm	IB_ACCESS_MW_BIND,4,4
	.comm	IB_ACCESS_LOCAL_WRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
