	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_get_hdr_type
_hfi1_get_hdr_type:                     ## @hfi1_get_hdr_type
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_rdma_ah_get_dlid
	movq	%rax, %r15
	movq	_OPA_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movq	%rbx, %rdi
	cmpq	%rax, %r15
	jne	LBB0_3
## %bb.1:
	callq	_rdma_ah_read_grh
	movq	%rax, %rdi
	callq	_ib_is_opa_gid
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_HFI1_PKT_TYPE_9B@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	callq	_rdma_ah_get_dlid
	movq	%rax, %rdi
	callq	_hfi1_get_packet_type
	movq	_HFI1_PKT_TYPE_16B@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hfi1_get_packet_type           ## TAILCALL
LBB0_5:
	movq	_HFI1_PKT_TYPE_16B@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPA_LID_PERMISSIVE,4,2         ## @OPA_LID_PERMISSIVE
	.comm	_HFI1_PKT_TYPE_16B,4,2          ## @HFI1_PKT_TYPE_16B
	.comm	_HFI1_PKT_TYPE_9B,4,2           ## @HFI1_PKT_TYPE_9B
	.no_dead_strip	_hfi1_get_hdr_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_get_hdr_type
_hfi1_get_hdr_type:                     ; @hfi1_get_hdr_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_rdma_ah_get_dlid
	mov	x21, x0
Lloh0:
	adrp	x8, _OPA_LID_PERMISSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPA_LID_PERMISSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_be32_to_cpu
	cmp	x21, x0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_rdma_ah_read_grh
	bl	_ib_is_opa_gid
Lloh3:
	adrp	x8, _HFI1_PKT_TYPE_16B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HFI1_PKT_TYPE_16B@GOTPAGEOFF]
Lloh5:
	adrp	x9, _HFI1_PKT_TYPE_9B@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HFI1_PKT_TYPE_9B@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_rdma_ah_get_dlid
	bl	_hfi1_get_packet_type
Lloh7:
	adrp	x8, _HFI1_PKT_TYPE_16B@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HFI1_PKT_TYPE_16B@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hfi1_get_packet_type
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OPA_LID_PERMISSIVE,4,2         ; @OPA_LID_PERMISSIVE
	.comm	_HFI1_PKT_TYPE_16B,4,2          ; @HFI1_PKT_TYPE_16B
	.comm	_HFI1_PKT_TYPE_9B,4,2           ; @HFI1_PKT_TYPE_9B
	.no_dead_strip	_hfi1_get_hdr_type
.subsections_via_symbols
