	.file	"extr_uhsoctl.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"connected"
.LC1:
	.string	"disconnected"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Invalid context ID, defaulting to 1"
	.section	.rodata.str1.1
.LC3:
	.string	"?ha:p:c:u:k:r:f:dbn"
.LC4:
	.string	"no interface given"
.LC5:
	.string	"Disconnecting %s\n"
.LC6:
	.string	"setitimer"
.LC7:
	.string	"Failed to open %s"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"%s does not appear to be a uhso device"
	.align 8
.LC9:
	.string	"Failed to obtain a control port, try specifying one manually"
	.section	.rodata.str1.1
.LC10:
	.string	"Status: %s (%s)"
.LC11:
	.string	", signal: %d dBm"
.LC12:
	.string	"\t\t\t\r"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB13:
	.section	.text.startup,"ax",@progbits
.LHOTB13:
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	lea	rdi, timers[rip+4]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	rbx, .L5[rip]
	sub	rsp, 192
	.cfi_def_cfa_offset 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 184[rsp], rax
	xor	eax, eax
	call	TAILQ_INIT@PLT
	mov	rax, QWORD PTR RESOLV_PATH[rip]
	mov	DWORD PTR timers[rip], 1
	mov	DWORD PTR 48[rsp], 1
	mov	r12d, DWORD PTR MODE_CONN[rip]
	mov	QWORD PTR 96[rsp], rax
	mov	eax, DWORD PTR FLG_DELAYED[rip]
	mov	QWORD PTR 72[rsp], 0
	mov	QWORD PTR 64[rsp], 0
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 80[rsp], 0
	mov	QWORD PTR 112[rsp], 0
	mov	QWORD PTR 168[rsp], 0
	mov	QWORD PTR 160[rsp], 0
	mov	QWORD PTR 152[rsp], 0
	mov	DWORD PTR 88[rsp], -1
	mov	QWORD PTR 144[rsp], 0
	mov	QWORD PTR 136[rsp], 0
	mov	DWORD PTR 104[rsp], 0
	mov	DWORD PTR 92[rsp], eax
.L2:
	lea	rdx, .LC3[rip]
	mov	rsi, r14
	mov	edi, ebp
	call	getopt@PLT
	cmp	eax, -1
	je	.L75
	sub	eax, 97
	cmp	eax, 20
	ja	.L3
	movsx	rax, DWORD PTR [rbx+rax*4]
	add	rax, rbx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L14-.L5
	.long	.L13-.L5
	.long	.L12-.L5
	.long	.L41-.L5
	.long	.L3-.L5
	.long	.L10-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.section	.text.startup
.L41:
	mov	r12d, 128
	jmp	.L2
.L12:
	mov	rax, QWORD PTR optind[rip]
	mov	edx, 10
	xor	esi, esi
	mov	rdi, QWORD PTR -8[r14+rax*8]
	call	strtol@PLT
	mov	DWORD PTR 48[rsp], eax
	test	eax, eax
	jg	.L2
	lea	rdi, .LC2[rip]
	call	warnx@PLT
	mov	DWORD PTR 48[rsp], 1
	jmp	.L2
.L13:
	mov	eax, DWORD PTR FLG_DELAYED[rip]
	not	eax
	and	DWORD PTR 92[rsp], eax
	jmp	.L2
.L14:
	mov	rax, QWORD PTR optind[rip]
	mov	rax, QWORD PTR -8[r14+rax*8]
	mov	QWORD PTR 56[rsp], rax
	jmp	.L2
.L3:
	mov	rdi, QWORD PTR [r14]
	call	usage@PLT
	mov	edi, DWORD PTR EXIT_SUCCESS[rip]
	call	exit@PLT
	jmp	.L2
.L4:
	mov	rax, QWORD PTR optind[rip]
	mov	rax, QWORD PTR -8[r14+rax*8]
	mov	QWORD PTR 64[rsp], rax
	jmp	.L2
.L6:
	mov	rax, QWORD PTR optind[rip]
	mov	rax, QWORD PTR -8[r14+rax*8]
	mov	QWORD PTR 96[rsp], rax
	jmp	.L2
