	.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, %r12
	movl	%edi, %r14d
	leaq	-104(%rbp), %r15
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_bzero
	leaq	L_.str(%rip), %rax
	movq	%rax, -104(%rbp)
	leaq	L_.str.1(%rip), %rbx
	movq	_optarg@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	-60(%rbp)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	$108, %eax
	jle	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$109, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$118, %eax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	-64(%rbp)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$102, %eax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movq	%rax, -104(%rbp)
	jmp	LBB0_1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_usage
	jmp	LBB0_1
LBB0_10:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	-104(%rbp), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	%rax, -96(%rbp)
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-104(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	movq	-96(%rbp), %rax
LBB0_12:
	movq	_IOETHERSWITCHGETINFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-84(%rbp), %rdx
	movq	%rax, %rdi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_14:
	subl	%ebx, %r14d
	movq	-96(%rbp), %rdi
	movq	_IOETHERSWITCHGETCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_16:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.18:
	movl	$132, -88(%rbp)
	jle	LBB0_68
## %bb.19:
	leaq	(%r12,%rbx,8), %r15
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_70:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	(%r15), %rsi
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_set_register
	testl	%eax, %eax
	jne	LBB0_72
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_52 Depth 2
	movl	-88(%rbp), %r12d
	leal	-128(%r12), %eax
	cmpl	$6, %eax
	ja	LBB0_45
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_73:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	(%r15), %rsi
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_set_phyregister
	testl	%eax, %eax
	je	LBB0_45
LBB0_72:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	movl	$132, %esi
	callq	_newmode
	jmp	LBB0_20
LBB0_49:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_cmds@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r15
	testq	%r15, %r15
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_50
## %bb.51:                              ##   in Loop: Header=BB0_20 Depth=1
	leaq	24(%rbx), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_52 Depth=2
	incq	%r13
	movq	(%r14), %r15
	addq	$24, %r14
	testq	%r15, %r15
	je	LBB0_63
LBB0_52:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	-16(%r14), %r12d
	jne	LBB0_62
## %bb.53:                              ##   in Loop: Header=BB0_52 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_62
## %bb.54:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%r13d, %eax
	leaq	(%rax,%rax,2), %r14
	movl	12(%rbx,%r14,8), %edx
	cmpl	$-1, %edx
	je	LBB0_57
## %bb.55:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	%edx, -52(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$1, %edx
	movq	%rax, %rbx
	leaq	L_.str.18(%rip), %rcx
	leaq	L_.str.17(%rip), %rax
	cmoveq	%rax, %rcx
	leaq	L_.str.16(%rip), %rdi
	movq	%r15, %rsi
	callq	_printf
	movq	%rbx, %rcx
	jmp	LBB0_64
LBB0_50:                                ##   in Loop: Header=BB0_20 Depth=1
	xorl	%r13d, %r13d
LBB0_63:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r13d, %ecx
LBB0_64:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	leaq	LJTI0_0(%rip), %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leaq	-104(%rbp), %r12
LBB0_65:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_cmds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_45
## %bb.66:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, %rdi
	movl	$132, %esi
	callq	_newmode
	testl	%r14d, %r14d
	jg	LBB0_20
	jmp	LBB0_68
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r15
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	leaq	-76(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	-80(%rbp), %eax
	movl	-76(%rbp), %ecx
	testl	%ecx, %ecx
	js	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	%eax, %ecx
	jl	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=1
	movslq	%eax, %rdx
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decq	%rdx
	leaq	L_.str.7(%rip), %rsi
	callq	_errx
LBB0_28:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	-104(%rbp), %rdi
	movl	$130, %esi
LBB0_29:                                ##   in Loop: Header=BB0_20 Depth=1
	callq	_newmode
	jmp	LBB0_30
LBB0_57:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	-104(%rbp), %r12
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	*16(%rbx,%r14,8)
	cmpl	$-1, %eax
	je	LBB0_58
## %bb.59:                              ##   in Loop: Header=BB0_20 Depth=1
	testl	%eax, %eax
	leaq	LJTI0_0(%rip), %r13
	jne	LBB0_61
## %bb.60:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_cmds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax,%r14,8), %eax
LBB0_61:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	subl	%eax, %r14d
	cltq
	leaq	(%r15,%rax,8), %r15
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	jmp	LBB0_65
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	-104(%rbp), %rdi
	callq	_print_info
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	LJTI0_0(%rip), %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_45:                                ##   in Loop: Header=BB0_20 Depth=1
	decl	%r14d
	addq	$8, %r15
	testl	%r14d, %r14d
	jg	LBB0_20
	jmp	LBB0_68
LBB0_31:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	-84(%rbp), %eax
	movl	-76(%rbp), %ecx
	testl	%ecx, %ecx
	js	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	%eax, %ecx
	jl	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_20 Depth=1
	movslq	%eax, %rdx
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decq	%rdx
	leaq	L_.str.9(%rip), %rsi
	callq	_errx
LBB0_35:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	-104(%rbp), %rdi
	movl	$128, %esi
	callq	_newmode
LBB0_44:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_45
LBB0_36:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	(%r15), %r15
	movq	%r15, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_41
## %bb.42:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_43
## %bb.46:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.14(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_47
## %bb.48:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	movq	%r15, %rdx
	callq	_errx
	jmp	LBB0_30
LBB0_58:                                ##   in Loop: Header=BB0_20 Depth=1
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %r13
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	jmp	LBB0_65
LBB0_37:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	-104(%rbp), %rdi
	movl	$133, %esi
	jmp	LBB0_29
LBB0_39:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	-104(%rbp), %rdi
	movl	$131, %esi
	jmp	LBB0_29
LBB0_41:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	-104(%rbp), %rdi
	movl	$129, %esi
	jmp	LBB0_29
LBB0_43:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	-104(%rbp), %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_usage
	jmp	LBB0_44
LBB0_47:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	-104(%rbp), %rdi
	movl	$134, %esi
	jmp	LBB0_29
LBB0_68:
	leaq	-104(%rbp), %rdi
	movl	$132, %esi
	callq	_newmode
	movq	-96(%rbp), %rdi
	callq	_close
	jmp	LBB0_69
LBB0_17:
	leaq	-104(%rbp), %rdi
	callq	_print_info
LBB0_69:
	xorl	%eax, %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_49, LBB0_49-LJTI0_0
.set L0_0_set_70, LBB0_70-LJTI0_0
.set L0_0_set_73, LBB0_73-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_49
	.long	L0_0_set_70
	.long	L0_0_set_49
	.long	L0_0_set_73
	.long	L0_0_set_22
	.long	L0_0_set_49
	.long	L0_0_set_49
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/etherswitch0"

L_.str.1:                               ## @.str.1
	.asciz	"f:mv?"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_EX_UNAVAILABLE,4,2             ## @EX_UNAVAILABLE
L_.str.2:                               ## @.str.2
	.asciz	"Can't open control file: %s"

	.comm	_IOETHERSWITCHGETINFO,4,2       ## @IOETHERSWITCHGETINFO
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.3:                               ## @.str.3
	.asciz	"ioctl(IOETHERSWITCHGETINFO)"

	.comm	_IOETHERSWITCHGETCONF,4,2       ## @IOETHERSWITCHGETCONF
L_.str.4:                               ## @.str.4
	.asciz	"ioctl(IOETHERSWITCHGETCONF)"

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

L_.str.6:                               ## @.str.6
	.asciz	"port%d"

	.comm	_EX_USAGE,4,2                   ## @EX_USAGE
L_.str.7:                               ## @.str.7
	.asciz	"port unit must be between 0 and %d"

L_.str.8:                               ## @.str.8
	.asciz	"vlangroup%d"

L_.str.9:                               ## @.str.9
	.asciz	"vlangroup unit must be between 0 and %d"

L_.str.10:                              ## @.str.10
	.asciz	"config"

L_.str.11:                              ## @.str.11
	.asciz	"phy"

L_.str.12:                              ## @.str.12
	.asciz	"reg"

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

L_.str.14:                              ## @.str.14
	.asciz	"atu"

L_.str.15:                              ## @.str.15
	.asciz	"Unknown command \"%s\""

	.comm	_cmds,8,3                       ## @cmds
L_.str.16:                              ## @.str.16
	.asciz	"%s needs %d argument%s\n"

L_.str.17:                              ## @.str.17
	.space	1

L_.str.18:                              ## @.str.18
	.asciz	","

.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	x20, x1
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #48
	bl	_bzero
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #16]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh4:
	adrp	x22, _optarg@GOTPAGE
Lloh5:
	ldr	x22, [x22, _optarg@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #60]
	add	w8, w8, #1
	str	w8, [sp, #60]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_getopt
	cmp	w0, #108
	b.le	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #109
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #118
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #56]
	add	w8, w8, #1
	str	w8, [sp, #56]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #102
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	str	x8, [sp, #16]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #16
	mov	x1, x20
	bl	_usage
	b	LBB0_2
LBB0_10:
Lloh6:
	adrp	x8, _optind@GOTPAGE
Lloh7:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	ldr	x0, [sp, #16]
Lloh9:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_open
	str	x0, [sp, #24]
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
	ldr	x0, [sp, #24]
LBB0_12:
	sub	w19, w19, w21
Lloh17:
	adrp	x8, _IOETHERSWITCHGETINFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IOETHERSWITCHGETINFO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x23, sp, #16
	add	x2, x23, #20
	bl	_ioctl
Lloh20:
	adrp	x22, _EX_OSERR@GOTPAGE
Lloh21:
	ldr	x22, [x22, _EX_OSERR@GOTPAGEOFF]
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x22]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_14:
	ldr	x0, [sp, #24]
Lloh24:
	adrp	x8, _IOETHERSWITCHGETCONF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IOETHERSWITCHGETCONF@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, x23, #32
	bl	_ioctl
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w0, [x22]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_16:
	cbz	w19, LBB0_65
; %bb.17:
	mov	w8, #132
	str	w8, [sp, #32]
	cmp	w19, #1
	b.lt	LBB0_64
; %bb.18:
	add	x20, x20, x21, lsl #3
	add	x8, sp, #16
	add	x21, x8, #28
Lloh29:
	adrp	x25, lJTI0_0@PAGE
Lloh30:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh31:
	adrp	x28, _cmds@GOTPAGE
Lloh32:
	ldr	x28, [x28, _cmds@GOTPAGEOFF]
	mov	x26, x21
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x1, [x20]
	add	x0, sp, #16
	bl	_set_register
	cbz	w0, LBB0_37
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	mov	w1, #132
	bl	_newmode
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	ldr	w22, [sp, #32]
	sub	w8, w22, #128
	cmp	w8, #6
	b.hi	LBB0_37
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	adr	x9, LBB0_19
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_23:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x1, [x20]
	add	x0, sp, #16
	bl	_set_phyregister
	cbnz	w0, LBB0_20
	b	LBB0_37
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x24, [x28]
	ldr	x27, [x24]
	cbz	x27, LBB0_34
; %bb.25:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x23, #0
	add	x21, x24, #24
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	add	x23, x23, #1
	ldr	x27, [x21], #24
	cbz	x27, LBB0_35
LBB0_27:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w8, [x21, #-16]
	cmp	w22, w8
	b.ne	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	x0, [x20]
	mov	x1, x27
	bl	_strcmp
	cbnz	w0, LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_21 Depth=1
	and	x22, x23, #0xffffffff
	mov	w23, #24
	madd	x8, x22, x23, x24
	ldr	w2, [x8, #12]
	cmn	w2, #1
	ccmp	w19, w2, #0, ne
	b.le	LBB0_45
; %bb.30:                               ;   in Loop: Header=BB0_21 Depth=1
	madd	x8, x22, x23, x24
	ldr	x8, [x8, #16]
	add	x0, sp, #16
	mov	x1, x19
	mov	x2, x20
	blr	x8
	cmn	w0, #1
	b.eq	LBB0_58
; %bb.31:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x21, x26
	cbnz	w0, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x28]
	madd	x8, x22, x23, x8
	ldr	w0, [x8, #12]
LBB0_33:                                ;   in Loop: Header=BB0_21 Depth=1
	sub	w19, w19, w0
	add	x20, x20, w0, sxtw #3
	b	LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	x23, #0
LBB0_35:                                ;   in Loop: Header=BB0_21 Depth=1
	and	x22, x23, #0xffffffff
	mov	x21, x26
	mov	w23, #24
LBB0_36:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x28]
	mul	x9, x22, x23
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_21 Depth=1
	sub	w19, w19, #1
	add	x20, x20, #8
	cmp	w19, #0
	b.gt	LBB0_21
	b	LBB0_64
LBB0_38:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	mov	w1, #132
	bl	_newmode
	cmp	w19, #0
	b.gt	LBB0_21
	b	LBB0_64
LBB0_39:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x27, [x20]
	mov	x0, x27
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_46
; %bb.40:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x27
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_47
; %bb.41:                               ;   in Loop: Header=BB0_21 Depth=1
	ldp	w8, w9, [sp, #40]
	tbnz	w9, #31, LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	w9, w8
	b.lt	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_21 Depth=1
	sxtw	x8, w8
Lloh37:
	adrp	x9, _EX_USAGE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _EX_USAGE@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x9]
	sub	x2, x8, #1
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_errx
LBB0_44:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	mov	w1, #130
	bl	_newmode
	b	LBB0_37
LBB0_45:                                ;   in Loop: Header=BB0_21 Depth=1
	cmp	w2, #1
Lloh42:
	adrp	x8, l_.str.18@PAGE
Lloh43:
	add	x8, x8, l_.str.18@PAGEOFF
Lloh44:
	adrp	x9, l_.str.17@PAGE
Lloh45:
	add	x9, x9, l_.str.17@PAGEOFF
	csel	x3, x9, x8, eq
Lloh46:
	adrp	x0, l_.str.16@PAGE
Lloh47:
	add	x0, x0, l_.str.16@PAGEOFF
	mov	x1, x27
	bl	_printf
	mov	x21, x26
	b	LBB0_36
LBB0_46:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	bl	_print_info
	b	LBB0_37
LBB0_47:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x0, [x20]
Lloh48:
	adrp	x1, l_.str.8@PAGE
Lloh49:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x21
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_52
; %bb.48:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w9, [sp, #44]
	ldr	w8, [sp, #36]
	tbnz	w9, #31, LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	w9, w8
	b.lt	LBB0_51
LBB0_50:                                ;   in Loop: Header=BB0_21 Depth=1
	sxtw	x8, w8
Lloh50:
	adrp	x9, _EX_USAGE@GOTPAGE
Lloh51:
	ldr	x9, [x9, _EX_USAGE@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x9]
	sub	x2, x8, #1
Lloh53:
	adrp	x1, l_.str.9@PAGE
Lloh54:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_errx
LBB0_51:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	mov	w1, #128
	bl	_newmode
	b	LBB0_37
LBB0_52:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x27, [x20]
	mov	x0, x27
Lloh55:
	adrp	x1, l_.str.10@PAGE
Lloh56:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_59
; %bb.53:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x27
Lloh57:
	adrp	x1, l_.str.11@PAGE
Lloh58:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_60
; %bb.54:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x27
Lloh59:
	adrp	x1, l_.str.12@PAGE
Lloh60:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_61
; %bb.55:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x27
Lloh61:
	adrp	x1, l_.str.13@PAGE
Lloh62:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_62
; %bb.56:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x27
Lloh63:
	adrp	x1, l_.str.14@PAGE
Lloh64:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_63
; %bb.57:                               ;   in Loop: Header=BB0_21 Depth=1
Lloh65:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
Lloh68:
	adrp	x1, l_.str.15@PAGE
Lloh69:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x2, x27
	bl	_errx
	b	LBB0_37
LBB0_58:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	w19, #0
	mov	x21, x26
	b	LBB0_36
LBB0_59:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	mov	w1, #133
	bl	_newmode
	b	LBB0_37
LBB0_60:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	mov	w1, #131
	bl	_newmode
	b	LBB0_37
LBB0_61:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	mov	w1, #129
	bl	_newmode
	b	LBB0_37
LBB0_62:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	mov	x1, x20
	bl	_usage
	b	LBB0_37
LBB0_63:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #16
	mov	w1, #134
	bl	_newmode
	b	LBB0_37
LBB0_64:
	add	x0, sp, #16
	mov	w1, #132
	bl	_newmode
	ldr	x0, [sp, #24]
	bl	_close
	b	LBB0_66
LBB0_65:
	add	x0, sp, #16
	bl	_print_info
LBB0_66:
	mov	w0, #0
	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	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_24-LBB0_19)>>2
	.byte	(LBB0_19-LBB0_19)>>2
	.byte	(LBB0_24-LBB0_19)>>2
	.byte	(LBB0_23-LBB0_19)>>2
	.byte	(LBB0_39-LBB0_19)>>2
	.byte	(LBB0_24-LBB0_19)>>2
	.byte	(LBB0_24-LBB0_19)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/etherswitch0"

l_.str.1:                               ; @.str.1
	.asciz	"f:mv?"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EX_UNAVAILABLE,4,2             ; @EX_UNAVAILABLE
l_.str.2:                               ; @.str.2
	.asciz	"Can't open control file: %s"

	.comm	_IOETHERSWITCHGETINFO,4,2       ; @IOETHERSWITCHGETINFO
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.3:                               ; @.str.3
	.asciz	"ioctl(IOETHERSWITCHGETINFO)"

	.comm	_IOETHERSWITCHGETCONF,4,2       ; @IOETHERSWITCHGETCONF
l_.str.4:                               ; @.str.4
	.asciz	"ioctl(IOETHERSWITCHGETCONF)"

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

l_.str.6:                               ; @.str.6
	.asciz	"port%d"

	.comm	_EX_USAGE,4,2                   ; @EX_USAGE
l_.str.7:                               ; @.str.7
	.asciz	"port unit must be between 0 and %d"

l_.str.8:                               ; @.str.8
	.asciz	"vlangroup%d"

l_.str.9:                               ; @.str.9
	.asciz	"vlangroup unit must be between 0 and %d"

l_.str.10:                              ; @.str.10
	.asciz	"config"

l_.str.11:                              ; @.str.11
	.asciz	"phy"

l_.str.12:                              ; @.str.12
	.asciz	"reg"

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

l_.str.14:                              ; @.str.14
	.asciz	"atu"

l_.str.15:                              ; @.str.15
	.asciz	"Unknown command \"%s\""

	.comm	_cmds,8,3                       ; @cmds
l_.str.16:                              ; @.str.16
	.asciz	"%s needs %d argument%s\n"

l_.str.17:                              ; @.str.17
	.space	1

l_.str.18:                              ; @.str.18
	.asciz	","

.subsections_via_symbols
