	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v3451_dialer                   ## -- Begin function v3451_dialer
	.p2align	4, 0x90
_v3451_dialer:                          ## @v3451_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	%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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BAUDRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_value
	movl	%eax, %edi
	callq	_number
	xorl	%ebx, %ebx
	cmpl	$1200, %eax                     ## imm = 0x4B0
	setl	%bl
	leal	1(%rbx), %r15d
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_vawrite
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_vawrite
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_vawrite
	orl	$2, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_vawrite
	leaq	L_.str.2(%rip), %rdi
	callq	_expect
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_FD@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-120(%rbp), %r12
	movq	%r12, %rsi
	callq	_tcgetattr
	movq	_HUPCL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_term@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	movl	(%r13), %edi
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_tcsetattr
	movl	$1, %edi
	callq	_sleep
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	callq	_vawrite
	leaq	L_.str.5(%rip), %rdi
	callq	_expect
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.7(%rip), %rdx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$50, %esi
	movq	%r14, %rcx
	callq	_snprintf
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_vawrite
	movq	%rbx, %rdi
	callq	_expect
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	_SIGINT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	%eax, %r14d
	leaq	L_.str.9(%rip), %rbx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_vawrite
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_vawrite
	leaq	L_.str.10(%rip), %rdi
	callq	_expect
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_value
	movl	%eax, %edi
	callq	_boolean
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.12(%rip), %rdi
	callq	_printf
LBB0_11:
	leaq	L_.str.13(%rip), %rdi
	callq	_expect
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_signal
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.13:
	movl	(%r13), %edi
	movq	_TCIOFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tcflush
	movl	$1, %eax
	jmp	LBB0_14
