	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ven_dialer                     ## -- Begin function ven_dialer
	.p2align	4, 0x90
_ven_dialer:                            ## @ven_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	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_FD@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_vensync
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_VERBOSE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_value
	movl	%eax, %edi
	callq	_boolean
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_4:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movl	(%r12), %edi
	leaq	-136(%rbp), %r14
	movq	%r14, %rsi
	callq	_tcgetattr
	movq	_HUPCL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -136(%rbp)
	movl	(%r12), %edi
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_tcsetattr
	leaq	L_.str.2(%rip), %rdi
	callq	_echo
	cmpb	$0, (%rbx)
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$10, %esi
	callq	_delay
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_write
	cmpb	$0, 1(%rbx)
	leaq	1(%rbx), %rbx
	jne	LBB0_5
LBB0_6:
	movl	$1, %edi
	movl	$10, %esi
	callq	_delay
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edx
	callq	_write
	leaq	-128(%rbp), %rbx
	movl	$10, %edi
	movq	%rbx, %rsi
	callq	_gobble
	movl	$10, %edi
	movq	%rbx, %rsi
	callq	_gobble
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	-128(%rbp), %rsi
	movl	$33, %edi
	callq	_gobble
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_7:
	xorl	%r14d, %r14d
LBB0_9:
	movl	(%r12), %edi
	movq	_TCIOFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tcflush
	movq	_dialtimeout@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.11:
	xorl	%eax, %eax
	callq	_ven_disconnect
	cmpq	$0, (%rbx)
	setne	%al
	testl	%r14d, %r14d
	je	LBB0_13
	jmp	LBB0_26
LBB0_10:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jne	LBB0_26
LBB0_13:
	testb	%al, %al
	jne	LBB0_26
## %bb.14:
	movl	(%r15), %edi
	callq	_value
	movl	%eax, %edi
	callq	_boolean
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_26
## %bb.15:
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$13, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movb	$0, (%rax)
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %r15
	movq	%rax, %rbx
	incq	%rbx
	cmpb	$32, 1(%rax)
	jne	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %eax
	incq	%r15
	cmpb	$32, %al
	je	LBB0_19
## %bb.20:
	testb	%al, %al
	jne	LBB0_21
LBB0_25:
	decq	%r15
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%r14d, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%r15, %rbx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_25
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isupper
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movsbl	-1(%rbx), %edi
	callq	_tolower
	movb	%al, -1(%rbx)
	jmp	LBB0_24
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FD,4,2                         ## @FD
	.comm	_VERBOSE,4,2                    ## @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"\ndialing..."

	.comm	_stdout,4,2                     ## @stdout
	.comm	_HUPCL,4,2                      ## @HUPCL
	.comm	_TCSANOW,4,2                    ## @TCSANOW
L_.str.2:                               ## @.str.2
	.asciz	"#k$\r$\n$D$I$A$L$:$ "

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

	.comm	_TCIOFLUSH,4,2                  ## @TCIOFLUSH
	.comm	_dialtimeout,8,3                ## @dialtimeout
L_.str.4:                               ## @.str.4
	.asciz	"%s..."

	.comm	_DIALTIMEOUT,4,2                ## @DIALTIMEOUT
	.comm	_HOST,4,2                       ## @HOST
L_str:                                  ## @str
	.asciz	"can't synchronize with ventel"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ven_dialer                     ; -- Begin function ven_dialer
	.p2align	2
_ven_dialer:                            ; @ven_dialer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _FD@GOTPAGE
Lloh4:
	ldr	x21, [x21, _FD@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_vensync
	cbz	w0, LBB0_7
; %bb.1:
Lloh5:
	adrp	x20, _VERBOSE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _VERBOSE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_value
	bl	_boolean
	cbz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_3:
Lloh9:
	adrp	x8, _stdout@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_fflush
	ldr	w0, [x21]
	add	x1, sp, #16
	bl	_tcgetattr
Lloh12:
	adrp	x8, _HUPCL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HUPCL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [sp, #16]
	orr	w8, w9, w8
	str	w8, [sp, #16]
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_tcsetattr
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_echo
	ldrb	w8, [x19]
	cbz	w8, LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #10
	bl	_delay
	ldr	w0, [x21]
	mov	x1, x19
	mov	w2, #1
	bl	_write
	ldrb	w8, [x19, #1]!
	cbnz	w8, LBB0_4
LBB0_5:
	mov	w0, #1
	mov	w1, #10
	bl	_delay
	ldr	w0, [x21]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #1
	bl	_write
	add	x1, sp, #24
	mov	w0, #10
	bl	_gobble
	add	x1, sp, #24
	mov	w0, #10
	bl	_gobble
	cbz	w0, LBB0_8
; %bb.6:
	add	x1, sp, #24
	mov	w0, #33
	bl	_gobble
	mov	x19, x0
	b	LBB0_9
LBB0_7:
Lloh22:
	adrp	x0, l_str@PAGE
Lloh23:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_22
LBB0_8:
	mov	w19, #0
LBB0_9:
	ldr	w0, [x21]
Lloh24:
	adrp	x8, _TCIOFLUSH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TCIOFLUSH@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_tcflush
Lloh27:
	adrp	x21, _dialtimeout@GOTPAGE
Lloh28:
	ldr	x21, [x21, _dialtimeout@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.10:
	bl	_ven_disconnect
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w8, ne
LBB0_11:
	cbnz	w19, LBB0_23
; %bb.12:
	tbnz	w8, #0, LBB0_23
; %bb.13:
	ldr	w0, [x20]
	bl	_value
	bl	_boolean
	cbz	x0, LBB0_22
; %bb.14:
	add	x0, sp, #24
	mov	w1, #13
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.15:
	strb	wzr, [x0]
LBB0_16:
	add	x0, sp, #24
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	w1, #32
	bl	_strchr
	mov	x19, x0
	cbz	x0, LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x19
	ldrb	w8, [x0, #1]!
	cmp	w8, #32
	b.ne	LBB0_17
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19], #1
	cmp	w8, #32
	b.eq	LBB0_19
; %bb.20:
	cbnz	w8, LBB0_25
LBB0_21:
	sub	x8, x19, #1
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_22:
	mov	w19, #0
LBB0_23:
	ldur	x8, [x29, #-40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.24:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
	mov	x20, x19
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	ldrb	w8, [x20], #1
	cbz	w8, LBB0_21
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isupper
	cbz	x0, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldursb	w0, [x20, #-1]
	bl	_tolower
	sturb	w0, [x20, #-1]
	b	LBB0_26
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_FD,4,2                         ; @FD
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"\ndialing..."

	.comm	_stdout,4,2                     ; @stdout
	.comm	_HUPCL,4,2                      ; @HUPCL
	.comm	_TCSANOW,4,2                    ; @TCSANOW
l_.str.2:                               ; @.str.2
	.asciz	"#k$\r$\n$D$I$A$L$:$ "

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

	.comm	_TCIOFLUSH,4,2                  ; @TCIOFLUSH
	.comm	_dialtimeout,8,3                ; @dialtimeout
l_.str.4:                               ; @.str.4
	.asciz	"%s..."

	.comm	_DIALTIMEOUT,4,2                ; @DIALTIMEOUT
	.comm	_HOST,4,2                       ; @HOST
l_str:                                  ; @str
	.asciz	"can't synchronize with ventel"

.subsections_via_symbols
