	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_tx_prepare_vlan_flags
_i40e_tx_prepare_vlan_flags:            ## @i40e_tx_prepare_vlan_flags
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_htons
	cmpq	%rax, %r13
	jne	LBB0_3
## %bb.1:
	movq	8(%r12), %rax
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_skb_vlan_tag_get
	movl	%eax, %ebx
	movq	_I40E_TX_FLAGS_VLAN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_I40E_TX_FLAGS_HW_VLAN@GOTPCREL(%rip), %rax
LBB0_9:
	orl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movl	(%rbx), %edi
	callq	_htons
	xorl	%ebx, %ebx
	cmpq	%rax, %r13
	jne	LBB0_10
## %bb.6:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movl	$16, %edx
	callq	_skb_header_pointer
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	8(%rax), %edi
	callq	_ntohs
	movl	%eax, %ebx
	movq	_I40E_TX_FLAGS_VLAN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_I40E_TX_FLAGS_SW_VLAN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_I40E_FLAG_DCB_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_17
## %bb.11:
	movq	_I40E_TX_FLAGS_HW_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_I40E_TX_FLAGS_SW_VLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	movl	8(%r15), %esi
	testl	%ebx, %ecx
	jne	LBB0_13
## %bb.12:
	movq	_TC_PRIO_CONTROL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	je	LBB0_17
LBB0_13:
	movq	_I40E_TX_FLAGS_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_I40E_TX_FLAGS_VLAN_PRIO_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	$7, %esi
	shll	%cl, %esi
	notl	%edi
	movl	%ebx, %ecx
	andl	%edi, %ecx
	movl	%esi, %ebx
	orl	%ecx, %ebx
	testl	%edx, %ebx
	je	LBB0_16
## %bb.14:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_skb_cow_head
	testl	%eax, %eax
	js	LBB0_18
## %bb.15:
	movq	16(%r15), %r15
	movq	_I40E_TX_FLAGS_VLAN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %edi
	sarl	%cl, %edi
	callq	_htons
	movq	%rax, (%r15)
	jmp	LBB0_17
LBB0_2:
	movq	%r15, %rdi
	callq	_vlan_get_protocol
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_16:
	orl	%eax, %ebx
LBB0_17:
	movl	%ebx, (%r14)
	xorl	%eax, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_I40E_TX_FLAGS_VLAN_SHIFT,4,2   ## @I40E_TX_FLAGS_VLAN_SHIFT
	.comm	_I40E_TX_FLAGS_HW_VLAN,4,2      ## @I40E_TX_FLAGS_HW_VLAN
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I40E_TX_FLAGS_SW_VLAN,4,2      ## @I40E_TX_FLAGS_SW_VLAN
	.comm	_I40E_FLAG_DCB_ENABLED,4,2      ## @I40E_FLAG_DCB_ENABLED
	.comm	_TC_PRIO_CONTROL,4,2            ## @TC_PRIO_CONTROL
	.comm	_I40E_TX_FLAGS_VLAN_PRIO_MASK,4,2 ## @I40E_TX_FLAGS_VLAN_PRIO_MASK
	.comm	_I40E_TX_FLAGS_VLAN_PRIO_SHIFT,4,2 ## @I40E_TX_FLAGS_VLAN_PRIO_SHIFT
	.no_dead_strip	_i40e_tx_prepare_vlan_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_tx_prepare_vlan_flags
_i40e_tx_prepare_vlan_flags:            ; @i40e_tx_prepare_vlan_flags
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x24, _ETH_P_8021Q@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ETH_P_8021Q@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_2:
	mov	x0, x20
	bl	_skb_vlan_tag_present
Lloh5:
	adrp	x23, _I40E_TX_FLAGS_HW_VLAN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _I40E_TX_FLAGS_HW_VLAN@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_skb_vlan_tag_get
Lloh7:
	adrp	x8, _I40E_TX_FLAGS_VLAN_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40E_TX_FLAGS_VLAN_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	ldr	w9, [x23]
LBB0_4:
	orr	w22, w8, w9
	b	LBB0_10
