	.file	"extr_mthca_qp.c_to_ib_ah_attr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	to_ib_ah_attr, @function
to_ib_ah_attr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	mov	edx, 44
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	edi, DWORD PTR 28[rbp]
	call	be32_to_cpu@PLT
	sar	eax, 24
	and	eax, 3
	mov	DWORD PTR [rbx], eax
	je	.L1
	cmp	eax, DWORD PTR [r12]
	jle	.L11
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbp]
	call	be16_to_cpu@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	DWORD PTR 40[rbx], eax
	call	be32_to_cpu@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR [rbx]
	mov	rdi, r12
	sar	eax, 28
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	and	esi, 15
	and	eax, 127
	mov	DWORD PTR 8[rbx], eax
	call	mthca_rate_to_ib@PLT
	mov	DWORD PTR 36[rbx], eax
	test	BYTE PTR 0[rbp], -128
	je	.L12
	mov	eax, DWORD PTR IB_AH_GRH[rip]
	mov	DWORD PTR 12[rbx], eax
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR 4[r12]
	mov	edi, DWORD PTR 16[rbp]
	sub	eax, 1
	and	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR 32[rbx], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 16[rbp]
	sar	eax, 20
	and	eax, 255
	mov	DWORD PTR 20[rbx], eax
	call	be32_to_cpu@PLT
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 28[rbx]
	mov	edx, 4
	and	eax, 1048575
	mov	DWORD PTR 24[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	DWORD PTR 12[rbx], 0
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	to_ib_ah_attr, .-to_ib_ah_attr
	.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_to_ib_ah_attr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_ib_ah_attr, %function
to_ib_ah_attr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	mov	r4, r1
	mov	r2, #44
	mov	r6, r0
	mov	r0, r1
	mov	r1, #0
	bl	memset
	ldr	r0, [r5, #28]
	bl	be32_to_cpu
	asr	r3, r0, #24
	and	r3, r3, #3
	cmp	r3, #0
	str	r3, [r4]
	popeq	{r4, r5, r6, pc}
	ldr	r2, [r6]
	cmp	r3, r2
	popgt	{r4, r5, r6, pc}
	ldr	r0, [r5, #24]
	bl	be16_to_cpu
	mov	r3, r0
	ldr	r0, [r5, #16]
	str	r3, [r4, #40]
	bl	be32_to_cpu
	ldr	r3, [r5]
	ldr	r1, [r5, #4]
	and	r3, r3, #127
	asr	r0, r0, #28
	stmib	r4, {r0, r3}
	ldr	r2, [r4]
	mov	r0, r6
	and	r1, r1, #15
	bl	mthca_rate_to_ib
	ldr	r3, [r5]
	str	r0, [r4, #36]
	ands	r3, r3, #128
	beq	.L11
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #0
	str	r3, [r4, #12]
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r6, #4]
	ldr	r1, [r5, #8]
	ldr	r2, [r5, #20]
	sub	r3, r3, #1
	and	r3, r3, r1
	str	r2, [r4, #32]
	str	r3, [r4, #16]
	ldr	r0, [r5, #16]
	bl	be32_to_cpu
	asr	r0, r0, #20
	and	r0, r0, #255
	str	r0, [r4, #20]
	ldr	r0, [r5, #16]
	bl	be32_to_cpu
	bic	r0, r0, #-16777216
	bic	r0, r0, #15728640
	str	r0, [r4, #24]
	ldr	r1, [r5, #12]
	ldr	r0, [r4, #28]
	mov	r2, #4
	pop	{r4, r5, r6, lr}
	b	memcpy
.L11:
	str	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	IB_AH_GRH
	.size	to_ib_ah_attr, .-to_ib_ah_attr
	.comm	IB_AH_GRH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
