	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_vlan_insert
_stmmac_vlan_insert:                    ## @stmmac_vlan_insert
	.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
	xorl	%r12d, %r12d
	cmpl	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_skb_vlan_tag_present
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r14
	movq	_ETH_P_8021AD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	xorl	%r12d, %r12d
	movl	$0, %r13d
	movl	$0, %edx
	cmpq	%rax, %r14
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_skb_vlan_tag_get
	movl	%eax, %r13d
	movq	_STMMAC_VLAN_INSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_skb_vlan_tag_get
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movslq	(%r14), %rbx
	shlq	$2, %rbx
	addq	8(%r14), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_stmmac_set_desc_vlan_tag
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_stmmac_set_tx_owner
	movl	(%r14), %edi
	movq	_DMA_TX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STMMAC_GET_ENTRY
	movl	%eax, (%r14)
	movl	$1, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %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	_STMMAC_VLAN_INSERT,4,2         ## @STMMAC_VLAN_INSERT
	.comm	_DMA_TX_SIZE,4,2                ## @DMA_TX_SIZE
	.no_dead_strip	_stmmac_vlan_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_vlan_insert
_stmmac_vlan_insert:                    ; @stmmac_vlan_insert
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_skb_vlan_tag_present
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _ETH_P_8021AD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021AD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_skb_vlan_tag_get
	mov	x22, x0
Lloh3:
	adrp	x8, _STMMAC_VLAN_INSERT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STMMAC_VLAN_INSERT@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_5
LBB0_4:
	mov	w22, #0
	mov	w23, #0
LBB0_5:
	mov	x0, x21
	bl	_skb_vlan_tag_get
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x21, x8, x9, lsl #2
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	mov	x4, x23
	bl	_stmmac_set_desc_vlan_tag
	cbz	x0, LBB0_7
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_stmmac_set_tx_owner
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _DMA_TX_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TX_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_STMMAC_GET_ENTRY
	str	w0, [x19]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021AD,4,2               ; @ETH_P_8021AD
	.comm	_STMMAC_VLAN_INSERT,4,2         ; @STMMAC_VLAN_INSERT
	.comm	_DMA_TX_SIZE,4,2                ; @DMA_TX_SIZE
	.no_dead_strip	_stmmac_vlan_insert
.subsections_via_symbols
