	.file	"extr_mthca_qp.c_mthca_path_set.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"sgid_index (%u) too large. max is %d\n"
	.text
	.p2align 4
	.type	mthca_path_set, @function
mthca_path_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, ecx
	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, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rsi]
	mov	edi, DWORD PTR 44[rsi]
	and	eax, 127
	mov	DWORD PTR [rdx], eax
	call	cpu_to_be16@PLT
	mov	esi, DWORD PTR 40[rbx]
	mov	edx, r12d
	mov	rdi, r13
	mov	DWORD PTR 36[rbp], eax
	call	mthca_get_rate@PLT
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR 4[rbx]
	and	eax, DWORD PTR IB_AH_GRH[rip]
	je	.L2
	mov	rdx, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR 0[r13]
	cmp	rdx, rax
	jge	.L7
	mov	eax, DWORD PTR 36[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	QWORD PTR 8[rbp], rdx
	xor	r12d, r12d
	or	DWORD PTR 0[rbp], 128
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR 24[rbx]
	sal	edi, 28
	sal	eax, 20
	or	edi, eax
	or	edi, DWORD PTR 28[rbx]
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR 32[rbx]
	mov	edi, DWORD PTR 24[rbp]
	mov	edx, 16
	mov	QWORD PTR 16[rbp], rax
	call	memcpy@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	mov	r12d, eax
	sal	edi, 28
	call	cpu_to_be32@PLT
	mov	QWORD PTR 16[rbp], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L7:
	.cfi_restore_state
	lea	rcx, -1[rax]
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	mov	r12d, -1
	call	mthca_dbg@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mthca_path_set, .-mthca_path_set
	.comm	IB_AH_GRH,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_mthca_qp.c_mthca_path_set.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sgid_index (%u) too large. max is %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mthca_path_set, %function
mthca_path_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	ldr	r2, [r1]
	mov	r7, r0
	and	r2, r2, #127
	ldr	r0, [r1, #36]
	str	r2, [r5]
	mov	r6, r3
	mov	r4, r1
	bl	cpu_to_be16
	mov	r2, r6
	str	r0, [r5, #24]
	ldr	r1, [r4, #32]
	mov	r0, r7
	bl	mthca_get_rate
	ldr	r2, .L8
	ldr	r3, [r4, #4]
	ldr	r6, [r2]
	str	r0, [r5, #20]
	ands	r6, r3, r6
	beq	.L2
	ldr	r2, [r4, #12]
	ldr	r3, [r7]
	cmp	r2, r3
	bge	.L7
	ldr	r3, [r4, #16]
	ldr	r0, [r4, #8]
	ldr	r1, [r5]
	lsl	r3, r3, #20
	orr	r3, r3, r0, lsl #28
	ldr	r0, [r4, #20]
	str	r2, [r5, #4]
	ldr	r2, [r4, #28]
	orr	r1, r1, #128
	orr	r0, r3, r0
	str	r1, [r5]
	str	r2, [r5, #16]
	bl	cpu_to_be32
	ldr	r1, [r4, #24]
	mov	r2, #16
	str	r0, [r5, #8]
	ldr	r0, [r5, #12]
	bl	memcpy
	mov	r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r4, #8]
	lsl	r0, r0, #28
	bl	cpu_to_be32
	str	r0, [r5, #8]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r7
	ldr	r1, .L8+4
	sub	r3, r3, #1
	bl	mthca_dbg
	mvn	r6, #0
	b	.L1
.L9:
	.align	2
.L8:
	.word	IB_AH_GRH
	.word	.LC0
	.size	mthca_path_set, .-mthca_path_set
	.comm	IB_AH_GRH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
