	.file	"extr_datalink.c_datalink_UpdateSet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%s: Entering terminal mode on %s\r\nType `~?' for help\r\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Invalid dial script\n"
.LC3:
	.string	"%s: Dial attempt %u of %d\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Failed to open device (attempt %u of %d)\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Failed to open device\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Failed to open %s, pause %d seconds\n"
	.section	.rodata.str1.1
.LC7:
	.string	"Failed to open %s\n"
.LC8:
	.string	"Waiting for carrier\n"
.LC9:
	.string	"Invalid login script\n"
.LC10:
	.string	"Invalid hangup script\n"
.LC11:
	.string	"Chat script failed\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB12:
	.text
.LHOTB12:
	.p2align 4
	.type	datalink_UpdateSet, @function
datalink_UpdateSet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	lea	rbp, .L5[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], r8
.L2:
	mov	rdi, rbx
	call	descriptor2datalink@PLT
	mov	r15, rax
	mov	eax, DWORD PTR [rax]
	add	eax, -128
	cmp	eax, 11
	ja	.L38
	movsx	rax, DWORD PTR 0[rbp+rax*4]
	add	rax, rbp
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L4-.L5
	.long	.L9-.L5
	.long	.L4-.L5
	.long	.L8-.L5
	.long	.L8-.L5
	.long	.L4-.L5
	.long	.L8-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L4-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR 8[r15]
	mov	eax, DWORD PTR PHYS_DIRECT[rip]
	or	eax, DWORD PTR PHYS_DEDICATED[rip]
	or	eax, DWORD PTR PHYS_BACKGROUND[rip]
	or	eax, DWORD PTR PHYS_FOREGROUND[rip]
	or	eax, DWORD PTR PHYS_DDIAL[rip]
	test	DWORD PTR [rdx], eax
	je	.L11
	mov	rax, QWORD PTR 80[r15]
	mov	r10d, DWORD PTR [rax]
	test	r10d, r10d
	jne	.L11
	mov	edx, 1
	mov	esi, 1
	mov	rdi, r15
	call	datalink_Up@PLT
.L9:
	mov	eax, DWORD PTR TIMER_RUNNING[rip]
	cmp	DWORD PTR 92[r15], eax
	je	.L11
	mov	eax, DWORD PTR 88[r15]
	mov	ecx, 0
	mov	rdi, QWORD PTR 8[r15]
	sub	eax, 1
	cmovs	eax, ecx
	mov	DWORD PTR 88[r15], eax
	call	physical_Open@PLT
	test	eax, eax
	js	.L14
	mov	rax, QWORD PTR 8[r15]
	mov	edx, DWORD PTR 4[r15]
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	mov	ecx, DWORD PTR 8[rax]
	xor	eax, eax
	call	log_WritePrompts@PLT
	mov	r9d, DWORD PTR 72[r15]
	test	r9d, r9d
	je	.L34
	mov	esi, 135
	mov	rdi, r15
	call	datalink_NewState@PLT
	mov	rsi, QWORD PTR 40[r15]
	lea	rdx, .LC0[rip]
	mov	r8d, DWORD PTR [rsi]
	test	r8d, r8d
	jne	.L56
.L16:
	lea	rdi, 56[r15]
	call	chat_Setup@PLT
	test	eax, eax
	je	.L57
.L17:
	mov	rdx, QWORD PTR 8[r15]
	mov	eax, DWORD PTR PHYS_DDIAL[rip]
	or	eax, DWORD PTR PHYS_DEDICATED[rip]
	test	DWORD PTR [rdx], eax
	jne	.L2
	mov	r8d, DWORD PTR 48[r15]
	test	r8d, r8d
	je	.L2
	mov	edx, DWORD PTR 4[r15]
	mov	edi, DWORD PTR LogCHAT[rip]
	mov	ecx, r8d
	xor	eax, eax
	sub	ecx, DWORD PTR 88[r15]
	lea	rsi, .LC3[rip]
	call	log_Printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rbp, QWORD PTR [rsp]
	lea	rdi, 16[r15]
	mov	rcx, r14
	mov	rdx, r13
	mov	rsi, r12
	mov	r8, rbp
	call	descriptor_UpdateSet@PLT
	mov	rdi, QWORD PTR 8[r15]
	mov	r8, rbp
	mov	rcx, r14
	mov	rdx, r13
	mov	rsi, r12
	mov	ebx, eax
	add	rdi, 4
	call	descriptor_UpdateSet@PLT
	lea	r8d, [rbx+rax]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[r15]
	call	physical_AwaitCarrier@PLT
	cmp	eax, 143
	je	.L25
	cmp	eax, 144
	je	.L26
	cmp	eax, 142
	je	.L58