LBB0_1:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_str.15(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	leaq	L_str.16(%rip), %rdi
	jmp	LBB0_2
LBB0_8:
	leaq	L_str.17(%rip), %rdi
	jmp	LBB0_2
LBB0_12:
	leaq	L_str.18(%rip), %rdi
LBB0_2:
	callq	_puts
	xorl	%eax, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BAUDRATE,4,2                   ## @BAUDRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I\r"

L_.str.1:                               ## @.str.1
	.asciz	"\005\r"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"NUMBER?"

L_.str.7:                               ## @.str.7
	.asciz	"%s\r"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
L_.str.9:                               ## @.str.9
	.asciz	"\r"

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

	.comm	_VERBOSE,4,2                    ## @VERBOSE
L_.str.12:                              ## @.str.12
	.asciz	"\ndialing..."

L_.str.13:                              ## @.str.13
	.asciz	"ON LINE"

	.comm	_TCIOFLUSH,4,2                  ## @TCIOFLUSH
	.comm	_HOST,4,2                       ## @HOST
L_str:                                  ## @str
	.asciz	"can't synchronize with vadic 3451"

L_str.15:                               ## @str.15
	.asciz	"Vadic will not accept dial command"

L_str.16:                               ## @str.16
	.asciz	"Vadic will not accept phone number"

L_str.17:                               ## @str.17
	.asciz	"Vadic failed to dial"

L_str.18:                               ## @str.18
	.asciz	"call failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v3451_dialer                   ; -- Begin function v3451_dialer
	.p2align	2
_v3451_dialer:                          ; @v3451_dialer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
Lloh3:
	adrp	x8, _BAUDRATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BAUDRATE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_value
	bl	_number
	cmp	w0, #1200
	mov	w8, #1
	cinc	w19, w8, lt
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	mov	w8, #2
	cinc	w21, w8, lt
	mov	x0, x22
	mov	x1, x19
	bl	_vawrite
	mov	x0, x22
	mov	x1, x19
	bl	_vawrite
	mov	x0, x22
	mov	x1, x19
	bl	_vawrite
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_vawrite
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_expect
	cbz	w0, LBB0_8
; %bb.1:
Lloh12:
	adrp	x22, _FD@GOTPAGE
Lloh13:
	ldr	x22, [x22, _FD@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, sp
	bl	_tcgetattr
Lloh14:
	adrp	x8, _HUPCL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HUPCL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _term@GOTPAGE
Lloh18:
	ldr	x9, [x9, _term@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	w0, [x22]
Lloh19:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_tcsetattr
	mov	w0, #1
	bl	_sleep
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_vawrite
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_expect
	cbz	w0, LBB0_9
; %bb.2:
Lloh26:
	adrp	x2, l_.str.7@PAGE
Lloh27:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x0, sp, #6
	mov	w1, #50
	mov	x3, x20
	bl	_snprintf
	add	x0, sp, #6
	mov	x1, x19
	bl	_vawrite
	add	x0, sp, #6
	bl	_expect
	cbz	w0, LBB0_10
; %bb.3:
Lloh28:
	adrp	x23, _SIGINT@GOTPAGE
Lloh29:
	ldr	x23, [x23, _SIGINT@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh30:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_signal
	mov	x20, x0
Lloh33:
	adrp	x21, l_.str.9@PAGE
Lloh34:
	add	x21, x21, l_.str.9@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_vawrite
	mov	x0, x21
	mov	x1, x19
	bl	_vawrite
Lloh35:
	adrp	x0, l_.str.10@PAGE
Lloh36:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_expect
	cbz	w0, LBB0_11
; %bb.4:
Lloh37:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_value
	bl	_boolean
	cbz	x0, LBB0_6
; %bb.5:
Lloh40:
	adrp	x0, l_.str.12@PAGE
Lloh41:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
LBB0_6:
Lloh42:
	adrp	x0, l_.str.13@PAGE
Lloh43:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_expect
	mov	x19, x0
	ldr	w0, [x23]
	mov	x1, x20
	bl	_signal
	cbz	w19, LBB0_12
; %bb.7:
	ldr	w0, [x22]
Lloh44:
	adrp	x8, _TCIOFLUSH@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TCIOFLUSH@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	bl	_tcflush
	mov	w0, #1
	b	LBB0_14
LBB0_8:
Lloh47:
	adrp	x0, l_str@PAGE
Lloh48:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_13
LBB0_9:
Lloh49:
	adrp	x0, l_str.15@PAGE
Lloh50:
	add	x0, x0, l_str.15@PAGEOFF
	b	LBB0_13
LBB0_10:
Lloh51:
	adrp	x0, l_str.16@PAGE
Lloh52:
	add	x0, x0, l_str.16@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh53:
	adrp	x0, l_str.17@PAGE
Lloh54:
	add	x0, x0, l_str.17@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh55:
	adrp	x0, l_str.18@PAGE
Lloh56:
	add	x0, x0, l_str.18@PAGEOFF
LBB0_13:
	bl	_puts
	mov	w0, #0
LBB0_14:
	ldr	x8, [sp, #56]
Lloh57:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh58:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_BAUDRATE,4,2                   ; @BAUDRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I\r"

l_.str.1:                               ; @.str.1
	.asciz	"\005\r"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"NUMBER?"

l_.str.7:                               ; @.str.7
	.asciz	"%s\r"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
l_.str.9:                               ; @.str.9
	.asciz	"\r"

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

	.comm	_VERBOSE,4,2                    ; @VERBOSE
l_.str.12:                              ; @.str.12
	.asciz	"\ndialing..."

l_.str.13:                              ; @.str.13
	.asciz	"ON LINE"

	.comm	_TCIOFLUSH,4,2                  ; @TCIOFLUSH
	.comm	_HOST,4,2                       ; @HOST
l_str:                                  ; @str
	.asciz	"can't synchronize with vadic 3451"

l_str.15:                               ; @str.15
	.asciz	"Vadic will not accept dial command"

l_str.16:                               ; @str.16
	.asciz	"Vadic will not accept phone number"

l_str.17:                               ; @str.17
	.asciz	"Vadic failed to dial"

l_str.18:                               ; @str.18
	.asciz	"call failed"

.subsections_via_symbols
