	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_ptp_parse
_mlxsw_sp_ptp_parse:                    ## @mlxsw_sp_ptp_parse
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_skb_mac_header
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_ptp_classify_raw
	movq	_PTP_CLASS_VMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_1
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_PTP_CLASS_VLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	andl	%eax, %r14d
	je	LBB0_5
## %bb.4:
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_5:
	movq	_PTP_CLASS_PMASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$130, %eax
	je	LBB0_11
## %bb.6:
	cmpl	$131, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$132, %eax
	jne	LBB0_1
## %bb.8:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_IPV4_HLEN
                                        ## kill: def $eax killed $eax def $rax
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jmp	LBB0_10
LBB0_1:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_11:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_9:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	_IP6_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rcx), %eax
LBB0_10:
	movq	_UDP_HLEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
LBB0_12:
	leal	(%rax,%r14), %ecx
	addl	$34, %ecx
	cmpl	%ecx, (%r15)
	jae	LBB0_14
## %bb.13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	addl	%r14d, %eax
	movl	%eax, %ecx
	movl	(%r13,%rcx,4), %ecx
	andl	$15, %ecx
	movl	%ecx, (%r12)
	leal	4(%rax), %ecx
	movl	(%r13,%rcx,4), %ecx
	movl	%ecx, (%rbx)
	leal	30(%rax), %ecx
	movl	(%r13,%rcx,4), %ecx
	shll	$8, %ecx
	addl	$31, %eax
	orl	(%r13,%rax,4), %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PTP_CLASS_VMASK,4,2            ## @PTP_CLASS_VMASK
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_PTP_CLASS_VLAN,4,2             ## @PTP_CLASS_VLAN
	.comm	_VLAN_HLEN,8,3                  ## @VLAN_HLEN
	.comm	_PTP_CLASS_PMASK,4,2            ## @PTP_CLASS_PMASK
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_UDP_HLEN,4,2                   ## @UDP_HLEN
	.comm	_IP6_HLEN,4,2                   ## @IP6_HLEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mlxsw_sp_ptp_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_ptp_parse
_mlxsw_sp_ptp_parse:                    ; @mlxsw_sp_ptp_parse
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	bl	_skb_mac_header
	mov	x22, x0
	mov	x0, x23
	bl	_ptp_classify_raw
Lloh0:
	adrp	x8, _PTP_CLASS_VMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTP_CLASS_VMASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w0, w8
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _PTP_CLASS_VLAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTP_CLASS_VLAN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VLAN_HLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VLAN_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w24, wzr, w9, eq
Lloh9:
	adrp	x8, _PTP_CLASS_PMASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PTP_CLASS_PMASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #131
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #132
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	add	x0, x22, w24, uxtw #2
	bl	_IPV4_HLEN
Lloh15:
	adrp	x8, _UDP_HLEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UDP_HLEN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	add	w9, w0, w25
	add	w8, w9, w8
	b	LBB0_8
LBB0_5:
Lloh18:
	adrp	x8, _ERANGE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh20:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _IP6_HLEN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IP6_HLEN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _UDP_HLEN@GOTPAGE
Lloh30:
	ldr	x10, [x10, _UDP_HLEN@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	add	w8, w9, w8
	add	w8, w8, w10
LBB0_8:
	add	w8, w8, w24
	ldr	w9, [x23]
	add	w10, w8, #34
	cmp	w9, w10
	b.hs	LBB0_12
; %bb.9:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #0
	ldr	w9, [x22, w8, uxtw #2]
	and	w9, w9, #0xf
	str	w9, [x21]
	add	w9, w8, #4
	ldr	w9, [x22, w9, uxtw #2]
	str	w9, [x20]
	add	w9, w8, #30
	ldr	w9, [x22, w9, uxtw #2]
	add	w8, w8, #31
	ldr	w8, [x22, w8, uxtw #2]
	orr	w8, w8, w9, lsl #8
	str	w8, [x19]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_PTP_CLASS_VMASK,4,2            ; @PTP_CLASS_VMASK
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_PTP_CLASS_VLAN,4,2             ; @PTP_CLASS_VLAN
	.comm	_VLAN_HLEN,8,3                  ; @VLAN_HLEN
	.comm	_PTP_CLASS_PMASK,4,2            ; @PTP_CLASS_PMASK
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_UDP_HLEN,4,2                   ; @UDP_HLEN
	.comm	_IP6_HLEN,4,2                   ; @IP6_HLEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mlxsw_sp_ptp_parse
.subsections_via_symbols
