	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iavf_tx_prepare_vlan_flags
_iavf_tx_prepare_vlan_flags:            ## @iavf_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, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_htons
	cmpq	%rax, %r12
	jne	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_skb_vlan_tag_get
	movq	_IAVF_TX_FLAGS_VLAN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_IAVF_TX_FLAGS_HW_VLAN@GOTPCREL(%rip), %rcx
LBB0_9:
	orl	(%rcx), %eax
	jmp	LBB0_10
LBB0_5:
	movl	(%r13), %edi
	callq	_htons
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r12
	jne	LBB0_10
## %bb.6:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_skb_header_pointer
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	8(%rax), %edi
	callq	_ntohs
	movq	_IAVF_TX_FLAGS_VLAN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_IAVF_TX_FLAGS_SW_VLAN@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	callq	_vlan_get_protocol
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_10:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_11:
	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_11
	.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	_IAVF_TX_FLAGS_VLAN_SHIFT,4,2   ## @IAVF_TX_FLAGS_VLAN_SHIFT
	.comm	_IAVF_TX_FLAGS_HW_VLAN,4,2      ## @IAVF_TX_FLAGS_HW_VLAN
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IAVF_TX_FLAGS_SW_VLAN,4,2      ## @IAVF_TX_FLAGS_SW_VLAN
	.no_dead_strip	_iavf_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 iavf_tx_prepare_vlan_flags
_iavf_tx_prepare_vlan_flags:            ; @iavf_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	x23, _ETH_P_8021Q@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ETH_P_8021Q@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	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
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_skb_vlan_tag_get
Lloh5:
	adrp	x8, _IAVF_TX_FLAGS_VLAN_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IAVF_TX_FLAGS_VLAN_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh8:
	adrp	x9, _IAVF_TX_FLAGS_HW_VLAN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IAVF_TX_FLAGS_HW_VLAN@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_10
LBB0_5:
	ldr	w0, [x23]
	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_12
; %bb.7:
	ldr	w0, [x0, #8]
	bl	_ntohs
Lloh13:
	adrp	x8, _IAVF_TX_FLAGS_VLAN_SHIFT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IAVF_TX_FLAGS_VLAN_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh16:
	adrp	x9, _IAVF_TX_FLAGS_SW_VLAN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IAVF_TX_FLAGS_SW_VLAN@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
	mov	x0, x20
	bl	_vlan_get_protocol
	mov	w8, #0
	str	x0, [x20]
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
	mov	w0, #0
	str	w8, [x19]
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
	add	sp, sp, #80
	ret
LBB0_12:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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	_IAVF_TX_FLAGS_VLAN_SHIFT,4,2   ; @IAVF_TX_FLAGS_VLAN_SHIFT
	.comm	_IAVF_TX_FLAGS_HW_VLAN,4,2      ; @IAVF_TX_FLAGS_HW_VLAN
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IAVF_TX_FLAGS_SW_VLAN,4,2      ; @IAVF_TX_FLAGS_SW_VLAN
	.no_dead_strip	_iavf_tx_prepare_vlan_flags
.subsections_via_symbols
