	.file	"9513559.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"nc -zw1 google.com 443 1> /dev/null 2>&1"
	.text
	.type	test_internet_connection, @function
test_internet_connection:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rax, .LC0[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	system@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	test_internet_connection, .-test_internet_connection
	.section	.rodata
.LC1:
	.string	"pkill -RTMIN+2 i3blocks"
.LC2:
	.string	"WEATHER_SIGNALER ERROR\n"
	.text
	.type	timer_handler, @function
timer_handler:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L7:
	mov	eax, 0
	call	test_internet_connection
	test	eax, eax
	jne	.L9
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -12[rbp], 1
.L4:
	cmp	DWORD PTR -12[rbp], 19
	jle	.L7
	jmp	.L6
.L9:
	nop
.L6:
	lea	rax, .LC1[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	system@PLT
	test	eax, eax
	je	.L10
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	timer_handler, .-timer_handler
	.globl	timer_init_launch
	.type	timer_init_launch, @function
timer_init_launch:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rax], 0
	call	__libc_current_sigrtmin@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 136[rax], 4
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, timer_handler[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	call	__libc_current_sigrtmin@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L12
	mov	eax, -1
	jmp	.L13
.L12:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	edi, 7
	call	timer_create@PLT
	cmp	eax, -1
	jne	.L14
	mov	eax, -1
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], 300
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], 300
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, 0
	mov	esi, 0
	mov	rdi, rax
	call	timer_settime@PLT
	cmp	eax, -1
	jne	.L15
	mov	eax, -1
	jmp	.L13
.L15:
	mov	eax, 0
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	timer_init_launch, .-timer_init_launch
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -256[rbp]
	lea	rdx, -160[rbp]
	lea	rsi, -224[rbp]
	lea	rax, -264[rbp]
	mov	rdi, rax
	call	timer_init_launch
	test	eax, eax
	je	.L17
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	edi, 1
	call	sleep@PLT
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	call	timer_handler
.L18:
	mov	edi, 100
	call	sleep@PLT
	jmp	.L18
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"9513559.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"nc -zw1 google.com 443 1> /dev/null 2>&1\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_internet_connection, %function
test_internet_connection:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L3
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	system
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	test_internet_connection, .-test_internet_connection
	.section	.rodata
	.align	2
.LC1:
	.ascii	"pkill -RTMIN+2 i3blocks\000"
	.align	2
.LC2:
	.ascii	"WEATHER_SIGNALER ERROR\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	timer_handler, %function
timer_handler:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L9:
	bl	test_internet_connection
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #19
	ble	.L9
	b	.L8
.L11:
	nop
.L8:
	ldr	r3, .L13
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	system
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L13+4
	bl	puts
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	.LC2
	.size	timer_handler, .-timer_handler
	.align	2
	.global	timer_init_launch
	.syntax unified
	.arm
	.fpu softvfp
	.type	timer_init_launch, %function
timer_init_launch:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #8]
	bl	__libc_current_sigrtmin
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r2, #4
	str	r2, [r3, #132]
	ldr	r3, [fp, #-16]
	ldr	r2, .L20
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	bl	__libc_current_sigrtmin
	mov	r3, r0
	mov	r2, #0
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	mvn	r3, #0
	b	.L17
.L16:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, #7
	bl	timer_create
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	mvn	r3, #0
	b	.L17
.L18:
	ldr	r3, [fp, #-20]
	mov	r2, #300
	str	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	mov	r2, #300
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3]
	mov	r3, #0
	ldr	r2, [fp, #-20]
	mov	r1, #0
	bl	timer_settime
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	mvn	r3, #0
	b	.L17
.L19:
	mov	r3, #0
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	timer_handler
	.size	timer_init_launch, .-timer_init_launch
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #232
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #228
	sub	r2, fp, #148
	sub	r1, fp, #212
	sub	r0, fp, #232
	bl	timer_init_launch
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	mov	r0, #1
	bl	exit
.L23:
	mov	r0, #1
	bl	sleep
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	timer_handler
.L24:
	mov	r0, #100
	bl	sleep
	b	.L24
.L27:
	.align	2
.L26:
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
