	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_getlen
_nv_getlen:                             ## @nv_getlen
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	(%rsi), %r12
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, %r15
	xorl	%eax, %eax
	cmpq	%r15, %r12
	sete	%al
	movl	(%rbx,%rax,8), %edi
	callq	_ntohs
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_7
## %bb.1:
	cmpq	%r15, %r12
	jne	LBB0_2
## %bb.3:
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
LBB0_4:
	addl	(%rcx), %eax
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r14d, %ecx
	jge	LBB0_6
## %bb.5:
	cmpl	%r14d, %eax
	movl	$-1, %r14d
	cmovlel	%eax, %r14d
	jmp	LBB0_7
LBB0_6:
	cmpl	%ecx, %eax
	movl	$-1, %eax
	cmovgl	%eax, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.no_dead_strip	_nv_getlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_getlen
_nv_getlen:                             ; @nv_getlen
	.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	x21, x1
	ldr	x22, [x1]
Lloh0:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	mov	x20, x0
	cmp	x22, x0
	cset	w8, eq
	lsl	x8, x8, #3
	ldr	w0, [x21, x8]
	bl	_ntohs
Lloh3:
	adrp	x8, _ETH_DATA_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _VLAN_HLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VLAN_HLEN@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
	cmp	x22, x20
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	add	w8, w8, w0
Lloh10:
	adrp	x9, _ETH_ZLEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ETH_ZLEN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ge	LBB0_3
; %bb.2:
	cmp	w8, w19
	csinv	w19, w8, wzr, le
	b	LBB0_4
LBB0_3:
	cmp	w8, w9
	csinv	w19, w19, wzr, le
LBB0_4:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.no_dead_strip	_nv_getlen
.subsections_via_symbols
