	.file	"extr_test-ratelim.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unknown option '%s'\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	lea	rdi, weakrand_state[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	evutil_weakrand_seed_@PLT
	mov	esi, DWORD PTR SIG_IGN[rip]
	mov	edi, DWORD PTR SIGPIPE[rip]
	call	signal@PLT
	cmp	rax, QWORD PTR SIG_ERR[rip]
	je	.L18
	mov	DWORD PTR [rsp], 1
	mov	eax, 1
	mov	r12, rsp
	cmp	ebp, 1
	jle	.L5
.L4:
	mov	rdx, QWORD PTR options[rip]
	mov	rsi, QWORD PTR [rdx]
	test	rsi, rsi
	je	.L20
	xor	r13d, r13d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR options[rip]
	add	r13, 8
	mov	rsi, QWORD PTR [rax+r13]
	mov	eax, DWORD PTR [rsp]
	movsx	rdx, eax
	test	rsi, rsi
	je	.L9
.L8:
	cdqe
	mov	rdi, QWORD PTR [rbx+rax*8]
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	rcx, QWORD PTR options[rip]
	mov	rdx, r12
	mov	rsi, rbx
	mov	edi, ebp
	add	rcx, r13
	call	handle_option@PLT
	test	rax, rax
	js	.L18
	mov	eax, DWORD PTR [rsp]
	add	eax, 1
	mov	DWORD PTR [rsp], eax
	cmp	eax, ebp
	jl	.L4
.L5:
	cmp	QWORD PTR cfg_help[rip], 0
	jne	.L21
	mov	ecx, DWORD PTR cfg_tick_msec[rip]
	mov	esi, 1000
	pxor	xmm0, xmm0
	movsd	xmm1, QWORD PTR cfg_connlimit[rip]
	lea	rdi, 4[rsp]
	mov	eax, ecx
	cvtsi2sd	xmm0, ecx
	divsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR seconds_per_tick[rip], xmm0
	mulsd	xmm1, xmm0
	cdq
	idiv	esi
	movsd	QWORD PTR cfg_connlimit[rip], xmm1
	mulsd	xmm0, QWORD PTR cfg_grouplimit[rip]
	xor	esi, esi
	movsd	QWORD PTR cfg_grouplimit[rip], xmm0
	imul	edx, edx, 1000
	mov	DWORD PTR cfg_tick[rip], eax
	mov	DWORD PTR cfg_tick[rip+4], edx
	call	evutil_gettimeofday@PLT
	mov	edi, DWORD PTR 4[rsp]
	call	srandom@PLT
	xor	eax, eax
	call	evthread_enable_lock_debugging@PLT
	xor	eax, eax
	call	test_ratelimiting@PLT
	jmp	.L1
.L20:
	movsx	rdx, DWORD PTR [rsp]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, QWORD PTR [rbx+rdx*8]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	xor	eax, eax
	call	usage@PLT
.L18:
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	xor	eax, eax
	call	usage@PLT
	xor	eax, eax
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	weakrand_state,4,4
	.comm	stderr,4,4
	.comm	seconds_per_tick,8,8
	.comm	options,8,8
	.comm	cfg_tick_msec,4,4
	.comm	cfg_tick,8,8
	.comm	cfg_help,8,8
	.comm	cfg_grouplimit,8,8
	.comm	cfg_connlimit,8,8
	.comm	SIG_IGN,4,4
	.comm	SIG_ERR,8,8
	.comm	SIGPIPE,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1083129856
	.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_test-ratelim.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown option '%s'\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.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 = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L22
	sub	sp, sp, #16
	mov	r6, r0
	mov	r5, r1
	ldr	r0, .L22+4
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	evutil_weakrand_seed_
	ldr	r3, .L22+8
	ldr	r2, .L22+12
	ldr	r0, [r3]
	ldr	r1, [r2]
	bl	signal
	ldr	r3, .L22+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L17
	mov	r2, #1
	cmp	r6, r2
	ldrgt	r7, .L22+20
	str	r2, [sp, #4]
	ble	.L5
.L4:
	ldr	r3, [r7]
	ldr	r1, [r3]
	cmp	r1, #0
	beq	.L19
	mov	r4, #0
	b	.L8
.L6:
	add	r4, r4, #4
	ldr	r1, [r3, r4]
	ldr	r2, [sp, #4]
	cmp	r1, #0
	mov	r3, r2
	beq	.L9
.L8:
	ldr	r0, [r5, r2, lsl #2]
	bl	strcmp
	cmp	r0, #0
	ldr	r3, [r7]
	bne	.L6
	mov	r1, r5
	mov	r0, r6
	add	r2, sp, #4
	add	r3, r3, r4
	bl	handle_option
	cmp	r0, #0
	blt	.L17
	ldr	r3, [sp, #4]
	add	r2, r3, #1
	cmp	r2, r6
	str	r2, [sp, #4]
	blt	.L4
.L5:
	ldr	r3, .L22+24
	ldr	r6, [r3]
	cmp	r6, #0
	bne	.L20
	mov	ip, #1000
	ldr	r3, .L22+28
	ldr	lr, .L22+32
	ldr	r0, [r3]
	ldr	r1, .L22+36
	smull	r3, r4, r0, lr
	asr	r2, r0, #31
	rsb	r2, r2, r4, asr #6
	mul	r3, ip, r2
	sub	r3, r0, r3
	mul	r3, ip, r3
	stm	r1, {r2, r3}
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L22+40
	bl	__aeabi_ddiv
	mov	r4, r0
	mov	r5, r1
	ldr	r10, .L22+44
	ldr	r3, .L22+48
	ldmia	r10, {r0-r1}
	mov	r2, r4
	stm	r3, {r4-r5}
	mov	r3, r5
	bl	__aeabi_dmul
	mov	r8, r0
	mov	r9, r1
	ldr	r7, .L22+52
	mov	r2, r4
	ldmia	r7, {r0-r1}
	mov	r3, r5
	stm	r10, {r8-r9}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	add	r0, sp, #8
	mov	r1, r6
	stm	r7, {r2-r3}
	bl	evutil_gettimeofday
	ldr	r0, [sp, #8]
	bl	srandom
	bl	evthread_enable_lock_debugging
	bl	test_ratelimiting
	b	.L1
.L19:
	ldr	r3, [sp, #4]
.L9:
	ldr	r1, .L22+56
	ldr	r2, [r5, r3, lsl #2]
	ldr	r0, [r1]
	ldr	r1, .L22+60
	bl	fprintf
	bl	usage
.L17:
	mov	r0, #1
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	bl	usage
	mov	r0, #0
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	weakrand_state
	.word	SIGPIPE
	.word	SIG_IGN
	.word	SIG_ERR
	.word	options
	.word	cfg_help
	.word	cfg_tick_msec
	.word	274877907
	.word	cfg_tick
	.word	1083129856
	.word	cfg_connlimit
	.word	seconds_per_tick
	.word	cfg_grouplimit
	.word	stderr
	.word	.LC0
	.size	main, .-main
	.comm	weakrand_state,4,4
	.comm	stderr,4,4
	.comm	seconds_per_tick,8,8
	.comm	options,4,4
	.comm	cfg_tick_msec,4,4
	.comm	cfg_tick,8,4
	.comm	cfg_help,4,4
	.comm	cfg_grouplimit,8,8
	.comm	cfg_connlimit,8,8
	.comm	SIG_IGN,4,4
	.comm	SIG_ERR,4,4
	.comm	SIGPIPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
