	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __opa_get_lid
___opa_get_lid:                         ## @__opa_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	callq	_hfi1_check_mcast
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_OPA_MCAST_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_opa_get_mcast_base
	subl	%eax, %r14d
	addl	$983040, %r14d                  ## imm = 0xF0000
	jmp	LBB0_11
LBB0_8:
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_OPA_MCAST_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_opa_get_mcast_base
	subl	%eax, %r14d
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	addl	%eax, %r14d
	jmp	LBB0_11
LBB0_5:
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_OPA_MCAST_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_opa_get_mcast_base
	subl	%eax, %r14d
	addl	$15728640, %r14d                ## imm = 0xF00000
	jmp	LBB0_11
LBB0_4:
	andl	$1048575, %r14d                 ## imm = 0xFFFFF
	jmp	LBB0_11
LBB0_10:
	movzwl	%r14w, %r14d
	jmp	LBB0_11
LBB0_7:
	andl	$16777215, %r14d                ## imm = 0xFFFFFF
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_OPA_MCAST_NR,4,2               ## @OPA_MCAST_NR
	.comm	_IB_MULTICAST_LID_BASE,4,2      ## @IB_MULTICAST_LID_BASE
	.no_dead_strip	___opa_get_lid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __opa_get_lid
___opa_get_lid:                         ; @__opa_get_lid
	.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	x20, x1
	mov	x19, x0
	bl	_hfi1_check_mcast
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cbz	w0, LBB0_8
; %bb.3:
Lloh2:
	adrp	x8, _OPA_MCAST_NR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPA_MCAST_NR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_opa_get_mcast_base
	sub	w8, w19, w0
	add	w19, w8, #240, lsl #12          ; =983040
	b	LBB0_11
LBB0_4:
	cbz	w0, LBB0_9
; %bb.5:
Lloh5:
	adrp	x8, _OPA_MCAST_NR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPA_MCAST_NR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_opa_get_mcast_base
	sub	w19, w19, w0
Lloh8:
	adrp	x8, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_be16_to_cpu
	add	w19, w19, w0
	b	LBB0_11
LBB0_6:
	cbz	w0, LBB0_10
; %bb.7:
Lloh11:
	adrp	x8, _OPA_MCAST_NR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPA_MCAST_NR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_opa_get_mcast_base
	sub	w8, w19, w0
	add	w19, w8, #3840, lsl #12         ; =15728640
	b	LBB0_11
LBB0_8:
	and	w19, w19, #0xfffff
	b	LBB0_11
LBB0_9:
	and	w19, w19, #0xffff
	b	LBB0_11
LBB0_10:
	and	w19, w19, #0xffffff
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_OPA_MCAST_NR,4,2               ; @OPA_MCAST_NR
	.comm	_IB_MULTICAST_LID_BASE,4,2      ; @IB_MULTICAST_LID_BASE
	.no_dead_strip	___opa_get_lid
.subsections_via_symbols
