	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvswitch_mangle_rx
_mvswitch_mangle_rx:                    ## @mvswitch_mangle_rx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movslq	8(%r14), %r12
	addq	(%r14), %r12
	movq	_MV_TRAILER_SIZE@GOTPCREL(%rip), %rax
	subq	(%rax), %r12
	cmpb	$-128, (%r12)
	jne	LBB0_6
## %bb.2:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	movl	$-1, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rdi,%rbx,4), %eax
	movzbl	1(%r12), %ecx
	btl	%ecx, %eax
	cmovbl	%ebx, %r13d
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
## %bb.5:
	cmpl	$-1, %r13d
	je	LBB0_6
## %bb.7:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___vlan_hwaccel_put_tag         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV_TRAILER_SIZE,8,3            ## @MV_TRAILER_SIZE
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_MV_HEADER_SIZE,4,2             ## @MV_HEADER_SIZE
	.no_dead_strip	_mvswitch_mangle_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvswitch_mangle_rx
_mvswitch_mangle_rx:                    ; @mvswitch_mangle_rx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	x21, [x0]
	cmp	x21, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MV_TRAILER_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV_TRAILER_SIZE@GOTPAGEOFF]
	ldrsw	x10, [x19, #8]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x10
	sub	x22, x8, x9
	ldrb	w8, [x22]
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x23, #0
	mov	w20, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, #1]
	ldr	x0, [x21]
	ldr	w9, [x0, x23, lsl #2]
	lsr	w8, w9, w8
	tst	w8, #0x1
	csel	w20, w20, w23, eq
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_4
; %bb.5:
	cmn	w20, #1
	b.eq	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	___vlan_hwaccel_put_tag
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MV_TRAILER_SIZE,8,3            ; @MV_TRAILER_SIZE
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_MV_HEADER_SIZE,4,2             ; @MV_HEADER_SIZE
	.no_dead_strip	_mvswitch_mangle_rx
.subsections_via_symbols
