	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_portselector                   ## -- Begin function portselector
	.p2align	4, 0x90
_portselector:                          ## @portselector
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$300, %edi                      ## imm = 0x12C
	callq	_alarm
	xorl	%r14d, %r14d
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r12
	leaq	-65(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$66, %al
	cmoveq	%r14, %rbx
	movb	%al, -64(%rbp,%rbx)
	leaq	1(%rbx), %rax
	cmpq	$18, %rbx
	movq	%rax, %rbx
	jae	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_read
	testq	%rax, %rax
	jle	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-65(%rbp), %ecx
	movl	%ecx, %eax
	andb	$127, %al
	movb	%al, -65(%rbp)
	cmpb	$9, %cl
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-118, %cl
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$-115, %cl
	jne	LBB0_1
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, %cl
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$13, %cl
	jne	LBB0_1
LBB0_12:
	movq	%rbx, %rax
LBB0_13:
	movb	$0, -64(%rbp,%rax)
	movq	_portspeeds@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %r14
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.14:
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	24(%rbx), %rdi
	addq	$16, %rbx
	testq	%rdi, %rdi
	jne	LBB0_15
	jmp	LBB0_18
LBB0_17:
	movq	(%rbx), %r14
LBB0_18:
	movl	$2, %edi
	callq	_sleep
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%r14, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_portspeeds,8,3                 ## @portspeeds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_portselector                   ; -- Begin function portselector
	.p2align	2
_portselector:                          ; @portselector
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w0, #300
	bl	_alarm
	mov	x19, #0
Lloh3:
	adrp	x20, _STDIN_FILENO@GOTPAGE
Lloh4:
	ldr	x20, [x20, _STDIN_FILENO@GOTPAGEOFF]
	add	x21, sp, #4
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #10
	ccmp	w9, #13, #4, ne
	b.eq	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #66
	csel	x9, xzr, x19, eq
	strb	w8, [x21, x9]
	add	x19, x9, #1
	cmp	x9, #18
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	add	x1, sp, #3
	mov	w2, #1
	bl	_read
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w9, [sp, #3]
	and	w8, w9, #0x7f
	strb	w8, [sp, #3]
	cmp	w9, #137
	b.le	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #138
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #141
	b.ne	LBB0_2
LBB0_7:
	add	x8, sp, #4
	strb	wzr, [x8, x19]
Lloh5:
	adrp	x8, _portspeeds@GOTPAGE
Lloh6:
	ldr	x8, [x8, _portspeeds@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_11
; %bb.8:
Lloh8:
	adrp	x19, l_.str@PAGE
Lloh9:
	add	x19, x19, l_.str@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #4
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x20, #24]
	add	x20, x20, #16
	cbnz	x0, LBB0_9
	b	LBB0_13
LBB0_11:
Lloh10:
	adrp	x19, l_.str@PAGE
Lloh11:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	x19, [x20]
LBB0_13:
	mov	w0, #2
	bl	_sleep
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_portspeeds,8,3                 ; @portspeeds
.subsections_via_symbols
