	.file	"extr_expand.c_own.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gettimeofday()"
.LC1:
	.string	"select()"
	.text
	.p2align 4
	.globl	own
	.type	own, @function
own:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR S_WAIT_RELAY[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L21
.L2:
	lea	r12, 12[rsp]
	mov	rdi, r12
	call	FD_ZERO@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, r12
	call	FD_SET@PLT
	mov	rax, QWORD PTR 8[rbp]
	xor	ecx, ecx
	xor	edx, edx
	mov	r8, rbx
	mov	rsi, r12
	lea	rdi, 1[rax]
	call	select@PLT
	cmp	eax, -1
	je	.L22
.L8:
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, r12
	call	FD_ISSET@PLT
	test	rax, rax
	jne	.L23
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rbx, 16[rsp]
	xor	esi, esi
	mov	rdi, rbx
	call	gettimeofday@PLT
	cmp	eax, -1
	je	.L25
.L3:
	lea	rdi, 24[rbp]
	mov	rsi, rbx
	call	elapsed@PLT
	cmp	eax, 9999
	jle	.L4
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L5
	cmp	QWORD PTR [rax], 0
	je	.L5
	mov	rdi, rbp
	call	send_queue@PLT
	mov	edx, 10000
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, rbp
	call	read_wifi@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, 10000
	sub	edx, eax
	mov	eax, edx
	imul	rax, rax, 1125899907
	shr	rax, 50
	imul	ecx, eax, -1000000
	add	edx, ecx
.L6:
	mov	DWORD PTR 16[rsp], eax
	mov	DWORD PTR 20[rsp], edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR S_START[rip]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L3
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	own, .-own
	.comm	S_WAIT_RELAY,8,8
	.comm	S_START,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_expand.c_own.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gettimeofday()\000"
	.align	2
.LC1:
	.ascii	"select()\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	own
	.syntax unified
	.arm
	.fpu softvfp
	.type	own, %function
own:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L28
	ldr	r2, [r0]
	ldr	r3, [r3]
	ldr	r1, .L28+4
	sub	sp, sp, #28
	cmp	r2, r3
	mov	r4, r0
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	movne	r5, #0
	beq	.L23
.L2:
	add	r0, sp, #8
	bl	FD_ZERO
	add	r1, sp, #8
	ldr	r0, [r4, #4]
	bl	FD_SET
	mov	r3, #0
	ldr	r0, [r4, #4]
	mov	r2, r3
	str	r5, [sp]
	add	r1, sp, #8
	add	r0, r0, #1
	bl	select
	cmn	r0, #1
	beq	.L24
.L8:
	ldr	r0, [r4, #4]
	add	r1, sp, #8
	bl	FD_ISSET
	cmp	r0, #0
	bne	.L25
.L1:
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L23:
	mov	r1, #0
	add	r0, sp, #12
	bl	gettimeofday
	cmn	r0, #1
	beq	.L27
.L3:
	add	r1, sp, #12
	add	r0, r4, #12
	bl	elapsed
	ldr	r3, .L28+8
	cmp	r0, r3
	ble	.L4
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	mov	r0, r4
	bl	send_queue
	mov	r3, #0
	ldr	r0, .L28+12
	b	.L6
.L25:
	mov	r0, r4
	bl	read_wifi
	b	.L1
.L4:
	ldr	r3, .L28+16
	rsb	r0, r0, #9984
	add	r0, r0, #16
	umull	r2, r3, r0, r3
	lsr	r3, r3, #18
	rsb	r2, r3, r3, lsl #5
	rsb	r2, r2, r2, lsl #6
	add	r2, r3, r2, lsl #3
	sub	r0, r0, r2, lsl #6
.L6:
	str	r3, [sp, #12]
	str	r0, [sp, #16]
	add	r5, sp, #12
	b	.L2
.L24:
	ldr	r1, .L28+20
	mov	r0, #1
	bl	err
	b	.L8
.L5:
	ldr	r3, .L28+24
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L1
.L27:
	ldr	r1, .L28+28
	mov	r0, #1
	bl	err
	b	.L3
.L26:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	S_WAIT_RELAY
	.word	.LC2
	.word	9999
	.word	10000
	.word	1125899907
	.word	.LC1
	.word	S_START
	.word	.LC0
	.size	own, .-own
	.comm	S_WAIT_RELAY,4,4
	.comm	S_START,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
