	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opa_vnic_encap_skb             ## -- Begin function opa_vnic_encap_skb
	.p2align	4, 0x90
_opa_vnic_encap_skb:                    ## @opa_vnic_encap_skb
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_OPA_VNIC_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_push
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_opa_vnic_calc_entropy
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_opa_vnic_get_def_port
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_opa_vnic_wire_length
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_opa_vnic_get_dlid
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_opa_vnic_get_sc
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_opa_vnic_get_rc
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_skb_push
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_opa_vnic_get_vl
	movl	%eax, 12(%r13)
	movl	%r15d, 8(%r13)
	movq	$0, (%r13)
	xorl	%edi, %edi
	testl	%r14d, %r14d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_OPA_VNIC_SKB_MDATA_ENCAP_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	addq	$40, %rsp
	jmp	LBB0_2
LBB0_3:
	movl	(%rbx), %r8d
	movl	8(%rbx), %esi
	movq	_OPA_VNIC_L4_ETHR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r9d
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_opa_vnic_make_header
	addq	$72, %rsp
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPA_VNIC_HDR_LEN,4,2           ## @OPA_VNIC_HDR_LEN
	.comm	_OPA_VNIC_SKB_MDATA_ENCAP_ERR,8,3 ## @OPA_VNIC_SKB_MDATA_ENCAP_ERR
	.comm	_OPA_VNIC_L4_ETHR,4,2           ## @OPA_VNIC_L4_ETHR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_opa_vnic_encap_skb             ; -- Begin function opa_vnic_encap_skb
	.p2align	2
_opa_vnic_encap_skb:                    ; @opa_vnic_encap_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _OPA_VNIC_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPA_VNIC_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_skb_push
	mov	x20, x0
	mov	x0, x27
	bl	_opa_vnic_calc_entropy
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_opa_vnic_get_def_port
	mov	x23, x0
	mov	x0, x27
	bl	_opa_vnic_wire_length
	mov	x22, x0
	mov	x0, x19
	mov	x1, x27
	mov	x2, x23
	bl	_opa_vnic_get_dlid
	mov	x23, x0
	mov	x0, x19
	mov	x1, x27
	bl	_opa_vnic_get_sc
	mov	x24, x0
	mov	x0, x19
	mov	x1, x27
	bl	_opa_vnic_get_rc
	mov	x25, x0
	ldr	w28, [x19, #4]
	mov	x0, x27
	mov	w1, #16
	bl	_skb_push
	mov	x26, x0
	mov	x0, x19
	mov	x1, x27
	bl	_opa_vnic_get_vl
	stp	w21, w0, [x26, #8]
	str	xzr, [x26]
	cmp	w23, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OPA_VNIC_SKB_MDATA_ENCAP_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPA_VNIC_SKB_MDATA_ENCAP_ERR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x26]
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19, #8]
	ldr	w4, [x19]
Lloh6:
	adrp	x8, _OPA_VNIC_L4_ETHR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPA_VNIC_L4_ETHR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w28, [sp]
	mov	x0, x20
	mov	x2, x23
	mov	x3, x22
	mov	x5, x21
	mov	x6, x24
	mov	x7, x25
	bl	_opa_vnic_make_header
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OPA_VNIC_HDR_LEN,4,2           ; @OPA_VNIC_HDR_LEN
	.comm	_OPA_VNIC_SKB_MDATA_ENCAP_ERR,8,3 ; @OPA_VNIC_SKB_MDATA_ENCAP_ERR
	.comm	_OPA_VNIC_L4_ETHR,4,2           ; @OPA_VNIC_L4_ETHR
.subsections_via_symbols
