	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tty
_get_tty:                               ## @get_tty
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -264(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %r12
	leaq	-240(%rbp), %r13
	leaq	-248(%rbp), %r14
	leaq	L_.str(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SYSCTL_TEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	movl	$64, %esi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	$127, -248(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	movq	-248(%rbp), %rcx
	movb	$0, -240(%rbp,%rcx)
	testl	%eax, %eax
	js	LBB0_21
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SYSCTL_NETIF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	movl	$64, %esi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	$127, -248(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	movq	-248(%rbp), %rcx
	movb	$0, -240(%rbp,%rcx)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-264(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_SYSCTL_LOCATION@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	xorl	%eax, %eax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movl	$64, %esi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	$127, -248(%rbp)
	leaq	-240(%rbp), %rsi
	leaq	-248(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	movq	-248(%rbp), %rcx
	movb	$0, -240(%rbp,%rcx)
	testl	%eax, %eax
	jne	LBB0_21
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	leaq	-240(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	leaq	-284(%rbp), %rdx
	movq	%rax, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.10:
	leaq	-112(%rbp), %rbx
	leaq	-248(%rbp), %r13
	movq	_SYSCTL_NAME_TTY@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -272(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	-264(%rbp), %r12d               ## 4-byte Reload
	incl	%r12d
	movq	_SYSCTL_LOCATION@GOTPCREL(%rip), %r15
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	$127, -248(%rbp)
	leaq	-240(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testl	%eax, %eax
	jne	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-248(%rbp), %rax
	movb	$0, -240(%rbp,%rax)
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	movl	%r12d, -264(%rbp)               ## 4-byte Spill
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-280(%rbp), %rdx
	callq	_sscanf
	movl	-284(%rbp), %eax
	cmpl	-280(%rbp), %eax
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_port_type_list@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%r12), %r8
	testq	%r8, %r8
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	$8, %r12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	(%r12), %r8
	addq	$8, %r12
	testq	%r8, %r8
	je	LBB0_19
LBB0_16:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	-264(%rbp), %ecx                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
	movq	$127, -248(%rbp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	movq	-248(%rbp), %rcx
	movb	$0, -240(%rbp,%rcx)
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	-256(%rbp), %r14                ## 8-byte Reload
	leal	1(%r14), %eax
	movl	%eax, -276(%rbp)                ## 4-byte Spill
	leal	8(,%r14,8), %esi
	movq	-272(%rbp), %rdi                ## 8-byte Reload
	callq	_realloc
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r15
	movq	_TTY_NAME@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_strlen
	addq	%rax, %r15
	movq	%r15, %rdi
	leaq	-240(%rbp), %r15
	callq	_malloc
	movslq	%r14d, %rcx
	movq	%r13, -272(%rbp)                ## 8-byte Spill
	movq	%rax, (%r13,%rcx,8)
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_sprintf
	movl	-276(%rbp), %eax                ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	leaq	-248(%rbp), %r13
	movq	_SYSCTL_NAME_TTY@GOTPCREL(%rip), %r14
	leaq	-112(%rbp), %rbx
	jmp	LBB0_18
LBB0_8:
	xorl	%eax, %eax
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	jmp	LBB0_21
LBB0_20:
	movq	-256(%rbp), %rbx                ## 8-byte Reload
	leal	8(,%rbx,8), %esi
	movq	-272(%rbp), %rdi                ## 8-byte Reload
	callq	_realloc
	movslq	%ebx, %rdx
	movq	%rax, %rcx
	movq	%rax, -256(%rbp)                ## 8-byte Spill
	movq	$0, (%rax,%rdx,8)
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movq	-256(%rbp), %rax                ## 8-byte Reload
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSCTL_TEST,8,3                ## @SYSCTL_TEST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uhso"

	.comm	_SYSCTL_NETIF,8,3               ## @SYSCTL_NETIF
	.comm	_SYSCTL_LOCATION,8,3            ## @SYSCTL_LOCATION
L_.str.1:                               ## @.str.1
	.asciz	"port="

L_.str.2:                               ## @.str.2
	.asciz	" port=%d"

	.comm	_port_type_list,8,3             ## @port_type_list
	.comm	_SYSCTL_NAME_TTY,8,3            ## @SYSCTL_NAME_TTY
	.comm	_TTY_NAME,8,3                   ## @TTY_NAME
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_get_tty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tty
_get_tty:                               ; @get_tty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #256]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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, x0
	mov	w19, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x22, _SYSCTL_TEST@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SYSCTL_TEST@GOTPAGEOFF]
	mov	w23, #127
	add	x24, sp, #32
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
Lloh7:
	adrp	x25, _SYSCTL_NETIF@GOTPAGE
Lloh8:
	ldr	x25, [x25, _SYSCTL_NETIF@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x22]
	add	x0, sp, #160
	mov	w1, #64
	mov	x3, x19
	bl	_snprintf
	str	x23, [sp, #16]
	add	x0, sp, #160
	add	x1, sp, #32
	add	x2, sp, #16
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	ldr	x8, [sp, #16]
	strb	wzr, [x24, x8]
	tbnz	w0, #31, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #32
	mov	x1, x21
	bl	_strcasecmp
	cbnz	x0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x25]
	add	x0, sp, #160
	mov	w1, #64
	mov	x3, x19
	bl	_snprintf
	str	x23, [sp, #16]
	add	x0, sp, #160
	add	x1, sp, #32
	add	x2, sp, #16
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	ldr	x8, [sp, #16]
	strb	wzr, [x24, x8]
	cbnz	w0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x20]
	add	x0, sp, #32
	bl	_strcasecmp
	cbnz	x0, LBB0_1
; %bb.6:
Lloh9:
	adrp	x21, _SYSCTL_LOCATION@GOTPAGE
Lloh10:
	ldr	x21, [x21, _SYSCTL_LOCATION@GOTPAGEOFF]
	ldr	x2, [x21]
	add	x0, sp, #160
	mov	w1, #64
	mov	x3, x19
	bl	_snprintf
	mov	w8, #127
	str	x8, [sp, #16]
	add	x19, sp, #32
	add	x0, sp, #160
	add	x1, sp, #32
	add	x2, sp, #16
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	mov	x8, x0
	mov	x0, #0
	ldr	x9, [sp, #16]
	strb	wzr, [x19, x9]
	cbnz	w8, LBB0_11
; %bb.7:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #32
	bl	_strstr
	cbz	x0, LBB0_11
; %bb.8:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #28
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.9:
	mov	w19, #0
	mov	w24, #0
	mov	x20, #0
	mov	w26, #127
	add	x27, sp, #32
Lloh15:
	adrp	x28, _SYSCTL_NAME_TTY@GOTPAGE
Lloh16:
	ldr	x28, [x28, _SYSCTL_NAME_TTY@GOTPAGEOFF]
Lloh17:
	adrp	x22, _TTY_NAME@GOTPAGE
Lloh18:
	ldr	x22, [x22, _TTY_NAME@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldur	x8, [x29, #-96]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.12:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w19, w19, #1
Lloh22:
	adrp	x21, _SYSCTL_LOCATION@GOTPAGE
Lloh23:
	ldr	x21, [x21, _SYSCTL_LOCATION@GOTPAGEOFF]
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldr	x2, [x21]
	add	x0, sp, #160
	mov	w1, #64
	mov	x3, x19
	bl	_snprintf
	str	x26, [sp, #16]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	add	x0, sp, #160
	add	x1, sp, #32
	add	x2, sp, #16
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cbnz	w0, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #16]
	strb	wzr, [x27, x8]
	add	x0, sp, #32
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x2, sp, #24
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sscanf
	ldp	w9, w8, [sp, #24]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh28:
	adrp	x8, _port_type_list@GOTPAGE
Lloh29:
	ldr	x8, [x8, _port_type_list@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x8]
	ldr	x8, [x9]
	cbz	x8, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x21, x9, #8
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	ldr	x8, [x21], #8
	cbz	x8, LBB0_13
LBB0_20:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x28]
	str	x8, [sp]
	add	x0, sp, #160
	mov	w1, #64
	mov	x3, x19
	bl	_snprintf
	str	x26, [sp, #16]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	add	x0, sp, #160
	add	x1, sp, #32
	add	x2, sp, #16
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	ldr	x8, [sp, #16]
	strb	wzr, [x27, x8]
	cbnz	w0, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	add	w25, w24, #1
	lsl	w1, w25, #3
	mov	x0, x20
	bl	_realloc
	mov	x20, x0
	add	x0, sp, #32
	bl	_strlen
	mov	x23, x0
	ldr	x0, [x22]
	bl	_strlen
	add	x0, x0, x23
	bl	_malloc
	str	x0, [x20, w24, sxtw #3]
	ldr	x1, [x22]
	add	x2, sp, #32
	bl	_sprintf
	mov	x24, x25
	b	LBB0_19
LBB0_22:
	lsl	w8, w24, #3
	add	w1, w8, #8
	mov	x0, x20
	bl	_realloc
	str	xzr, [x0, w24, sxtw #3]
	b	LBB0_11
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSCTL_TEST,8,3                ; @SYSCTL_TEST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uhso"

	.comm	_SYSCTL_NETIF,8,3               ; @SYSCTL_NETIF
	.comm	_SYSCTL_LOCATION,8,3            ; @SYSCTL_LOCATION
l_.str.1:                               ; @.str.1
	.asciz	"port="

l_.str.2:                               ; @.str.2
	.asciz	" port=%d"

	.comm	_port_type_list,8,3             ; @port_type_list
	.comm	_SYSCTL_NAME_TTY,8,3            ; @SYSCTL_NAME_TTY
	.comm	_TTY_NAME,8,3                   ; @TTY_NAME
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_get_tty
.subsections_via_symbols
