	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gswip_vlan_add_unaware
_gswip_vlan_add_unaware:                ## @gswip_vlan_add_unaware
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	8(%rdi), %rdi
	movq	16(%r12), %rax
	movslq	(%rax), %rbx
	movl	4(%rax), %r15d
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_4
## %bb.1:
	movl	%ebx, %r14d
	negl	%r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	cmpq	%r13, (%rdi,%rbx,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	decl	%r14d
	cmpq	%rax, %rbx
	jl	LBB0_2
	jmp	LBB0_4
LBB0_5:
	cmpl	$1, %r14d
	jne	LBB0_6
LBB0_4:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gswip_vlan_active_create       ## TAILCALL
LBB0_6:
	negl	%r14d
	movl	%r14d, -80(%rbp)
	movq	_GSWIP_TABLE_VLAN_MAPPING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gswip_pce_table_entry_read
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_9:
	movl	%r15d, %edi
	callq	_BIT
	movq	-72(%rbp), %rcx
	orl	%eax, 4(%rcx)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_BIT
	movq	-72(%rbp), %rcx
	orl	%eax, 4(%rcx)
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gswip_pce_table_entry_write
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%r14d, %edi
	callq	_GSWIP_PCE_DEFPVID
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_gswip_switch_w
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GSWIP_TABLE_VLAN_MAPPING,8,3   ## @GSWIP_TABLE_VLAN_MAPPING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read VLAN mapping: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to write VLAN mapping: %d\n"

	.no_dead_strip	_gswip_vlan_add_unaware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gswip_vlan_add_unaware
_gswip_vlan_add_unaware:                ; @gswip_vlan_add_unaware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	ldp	x0, x8, [x0, #8]
	ldp	w23, w21, [x8]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ge	LBB0_5
; %bb.1:
	neg	w24, w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	ldr	x8, [x0, x23, lsl #3]
	cmp	x8, x22
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	sub	w24, w24, #1
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	cmp	w24, #1
	b.ne	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #-1
	mov	w3, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_gswip_vlan_active_create
LBB0_6:
	neg	w8, w24
	str	w8, [sp]
Lloh0:
	adrp	x8, _GSWIP_TABLE_VLAN_MAPPING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GSWIP_TABLE_VLAN_MAPPING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_gswip_pce_table_entry_read
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_BIT
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	mov	x0, x20
	bl	_BIT
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	mov	x1, sp
	mov	x0, x19
	bl	_gswip_pce_table_entry_write
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.9:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x2, x22
	bl	_dev_err
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	mov	x0, x20
	bl	_GSWIP_PCE_DEFPVID
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_gswip_switch_w
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GSWIP_TABLE_VLAN_MAPPING,8,3   ; @GSWIP_TABLE_VLAN_MAPPING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read VLAN mapping: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to write VLAN mapping: %d\n"

	.no_dead_strip	_gswip_vlan_add_unaware
.subsections_via_symbols
