	.file	"extr_cm.c_cm_format_req.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cm_format_req, @function
cm_format_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	mov	esi, DWORD PTR CM_MSG_SEQUENCE_REQ[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, r14
	mov	r12, QWORD PTR 48[rdx]
	mov	r13, QWORD PTR 88[rdx]
	call	cm_form_tid@PLT
	mov	esi, DWORD PTR CM_REQ_ATTR_ID[rip]
	lea	rdi, 88[rbx]
	mov	edx, eax
	call	cm_format_mad_hdr@PLT
	mov	eax, DWORD PTR 16[r14]
	mov	edi, DWORD PTR 76[rbp]
	mov	DWORD PTR 84[rbx], eax
	mov	eax, DWORD PTR 80[rbp]
	mov	DWORD PTR 80[rbx], eax
	mov	rax, QWORD PTR 8[r14]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 76[rbx], eax
	call	cpu_to_be32@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	cm_req_set_local_qpn@PLT
	mov	esi, DWORD PTR 72[rbp]
	mov	rdi, rbx
	call	cm_req_set_init_depth@PLT
	mov	esi, DWORD PTR 68[rbp]
	mov	rdi, rbx
	call	cm_req_set_remote_resp_timeout@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbx
	call	cm_req_set_qp_type@PLT
	mov	esi, DWORD PTR 64[rbp]
	mov	rdi, rbx
	call	cm_req_set_flow_ctrl@PLT
	mov	edi, DWORD PTR 60[rbp]
	call	cpu_to_be32@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	cm_req_set_starting_psn@PLT
	mov	esi, DWORD PTR 56[rbp]
	mov	rdi, rbx
	call	cm_req_set_local_resp_timeout@PLT
	mov	rax, QWORD PTR 48[rbp]
	mov	rdi, rbx
	mov	edx, DWORD PTR 52[rax]
	mov	esi, DWORD PTR 48[rax]
	mov	DWORD PTR 72[rbx], edx
	call	cm_req_set_path_mtu@PLT
	mov	esi, DWORD PTR 40[rbp]
	mov	rdi, rbx
	call	cm_req_set_max_cm_retries@PLT
	mov	rax, QWORD PTR IB_QPT_XRC_INI[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L2
	mov	esi, DWORD PTR 36[rbp]
	mov	rdi, rbx
	call	cm_req_set_resp_res@PLT
	mov	esi, DWORD PTR 32[rbp]
	mov	rdi, rbx
	call	cm_req_set_retry_count@PLT
	mov	esi, DWORD PTR 28[rbp]
	mov	rdi, rbx
	call	cm_req_set_rnr_retry_count@PLT
	mov	esi, DWORD PTR 24[rbp]
	mov	rdi, rbx
	call	cm_req_set_srq@PLT
.L2:
	cmp	DWORD PTR [r12], 1
	jle	.L20
	mov	rax, QWORD PTR IB_LID_PERMISSIVE[rip]
	mov	QWORD PTR 64[rbx], rax
	mov	QWORD PTR 56[rbx], rax
.L4:
	mov	eax, DWORD PTR 28[r12]
	mov	esi, DWORD PTR 20[r12]
	mov	rdi, rbx
	mov	DWORD PTR 48[rbx], eax
	mov	eax, DWORD PTR 24[r12]
	mov	DWORD PTR 44[rbx], eax
	call	cm_req_set_primary_flow_label@PLT
	mov	esi, DWORD PTR 16[r12]
	mov	rdi, rbx
	call	cm_req_set_primary_packet_rate@PLT
	mov	eax, DWORD PTR 12[r12]
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, rbx
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR [rbx], eax
	call	cm_req_set_primary_sl@PLT
	xor	esi, esi
	cmp	DWORD PTR [r12], 1
	mov	rdi, rbx
	setle	sil
	call	cm_req_set_primary_subnet_local@PLT
	mov	rax, QWORD PTR [r14]
	mov	esi, DWORD PTR 4[r12]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	cm_ack_timeout@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	cm_req_set_primary_local_ack_timeout@PLT
	test	r13, r13
	je	.L5
	cmp	DWORD PTR 0[r13], 1
	jle	.L21
	mov	rax, QWORD PTR IB_LID_PERMISSIVE[rip]
	mov	QWORD PTR 32[rbx], rax
	mov	QWORD PTR 24[rbx], rax
.L7:
	mov	eax, DWORD PTR 28[r13]
	mov	esi, DWORD PTR 20[r13]
	mov	rdi, rbx
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR 24[r13]
	mov	DWORD PTR 16[rbx], eax
	call	cm_req_set_alt_flow_label@PLT
	mov	esi, DWORD PTR 16[r13]
	mov	rdi, rbx
	call	cm_req_set_alt_packet_rate@PLT
	mov	eax, DWORD PTR 12[r13]
	mov	esi, DWORD PTR 8[r13]
	mov	rdi, rbx
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR 4[rbx], eax
	call	cm_req_set_alt_sl@PLT
	xor	esi, esi
	cmp	DWORD PTR 0[r13], 1
	mov	rdi, rbx
	setle	sil
	call	cm_req_set_alt_subnet_local@PLT
	mov	rax, QWORD PTR [r14]
	mov	esi, DWORD PTR 4[r13]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	cm_ack_timeout@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	cm_req_set_alt_local_ack_timeout@PLT
.L5:
	mov	rsi, QWORD PTR 16[rbp]
	test	rsi, rsi
	je	.L1
	mov	rdx, QWORD PTR 8[rbp]
	test	rdx, rdx
	jne	.L22
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L21:
	.cfi_restore_state
	mov	rax, QWORD PTR 40[r13]
	mov	QWORD PTR 32[rbx], rax
	mov	rax, QWORD PTR 32[r13]
	mov	QWORD PTR 24[rbx], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR 40[r12]
	mov	QWORD PTR 64[rbx], rax
	mov	rax, QWORD PTR 32[r12]
	mov	QWORD PTR 56[rbx], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR 8[rbx]
	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
	jmp	memcpy@PLT
	.cfi_endproc
.LFE0:
	.size	cm_format_req, .-cm_format_req
	.comm	IB_QPT_XRC_INI,8,8
	.comm	IB_LID_PERMISSIVE,8,8
	.comm	CM_REQ_ATTR_ID,4,4
	.comm	CM_MSG_SEQUENCE_REQ,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_cm.c_cm_format_req.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cm_format_req, %function
cm_format_req:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	ldr	r3, .L20
	ldr	r2, .L20+4
	mov	r4, r0
	mov	r8, r1
	mov	r0, r1
	ldr	r1, [r3]
	ldr	r9, [r2]
	ldr	r6, [r5, #32]
	ldr	r7, [r5, #64]
	bl	cm_form_tid
	mov	r1, r9
	mov	r2, r0
	add	r0, r4, #68
	bl	cm_format_mad_hdr
	ldr	r3, [r8, #4]
	ldr	r2, [r5, #60]
	ldr	r3, [r3]
	ldr	r1, [r8, #8]
	ldr	r0, [r5, #56]
	str	r2, [r4, #60]
	str	r3, [r4, #56]
	str	r1, [r4, #64]
	bl	cpu_to_be32
	mov	r1, r0
	mov	r0, r4
	bl	cm_req_set_local_qpn
	ldr	r1, [r5, #52]
	mov	r0, r4
	bl	cm_req_set_init_depth
	ldr	r1, [r5, #48]
	mov	r0, r4
	bl	cm_req_set_remote_resp_timeout
	ldr	r1, [r5]
	mov	r0, r4
	bl	cm_req_set_qp_type
	ldr	r1, [r5, #44]
	mov	r0, r4
	bl	cm_req_set_flow_ctrl
	ldr	r0, [r5, #40]
	bl	cpu_to_be32
	mov	r1, r0
	mov	r0, r4
	bl	cm_req_set_starting_psn
	ldr	r1, [r5, #36]
	mov	r0, r4
	bl	cm_req_set_local_resp_timeout
	ldr	r3, [r5, #32]
	mov	r0, r4
	ldr	r2, [r3, #44]
	ldr	r1, [r3, #40]
	str	r2, [r4, #52]
	bl	cm_req_set_path_mtu
	mov	r0, r4
	ldr	r1, [r5, #28]
	bl	cm_req_set_max_cm_retries
	ldr	r3, .L20+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r1, [r5, #24]
	mov	r0, r4
	bl	cm_req_set_resp_res
	ldr	r1, [r5, #20]
	mov	r0, r4
	bl	cm_req_set_retry_count
	ldr	r1, [r5, #16]
	mov	r0, r4
	bl	cm_req_set_rnr_retry_count
	mov	r0, r4
	ldr	r1, [r5, #12]
	bl	cm_req_set_srq
.L2:
	ldr	r3, [r6]
	ldr	r1, [r6, #20]
	cmp	r3, #1
	ldrgt	r3, .L20+12
	ldrle	r2, [r6, #36]
	ldrle	r3, [r6, #32]
	ldrgt	r3, [r3]
	strle	r2, [r4, #48]
	strgt	r3, [r4, #48]
	ldr	r2, [r6, #28]
	str	r3, [r4, #44]
	ldr	r3, [r6, #24]
	mov	r0, r4
	str	r2, [r4, #40]
	str	r3, [r4, #36]
	bl	cm_req_set_primary_flow_label
	ldr	r1, [r6, #16]
	mov	r0, r4
	bl	cm_req_set_primary_packet_rate
	ldr	r2, [r6, #12]
	ldr	r3, [r6]
	ldr	r1, [r6, #8]
	str	r2, [r4, #32]
	str	r3, [r4]
	mov	r0, r4
	bl	cm_req_set_primary_sl
	ldr	r1, [r6]
	mov	r0, r4
	cmp	r1, #1
	movgt	r1, #0
	movle	r1, #1
	bl	cm_req_set_primary_subnet_local
	ldr	r3, [r8]
	ldr	r1, [r6, #4]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	cm_ack_timeout
	mov	r1, r0
	mov	r0, r4
	bl	cm_req_set_primary_local_ack_timeout
	cmp	r7, #0
	beq	.L5
	ldr	r3, [r7]
	ldr	r1, [r7, #20]
	cmp	r3, #1
	ldrgt	r3, .L20+12
	ldrle	r2, [r7, #36]
	ldrle	r3, [r7, #32]
	ldrgt	r3, [r3]
	strle	r2, [r4, #28]
	strgt	r3, [r4, #28]
	ldr	r2, [r7, #28]
	str	r3, [r4, #24]
	ldr	r3, [r7, #24]
	mov	r0, r4
	str	r2, [r4, #20]
	str	r3, [r4, #16]
	bl	cm_req_set_alt_flow_label
	ldr	r1, [r7, #16]
	mov	r0, r4
	bl	cm_req_set_alt_packet_rate
	ldr	r2, [r7, #12]
	ldr	r3, [r7]
	ldr	r1, [r7, #8]
	str	r2, [r4, #12]
	str	r3, [r4, #4]
	mov	r0, r4
	bl	cm_req_set_alt_sl
	ldr	r1, [r7]
	mov	r0, r4
	cmp	r1, #1
	movgt	r1, #0
	movle	r1, #1
	bl	cm_req_set_alt_subnet_local
	ldr	r3, [r8]
	ldr	r1, [r7, #4]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	cm_ack_timeout
	mov	r1, r0
	mov	r0, r4
	bl	cm_req_set_alt_local_ack_timeout
.L5:
	ldr	r1, [r5, #8]
	cmp	r1, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r5, #4]
	cmp	r2, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	memcpy
.L21:
	.align	2
.L20:
	.word	CM_MSG_SEQUENCE_REQ
	.word	CM_REQ_ATTR_ID
	.word	IB_QPT_XRC_INI
	.word	IB_LID_PERMISSIVE
	.size	cm_format_req, .-cm_format_req
	.comm	IB_QPT_XRC_INI,4,4
	.comm	IB_LID_PERMISSIVE,4,4
	.comm	CM_REQ_ATTR_ID,4,4
	.comm	CM_MSG_SEQUENCE_REQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