.L8:
	mov	r8, QWORD PTR [rsp]
	lea	rdi, 60[r15]
	mov	rcx, r14
	mov	rdx, r13
	mov	rsi, r12
	call	descriptor_UpdateSet@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR 56[r15]
	cmp	eax, 140
	je	.L29
	cmp	eax, 141
	jne	.L1
	mov	eax, DWORD PTR [r15]
	cmp	eax, 134
	je	.L30
	jg	.L31
	cmp	eax, 131
	je	.L37
	cmp	eax, 132
	jne	.L1
	mov	QWORD PTR 64[r15], 0
.L50:
	mov	rdi, r15
	call	datalink_LoginDone@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L31:
	cmp	eax, 135
	jne	.L1
.L34:
	mov	esi, 138
	mov	rdi, r15
	call	datalink_NewState@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L58:
	mov	edi, DWORD PTR LogDEBUG[rip]
	lea	rsi, .LC8[rip]
	xor	eax, eax
	call	log_Printf@PLT
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L57:
	mov	edi, DWORD PTR LogWARN[rip]
	lea	rsi, .LC2[rip]
	call	log_Printf@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L56:
	mov	rdi, r15
	call	datalink_ChoosePhoneNumber@PLT
	mov	rsi, QWORD PTR 40[r15]
	mov	rdx, rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR LogWARN[rip]
	xor	eax, eax
	mov	DWORD PTR 12[rsp], r8d
	lea	rsi, .LC11[rip]
	call	log_Printf@PLT
	mov	eax, DWORD PTR [r15]
	mov	r8d, DWORD PTR 12[rsp]
	cmp	eax, 134
	je	.L35
	jg	.L36
	sub	eax, 131
	cmp	eax, 1
	ja	.L1
.L37:
	mov	rdi, r15
	mov	esi, 134
	call	datalink_NewState@PLT
	mov	rdi, QWORD PTR 8[r15]
	call	physical_Offline@PLT
.L54:
	mov	rsi, QWORD PTR 24[r15]
	xor	edx, edx
	lea	rdi, 56[r15]
	call	chat_Setup@PLT
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR LogWARN[rip]
	lea	rsi, .LC10[rip]
	call	log_Printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L36:
	cmp	eax, 135
	je	.L37
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, QWORD PTR 8[r15]
	call	physical_Offline@PLT
	mov	r8d, DWORD PTR 72[r15]
	test	r8d, r8d
	je	.L28
	mov	esi, 134
	mov	rdi, r15
	call	datalink_NewState@PLT
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, DWORD PTR 72[r15]
	test	eax, eax
	je	.L50
	mov	esi, 132
	mov	rdi, r15
	call	datalink_NewState@PLT
	mov	rsi, QWORD PTR 32[r15]
	xor	edx, edx
	lea	rdi, 56[r15]
	call	chat_Setup@PLT
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR LogWARN[rip]
	lea	rsi, .LC9[rip]
	call	log_Printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, r15
	mov	DWORD PTR [rsp], r8d
	call	datalink_HangupDone@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
.L22:
	mov	esi, 136
	mov	rdi, r15
	call	datalink_NewState@PLT
	mov	rax, QWORD PTR 8[r15]
	mov	rdi, r15
	mov	DWORD PTR 96[r15], 0
	mov	DWORD PTR 88[r15], -1
	lea	rsi, .LC7[rip]
	mov	edx, DWORD PTR 8[rax]
	xor	eax, eax
	call	log_WritePrompts@PLT
	mov	rdi, QWORD PTR 80[r15]
	mov	rsi, r15
	call	bundle_LinkClosed@PLT
	mov	rax, QWORD PTR 80[r15]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	je	.L24
.L11:
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, r15
	mov	DWORD PTR [rsp], r8d
	call	datalink_HangupDone@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
.L14:
	mov	rdx, QWORD PTR 8[r15]
	mov	eax, DWORD PTR PHYS_DDIAL[rip]
	mov	edi, DWORD PTR LogCHAT[rip]
	or	eax, DWORD PTR PHYS_DEDICATED[rip]
	test	DWORD PTR [rdx], eax
	jne	.L20
	mov	ecx, DWORD PTR 48[r15]
	test	ecx, ecx
	jne	.L59
