	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_make_ruc_header          ## -- Begin function ipath_make_ruc_header
	.p2align	4, 0x90
_ipath_make_ruc_header:                 ## @ipath_make_ruc_header
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	movl	%ebx, %r13d
	negl	%r13d
	andl	$3, %r13d
	addl	%r13d, %ebx
	sarl	$2, %ebx
	movq	_IPATH_LRH_BTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	16(%rsi), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	48(%r12), %rsi
	leaq	32(%r12), %rdx
	movl	4(%r12), %ecx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	callq	_ipath_make_grh
	addl	%eax, 4(%r12)
	movq	_IPATH_LRH_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movl	20(%r12), %edi
	shll	$4, %edi
	orl	%r15d, %edi
	callq	_cpu_to_be16
	movq	40(%r12), %rcx
	movq	%rax, (%rcx)
	movl	24(%r12), %edi
	callq	_cpu_to_be16
	movq	40(%r12), %rcx
	movq	%rax, 8(%rcx)
	addl	4(%r12), %ebx
	movq	_SIZE_OF_CRC@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	40(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	(%r14), %rax
	movl	28(%r12), %edi
	orl	(%rax), %edi
	callq	_cpu_to_be16
	movq	40(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	(%r14), %rdi
	movl	12(%r12), %esi
	callq	_ipath_get_pkey
	shll	$20, %r13d
	orl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	orl	%eax, %r13d
	orl	$4194304, %r13d                 ## imm = 0x400000
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	8(%r12), %edi
	callq	_cpu_to_be32
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPATH_LRH_BTH,4,2              ## @IPATH_LRH_BTH
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
	.comm	_IPATH_LRH_GRH,4,2              ## @IPATH_LRH_GRH
	.comm	_SIZE_OF_CRC,4,2                ## @SIZE_OF_CRC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_make_ruc_header          ; -- Begin function ipath_make_ruc_header
	.p2align	2
_ipath_make_ruc_header:                 ; @ipath_make_ruc_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	ldr	w8, [x1]
	neg	w9, w8
	and	w25, w9, #0x3
	add	w8, w25, w8
	asr	w24, w8, #2
Lloh0:
	adrp	x8, _IPATH_LRH_BTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPATH_LRH_BTH@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	ldr	w8, [x1, #16]
Lloh3:
	adrp	x9, _IB_AH_GRH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_AH_GRH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, x21, #48
	add	x2, x21, #32
	ldr	w3, [x21, #4]
	mov	x0, x23
	mov	x4, x24
	bl	_ipath_make_grh
	ldr	w8, [x21, #4]
	add	w8, w8, w0
	str	w8, [x21, #4]
Lloh6:
	adrp	x8, _IPATH_LRH_GRH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPATH_LRH_GRH@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
LBB0_2:
	ldr	w8, [x21, #20]
	orr	w0, w26, w8, lsl #4
	bl	_cpu_to_be16
	ldr	x8, [x21, #40]
	str	x0, [x8]
	ldr	w0, [x21, #24]
	bl	_cpu_to_be16
	ldr	x8, [x21, #40]
	str	x0, [x8, #8]
	ldr	w8, [x21, #4]
Lloh9:
	adrp	x9, _SIZE_OF_CRC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SIZE_OF_CRC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	add	w8, w8, w24
	add	w0, w8, w9
	bl	_cpu_to_be16
	ldr	x8, [x21, #40]
	str	x0, [x8, #16]
	ldr	x8, [x23]
	ldr	w8, [x8]
	ldr	w9, [x21, #28]
	orr	w0, w9, w8
	bl	_cpu_to_be16
	ldr	x8, [x21, #40]
	str	x0, [x8, #24]
	ldr	x0, [x23]
	ldr	w1, [x21, #12]
	bl	_ipath_get_pkey
	orr	w8, w22, w25, lsl #20
	orr	w8, w8, w0
	orr	w0, w8, #0x400000
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	w0, [x21, #8]
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #8]
	mov	x0, x20
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPATH_LRH_BTH,4,2              ; @IPATH_LRH_BTH
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
	.comm	_IPATH_LRH_GRH,4,2              ; @IPATH_LRH_GRH
	.comm	_SIZE_OF_CRC,4,2                ; @SIZE_OF_CRC
.subsections_via_symbols
