	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_make_grh                  ## -- Begin function hfi1_make_grh
	.p2align	4, 0x90
_hfi1_make_grh:                         ## @hfi1_make_grh
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	_IB_GRH_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IB_GRH_VERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%r8d, %r13d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_IB_GRH_TCLASS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%rdx), %edx
	shll	%cl, %edx
	movl	4(%r14), %edi
	orl	%eax, %edx
	movq	_IB_GRH_FLOW_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%edx, %edi
	callq	_cpu_to_be32
	movl	%eax, 24(%rbx)
	addl	%r13d, %r12d
	shll	$2, %r12d
	movl	%r12d, %edi
	callq	_cpu_to_be16
	movl	%eax, 20(%rbx)
	movq	_IB_GRH_NEXT_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	(%r15), %eax
	movl	%eax, 8(%rbx)
	movq	8(%r14), %rsi
	movq	_HFI1_GUIDS_PER_PORT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jl	LBB0_2
## %bb.1:
	movq	_HFI1_PORT_GUID_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_2:
	movq	%r15, %rdi
	callq	_get_sguid
	movl	%eax, 4(%rbx)
	movl	16(%r14), %eax
	movl	%eax, (%rbx)
	movl	$7, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_GRH_VERSION,4,2             ## @IB_GRH_VERSION
	.comm	_IB_GRH_VERSION_SHIFT,4,2       ## @IB_GRH_VERSION_SHIFT
	.comm	_IB_GRH_TCLASS_SHIFT,4,2        ## @IB_GRH_TCLASS_SHIFT
	.comm	_IB_GRH_FLOW_SHIFT,4,2          ## @IB_GRH_FLOW_SHIFT
	.comm	_IB_GRH_NEXT_HDR,4,2            ## @IB_GRH_NEXT_HDR
	.comm	_HFI1_GUIDS_PER_PORT,8,3        ## @HFI1_GUIDS_PER_PORT
	.comm	_HFI1_PORT_GUID_INDEX,8,3       ## @HFI1_PORT_GUID_INDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_make_grh                  ; -- Begin function hfi1_make_grh
	.p2align	2
_hfi1_make_grh:                         ; @hfi1_make_grh
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	ldp	w8, w11, [x2]
Lloh0:
	adrp	x9, _IB_GRH_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_GRH_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IB_GRH_VERSION_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_GRH_VERSION_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh6:
	adrp	x10, _IB_GRH_TCLASS_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_GRH_TCLASS_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _IB_GRH_FLOW_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_GRH_FLOW_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w11, w9
	orr	w0, w8, w9
	bl	_cpu_to_be32
	str	w0, [x19, #24]
	add	w8, w20, w21
	lsl	w0, w8, #2
	bl	_cpu_to_be16
Lloh12:
	adrp	x8, _IB_GRH_NEXT_HDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_GRH_NEXT_HDR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #16]
	ldr	w8, [x22, #20]
	ldr	w9, [x23]
	stp	w9, w8, [x19, #8]
	ldr	x8, [x22, #8]
Lloh15:
	adrp	x9, _HFI1_GUIDS_PER_PORT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HFI1_GUIDS_PER_PORT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _HFI1_PORT_GUID_INDEX@GOTPAGE
Lloh19:
	ldr	x10, [x10, _HFI1_PORT_GUID_INDEX@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x1, x8, x10, lt
	mov	x0, x23
	bl	_get_sguid
	ldr	w8, [x22, #16]
	stp	w8, w0, [x19]
	mov	w0, #7
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_GRH_VERSION,4,2             ; @IB_GRH_VERSION
	.comm	_IB_GRH_VERSION_SHIFT,4,2       ; @IB_GRH_VERSION_SHIFT
	.comm	_IB_GRH_TCLASS_SHIFT,4,2        ; @IB_GRH_TCLASS_SHIFT
	.comm	_IB_GRH_FLOW_SHIFT,4,2          ; @IB_GRH_FLOW_SHIFT
	.comm	_IB_GRH_NEXT_HDR,4,2            ; @IB_GRH_NEXT_HDR
	.comm	_HFI1_GUIDS_PER_PORT,8,3        ; @HFI1_GUIDS_PER_PORT
	.comm	_HFI1_PORT_GUID_INDEX,8,3       ; @HFI1_PORT_GUID_INDEX
.subsections_via_symbols