.L7:
	mov	rax, QWORD PTR optind[rip]
	mov	rax, QWORD PTR -8[r14+rax*8]
	mov	QWORD PTR 80[rsp], rax
	jmp	.L2
.L8:
	mov	eax, DWORD PTR FLG_NODAEMON[rip]
	or	DWORD PTR 92[rsp], eax
	jmp	.L2
.L9:
	mov	rax, QWORD PTR optind[rip]
	mov	rax, QWORD PTR -8[r14+rax*8]
	mov	QWORD PTR 72[rsp], rax
	jmp	.L2
.L10:
	mov	rax, QWORD PTR optind[rip]
	mov	r13, QWORD PTR -8[r14+rax*8]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L75:
	mov	rax, QWORD PTR optind[rip]
	sub	ebp, eax
	lea	rbx, 0[0+rax*8]
	test	ebp, ebp
	jle	.L76
.L16:
	movsx	rbp, ebp
	lea	rax, [r14+rbp*8]
	mov	r14, QWORD PTR -8[rbx+rax]
	mov	rdi, r14
	call	strdup@PLT
	mov	DWORD PTR 128[rsp], eax
	cmp	r12d, 128
	je	.L77
.L17:
	mov	esi, DWORD PTR sig_handle[rip]
	mov	edi, DWORD PTR SIGHUP[rip]
	call	signal@PLT
	mov	esi, DWORD PTR sig_handle[rip]
	mov	edi, DWORD PTR SIGINT[rip]
	call	signal@PLT
	mov	esi, DWORD PTR sig_handle[rip]
	mov	edi, DWORD PTR SIGQUIT[rip]
	call	signal@PLT
	mov	esi, DWORD PTR sig_handle[rip]
	mov	edi, DWORD PTR SIGTERM[rip]
	call	signal@PLT
	mov	esi, DWORD PTR sig_handle[rip]
	mov	edi, DWORD PTR SIGALRM[rip]
	call	signal@PLT
	mov	edi, DWORD PTR ITIMER_REAL[rip]
	xor	edx, edx
	lea	rsi, 16[rsp]
	mov	DWORD PTR 32[rsp], 1
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 16[rsp], 1
	mov	QWORD PTR 24[rsp], 0
	call	setitimer@PLT
	test	eax, eax
	jne	.L78
.L18:
	lea	rbp, 48[rsp]
	mov	esi, 1
	lea	rdi, timers[rip]
	mov	edx, 5
	mov	r8, rbp
	lea	rcx, tmr_watchdog[rip]
	call	tmr_add@PLT
	mov	esi, 15
	mov	rdi, rbp
	call	watchdog_reset@PLT
	test	r13, r13
	je	.L19
	mov	rsi, r13
	mov	rdi, rbp
	call	do_connect@PLT
	test	eax, eax
	jne	.L79
.L20:
	mov	eax, DWORD PTR FLG_DELAYED[rip]
	or	eax, DWORD PTR FLG_NODAEMON[rip]
	test	DWORD PTR 92[rsp], eax
	je	.L80
.L26:
	lea	rbx, 12[rsp]
	lea	r14, .LC0[rip]
	mov	rdi, rbx
	lea	r12, .LC1[rip]
	call	FD_ZERO@PLT
	mov	rdi, QWORD PTR 120[rsp]
	mov	rsi, rbx
	call	FD_SET@PLT
.L27:
	mov	rdi, rbp
	call	watchdog_disable@PLT
	mov	rax, QWORD PTR 120[rsp]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rbx
	lea	rdi, 1[rax]
	call	select@PLT
	test	eax, eax
	jg	.L28
	mov	eax, DWORD PTR running[rip]
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L27
.L29:
	mov	eax, DWORD PTR 92[rsp]
	mov	edx, DWORD PTR FLG_WDEXP[rip]
	test	eax, edx
	jne	.L81
.L31:
	test	DWORD PTR FLG_DAEMON[rip], eax
	je	.L82
