	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3000_dialer                   ## -- Begin function t3000_dialer
	.p2align	4, 0x90
_t3000_dialer:                          ## @t3000_dialer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_value
	movl	%eax, %edi
	callq	_boolean
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	movq	_FD@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_tcgetattr
	movq	_HUPCL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -32(%rbp)
	movl	(%r15), %edi
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tcsetattr
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_t3000_sync
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$6, %edx
	callq	_t3000_write
	movl	$1, %edi
	callq	_sleep
	movl	(%r15), %edi
	movq	_TCIOFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tcflush
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$18, %edx
	callq	_t3000_write
	leaq	L_.str.4(%rip), %rdi
	callq	_t3000_swallow
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_t3000_write
	movq	%r14, %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$44, (%rax)
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$61, %cl
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testb	%cl, %cl
	jne	LBB0_12
## %bb.8:
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_t3000_write
	movl	(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edx
	callq	_t3000_write
	xorl	%eax, %eax
	callq	_t3000_connect
	movl	%eax, %ebx
	movq	_connected@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movq	_dialtimeout@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_t3000_disconnect
	movl	(%r14), %ebx
	jmp	LBB0_10
LBB0_3:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERBOSE,4,2                    ## @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using \"%s\"\n"

	.comm	_FD,4,2                         ## @FD
	.comm	_HUPCL,4,2                      ## @HUPCL
	.comm	_TCSANOW,4,2                    ## @TCSANOW
L_.str.2:                               ## @.str.2
	.asciz	"AT E0\r"

	.comm	_TCIOFLUSH,4,2                  ## @TCIOFLUSH
L_.str.3:                               ## @.str.3
	.asciz	"AT E0 H0 Q0 X4 V1\r"

L_.str.4:                               ## @.str.4
	.asciz	"\r\nOK\r\n"

	.comm	_stdout,4,2                     ## @stdout
L_.str.5:                               ## @.str.5
	.asciz	"AT D"

L_.str.6:                               ## @.str.6
	.asciz	"\r"

	.comm	_connected,4,2                  ## @connected
	.comm	_dialtimeout,8,3                ## @dialtimeout
	.comm	_DIALTIMEOUT,4,2                ## @DIALTIMEOUT
	.comm	_HOST,4,2                       ## @HOST
L_str:                                  ## @str
	.asciz	"can't synchronize with t3000"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3000_dialer                   ; -- Begin function t3000_dialer
	.p2align	2
_t3000_dialer:                          ; @t3000_dialer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_value
	bl	_boolean
	cbz	x0, LBB0_2
; %bb.1:
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_2:
Lloh5:
	adrp	x21, _FD@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FD@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_tcgetattr
Lloh7:
	adrp	x8, _HUPCL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HUPCL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x21]
Lloh10:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_tcsetattr
	bl	_t3000_sync
	cbz	w0, LBB0_11
; %bb.3:
	ldr	w0, [x21]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #6
	bl	_t3000_write
	mov	w0, #1
	bl	_sleep
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _TCIOFLUSH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TCIOFLUSH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_tcflush
	ldr	w0, [x21]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #18
	bl	_t3000_write
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_t3000_swallow
	cbz	w0, LBB0_11
; %bb.4:
Lloh22:
	adrp	x8, _stdout@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_fflush
	ldr	w0, [x21]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_t3000_write
	mov	w8, #44
	mov	x9, x19
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	strb	w8, [x9]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	cmp	w10, #61
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w10, LBB0_6
; %bb.9:
	ldr	w20, [x21]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_t3000_write
	ldr	w0, [x21]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #1
	bl	_t3000_write
	bl	_t3000_connect
Lloh29:
	adrp	x19, _connected@GOTPAGE
Lloh30:
	ldr	x19, [x19, _connected@GOTPAGEOFF]
	str	w0, [x19]
Lloh31:
	adrp	x8, _dialtimeout@GOTPAGE
Lloh32:
	ldr	x8, [x8, _dialtimeout@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.10:
	bl	_t3000_disconnect
	ldr	w0, [x19]
	b	LBB0_12
LBB0_11:
Lloh34:
	adrp	x0, l_str@PAGE
Lloh35:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using \"%s\"\n"

	.comm	_FD,4,2                         ; @FD
	.comm	_HUPCL,4,2                      ; @HUPCL
	.comm	_TCSANOW,4,2                    ; @TCSANOW
l_.str.2:                               ; @.str.2
	.asciz	"AT E0\r"

	.comm	_TCIOFLUSH,4,2                  ; @TCIOFLUSH
l_.str.3:                               ; @.str.3
	.asciz	"AT E0 H0 Q0 X4 V1\r"

l_.str.4:                               ; @.str.4
	.asciz	"\r\nOK\r\n"

	.comm	_stdout,4,2                     ; @stdout
l_.str.5:                               ; @.str.5
	.asciz	"AT D"

l_.str.6:                               ; @.str.6
	.asciz	"\r"

	.comm	_connected,4,2                  ; @connected
	.comm	_dialtimeout,8,3                ; @dialtimeout
	.comm	_DIALTIMEOUT,4,2                ; @DIALTIMEOUT
	.comm	_HOST,4,2                       ; @HOST
l_str:                                  ; @str
	.asciz	"can't synchronize with t3000"

.subsections_via_symbols
