	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	_CMD_NONE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r13d
	cmpl	$2, %edi
	jne	LBB0_3
## %bb.1:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_swlib_list
	jmp	LBB0_87
LBB0_3:
	cmpl	$3, %r12d
	jg	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_print_usage
LBB0_5:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_print_usage
LBB0_7:
	movq	16(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpl	$4, %r12d
	jl	LBB0_8
## %bb.9:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	$3, %r15d
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_print_usage
	movl	%r15d, %r14d
LBB0_42:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%r14d
	movl	%r14d, %r15d
	cmpl	%r12d, %r14d
	jge	LBB0_43
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	(%rbx), %r13d
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	movslq	%r15d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r15), %r14d
	cmpl	%r12d, %r14d
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r14d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_atoi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r15), %r14d
	cmpl	%r12d, %r14d
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r14d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_atoi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r15), %r14d
	cmpl	%r12d, %r14d
	jge	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r14d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addl	$2, %r15d
	cmpl	%r12d, %r15d
	movq	%r13, %rbx
	jge	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r15d, %rax
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r14d
	movl	$129, %r13d
	jmp	LBB0_42
LBB0_25:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r15), %r14d
	cmpl	%r12d, %r14d
	jge	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r14d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	movl	$133, %r13d
	jmp	LBB0_42
LBB0_28:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_34
## %bb.29:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r15), %r14d
	cmpl	%r12d, %r14d
	jge	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	%r13, %rbx
	jns	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_print_usage
LBB0_33:                                ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r14d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$131, %r13d
	jmp	LBB0_42
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %r14d
	movq	%r13, %rbx
	movl	$132, %r13d
	jmp	LBB0_42
LBB0_34:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_35
## %bb.38:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_print_usage
	movl	%r15d, %r14d
LBB0_41:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rbx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_35:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r15), %r14d
	cmpl	%r12d, %r14d
	movq	%r13, %rbx
	jge	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r14d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$130, %r13d
	jmp	LBB0_42
LBB0_39:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %r14d
	movq	%r13, %rbx
	movl	$128, %r13d
	jmp	LBB0_42
LBB0_36:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %r14d
	movl	$130, %r13d
	jmp	LBB0_42
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	$129, %r13d
	jmp	LBB0_42
LBB0_8:
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_43:
	cmpl	(%rbx), %r13d
	jne	LBB0_45
## %bb.44:
	xorl	%eax, %eax
	callq	_print_usage
LBB0_45:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	js	LBB0_48
## %bb.46:
	testl	%ebx, %ebx
	js	LBB0_48
## %bb.47:
	xorl	%eax, %eax
	callq	_print_usage
LBB0_48:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_swlib_connect
	testq	%rax, %rax
	je	LBB0_49
## %bb.50:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_swlib_scan
	movl	%r13d, %eax
	andl	$-5, %eax
                                        ## implicit-def: $r15
	cmpl	$129, %eax
	jne	LBB0_58
## %bb.51:
	testl	%ebx, %ebx
	js	LBB0_52
## %bb.53:
	movq	_SWLIB_ATTR_GROUP_VLAN@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	jns	LBB0_55
	jmp	LBB0_56
LBB0_49:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %r14d
	jmp	LBB0_87
LBB0_52:
	movq	_SWLIB_ATTR_GROUP_GLOBAL@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	js	LBB0_56
LBB0_55:
	movq	_SWLIB_ATTR_GROUP_PORT@GOTPCREL(%rip), %rax
LBB0_56:
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_swlib_lookup_attr
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_57
LBB0_58:
	xorl	%r14d, %r14d
	addl	$-128, %r13d
	cmpl	$5, %r13d
	ja	LBB0_86
## %bb.59:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_75:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jns	LBB0_77
## %bb.76:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jns	LBB0_77
## %bb.80:
	movq	%r12, %rdi
	callq	_show_global
	cmpl	$0, (%r12)
	jle	LBB0_83
## %bb.81:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_82:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_show_port
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_82
LBB0_83:
	cmpl	$0, 4(%r12)
	jle	LBB0_86
## %bb.84:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_85:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_show_vlan
	incl	%ebx
	cmpl	4(%r12), %ebx
	jl	LBB0_85
	jmp	LBB0_86
LBB0_57:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	movl	$-1, %r14d
	jmp	LBB0_86
LBB0_60:
	movl	(%r15), %eax
	movq	_SWITCH_TYPE_NOVAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_63
## %bb.61:
	testq	%rbx, %rbx
	jne	LBB0_63
## %bb.62:
	xorl	%eax, %eax
	callq	_print_usage
