	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_test_vlanoff_common
_stmmac_test_vlanoff_common:            ## @stmmac_test_vlanoff_common
	.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
	movl	$0, -48(%rbp)
	cmpl	$0, 8(%rdi)
	je	LBB0_1
## %bb.3:
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	leaq	48(%rax), %rdi
	testl	%r13d, %r13d
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rbx
	movq	_ETH_P_8021AD@GOTPCREL(%rip), %rax
	cmoveq	%rbx, %rax
	movl	(%rax), %r15d
	movl	$0, (%r12)
	movl	%r13d, 4(%r12)
	cmoveq	_ETH_P_IP@GOTPCREL(%rip), %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_init_completion
	movl	(%rbx), %edi
	callq	_htons
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	%rax, 40(%r12)
	movq	_stmmac_test_vlan_validate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	(%r14), %rax
	movq	%rax, 24(%r12)
	movq	%r12, 16(%r12)
	leaq	-48(%rbp), %rax
	movq	%rax, 56(%r12)
	movl	$291, 8(%r12)                   ## imm = 0x123
	movq	%rbx, %rdi
	callq	_dev_add_pack
	movq	(%r14), %r13
	movl	%r15d, %edi
	callq	_htons
	movl	8(%r12), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_vlan_vid_add
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stmmac_test_get_udp_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_htons
	movl	8(%r12), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	___vlan_hwaccel_put_tag
	movl	%r15d, %edi
	callq	_htons
	movq	%rax, (%r13)
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_skb_set_queue_mapping
	movq	%r13, %rdi
	callq	_dev_queue_xmit
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_STMMAC_LB_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_wait_for_completion_timeout
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	cmpl	$0, (%r12)
	cmovnel	%r15d, %r13d
	jmp	LBB0_10
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movq	(%r14), %r14
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_htons
	movl	8(%r12), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_vlan_vid_del
LBB0_11:
	movq	%rbx, %rdi
	callq	_dev_remove_pack
	movq	%r12, %rdi
	callq	_kfree
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_P_8021AD,4,2               ## @ETH_P_8021AD
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_stmmac_test_vlan_validate,4,2  ## @stmmac_test_vlan_validate
	.comm	_STMMAC_LB_TIMEOUT,4,2          ## @STMMAC_LB_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_stmmac_test_vlanoff_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_test_vlanoff_common
_stmmac_test_vlanoff_common:            ; @stmmac_test_vlanoff_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	str	wzr, [sp, #8]
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x8, _ETH_P_8021AD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_8021AD@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ETH_P_8021Q@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ETH_P_8021Q@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w21, [x8]
	stp	wzr, w22, [x0]
	add	x23, x0, #48
Lloh7:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
	csel	x22, x8, x9, eq
	mov	x0, x23
	bl	_init_completion
	ldr	w0, [x22]
	bl	_htons
	add	x22, x19, #16
	str	x0, [x19, #40]
Lloh9:
	adrp	x8, _stmmac_test_vlan_validate@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stmmac_test_vlan_validate@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x8, [x20]
	stp	x19, x8, [x19, #16]
	add	x8, sp, #8
	str	x8, [x19, #56]
	mov	w8, #291
	str	w8, [x19, #8]
	mov	x0, x22
	bl	_dev_add_pack
	ldr	x24, [x20]
	mov	x0, x21
	bl	_htons
	mov	x1, x0
	ldr	w2, [x19, #8]
	mov	x0, x24
	bl	_vlan_vid_add
	mov	x24, x0
	cbnz	w0, LBB0_11
; %bb.3:
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_stmmac_test_get_udp_skb
	cbz	x0, LBB0_9
; %bb.4:
	mov	x24, x0
	mov	x0, x21
	bl	_htons
	mov	x1, x0
	ldr	w2, [x19, #8]
	mov	x0, x24
	bl	___vlan_hwaccel_put_tag
	mov	x0, x21
	bl	_htons
	str	x0, [x24]
	mov	x0, x24
	mov	w1, #0
	bl	_skb_set_queue_mapping
	mov	x0, x24
	bl	_dev_queue_xmit
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.5:
Lloh12:
	adrp	x8, _STMMAC_LB_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STMMAC_LB_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_wait_for_completion_timeout
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w24, wzr, w9, ne
	b	LBB0_10
LBB0_6:
Lloh18:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_12
LBB0_9:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	ldr	x20, [x20]
	mov	x0, x21
	bl	_htons
	mov	x1, x0
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_vlan_vid_del
LBB0_11:
	mov	x0, x22
	bl	_dev_remove_pack
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x24
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_P_8021AD,4,2               ; @ETH_P_8021AD
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_stmmac_test_vlan_validate,4,2  ; @stmmac_test_vlan_validate
	.comm	_STMMAC_LB_TIMEOUT,4,2          ; @STMMAC_LB_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_stmmac_test_vlanoff_common
.subsections_via_symbols
