	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t3000_connect
_t3000_connect:                         ## @t3000_connect
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_t3000_swallow
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sigALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	leaq	-112(%rbp), %rbx
	movl	$64, %r14d
	movq	_dialtimeout@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	movl	$1, %r15d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_bzero
	movq	$0, (%r12)
	movl	%r13d, %r12d
	movq	_timeoutbuf@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	callq	_setjmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_DIALTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_value
	movl	%eax, %edi
	callq	_number
	movl	%eax, %edi
	callq	_alarm
	movq	_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-113(%rbp), %rsi
	movl	%r15d, %edx
	callq	_read
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_alarm
	testl	%r14d, %r14d
	jle	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movzbl	-113(%rbp), %eax
	andb	$127, %al
	movb	%al, -113(%rbp)
	cmpb	$13, %al
	je	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=2
	movb	%al, -112(%rbp,%r12)
	movq	%r12, %rax
	incq	%rax
	movq	%rax, %r12
	cmpq	$63, %rax
	jne	LBB0_3
	jmp	LBB0_17
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_t3000_swallow
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, -112(%rbp)
	leaq	-112(%rbp), %rbx
	movl	$64, %r14d
	movq	_dialtimeout@GOTPCREL(%rip), %r12
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_value
	movl	%eax, %edi
	callq	_boolean
	testq	%rax, %rax
	jne	LBB0_2
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	leaq	-112(%rbp), %rdi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_17:
	leaq	L_.str.4(%rip), %rdi
	leaq	-112(%rbp), %rsi
	callq	_printf
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-120(%rbp), %esi                ## 4-byte Reload
	callq	_signal
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_tbaud_msg@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	leaq	-105(%rbp), %r14
	addq	$8, %rcx
	movq	%rcx, %rbx
	movq	%rax, %rdi
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rbx), %rax
	addq	$16, %rbx
	movq	%rax, %rdi
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_17
LBB0_14:
	movq	_FD@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-128(%rbp), %r14
	movq	%r14, %rsi
	callq	_tcgetattr
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_cfsetospeed
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_cfsetispeed
	movl	(%r15), %edi
	movq	_TCSAFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_tcsetattr
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-120(%rbp), %esi                ## 4-byte Reload
	callq	_signal
	movl	$1, %eax
	jmp	LBB0_19
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_sigALRM,4,2                    ## @sigALRM
	.comm	_dialtimeout,8,3                ## @dialtimeout
	.comm	_timeoutbuf,4,2                 ## @timeoutbuf
	.comm	_DIALTIMEOUT,4,2                ## @DIALTIMEOUT
	.comm	_FD,4,2                         ## @FD
L_.str.1:                               ## @.str.1
	.asciz	"\n"

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

	.comm	_VERBOSE,4,2                    ## @VERBOSE
L_.str.3:                               ## @.str.3
	.asciz	"CONNECT"

	.comm	_tbaud_msg,8,3                  ## @tbaud_msg
	.comm	_TCSAFLUSH,4,2                  ## @TCSAFLUSH
L_.str.4:                               ## @.str.4
	.asciz	"%s\r\n"

	.no_dead_strip	_t3000_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t3000_connect
_t3000_connect:                         ; @t3000_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_t3000_swallow
	cbz	x0, LBB0_13
; %bb.1:
Lloh5:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _sigALRM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sigALRM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_signal
	mov	x19, x0
	add	x20, sp, #8
	mov	w21, #64
Lloh11:
	adrp	x25, _dialtimeout@GOTPAGE
Lloh12:
	ldr	x25, [x25, _dialtimeout@GOTPAGEOFF]
Lloh13:
	adrp	x24, _timeoutbuf@GOTPAGE
Lloh14:
	ldr	x24, [x24, _timeoutbuf@GOTPAGEOFF]
Lloh15:
	adrp	x27, _DIALTIMEOUT@GOTPAGE
Lloh16:
	ldr	x27, [x27, _DIALTIMEOUT@GOTPAGEOFF]
Lloh17:
	adrp	x28, _FD@GOTPAGE
Lloh18:
	ldr	x28, [x28, _FD@GOTPAGEOFF]
	add	x22, sp, #7
	mov	w23, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x0, x20
	mov	x1, x21
	bl	_bzero
	mov	x8, #0
	mov	x21, x25
	str	xzr, [x25]
	mov	x25, #0
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	bl	_setjmp
	cbnz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	w0, [x27]
	bl	_value
	bl	_number
	bl	_alarm
	ldr	w0, [x28]
	mov	x1, x22
	mov	x2, x23
	bl	_read
	mov	x26, x0
	mov	w0, #0
	bl	_alarm
	cmp	w26, #1
	b.lt	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	ldrb	w8, [sp, #7]
	and	w8, w8, #0x7f
	strb	w8, [sp, #7]
	cmp	w8, #13
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	strb	w8, [x20, x25]
	add	x8, x25, #1
	mov	x25, x8
	cmp	x8, #63
	b.ne	LBB0_3
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_t3000_swallow
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [sp, #8]
	mov	x25, x21
	mov	w21, #64
	cbz	w8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh23:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_value
	bl	_boolean
	cbnz	x0, LBB0_2
LBB0_11:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_15
LBB0_12:
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x1, sp, #8
	bl	_printf
Lloh30:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_signal
	mov	w0, #0
LBB0_13:
	ldr	x8, [sp, #72]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.14:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_15:
Lloh36:
	adrp	x8, _tbaud_msg@GOTPAGE
Lloh37:
	ldr	x8, [x8, _tbaud_msg@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_12
; %bb.16:
	add	x10, sp, #8
	add	x20, x10, #7
	add	x21, x8, #8
	mov	x0, x9
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x21, #8]
	mov	x0, x8
	add	x21, x21, #16
	cbnz	x8, LBB0_17
	b	LBB0_12
LBB0_19:
	ldr	w0, [x28]
	mov	x20, sp
	mov	x1, x20
	bl	_tcgetattr
	ldr	w1, [x21]
	mov	x0, x20
	bl	_cfsetospeed
	ldr	w1, [x21]
	mov	x0, x20
	bl	_cfsetispeed
	ldr	w0, [x28]
Lloh39:
	adrp	x8, _TCSAFLUSH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TCSAFLUSH@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_tcsetattr
Lloh42:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_signal
	mov	w0, #1
	b	LBB0_13
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_sigALRM,4,2                    ; @sigALRM
	.comm	_dialtimeout,8,3                ; @dialtimeout
	.comm	_timeoutbuf,4,2                 ; @timeoutbuf
	.comm	_DIALTIMEOUT,4,2                ; @DIALTIMEOUT
	.comm	_FD,4,2                         ; @FD
l_.str.1:                               ; @.str.1
	.asciz	"\n"

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

	.comm	_VERBOSE,4,2                    ; @VERBOSE
l_.str.3:                               ; @.str.3
	.asciz	"CONNECT"

	.comm	_tbaud_msg,8,3                  ; @tbaud_msg
	.comm	_TCSAFLUSH,4,2                  ; @TCSAFLUSH
l_.str.4:                               ; @.str.4
	.asciz	"%s\r\n"

	.no_dead_strip	_t3000_connect
.subsections_via_symbols
