	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_get_rc_ohdr
_hfi1_get_rc_ohdr:                      ## @hfi1_get_rc_ohdr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_HFI1_PKT_TYPE_9B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_ib_get_lnh
	movq	_HFI1_LRH_BTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	addq	$20, %rbx
	jmp	LBB0_5
LBB0_4:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_hfi1_16B_get_l4
	movq	_OPA_16B_L4_IB_LOCAL@GOTPCREL(%rip), %rcx
	addq	$12, %rbx
	cmpq	(%rcx), %rax
	cmovneq	%r14, %rbx
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rbx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_PKT_TYPE_9B,8,3           ## @HFI1_PKT_TYPE_9B
	.comm	_HFI1_LRH_BTH,8,3               ## @HFI1_LRH_BTH
	.comm	_OPA_16B_L4_IB_LOCAL,8,3        ## @OPA_16B_L4_IB_LOCAL
	.no_dead_strip	_hfi1_get_rc_ohdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_get_rc_ohdr
_hfi1_get_rc_ohdr:                      ; @hfi1_get_rc_ohdr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HFI1_PKT_TYPE_9B@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HFI1_PKT_TYPE_9B@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x20, x19, #16
	mov	x0, x20
	bl	_ib_get_lnh
Lloh3:
	adrp	x8, _HFI1_LRH_BTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HFI1_LRH_BTH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x19, #20
	cmp	x0, x8
	csel	x0, x20, x9, ne
	b	LBB0_3
LBB0_2:
	add	x20, x19, #8
	mov	x0, x20
	bl	_hfi1_16B_get_l4
Lloh6:
	adrp	x8, _OPA_16B_L4_IB_LOCAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPA_16B_L4_IB_LOCAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x9, x19, #12
	cmp	x0, x8
	csel	x0, x9, x20, eq
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_PKT_TYPE_9B,8,3           ; @HFI1_PKT_TYPE_9B
	.comm	_HFI1_LRH_BTH,8,3               ; @HFI1_LRH_BTH
	.comm	_OPA_16B_L4_IB_LOCAL,8,3        ; @OPA_16B_L4_IB_LOCAL
	.no_dead_strip	_hfi1_get_rc_ohdr
.subsections_via_symbols
