	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opa_vnic_get_dlid
_opa_vnic_get_dlid:                     ## @opa_vnic_get_dlid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_skb_mac_header
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_opa_vnic_chk_mac_tbl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	(%r12), %rdi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r15), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r12), %rdi
	callq	_is_local_ether_addr
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%r12), %rax
	movl	16(%rax), %ebx
	movl	20(%rax), %ecx
	shll	$16, %ecx
	shll	$8, %ebx
	orl	%ecx, %ebx
	xorl	%edi, %edi
	orl	12(%rax), %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_v_warn
	jmp	LBB0_9
LBB0_6:
	movq	_OPA_VNIC_INVALID_PORT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	%r14, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_OPA_VESW_MAX_NUM_DEF_PORT@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jbe	LBB0_9
## %bb.8:
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Null dlid in MAC address\n"

	.comm	_OPA_VNIC_INVALID_PORT,8,3      ## @OPA_VNIC_INVALID_PORT
	.comm	_OPA_VESW_MAX_NUM_DEF_PORT,8,3  ## @OPA_VESW_MAX_NUM_DEF_PORT
	.no_dead_strip	_opa_vnic_get_dlid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opa_vnic_get_dlid
_opa_vnic_get_dlid:                     ; @opa_vnic_get_dlid
	.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, x2
	mov	x20, x0
	mov	x0, x1
	bl	_skb_mac_header
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_opa_vnic_chk_mac_tbl
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x0, [x22]
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w21, [x20]
LBB0_3:
	mov	x0, x21
	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:
	ldr	x0, [x22]
	bl	_is_local_ether_addr
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x22]
	ldp	w10, w9, [x8, #16]
	ldr	w8, [x8, #12]
	lsl	w10, w10, #8
	orr	w9, w10, w9, lsl #16
	orr	w21, w9, w8
	cmp	w21, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_v_warn
	b	LBB0_3
LBB0_7:
Lloh2:
	adrp	x8, _OPA_VNIC_INVALID_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPA_VNIC_INVALID_PORT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _OPA_VESW_MAX_NUM_DEF_PORT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OPA_VESW_MAX_NUM_DEF_PORT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x19
	ccmp	x9, x19, #0, ne
	b.hi	LBB0_9
; %bb.8:
	mov	w21, #0
	b	LBB0_3
LBB0_9:
	ldr	x8, [x20, #8]
	ldr	w21, [x8, x19, lsl #2]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Null dlid in MAC address\n"

	.comm	_OPA_VNIC_INVALID_PORT,8,3      ; @OPA_VNIC_INVALID_PORT
	.comm	_OPA_VESW_MAX_NUM_DEF_PORT,8,3  ; @OPA_VESW_MAX_NUM_DEF_PORT
	.no_dead_strip	_opa_vnic_get_dlid
.subsections_via_symbols
