	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hay_dialer                     ## -- Begin function hay_dialer
	.p2align	4, 0x90
_hay_dialer:                            ## @hay_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_hay_sync
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_value
	movl	%eax, %edi
	callq	_boolean
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_3:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_FD@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_tcgetattr
	movq	_HUPCL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
	movl	(%r12), %edi
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tcsetattr
	movl	(%r12), %edi
	movq	_TCIOFLUSH@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_tcflush
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$5, %edx
	callq	_write
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rdi
	callq	_gobble
	movq	%rbx, %rdi
	callq	_gobble
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edx
	callq	_write
	movq	%r15, %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	$44, (%rax)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$61, %cl
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%cl, %cl
	jne	LBB0_11
## %bb.6:
	movl	(%r12), %ebx
	movq	%r15, %rdi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_write
	movq	_DIALING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_state@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_write
	movq	%rbx, %rdi
	callq	_gobble
	testb	%al, %al
	je	LBB0_9
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	callq	_gobble
	cmpb	$49, %al
	jne	LBB0_8
## %bb.12:
	movq	_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_tcflush
	movq	_dialtimeout@GOTPCREL(%rip), %rax
	movl	$1, %r14d
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_hay_disconnect
	jmp	LBB0_14
LBB0_8:
	movsbl	%al, %edi
	callq	_error_rep
LBB0_9:
	movq	_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"\ndialing..."

	.comm	_stdout,4,2                     ## @stdout
	.comm	_FD,4,2                         ## @FD
	.comm	_HUPCL,4,2                      ## @HUPCL
	.comm	_TCSANOW,4,2                    ## @TCSANOW
	.comm	_TCIOFLUSH,4,2                  ## @TCIOFLUSH
L_.str.1:                               ## @.str.1
	.asciz	"ATv0\r"

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

L_.str.3:                               ## @.str.3
	.asciz	"ATTD"

	.comm	_DIALING,4,2                    ## @DIALING
	.comm	_state,4,2                      ## @state
L_.str.4:                               ## @.str.4
	.asciz	"01234"

	.comm	_CONNECTED,4,2                  ## @CONNECTED
	.comm	_FAILED,4,2                     ## @FAILED
	.comm	_dialtimeout,8,3                ## @dialtimeout
	.comm	_DIALTIMEOUT,4,2                ## @DIALTIMEOUT
	.comm	_HOST,4,2                       ## @HOST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hay_dialer                     ; -- Begin function hay_dialer
	.p2align	2
_hay_dialer:                            ; @hay_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	x19, x0
	bl	_hay_sync
	cbz	x0, LBB0_15
; %bb.1:
Lloh0:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_value
	bl	_boolean
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_3:
Lloh5:
	adrp	x8, _stdout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_fflush
Lloh8:
	adrp	x21, _FD@GOTPAGE
Lloh9:
	ldr	x21, [x21, _FD@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_tcgetattr
Lloh10:
	adrp	x8, _HUPCL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HUPCL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x21]
Lloh13:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_tcsetattr
	ldr	w0, [x21]
Lloh16:
	adrp	x22, _TCIOFLUSH@GOTPAGE
Lloh17:
	ldr	x22, [x22, _TCIOFLUSH@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_tcflush
	ldr	w0, [x21]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #5
	bl	_write
Lloh20:
	adrp	x20, l_.str.2@PAGE
Lloh21:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_gobble
	mov	x0, x20
	bl	_gobble
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #4
	bl	_write
	mov	w8, #44
	mov	x9, x19
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	w8, [x9]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	cmp	w10, #61
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w10, LBB0_5
; %bb.8:
	ldr	w20, [x21]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_write
Lloh24:
	adrp	x8, _DIALING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DIALING@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x20, _state@GOTPAGE
Lloh28:
	ldr	x20, [x20, _state@GOTPAGEOFF]
	str	w8, [x20]
	ldr	w0, [x21]
Lloh29:
	adrp	x19, l_.str.2@PAGE
Lloh30:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	w2, #1
	bl	_write
	mov	x0, x19
	bl	_gobble
	cbz	w0, LBB0_14
; %bb.9:
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_gobble
	cmp	w0, #49
	b.ne	LBB0_13
; %bb.10:
Lloh33:
	adrp	x8, _CONNECTED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CONNECTED@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_tcflush
Lloh36:
	adrp	x8, _dialtimeout@GOTPAGE
Lloh37:
	ldr	x8, [x8, _dialtimeout@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	bl	_hay_disconnect
LBB0_12:
	mov	w0, #1
	b	LBB0_15
LBB0_13:
	bl	_error_rep
LBB0_14:
	mov	w0, #0
Lloh39:
	adrp	x8, _FAILED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_15:
	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 AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\ndialing..."

	.comm	_stdout,4,2                     ; @stdout
	.comm	_FD,4,2                         ; @FD
	.comm	_HUPCL,4,2                      ; @HUPCL
	.comm	_TCSANOW,4,2                    ; @TCSANOW
	.comm	_TCIOFLUSH,4,2                  ; @TCIOFLUSH
l_.str.1:                               ; @.str.1
	.asciz	"ATv0\r"

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

l_.str.3:                               ; @.str.3
	.asciz	"ATTD"

	.comm	_DIALING,4,2                    ; @DIALING
	.comm	_state,4,2                      ; @state
l_.str.4:                               ; @.str.4
	.asciz	"01234"

	.comm	_CONNECTED,4,2                  ; @CONNECTED
	.comm	_FAILED,4,2                     ; @FAILED
	.comm	_dialtimeout,8,3                ; @dialtimeout
	.comm	_DIALTIMEOUT,4,2                ; @DIALTIMEOUT
	.comm	_HOST,4,2                       ; @HOST
.subsections_via_symbols
