	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_get_hdr_len
_vmxnet3_get_hdr_len:                   ## @vmxnet3_get_hdr_len
	.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	%rdx, %r12
	movq	%rsi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rdx)
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_skb_headlen
	movl	%eax, %r14d
	xorl	%edi, %edi
	cmpl	$20, %eax
	setb	%dil
	callq	_unlikely
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %r15
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	cmpq	%rax, %r15
	je	LBB0_3
## %bb.2:
	movq	_ETH_P_8021AD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
LBB0_3:
	movq	%rbx, %rdi
	callq	_eth_hdr
	movq	%rax, %r15
	cmpq	$0, 16(%r12)
	je	LBB0_7
## %bb.4:
	movq	(%r15), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_htons
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rbx
	movl	(%r12), %edi
	callq	_htons
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
LBB0_6:
	callq	_BUG_ON
	movq	8(%r15), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUG_ON
	movl	16(%r15), %eax
	shll	$2, %eax
	movslq	%eax, %rcx
	addq	%rcx, %r15
	addq	$8, %r15
LBB0_12:
	movslq	%r14d, %rcx
	movslq	%eax, %rdx
	addq	$4, %rdx
	movl	$0, %r13d
	cmpq	%rcx, %rdx
	ja	LBB0_14
## %bb.13:
	movl	(%r15), %ecx
	leal	(%rax,%rcx,4), %r13d
	jmp	LBB0_14
LBB0_7:
	cmpq	$0, 8(%r12)
	je	LBB0_14
## %bb.8:
	movq	(%r15), %rbx
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_htons
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	je	LBB0_10
## %bb.9:
	movq	(%r15), %rbx
	movl	(%r12), %edi
	callq	_htons
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
LBB0_10:
	callq	_BUG_ON
	movq	8(%r15), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	movl	$12, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:
	addq	$16, %r15
	movl	$8, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_ETH_P_8021AD,4,2               ## @ETH_P_8021AD
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.no_dead_strip	_vmxnet3_get_hdr_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_get_hdr_len
_vmxnet3_get_hdr_len:                   ; @vmxnet3_get_hdr_len
	.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	x21, x2
	mov	x20, x1
	ldr	x8, [x2]
	cmp	x8, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x20
	bl	_skb_headlen
	mov	x19, x0
	cmp	w0, #20
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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_3:
	ldr	x22, [x20]
Lloh0:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	cmp	x22, x0
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ETH_P_8021AD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_8021AD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_be16
LBB0_5:
	mov	x0, x20
	bl	_eth_hdr
	mov	x20, x0
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x22, [x20]
Lloh6:
	adrp	x21, _ETH_P_IP@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ETH_P_IP@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_11
; %bb.7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_1
; %bb.9:
	ldr	x22, [x20]
Lloh8:
	adrp	x21, _ETH_P_IPV6@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ETH_P_IPV6@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_15
; %bb.10:
	mov	w0, #0
	b	LBB0_16
LBB0_11:
	ldr	x22, [x20]
	ldr	w0, [x21]
	bl	_htons
	cmp	x22, x0
	cset	w0, ne
LBB0_12:
	bl	_BUG_ON
	ldr	x8, [x20, #8]!
Lloh10:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	ldr	w8, [x20, #8]
	lsl	w8, w8, #2
	add	x9, x20, w8, sxtw
LBB0_13:
	sxtw	x10, w19
	sxtw	x11, w8
	add	x11, x11, #4
	cmp	x11, x10
	b.hi	LBB0_1
; %bb.14:
	ldr	w9, [x9]
	add	w0, w8, w9, lsl #2
	b	LBB0_2
LBB0_15:
	ldr	x22, [x20]
	ldr	w0, [x21]
	bl	_htons
	cmp	x22, x0
	cset	w0, ne
LBB0_16:
	bl	_BUG_ON
	ldr	x8, [x20, #8]
Lloh13:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	add	x9, x20, #16
	mov	w8, #8
	b	LBB0_13
LBB0_18:
	mov	w0, #12
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_ETH_P_8021AD,4,2               ; @ETH_P_8021AD
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.no_dead_strip	_vmxnet3_get_hdr_len
.subsections_via_symbols
