	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip17xx_reset_vlan_config
_ip17xx_reset_vlan_config:              ## @ip17xx_reset_vlan_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 32(%rdi)
	je	LBB0_1
## %bb.2:
	movq	24(%rdi), %rax
	movb	(%rax), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movl	%eax, (%rdi)
	movl	$0, 4(%rdi)
	movq	_MAX_VLANS@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_6
## %bb.4:
	movq	16(%rdi), %rcx
	xorl	%edx, %edx
	movl	$16, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rcx,%rdx,8)
	testq	%rdx, %rdx
	movl	%edx, %eax
	cmovel	%esi, %eax
	movl	%eax, 4(%rcx,%rdx,8)
	incq	%rdx
	movslq	(%r8), %rax
	cmpq	%rax, %rdx
	jl	LBB0_5
LBB0_6:
	movq	_MAX_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.7:
	movq	8(%rdi), %rdi
	shlq	$3, %rsi
	callq	___bzero
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_VLANS,4,2                  ## @MAX_VLANS
	.comm	_MAX_PORTS,4,2                  ## @MAX_PORTS
	.no_dead_strip	_ip17xx_reset_vlan_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip17xx_reset_vlan_config
_ip17xx_reset_vlan_config:              ; @ip17xx_reset_vlan_config
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
LBB0_2:
	stp	w8, wzr, [x0]
Lloh0:
	adrp	x8, _MAX_VLANS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_VLANS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x9, #0
	ldr	x10, [x0, #16]
	add	x10, x10, #4
	mov	w11, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, #0
	csel	w12, w11, w9, eq
	stp	wzr, w12, [x10, #-4]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	add	x10, x10, #8
	cmp	x9, x12
	b.lt	LBB0_4
LBB0_5:
Lloh2:
	adrp	x8, _MAX_PORTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_PORTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	x0, [x0, #8]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_7:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_VLANS,4,2                  ; @MAX_VLANS
	.comm	_MAX_PORTS,4,2                  ; @MAX_PORTS
	.no_dead_strip	_ip17xx_reset_vlan_config
.subsections_via_symbols