.L20:
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	log_Printf@PLT
.L21:
	mov	rax, QWORD PTR 80[r15]
	mov	edi, DWORD PTR [rax]
	test	edi, edi
	jne	.L22
	mov	rdx, QWORD PTR 8[r15]
	mov	eax, DWORD PTR PHYS_DDIAL[rip]
	or	eax, DWORD PTR PHYS_DEDICATED[rip]
	test	DWORD PTR [rdx], eax
	jne	.L24
	mov	esi, DWORD PTR 48[r15]
	test	esi, esi
	je	.L24
	mov	ecx, DWORD PTR 88[r15]
	test	ecx, ecx
	je	.L22
.L24:
	mov	rdi, r15
	call	datalink_GetDialTimeout@PLT
	mov	rdi, r15
	mov	esi, eax
	call	datalink_StartDialTimer@PLT
	mov	rdi, QWORD PTR 80[r15]
	mov	esi, DWORD PTR EX_REDIAL[rip]
	mov	r12d, eax
	call	bundle_Notify@PLT
	mov	rax, QWORD PTR 8[r15]
	mov	ecx, r12d
	mov	rdi, r15
	lea	rsi, .LC6[rip]
	mov	edx, DWORD PTR 8[rax]
	xor	eax, eax
	call	log_WritePrompts@PLT
	xor	r8d, r8d
	jmp	.L1
.L59:
	mov	edx, ecx
	lea	rsi, .LC4[rip]
	sub	edx, DWORD PTR 88[r15]
	xor	eax, eax
	call	log_Printf@PLT
	jmp	.L21
.L28:
	mov	rdi, r15
	mov	DWORD PTR [rsp], r8d
	call	datalink_HangupDone@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	datalink_UpdateSet.cold, @function
datalink_UpdateSet.cold:
.LFSB0:
.L38:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	xor	r8d, r8d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.text
	.size	datalink_UpdateSet, .-datalink_UpdateSet
	.section	.text.unlikely
	.size	datalink_UpdateSet.cold, .-datalink_UpdateSet.cold
.LCOLDE12:
	.text
