	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip175c_correct_vlan_state
_ip175c_correct_vlan_state:             ## @ip175c_correct_vlan_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, (%rdi)
	movq	_MAX_VLANS@GOTPCREL(%rip), %r11
	movl	(%r11), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	8(%rdi), %rax
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rbx
	movq	%rsi, %rdx
	cmpq	%rbx, %rsi
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rdx), %rsi
	cmpl	$0, (%rax,%rdx,4)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
	movl	%edx, (%rdi)
	movl	(%r11), %ecx
	jmp	LBB0_4
LBB0_5:
	movq	24(%rdi), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_15
## %bb.6:
	movl	$-1, %r8d
	movl	%r9d, %ecx
	shll	%cl, %r8d
	movl	32(%rdi), %r10d
	notl	%r8d
	movq	16(%rdi), %r14
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%r8d, (%r14,%rcx,4)
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rcx
	cmpq	%r9, %rcx
	je	LBB0_15
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	$1, %r12d
	shll	%cl, %r12d
	testl	%r10d, %r10d
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r12d, (%r14,%rcx,4)
	movl	(%r11), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rdi), %r15
	movl	%r12d, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%rbx
	movslq	%edx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rbx,4), %eax
	testl	%r12d, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	orl	%eax, %esi
	movl	%esi, (%r14,%rcx,4)
	movl	(%r11), %edx
	jmp	LBB0_13
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_VLANS,4,2                  ## @MAX_VLANS
	.no_dead_strip	_ip175c_correct_vlan_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip175c_correct_vlan_state
_ip175c_correct_vlan_state:             ; @ip175c_correct_vlan_state
	.cfi_startproc
; %bb.0:
	str	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.1:
	mov	x10, #0
	ldr	x11, [x0, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, w9, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10, lsl #2]
	cbz	w12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w10, #1
	str	w9, [x0]
	ldr	w9, [x8]
	b	LBB0_2
LBB0_5:
	ldr	x9, [x0, #24]
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.6:
	mov	x10, #0
	ldr	w11, [x0, #32]
	mov	w12, #-1
	lsl	w12, w12, w9
	mvn	w12, w12
	ldr	x13, [x0, #16]
	mov	w14, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	w12, [x13, x10, lsl #2]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_15
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cbz	w11, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	lsl	w15, w14, w10
	str	w15, [x13, x10, lsl #2]
	ldr	w16, [x8]
	cmp	w16, #1
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x17, #0
	ldr	x1, [x0, #8]
	mov	x2, x15
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x17, x17, #1
	cmp	x17, w16, sxtw
	b.ge	LBB0_8
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w3, [x1, x17, lsl #2]
	tst	w3, w15
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	orr	w2, w2, w3
	str	w2, [x13, x10, lsl #2]
	ldr	w16, [x8]
	b	LBB0_12
LBB0_15:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_VLANS,4,2                  ; @MAX_VLANS
	.no_dead_strip	_ip175c_correct_vlan_state
.subsections_via_symbols
