	.file	"extr_qib_ruc.c_qib_make_grh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qib_make_grh
	.type	qib_make_grh, @function
qib_make_grh:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, ecx
	mov	ecx, DWORD PTR IB_GRH_TCLASS_SHIFT[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	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	edi, DWORD PTR [rdx]
	mov	rbx, rsi
	mov	eax, DWORD PTR 4[rdx]
	sal	edi, cl
	mov	ecx, DWORD PTR IB_GRH_FLOW_SHIFT[rip]
	sal	eax, cl
	mov	ecx, DWORD PTR IB_GRH_VERSION_SHIFT[rip]
	or	edi, eax
	mov	eax, DWORD PTR IB_GRH_VERSION[rip]
	sal	eax, cl
	or	edi, eax
	call	cpu_to_be32@PLT
	lea	edi, -2[r14+r13]
	add	edi, DWORD PTR SIZE_OF_CRC[rip]
	mov	DWORD PTR 24[rbx], eax
	sal	edi, 2
	call	cpu_to_be16@PLT
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR IB_GRH_NEXT_HDR[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR 8[rbx], eax
	movsx	rax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L6
	cmp	eax, DWORD PTR QIB_GUIDS_PER_PORT[rip]
	jge	.L3
	mov	rdx, QWORD PTR [r12]
	mov	eax, DWORD PTR -4[rdx+rax*4]
	mov	DWORD PTR 4[rbx], eax
.L3:
	mov	eax, DWORD PTR 12[rbp]
	mov	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 7
	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
.L6:
	.cfi_restore_state
	mov	rdi, r12
	call	ppd_from_ibp@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 4[rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	qib_make_grh, .-qib_make_grh
	.comm	SIZE_OF_CRC,4,4
	.comm	QIB_GUIDS_PER_PORT,4,4
	.comm	IB_GRH_VERSION_SHIFT,4,4
	.comm	IB_GRH_VERSION,4,4
	.comm	IB_GRH_TCLASS_SHIFT,4,4
	.comm	IB_GRH_NEXT_HDR,4,4
	.comm	IB_GRH_FLOW_SHIFT,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_qib_ruc.c_qib_make_grh.c"
	.text
	.align	2
	.global	qib_make_grh
	.syntax unified
	.arm
	.fpu softvfp
	.type	qib_make_grh, %function
qib_make_grh:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r7, r0
	ldr	r0, .L7
	ldr	ip, .L7+4
	ldr	r0, [r0]
	mov	r4, r3
	ldr	r2, [r2, #4]
	ldr	r5, .L7+8
	ldr	r3, .L7+12
	ldr	ip, [ip]
	ldr	lr, [r6]
	ldr	r3, [r3]
	lsl	r2, r2, r0
	ldr	r0, [r5]
	orr	r2, r2, lr, lsl ip
	orr	r0, r2, r0, lsl r3
	mov	r5, r1
	ldr	r8, [sp, #24]
	bl	cpu_to_be32
	ldr	r3, .L7+16
	sub	r4, r4, #2
	ldr	r3, [r3]
	add	r4, r4, r8
	add	r4, r4, r3
	str	r0, [r5, #24]
	lsl	r0, r4, #2
	bl	cpu_to_be16
	ldr	r2, .L7+20
	ldr	r3, [r6, #8]
	ldr	r1, [r6, #16]
	ldr	ip, [r2]
	ldr	r2, [r7, #4]
	cmp	r3, #0
	str	r0, [r5, #20]
	str	ip, [r5, #16]
	str	r1, [r5, #12]
	str	r2, [r5, #8]
	beq	.L6
	ldr	r2, .L7+24
	ldr	r2, [r2]
	cmp	r3, r2
	ldrlt	r2, [r7]
	sublt	r3, r3, #-1073741823
	ldrlt	r3, [r2, r3, lsl #2]
	strlt	r3, [r5, #4]
.L3:
	ldr	r3, [r6, #12]
	mov	r0, #7
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r7
	bl	ppd_from_ibp
	ldr	r3, [r0]
	str	r3, [r5, #4]
	b	.L3
.L8:
	.align	2
.L7:
	.word	IB_GRH_FLOW_SHIFT
	.word	IB_GRH_TCLASS_SHIFT
	.word	IB_GRH_VERSION
	.word	IB_GRH_VERSION_SHIFT
	.word	SIZE_OF_CRC
	.word	IB_GRH_NEXT_HDR
	.word	QIB_GUIDS_PER_PORT
	.size	qib_make_grh, .-qib_make_grh
	.comm	SIZE_OF_CRC,4,4
	.comm	QIB_GUIDS_PER_PORT,4,4
	.comm	IB_GRH_VERSION_SHIFT,4,4
	.comm	IB_GRH_VERSION,4,4
	.comm	IB_GRH_TCLASS_SHIFT,4,4
	.comm	IB_GRH_NEXT_HDR,4,4
	.comm	IB_GRH_FLOW_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