LBB0_63:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmovnsl	%eax, %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_swlib_set_attr_string
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_86
## %bb.64:
	movl	%r14d, %edi
	negl	%edi
	leaq	L_.str.12(%rip), %rsi
	callq	_nl_perror
	jmp	LBB0_86
LBB0_74:
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_swlib_print_portmap
	jmp	LBB0_86
LBB0_72:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_swconfig_load_uci
	jmp	LBB0_86
LBB0_73:
	movq	%r12, %rdi
	callq	_list_attributes
	jmp	LBB0_86
LBB0_65:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	js	LBB0_67
## %bb.66:
	movl	%eax, -72(%rbp)
LBB0_67:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	js	LBB0_69
## %bb.68:
	movl	%eax, -72(%rbp)
LBB0_69:
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_swlib_get_attr
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_70
## %bb.71:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_print_attr_val
	movl	$10, %edi
	callq	_putchar
	jmp	LBB0_86
LBB0_77:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	js	LBB0_79
## %bb.78:
	movq	%r12, %rdi
	callq	_show_port
	jmp	LBB0_86
LBB0_70:
	movl	%r14d, %edi
	negl	%edi
	leaq	L_.str.13(%rip), %rsi
	callq	_nl_perror
	jmp	LBB0_86
LBB0_79:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_show_vlan
LBB0_86:
	movq	%r12, %rdi
	callq	_swlib_free_all
LBB0_87:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_75, LBB0_75-LJTI0_0
.set L0_0_set_60, LBB0_60-LJTI0_0
.set L0_0_set_74, LBB0_74-LJTI0_0
.set L0_0_set_72, LBB0_72-LJTI0_0
.set L0_0_set_73, LBB0_73-LJTI0_0
.set L0_0_set_65, LBB0_65-LJTI0_0
LJTI0_0:
	.long	L0_0_set_75
	.long	L0_0_set_60
	.long	L0_0_set_74
	.long	L0_0_set_72
	.long	L0_0_set_73
	.long	L0_0_set_65
	.end_data_region
                                        ## -- End function
	.comm	_CMD_NONE,4,2                   ## @CMD_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"list"

L_.str.1:                               ## @.str.1
	.asciz	"dev"

L_.str.2:                               ## @.str.2
	.asciz	"port"

L_.str.3:                               ## @.str.3
	.asciz	"vlan"

L_.str.4:                               ## @.str.4
	.asciz	"help"

L_.str.5:                               ## @.str.5
	.asciz	"set"

L_.str.6:                               ## @.str.6
	.asciz	"get"

L_.str.7:                               ## @.str.7
	.asciz	"load"

L_.str.8:                               ## @.str.8
	.asciz	"portmap"

L_.str.9:                               ## @.str.9
	.asciz	"show"

	.comm	_stderr,4,2                     ## @stderr
L_.str.10:                              ## @.str.10
	.asciz	"Failed to connect to the switch. Use the \"list\" command to see which switches are available.\n"

	.comm	_SWLIB_ATTR_GROUP_PORT,4,2      ## @SWLIB_ATTR_GROUP_PORT
	.comm	_SWLIB_ATTR_GROUP_VLAN,4,2      ## @SWLIB_ATTR_GROUP_VLAN
	.comm	_SWLIB_ATTR_GROUP_GLOBAL,4,2    ## @SWLIB_ATTR_GROUP_GLOBAL
L_.str.11:                              ## @.str.11
	.asciz	"Unknown attribute \"%s\"\n"

	.comm	_SWITCH_TYPE_NOVAL,4,2          ## @SWITCH_TYPE_NOVAL
L_.str.12:                              ## @.str.12
	.asciz	"Failed to set attribute"

L_.str.13:                              ## @.str.13
	.asciz	"Failed to get attribute"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x22, _CMD_NONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CMD_NONE@GOTPAGEOFF]
	ldr	w23, [x22]
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x24, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.2:
	bl	_swlib_list
	mov	w20, #0
	b	LBB0_80
LBB0_3:
	cmp	w25, #3
	b.gt	LBB0_5
LBB0_4:
	bl	_print_usage