.L36:
	mov	esi, DWORD PTR SIG_DFL[rip]
	mov	edi, DWORD PTR SIGHUP[rip]
	call	signal@PLT
	mov	esi, DWORD PTR SIG_DFL[rip]
	mov	edi, DWORD PTR SIGINT[rip]
	call	signal@PLT
	mov	esi, DWORD PTR SIG_DFL[rip]
	mov	edi, DWORD PTR SIGQUIT[rip]
	call	signal@PLT
	mov	esi, DWORD PTR SIG_DFL[rip]
	mov	edi, DWORD PTR SIGTERM[rip]
	call	signal@PLT
	mov	esi, DWORD PTR SIG_IGN[rip]
	mov	edi, DWORD PTR SIGALRM[rip]
	call	signal@PLT
	mov	rdi, rbp
	call	do_disconnect@PLT
	mov	eax, DWORD PTR 92[rsp]
	test	DWORD PTR FLG_DAEMON[rip], eax
	jne	.L83
.L38:
	mov	rax, QWORD PTR 184[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L84
	add	rsp, 192
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	rdi, QWORD PTR 120[rsp]
	mov	rsi, rbx
	call	FD_ISSET@PLT
	test	rax, rax
	je	.L33
	mov	esi, 15
	mov	rdi, rbp
	call	watchdog_reset@PLT
	mov	rsi, rbp
	mov	rdi, rbp
	call	at_async@PLT
	test	eax, eax
	jne	.L85
.L33:
	mov	rdi, QWORD PTR 120[rsp]
	mov	rsi, rbx
	call	FD_SET@PLT
	mov	eax, DWORD PTR 92[rsp]
	test	DWORD PTR FLG_DAEMON[rip], eax
	jne	.L27
	test	DWORD PTR IPASSIGNED[rip], eax
	je	.L27
	mov	rax, QWORD PTR network_access_type[rip]
	movsx	rdx, DWORD PTR 88[rsp]
	mov	rsi, r12
	lea	rdi, .LC10[rip]
	cmp	QWORD PTR 112[rsp], 0
	cmovne	rsi, r14
	mov	rdx, QWORD PTR [rax+rdx*8]
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR 104[rsp]
	test	esi, esi
	js	.L86
.L35:
	lea	rdi, .LC12[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
	jmp	.L27
.L82:
	test	DWORD PTR IPASSIGNED[rip], eax
	je	.L36
	mov	edi, 10
	call	putchar@PLT
	jmp	.L36
.L79:
	mov	rdx, r13
	lea	rsi, .LC7[rip]
	mov	edi, 1
	xor	eax, eax
	call	errx@PLT
	jmp	.L20
.L83:
	mov	edi, DWORD PTR 108[rsp]
	call	pidfile_remove@PLT
	cmp	QWORD PTR syslog_open[rip], 0
	je	.L38
	xor	eax, eax
	call	closelog@PLT
	jmp	.L38
.L78:
	lea	rsi, .LC6[rip]
	mov	edi, 1
	xor	eax, eax
	call	errx@PLT
	jmp	.L18
.L19:
	mov	rdi, rbp
	call	get_tty@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L73
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, rbp
	call	do_connect@PLT
	test	eax, eax
	je	.L87
	add	rbx, 8
.L73:
	mov	rsi, QWORD PTR [rbx]
	test	rsi, rsi
	jne	.L25
.L24:
	lea	rsi, .LC9[rip]
	mov	edi, 1
	xor	eax, eax
	call	errx@PLT
	jmp	.L20
.L76:
	lea	rsi, .LC4[rip]
	mov	edi, 1
	xor	eax, eax
	call	errx@PLT
	jmp	.L16
.L87:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L24
	mov	r13, rax
	jmp	.L20
.L81:
	not	edx
	mov	esi, 5
	mov	rdi, rbp
	and	eax, edx
	mov	DWORD PTR 92[rsp], eax
	call	watchdog_reset@PLT
	mov	rdi, rbp
	call	do_disconnect@PLT
	mov	esi, 15
	mov	rdi, rbp
	call	watchdog_reset@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	do_connect@PLT
	mov	DWORD PTR running[rip], 1
	jmp	.L27
.L77:
	mov	rsi, r14
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rdi, r14
	call	send_disconnect@PLT
	mov	edi, DWORD PTR EXIT_SUCCESS[rip]
	call	exit@PLT
	jmp	.L17
.L86:
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L35
.L80:
	mov	rdi, rbp
	call	daemonize@PLT
	jmp	.L26
.L85:
	mov	eax, DWORD PTR 92[rsp]
	jmp	.L31
.L84:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	main.cold, @function
main.cold:
.LFSB0:
.L71:
	.cfi_def_cfa_offset 240
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	rdx, r14
	lea	rsi, .LC8[rip]
	mov	edi, 1
	xor	eax, eax
	call	errx@PLT
	mov	rax, QWORD PTR ds:0
	ud2
	.cfi_endproc
.LFE0:
	.section	.text.startup
	.size	main, .-main
	.section	.text.unlikely
	.size	main.cold, .-main.cold
.LCOLDE13:
	.section	.text.startup
.LHOTE13:
	.comm	tmr_watchdog,4,4
	.comm	timers,8,8
	.comm	syslog_open,8,8
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	sig_handle,4,4
	.comm	running,4,4
	.comm	optind,8,8
	.comm	network_access_type,8,8
	.comm	errno,8,8
	.comm	SIG_IGN,4,4
	.comm	SIG_DFL,4,4
	.comm	SIGTERM,4,4
	.comm	SIGQUIT,4,4
	.comm	SIGINT,4,4
	.comm	SIGHUP,4,4
	.comm	SIGALRM,4,4
	.comm	RESOLV_PATH,8,8
	.comm	MODE_CONN,4,4
	.comm	ITIMER_REAL,4,4
	.comm	IPASSIGNED,4,4
	.comm	FLG_WDEXP,4,4
	.comm	FLG_NODAEMON,4,4
	.comm	FLG_DELAYED,4,4
	.comm	FLG_DAEMON,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EINTR,8,8
	.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_uhsoctl.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"connected\000"
	.align	2
.LC1:
	.ascii	"disconnected\000"
	.align	2
.LC2:
	.ascii	"Invalid context ID, defaulting to 1\000"
	.align	2
.LC3:
	.ascii	"?ha:p:c:u:k:r:f:dbn\000"
	.align	2
.LC4:
	.ascii	"no interface given\000"
	.align	2
.LC5:
	.ascii	"Disconnecting %s\012\000"
	.align	2
.LC6:
	.ascii	"setitimer\000"
	.align	2
.LC7:
	.ascii	"Failed to open %s\000"
	.align	2
.LC8:
	.ascii	"%s does not appear to be a uhso device\000"
	.align	2
.LC9:
	.ascii	"Failed to obtain a control port, try specifying one"
	.ascii	" manually\000"
	.align	2
.LC10:
	.ascii	"Status: %s (%s)\000"
	.align	2
.LC11:
	.ascii	", signal: %d dBm\000"
	.align	2
.LC12:
	.ascii	"\011\011\011\015\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC13:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L93
	ldr	r3, .L93+4
	sub	sp, sp, #108
	mov	r5, r0
	mov	r0, r7
	mov	fp, r1
	ldr	r3, [r3]
	str	r3, [sp, #100]
	mov	r3,#0
	bl	TAILQ_INIT
	mov	r2, #1
	mov	r4, #0
	mvn	r0, #0
	ldr	r1, .L93+8
	ldr	r6, .L93+12
	ldr	lr, [r1]
	ldr	r1, .L93+16
	ldr	ip, [r6]
	str	r2, [r7, #-4]
	ldr	r9, .L93+20
	ldr	r7, [r1]
	ldr	r8, .L93+24
	ldr	r10, .L93+28
	str	r2, [sp, #28]
	str	lr, [sp, #56]
	str	ip, [sp, #52]
	str	r4, [sp, #40]
	str	r4, [sp, #36]
	str	r4, [sp, #32]
	str	r4, [sp, #44]
	str	r4, [sp, #68]
	str	r4, [sp, #96]
	str	r4, [sp, #92]
	str	r4, [sp, #88]
	str	r4, [sp, #84]
	str	r4, [sp, #80]
	str	r4, [sp, #60]
	str	r0, [sp, #48]
.L2:
	mov	r2, r8
	mov	r1, fp
	mov	r0, r5
	bl	getopt
	cmn	r0, #1
	beq	.L80
	sub	r0, r0, #97
	cmp	r0, #20
	ldrls	pc, [pc, r0, asl #2]
	b	.L3
.L5:
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L41
	.word	.L3
	.word	.L10
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L9
	.word	.L3
	.word	.L3
	.word	.L8
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L4
.L41:
	mov	r7, #128
	b	.L2
.L12:
	ldr	r3, [r9]
	mov	r2, #10
	sub	r3, r3, #-1073741823
	mov	r1, #0
	ldr	r0, [fp, r3, lsl #2]
	bl	strtol
	cmp	r0, #0
	str	r0, [sp, #28]
	bgt	.L2
	ldr	r0, .L93+32
	bl	warnx
	mov	r3, #1
	str	r3, [sp, #28]
	b	.L2
.L13:
	ldr	r3, [sp, #52]
	ldr	r2, [r6]
	bic	r3, r3, r2
	str	r3, [sp, #52]
	b	.L2
.L14:
	ldr	r3, [r9]
	sub	r3, r3, #-1073741823
	ldr	r3, [fp, r3, lsl #2]
	str	r3, [sp, #32]
	b	.L2
.L3:
	ldr	r0, [fp]
	bl	usage
	ldr	r3, .L93+36
	ldr	r0, [r3]
	bl	exit
	b	.L2
.L4:
	ldr	r3, [r9]
	sub	r3, r3, #-1073741823
	ldr	r3, [fp, r3, lsl #2]
	str	r3, [sp, #36]
	b	.L2
.L6:
	ldr	r3, [r9]
	sub	r3, r3, #-1073741823
	ldr	r3, [fp, r3, lsl #2]
	str	r3, [sp, #56]
	b	.L2
.L7:
	ldr	r3, [r9]
	sub	r3, r3, #-1073741823
	ldr	r3, [fp, r3, lsl #2]
	str	r3, [sp, #44]
	b	.L2
.L8:
	ldr	r3, [sp, #52]
	ldr	r2, [r10]
	orr	r3, r3, r2
	str	r3, [sp, #52]
	b	.L2
.L9:
	ldr	r3, [r9]
	sub	r3, r3, #-1073741823
	ldr	r3, [fp, r3, lsl #2]
	str	r3, [sp, #40]
	b	.L2
.L10:
	ldr	r3, [r9]
	sub	r3, r3, #-1073741823
	ldr	r4, [fp, r3, lsl #2]
	b	.L2
.L80:
	ldr	r2, [r9]
	sub	r2, r5, r2
	cmp	r2, #0
	ble	.L81
.L16:
	sub	r5, r5, #-1073741823
	ldr	fp, [fp, r5, lsl #2]
	mov	r0, fp
	bl	strdup
	cmp	r7, #128
	str	r0, [sp, #76]
	beq	.L82
.L17:
	ldr	r5, .L93+40
	ldr	r10, .L93+44
	ldr	r9, .L93+48
	ldr	r1, [r5]
	ldr	r0, [r10]
	ldr	r8, .L93+52
	bl	signal
	ldr	r1, [r5]
	ldr	r0, [r9]
	bl	signal
	ldr	r1, [r5]
	ldr	r0, [r8]
	bl	signal
	ldr	r3, .L93+56
	ldr	r1, [r5]
	ldr	r0, [r3]
	bl	signal
	ldr	r3, .L93+60
	ldr	r1, [r5]
	ldr	r0, [r3]
	bl	signal
	mov	r5, #1
	mov	r2, #0
	ldr	r3, .L93+64
	add	r1, sp, #12
	ldr	r0, [r3]
	str	r2, [sp, #24]
	str	r2, [sp, #16]
	str	r5, [sp, #20]
	str	r5, [sp, #12]
	bl	setitimer
	cmp	r0, #0
	bne	.L83
.L18:
	add	r5, sp, #28
	mov	r2, #5
	mov	r1, #1
	ldr	r3, .L93+68
	ldr	r0, .L93+72
	str	r5, [sp]
	bl	tmr_add
	mov	r0, r5
	mov	r1, #15
	bl	watchdog_reset
	cmp	r4, #0
	beq	.L19
	mov	r1, r4
	mov	r0, r5
	bl	do_connect
	cmp	r0, #0
	bne	.L84
.L20:
	ldr	r2, .L93+28
	ldr	r3, [r6]
	ldr	r1, [r2]
	ldr	r2, [sp, #52]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L85
.L26:
	add	r0, sp, #8
	bl	FD_ZERO
	ldr	r0, [sp, #72]
	add	r1, sp, #8
	bl	FD_SET
	ldr	r6, .L93+76
	ldr	fp, .L93+80
.L27:
	mov	r0, r5
	bl	watchdog_disable
	mov	r3, #0
	ldr	r0, [sp, #72]
	mov	r2, r3
	str	r3, [sp]
	add	r0, r0, #1
	add	r1, sp, #8
	bl	select
	cmp	r0, #0
	bgt	.L28
	ldr	r3, [fp]
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L93+84
	ldr	r2, [r3]
	ldr	r3, .L93+88
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L27
.L29:
	ldr	r2, .L93+92
	ldr	r3, [sp, #52]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L86
.L31:
	ldr	r2, [r6]
	tst	r3, r2
	beq	.L87
.L36:
	ldr	r4, .L93+96
	ldr	r0, [r10]
	ldr	r1, [r4]
	bl	signal
	ldr	r1, [r4]
	ldr	r0, [r9]
	bl	signal
	ldr	r1, [r4]
	ldr	r0, [r8]
	bl	signal
	ldr	r3, .L93+56
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	signal
	ldr	r3, .L93+100
	ldr	r2, .L93+60
	ldr	r1, [r3]
	ldr	r0, [r2]
	bl	signal
	mov	r0, r5
	bl	do_disconnect
	ldr	r3, [r6]
	ldr	r2, [sp, #52]
	tst	r2, r3
	bne	.L88
.L38:
	ldr	r3, .L93+4
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L89
	mov	r0, #0
	add	sp, sp, #108
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	ldr	r0, [sp, #72]
	add	r1, sp, #8
	bl	FD_ISSET
	cmp	r0, #0
	beq	.L33
	mov	r1, #15
	mov	r0, r5
	bl	watchdog_reset
	mov	r1, r5
	mov	r0, r5
	bl	at_async
	cmp	r0, #0
	bne	.L90
.L33:
	ldr	r0, [sp, #72]
	add	r1, sp, #8
	bl	FD_SET
	ldr	r3, [sp, #52]
	ldr	r2, [r6]
	tst	r3, r2
	bne	.L27
	ldr	r2, .L93+104
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L27
	ldr	r3, .L93+108
	ldr	r1, [sp, #68]
	ldr	r0, [sp, #48]
	ldr	r2, [r3]
	ldr	r3, .L93+112
	cmp	r1, #0
	ldr	r2, [r2, r0, lsl #2]
	ldr	r0, .L93+116
	moveq	r0, r3
	mov	r1, r0
	ldr	r0, .L93+120
	bl	printf
	ldr	r1, [sp, #60]
	cmp	r1, #0
	blt	.L91
.L35:
	ldr	r0, .L93+124
	bl	printf
	ldr	r3, .L93+128
	ldr	r0, [r3]
	bl	fflush
	b	.L27
.L87:
	ldr	r2, .L93+104
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L36
	mov	r0, #10
	bl	putchar
	b	.L36
.L84:
	mov	r2, r4
	ldr	r1, .L93+132
	mov	r0, #1
	bl	errx
	b	.L20
.L88:
	ldr	r0, [sp, #64]
	bl	pidfile_remove
	ldr	r3, .L93+136
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L38
	bl	closelog
	b	.L38
.L83:
	mov	r0, r5
	ldr	r1, .L93+140
	bl	errx
	b	.L18
.L19:
	mov	r0, r5
	bl	get_tty
	subs	r7, r0, #0
	beq	.L92
	ldr	r1, [r7]
	cmp	r1, #0
	bne	.L25
	b	.L24
.L23:
	ldr	r1, [r7, #4]!
	cmp	r1, #0
	beq	.L24
.L25:
	mov	r0, r5
	bl	do_connect
	cmp	r0, #0
	bne	.L23
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L24
	mov	r4, r3
	b	.L20
.L81:
	ldr	r1, .L93+144
	mov	r0, #1
	bl	errx
	b	.L16
.L86:
	bic	r3, r3, r2
	mov	r1, #5
	mov	r0, r5
	str	r3, [sp, #52]
	bl	watchdog_reset
	mov	r0, r5
	bl	do_disconnect
	mov	r1, #15
	mov	r0, r5
	bl	watchdog_reset
	mov	r1, r4
	mov	r0, r5
	bl	do_connect
	mov	r3, #1
	str	r3, [fp]
	b	.L27
.L82:
	mov	r1, fp
	ldr	r0, .L93+148
	bl	printf
	mov	r0, fp
	bl	send_disconnect
	ldr	r3, .L93+36
	ldr	r0, [r3]
	bl	exit
	b	.L17
.L91:
	ldr	r0, .L93+152
	bl	printf
	b	.L35
.L85:
	mov	r0, r5
	bl	daemonize
	b	.L26
.L24:
	ldr	r1, .L93+156
	mov	r0, #1
	bl	errx
	b	.L20
.L90:
	ldr	r3, [sp, #52]
	b	.L31
.L89:
	bl	__stack_chk_fail
.L92:
	mov	r2, fp
	ldr	r1, .L93+160
	mov	r0, #1
	bl	errx
	ldr	r3, [r4]
	.inst	0xe7f000f0
.L94:
	.align	2
.L93:
	.word	timers+4
	.word	.LC13
	.word	RESOLV_PATH
	.word	FLG_DELAYED
	.word	MODE_CONN
	.word	optind
	.word	.LC3
	.word	FLG_NODAEMON
	.word	.LC2
	.word	EXIT_SUCCESS
	.word	sig_handle
	.word	SIGHUP
	.word	SIGINT
	.word	SIGQUIT
	.word	SIGTERM
	.word	SIGALRM
	.word	ITIMER_REAL
	.word	tmr_watchdog
	.word	timers
	.word	FLG_DAEMON
	.word	running
	.word	errno
	.word	EINTR
	.word	FLG_WDEXP
	.word	SIG_DFL
	.word	SIG_IGN
	.word	IPASSIGNED
	.word	network_access_type
	.word	.LC1
	.word	.LC0
	.word	.LC10
	.word	.LC12
	.word	stdout
	.word	.LC7
	.word	syslog_open
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.word	.LC11
	.word	.LC9
	.word	.LC8
	.size	main, .-main
	.comm	tmr_watchdog,4,4
	.comm	timers,8,4
	.comm	syslog_open,4,4
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	sig_handle,4,4
	.comm	running,4,4
	.comm	optind,4,4
	.comm	network_access_type,4,4
	.comm	errno,4,4
	.comm	SIG_IGN,4,4
	.comm	SIG_DFL,4,4
	.comm	SIGTERM,4,4
	.comm	SIGQUIT,4,4
	.comm	SIGINT,4,4
	.comm	SIGHUP,4,4
	.comm	SIGALRM,4,4
	.comm	RESOLV_PATH,4,4
	.comm	MODE_CONN,4,4
	.comm	ITIMER_REAL,4,4
	.comm	IPASSIGNED,4,4
	.comm	FLG_WDEXP,4,4
	.comm	FLG_NODAEMON,4,4
	.comm	FLG_DELAYED,4,4
	.comm	FLG_DAEMON,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