.LHOTE12:
	.comm	TIMER_RUNNING,4,4
	.comm	PHYS_FOREGROUND,4,4
	.comm	PHYS_DIRECT,4,4
	.comm	PHYS_DEDICATED,4,4
	.comm	PHYS_DDIAL,4,4
	.comm	PHYS_BACKGROUND,4,4
	.comm	LogWARN,4,4
	.comm	LogDEBUG,4,4
	.comm	LogCHAT,4,4
	.comm	EX_REDIAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_datalink.c_datalink_UpdateSet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%s: Entering terminal mode on %s\015\012Type `~?' f"
	.ascii	"or help\015\012\000"
	.align	2
.LC2:
	.ascii	"Invalid dial script\012\000"
	.align	2
.LC3:
	.ascii	"%s: Dial attempt %u of %d\012\000"
	.align	2
.LC4:
	.ascii	"Failed to open device (attempt %u of %d)\012\000"
	.align	2
.LC5:
	.ascii	"Failed to open device\012\000"
	.align	2
.LC6:
	.ascii	"Failed to open %s, pause %d seconds\012\000"
	.align	2
.LC7:
	.ascii	"Failed to open %s\012\000"
	.align	2
.LC8:
	.ascii	"Waiting for carrier\012\000"
	.align	2
.LC9:
	.ascii	"Invalid login script\012\000"
	.align	2
.LC10:
	.ascii	"Invalid hangup script\012\000"
	.align	2
.LC11:
	.ascii	"Chat script failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	datalink_UpdateSet, %function
datalink_UpdateSet:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r6, r1
	mov	r7, r2
	mov	r8, r3
	ldr	fp, .L70
	ldr	r9, .L70+4
	ldr	r10, .L70+8
	sub	sp, sp, #20
.L2:
	mov	r0, r5
	bl	descriptor2datalink
	ldr	r3, [r0]
	mov	r4, r0
	sub	r3, r3, #128
	cmp	r3, #11
	ldrls	pc, [pc, r3, asl #2]
	b	.L38
.L5:
	.word	.L4
	.word	.L9
	.word	.L4
	.word	.L8
	.word	.L8
	.word	.L4
	.word	.L8
	.word	.L8
	.word	.L7
	.word	.L4
	.word	.L6
	.word	.L4
.L7:
	ldr	r3, .L70+12
	ldr	r2, .L70+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L70+20
	orr	r3, r3, r2
	ldr	r2, .L70+24
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L70+28
	orr	r3, r3, r2
	ldr	r2, [r0, #8]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L38
	ldr	r3, [r0, #48]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L38
	mov	r2, #1
	mov	r1, r2
	bl	datalink_Up
.L9:
	ldr	r2, [r4, #56]
	ldr	r3, [r9]
	cmp	r2, r3
	beq	.L38
	ldr	r3, [r4, #52]
	ldr	r0, [r4, #8]
	subs	r3, r3, #1
	movmi	r3, #0
	str	r3, [r4, #52]
	bl	physical_Open
	cmp	r0, #0
	blt	.L14
	ldmib	r4, {r2, r3}
	mov	r1, r10
	ldr	r3, [r3, #8]
	mov	r0, r4
	bl	log_WritePrompts
	ldr	r3, [r4, #44]
	cmp	r3, #0
	beq	.L30
	mov	r1, #135
	mov	r0, r4
	bl	datalink_NewState
	ldr	r1, [r4, #24]
	add	r3, r4, #32
	ldr	r2, [r1]
	cmp	r2, #0
	ldreq	r2, .L70+32
	bne	.L66
.L16:
	mov	r0, r3
	bl	chat_Setup
	cmp	r0, #0
	beq	.L67
.L17:
	ldr	r3, .L70+28
	ldr	r1, .L70+16
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L2
	ldr	r1, [r4, #28]
	cmp	r1, #0
	beq	.L2
	ldr	r3, [r4, #52]
	ldr	r0, .L70+36
	ldr	r2, [r4, #4]
	str	r1, [sp]
	sub	r3, r1, r3
	ldr	r0, [r0]
	ldr	r1, .L70+40
	bl	log_Printf
	b	.L2
.L4:
	ldr	r3, [sp, #56]
	mov	r2, r7
	mov	r1, r6
	str	r3, [sp]
	add	r0, r0, #12
	mov	r3, r8
	bl	descriptor_UpdateSet
	mov	ip, r0
	ldr	r2, [sp, #56]
	ldr	r0, [r4, #8]
	mov	r3, r8
	str	r2, [sp]
	mov	r1, r6
	mov	r2, r7
	add	r0, r0, #4
	mov	r4, ip
	bl	descriptor_UpdateSet
	add	r3, r4, r0
.L1:
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r0, [r0, #8]
	bl	physical_AwaitCarrier
	cmp	r0, #143
	beq	.L25
	cmp	r0, #144
	beq	.L26
	cmp	r0, #142
	beq	.L68
.L8:
	ldr	r3, [sp, #56]
	mov	r2, r7
	str	r3, [sp]
	mov	r1, r6
	mov	r3, r8
	add	r0, r4, #36
	bl	descriptor_UpdateSet
	ldr	r2, [r4, #32]
	mov	r3, r0
	cmp	r2, #140
	beq	.L29
	cmp	r2, #141
	bne	.L1
	ldr	r2, [r4]
	sub	r2, r2, #131
	cmp	r2, #4
	ldrls	pc, [pc, r2, asl #2]
	b	.L1
.L31:
	.word	.L37
	.word	.L33
	.word	.L1
	.word	.L35
	.word	.L30
.L30:
	mov	r0, r4
	mov	r1, #138
	bl	datalink_NewState
	b	.L2
.L68:
	ldr	r3, .L70+44
	ldr	r1, .L70+48
	ldr	r0, [r3]
	bl	log_Printf
	mov	r3, #0
	b	.L1
.L67:
	ldr	r1, .L70+52
	ldr	r0, [fp]
	bl	log_Printf
	b	.L17
.L66:
	mov	r0, r4
	str	r1, [sp, #12]
	str	r3, [sp, #8]
	bl	datalink_ChoosePhoneNumber
	ldr	r3, [sp, #8]
	mov	r2, r0
	ldr	r1, [sp, #12]
	b	.L16
.L35:
	mov	r0, r4
	str	r3, [sp, #8]
	bl	datalink_HangupDone
	ldr	r3, [sp, #8]
	b	.L1
.L29:
	str	r0, [sp, #8]
	ldr	r1, .L70+56
	ldr	r0, [fp]
	bl	log_Printf
	ldr	r2, [r4]
	ldr	r3, [sp, #8]
	cmp	r2, #134
	beq	.L35
	bgt	.L36
	sub	r2, r2, #131
	cmp	r2, #1
	bhi	.L1
.L37:
	mov	r1, #134
	mov	r0, r4
	bl	datalink_NewState
	ldr	r0, [r4, #8]
	bl	physical_Offline
.L64:
	mov	r2, #0
	ldr	r1, [r4, #16]
	add	r0, r4, #32
	bl	chat_Setup
	cmp	r0, #0
	bne	.L2
	ldr	r1, .L70+60
	ldr	r0, [fp]
	bl	log_Printf
	b	.L2
.L36:
	cmp	r2, #135
	beq	.L37
	b	.L1
.L26:
	ldr	r0, [r4, #8]
	bl	physical_Offline
	ldr	r3, [r4, #44]
	cmp	r3, #0
	beq	.L35
	mov	r1, #134
	mov	r0, r4
	bl	datalink_NewState
	b	.L64
.L25:
	ldr	r3, [r4, #44]
	cmp	r3, #0
	beq	.L59
	mov	r1, #132
	mov	r0, r4
	bl	datalink_NewState
	mov	r2, #0
	ldr	r1, [r4, #20]
	add	r0, r4, #32
	bl	chat_Setup
	cmp	r0, #0
	bne	.L2
	ldr	r1, .L70+64
	ldr	r0, [fp]
	bl	log_Printf
	b	.L2
.L33:
	mov	r3, #0
	str	r3, [r4, #40]
.L59:
	mov	r0, r4
	bl	datalink_LoginDone
	b	.L2
.L22:
	mov	r1, #136
	mov	r0, r4
	bl	datalink_NewState
	mov	r1, #0
	mvn	r2, #0
	ldr	r3, [r4, #8]
	str	r1, [r4, #60]
	str	r2, [r4, #52]
	ldr	r1, .L70+68
	ldr	r2, [r3, #8]
	mov	r0, r4
	bl	log_WritePrompts
	mov	r1, r4
	ldr	r0, [r4, #48]
	bl	bundle_LinkClosed
	ldr	r3, [r4, #48]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
.L38:
	mov	r3, #0
	b	.L1
.L14:
	ldr	r6, .L70+28
	ldr	r5, .L70+16
	ldr	r1, [r4, #8]
	ldr	r2, [r5]
	ldr	r3, [r6]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, .L70+36
	tst	r3, r1
	ldr	r0, [r2]
	bne	.L20
	ldr	r3, [r4, #28]
	cmp	r3, #0
	bne	.L69
.L20:
	ldr	r1, .L70+72
	bl	log_Printf
.L21:
	ldr	r3, [r4, #48]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r2, [r4, #8]
	ldr	r3, [r6]
	ldr	r1, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L24
	ldr	r3, [r4, #28]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [r4, #52]
	cmp	r3, #0
	beq	.L22
.L24:
	mov	r0, r4
	bl	datalink_GetDialTimeout
	mov	r1, r0
	mov	r0, r4
	bl	datalink_StartDialTimer
	mov	r5, r0
	ldr	r3, .L70+76
	ldr	r0, [r4, #48]
	ldr	r1, [r3]
	bl	bundle_Notify
	ldr	r2, [r4, #8]
	mov	r3, r5
	mov	r0, r4
	ldr	r2, [r2, #8]
	ldr	r1, .L70+80
	bl	log_WritePrompts
	mov	r3, #0
	b	.L1
.L69:
	ldr	r2, [r4, #52]
	ldr	r1, .L70+84
	sub	r2, r3, r2
	bl	log_Printf
	b	.L21
.L71:
	.align	2
.L70:
	.word	LogWARN
	.word	TIMER_RUNNING
	.word	.LC1
	.word	PHYS_DIRECT
	.word	PHYS_DEDICATED
	.word	PHYS_BACKGROUND
	.word	PHYS_FOREGROUND
	.word	PHYS_DDIAL
	.word	.LC0
	.word	LogCHAT
	.word	.LC3
	.word	LogDEBUG
	.word	.LC8
	.word	.LC2
	.word	.LC11
	.word	.LC10
	.word	.LC9
	.word	.LC7
	.word	.LC5
	.word	EX_REDIAL
	.word	.LC6
	.word	.LC4
	.size	datalink_UpdateSet, .-datalink_UpdateSet
	.comm	TIMER_RUNNING,4,4
	.comm	PHYS_FOREGROUND,4,4
	.comm	PHYS_DIRECT,4,4
	.comm	PHYS_DEDICATED,4,4
	.comm	PHYS_DDIAL,4,4
	.comm	PHYS_BACKGROUND,4,4
	.comm	LogWARN,4,4
	.comm	LogDEBUG,4,4
	.comm	LogCHAT,4,4
	.comm	EX_REDIAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