LBB0_5:
	ldr	x0, [x24, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.6:
	bl	_print_usage
LBB0_7:
	ldr	x8, [x24, #16]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	cmp	w25, #4
	b.lt	LBB0_39
; %bb.8:
	stp	xzr, xzr, [sp, #16]             ; 16-byte Folded Spill
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	w19, #3
Lloh6:
	adrp	x27, l_.str.2@PAGE
Lloh7:
	add	x27, x27, l_.str.2@PAGEOFF
	mov	w8, #-1
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	mov	w20, #-1
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	bl	_print_usage
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x19
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w19, w21, #1
	cmp	w19, w25
	b.ge	LBB0_40
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w23, w8
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sxtw	x28, w19
	ldr	x26, [x24, w19, sxtw #3]
	mov	x0, x26
	mov	x1, x27
	bl	_strcmp
	cmp	x0, #0
	add	x21, x28, #1
	ccmp	w21, w25, #0, eq
	b.lt	LBB0_33
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	ccmp	w21, w25, #0, eq
	b.lt	LBB0_34
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_29
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x28, #1
	cmp	w21, w25
	b.ge	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24, x21, lsl #3]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	add	x8, x28, #2
	cmp	w8, w25
	b.ge	LBB0_38
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x24, x8, lsl #3]
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	mov	w23, #129
	mov	x21, x8
	b	LBB0_11
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x28, #1
	cmp	w21, w25
	b.ge	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24, x21, lsl #3]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	w23, #133
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_11
LBB0_23:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x28, #1
	cmp	w21, w25
	b.ge	LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_12 Depth=1
	tbz	w20, #31, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	tbnz	w8, #31, LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_print_usage
LBB0_28:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24, x21, lsl #3]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	w23, #131
	b	LBB0_11
LBB0_29:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w23, #132
	b	LBB0_10
LBB0_30:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_35
; %bb.31:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x26
Lloh20:
	adrp	x1, l_.str.9@PAGE
Lloh21:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.32:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w23, #128
	b	LBB0_10
LBB0_33:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x24, x21, lsl #3]
	bl	_atoi
	mov	x20, x0
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_11
LBB0_34:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [x24, x21, lsl #3]
	bl	_atoi
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_11
LBB0_35:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x28, #1
	cmp	w21, w25
	b.ge	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x24, x21, lsl #3]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	w23, #130
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_11
LBB0_37:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w23, #130
	b	LBB0_10
LBB0_38:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w23, #129
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_11
LBB0_39:
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	stp	xzr, xzr, [sp, #16]             ; 16-byte Folded Spill
	mov	w20, #-1
	mov	w8, #-1
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
LBB0_40:
	ldr	w8, [x22]
	cmp	w23, w8
	b.ne	LBB0_42
; %bb.41:
	bl	_print_usage
LBB0_42:
	ldr	w24, [sp, #52]                  ; 4-byte Folded Reload
	tbnz	w20, #31, LBB0_45
; %bb.43:
	tbnz	w24, #31, LBB0_45
; %bb.44:
	bl	_print_usage
LBB0_45:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_swlib_connect
	cbz	x0, LBB0_58
; %bb.46:
	mov	x19, x0
	bl	_swlib_scan
	and	w8, w23, #0xfffffffb
                                        ; implicit-def: $x22
	cmp	w8, #129
	b.ne	LBB0_48
; %bb.47:
Lloh22:
	adrp	x8, _SWLIB_ATTR_GROUP_PORT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SWLIB_ATTR_GROUP_PORT@GOTPAGEOFF]
Lloh24:
	adrp	x9, _SWLIB_ATTR_GROUP_VLAN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SWLIB_ATTR_GROUP_VLAN@GOTPAGEOFF]
Lloh26:
	adrp	x10, _SWLIB_ATTR_GROUP_GLOBAL@GOTPAGE
Lloh27:
	ldr	x10, [x10, _SWLIB_ATTR_GROUP_GLOBAL@GOTPAGEOFF]
	cmp	w24, #0
	csel	x9, x9, x10, ge
	cmp	w20, #0
	csel	x8, x8, x9, ge
	ldr	w1, [x8]
	mov	x0, x19
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	bl	_swlib_lookup_attr
	mov	x22, x0
	cbz	x0, LBB0_59
LBB0_48:
	sub	w8, w23, #128
	cmp	w8, #5
	b.hi	LBB0_78
; %bb.49:
Lloh28:
	adrp	x9, lJTI0_0@PAGE
Lloh29:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_50
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_50:
	tbz	w20, #31, LBB0_74
; %bb.51:
	tbz	w24, #31, LBB0_74
; %bb.52:
	mov	x0, x19
	bl	_show_global
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_55
; %bb.53:
	mov	w20, #0
LBB0_54:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_show_port
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_54
LBB0_55:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_78
; %bb.56:
	mov	w20, #0
LBB0_57:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_show_vlan
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.lt	LBB0_57
	b	LBB0_78
LBB0_58:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.10@PAGE
Lloh34:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_fprintf
	mov	w20, #1
	b	LBB0_80
LBB0_59:
Lloh35:
	adrp	x8, _stderr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.11@PAGE
Lloh39:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_fprintf
	mov	w20, #-1
	b	LBB0_79
LBB0_60:
	ldr	w8, [x22]
Lloh40:
	adrp	x9, _SWITCH_TYPE_NOVAL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _SWITCH_TYPE_NOVAL@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w8, w9
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	b.eq	LBB0_63
; %bb.61:
	cbnz	x21, LBB0_63
; %bb.62:
	bl	_print_usage
LBB0_63:
	cmp	w24, #0
	csel	w2, w24, w20, ge
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_swlib_set_attr_string
	mov	x20, x0
	tbz	w0, #31, LBB0_79
; %bb.64:
	neg	w0, w20
Lloh43:
	adrp	x1, l_.str.12@PAGE
Lloh44:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_nl_perror
	b	LBB0_79
LBB0_65:
	mov	x0, x19
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_swlib_print_portmap
	b	LBB0_78
LBB0_66:
	mov	x0, x19
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	bl	_swconfig_load_uci
	b	LBB0_78
LBB0_67:
	mov	x0, x19
	bl	_list_attributes
	b	LBB0_78
LBB0_68:
	tbnz	w24, #31, LBB0_70
; %bb.69:
	str	w24, [sp, #56]
LBB0_70:
	tbnz	w20, #31, LBB0_72
; %bb.71:
	str	w20, [sp, #56]
LBB0_72:
	add	x2, sp, #56
	mov	x0, x19
	mov	x1, x22
	bl	_swlib_get_attr
	mov	x20, x0
	tbnz	w0, #31, LBB0_76
; %bb.73:
	add	x1, sp, #56
	mov	x0, x22
	bl	_print_attr_val
	mov	w0, #10
	bl	_putchar
	b	LBB0_79
LBB0_74:
	mov	x0, x19
	tbnz	w20, #31, LBB0_77
; %bb.75:
	mov	x1, x20
	bl	_show_port
	b	LBB0_78
LBB0_76:
	neg	w0, w20
Lloh45:
	adrp	x1, l_.str.13@PAGE
Lloh46:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_nl_perror
	b	LBB0_79
LBB0_77:
	mov	x1, x24
	mov	w2, #0
	bl	_show_vlan
LBB0_78:
	mov	w20, #0
LBB0_79:
	mov	x0, x19
	bl	_swlib_free_all
LBB0_80:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_50-LBB0_50)>>2
	.byte	(LBB0_60-LBB0_50)>>2
	.byte	(LBB0_65-LBB0_50)>>2
	.byte	(LBB0_66-LBB0_50)>>2
	.byte	(LBB0_67-LBB0_50)>>2
	.byte	(LBB0_68-LBB0_50)>>2
                                        ; -- End function
	.comm	_CMD_NONE,4,2                   ; @CMD_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"list"

l_.str.1:                               ; @.str.1
	.asciz	"dev"

l_.str.2:                               ; @.str.2
	.asciz	"port"

l_.str.3:                               ; @.str.3
	.asciz	"vlan"

l_.str.4:                               ; @.str.4
	.asciz	"help"

l_.str.5:                               ; @.str.5
	.asciz	"set"

l_.str.6:                               ; @.str.6
	.asciz	"get"

l_.str.7:                               ; @.str.7
	.asciz	"load"

l_.str.8:                               ; @.str.8
	.asciz	"portmap"

l_.str.9:                               ; @.str.9
	.asciz	"show"

	.comm	_stderr,4,2                     ; @stderr
l_.str.10:                              ; @.str.10
	.asciz	"Failed to connect to the switch. Use the \"list\" command to see which switches are available.\n"

	.comm	_SWLIB_ATTR_GROUP_PORT,4,2      ; @SWLIB_ATTR_GROUP_PORT
	.comm	_SWLIB_ATTR_GROUP_VLAN,4,2      ; @SWLIB_ATTR_GROUP_VLAN
	.comm	_SWLIB_ATTR_GROUP_GLOBAL,4,2    ; @SWLIB_ATTR_GROUP_GLOBAL
l_.str.11:                              ; @.str.11
	.asciz	"Unknown attribute \"%s\"\n"

	.comm	_SWITCH_TYPE_NOVAL,4,2          ; @SWITCH_TYPE_NOVAL
l_.str.12:                              ; @.str.12
	.asciz	"Failed to set attribute"

l_.str.13:                              ; @.str.13
	.asciz	"Failed to get attribute"

.subsections_via_symbols
