	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_ethertype
_parse_ethertype:                       ## @parse_ethertype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	movl	$4, %esi
	callq	___skb_pull
	movl	%ebx, %edi
	callq	_ntohs
	cmpl	$1535, %eax                     ## imm = 0x5FF
	jle	LBB0_1
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpl	$55, (%r14)
	ja	LBB0_3
LBB0_2:
	movq	_ETH_P_802_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_pskb_may_pull
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	xorl	%edi, %edi
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_htons                          ## TAILCALL
LBB0_6:
	movq	8(%r14), %rbx
	movq	(%rbx), %rax
	movq	_LLC_SAP_SNAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.7:
	cmpq	%rax, 8(%rbx)
	jne	LBB0_2
## %bb.8:
	movq	32(%rbx), %rax
	orq	24(%rbx), %rax
	orq	40(%rbx), %rax
	jne	LBB0_2
## %bb.9:
	movq	%r14, %rdi
	movl	$56, %esi
	callq	___skb_pull
	movl	48(%rbx), %edi
	callq	_ntohs
	cmpl	$1536, %eax                     ## imm = 0x600
	jl	LBB0_2
## %bb.10:
	movl	48(%rbx), %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_802_2,4,2                ## @ETH_P_802_2
	.comm	_LLC_SAP_SNAP,8,3               ## @LLC_SAP_SNAP
	.no_dead_strip	_parse_ethertype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_ethertype
_parse_ethertype:                       ; @parse_ethertype
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
	mov	w1, #4
	bl	___skb_pull
	mov	x0, x20
	bl	_ntohs
	cmp	w0, #1535
	b.le	LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #55
	b.hi	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _ETH_P_802_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_802_2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	mov	w1, #56
	bl	_pskb_may_pull
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_htons
LBB0_7:
	ldr	x20, [x19, #8]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _LLC_SAP_SNAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LLC_SAP_SNAP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.8:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.9:
	ldp	x8, x9, [x20, #24]
	orr	x8, x9, x8
	ldr	x9, [x20, #40]
	orr	x8, x8, x9
	cbnz	x8, LBB0_3
; %bb.10:
	mov	x0, x19
	mov	w1, #56
	bl	___skb_pull
	ldr	w0, [x20, #48]
	bl	_ntohs
	cmp	w0, #1536
	b.lt	LBB0_3
; %bb.11:
	ldr	w20, [x20, #48]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_802_2,4,2                ; @ETH_P_802_2
	.comm	_LLC_SAP_SNAP,8,3               ; @LLC_SAP_SNAP
	.no_dead_strip	_parse_ethertype
.subsections_via_symbols
