	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_test_vlan_validate
_stmmac_test_vlan_validate:             ## @stmmac_test_vlan_validate
	.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), %r14
	cmpq	$0, 24(%r14)
	jne	LBB0_1
## %bb.2:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ETH_P_8021AD@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r15d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_skb_unshare
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	movq	%rbx, %rdi
	callq	_skb_linearize
	testq	%rax, %rax
	jne	LBB0_17
## %bb.5:
	movq	%rbx, %rdi
	callq	_skb_headlen
	movq	_STMMAC_TEST_PKT_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ETH_HLEN@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_17
## %bb.6:
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.7:
	movq	(%rbx), %r12
	movl	%r15d, %edi
	callq	_htons
	cmpq	%rax, %r12
	jne	LBB0_17
## %bb.8:
	movq	8(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_17
LBB0_9:
	movq	%rbx, %rdi
	callq	_skb_mac_header
	movl	(%rax), %edi
	movq	16(%r14), %rax
	movl	4(%rax), %esi
	callq	_ether_addr_equal
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:
	movq	%rbx, %rdi
	callq	_ip_hdr
	cmpq	$0, 24(%r14)
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	callq	_skb_network_header
	movq	%rax, %r15
	addq	$4, %r15
	jmp	LBB0_13
LBB0_11:
	movq	%rax, %r15
LBB0_13:
	movq	(%r15), %rax
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.14:
	movslq	8(%r15), %r12
	shlq	$4, %r12
	movq	(%r15,%r12), %r13
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r13
	jne	LBB0_17
## %bb.15:
	addq	%r12, %r15
	movq	32(%r15), %r15
	movq	_STMMAC_TEST_PKT_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be64
	cmpq	%rax, %r15
	jne	LBB0_17
## %bb.16:
	movl	$1, 8(%r14)
	addq	$12, %r14
	movq	%r14, %rdi
	callq	_complete
LBB0_17:
	movq	%rbx, %rdi
	callq	_kfree_skb
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021AD,4,2               ## @ETH_P_8021AD
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_STMMAC_TEST_PKT_SIZE,8,3       ## @STMMAC_TEST_PKT_SIZE
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_STMMAC_TEST_PKT_MAGIC,4,2      ## @STMMAC_TEST_PKT_MAGIC
	.no_dead_strip	_stmmac_test_vlan_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_test_vlan_validate
_stmmac_test_vlan_validate:             ; @stmmac_test_vlan_validate
	.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
	ldr	x21, [x2]
	ldr	x8, [x21, #24]
Lloh0:
	adrp	x9, _ETH_P_8021AD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_P_8021AD@GOTPAGEOFF]
Lloh2:
	adrp	x10, _ETH_P_8021Q@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ETH_P_8021Q@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w20, [x8]
Lloh4:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_skb_unshare
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.1:
	mov	x0, x19
	bl	_skb_linearize
	cbnz	x0, LBB0_13
; %bb.2:
	mov	x0, x19
	bl	_skb_headlen
Lloh7:
	adrp	x8, _STMMAC_TEST_PKT_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STMMAC_TEST_PKT_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	sub	x8, x8, x9
	cmp	x0, x8
	b.lt	LBB0_13
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x22, [x19]
	mov	x0, x20
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_13
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_skb_mac_header
	ldr	w0, [x0]
	ldr	x8, [x21, #16]
	ldr	w1, [x8, #4]
	bl	_ether_addr_equal
	cbz	w0, LBB0_13
; %bb.7:
	mov	x0, x19
	bl	_ip_hdr
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_skb_network_header
	add	x0, x0, #4
LBB0_9:
	ldr	x8, [x0]
Lloh13:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
	ldrsw	x8, [x0, #8]
	add	x20, x0, x8, lsl #4
	ldr	x22, [x20]
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_13
; %bb.11:
	ldr	x20, [x20, #32]
Lloh16:
	adrp	x8, _STMMAC_TEST_PKT_MAGIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _STMMAC_TEST_PKT_MAGIC@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_cpu_to_be64
	cmp	x20, x0
	b.ne	LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x21, #8]
	add	x0, x21, #12
	bl	_complete
LBB0_13:
	mov	x0, x19
	bl	_kfree_skb
	mov	w0, #0
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021AD,4,2               ; @ETH_P_8021AD
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_STMMAC_TEST_PKT_SIZE,8,3       ; @STMMAC_TEST_PKT_SIZE
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_STMMAC_TEST_PKT_MAGIC,4,2      ; @STMMAC_TEST_PKT_MAGIC
	.no_dead_strip	_stmmac_test_vlan_validate
.subsections_via_symbols
