	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function datalink_UpdateSet
_datalink_UpdateSet:                    ## @datalink_UpdateSet
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_PHYS_DDIAL@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$138, %esi
	callq	_datalink_NewState
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_descriptor2datalink
	movq	%rax, %r14
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_54
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	56(%r14), %r12
	movq	%r14, %rdi
	addq	$60, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_descriptor_UpdateSet
	movl	%eax, %r15d
	movl	56(%r14), %eax
	cmpl	$140, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$141, %eax
	jne	LBB0_55
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	movl	$-131, %ecx
	addl	%ecx, %eax
	cmpl	$4, %eax
	ja	LBB0_55
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 64(%r14)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_datalink_LoginDone
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movl	(%r14), %eax
	leal	-131(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$135, %eax
	jne	LBB0_41
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$134, %esi
	callq	_datalink_NewState
	movq	8(%r14), %rdi
	callq	_physical_Offline
	movq	24(%r14), %rsi
	movq	%r12, %rdi
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	callq	_chat_Setup
	testl	%eax, %eax
	jne	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_2
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	_PHYS_DEDICATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PHYS_DIRECT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_PHYS_BACKGROUND@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_PHYS_FOREGROUND@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	orl	(%rbx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_54
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	80(%r14), %rax
	cmpl	$0, (%rax)
	jne	LBB0_54
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_datalink_Up
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	92(%r14), %eax
	movq	_TIMER_RUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_54
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	88(%r14), %eax
	leal	-1(%rax), %ecx
	testl	%eax, %eax
	movl	$0, %eax
	cmovlel	%eax, %ecx
	movl	%ecx, 88(%r14)
	movq	8(%r14), %rdi
	callq	_physical_Open
	testl	%eax, %eax
	js	LBB0_39
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %edx
	movq	8(%r14), %rax
	movl	8(%rax), %ecx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_WritePrompts
	cmpl	$0, 72(%r14)
	je	LBB0_1
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r12
	movq	%r14, %rdi
	movl	$135, %esi
	callq	_datalink_NewState
	movq	%r14, %rbx
	addq	$56, %rbx
	movq	40(%r14), %r15
	cmpl	$0, (%r15)
	leaq	L_.str.1(%rip), %rdx
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_datalink_ChoosePhoneNumber
	movq	%rax, %rdx
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_chat_Setup
	testl	%eax, %eax
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	_PHYS_DEDICATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rbx
	orl	(%r12), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	48(%r14), %r8d
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_LogCHAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	movl	%r8d, %ecx
	subl	88(%r14), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_2
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rdi
	callq	_physical_AwaitCarrier
	cmpl	$143, %eax
	je	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$144, %eax
	je	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$142, %eax
	jne	LBB0_4
	jmp	LBB0_52
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 72(%r14)
	je	LBB0_9
## %bb.33:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$132, %esi
	callq	_datalink_NewState
	movq	%r14, %rdi
	addq	$56, %rdi
	movq	32(%r14), %rsi
	xorl	%edx, %edx
	callq	_chat_Setup
	testl	%eax, %eax
	jne	LBB0_2
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_15
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rdi
	callq	_physical_Offline
	cmpl	$0, 72(%r14)
	je	LBB0_53
## %bb.36:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$134, %esi
	callq	_datalink_NewState
	movq	%r14, %rdi
	addq	$56, %rdi
	movq	24(%r14), %rsi
	jmp	LBB0_13
LBB0_37:
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r8
	callq	_descriptor_UpdateSet
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_descriptor_UpdateSet
	movl	%eax, %r15d
	addl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jmp	LBB0_55
LBB0_39:
	movq	8(%r14), %rax
	movq	_PHYS_DEDICATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rbx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_46
LBB0_40:
	movq	_LogCHAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_48
LBB0_41:
	cmpl	$134, %eax
	jne	LBB0_55
LBB0_42:
	movq	%r14, %rdi
	callq	_datalink_HangupDone
	jmp	LBB0_55
LBB0_46:
	movl	48(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_40
## %bb.47:
	movq	_LogCHAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ecx, %edx
	subl	88(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_48:
	movq	80(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_50
LBB0_49:
	movq	%r14, %rdi
	movl	$136, %esi
	callq	_datalink_NewState
	movl	$0, 96(%r14)
	movl	$-1, 88(%r14)
	movq	8(%r14), %rax
	movl	8(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_log_WritePrompts
	movq	80(%r14), %rdi
	movq	%r14, %rsi
	callq	_bundle_LinkClosed
	movq	80(%r14), %rax
	cmpl	$0, (%rax)
	jne	LBB0_55
	jmp	LBB0_51
LBB0_50:
	movq	8(%r14), %rax
	movq	_PHYS_DEDICATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rbx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_56
LBB0_51:
	movq	%r14, %rdi
	callq	_datalink_GetDialTimeout
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_datalink_StartDialTimer
	movl	%eax, %ebx
	movq	80(%r14), %rdi
	movq	_EX_REDIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bundle_Notify
	movq	8(%r14), %rax
	movl	8(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_log_WritePrompts
	jmp	LBB0_55
LBB0_52:
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_55
LBB0_53:
	movq	%r14, %rdi
	callq	_datalink_HangupDone
LBB0_54:
	xorl	%r15d, %r15d
LBB0_55:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_56:
	cmpl	$0, 48(%r14)
	je	LBB0_51
## %bb.57:
	cmpl	$0, 88(%r14)
	jne	LBB0_51
	jmp	LBB0_49
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_37
	.long	L0_0_set_19
	.long	L0_0_set_37
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_37
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_16
	.long	L0_0_set_37
	.long	L0_0_set_29
	.long	L0_0_set_37
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_55, LBB0_55-LJTI0_1
.set L0_1_set_42, LBB0_42-LJTI0_1
.set L0_1_set_1, LBB0_1-LJTI0_1
LJTI0_1:
	.long	L0_1_set_12
	.long	L0_1_set_8
	.long	L0_1_set_55
	.long	L0_1_set_42
	.long	L0_1_set_1
	.end_data_region
                                        ## -- End function
	.comm	_PHYS_DIRECT,4,2                ## @PHYS_DIRECT
	.comm	_PHYS_DEDICATED,4,2             ## @PHYS_DEDICATED
	.comm	_PHYS_BACKGROUND,4,2            ## @PHYS_BACKGROUND
	.comm	_PHYS_FOREGROUND,4,2            ## @PHYS_FOREGROUND
	.comm	_PHYS_DDIAL,4,2                 ## @PHYS_DDIAL
	.comm	_TIMER_RUNNING,4,2              ## @TIMER_RUNNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Entering terminal mode on %s\r\nType `~?' for help\r\n"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.2:                               ## @.str.2
	.asciz	"Invalid dial script\n"

	.comm	_LogCHAT,4,2                    ## @LogCHAT
L_.str.3:                               ## @.str.3
	.asciz	"%s: Dial attempt %u of %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to open device (attempt %u of %d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to open device\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to open %s\n"

	.comm	_EX_REDIAL,4,2                  ## @EX_REDIAL
L_.str.7:                               ## @.str.7
	.asciz	"Failed to open %s, pause %d seconds\n"

	.comm	_LogDEBUG,4,2                   ## @LogDEBUG
L_.str.8:                               ## @.str.8
	.asciz	"Waiting for carrier\n"

L_.str.9:                               ## @.str.9
	.asciz	"Invalid login script\n"

L_.str.10:                              ## @.str.10
	.asciz	"Invalid hangup script\n"

L_.str.11:                              ## @.str.11
	.asciz	"Chat script failed\n"

	.no_dead_strip	_datalink_UpdateSet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function datalink_UpdateSet
_datalink_UpdateSet:                    ; @datalink_UpdateSet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x25, lJTI0_0@PAGE
Lloh1:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh2:
	adrp	x28, _LogWARN@GOTPAGE
Lloh3:
	ldr	x28, [x28, _LogWARN@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	w1, #138
	bl	_datalink_NewState
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_descriptor2datalink
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_50
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	adr	x9, LBB0_4
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x23, #60
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_descriptor_UpdateSet
	mov	x26, x0
	mov	x27, x23
	ldr	w8, [x27, #56]!
	cmp	w8, #140
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #141
	b.ne	LBB0_51
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	sub	w8, w8, #131
	cmp	w8, #4
	b.hi	LBB0_51
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh4:
	adrp	x11, lJTI0_1@PAGE
Lloh5:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x9, LBB0_1
	ldrh	w10, [x11, x8, lsl #1]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x23, #64]
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_datalink_LoginDone
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
Lloh6:
	adrp	x1, l_.str.11@PAGE
Lloh7:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_log_Printf
	ldr	w8, [x23]
	sub	w9, w8, #131
	cmp	w9, #2
	b.lo	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #135
	b.ne	LBB0_40
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	w1, #134
	bl	_datalink_NewState
	ldr	x0, [x23, #8]
	bl	_physical_Offline
	ldr	x1, [x23, #24]
	mov	x0, x27
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, #0
	bl	_chat_Setup
	cbnz	w0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
Lloh8:
	adrp	x1, l_.str.10@PAGE
Lloh9:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_log_Printf
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PHYS_DIRECT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PHYS_DIRECT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _PHYS_DEDICATED@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PHYS_DEDICATED@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh16:
	adrp	x10, _PHYS_BACKGROUND@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PHYS_BACKGROUND@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh19:
	adrp	x10, _PHYS_FOREGROUND@GOTPAGE
Lloh20:
	ldr	x10, [x10, _PHYS_FOREGROUND@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh22:
	adrp	x10, _PHYS_DDIAL@GOTPAGE
Lloh23:
	ldr	x10, [x10, _PHYS_DDIAL@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_50
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #80]
	ldr	w8, [x8]
	cbnz	w8, LBB0_50
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	w1, #1
	mov	w2, #1
	bl	_datalink_Up
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23, #92]
Lloh25:
	adrp	x9, _TIMER_RUNNING@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TIMER_RUNNING@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_50
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23, #88]
	sub	w9, w8, #1
	cmp	w8, #0
	csel	w8, w9, wzr, gt
	str	w8, [x23, #88]
	ldr	x0, [x23, #8]
	bl	_physical_Open
	tbnz	w0, #31, LBB0_38
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x23, #4]
	ldr	x8, [x23, #8]
	ldr	w8, [x8, #8]
	str	x8, [sp]
	mov	x0, x23
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_WritePrompts
	ldr	w8, [x23, #72]
	cbz	w8, LBB0_1
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	w1, #135
	bl	_datalink_NewState
	ldr	x26, [x23, #40]
	ldr	w8, [x26]
	cbz	w8, LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_datalink_ChoosePhoneNumber
	mov	x2, x0
	b	LBB0_27
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x23, #8]
	bl	_physical_AwaitCarrier
	cmp	w0, #143
	b.eq	LBB0_32
; %bb.24:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #144
	b.eq	LBB0_35
; %bb.25:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #142
	b.ne	LBB0_4
	b	LBB0_48
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x23, #56
	mov	x1, x26
	bl	_chat_Setup
	cbnz	w0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log_Printf
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _PHYS_DDIAL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PHYS_DDIAL@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _PHYS_DEDICATED@GOTPAGE
Lloh38:
	ldr	x10, [x10, _PHYS_DEDICATED@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_2
; %bb.30:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23, #48]
	cbz	w8, LBB0_2
; %bb.31:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh40:
	adrp	x9, _LogCHAT@GOTPAGE
Lloh41:
	ldr	x9, [x9, _LogCHAT@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x9]
	ldr	w9, [x23, #88]
	sub	w9, w8, w9
	ldr	w10, [x23, #4]
	stp	x9, x8, [sp, #8]
	str	x10, [sp]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_log_Printf
	b	LBB0_2
LBB0_32:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23, #72]
	cbz	w8, LBB0_9
; %bb.33:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	w1, #132
	bl	_datalink_NewState
	add	x0, x23, #56
	ldr	x1, [x23, #32]
	mov	x2, #0
	bl	_chat_Setup
	cbnz	w0, LBB0_2
; %bb.34:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
Lloh45:
	adrp	x1, l_.str.9@PAGE
Lloh46:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_log_Printf
	b	LBB0_2
LBB0_35:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x23, #8]
	bl	_physical_Offline
	ldr	w8, [x23, #72]
	cbz	w8, LBB0_49
; %bb.36:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	w1, #134
	bl	_datalink_NewState
	add	x0, x23, #56
	ldr	x1, [x23, #24]
	b	LBB0_13
LBB0_37:
	add	x0, x23, #16
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_descriptor_UpdateSet
	mov	x24, x0
	ldr	x8, [x23, #8]
	add	x0, x8, #4
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_descriptor_UpdateSet
	add	w26, w0, w24
	b	LBB0_51
LBB0_38:
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _PHYS_DDIAL@GOTPAGE
Lloh48:
	ldr	x9, [x9, _PHYS_DDIAL@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
Lloh50:
	adrp	x10, _PHYS_DEDICATED@GOTPAGE
Lloh51:
	ldr	x10, [x10, _PHYS_DEDICATED@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_42
LBB0_39:
Lloh53:
	adrp	x8, _LogCHAT@GOTPAGE
Lloh54:
	ldr	x8, [x8, _LogCHAT@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	adrp	x1, l_.str.5@PAGE
Lloh57:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_44
LBB0_40:
	cmp	w8, #134
	b.ne	LBB0_51
LBB0_41:
	mov	x0, x23
	bl	_datalink_HangupDone
	b	LBB0_51
LBB0_42:
	ldr	w8, [x23, #48]
	cbz	w8, LBB0_39
; %bb.43:
Lloh58:
	adrp	x9, _LogCHAT@GOTPAGE
Lloh59:
	ldr	x9, [x9, _LogCHAT@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x9]
	ldr	w9, [x23, #88]
	sub	w9, w8, w9
	stp	x9, x8, [sp]
Lloh61:
	adrp	x1, l_.str.4@PAGE
Lloh62:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_44:
	bl	_log_Printf
	ldr	x8, [x23, #80]
	ldr	w8, [x8]
	cbz	w8, LBB0_46
LBB0_45:
	mov	x0, x23
	mov	w1, #136
	bl	_datalink_NewState
	str	wzr, [x23, #96]
	mov	w8, #-1
	str	w8, [x23, #88]
	ldr	x8, [x23, #8]
	ldr	w2, [x8, #8]
Lloh63:
	adrp	x1, l_.str.6@PAGE
Lloh64:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	bl	_log_WritePrompts
	ldr	x0, [x23, #80]
	mov	x1, x23
	bl	_bundle_LinkClosed
	mov	w26, #0
	ldr	x8, [x23, #80]
	ldr	w8, [x8]
	cbnz	w8, LBB0_51
	b	LBB0_47
LBB0_46:
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _PHYS_DDIAL@GOTPAGE
Lloh66:
	ldr	x9, [x9, _PHYS_DDIAL@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
Lloh68:
	adrp	x10, _PHYS_DEDICATED@GOTPAGE
Lloh69:
	ldr	x10, [x10, _PHYS_DEDICATED@GOTPAGEOFF]
Lloh70:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_52
LBB0_47:
	mov	x0, x23
	bl	_datalink_GetDialTimeout
	mov	x1, x0
	mov	x0, x23
	bl	_datalink_StartDialTimer
	mov	x19, x0
	ldr	x0, [x23, #80]
Lloh71:
	adrp	x8, _EX_REDIAL@GOTPAGE
Lloh72:
	ldr	x8, [x8, _EX_REDIAL@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	bl	_bundle_Notify
	ldr	x8, [x23, #8]
	ldr	w2, [x8, #8]
	str	x19, [sp]
Lloh74:
	adrp	x1, l_.str.7@PAGE
Lloh75:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	bl	_log_WritePrompts
	b	LBB0_50
LBB0_48:
Lloh76:
	adrp	x8, _LogDEBUG@GOTPAGE
Lloh77:
	ldr	x8, [x8, _LogDEBUG@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
Lloh79:
	adrp	x1, l_.str.8@PAGE
Lloh80:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_log_Printf
	b	LBB0_50
LBB0_49:
	mov	x0, x23
	bl	_datalink_HangupDone
LBB0_50:
	mov	w26, #0
LBB0_51:
	mov	x0, x26
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_52:
	ldr	w8, [x23, #48]
	cbz	w8, LBB0_47
; %bb.53:
	ldr	w8, [x23, #88]
	cbnz	w8, LBB0_47
	b	LBB0_45
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_37-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_37-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_37-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_37-LBB0_4)>>2
	.byte	(LBB0_23-LBB0_4)>>2
	.byte	(LBB0_37-LBB0_4)>>2
	.p2align	1
lJTI0_1:
	.short	(LBB0_12-LBB0_1)>>2
	.short	(LBB0_8-LBB0_1)>>2
	.short	(LBB0_51-LBB0_1)>>2
	.short	(LBB0_41-LBB0_1)>>2
	.short	(LBB0_1-LBB0_1)>>2
                                        ; -- End function
	.comm	_PHYS_DIRECT,4,2                ; @PHYS_DIRECT
	.comm	_PHYS_DEDICATED,4,2             ; @PHYS_DEDICATED
	.comm	_PHYS_BACKGROUND,4,2            ; @PHYS_BACKGROUND
	.comm	_PHYS_FOREGROUND,4,2            ; @PHYS_FOREGROUND
	.comm	_PHYS_DDIAL,4,2                 ; @PHYS_DDIAL
	.comm	_TIMER_RUNNING,4,2              ; @TIMER_RUNNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Entering terminal mode on %s\r\nType `~?' for help\r\n"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.2:                               ; @.str.2
	.asciz	"Invalid dial script\n"

	.comm	_LogCHAT,4,2                    ; @LogCHAT
l_.str.3:                               ; @.str.3
	.asciz	"%s: Dial attempt %u of %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to open device (attempt %u of %d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to open device\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to open %s\n"

	.comm	_EX_REDIAL,4,2                  ; @EX_REDIAL
l_.str.7:                               ; @.str.7
	.asciz	"Failed to open %s, pause %d seconds\n"

	.comm	_LogDEBUG,4,2                   ; @LogDEBUG
l_.str.8:                               ; @.str.8
	.asciz	"Waiting for carrier\n"

l_.str.9:                               ; @.str.9
	.asciz	"Invalid login script\n"

l_.str.10:                              ; @.str.10
	.asciz	"Invalid hangup script\n"

l_.str.11:                              ; @.str.11
	.asciz	"Chat script failed\n"

	.no_dead_strip	_datalink_UpdateSet
.subsections_via_symbols
