	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_make_opa_lid
_hfi1_make_opa_lid:                     ## @hfi1_make_opa_lid
	.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	%rdi, %r14
	callq	_rdma_ah_read_grh
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_rdma_ah_get_dlid
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ib_is_opa_gid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_opa_get_lid_from_gid
	jmp	LBB0_8
LBB0_2:
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_be16_to_cpu
	cmpq	%rax, %r15
	jl	LBB0_6
## %bb.3:
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	cmpq	%rax, %r15
	je	LBB0_6
## %bb.4:
	movq	_OPA_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
	cmpq	%rax, %r15
	jne	LBB0_5
LBB0_6:
	movq	_IB_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	cmpq	%rax, %r15
	jne	LBB0_9
## %bb.7:
	movq	_OPA_LID_PERMISSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be32_to_cpu
LBB0_8:
	movq	%rax, %r15
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rdma_ah_set_dlid               ## TAILCALL
LBB0_5:
	movl	(%rbx), %edi
	callq	_be16_to_cpu
	subq	%rax, %r15
	movq	_OPA_MCAST_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_opa_get_mcast_base
	addq	%rax, %r15
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MULTICAST_LID_BASE,4,2      ## @IB_MULTICAST_LID_BASE
	.comm	_IB_LID_PERMISSIVE,4,2          ## @IB_LID_PERMISSIVE
	.comm	_OPA_LID_PERMISSIVE,4,2         ## @OPA_LID_PERMISSIVE
	.comm	_OPA_MCAST_NR,4,2               ## @OPA_MCAST_NR
	.no_dead_strip	_hfi1_make_opa_lid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_make_opa_lid
_hfi1_make_opa_lid:                     ; @hfi1_make_opa_lid
	.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	x19, x0
	bl	_rdma_ah_read_grh
	mov	x21, x0
	mov	x0, x19
	bl	_rdma_ah_get_dlid
	mov	x20, x0
	mov	x0, x21
	bl	_ib_is_opa_gid
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_opa_get_lid_from_gid
	b	LBB0_7
LBB0_2:
Lloh0:
	adrp	x21, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_be16_to_cpu
Lloh2:
	adrp	x22, _IB_LID_PERMISSIVE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IB_LID_PERMISSIVE@GOTPAGEOFF]
	cmp	x20, x0
	b.lt	LBB0_5
; %bb.3:
	ldr	w0, [x22]
	bl	_be16_to_cpu
	cmp	x20, x0
	b.eq	LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _OPA_LID_PERMISSIVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OPA_LID_PERMISSIVE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_be32_to_cpu
	cmp	x20, x0
	b.ne	LBB0_9
LBB0_5:
	ldr	w0, [x22]
	bl	_be16_to_cpu
	cmp	x20, x0
	b.ne	LBB0_8
; %bb.6:
Lloh7:
	adrp	x8, _OPA_LID_PERMISSIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OPA_LID_PERMISSIVE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_be32_to_cpu
LBB0_7:
	mov	x20, x0
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	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	_rdma_ah_set_dlid
LBB0_9:
	ldr	w0, [x21]
	bl	_be16_to_cpu
	sub	x20, x20, x0
Lloh10:
	adrp	x8, _OPA_MCAST_NR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OPA_MCAST_NR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_opa_get_mcast_base
	add	x20, x20, x0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MULTICAST_LID_BASE,4,2      ; @IB_MULTICAST_LID_BASE
	.comm	_IB_LID_PERMISSIVE,4,2          ; @IB_LID_PERMISSIVE
	.comm	_OPA_LID_PERMISSIVE,4,2         ; @OPA_LID_PERMISSIVE
	.comm	_OPA_MCAST_NR,4,2               ; @OPA_MCAST_NR
	.no_dead_strip	_hfi1_make_opa_lid
.subsections_via_symbols