LBB0_5:
	ldr	w0, [x24]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_9
; %bb.6:
Lloh10:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	w2, #16
	bl	_skb_header_pointer
	cbz	x0, LBB0_18
; %bb.7:
	ldr	w0, [x0, #8]
	bl	_ntohs
Lloh13:
	adrp	x8, _I40E_TX_FLAGS_VLAN_SHIFT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40E_TX_FLAGS_VLAN_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh16:
	adrp	x9, _I40E_TX_FLAGS_SW_VLAN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _I40E_TX_FLAGS_SW_VLAN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	b	LBB0_4
LBB0_8:
	mov	x0, x20
	bl	_vlan_get_protocol
	mov	w22, #0
	str	x0, [x20]
	b	LBB0_16
LBB0_9:
	mov	w22, #0
LBB0_10:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _I40E_FLAG_DCB_ENABLED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _I40E_FLAG_DCB_ENABLED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.11:
	ldr	w8, [x23]
Lloh22:
	adrp	x9, _I40E_TX_FLAGS_SW_VLAN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _I40E_TX_FLAGS_SW_VLAN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w10, w9, w8
	and	w11, w10, w22
	ldr	w10, [x20, #8]
Lloh25:
	adrp	x12, _TC_PRIO_CONTROL@GOTPAGE
Lloh26:
	ldr	x12, [x12, _TC_PRIO_CONTROL@GOTPAGEOFF]
Lloh27:
	ldr	w12, [x12]
	cmp	w11, #0
	ccmp	w10, w12, #0, eq
	b.eq	LBB0_16
; %bb.12:
Lloh28:
	adrp	x11, _I40E_TX_FLAGS_VLAN_PRIO_MASK@GOTPAGE
Lloh29:
	ldr	x11, [x11, _I40E_TX_FLAGS_VLAN_PRIO_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	bic	w11, w22, w11
	and	w10, w10, #0x7
Lloh31:
	adrp	x12, _I40E_TX_FLAGS_VLAN_PRIO_SHIFT@GOTPAGE
Lloh32:
	ldr	x12, [x12, _I40E_TX_FLAGS_VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w12, [x12]
	lsl	w10, w10, w12
	orr	w22, w10, w11
	tst	w22, w9
	b.eq	LBB0_15
; %bb.13:
	mov	x0, x20
	mov	w1, #0
	bl	_skb_cow_head
	tbnz	w0, #31, LBB0_17
; %bb.14:
	ldr	x20, [x20, #16]
Lloh34:
	adrp	x8, _I40E_TX_FLAGS_VLAN_SHIFT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I40E_TX_FLAGS_VLAN_SHIFT@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	asr	w0, w22, w8
	bl	_htons
	str	x0, [x20]
	b	LBB0_16
LBB0_15:
	orr	w22, w22, w8
LBB0_16:
	mov	w0, #0
	str	w22, [x19]
LBB0_17:
	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
LBB0_18:
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_I40E_TX_FLAGS_VLAN_SHIFT,4,2   ; @I40E_TX_FLAGS_VLAN_SHIFT
	.comm	_I40E_TX_FLAGS_HW_VLAN,4,2      ; @I40E_TX_FLAGS_HW_VLAN
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I40E_TX_FLAGS_SW_VLAN,4,2      ; @I40E_TX_FLAGS_SW_VLAN
	.comm	_I40E_FLAG_DCB_ENABLED,4,2      ; @I40E_FLAG_DCB_ENABLED
	.comm	_TC_PRIO_CONTROL,4,2            ; @TC_PRIO_CONTROL
	.comm	_I40E_TX_FLAGS_VLAN_PRIO_MASK,4,2 ; @I40E_TX_FLAGS_VLAN_PRIO_MASK
	.comm	_I40E_TX_FLAGS_VLAN_PRIO_SHIFT,4,2 ; @I40E_TX_FLAGS_VLAN_PRIO_SHIFT
	.no_dead_strip	_i40e_tx_prepare_vlan_flags
.subsections_via_symbols
