	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function push_vlan
_push_vlan:                             ## @push_vlan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_vlan_tx_tag_present
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_vlan_tx_tag_get
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	___vlan_put_tag
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	(%rbx), %rax
	movq	_CHECKSUM_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	16(%rbx), %r15d
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rdi, %rdi
	addq	8(%rbx), %rdi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_csum_partial
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_csum_add
	movl	%eax, 16(%rbx)
LBB0_4:
	movl	(%r14), %edi
	callq	_ntohs
	movq	_VLAN_TAG_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	%rbx, %rdi
	callq	___vlan_hwaccel_put_tag
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CHECKSUM_COMPLETE,8,3          ## @CHECKSUM_COMPLETE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_VLAN_TAG_PRESENT,4,2           ## @VLAN_TAG_PRESENT
	.no_dead_strip	_push_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function push_vlan
_push_vlan:                             ; @push_vlan
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_vlan_tx_tag_present
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_vlan_tx_tag_get
	mov	x1, x0
	mov	x0, x19
	bl	___vlan_put_tag
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CHECKSUM_COMPLETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHECKSUM_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w21, [x19, #16]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh5:
	ldrsw	x8, [x8]
	add	x0, x9, x8, lsl #1
Lloh6:
	adrp	x8, _VLAN_HLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VLAN_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_csum_partial
	mov	x1, x0
	mov	x0, x21
	bl	_csum_add
	str	w0, [x19, #16]
LBB0_4:
	ldr	w0, [x20]
	bl	_ntohs
Lloh9:
	adrp	x8, _VLAN_TAG_PRESENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VLAN_TAG_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x19
	bl	___vlan_hwaccel_put_tag
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CHECKSUM_COMPLETE,8,3          ; @CHECKSUM_COMPLETE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_VLAN_TAG_PRESENT,4,2           ; @VLAN_TAG_PRESENT
	.no_dead_strip	_push_vlan
.subsections_via_symbols
